@layer base, components, pages, responsive;
@layer components {
  .announcement-preview { margin:18px 0; }
  .announcement-preview img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:12px; }
  .announcement-preview figcaption { margin-block-start:10px; }
  .announcement-actions { margin-block:18px; }
  #field-announcement_text { font-size:16px; line-height:1.65; }
  .announcement-queue { margin-block-end:24px; }
  .announcement-status { margin-block-start:8px; }
  .announcement-detail { align-items:center; justify-content:space-between; flex-wrap:wrap; margin-block:18px; }

  .personal-card { text-align:center; padding:20px; margin-block-end:20px; border:1px solid var(--line); border-radius:18px; background:var(--green-soft); }
  .personal-card h3 { font-size:1.35rem; margin-block:6px; overflow-wrap:anywhere; }
  .card-qr { display:block; width:min(280px,100%); height:auto; margin:16px auto; background:white; }
  .card-notice { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px 18px; margin-block-end:24px; border:1px solid var(--line); border-radius:14px; background:var(--green-soft); }
  .card-notice>div { display:flex; align-items:center; gap:10px; flex:1; min-width:200px; }
  .recovery-reasons .choice { min-height:48px; }
  #recovery-name,#recovery-phone { font-size:16px; min-height:48px; }
  form[data-form="card-recovery"] .button { min-height:48px; }
  .recovery-meta { margin-block-start:12px; }
  .recovery-item .person-copy { overflow-wrap:anywhere; }
  .recovery-alert,.demo-notice { margin-block-end:20px; flex-wrap:wrap; }
  .demo-notice > span { flex:1; min-width:200px; }
  .honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #field-personal_card_url,#field-generated_application_link { font-size:16px; }
  .invitation-hint { background:var(--green-soft); border-radius:10px; padding:12px 15px; }
  .invitation-hint summary { cursor:pointer; color:var(--green); }
  .invitation-hint .field { margin-block-start:14px; }
}
@layer base {
  :root { color-scheme: light; --bg:#f5f7f5; --paper:#fff; --ink:#22382f; --muted:#738078; --line:#e4eae5; --green:#17664c; --green-dark:#104f3b; --green-soft:#eaf3ed; --lime:#e3edc9; --orange:#ab7132; --orange-soft:#faf1e3; --red:#b34848; --red-soft:#fbeeee; --purple:#79629f; --purple-soft:#f0ecf7; --shadow:0 5px 24px #203c2d06; font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.6; font-synthesis:none; -webkit-font-smoothing:antialiased; }
  * { box-sizing:border-box; }
  body { margin:0; background:var(--bg); color:var(--ink); }
  a { color:inherit; text-decoration:none; }
  button,input,textarea,select { font:inherit; }
  button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
  button { cursor:pointer; }
  button:disabled { cursor:not-allowed; opacity:.48; }
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #63a88c; outline-offset:3px; }
  h1,h2,h3,p { margin:0; }
  h1 { font-size:1.9rem; line-height:1.4; letter-spacing:-.04em; font-weight:650; }
  h2 { font-size:1.15rem; font-weight:620; }
  h3 { font-size:1rem; font-weight:600; }
  small { font-size:.85rem; }
  svg { width:20px; height:20px; flex:none; vertical-align:middle; }
  [hidden] { display:none!important; }
  .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  .skip-link { position:fixed; inset-block-start:-100px; inset-inline-start:20px; padding:10px 20px; background:var(--green); color:white; z-index:100; }
  .skip-link:focus { inset-block-start:12px; }
  .muted { color:var(--muted); }
  .small { font-size:.86rem; }
  .strong { font-weight:600; }
  .mono { font-variant-numeric:tabular-nums; }
  .nowrap { white-space:nowrap; }
  .boot { min-height:80vh; display:grid; place-content:center; justify-items:center; gap:20px; }
  .text-link { color:var(--green); font-weight:550; }
}
@layer components {
  .brand { display:flex; align-items:center; gap:10px; }
  .brand-name { font-size:1.45rem; font-weight:720; letter-spacing:-.05em; }
  .brand-mark { width:35px; height:35px; display:grid; place-items:center; border-radius:11px; background:var(--green); color:white; }
  .brand-mark svg { width:25px; height:25px; }
  .brand-sub { font-size:.77rem; color:var(--muted); letter-spacing:.08em; }
  .button { min-height:40px; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--ink); display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 15px; font-weight:550; white-space:nowrap; transition:background .15s,border-color .15s; }
  .button:hover:not(:disabled) { background:#f0f4f0; border-color:#cbd8ce; }
  .button.primary { background:var(--green); color:white; border-color:var(--green); }
  .button.primary:hover:not(:disabled) { background:var(--green-dark); }
  .button.soft { background:var(--green-soft); color:var(--green); border-color:transparent; }
  .button.ghost { background:transparent; border-color:transparent; }
  .button.danger { background:var(--red); color:white; border-color:var(--red); }
  .button.compact { min-height:34px; padding:6px 11px; font-size:.85rem; }
  .button.wide { width:100%; }
  .icon-button { width:36px; min-height:36px; padding:7px; border:1px solid var(--line); background:white; border-radius:9px; display:inline-grid; place-items:center; color:var(--muted); }
  .icon-button:hover { background:var(--green-soft); color:var(--green); }
  .icon-button svg { width:18px; height:18px; }
  .tag { display:inline-flex; align-items:center; gap:5px; border-radius:6px; padding:3px 8px; font-size:.76rem; font-weight:500; white-space:nowrap; background:#f0f3f0; color:var(--muted); }
  .tag.green { color:var(--green); background:var(--green-soft); }
  .tag.orange { color:var(--orange); background:var(--orange-soft); }
  .tag.purple { color:var(--purple); background:var(--purple-soft); }
  .tag.red { color:var(--red); background:var(--red-soft); }
  .tag.outline { background:transparent; border:1px solid var(--line); }
  .dot { height:6px; width:6px; border-radius:50%; background:currentColor; }
  .avatar { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; flex:none; color:#466752; background:#e8efe5; font-size:.9rem; font-weight:550; }
  .avatar.berry { background:#eee7f3; color:#876c9e; }
  .avatar.sand { background:#f4eade; color:#9c8064; }
  .avatar.big { width:47px; height:47px; font-size:1.1rem; }
  .person { display:flex; align-items:center; gap:11px; min-width:0; }
  .person-copy { min-width:0; }
  .row { display:flex; align-items:center; gap:12px; }
  .row.wrap { flex-wrap:wrap; }
  .spread { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .stack { display:grid; gap:18px; }
  .panel { border:1px solid var(--line); border-radius:14px; background:var(--paper); box-shadow:var(--shadow); min-width:0; }
  .panel-head { padding:20px 23px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-block-end:1px solid var(--line); }
  .panel-body { padding:23px; }
  .panel-foot { border-block-start:1px solid var(--line); padding:14px 23px; }
  .empty { text-align:center; padding:48px 20px; display:grid; justify-items:center; gap:10px; color:var(--muted); }
  .empty-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:var(--green-soft); color:var(--green); margin-block-end:4px; }
  .empty h3 { color:var(--ink); }
  .empty p { max-width:320px; font-size:.9rem; }
  .notice { display:flex; align-items:flex-start; gap:10px; color:var(--green); padding:13px 16px; border-radius:9px; background:var(--green-soft); font-size:.88rem; }
  .notice svg { width:17px; height:17px; margin-block-start:2px; }
  .notice.orange { color:var(--orange); background:var(--orange-soft); }
  .notice.red { color:var(--red); background:var(--red-soft); }
  .field { display:grid; gap:7px; margin-block-end:19px; min-width:0; }
  .field>label, .field>legend { font-weight:550; font-size:.9rem; }
  .field .hint { font-size:.8rem; color:var(--muted); }
  input:not([type=radio]):not([type=checkbox]), select, textarea { width:100%; min-height:44px; background:white; border:1px solid #cdd8d0; border-radius:8px; padding:10px 12px; color:var(--ink); font-size:1rem; }
  input::placeholder,textarea::placeholder { color:#98a19a; font-weight:400; }
  input:user-invalid,textarea:user-invalid { border-color:var(--red); }
  textarea { resize:vertical; min-height:88px; }
  input[type=checkbox],input[type=radio] { accent-color:var(--green); width:17px; height:17px; margin:0; flex:none; }
  fieldset { border:0; padding:0; margin:0; min-width:0; }
  .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
  .form-error { color:var(--red); background:var(--red-soft); border-radius:8px; padding:11px 14px; margin-block-end:15px; }
  .form-error:empty { display:none; }
  .check-row { display:flex; align-items:center; gap:9px; font-size:.92rem; padding-block:8px; }
  .choice-row { display:flex; gap:10px; flex-wrap:wrap; }
  .choice { display:flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; font-size:.9rem; cursor:pointer; }
  .choice:has(input:checked) { background:var(--green-soft); border-color:#89b69d; color:var(--green); }
  .choice input:focus-visible { outline-offset:4px; }
  .switch-line { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 0; border-block-start:1px solid var(--line); }
  .form-footer { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding-block-start:10px; }
  .search { position:relative; width:240px; }
  .search svg { position:absolute; inset-inline-start:12px; inset-block-start:12px; width:17px; height:17px; color:var(--muted); }
  .search input { padding-inline-start:37px!important; font-size:.9rem!important; }
  .segmented { display:inline-flex; gap:3px; padding:4px; border-radius:9px; background:#edf1ed; }
  .segmented button { border:0; border-radius:6px; padding:6px 13px; color:var(--muted); background:transparent; white-space:nowrap; font-size:.86rem; }
  .segmented button.active { color:var(--ink); background:white; box-shadow:0 1px 4px #243d2d12; font-weight:550; }
  .divider { height:1px; background:var(--line); margin-block:20px; }
  .toast { position:fixed; inset-block-end:26px; inset-inline-start:50%; translate:-50% 0; z-index:100; max-width:min(560px,calc(100% - 28px)); border-radius:11px; background:#244434; color:white; padding:13px 20px; box-shadow:0 8px 30px #21392c30; font-size:.93rem; }
  .toast.error { background:#8d3d3d; }
  dialog { width:min(540px,calc(100% - 28px)); max-height:calc(100dvh - 48px); border:1px solid var(--line); border-radius:16px; padding:0; box-shadow:0 24px 100px #0c2b2430; color:var(--ink); }
  dialog:modal { overscroll-behavior:contain; }
  dialog::backdrop { background:#14291f60; overflow:hidden; overscroll-behavior:contain; backdrop-filter:blur(3px); }
  .modal-head { padding:22px 24px 18px; display:flex; align-items:center; justify-content:space-between; border-block-end:1px solid var(--line); gap:16px; }
  .modal-head h2 { font-size:1.2rem; }
  .modal-body { padding:24px; }
  .detail-list { display:grid; gap:13px; font-size:.9rem; margin-block:16px 22px; }
  .detail-list>div { display:grid; grid-template-columns:78px 1fr; gap:16px; }
  .detail-list dt { color:var(--muted); }
  .detail-list dd { margin:0; overflow-wrap:anywhere; }
  progress { appearance:none; border:0; background:#eaf0e9; border-radius:20px; overflow:hidden; height:6px; width:100%; }
  progress::-webkit-progress-bar { background:#eaf0e9; }
  progress::-webkit-progress-value { background:#7ba48a; border-radius:20px; }
  progress::-moz-progress-bar { background:#7ba48a; border-radius:20px; }
}
@layer pages {
  .admin-shell { min-height:100vh; display:grid; grid-template-columns:224px minmax(0,1fr); }
  .sidebar { background:#fafbf9; border-inline-end:1px solid var(--line); padding:30px 18px 20px; position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; gap:34px; }
  .sidebar .brand { padding-inline:10px; }
  .workspace-label { font-size:.72rem; color:#8a968c; letter-spacing:.08em; padding:0 14px 10px; }
  .nav-group { display:grid; gap:5px; }
  .nav-link { display:flex; align-items:center; gap:12px; border-radius:9px; padding:11px 14px; color:#738076; font-size:.93rem; }
  .nav-link svg { width:19px; height:19px; }
  .nav-link:hover { background:#eef3ed; }
  .nav-link.active { background:#e5eee4; color:#235c40; font-weight:600; }
  .nav-count { margin-inline-start:auto; min-width:21px; padding:0 5px; border-radius:6px; background:white; text-align:center; font-size:.77rem; color:var(--green); }
  .sidebar-bottom { margin-block-start:auto; }
  .sidebar-note { border:1px solid #dce6d9; border-radius:11px; padding:15px; background:#f0f5eb; margin-block-end:18px; }
  .sidebar-note p { font-size:.77rem; color:#73836d; margin-block:7px 11px; }
  .sidebar-bottom .person { padding:15px 7px 0; border-block-start:1px solid var(--line); }
  .admin-topbar { height:77px; border-block-end:1px solid var(--line); background:#ffffffb8; display:flex; align-items:center; justify-content:space-between; padding-inline:36px; gap:16px; }
  .breadcrumb { font-size:.84rem; color:var(--muted); display:flex; align-items:center; gap:12px; }
  .breadcrumb span:last-child { color:var(--ink); }
  .topbar-right { display:flex; align-items:center; gap:14px; font-size:.8rem; color:var(--muted); }
  .topbar-right .avatar { width:32px; height:32px; }
  .admin-main { padding:32px 36px 44px; max-width:1600px; margin-inline:auto; }
  .page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-block-end:27px; }
  .page-heading p { color:var(--muted); font-size:.91rem; margin-block-start:7px; }
  .eyebrow { font-size:.76rem; text-transform:uppercase; letter-spacing:.13em; color:var(--green); font-weight:600; margin-block-end:8px; }
  .stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-block-end:25px; }
  .stat { padding:19px 21px 16px; }
  .stat-label { color:var(--muted); font-size:.85rem; }
  .stat-number { font-size:2.1rem; font-weight:620; letter-spacing:-.05em; line-height:1.3; margin-block:9px 8px; }
  .stat-number span { font-size:.85rem; color:var(--muted); margin-inline-start:7px; font-weight:400; letter-spacing:0; }
  .stat-icon { width:31px; height:31px; border-radius:9px; background:#f1f5ee; color:#6f8e75; display:grid; place-items:center; }
  .stat-icon svg { width:17px; height:17px; }
  .stat-note { font-size:.77rem; color:var(--muted); }
  .dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:23px; align-items:start; }
  .queue-item { padding:21px 23px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; border-block-end:1px solid var(--line); }
  .queue-item:last-child { border-block-end:0; }
  .queue-meta { display:flex; align-items:center; gap:15px; font-size:.8rem; color:var(--muted); margin-block-start:8px; flex-wrap:wrap; }
  .queue-meta svg { width:14px; height:14px; margin-inline-end:3px; }
  .queue-note { color:#8a968a; font-size:.8rem; margin-block-start:5px; padding-inline-start:47px; }
  .staff-load { padding-block:18px; border-block-end:1px solid var(--line); }
  .staff-load:first-child { padding-block-start:0; }
  .staff-load:last-child { padding-block-end:0; border-block-end:0; }
  .staff-load progress { margin-block-start:14px; }
  .tip-card { padding:20px 22px; background:#eef3e5; border-color:#e2e9d8; }
  .tip-card h3 { margin-block:9px 8px; }
  .tip-card p { color:#748267; font-size:.85rem; line-height:1.8; }
  .mini-week { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; padding:20px 23px; }
  .mini-day { border-radius:9px; text-align:center; padding:13px 3px; border:1px solid var(--line); font-size:.79rem; color:var(--muted); }
  .mini-day.today { border-color:#bdd4bd; background:#f1f6ec; color:var(--green); }
  .mini-day strong { display:block; font-size:1.18rem; font-weight:550; color:var(--ink); margin-block:4px; }
  .mini-day .day-count { font-size:.7rem; color:var(--green); }
  .toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-block-end:20px; flex-wrap:wrap; }
  .table-wrap { overflow:auto; }
  table { width:100%; border-collapse:collapse; text-align:left; font-size:.88rem; }
  th { color:var(--muted); font-weight:450; background:#fafbf9; font-size:.78rem; padding:13px 20px; border-block-end:1px solid var(--line); white-space:nowrap; }
  td { padding:17px 20px; border-block-end:1px solid var(--line); vertical-align:middle; }
  tr:last-child td { border-block-end:0; }
  .address-cell { max-width:240px; font-size:.8rem; color:var(--muted); margin-block-start:4px; }
  .calendar-scroll { overflow:auto; }
  .team-calendar { min-width:780px; }
  .week-header,.person-week { display:grid; grid-template-columns:100px repeat(7,minmax(95px,1fr)); }
  .week-header>div { text-align:center; padding:17px 5px; border-inline-end:1px solid var(--line); border-block-end:1px solid var(--line); color:var(--muted); font-size:.78rem; }
  .week-header strong { color:var(--ink); display:block; font-size:1.18rem; font-weight:550; margin-block-start:3px; }
  .week-header .today { background:#edf4e8; color:var(--green); }
  .person-week>div { min-height:194px; border-inline-end:1px solid var(--line); border-block-end:1px solid var(--line); padding:9px; }
  .person-week:last-child>div { border-block-end:0; }
  .person-week>div:last-child,.week-header>div:last-child { border-inline-end:0; }
  .person-week .week-person { display:flex; flex-direction:column; align-items:center; gap:8px; padding-block-start:24px; }
  .week-cell { background:#fff; }
  .week-cell.weekend { background:#fafbf9; }
  .calendar-event { width:100%; text-align:left; background:var(--green-soft); color:#3d6950; padding:9px; border:0; border-radius:7px; margin-block-end:7px; font-size:.73rem; display:block; }
  .calendar-event.berry { background:var(--purple-soft); color:#76618f; }
  .calendar-event.pending { background:var(--orange-soft); color:#986b35; }
  .calendar-event strong { display:block; font-size:.85rem; font-weight:550; margin-block:3px; }
  .calendar-event:hover { filter:brightness(.97); }
  .calendar-event span { display:block; }
  .calendar-empty { color:#c2cbc3; text-align:center; padding-block:40px; }
  .legend { display:flex; align-items:center; gap:18px; color:var(--muted); font-size:.8rem; }
  .legend span { display:flex; align-items:center; gap:6px; }
  .legend i { width:8px; height:8px; border-radius:50%; background:#83ac8d; }
  .legend i.pending { background:#d5ac73; }
  .legend i.unavailable { background:#c9d0c9; }
  .slots-grid,.templates-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .slot-card,.template-card { padding:22px; }
  .slot-card .slot-time { font-size:1.2rem; font-weight:550; margin-block:19px 3px; }
  .capacity-line { display:flex; align-items:baseline; justify-content:space-between; margin-block:19px 8px; }
  .capacity-line strong { color:var(--green); font-size:1.4rem; }
  .slot-card footer,.template-card footer { margin-block-start:20px; padding-block-start:15px; border-block-start:1px solid var(--line); }
  .template-hours { font-size:1.7rem; margin-block:20px 6px; font-weight:550; letter-spacing:-.04em; }
  .weekday-chips { display:flex; gap:6px; margin-block:17px; }
  .weekday-chips span { width:27px; height:27px; border-radius:50%; display:grid; place-items:center; font-size:.76rem; background:#f3f5f2; color:#a7b0a6; }
  .weekday-chips span.on { color:var(--green); background:var(--green-soft); }
  .rules-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
  .rule-main { background:#f3f6ed; padding:21px; border-radius:10px; margin-block-end:25px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
  .rule-main input { width:90px!important; font-size:1.6rem!important; text-align:center; font-weight:600; }
  .history-item { padding-block:15px; border-block-end:1px solid var(--line); font-size:.85rem; }
  .history-item:first-child { padding-block-start:0; }
  .history-item:last-child { border-block-end:0; padding-block-end:0; }
  .team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
  .team-card { padding:26px; }
  .team-card .avatar { margin-block-end:15px; }
  .team-card h2 { margin-block-end:5px; }
  .team-card .tag { margin-block:15px 20px; }
  .login-shell { min-height:100dvh; display:grid; grid-template-columns:1.05fr 1fr; }
  .login-story { background:#e9efe1; padding:48px 60px; display:flex; flex-direction:column; position:relative; overflow:hidden; }
  .login-story .brand-mark { background:#255b43; }
  .story-main { margin-block:auto; padding-block:65px; position:relative; z-index:1; }
  .story-main h1 { font-size:3.4rem; line-height:1.4; color:#2c4d38; letter-spacing:-.05em; }
  .story-main>p { color:#7b8a72; font-size:1.02rem; margin-block:22px 38px; }
  .story-schedule { width:305px; background:#f9fbf4; padding:22px; border-radius:17px; box-shadow:0 18px 70px #405c3420; rotate:-4deg; margin-inline-start:18px; }
  .story-schedule .line { display:flex; justify-content:space-between; align-items:center; font-size:.85rem; margin-block-end:18px; }
  .story-schedule .demo-event { padding:14px 16px; background:#e8efdf; border-radius:10px; font-size:.83rem; color:#507043; }
  .story-schedule .demo-event+.demo-event { margin-block-start:10px; background:#f2eddd; color:#9b8249; }
  .story-orbit { position:absolute; width:600px; height:600px; border:1px solid #dbe4cc; border-radius:50%; inset-inline-start:-260px; inset-block-end:-260px; }
  .story-orbit::after { content:''; position:absolute; inset:70px; border:1px solid #dbe4cc; border-radius:50%; }
  .story-footer { color:#7c8b74; font-size:.78rem; }
  .login-main { padding:50px 40px; display:grid; place-items:center; background:#fbfcf9; }
  .login-card { width:min(100%,380px); }
  .login-card h1 { font-size:2rem; margin-block:15px 10px; }
  .login-card>p { color:var(--muted); margin-block-end:30px; }
  .login-card .button.wide { min-height:49px; margin-block:6px; }
  .login-card .login-links { text-align:center; font-size:.85rem; margin-block-start:25px; }
  .demo-box { border:1px dashed #cddbc8; border-radius:12px; padding:17px; margin-block:25px; background:#f4f7f0; }
  .demo-box p { font-size:.8rem; color:var(--muted); margin-block:4px 12px; }
  .password-wrap { position:relative; }
  .password-wrap input { padding-inline-end:54px!important; }
  .password-wrap button { position:absolute; inset-inline-end:6px; inset-block-start:5px; border:0; }
  .host-shell { min-height:100vh; background:#f7f9f4; }
  .host-topbar { padding:23px max(24px,calc((100vw - 1050px)/2)); display:flex; align-items:center; justify-content:space-between; border-block-end:1px solid #e7ece2; background:#fbfcf8; gap:15px; }
  .host-main { max-width:1100px; margin:auto; padding:37px 26px 60px; }
  .host-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-block-end:29px; }
  .host-welcome h1 { font-size:2.15rem; font-weight:600; }
  .host-welcome p { color:var(--muted); margin-block-start:9px; }
  .host-profile { display:flex; align-items:center; gap:9px; font-size:.85rem; color:var(--muted); }
  .host-profile svg { width:16px; height:16px; }
  .booking-layout { display:grid; grid-template-columns:minmax(0,1fr) 315px; gap:23px; align-items:start; }
  .host-calendar { min-width:0; }
  .calendar-month { display:flex; justify-content:space-between; align-items:center; padding:14px 20px 6px; }
  .calendar-month .icon-button { min-width:48px; min-height:48px; }
  .host-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; padding:8px 16px 16px; }
  .calendar-weekday { text-align:center; padding-block:8px; color:var(--muted); font-size:.85rem; }
  .host-day { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:64px; min-width:0; padding:5px 0; border:1px solid transparent; border-radius:8px; font:inherit; background:#f3f5f0; color:var(--muted); }
  .host-day strong { font-size:1.05rem; font-weight:550; }
  .host-day span { font-size:.73rem; white-space:nowrap; }
  .host-day.available { background:var(--green-soft); color:var(--green); cursor:pointer; }
  .host-day.available:disabled { cursor:default; }
  .host-day.unavailable:disabled { opacity:1; color:#747e70; }
  .host-day[aria-current="date"] strong { text-decoration:underline; text-underline-offset:4px; }
  .host-day.selected { background:var(--green); color:white; border-color:var(--green); }
  .host-day:focus-visible { outline:3px solid var(--green); outline-offset:2px; }
  .calendar-booking-footer { padding:0 20px 20px; }
  .calendar-booking-footer p { margin-block:0 14px; min-height:2.8em; }
  .request-card { padding:26px; }
  .request-card h2 { margin-block:14px 8px; }
  .request-card > p { color:var(--muted); margin-block:10px; }
  .request-icon { display:inline-flex; padding:12px; border-radius:12px; color:var(--green); background:var(--green-soft); }
  .request-icon svg { width:25px; height:25px; }
  .booking-history { margin-block-start:24px; }
  .quota-card { padding:20px 23px; }
  .quota-value { display:flex; align-items:baseline; gap:5px; margin-block:12px 8px; }
  .quota-value strong { font-size:1.8rem; font-weight:550; color:var(--green); }
  .quota-value span { color:var(--muted); font-size:.85rem; }
  .host-footer { margin-block-start:34px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#929c8b; font-size:.77rem; }
  .my-booking { padding:26px; margin-block-end:24px; }
  .appointment-main { display:flex; align-items:center; gap:23px; margin-block:24px; }
  .date-block { padding:15px 20px; min-width:92px; text-align:center; background:#eef3e7; border-radius:11px; color:#638355; }
  .date-block strong { display:block; font-size:2rem; font-weight:550; line-height:1.35; color:#31593b; }
  .appointment-info h2 { font-size:1.3rem; margin-block-end:8px; }
  .appointment-info p { color:var(--muted); font-size:.87rem; margin-block:5px; }
  .appointment-info p svg { width:15px; height:15px; }
  .steps { display:flex; justify-content:space-between; border-block-start:1px solid var(--line); padding-block-start:20px; color:#a5afa1; font-size:.82rem; }
  .steps span { display:flex; align-items:center; gap:7px; }
  .steps .done { color:var(--green); }
  .steps svg { width:17px; height:17px; }
  .application-wrap { max-width:560px; margin:10px auto 35px; }
  .application-gate { margin-block-end:24px; }
  .application-gate .switch-line { border:0; padding-block-start:0; min-height:48px; }
  .application-gate .spread { margin-block-start:16px; gap:12px; }
  .application-gate input[role="switch"] { appearance:none; flex-shrink:0; width:46px; height:28px; border:1px solid #8a9687; background:#d8dfd4; border-radius:18px; position:relative; cursor:pointer; }
  .application-gate input[role="switch"]::before { content:''; position:absolute; inset-block-start:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:white; }
  .application-gate input[role="switch"]:checked { background:var(--green); border-color:var(--green); }
  .application-gate input[role="switch"]:checked::before { transform:translateX(18px); }
  .application-gate input[role="switch"]:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
  .invitation-code { font-family:monospace; letter-spacing:.12em; font-size:1.2rem!important; }
  .application-wrap .panel-body { padding:30px; }
  .application-wrap h1 { font-size:1.75rem; margin-block:12px 8px; }
  .application-wrap .intro { color:var(--muted); margin-block-end:25px; font-size:.9rem; }
  .application-status { text-align:center; padding:50px 32px; }
  .application-status .empty-icon { margin:auto auto 20px; width:64px; height:64px; border-radius:20px; }
  .application-status h1 { font-size:1.7rem; margin-block-end:10px; }
  .application-status p { color:var(--muted); }
  .application-status .button { margin-block-start:23px; }
  .notification-item { padding-block:15px; border-block-end:1px solid var(--line); font-size:.9rem; }
  .notification-item:last-child { border-block-end:0; }
  .notification-item small { display:block; margin-block-start:7px; color:var(--muted); }
  .demo-ribbon { display:flex; align-items:center; justify-content:center; gap:12px; padding:6px 15px; background:#eaf0e0; color:#6d7e60; font-size:.73rem; }
  .demo-ribbon button { padding:0; border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; color:inherit; font:inherit; }
}
@layer responsive {
  @media (min-width:1600px) { .admin-main { padding-inline:50px; } }
  @media (max-width:1200px) {
    .admin-shell { grid-template-columns:200px minmax(0,1fr); }
    .sidebar { padding-inline:12px; }
    .admin-main { padding:26px 24px; }
    .admin-topbar { padding-inline:24px; }
    .dashboard-grid { grid-template-columns:minmax(0,1fr) 250px; gap:18px; }
    .rules-grid { grid-template-columns:minmax(0,1fr) 300px; gap:18px; }
    .stat { padding:16px; }
    .stat-note { font-size:.7rem; }
    .login-story { padding:40px; }
    .story-main h1 { font-size:2.7rem; }
  }
  @media (max-width:1000px) {
    .dashboard-grid,.rules-grid { grid-template-columns:1fr; }
    .dashboard-side { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
    .team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .page-heading { align-items:flex-start; }
    .topbar-date { display:none; }
  }
  @media (max-width:760px) {
    :root { font-size:14px; }
    h1 { font-size:1.65rem; }
    .admin-shell { display:block; }
    .sidebar { position:static; height:auto; padding:14px 16px 9px; border-inline-end:0; border-block-end:1px solid var(--line); gap:14px; }
    .sidebar .brand { padding-inline:0; }
    .sidebar nav { display:flex; overflow:auto; gap:5px; }
    .sidebar .nav-group { display:flex; gap:5px; }
    .workspace-label,.sidebar-bottom,.sidebar .brand-sub,.sidebar .nav-count { display:none; }
    .nav-link { padding:8px 11px; font-size:.8rem; white-space:nowrap; gap:7px; }
    .nav-link svg { width:15px; height:15px; }
    .admin-topbar { height:55px; padding-inline:18px; }
    .admin-main { padding:23px 16px 35px; }
    .page-heading { flex-wrap:wrap; gap:16px; margin-block-end:22px; }
    .page-heading p { font-size:.85rem; }
    .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .stat-number { font-size:1.8rem; }
    .stat-note { font-size:.74rem; }
    .dashboard-side { display:block; }
    .dashboard-side>.panel { margin-block-end:17px; }
    .panel-head { padding:17px 18px; }
    .panel-body { padding:19px; }
    .queue-item { padding:17px; gap:8px; }
    .queue-item .button { padding-inline:9px; }
    .queue-actions { flex-direction:column; align-items:stretch; gap:6px; }
    .queue-meta { gap:6px 13px; }
    .queue-note { padding-inline-start:0; }
    .mini-week { padding:15px 12px; gap:4px; }
    .mini-day { font-size:.7rem; }
    .mini-day .day-count { font-size:.65rem; }
    .slots-grid,.templates-grid { grid-template-columns:1fr; }
    .toolbar .search { width:100%; }
    .toolbar .segmented { max-width:100%; overflow:auto; }
    .login-shell { display:block; background:#fbfcf9; }
    .login-story { padding:25px; }
    .story-main { padding:35px 0 20px; }
    .story-main h1 { font-size:2.1rem; }
    .story-main>p { margin-block:12px 0; font-size:.9rem; }
    .story-schedule,.story-footer { display:none; }
    .login-main { padding:32px 25px; }
    .login-card h1 { font-size:1.7rem; }
    .host-topbar { padding:18px 20px; }
    .host-topbar .brand-name { font-size:1.3rem; }
    .host-topbar .brand-sub { display:none; }
    .host-main { padding:27px 18px 35px; }
    .host-welcome { display:block; margin-block-end:23px; }
    .host-welcome h1 { font-size:1.75rem; }
    .host-profile { margin-block-start:14px; font-size:.8rem; }
    .booking-layout { grid-template-columns:1fr; gap:17px; }
    .legend { gap:13px; font-size:.73rem; }
    .quota-card { padding:17px 21px; }
    .my-booking { padding:20px; }
    .appointment-main { gap:15px; }
    .date-block { padding:12px; min-width:70px; }
    .appointment-info h2 { font-size:1.13rem; }
    .appointment-info p { font-size:.8rem; }
    .steps { font-size:.73rem; gap:8px; }
    .steps span { gap:4px; }
    .steps svg { width:14px; height:14px; }
    .host-footer { flex-wrap:wrap; }
    .application-wrap .panel-body { padding:25px 21px; }
    .form-grid { gap:0 14px; }
    .modal-body { padding:22px; }
    .modal-head { padding:19px 22px; }
  }
  @media (max-width:380px) {
    .host-main { padding-inline:12px; }
    .host-welcome h1 { font-size:1.57rem; }
    .host-topbar { padding-inline:14px; }
    .host-topbar .person .small { display:none; }
    .form-grid { grid-template-columns:1fr; }
    .team-grid { grid-template-columns:1fr; }
  }
  @media (pointer:coarse) {
    .button,.icon-button { min-height:44px; }
    .icon-button { min-width:44px; }
    input:not([type=radio]):not([type=checkbox]),textarea,select { font-size:16px; min-height:48px; }
    .choice,.check-row { min-height:44px; }
  }
  @media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; } }
}
