/* GS-026: Green's light working-room finish. Visual only; loaded after styles.css.
   No visibility, permissions, data or workflow rules belong in this layer. */
:root {
  --canvas: #f3f6f2;
  --surface: #ffffff;
  --surface-subtle: #f7f9f6;
  --surface-muted: #eaf0eb;
  --ink: #243b30;
  --ink-soft: #465d50;
  --muted: #5c6d61;
  --line: #e0e7df;
  --line-strong: #b4c2b7;
  --green: #245c43;
  --green-hover: #194630;
  --green-soft: #e4efe5;
  --amber: #825614;
  --amber-soft: #fbf3e3;
  --red: #a7332d;
  --radius: 14px;
  --visual-sidebar: #e8eee7;
  --visual-panel-shadow: 0 3px 16px rgba(32, 61, 43, 0.045);
  --visual-field-border: #819386;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select, textarea { font-family: inherit; }
button { border-radius: 10px; font-weight: 600; padding: 10px 15px; }
button.link-btn { font-weight: 600; }
button.ghost { background: #e8eee7; color: #34503f; }
button.ghost:hover { background: #dce7dd; }
button.secondary, button.accent { background: #e8eee7; color: #34503f; }
button.secondary:hover, button.accent:hover { background: #dce7dd; color: #243b30; }
button.danger { background: var(--red); color: #fff; }
button.danger:hover { background: #862923; }
button:disabled, button:disabled:hover {
  background: #e7ebe5;
  color: #616c63;
  cursor: not-allowed;
  box-shadow: none;
}
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, a:focus-visible,
tr[tabindex]:focus-visible { outline: 3px solid #245c43; outline-offset: 3px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  border-color: var(--visual-field-border);
  border-radius: 9px;
  background-color: #fff;
  color: var(--ink);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):disabled,
select:disabled, textarea:disabled {
  background-color: #edf1eb;
  color: #5c6d61;
  border-color: #bcc7bb;
}
input::placeholder, textarea::placeholder { color: #637366; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
label > span { color: var(--ink-soft); font-weight: 600; }
::selection { background: #cde3cf; color: #1a402c; }

/* The navigation becomes a quiet side rail; green denotes the active destination. */
.app-shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  min-height: 0;
  padding: 27px 17px 20px;
  background: var(--visual-sidebar);
  color: var(--ink);
}
.side-brand { gap: 12px; padding: 0 8px 24px; }
.side-brand .brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 13px;
  background: #245c43;
  font-size: 14px;
  font-weight: 650;
}
.side-brand strong { color: #244431; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.side-brand small { color: #566d5c; font-size: 12px; }
.sidebar .nav-section { color: #586f5e; padding: 17px 13px 8px; font-size: 12px; font-weight: 500; }
body .sidebar .tabs { gap: 5px; }
.sidebar button.tab-btn {
  min-height: 46px;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #405c49;
  font-size: 15px;
  font-weight: 550;
}
.sidebar button.tab-btn:hover { background: #dbe6dc; color: #1c4931; }
.sidebar button.tab-btn.active {
  background: #245c43;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}
.sidebar button.tab-btn.active:hover { background: #194630; }
.nav-symbol { width: 19px; height: 19px; flex: 0 0 19px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sidebar :focus-visible { outline-color: #245c43; }
.sidebar button.tab-btn.active:focus-visible { outline-color: #245c43; }
.sidebar-foot { border-top-color: #cbd7c9; padding-top: 17px; font-size: 12px; color: #566d5c; }
.sidebar .user-badge { color: #34503f; font-size: 13px; font-weight: 600; }

/* A calm page frame, without an extra white toolbar band. */
.workspace .topbar {
  min-height: 90px;
  padding: 19px 32px;
  border-bottom: 1px solid #e2e9df;
  background: var(--canvas);
  backdrop-filter: none;
}
.period { gap: 16px; }
.period h1 { font-size: 23px; font-weight: 650; letter-spacing: -0.025em; }
.period p { font-size: 13px; }
.period input { width: 158px; min-height: 42px; }
.top-status { font-size: 12px; font-weight: 600; padding: 3px 10px; }
.toolbar { gap: 8px; }
.toolbar button { min-height: 42px; font-size: 14px; }
#logoutBtn { background: transparent; color: #4f6657; }
#logoutBtn:hover { background: #e4ece2; }
.workspace .layout, .workspace .layout.expenses-mode:not(.single-column) {
  max-width: 1540px;
  padding: 29px 32px 40px;
}
.overview-headline { margin-bottom: 23px; }
.overview-headline h2 { max-width: 850px; font-size: 28px; font-weight: 650; line-height: 1.25; letter-spacing: -0.027em; }
.overview-headline p { max-width: 75ch; margin-top: 8px; font-size: 15px; line-height: 1.55; }
.panel-title h2, .section-head h2, .panel-head h2 { font-weight: 650; letter-spacing: -0.02em; }
.next-step-panel {
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid #e5d7b8;
  border-radius: 14px;
  background: #fbf5e9;
  box-shadow: none;
}
.next-step-panel h3 { font-size: 17px; font-weight: 650; color: #674b20; }
.next-step-panel p { margin-top: 4px; color: #78613c; font-size: 14px; }
.next-step-panel[data-tone="ok"] { background: #edf5eb; border-color: #c3d6bf; }
.next-step-panel[data-tone="ok"] h3 { color: #2b5439; }
.next-step-panel[data-tone="ok"] p { color: #4a6653; }

/* Preserve metric content/states; let the factual revenue lead the row. */
.metric-strip.hero-card-grid {
  gap: 13px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 16px;
}
.metric-strip .hero-card, .metric-strip button.hero-card {
  min-width: 0;
  min-height: 139px;
  padding: 21px 22px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--visual-panel-shadow);
  text-align: left;
}
.metric-strip .hero-card > span { font-size: 14px; color: #4c6154; font-weight: 600; }
.metric-strip .hero-card strong { margin-top: 10px; font-size: 29px; font-weight: 650; line-height: 1.2; letter-spacing: -0.03em; }
.metric-strip .hero-card small { margin-top: 9px; color: #5c6d61; font-weight: 400; }
.metric-strip button.hero-card:hover { background: #f8fbf6; }
.metric-strip .hero-card.revenue { background: #245c43; color: #fff; }
.metric-strip .hero-card.revenue > span { color: #e2efe1; }
.metric-strip .hero-card.revenue strong { color: #fff; }
.metric-strip .hero-card.revenue small { color: #d0e3d2; }
.metric-strip button.hero-card.revenue:hover { background: #194630; }
.metric-strip .hero-card.is-incomplete { background: #fdfaf3; }
.metric-strip .hero-card.is-incomplete strong { color: #795a22; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.metric-strip button.hero-card.is-incomplete:hover { background: #faf1df; }
.metric-help { margin: 0 0 25px; padding-left: 2px; color: #5c6d61; }

/* Content surfaces share one restrained, borderless elevation. */
.overview-primary-grid, .overview-bottom-grid { gap: 21px; }
.overview-primary-grid { grid-template-columns: minmax(0, 1.9fr) minmax(290px, .75fr); margin-bottom: 21px; }
.overview-panel, .entry-panel, .comparison-card, .month-flow, .stats-grid {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--visual-panel-shadow);
}
.overview-panel-head { min-height: 65px; padding: 20px 22px 12px; }
.overview-panel-head h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.overview-panel-head > span { font-weight: 400; }
.attention-panel { padding-bottom: 6px; }
.attention-panel .attention-list { padding: 0 22px 18px; }
.attention-panel .attention-item { padding: 14px 0; border-color: #e4e9df; }
.attention-item strong { font-weight: 600; }
.attention-item span { margin-top: 5px; color: #5c6d61; line-height: 1.55; }
.attention-mark { border-radius: 9px; }
.trend-controls { padding: 0 22px; gap: 13px; }
.trend-head { padding-bottom: 16px; }
.trend-legend { padding: 13px 22px 7px; }
.segmented { gap: 3px; padding: 4px; border: 0; border-radius: 10px; background: #edf2eb; }
.segmented button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: #4c6454; font-size: 13px; font-weight: 600; padding: 7px 11px; }
.segmented button.active { background: #fff; color: #245c43; box-shadow: 0 1px 4px rgba(30, 60, 39, .12); }
.segmented button:hover { background: #e0eadd; }
.segmented button.active:hover { background: #fff; }
.trend-venue-wrap label { font-weight: 500; }
.trend-venue-wrap select { border-color: #91a092; border-radius: 8px; }
.trend-line-current { stroke: #327554; stroke-width: 2.75; }
.trend-line-previous { stroke: #87968a; stroke-width: 1.75; }
.trend-grid { stroke: #e7ede3; }
.trend-data-details { padding: 0 22px 20px; }
.trend-data-details summary { font-weight: 550; }
.trend-note { padding-right: 22px; padding-left: 22px; }
.summary-list.dense { padding: 4px 22px 20px; }
.summary-bar-track { background: #eaf0e7; border-radius: 4px; }
.summary-bar-track i { background: #729976; border-radius: 4px; }

/* Tables and forms: quiet separators, generous cells, unmistakable focus. */
.table-wrap { border-color: #e0e7df; border-radius: 12px; background: #fff; }
thead th { background: #eff4ec; color: #4c6351; font-weight: 600; }
th, td { border-color: #e5ebe2; }
tbody td { padding-top: 13px; padding-bottom: 13px; }
tbody tr:hover td { background: #f5f8f1; }
tbody tr.assess-good td { background: #f1f7f2; }
tbody tr.assess-bad td { background: #fdf3f2; }
tbody tr.selected td { background: #e1eddf; }
.total-row td { background: #edf4e9; color: #2b4936; font-weight: 600; }
.total-row:hover td { background: #e6efdf; }
.branch-panel th { font-size: 13px; padding: 12px 17px; }
.branch-panel td { padding: 14px 17px; }
.profit-cell.is-incomplete { font-size: 13px; font-weight: 500; }
.metric-value-note { color: #796137; font-weight: 400; font-size: 12px; }
.entry-panel { padding: 23px; }
.panel-head { margin-bottom: 18px; }
.expense-template-toolbar { padding-bottom: 13px; border-bottom: 1px solid #e0e7df; }
.expense-advanced { border-color: #e0e7df; }
.expense-template-toolbar summary, .expense-advanced summary { font-weight: 550; }
.expense-filters { gap: 12px; padding: 17px; border: 0; border-radius: 12px; background: #eaf0e6; }
.section-head { margin-bottom: 17px; }
.stats-grid { overflow: hidden; }
.stats-grid .metric { padding: 18px 20px; }
.stats-grid .metric strong { font-size: 23px; font-weight: 650; letter-spacing: -0.025em; }
.comparison-card { padding: 23px; }
.comparison-card strong { font-size: 27px; font-weight: 650; letter-spacing: -0.025em; }
.report-card-grid .report-card { border-radius: 12px; }
.month-flow { padding: 20px 23px; }
.month-steps { gap: 9px; }
.month-steps button { gap: 8px; padding: 11px 15px; }
.month-steps button span { font-size: 12px; font-weight: 400; }
.app-dialog { border-radius: 16px; border: 0; box-shadow: 0 20px 65px rgba(25, 50, 32, .2); }
.app-dialog::backdrop { background: rgba(29, 48, 33, .38); }
.dialog-head h2 { font-weight: 650; letter-spacing: -0.025em; }
.login-card { border-radius: 16px; }
.soft-note { border-radius: 12px; }

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 216px minmax(0, 1fr); }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .side-brand { gap: 9px; }
  .side-brand strong { font-size: 14px; }
  .side-brand small { font-size: 11px; }
  .workspace .topbar { padding: 16px 23px; gap: 12px; }
  .workspace .layout, .workspace .layout.expenses-mode:not(.single-column) { padding: 24px 23px 35px; }
  .overview-primary-grid, .overview-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-strip .hero-card, .metric-strip button.hero-card { padding: 18px 16px; }
  .metric-strip .hero-card strong { font-size: 24px; }
  .metric-strip .hero-card.is-incomplete strong { font-size: 19px; }
  .period { gap: 9px; }
  .toolbar { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { height: auto; padding: 15px 20px; }
  .side-brand { padding: 0 0 12px; }
  .side-brand strong { font-size: 16px; }
  .side-brand small { font-size: 12px; }
  .mobile-section-nav > span { color: #48634f; }
  .workspace .topbar { min-height: 0; }
  .workspace .layout.expenses-mode:not(.single-column) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .sidebar { padding: 14px 16px; }
  .side-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
  .workspace .topbar { padding: 15px 16px; }
  .period h1 { font-size: 20px; }
  .period input { width: 148px; }
  .toolbar button { font-size: 13px; padding: 10px; }
  .workspace .layout, .workspace .layout.expenses-mode:not(.single-column) { padding: 24px 14px 32px; }
  .overview-headline h2 { font-size: 24px; }
  .overview-headline p { font-size: 14px; }
  .next-step-panel { gap: 13px; padding: 17px; margin-bottom: 17px; }
  .next-step-panel h3 { font-size: 17px; }
  .next-step-panel p { font-size: 13px; }
  .metric-strip.hero-card-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip .hero-card, .metric-strip button.hero-card { min-height: 137px; padding: 16px 13px; border: 0; border-radius: 12px; }
  .metric-strip .hero-card:nth-child(-n + 2), .metric-strip .hero-card:nth-child(2) { border: 0; }
  .metric-strip .hero-card > span { font-size: 13px; }
  .metric-strip .hero-card strong { font-size: 21px; }
  .metric-strip .hero-card.is-incomplete strong { font-size: 18px; line-height: 1.3; }
  .metric-strip .hero-card small { font-size: 12px; line-height: 1.45; }
  .metric-help { margin-bottom: 20px; font-size: 12px; }
  .overview-panel-head { gap: 9px; padding: 18px 16px 12px; }
  .overview-panel-head h3 { font-size: 17px; }
  .trend-controls { padding: 0 16px; }
  .segmented button { padding: 8px 7px; font-size: 13px; min-height: 38px; }
  .trend-metrics button, .trend-metrics button:nth-child(even), .trend-metrics button:nth-last-child(-n + 2) { border: 0; }
  .trend-legend { padding: 13px 16px 7px; }
  .trend-data-details { padding: 0 16px 17px; }
  .attention-panel .attention-list { padding: 0 16px 14px; }
  .entry-panel { padding: 20px; }
  .stats-grid .metric { padding: 15px; }
  .stats-grid .metric strong { font-size: 20px; }
  .expense-filters { padding: 13px; gap: 10px; }
  .summary-list.dense { padding: 4px 16px 17px; }
  .month-flow { padding: 17px; }
  .app-dialog { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* GS-027 Guests: one readable month story within the existing Green visual system. */
#tab-guests .panel-title-row { align-items: start; gap: 20px; margin-bottom: 25px; }
#tab-guests .guest-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 10px; }
#tab-guests .guest-export-feedback { margin: -10px 0 25px; max-width: 95ch; }
#tab-guests .guest-export-feedback p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
#tab-guests #guestExportStatus[data-state="running"], #tab-guests #guestExportStatus[data-state="warning"] { color: var(--amber); }
#tab-guests #guestExportStatus[data-state="error"] { color: var(--red); }
#tab-guests #guestExportStatus[data-state="done"] { color: var(--green); }
#tab-guests #guestExportDownload { display: inline-block; margin-top: 9px; color: var(--green); text-underline-offset: 3px; font-size: 15px; }
#tab-guests #guestIntro { max-width: 75ch; }
#tab-guests .guest-month-summary { margin-bottom: 30px; }
#tab-guests #guestHeadline { margin: 0; font-size: 27px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
#tab-guests .guest-coverage { margin: 10px 0 22px; max-width: 80ch; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
#tab-guests .guest-coverage[data-tone="partial"] { color: #79591e; }
#tab-guests .guest-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 22px 0; border-block: 1px solid var(--line-strong); }
#tab-guests .guest-kpis > div { min-width: 0; padding: 0 25px; }
#tab-guests .guest-kpis > div:first-child { padding-left: 0; }
#tab-guests .guest-kpis > div + div { border-left: 1px solid var(--line); }
#tab-guests .guest-kpis dt { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
#tab-guests .guest-kpis dd { margin: 7px 0; font-size: 32px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
#tab-guests .guest-kpis p { margin: 0; font-size: 14px; color: var(--ink-soft); }
#tab-guests .guest-unit-note { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
#tab-guests .guest-section { margin-top: 30px; }
#tab-guests .section-head h3 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
#tab-guests .guest-composition { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; list-style: none; background: var(--surface); border-radius: 14px; box-shadow: var(--visual-panel-shadow); }
#tab-guests .guest-group { min-width: 0; padding: 19px 15px; }
#tab-guests .guest-group + .guest-group { border-left: 1px solid var(--line); }
#tab-guests .guest-group details { min-width: 0; }
#tab-guests .guest-group summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); min-height: 98px; }
#tab-guests .guest-group summary > span { display: inline; }
#tab-guests .guest-group strong { display: block; padding-top: 10px; font-size: 26px; line-height: 1.25; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#tab-guests .guest-group.total strong { color: var(--green); }
#tab-guests .guest-group p { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
#tab-guests .guest-equation { margin: 14px 0 0; max-width: 85ch; color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }
#tab-guests .guest-attention { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#tab-guests .guest-signal { padding: 20px 22px; min-width: 0; border: 1px solid #d6dfd2; border-radius: 14px; background: #f7faf4; }
#tab-guests .guest-signal.pending { background: #f7f6ef; border-color: #e2dcc9; }
#tab-guests .guest-signal summary { cursor: pointer; min-height: 60px; font-size: 16px; font-weight: 550; color: var(--ink); }
#tab-guests .guest-signal strong { display: block; margin-top: 9px; font-size: 22px; font-weight: 650; }
#tab-guests .guest-signal.pending strong { color: #79591e; }
#tab-guests .guest-signal p { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
#tab-guests .guest-footnote { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 95ch; }
#tab-guests .table-wrap { margin-top: 12px; }
#tab-guests table { width: 100%; }
#tab-guests caption { text-align: left; padding: 14px 17px; font-size: 14px; color: var(--ink-soft); background: var(--surface); }
#tab-guests th, #tab-guests td { padding: 14px 17px; vertical-align: top; font-size: 15px; white-space: normal; }
#tab-guests th[scope="row"] { text-align: left; font-weight: 600; background: transparent; color: var(--ink); }
#tab-guests .guest-branch-table { min-width: 830px; }
#tab-guests .guest-branch-table td:nth-child(4) { min-width: 160px; }
#tab-guests .guest-disclosure { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 14px; }
#tab-guests .guest-disclosure > summary { cursor: pointer; min-height: 25px; font-size: 18px; font-weight: 600; }
#tab-guests .guest-disclosure > p { max-width: 90ch; margin: 18px 0 0; }
#tab-guests .guest-money table { min-width: 630px; }
#tab-guests .guest-method table { min-width: 520px; }
#tab-guests summary:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; border-radius: 3px; }

/* Owner-authorized guest drilldown: inline, searchable, and never silently truncated. */
#tab-guests button.guest-kpi-open { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font-size: inherit; line-height: inherit; font-weight: inherit; text-align: left; }
#tab-guests button.guest-kpi-open:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
#tab-guests .guest-kpis .link-btn { margin-top: 10px; min-height: 36px; font-size: 14px; }
#tab-guests button.guest-group-open, #tab-guests button.guest-signal-open { display: block; width: 100%; min-height: 0; border: 0; padding: 0; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; }
#tab-guests button.guest-group-open:hover, #tab-guests button.guest-signal-open:hover { color: var(--green); }
#tab-guests button.guest-group-open:hover > span, #tab-guests button.guest-signal-open:hover > span { text-decoration: underline; text-underline-offset: 4px; }
#tab-guests button.guest-group-open:disabled, #tab-guests button.guest-signal-open:disabled { color: var(--ink-soft); background: transparent; }
#tab-guests .guest-group-open > span { font-size: 14px; font-weight: 500; line-height: 1.5; }
#tab-guests .guest-group-open > strong { min-height: 46px; }
#tab-guests .guest-group details { margin-top: 13px; }
#tab-guests .guest-group summary { min-height: 0; font-size: 13px; }
#tab-guests .guest-signal-open > span { font-size: 16px; line-height: 1.5; font-weight: 550; }
#tab-guests .guest-signal-open > strong { margin-top: 8px; }
#tab-guests .guest-signal-open > small { display: block; margin-top: 8px; color: var(--green); font-size: 14px; }
#tab-guests .guest-signal details { margin-top: 16px; }
#tab-guests .guest-signal summary { min-height: 0; font-size: 14px; font-weight: 500; }
#tab-guests .guest-details { margin: 26px 0 32px; padding: 23px; background: var(--surface); border-radius: 14px; box-shadow: var(--visual-panel-shadow); scroll-margin-top: 95px; }
#tab-guests .guest-details-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
#tab-guests .guest-details-heading h3 { margin: 0; font-size: 23px; line-height: 1.35; }
#tab-guests .guest-details-heading p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
#tab-guests .guest-list-controls { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(190px, 1fr) minmax(220px, 1.1fr); gap: 16px; margin-top: 22px; }
#tab-guests .guest-list-controls label { display: grid; gap: 7px; min-width: 0; }
#tab-guests .guest-list-controls label > span { font-size: 14px; }
#tab-guests .guest-list-controls input, #tab-guests .guest-list-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; font-size: 15px; }
#tab-guests .guest-detail-table { min-width: 950px; }
#tab-guests .guest-detail-table th[scope="row"] { width: 24%; }
#tab-guests .guest-detail-table th, #tab-guests .guest-detail-table td { overflow-wrap: anywhere; }
#tab-guests .guest-detail-phone { margin: 7px 0 5px; font-weight: 400; }
#tab-guests .guest-detail-phone a { display: inline-block; padding: 3px 0; color: var(--green); text-underline-offset: 3px; }
#tab-guests .guest-detail-muted, #tab-guests .guest-detail-delta { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 400; }
#tab-guests .guest-detail-values { display: block; font-variant-numeric: tabular-nums; }
#tab-guests .guest-detail-delta.increase { color: var(--green); }
#tab-guests .guest-list-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 17px; }
#tab-guests .guest-list-footer p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1280px) {
  #tab-guests .guest-composition { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tab-guests .guest-group:nth-child(4) { border-left: 0; }
  #tab-guests .guest-group:nth-child(n+4) { border-top: 1px solid var(--line); }
  #tab-guests .guest-list-controls { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  #tab-guests .panel-title-row { gap: 12px; flex-wrap: wrap; }
  #tab-guests .guest-toolbar-actions { justify-content: flex-start; width: 100%; }
  #tab-guests .guest-toolbar-actions button { min-height: 44px; }
  #tab-guests #guestHeadline { font-size: 23px; }
  #tab-guests .guest-kpis { grid-template-columns: minmax(0, 1fr); padding: 0; }
  #tab-guests .guest-kpis > div, #tab-guests .guest-kpis > div:first-child { padding: 17px 0; }
  #tab-guests .guest-kpis > div + div { border-left: 0; border-top: 1px solid var(--line); }
  #tab-guests .guest-kpis dd { font-size: 29px; }
  #tab-guests .guest-kpis dt { font-size: 16px; }
  #tab-guests .guest-composition { grid-template-columns: minmax(0, 1fr); }
  #tab-guests .guest-group { padding: 16px 18px; }
  #tab-guests .guest-group + .guest-group { border-left: 0; border-top: 1px solid var(--line); }
  #tab-guests .guest-group summary { min-height: 0; font-size: 15px; }
  #tab-guests .guest-group strong { display: inline; padding-top: 0; margin-left: 12px; font-size: 23px; }
  #tab-guests .guest-group-open > strong { min-height: 0; }
  #tab-guests .guest-attention { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #tab-guests .guest-signal { padding: 18px; }
  #tab-guests .guest-disclosure { padding: 18px 15px; }
  #tab-guests .guest-disclosure > summary { font-size: 17px; }
  #tab-guests .guest-disclosure .table-wrap { margin-inline: -2px; }
  #tab-guests th, #tab-guests td { padding: 12px 14px; }
  #tab-guests .guest-details { padding: 19px 15px; scroll-margin-top: 15px; }
  #tab-guests .guest-details-heading { flex-wrap: wrap; gap: 13px; }
  #tab-guests .guest-details-heading h3 { font-size: 21px; }
  #tab-guests .guest-list-controls input, #tab-guests .guest-list-controls select { font-size: 16px; }
  #tab-guests .guest-detail-table, #tab-guests .guest-detail-table tbody, #tab-guests .guest-detail-table caption { display: block; min-width: 0; width: 100%; }
  #tab-guests .guest-detail-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #tab-guests .guest-detail-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-strong); }
  #tab-guests .guest-detail-table tr:last-child { border-bottom: 0; }
  #tab-guests .guest-detail-table th[scope="row"], #tab-guests .guest-detail-table td { display: block; width: 100%; border: 0; padding: 9px 14px; }
  #tab-guests .guest-detail-table td[data-label]::before { display: block; margin-bottom: 5px; content: attr(data-label); font-size: 13px; color: var(--muted); font-weight: 500; }
  #tab-guests .guest-detail-table th[scope="row"] > strong { font-size: 17px; }
}
