:root {
  color-scheme: light;
  --paper: #f5f5f0;
  --surface: #fffefa;
  --surface-soft: #f8f8f3;
  --ink: #2d3932;
  --muted: #758078;
  --quiet: #9ba29b;
  --line: #e5e6de;
  --green: #365b4b;
  --green-strong: #244a3c;
  --green-soft: #eaf0e9;
  --gold: #aa8751;
  --gold-soft: #f4efe4;
  --red: #a86e5c;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--paper); }
button, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.brandbar { height: 72px; display: flex; align-items: center; gap: 15px; padding: 0 30px; color: #f6f4ec; background: linear-gradient(108deg,#28473c,#365749 60%,#304a40); position: relative; overflow: hidden; }
.brandbar::after { content: ""; position: absolute; width: 44%; height: 50px; right: 7%; top: 10px; opacity: .22; background: repeating-linear-gradient(176deg,transparent 0 11px,#d8ccb0 12px 13px,transparent 14px 23px); clip-path: polygon(0 58%, 12% 34%, 28% 48%, 43% 16%, 58% 44%, 73% 22%, 89% 53%, 100% 28%, 100% 100%, 0 100%); }
.brand-mark { width: 35px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-left: 8px; border-left: 2px solid #c4a36a; position: relative; z-index: 1; }
.brand-mark span { height: 2px; background: #d1c4a7; border-radius: 2px; transform: skewY(-22deg); }
.brand-mark span:nth-child(2) { width: 14px; opacity: .7; }
.brand-title { display: flex; flex-direction: column; gap: 3px; z-index: 1; }
.brand-title strong { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.brand-title span { color: #d0d8d0; font-size: 10px; letter-spacing: .14em; }
.brand-rule { width: 1px; height: 28px; margin-left: 5px; background: #72867a; z-index: 1; }
.brand-state { display: flex; align-items: center; gap: 8px; color: #dbe2dc; font-size: 10px; line-height: 1.45; z-index: 1; }
.brand-state i, .foot-dot { width: 7px; height: 7px; border-radius: 50%; background: #abc3a6; box-shadow: 0 0 0 3px #ffffff14; }
.brand-state b { color: #efe8d7; font-weight: 500; }
.workspace { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 220px minmax(0,1fr); }
.sidebar { display: flex; flex-direction: column; min-height: calc(100vh - 72px); padding: 26px 15px 18px; border-right: 1px solid var(--line); background: #f8f8f4; }
.side-label { display: flex; justify-content: space-between; align-items: center; margin: 0 11px 13px; color: #919890; font-size: 10px; letter-spacing: .08em; }
.side-label span { color: #b1a17d; font: 9px ui-monospace,monospace; letter-spacing: .14em; }
.nav-list { display: grid; gap: 4px; }
.nav-link { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 6px; color: #657269; background: transparent; text-align: left; font-size: 12px; cursor: pointer; transition: background .16s,color .16s; }
.nav-link:hover { color: var(--green-strong); background: #edf1eb; }
.nav-link.is-active { color: var(--green-strong); background: #e7eee6; font-weight: 600; }
.nav-link.is-active::before { content: ""; width: 2px; height: 20px; margin-left: -12px; background: #b3925d; }
.nav-link:disabled { cursor: not-allowed; opacity: .45; }
.nav-glyph { width: 17px; color: #718679; font-size: 16px; text-align: center; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: auto 8px 2px; color: #8a938b; font-size: 9px; }
.sidebar-foot > span:nth-child(2) { margin: 0 -4px; color: #c4c7be; }
.main-area { min-width: 0; }
.topbar { height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px,3vw,42px); border-bottom: 1px solid var(--line); background: #fafaf6; }
.breadcrumb { color: #969d96; font-size: 10px; }
.breadcrumb span { margin: 0 9px; color: #c0c5bd; }
.breadcrumb strong { color: #526057; font-weight: 600; }
.role-picker { display: flex; align-items: center; gap: 9px; color: #8a938c; font-size: 10px; }
.role-picker select, .inline-filter select { min-height: 31px; padding: 0 28px 0 10px; border: 1px solid #dfe2d9; border-radius: 5px; color: #47574c; background: var(--surface); font-size: 10px; }
.data-scopebar { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(165px,.75fr) minmax(260px,1.5fr); align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 15px; border: 1px solid #e4e8df; border-radius: 6px; background: #fbfcf8; }
.data-scopebar > div { display: flex; flex-direction: column; gap: 3px; }
.scope-eyebrow { color: #99a399; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.data-scopebar strong { color: #52665a; font: 600 12px "Songti SC", "Noto Serif SC", serif; }
.data-scopebar label { display: flex; flex-direction: column; gap: 4px; color: #89938a; font-size: 9px; }
.data-scopebar select, .data-scopebar input, .inline-filter input { min-height: 31px; max-width: 100%; padding: 0 9px; border: 1px solid #dfe4dc; border-radius: 5px; color: #47574c; background: #fffefa; font-size: 10px; }
.cutoff-hint { color: #8e8a78; font-size: 9px; line-height: 1.5; }
.scope-quality { margin: 0 0 16px; border-color: #e5e9df; color: #758178; background: #f4f7f1; }
.scope-quality b { color: #5d735f; }
.scope-quality.is-warning { border-color: #e9dfcd; background: #fbf7ee; }
.scope-quality.is-warning b { color: #806d4a; }
.content-wrap { max-width: 1550px; margin: 0 auto; padding: 20px clamp(18px,3vw,42px) 36px; }
.demo-notice { display: flex; align-items: center; gap: 8px; min-height: 35px; margin-bottom: 23px; padding: 0 12px; border: 1px solid #e5e4d9; border-radius: 5px; color: #84795d; background: #f5f2e8; font-size: 10px; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: #ba995c; }
.view-panel { display: none; }
.view-panel.is-visible { display: block; animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.eyebrow { color: #87948b; font: 9px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .14em; }
.eyebrow span { color: var(--gold); }
.page-heading h1 { margin: 6px 0 3px; color: #34463b; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 28px; font-weight: 600; letter-spacing: .025em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.date-chip { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #e2e3da; border-radius: 5px; color: #46554b; background: var(--surface); font-size: 11px; }
.date-icon { color: #819181; font-size: 14px; }
.date-chip b { margin-left: 2px; padding: 3px 6px; border-radius: 3px; color: #7c6846; background: var(--gold-soft); font-size: 9px; font-weight: 500; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.metric-card { min-width: 0; padding: 17px 17px 15px; border: 1px solid #e5e6de; border-top: 2px solid #b1c0b2; border-radius: 6px; background: var(--surface); box-shadow: 0 2px 8px #243e2e06; }
.metric-highlight { border-top-color: #b49662; background: #fffdf8; }
.metric-label { display: flex; align-items: center; gap: 7px; color: #758078; font-size: 10px; }
.metric-label i { padding: 2px 5px; border-radius: 3px; color: #63806d; background: var(--green-soft); font-size: 8px; font-style: normal; }
.metric-value { margin-top: 11px; color: #315542; font: 600 32px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: -.06em; }
.metric-value small { margin-left: 6px; color: #65766a; font: 400 11px sans-serif; letter-spacing: 0; }
.metric-caption { margin-top: 10px; color: #9ba29b; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,.9fr); gap: 13px; margin-bottom: 14px; }
.panel { min-width: 0; margin-bottom: 14px; border: 1px solid #e4e6de; border-radius: 6px; background: var(--surface); box-shadow: 0 2px 9px #243e2e05; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px 10px; }
.panel-heading h2 { margin: 0; color: #3c4b41; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 15px; font-weight: 600; }
.panel-heading p { margin: 5px 0 0; color: #949c94; font-size: 9px; line-height: 1.5; }
.legend { display: flex; align-items: center; gap: 6px; color: #8b958d; font-size: 9px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: #63856f; }
.trend-chart-wrap { width: 100%; padding: 0 12px; }
.trend-chart { width: 100%; height: 214px; overflow: visible; }
.chart-gridline { stroke: #ebede6; stroke-width: 1; }
.chart-axis-label { fill: #a0a69f; font: 9px ui-monospace,monospace; }
.chart-date-label { fill: #79867d; font: 9px ui-monospace,monospace; }
.chart-area { fill: url(#trendFill); }
.chart-line { fill: none; stroke: #4f795f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fffefa; stroke: #4f795f; stroke-width: 2; }
.chart-value { fill: #42634d; font: 600 9px ui-monospace,monospace; }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 17px 13px; color: #a0a69e; font-size: 8px; }
.analysis-panel { display: flex; flex-direction: column; }
.soft-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 4px; color: #66806a; background: #eef3ec; font: 9px ui-monospace,monospace; }
.analysis-copy { min-height: 81px; padding: 6px 17px 11px; color: #59685e; font-size: 11px; line-height: 1.8; }
.analysis-copy strong { color: #385842; font-weight: 600; }
.analysis-divider { height: 1px; margin: auto 17px 12px; background: var(--line); }
.data-quality-callout { display: flex; align-items: flex-start; gap: 10px; margin: 0 13px 13px; padding: 11px 12px; border: 1px solid #e8e4d7; border-radius: 5px; background: #f8f5ec; }
.quality-icon { width: 17px; height: 17px; flex: 0 0 17px; display: grid; place-items: center; border: 1px solid #c2a774; border-radius: 50%; color: #987a4f; font: italic 12px Georgia,serif; }
.data-quality-callout strong { color: #6c6047; font-size: 10px; font-weight: 600; }
.data-quality-callout p { margin: 5px 0 0; color: #89816f; font-size: 9px; line-height: 1.6; }
.session-overview { margin-bottom: 13px; }
.quiet-link { align-self: center; padding: 3px 0; border: 0; color: #64806a; background: transparent; font-size: 10px; cursor: pointer; }
.quiet-link span { margin-left: 4px; color: #9e865e; }
.session-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 3px 17px 16px; }
.session-compare-card { padding: 12px; border: 1px solid #eaebe5; border-radius: 5px; background: #fdfdfa; }
.session-card-head { display: flex; justify-content: space-between; gap: 12px; }
.session-card-head strong { color: #48584c; font-size: 11px; }
.session-card-head span { color: #98a097; font-size: 9px; }
.session-line { display: flex; align-items: center; gap: 10px; margin-top: 11px; color: #738078; font-size: 9px; }
.session-line-label { width: 52px; flex: 0 0 52px; }
.bar-track { height: 7px; flex: 1; overflow: hidden; border-radius: 8px; background: #e9ede7; }
.bar-fill { height: 100%; border-radius: inherit; background: #7d9a81; }
.bar-fill.booked { background: #c5d2c4; }
.session-line-value { width: 38px; text-align: right; color: #4b6452; font: 10px ui-monospace,monospace; }
.source-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.source-chip { min-width: 0; display: flex; justify-content: space-between; gap: 6px; padding: 9px 10px; border: 1px solid #e5e7df; border-radius: 5px; background: #fafaf6; }
.source-chip span:first-child { overflow: hidden; color: #77827a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-chip span:last-child { color: #a18352; font-size: 9px; white-space: nowrap; }
.source-chip.is-ready span:last-child { color: #5d7d64; }
.page-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 19px; color: #a0a69e; font-size: 8px; }
.inline-filter { display: flex; align-items: center; gap: 8px; color: #879189; font-size: 10px; }
.inline-filter input { min-height: 31px; }
.monthly-summary { margin: 0; padding: 0 17px 12px; color: #78847a; font-size: 10px; line-height: 1.6; }
.row-count { align-self: center; color: #8e988f; font-size: 9px; white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
thead { background: #f5f6f1; }
th { height: 35px; padding: 0 14px; color: #818b82; text-align: left; font-size: 9px; font-weight: 500; }
td { height: 41px; padding: 0 14px; border-top: 1px solid #eef0ea; color: #657168; font-size: 10px; }
.strong-cell { color: #425449; font-weight: 600; }
.mono-cell { color: #839086; font: 9px ui-monospace,monospace; }
.status-cell { color: #8a744d; }
.good-cell { color: #5d8065; }
.report-preview pre { margin: 0; padding: 14px 18px 18px; color: #59665e; font: 11px/2 "Microsoft YaHei",sans-serif; white-space: pre-wrap; }
.session-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 3px 17px 16px; }
.inline-note { display: flex; gap: 12px; margin: 2px 0 15px; padding: 12px 14px; border: 1px solid #e7e4d8; border-radius: 5px; color: #7c786a; background: #f8f6ef; font-size: 10px; line-height: 1.6; }
.inline-note b { color: #766747; white-space: nowrap; }
.state-pill { padding: 6px 9px; border: 1px solid #dfe7dc; border-radius: 5px; color: #64806a; background: #f4f7f1; font-size: 9px; white-space: nowrap; }
.state-wait { border-color: #e8e2d3; color: #8c7953; background: #faf7ef; }
.state-warn { border-color: #eadbd4; color: #9c6e60; background: #fbf3ef; }
.sms-status-panel { display: flex; align-items: center; gap: 14px; padding: 17px; background: linear-gradient(105deg,#f4f7f1,#fffefa); }
.sms-status-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid #dbe5db; border-radius: 7px; color: #52715c; background: #edf3ec; font-size: 23px; }
.sms-status-panel h2 { margin: 4px 0; color: #48594d; font-family: "Songti SC",serif; font-size: 14px; }
.sms-status-panel p { margin: 0; color: #8a948c; font-size: 9px; line-height: 1.6; }
.sms-status-panel .state-pill { margin-left: auto; }
.empty-state { padding: 25px 16px 28px; color: #8b958c; text-align: center; }
.empty-state strong { color: #647168; font-size: 11px; font-weight: 600; }
.empty-state p { margin: 7px auto 0; max-width: 440px; color: #9aa29a; font-size: 9px; line-height: 1.7; }
.source-list { padding: 0 17px 12px; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; border-top: 1px solid #eef0ea; }
.source-row-main { min-width: 0; }
.source-row strong, .source-row small { display: block; }
.source-row strong { color: #526158; font-size: 10px; font-weight: 600; }
.source-row small { margin-top: 4px; color: #9aa29a; font-size: 9px; }
.quality-state { flex: 0 0 auto; color: #987e53; font-size: 9px; }
.quality-state.is-ready { color: #618168; }
.security-note { margin: 0 0 14px; padding: 13px 15px; border: 1px solid #e8e0d2; border-left: 3px solid #b5945d; border-radius: 5px; background: #faf7f0; }
.security-note strong { color: #705f42; font-size: 10px; }
.security-note p { margin: 5px 0 0; color: #89816f; font-size: 9px; line-height: 1.65; }
.role-yes { color: #5e8065; font-weight: 600; }
.role-no { color: #a3a8a0; }
.more-links { display: grid; gap: 9px; }
.more-links button { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 13px; border: 1px solid #e4e6de; border-radius: 6px; background: var(--surface); text-align: left; cursor: pointer; }
.more-links button:hover { border-color: #cbd7ca; background: #f8faf6; }
.more-links button > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; color: #5f7d66; background: #edf3ec; font-size: 15px; font-weight: 500; }
.more-links button span { display: flex; flex-direction: column; gap: 4px; }
.more-links button strong { color: #536258; font-size: 10px; }
.more-links button small { color: #9aa29a; font-size: 9px; }
.more-links button > i { margin-left: auto; color: #aa9166; font-style: normal; }
.operations-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 2px 17px 15px; }
.operations-filters label { display: grid; gap: 5px; color: #7d887f; font-size: 9px; }
.operations-filters input, .operations-filters select { min-height: 34px; padding: 0 9px; border: 1px solid #dfe4dc; border-radius: 5px; color: #6f7a70; background: #f8f8f4; font: inherit; }
.operations-filters button:disabled, .operations-action-list button:disabled { opacity: .55; cursor: not-allowed; }
.operations-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.operations-action-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 17px 14px; }
.operations-action-list button { min-height: 34px; padding: 0 11px; border: 1px solid #dfe5dc; border-radius: 5px; color: #718075; background: #f7f8f3; font-size: 9px; }
.mobile-nav { display: none; }

@media (min-width: 1500px) { .content-wrap { padding-top: 24px; } .metric-card { padding: 20px; } }
@media (max-width: 1080px) {
  .workspace { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.35fr) minmax(245px,.9fr); }
  .content-wrap { padding-right: 22px; padding-left: 22px; }
  .data-scopebar { grid-template-columns: minmax(125px,.8fr) minmax(135px,.8fr) minmax(180px,1.4fr); gap: 10px; padding-right: 12px; padding-left: 12px; }
  .metric-card { padding-right: 13px; padding-left: 13px; }
  .metric-value { font-size: 28px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); background: #f6f6f1; }
  .brandbar { height: 61px; gap: 11px; padding: 0 17px; }
  .brandbar::after { right: 15%; width: 52%; height: 43px; top: 9px; opacity: .13; }
  .brand-mark { width: 28px; height: 32px; }
  .brand-title strong { font-size: 14px; letter-spacing: .05em; }
  .brand-title span { font-size: 8px; }
  .brand-rule { height: 23px; margin-left: 1px; }
  .brand-state { gap: 7px; font-size: 9px; }
  .workspace { display: block; min-height: calc(100vh - 61px); }
  .sidebar { display: none; }
  .main-area { padding-bottom: 4px; }
  .topbar { height: 43px; padding: 0 16px; }
  .breadcrumb { font-size: 9px; }
  .breadcrumb span { margin: 0 6px; }
  .role-picker { gap: 5px; font-size: 8px; }
  .role-picker select { min-height: 27px; max-width: 111px; padding: 0 20px 0 7px; font-size: 8px; }
  .content-wrap { padding: 12px 13px 19px; }
  .demo-notice { min-height: 33px; margin-bottom: 9px; padding: 6px 9px; font-size: 9px; line-height: 1.55; }
  .data-scopebar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 8px; padding: 10px; }
  .scope-eyebrow { font-size: 7px; }
  .data-scopebar strong { font-size: 10px; }
  .data-scopebar label { font-size: 8px; }
  .data-scopebar select, .data-scopebar input { width: 100%; min-height: 33px; font-size: 9px; }
  .cutoff-hint { align-self: center; font-size: 8px; }
  .scope-quality { margin-bottom: 12px; font-size: 8px; }
  .page-heading { align-items: flex-start; margin-bottom: 15px; }
  .page-heading h1 { margin-top: 5px; font-size: 25px; }
  .page-heading p { max-width: 255px; font-size: 9px; line-height: 1.55; }
  .eyebrow { font-size: 8px; }
  .date-chip { gap: 5px; padding: 7px; font-size: 9px; }
  .date-chip b { display: none; }
  .date-icon { font-size: 12px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
  .metric-card { min-height: 91px; padding: 12px 12px 10px; border-radius: 6px; }
  .metric-label { gap: 5px; font-size: 9px; }
  .metric-label i { font-size: 7px; }
  .metric-value { margin-top: 10px; font-size: 27px; }
  .metric-value small { font-size: 9px; }
  .metric-caption { margin-top: 8px; font-size: 8px; line-height: 1.4; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 9px; margin-bottom: 10px; }
  .panel { margin-bottom: 10px; border-radius: 6px; }
  .panel-heading { gap: 8px; padding: 13px 13px 8px; }
  .panel-heading h2 { font-size: 13px; }
  .panel-heading p { margin-top: 4px; font-size: 8px; }
  .legend { font-size: 8px; }
  .trend-chart-wrap { padding: 0 7px; }
  .trend-chart { height: 192px; }
  .chart-foot { padding: 0 13px 11px; font-size: 7px; }
  .analysis-copy { min-height: 0; padding: 3px 13px 12px; font-size: 10px; }
  .analysis-divider { margin: 0 13px 10px; }
  .data-quality-callout { margin: 0 10px 10px; padding: 10px; }
  .data-quality-callout strong { font-size: 9px; }
  .data-quality-callout p { font-size: 8px; }
  .session-compare, .session-cards { grid-template-columns: 1fr; gap: 8px; padding: 2px 11px 11px; }
  .session-compare-card { padding: 10px; }
  .session-card-head strong { font-size: 10px; }
  .session-line { margin-top: 9px; font-size: 8px; }
  .source-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
  .source-chip { padding: 8px; }
  .source-chip span:first-child, .source-chip span:last-child { font-size: 8px; }
  .page-foot { flex-direction: column; gap: 4px; font-size: 7px; }
  .inline-filter { align-items: flex-end; flex-direction: column; gap: 4px; font-size: 8px; }
  .inline-filter select, .inline-filter input { min-height: 29px; max-width: 120px; font-size: 8px; }
  .monthly-summary { padding: 0 13px 10px; font-size: 9px; }
  th { height: 33px; padding: 0 10px; font-size: 8px; }
  td { height: 38px; padding: 0 10px; font-size: 9px; }
  .report-preview pre { padding: 10px 13px 13px; font-size: 9px; }
  .inline-note { gap: 8px; padding: 10px; font-size: 9px; }
  .sms-status-panel { align-items: flex-start; gap: 9px; padding: 12px; }
  .sms-status-mark { width: 31px; height: 31px; flex-basis: 31px; font-size: 19px; }
  .sms-status-panel h2 { font-size: 12px; }
  .sms-status-panel p { font-size: 8px; }
  .sms-status-panel .state-pill { margin: 0 0 0 auto; padding: 5px 6px; font-size: 8px; }
  .empty-state { padding: 20px 12px 22px; }
  .empty-state strong { font-size: 10px; }
  .empty-state p { font-size: 8px; }
  .source-list { padding: 0 12px 9px; }
  .source-row { min-height: 48px; gap: 8px; }
  .source-row strong { font-size: 9px; }
  .source-row small { max-width: 245px; font-size: 8px; line-height: 1.5; }
  .quality-state { font-size: 8px; }
  .security-note { padding: 11px 12px; }
  .security-note strong, .security-note p { font-size: 8px; }
  .more-links button { min-height: 55px; }
  .operations-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .operations-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-filters label, .operations-filters input, .operations-filters select, .operations-filters button { width: 100%; min-width: 0; }
  .mobile-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e1e5dc; background: #fffefaed; backdrop-filter: blur(12px); }
  .mobile-link { min-width: 0; min-height: 47px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 7px; color: #89938b; background: transparent; font-size: 8px; cursor: pointer; }
  .mobile-link span { font-size: 15px; line-height: 1; }
  .mobile-link.is-active { color: #42644d; background: #edf3eb; font-weight: 600; }
  .mobile-link:disabled { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.auth-actions { display: flex; align-items: center; gap: 8px; }
.auth-user { max-width: 160px; overflow: hidden; color: #65736a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.auth-button { min-height: 34px; padding: 0 12px; border: 1px solid #cbd9ca; border-radius: 8px; color: #35533c; background: #eef4eb; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.auth-button:hover { background: #e3eddf; }
.login-dialog { width: min(92vw, 390px); padding: 0; border: 1px solid #dce4d9; border-radius: 18px; color: #29372e; background: #fffefa; box-shadow: 0 24px 80px #25352c35; }
.login-dialog::backdrop { background: #1f2b2380; backdrop-filter: blur(3px); }
.login-dialog form { display: grid; gap: 14px; padding: 25px; }
.login-dialog h2 { margin: 0; font-size: 22px; }
.login-dialog p { margin: -7px 0 4px; color: #738078; font-size: 13px; line-height: 1.6; }
.login-dialog label { display: grid; gap: 6px; color: #5e6b62; font-size: 12px; }
.login-dialog input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #d8e0d5; border-radius: 8px; color: #29372e; background: #fff; font: inherit; }
.login-error { min-height: 18px; color: #a44738; font-size: 12px; }
.login-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.login-actions .quiet-link { border: 0; background: transparent; cursor: pointer; }
.admin-state { padding: 13px 16px; color: #66756a; font-size: 12px; line-height: 1.6; }
.admin-panel[hidden], #admin-user-content[hidden], #admin-user-form[hidden] { display: none; }
.admin-panel .table-scroll { padding-bottom: 2px; }
.admin-panel table { min-width: 680px; }
.admin-row-select { min-width: 88px; min-height: 40px; padding: 0 8px; border: 1px solid #dce4d9; border-radius: 7px; color: #415448; background: #fffefa; font: inherit; }
.admin-status-control { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #647269; }
.admin-status-control input { width: 18px; height: 18px; accent-color: #55775e; }
.admin-row-actions { display: flex; align-items: center; gap: 10px; }
.admin-row-actions .auth-button { min-height: 40px; }
.admin-row-actions .quiet-link { min-height: 44px; padding: 0 5px; white-space: nowrap; }
.admin-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto; align-items: end; gap: 10px; margin: 15px 16px 17px; padding: 15px; border: 1px solid #e7ebe3; border-radius: 10px; background: #fafbf7; }
.admin-form > div strong { color: #43584a; font-size: 12px; }
.admin-form > div p { margin: 5px 0 0; color: #89948b; font-size: 10px; line-height: 1.5; }
.admin-form label { display: grid; gap: 6px; color: #68756b; font-size: 10px; }
.admin-form input, .admin-form select { width: 100%; min-width: 0; min-height: 42px; padding: 0 9px; border: 1px solid #dce4d9; border-radius: 7px; color: #34483b; background: #fffefa; font: inherit; font-size: 11px; }
.admin-form > button { min-height: 42px; white-space: nowrap; }
.admin-form .login-error { grid-column: 1 / -1; min-height: 0; }
.admin-form .login-error.is-error { color: #a44738; }
.login-dialog label:focus-within input, .admin-form :focus-visible, .admin-row-select:focus-visible, .admin-row-actions button:focus-visible, .auth-button:focus-visible { outline: 3px solid #adc6a9; outline-offset: 2px; }
.operations-result-state { min-height: 20px; margin: 0 16px 10px; color: #768178; font-size: 11px; line-height: 1.55; }
.operations-filters.compact { padding-top: 4px; }
.operations-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 2px 16px 12px; color: #768178; font-size: 10px; }
.operations-pagination button { min-height: 34px; padding: 0 10px; border: 1px solid #dfe5dc; border-radius: 6px; color: #536a5a; background: #fffefa; font: inherit; }
.operations-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.operations-filters.compact button, .operations-detail > .quiet-link { min-height: 36px; padding: 0 11px; border: 1px solid #dfe5dc; border-radius: 6px; color: #536a5a; background: #f7f8f3; font: inherit; font-size: 10px; }
.operations-detail { margin: 12px 16px 16px; padding: 14px; border: 1px solid #e6eae2; border-radius: 9px; background: #fcfcf9; }
.operations-detail-guests { margin-top: 10px; padding-top: 12px; border-top: 1px solid #e6eae2; }
.operations-detail-guests h3 { margin: 0 0 5px; color: #3f5547; font-size: 13px; }
.operations-detail > .panel-heading { padding: 0 0 9px; }
.operations-detail > .panel-heading button { min-height: 36px; padding: 0 10px; border: 1px solid #dfe5dc; border-radius: 6px; background: white; color: #6c786f; }
.operations-record-list { display: grid; gap: 8px; padding: 2px 16px 13px; }
.operations-detail .operations-record-list { padding: 0 0 10px; }
.operations-record { min-width: 0; padding: 10px 12px; border: 1px solid #e9ece6; border-radius: 7px; background: #fffefa; color: #57655b; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.operations-record p { margin: 2px 0; }
.operations-record strong { color: #3f5547; font-weight: 600; }
.operations-record .quiet-link { min-height: 40px; margin-top: 7px; }
.operations-empty-line { margin: 0; color: #879189; font-size: 11px; }
.sensitive-value { font-family: ui-monospace, Consolas, monospace; color: #8f513d; letter-spacing: .05em; }
@media (max-width: 760px) {
  .auth-actions { gap: 5px; }
  .auth-user { max-width: 70px; font-size: 9px; }
  .auth-button { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .login-dialog form { gap: 12px; padding: 20px; }
  .admin-state { padding: 12px; font-size: 11px; }
  .admin-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px; padding: 12px; }
  .admin-form > div { grid-column: 1 / -1; }
  .admin-form > button { grid-column: 1 / -1; min-height: 46px; }
  .admin-form label { font-size: 9px; }
  .admin-form input, .admin-form select { min-height: 44px; font-size: 11px; }
  .admin-row-actions { gap: 6px; }
  .admin-row-actions .auth-button { min-height: 44px; }
  .admin-row-actions .quiet-link { min-width: 70px; font-size: 9px; }
  .operations-filters.compact button { min-height: 44px; }
  .operations-result-state { margin-right: 12px; margin-left: 12px; }
  .operations-pagination { padding-right: 12px; padding-left: 12px; }
  .operations-detail { margin: 10px 12px 13px; padding: 12px; }
  .operations-detail > .panel-heading button { min-height: 42px; }
  .operations-record-list { padding-right: 12px; padding-left: 12px; }
}
.hosted-dashboard-pending .workspace{visibility:hidden}
