/* Small, page-scoped refinements for account, chat, member profiles and tickets.
   Keep the existing Diaspora Konnekt palette and the current tab and card behavior. */

/* Account: put the identity and the section switcher in a clear, touch-friendly frame. */
[data-page="account"] .dash-head {
  align-items: center;
  gap: 14px 24px;
  margin: 8px 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--line, #d8e1eb);
  border-left: 4px solid var(--gold, #f6bf18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(6 39 79 / 6%);
}
[data-page="account"] .dash-head h1 { font-size: clamp(28px, 3.3vw, 36px); }
[data-page="account"] .dash-head p { margin: 7px 0 0; color: #51647c; line-height: 1.45; }
[data-page="account"] .dash-head .dash-logout { min-height: 44px; }
[data-page="account"] .dash-tabs {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 6px;
  border: 1px solid var(--line, #d8e1eb);
  border-radius: 14px;
  background: #fff;
  scrollbar-color: #9eafc2 #eef3f9;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
[data-page="account"] .dash-tabs button { flex: 0 0 auto; min-height: 46px; white-space: nowrap; }
[data-page="account"] .dash-panel {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--line, #d8e1eb);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(6 39 79 / 5%);
}
[data-page="account"] .dash-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line, #d8e1eb);
}
[data-page="account"] .dash-bar p { flex: 1 1 360px; max-width: 70ch; margin: 0; color: #435971; line-height: 1.55; }
[data-page="account"] .dash-bar .button { min-height: 44px; }
[data-page="account"] .dash-form { margin: 0 0 18px; padding: clamp(16px, 2.5vw, 24px); border: 1px solid #d8e1eb; border-radius: 16px; background: #f8fafd; }
[data-page="account"] .dash-form h2 { margin: 0 0 4px; }
[data-page="account"] .dash-list > .biz-loading,
[data-page="account"] .dash-list > .empty,
[data-page="account"] .dash-list > .m-empty {
  min-height: 92px;
  align-content: center;
  padding: 18px;
  border: 1px dashed #b9c9dc;
  border-radius: 14px;
  background: #f8fafd;
  color: #51647c;
}
[data-page="account"] #auth-view .auth-card { border-radius: 18px; box-shadow: 0 12px 30px rgb(6 39 79 / 9%); }
[data-page="account"] #auth-view .auth-intro { max-width: 58ch; }
[data-page="account"] #auth-view .auth-intro h1 { max-width: 13ch; line-height: 1.08; }
[data-page="account"] #auth-view .auth-points { gap: 12px; }
[data-page="account"] #account-notice { border-radius: 12px; }

/* Chat: make the directory read as a first-class member destination and keep
   the existing conversation, request and request-only private-profile actions. */
.inbox-page .inbox-head { align-items: flex-end; margin: 8px 0 18px; }
.inbox-page .inbox-head h1 { line-height: 1.08; }
.inbox-page .inbox-head .dash-actions { gap: 8px; }
.inbox-page .inbox-head .button { min-height: 44px; }
.inbox-page #inbox-body > .dash-tabs {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 6px;
  border: 1px solid var(--line, #d8e1eb);
  border-radius: 14px;
  background: #fff;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.inbox-page #inbox-body > .dash-tabs button { flex: 0 0 auto; min-width: 118px; min-height: 46px; white-space: nowrap; }
.inbox-page .inbox-split { min-height: 520px; box-shadow: 0 10px 26px rgb(6 39 79 / 8%); }
.inbox-page .conv-list { background: #f8fafd; }
.inbox-page .conv { min-height: 72px; }
.inbox-page .conv:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.inbox-page .conv.is-active { box-shadow: inset 3px 0 0 var(--gold, #f6bf18); }
.inbox-page .inbox-empty { min-height: 280px; }
.inbox-page .directory-head { margin: 2px 0 14px; }
.inbox-page .directory-head h2 { margin: 0 0 5px; color: var(--navy, #06274f); font-size: clamp(21px, 3vw, 26px); line-height: 1.2; }
.inbox-page .directory-head p { max-width: 62ch; margin: 0; color: #51647c; line-height: 1.5; }
.inbox-page .people-search { display: grid; gap: 6px; margin: 18px 0 8px; }
.inbox-page .people-search label { color: var(--navy, #06274f); font-size: 14px; font-weight: 750; }
.inbox-page .people-search input { min-height: 50px; border-color: #9eafc2; box-shadow: 0 2px 6px rgb(6 39 79 / 4%); }
.inbox-page #people-help { max-width: 76ch; margin: 8px 0 18px; line-height: 1.5; }
.inbox-page #pane-people .people,
.inbox-page #pane-requests .people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.inbox-page #pane-people .person,
.inbox-page #pane-requests .person {
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 10px 12px;
  padding: 16px;
  border-color: #d7e1ec;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgb(6 39 79 / 4%);
}
.inbox-page #pane-people .person-body,
.inbox-page #pane-requests .person-body { min-width: 0; }
.inbox-page #pane-people .person-body h3,
.inbox-page #pane-requests .person-body h3 { line-height: 1.3; overflow-wrap: anywhere; }
.inbox-page #pane-people .person-actions,
.inbox-page #pane-requests .person-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 3px; }
.inbox-page #pane-people .person-actions .button,
.inbox-page #pane-requests .person-actions .button { min-height: 44px; }
.inbox-page #pane-people .person-actions .pill,
.inbox-page #pane-requests .person-actions .pill { align-self: center; }
.inbox-page #pane-requests .req-section { margin: 0 0 22px; }
.inbox-page #pane-requests .req-section h2 { margin: 0 0 12px; font-size: 20px; }
.inbox-page #pane-people .empty,
.inbox-page #pane-requests .empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed #b9c9dc; border-radius: 14px; background: #fff; }
.inbox-page .thread-head { min-height: 66px; background: #fff; }
.inbox-page .composer { background: #fff; }
.inbox-page .composer button,
.inbox-page .thread-actions button { min-height: 42px; }

/* Public profiles: keep the member's own public details prominent and readable. */
[data-page="member"] #member-view > .biz-loading { max-width: 760px; min-height: 150px; display: grid; place-items: center; margin: 16px 0; border: 1px dashed #b9c9dc; border-radius: 16px; background: #fff; }
[data-page="member"] .profile { max-width: 820px; margin: 16px 0 30px; padding: clamp(20px, 3vw, 30px); border-color: #d7e1ec; box-shadow: 0 12px 30px rgb(6 39 79 / 7%); }
[data-page="member"] .profile-body { gap: 9px; }
[data-page="member"] .profile-body h1 { overflow-wrap: anywhere; }
[data-page="member"] .profile-headline { line-height: 1.5; }
[data-page="member"] .profile-actions { padding-top: 14px; border-top: 1px solid var(--line, #d8e1eb); }
[data-page="member"] .profile-actions .button { min-height: 46px; }
[data-page="member"] .profile .m-desc { margin-top: 4px; }
[data-page="member"] .m-empty { max-width: 760px; margin: 18px 0; }

/* Tickets: keep actions obvious and printed passes easy to present at the door. */
[data-page="ticket"] #ticket-view > .biz-loading { min-height: 170px; display: grid; place-items: center; margin: 18px 0; border: 1px dashed #b9c9dc; border-radius: 16px; background: #fff; }
[data-page="ticket"] .tk-head {
  align-items: center;
  margin: 12px 0 22px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #d7e1ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(6 39 79 / 6%);
}
[data-page="ticket"] .tk-head h1 { margin: 0; }
[data-page="ticket"] .tk-head p { line-height: 1.5; }
[data-page="ticket"] .tk-head .tk-meta { overflow-wrap: anywhere; }
[data-page="ticket"] .tk-head-actions { align-items: stretch; }
[data-page="ticket"] .tk-head-actions .button { min-height: 46px; }
[data-page="ticket"] .pass { box-shadow: 0 10px 26px rgb(6 39 79 / 14%); }
[data-page="ticket"] .pass-main { align-content: center; min-width: 0; }
[data-page="ticket"] .pass-main h2,
[data-page="ticket"] .pass-main p { overflow-wrap: anywhere; }
[data-page="ticket"] .pass-qr { min-width: 0; }
[data-page="ticket"] .qr { max-width: 100%; }
[data-page="ticket"] .m-empty { margin: 18px 0; }

@media (max-width: 760px) {
  .inbox-page #pane-people .people,
  .inbox-page #pane-requests .people { grid-template-columns: minmax(0, 1fr); }
  .inbox-page .inbox-head { align-items: flex-start; }
  .inbox-page .inbox-head .dash-actions { width: 100%; }
  .inbox-page .inbox-head .dash-actions .button { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 640px) {
  [data-page="account"] .dash-head { padding: 18px; }
  [data-page="account"] .dash-head .dash-logout { margin-left: auto; }
  [data-page="account"] .dash-panel { padding: 15px; }
  [data-page="account"] .dash-bar { align-items: stretch; }
  [data-page="account"] .dash-bar .button { justify-content: center; }
  .inbox-page .inbox-split { border-radius: 14px; }
  .inbox-page #pane-people .person,
  .inbox-page #pane-requests .person { padding: 14px; }
  [data-page="ticket"] .tk-head-actions { width: 100%; }
  [data-page="ticket"] .tk-head-actions .button { flex: 1 1 100%; justify-content: center; }
  [data-page="ticket"] .pass { grid-template-columns: minmax(0, 1fr) 128px; }
  [data-page="ticket"] .pass::before,
  [data-page="ticket"] .pass::after { left: calc(100% - 128px - 13px); }
  [data-page="ticket"] .pass-main { padding: 20px 16px; }
  [data-page="ticket"] .pass-main h2 { font-size: 20px; }
  [data-page="ticket"] .pass-qr { padding: 12px; }
  [data-page="ticket"] .qr { width: 104px; height: 104px; }
}
@media (max-width: 420px) {
  .inbox-page #inbox-body > .dash-tabs { overflow-x: visible; }
  .inbox-page #inbox-body > .dash-tabs button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding-inline: 7px;
    white-space: normal;
  }
}
@media (max-width: 390px) {
  [data-page="ticket"] .pass { grid-template-columns: minmax(0, 1fr) 104px; }
  [data-page="ticket"] .pass::before,
  [data-page="ticket"] .pass::after { left: calc(100% - 104px - 13px); }
  [data-page="ticket"] .pass-main { padding: 18px 12px; }
  [data-page="ticket"] .pass-qr { padding: 8px; }
  [data-page="ticket"] .qr { width: 84px; height: 84px; }
}
@media print {
  .ticket-body .topbar,
  .ticket-body .side,
  .ticket-body .site-footer,
  [data-page="ticket"] .crumbs,
  [data-page="ticket"] .tk-head-actions { display: none !important; }
  .ticket-body .shell { display: block; }
  .ticket-body .page-col { width: 100%; }
  [data-page="ticket"] { width: 100%; margin: 0; padding: 0; }
  [data-page="ticket"] .page-wrap { width: 100%; max-width: none; }
  [data-page="ticket"] .tk-head { box-shadow: none; }
  [data-page="ticket"] .pass { break-inside: avoid; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  [data-page="ticket"] .pass-qr { background: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-page *, .inbox-page *::before, .inbox-page *::after { scroll-behavior: auto !important; }
}
