:root {
  --green:#087c54;
  --green-press:#066542;
  --green-soft:#e6f2ec;
  --ink:#1f2a25;
  --sub:#5f6b65;
  --line:#e6e2d8;
  --paper:#f6f4ef;
  --white:#fff;
  --warn:#b26a00;
  --warn-bg:#fdf1dc;
  --danger:#b23b2e;
  --danger-bg:#fbebe7;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:15px/1.6 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; font-variant-numeric:tabular-nums; }
[hidden] { display:none!important; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { outline-offset:3px; }
:focus-visible { outline:2px solid var(--green); }
::selection { background:var(--green-soft); color:var(--ink); }
html { scrollbar-color:#a8b8ae var(--paper); }
input,textarea { caret-color:var(--green); }
button { min-height:38px; padding:7px 14px; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); cursor:pointer; line-height:1.5; }
button:hover { background:var(--green-soft); }
button:disabled { cursor:not-allowed; color:var(--sub); background:#eeeae2; }
button.primary { background:var(--green); border-color:var(--green); color:var(--white); }
button.primary:hover { background:var(--green-press); }
button.primary:disabled { background:#e6e2d8; border-color:var(--line); color:var(--sub); }
button.danger,.danger { color:var(--danger); }
button.small { font-size:14px; padding:7px 12px; }
a { color:var(--green); text-underline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1,h2 { font-size:22px; line-height:1.4; font-weight:650; }
h3 { font-size:17px; font-weight:600; }
.muted,.section-note,.dialog-note { color:var(--sub); }
.small { font-size:13px; }
.error,.dialog-error { color:var(--danger); }
.positive { color:var(--green); }
.room-thumb { width:88px; height:60px; object-fit:cover; border-radius:8px; display:block; margin-bottom:8px; }
.cover-preview { display:block; width:100%; max-height:260px; object-fit:contain; border-radius:8px; background:var(--paper); margin:16px 0; }
.cover-remove { display:flex; align-items:center; gap:8px; margin-top:16px; }
.cover-remove input { width:18px; min-height:18px; }
label { display:grid; gap:7px; font-size:14px; }
input,select,textarea { border:1px solid #b6b9af; border-radius:8px; padding:8px 10px; min-height:38px; background:var(--white); min-width:0; width:100%; color:var(--ink); }
input::placeholder,textarea::placeholder { color:var(--sub); }
textarea { min-height:90px; resize:vertical; }
.login-wrap { display:grid; place-items:center; min-height:100vh; min-height:100svh; padding:48px 24px; border-top:4px solid var(--green); }
.login-shell { width:min(440px,100%); }
.login-intro-copy { display:none; }
.login-brand { display:flex; align-items:center; gap:14px; margin:0 0 28px 8px; }
.login-mark { color:var(--green); flex-shrink:0; }
.login-brand strong { font-size:23px; font-weight:650; letter-spacing:1px; }
.login-brand strong span { font-size:16px; letter-spacing:0; margin-left:4px; }
.login-brand p { color:var(--sub); font-size:12px; margin-top:2px; letter-spacing:1px; }
.login-panel { padding:36px; border:1px solid var(--line); border-radius:16px; background:var(--white); display:grid; gap:22px; }
.login-heading { margin-bottom:6px; }
.login-panel h1 { font-size:25px; letter-spacing:-.5px; }
.login-heading p { font-size:14px; color:var(--sub); margin-top:8px; }
.login-field { display:grid; gap:9px; }
.login-field label { font-size:13px; font-weight:600; }
.login-field input { min-height:50px; padding:12px 14px; border-color:#d4d9d3; border-radius:10px; background:#fafbf9; font-size:16px; }
.login-field input:focus { background:var(--white); border-color:var(--green); outline:2px solid var(--green-soft); outline-offset:1px; }
.login-field input::placeholder { font-size:14px; }
.login-panel .error { font-size:13px; background:var(--danger-bg); padding:10px 12px; border-radius:8px; overflow-wrap:anywhere; }
.login-panel .error:empty { display:none; }
.login-input { position:relative; }
.login-input input { padding-left:44px; }
.field-icon { position:absolute; left:14px; top:15px; color:var(--sub); pointer-events:none; }
.login-input:focus-within > .field-icon { color:var(--green); }
.password-field input { padding-right:56px; }
.password-field button { position:absolute; right:4px; top:4px; bottom:4px; min-height:42px; padding:7px 12px; border:0; background:transparent; color:var(--green); font-size:13px; }
.password-field button:hover { background:var(--green-soft); }
.password-field button { display:grid; place-items:center; min-width:44px; }
.eye-slash { display:none; }
[aria-pressed="true"] .eye-slash { display:block; }
.login-panel .login-submit { min-height:50px; border-radius:10px; font-weight:600; font-size:16px; }
.login-resident { border-top:1px solid var(--line); padding-top:22px; margin-top:2px; font-size:12px; color:var(--sub); }
.login-resident span { display:block; font-weight:600; color:var(--ink); font-size:13px; margin-bottom:5px; }
.login-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 16px; margin-top:24px; font-size:12px; color:var(--sub); }
.login-footer a { color:var(--sub); }
@media(min-width:900px) {
  .login-wrap { border-top:0; padding:48px; }
  .login-shell { width:min(1000px,100%); display:grid; grid-template-columns:1fr 1fr; }
  .login-intro { display:flex; flex-direction:column; justify-content:space-between; padding:48px; background:#0c4936; color:var(--white); border-radius:16px 0 0 16px; }
  .login-brand { margin:0; }
  .login-mark { color:var(--green); }
  .login-brand p { color:#c7ded3; }
  .login-intro-copy { display:block; padding:88px 0 12px; }
  .login-intro-copy h2 { font-size:36px; line-height:1.55; letter-spacing:-.5px; font-weight:600; }
  .login-intro-copy p { margin-top:24px; font-size:13px; color:#c7ded3; }
  .login-panel { padding:48px; border:0; border-radius:0 16px 16px 0; align-content:center; }
  .login-footer { grid-column:1 / -1; }
}
@media(max-width:480px) {
  .login-wrap { padding:32px 20px; }
  .login-panel { padding:28px 24px; border-radius:16px; }
  .login-brand { margin-left:4px; margin-bottom:24px; }
  .login-panel h1 { font-size:23px; }
}
aside { position:fixed; inset:0 auto 0 0; width:200px; background:var(--white); border-right:1px solid var(--line); padding:30px 18px; display:flex; flex-direction:column; }
.brand { display:block; color:var(--ink); font-size:23px; font-weight:600; text-decoration:none; padding:0 10px; }
.brand span { display:block; font-size:14px; font-weight:400; color:var(--sub); margin-top:4px; }
nav { display:grid; gap:8px; margin-top:40px; }
nav button { background:transparent; border:0; text-align:left; padding:11px 14px; }
nav button.active { color:var(--green); background:var(--green-soft); font-weight:600; }
.count { display:inline-block; margin-left:8px; min-width:21px; padding:0 5px; border-radius:10px; background:var(--danger); color:#fff; font-size:12px; text-align:center; }
.aside-bottom { margin-top:auto; display:grid; gap:12px; font-size:12px; }
.aside-bottom button { text-align:left; border:0; padding-left:10px; }
.aside-bottom a { padding-left:10px; }
main { margin-left:200px; padding:32px 40px 56px; max-width:1600px; }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
header p { font-size:13px; margin-top:5px; }
.summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:32px; }
.stat { text-align:left; padding:20px; border:0; background:var(--white); }
.stat strong { display:block; font-size:32px; line-height:1.3; margin-bottom:5px; font-weight:600; }
.stat span { color:var(--sub); font-size:14px; }
.stat.warn { border-left:4px solid var(--warn); }
.schedule { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:18px; }
.schedule-column { background:var(--white); border-radius:8px; min-width:0; }
.schedule-column h3 { padding:18px 20px; border-bottom:1px solid var(--line); }
.schedule-row { padding:16px 20px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.schedule-row:last-child { border-bottom:0; }
.schedule-row strong { display:block; font-size:20px; font-weight:600; }
.schedule-row p { margin-top:4px; font-size:14px; }
.toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:16px; margin-bottom:20px; }
.filters { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.filters label { max-width:180px; }
.filters input,.filters select { font-size:14px; }
.quick-dates,.chips,.actions,.segments { display:flex; flex-wrap:wrap; gap:8px; }
.quick-dates { margin-bottom:18px; }
.quick-dates button.selected,.segments button.selected { background:var(--green-soft); color:var(--green); border-color:var(--green); }
.segments { margin-bottom:20px; }
.chips { margin:12px 0 16px; }
.chips button { font-size:13px; background:var(--paper); }
.section-note,.dialog-note { font-size:13px; margin-bottom:18px; }
.table-wrap { overflow:auto; background:var(--white); border-radius:8px; }
table { width:100%; border-collapse:collapse; white-space:nowrap; text-align:left; font-size:14px; }
th { padding:13px 16px; color:var(--sub); font-size:13px; background:#faf9f6; font-weight:500; }
td { padding:16px; border-top:1px solid var(--line); }
td strong { font-weight:600; }
td small { display:block; color:var(--sub); font-size:13px; margin-top:4px; }
td.wrap { white-space:normal; min-width:160px; max-width:400px; overflow-wrap:anywhere; }
.badge { display:inline-block; padding:3px 9px; border-radius:6px; font-size:13px; background:#eeeae2; color:var(--sub); }
.badge.booked,.badge.approved,.badge.enabled { color:var(--green); background:var(--green-soft); }
.badge.pending { color:#785000; background:var(--warn-bg); }
.badge.disabled,.badge.rejected { color:var(--danger); background:var(--danger-bg); }
.switch { display:inline-flex; align-items:center; gap:8px; color:var(--sub); }
.switch::before { content:''; width:24px; height:14px; border:1px solid var(--sub); border-radius:8px; background:#eeeae2; }
.switch.on { color:var(--green); }
.switch.on::before { background:var(--green); border-color:var(--green); }
.empty { padding:44px 20px; text-align:center; color:var(--sub); }
.empty button { display:block; margin:18px auto 0; }
.pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; margin-top:20px; color:var(--sub); font-size:13px; }
.toast { position:fixed; top:22px; right:24px; max-width:min(420px,calc(100vw - 32px)); z-index:20; padding:12px 18px; background:var(--green-soft); color:var(--green); border-radius:8px; opacity:0; pointer-events:none; transition:opacity 150ms; }
.toast.show { opacity:1; }
.toast.error { background:var(--danger-bg); color:var(--danger); }
dialog { width:min(650px,calc(100% - 32px)); max-height:90vh; padding:26px; border:0; border-radius:8px; color:var(--ink); box-shadow:0 16px 48px #00000024; }
dialog::backdrop { background:#1f2a2566; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.full { grid-column:1/-1; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.dialog-error { margin-top:14px; }
.adjust-preview { font-size:17px; margin-top:16px; }
.skeleton { background:var(--white); border-radius:8px; padding:0 20px; }
.skeleton div { height:72px; background:#eeeae2; background-clip:content-box; padding:24px 0; border-bottom:1px solid var(--line); }
@media(max-width:1100px) {
  main { padding-inline:26px; }
  .summary { gap:12px; }
}
@media(max-width:759px) {
  aside { position:static; width:100%; padding:20px 18px 12px; border-right:0; border-bottom:1px solid var(--line); }
  .brand { padding:0; font-size:21px; }
  .brand span { display:inline; margin-left:14px; }
  nav { display:flex; overflow:auto; margin-top:18px; gap:4px; }
  nav button { flex-shrink:0; white-space:nowrap; padding:10px 12px; }
  .aside-bottom { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
  .aside-bottom button,.aside-bottom a { padding-left:0; }
  main { margin-left:0; padding:24px 18px 40px; }
  .summary { gap:8px; }
  .stat { padding:14px 10px; }
  .stat strong { font-size:28px; }
  .stat span { font-size:13px; }
  .stat.warn { border-left-width:4px; }
  .schedule { grid-template-columns:1fr; }
  .filters { width:100%; }
  .filters label { max-width:none; width:calc(50% - 6px); }
  .filters .search-label { width:100%; }
  .table-wrap:not(.wide) { background:transparent; overflow:visible; }
  .table-wrap:not(.wide) table,.table-wrap:not(.wide) tbody { display:block; width:100%; }
  .table-wrap:not(.wide) thead { display:none; }
  .table-wrap:not(.wide) tr { display:block; margin-bottom:14px; border-radius:8px; background:var(--white); padding:12px 16px; }
  .table-wrap:not(.wide) td { display:grid; grid-template-columns:90px minmax(0,1fr); gap:8px; padding:10px 0; border:0; white-space:normal; min-width:0; max-width:none; overflow-wrap:anywhere; }
  .table-wrap:not(.wide) td::before { content:attr(data-label); color:var(--sub); font-size:13px; }
  .table-wrap:not(.wide) td small { grid-column:2; margin:0; }
  .table-wrap:not(.wide) td .actions { min-width:0; }
  .form-grid { grid-template-columns:1fr; }
  .toast { top:14px; right:16px; }
  dialog { padding:20px; }
}
@media(prefers-reduced-motion:reduce) { .toast { transition:none; } }
