:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #203531;
  background: #f4f7f5;
  font-synthesis: none;
  --deep: #173c37;
  --teal: #146751;
  --green: #23735c;
  --ink: #223731;
  --muted: #5d6f67;
  --line: #dbe5dd;
  --soft: #eef5ef;
  --paper: #fff;
  --radius: 13px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #cb8744; outline-offset: 3px;
}
button:disabled { cursor: wait; opacity: .58; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,p,dl,dd { margin: 0; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 25; background: #fff; padding: 10px 16px; border-radius: 5px; }
.skip-link:focus { top: 8px; }
.loading { margin: 18vh auto; padding: 32px; text-align: center; color: var(--muted); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--deep); color: #eef7ed; z-index: 6; overflow: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.sidebar .brand { margin: 29px 21px 25px; }
.brand-mark { width: 39px; height: 41px; display: grid; flex: none; place-items: center; background: #d3ed9f; color: #204439; font-size: 22px; font-weight: 800; border-radius: 11px 4px 11px 4px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .07em; font-weight: 700; }
.brand small { margin-top: 4px; font-size: 11px; color: #bdd0c5; letter-spacing: .12em; }
.sidebar nav { flex: 1; padding: 0 14px 14px; }
.nav-group { margin: 16px 0 8px 12px; font-size: 11px; font-weight: 600; color: #aabfb2; letter-spacing: .09em; }
.nav-item { display: flex; align-items: center; min-height: 39px; gap: 10px; border-radius: 8px; padding: 8px 11px; margin: 3px 0; color: #e8f0e9; font-weight: 500; font-size: 14px; }
.nav-item:hover { background: #254d45; text-decoration: none; }
.nav-item.active { background: #d8ecb9; color: #204738; font-weight: 700; }
.nav-dot { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; }
.nav-item.active .nav-dot { background: #387052; border-color: #387052; }
.sidebar-foot { display: flex; align-items: center; gap: 9px; padding: 17px 24px 22px; border-top: 1px solid #3b5c53; font-size: 12px; color: #cee0d2; }
.signal { flex: none; width: 8px; height: 8px; display: inline-block; background: #bce191; border-radius: 50%; }
.work { min-width: 0; }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border-bottom: 1px solid var(--line); padding: 11px clamp(18px,3.1vw,48px); }
.top-left,.top-actions,.identity,.button-row,.section-actions,.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb b { font-weight: 600; color: var(--ink); }
.crumb span { color: #9aaba0; margin: 0 7px; }
.identity { padding-left: 12px; border-left: 1px solid var(--line); font-size: 13px; }
.avatar { width: 29px; height: 29px; display: inline-grid; place-items: center; background: #e4eddf; color: #365641; border-radius: 50%; font-size: 12px; font-weight: 750; }
.top-actions .button { min-height: 32px; font-size: 12px; padding: 5px 10px; }
.mobile-menu,.scrim { display: none; }
.content { max-width: 1640px; margin: auto; padding: 29px clamp(18px,3.1vw,48px) 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(26px,2.4vw,35px); line-height: 1.35; letter-spacing: -.03em; font-weight: 720; }
.page-head p, .section-lead, .hint, .muted { color: var(--muted); }
.page-head p { font-size: 13px; line-height: 1.7; margin-top: 5px; }
.button, a.button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 37px; padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.4; border: 1px solid #c9d7cd; background: #fff; color: #31483d; white-space: nowrap; }
.button:hover { background: #f0f6ef; text-decoration: none; border-color: #94af9c; }
.button.primary { background: var(--teal); border-color: var(--teal); color: white; }
.button.primary:hover { background: #0d5543; }
.button.danger { background: #9d4438; border-color: #9d4438; color: #fff; }
.button.link { background: transparent; border-color: transparent; color: var(--teal); }
.small-action { background: transparent; color: #12654e; padding: 3px 2px; border: 0; font-size: 12px; font-weight: 650; white-space: nowrap; }
.small-action:hover { text-decoration: underline; }
.small-action.warn { color: #9a463e; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 16px; overflow: hidden; }
.panel.pad { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 15px; flex-wrap: wrap; }
h2 { font-size: 17px; font-weight: 700; line-height: 1.5; }
h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
.section-lead,.hint { font-size: 12px; line-height: 1.7; }
.section-lead { margin-top: 3px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px 15px; min-width: 0; }
.kpi.accent { background: #e6f2de; border-color: #cddec1; }
.kpi-label { display: flex; align-items: center; gap: 7px; color: #53685b; font-size: 12px; font-weight: 650; }
.kpi strong { display: block; font-size: clamp(22px,2.25vw,34px); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 9px 0 5px; word-break: break-word; }
.kpi p { font-size: 11px; color: #59705f; line-height: 1.6; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.32fr) minmax(275px,.85fr); gap: 16px; }
.queue-row { color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e8eee8; padding: 12px 20px; font-size: 13px; }
.queue-row:hover { text-decoration: none; background: #f5f9f4; }
.queue-row strong { font-size: 13px; }
.queue-row small { color: var(--muted); margin-left: 9px; font-size: 11px; }
.queue-total { font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; color: #315c48; white-space: nowrap; }
.queue-total span { margin-left: 6px; font-size: 13px; color: #648471; }
.bar-row { padding: 6px 20px; }
.bar-row:last-child { padding-bottom: 19px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: #4b6054; }
.bar-label b { color: #253e32; }
progress { width: 100%; height: 6px; border: 0; border-radius: 4px; overflow: hidden; color: #47845d; background: #eaf0e8; }
progress::-webkit-progress-bar { background: #eaf0e8; border-radius: 4px; }
progress::-webkit-progress-value { background: #47845d; border-radius: 4px; }
progress::-moz-progress-bar { background: #47845d; border-radius: 4px; }
.filterbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 15px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 16px; }
label.field { display: flex; flex-direction: column; gap: 6px; color: #3e5648; font-size: 13px; font-weight: 600; min-width: 0; }
.filterbar label.field { font-size: 12px; min-width: 112px; max-width: 260px; }
.filterbar label.search { flex: 1 1 180px; max-width: 380px; }
input:not([type=checkbox]):not([type=radio]),select,textarea { width: 100%; min-height: 37px; padding: 7px 10px; border: 1px solid #cbd8cd; border-radius: 7px; background: #fff; color: #233a2c; font-size: 13px; font-weight: 450; }
select { padding-right: 19px; }
input::placeholder,textarea::placeholder { color: #65756a; }
textarea { resize: vertical; min-height: 84px; line-height: 1.65; }
input[type=checkbox],input[type=radio] { accent-color: var(--teal); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374f3d; }
.check input { width: 17px; height: 17px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; line-height: 1.5; }
th { font-weight: 600; font-size: 12px; color: #5b6c60; background: #f3f7f2; white-space: nowrap; }
th,td { padding: 11px 14px; border-top: 1px solid #e6ede6; vertical-align: middle; }
th:first-child,td:first-child { padding-left: 20px; }
th:last-child,td:last-child { padding-right: 20px; }
tbody tr:hover { background: #f9fbf8; }
.cell-title { display: block; min-width: 96px; font-weight: 620; }
.cell-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.num,.mono { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.cell-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; min-width: max-content; }
.badge { display: inline-flex; align-items: center; border-radius: 14px; padding: 3px 9px; background: #e9eeea; color: #4d6151; font-size: 11px; line-height: 1.6; font-weight: 620; white-space: nowrap; }
.badge.green { background: #e0f1e4; color: #22633e; }
.badge.amber { background: #fbefd7; color: #7b541b; }
.badge.red { background: #f9e7e0; color: #8e4439; }
.badge.blue { background: #e3edf5; color: #355a76; }
.empty { padding: 27px 20px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pagination { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 10px 19px; border-top: 1px solid #e6ede6; color: var(--muted); font-size: 12px; }
.pagination .button { min-height: 28px; padding: 4px 9px; font-size: 12px; }
.tabs { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 13px; border-radius: 7px; color: #506255; font-size: 13px; font-weight: 600; }
.tabs a[aria-current=page] { background: #dceada; color: #235b3c; }
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(310px,100%),1fr)); gap: 16px; }
.hotel-card { padding: 22px; }
.hotel-card .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.hotel-card h2 { font-size: 20px; }
.definition { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 18px; margin: 15px 0; }
.definition div { min-width: 0; }
.definition dt { color: #617166; font-size: 12px; margin-bottom: 5px; }
.definition dd { font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.definition .wide { grid-column: 1/-1; }
.section-note,.alert { margin: 14px 0; padding: 10px 13px; border-radius: 7px; background: #eef4ea; color: #415b44; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.alert.error { background: #fcebe6; color: #843e33; border: 1px solid #f2d3c8; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.alert[hidden],.toast[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1/-1; }
.form-block { max-width: 780px; }
.form-block .button-row { margin-top: 18px; }
.stack { display: grid; gap: 15px; }
.long { white-space: pre-line; overflow-wrap: anywhere; }
.proof { max-width: 100%; max-height: 230px; object-fit: contain; }
.proof-area { margin: 10px 0 16px; }
.proof-area img { display: block; margin: 10px 0; }
.updated { margin-top: 22px; color: var(--muted); font-size: 11px; }
.export-options { margin: 0 0 19px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; }
.export-options legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 650; color: #3e5648; }
.export-choice { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.export-choice:has(input:checked) { border-color: #75a17c; background: #f0f6eb; }
.export-choice small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
dialog { width: min(620px,calc(100% - 28px)); max-height: calc(100dvh - 45px); padding: 0; border: 1px solid #d3ded3; border-radius: 14px; color: var(--ink); box-shadow: 0 24px 80px #132c2940; }
dialog::backdrop { background: #142e2880; }
.dialog-heading { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; z-index: 1; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.close { border: 0; border-radius: 7px; background: #f0f4ef; color: #415749; font-size: 23px; width: 32px; height: 32px; line-height: 1; }
.dialog-body { padding: 18px 21px; }
.dialog-body .definition { margin-top: 0; }
.dialog-body .section-note:first-child { margin-top: 0; }
.dialog-foot { border-top: 1px solid var(--line); display: flex; padding: 12px 20px; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.dialog-body .table-wrap { border: 1px solid var(--line); border-radius: 7px; }
.dialog-body .table-wrap td,.dialog-body .table-wrap th { padding: 7px 9px; }
.dialog-body h3 { margin-bottom: 8px; }
.toast { position: fixed; z-index: 12; right: 20px; bottom: 22px; padding: 12px 16px; max-width: min(380px,calc(100vw - 40px)); border-radius: 8px; color: #fff; background: #245641; font-size: 13px; box-shadow: 0 8px 24px #20372c30; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(900px,100%); display: grid; grid-template-columns: .88fr 1.12fr; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: white; box-shadow: 0 15px 60px #1e3c2d0b; }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 45px; padding: 32px; background: var(--deep); color: #eff7eb; }
.login-intro h1 { font-size: clamp(30px,3.6vw,48px); line-height: 1.25; letter-spacing: -.04em; }
.login-intro p { font-size: 14px; line-height: 1.8; color: #c6d9cb; margin-top: 13px; }
.login-intro .signal { margin-right: 6px; }
.login-foot { font-size: 12px; color: #d0e1ce; }
.login-panel { padding: clamp(24px,4vw,46px); }
.login-panel h2 { font-size: 23px; }
.office-login { display: grid; gap: 16px; margin-top: 24px; }
.role-list { display: grid; gap: 8px; margin: 17px 0 13px; }
.role-option { border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; border-radius: 9px; padding: 12px 13px; cursor: pointer; }
.role-option:has(input:checked) { background: #eff6e9; border-color: #80a77f; }
.role-option strong { font-size: 14px; }
.role-option small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.login-panel .button.primary { width: 100%; min-height: 42px; margin-top: 15px; }
@media (min-width: 1550px) { .shell { grid-template-columns: 252px minmax(0,1fr); } }
@media (max-width: 1100px) { .shell { grid-template-columns: 197px minmax(0,1fr); } .topbar,.content { padding-left: 20px; padding-right: 20px; } .overview-grid { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 870px) {
  .shell { display: block; }
  .sidebar { position: fixed; width: 235px; transform: translateX(-102%); visibility: hidden; }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-open .scrim { display: block; position: fixed; z-index: 5; inset: 0; width: 100%; height: 100%; background: #1631286b; border: 0; }
  .mobile-menu { display: inline-flex; width: 34px; height: 32px; justify-content: center; align-items: center; }
  .topbar { min-height: 55px; }
  .content { padding-top: 23px; }
}
@media (max-width: 620px) {
  .topbar,.content { padding-left: 14px; padding-right: 14px; }
  .identity { border: 0; padding-left: 0; } .identity .actor-name,.crumb .crumb-parent,.crumb span { display: none; }
  .topbar,.top-actions,.top-left { gap: 7px; }
  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kpi { padding: 13px; } .kpi strong { font-size: 23px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 15px; }
  .filterbar,.section-heading,.panel.pad { padding: 13px; }
  .filterbar { gap: 9px; } .filterbar label.field { flex: 1 1 122px; max-width: none; min-width: 0; }
  .section-actions { gap: 5px; }
  .queue-row { padding: 11px 14px; } .queue-row small { display: block; margin: 3px 0 0; }
  .login-card { grid-template-columns: 1fr; }
  .login-intro { gap: 19px; padding: 22px; } .login-intro h1 { font-size: 28px; } .login-intro h1 br { display: none; } .login-intro p,.login-foot { display: none; }
  .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; }
  .dialog-body { padding: 15px; } .dialog-heading,.dialog-foot { padding: 12px 15px; }
}
@media print {
  body { background: #fff; } .shell,.login,.toast,.skip-link { display: none !important; }
  dialog[open] { display: block; position: static; margin: 0 auto; width: 100%; max-width: 175mm; max-height: none; padding: 0; box-shadow: none; border: 0; }
  dialog::backdrop { background: transparent; } .dialog-foot,.dialog-heading button,.dialog-body button { display: none !important; }
}
