:root {
  --bg:#faf7f2; --surface:#ffffff; --surface-soft:#f4eee6; --surface-deep:#e8dfd4;
  --ink:#302722; --ink-2:#66574c; --muted:#96877b; --border:#eae3db;
  --coffee:#583e31; --coffee-2:#745444; --cream:#f8ead4; --sage:#44755f;
  --sage-soft:#eaf5ed; --sage-dark:#255540; --amber:#bd7f36; --amber-soft:#fff3df;
  --rose:#ae605b; --rose-soft:#fff0ed; --shadow:0 14px 60px rgba(73,49,29,.06);
  --radius:20px; --radius-lg:28px; --nav-width:246px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; background:var(--bg); color:var(--ink); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { opacity:.48; cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #a6bea5; outline-offset:3px; }
a { color:inherit; }
h1,h2,h3,h4,p { margin:0; }
h1,h2,h3,h4 { letter-spacing:-.045em; line-height:1.18; }
h1 { font-size:clamp(29px,3.3vw,39px); font-weight:750; }
h2 { font-size:23px; font-weight:740; }
h3 { font-size:17px; font-weight:720; }
small { color:var(--muted); }
svg { display:block; flex-shrink:0; }
button { -webkit-tap-highlight-color:transparent; }
::selection { background:#cfb69d; color:#20150f; }
.app-loading { min-height:100vh; display:grid; place-content:center; justify-items:center; gap:13px; color:var(--ink-2); }
.loading-cup { font-size:48px; animation:bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)} }
.shell { min-height:100vh; display:grid; grid-template-columns:var(--nav-width) minmax(0,1fr); }
.sidebar { position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:32px 18px 22px;background:#f5f0e9;border-right:1px solid #eee6dc; }
.brand { display:flex;align-items:center;gap:11px;padding:0 11px 35px;text-decoration:none; }
.brand-mark { width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:var(--coffee);color:#fff4dc;box-shadow:0 6px 18px #583e312b; }
.brand-title { display:block;letter-spacing:-.055em;font-size:20px;font-weight:820;line-height:1.14; }
.brand-sub { display:block;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);font-weight:750;margin-top:3px; }
.nav-label { margin:0 13px 13px;color:#aa9a8e;font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:820; }
.nav-list { display:flex;flex-direction:column;gap:6px; }
.nav-item { display:flex;align-items:center;gap:12px;padding:12px 15px;border:0;color:#75665a;background:transparent;border-radius:13px;font-weight:620;text-align:left;transition:background .18s,color .18s,transform .18s; }
.nav-item:hover { background:#ebe3d9;transform:translateX(2px); }
.nav-item.active { background:#e6d9cb;color:#38271c;font-weight:750; }
.nav-item svg { opacity:.84; }
.nav-spacer { flex:1; }
.sidebar-note { margin:18px 8px 20px;padding:18px 15px;border-radius:19px;background:#e6ddcf; }
.sidebar-note .tiny-label { font-size:10px;letter-spacing:.10em;font-weight:770;text-transform:uppercase;color:#8d7766; }
.sidebar-note p { font-weight:710;font-size:13px;margin:8px 0 8px;line-height:1.5; }
.sidebar-note small { font-size:11px; }
.sidebar-user { display:flex;align-items:center;gap:10px;padding:12px 8px;border-top:1px solid #e5dacf; }
.sidebar-user .user-copy { min-width:0;flex:1; }
.sidebar-user strong { display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.sidebar-user small { font-size:11px; }
.content-area { min-width:0;padding:29px clamp(22px,4vw,65px) 100px;max-width:1500px;width:100%;margin:0 auto; }
.topbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:38px; }
.crumb { display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;font-weight:650; }
.crumb b { color:var(--ink-2);font-weight:720; }
.topbar-actions { display:flex;align-items:center;gap:11px; }
.header-pill { display:flex;align-items:center;gap:8px;padding:9px 13px;background:var(--surface);border:1px solid var(--border);border-radius:22px;font-size:12px;color:var(--ink-2);font-weight:600; }
.green-dot { width:7px;height:7px;border-radius:50%;background:#4e9968;box-shadow:0 0 0 3px #4e99681a; }
.icon-btn { display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--ink-2);transition:background .2s,transform .2s; }
.icon-btn:hover { background:var(--surface-soft);transform:translateY(-1px); }
.mobile-topbrand,.bottom-nav { display:none; }
.page { animation:pageIn .2s both; }
@keyframes pageIn { from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)} }
.eyebrow { font-size:11px;font-weight:780;letter-spacing:.13em;text-transform:uppercase;color:#a1836b;margin-bottom:12px; }
.section-head { display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:22px; }
.section-head p { margin-top:9px;color:var(--ink-2); }
.section-header { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px; }
.section-sub { font-size:13px;color:var(--muted);margin-top:4px; }
.heading-accent { color:var(--coffee-2); }
.grid-main { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr);gap:23px;align-items:start; }
.grid-col { display:flex;flex-direction:column;gap:22px;min-width:0; }
.card { background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow);min-width:0; }
.card-header { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px; }
.card-header h3 { font-size:17px; }
.card-header .helper { font-size:12px;color:var(--muted); }
.hero-card { background:var(--coffee);color:#fff6e9;overflow:hidden;position:relative;min-height:345px;border-radius:var(--radius-lg);padding:30px 34px 29px;display:flex;flex-direction:column;isolation:isolate; }
.hero-card::after { content:'';position:absolute;right:-90px;top:-110px;width:350px;height:350px;border:1px solid #ffffff1b;border-radius:50%;box-shadow:0 0 0 65px #fff2,0 0 0 150px #ffffff0a;pointer-events:none;z-index:-1; }
.hero-eyebrow { display:flex;align-items:center;gap:7px;color:#e5d2bf;font-size:11px;font-weight:790;text-transform:uppercase;letter-spacing:.13em; }
.hero-card .hero-main { margin-top:25px;display:flex;align-items:center;gap:17px; }
.hero-avatar { width:80px;height:80px;border-radius:26px;font-size:27px;font-weight:800;box-shadow:0 12px 25px #1b0d092b;display:grid;place-items:center;flex-shrink:0; }
.hero-person { min-width:0; }
.hero-person .hero-over { color:#d3bdab;font-size:13px;margin-bottom:5px; }
.hero-person strong { display:block;font-size:clamp(25px,3.2vw,37px);font-weight:780;letter-spacing:-.055em;line-height:1.1; }
.hero-caption { font-size:13px;color:#dfcbbb;margin-top:19px; }
.hero-bottom { margin-top:auto;padding-top:28px;display:flex;align-items:center;gap:12px; }
.hero-button { background:#f6e9d6;border:0;color:#3c2a21;border-radius:14px;padding:14px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:800;transition:transform .2s,background .2s,box-shadow .2s; }
.hero-button:hover { background:#fff8ee;transform:translateY(-2px);box-shadow:0 8px 22px #0002; }
.hero-subbutton { display:inline-flex;align-items:center;gap:6px;padding:12px;background:none;border:0;color:#f0dac6;font-weight:650;font-size:12px; }
.hero-right-art { position:absolute;right:20px;bottom:-10px;opacity:.11;transform:rotate(-15deg);pointer-events:none; }
.hero-success { background:#315b45; }
.hero-success .hero-avatar { background:#e2f1de!important;color:#27513b!important; }
.hero-neutral { background:#71604f; }
.meta-strip { display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:var(--shadow); }
.meta-stat { padding:17px 19px;border-right:1px solid var(--border); }
.meta-stat:last-child { border-right:0; }
.meta-stat label { display:block;font-size:11px;color:var(--muted);font-weight:650;margin-bottom:4px; }
.meta-stat strong { display:block;font-size:18px;letter-spacing:-.025em; }
.pill { display:inline-flex;align-items:center;gap:6px;border-radius:999px;font-weight:770;font-size:10px;letter-spacing:.035em;padding:7px 10px;background:var(--surface-soft);color:var(--ink-2);white-space:nowrap; }
.pill.green { background:var(--sage-soft);color:var(--sage-dark); }
.pill.amber { background:var(--amber-soft);color:#9c6725; }
.pill.rose { background:var(--rose-soft);color:#a34e49; }
.pill.dark { background:#ffffff26;color:white; }
.avatar { width:38px;height:38px;display:inline-grid;place-items:center;flex-shrink:0;border-radius:13px;color:#372724;font-size:12px;font-weight:820; }
.avatar.big { width:52px;height:52px;border-radius:17px;font-size:17px; }
.avatar.sm { width:32px;height:32px;border-radius:11px;font-size:10px; }
.avatar.xl { width:67px;height:67px;border-radius:21px;font-size:22px; }
.person-row { display:flex;align-items:center;gap:12px;padding:11px 0; }
.person-row+.person-row { border-top:1px solid #f1ece7; }
.person-info { min-width:0;flex:1; }
.person-info strong { display:block;font-weight:735;font-size:13px; }
.person-info small { display:block;font-size:11px;margin-top:2px; }
.attendance-toggle { border:1px solid #d5e8d9;border-radius:99px;padding:7px 11px;color:#33724f;background:#f1f9f2;font-weight:770;font-size:11px;display:inline-flex;align-items:center;gap:6px;min-width:100px;justify-content:center;transition:all .18s; }
.attendance-toggle:hover { transform:scale(1.03); }
.attendance-toggle.absent { color:#ad6856;border-color:#f3d9d0;background:#fff2ed; }
.queue-list { display:flex;align-items:center;gap:7px;flex-wrap:wrap; }
.queue-element { display:inline-flex;align-items:center;gap:8px;background:#f8f4ee;border:1px solid #f0e8df;border-radius:13px;padding:9px 10px;font-size:11px;font-weight:700; }
.queue-element:first-child { background:#e9f4eb;border-color:#d6e6d8;color:#32553f; }
.queue-dot { width:8px;height:8px;border-radius:50%;background:var(--coffee-2); }
.queue-arrow { color:#c6b9ad; }
.next-day { display:flex;align-items:center;gap:11px;padding:12px 0; }
.next-day + .next-day { border-top:1px solid #f0ece5; }
.next-day-date { background:#f7f2eb;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:49px;height:52px;flex-shrink:0; }
.next-day-date b { font-size:18px;line-height:1.2; }
.next-day-date small { font-size:10px;font-weight:750;text-transform:uppercase; }
.next-day-name { flex:1;min-width:0; }
.next-day-name strong { display:block;font-size:13px;font-weight:740; }
.next-day-name small { display:block;font-size:11px; }
.btn { display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;padding:11px 16px;min-height:42px;font-size:12px;font-weight:780;border:1px solid transparent;transition:background .18s,transform .18s; }
.btn:hover:not(:disabled) { transform:translateY(-1px); }
.btn.primary { background:var(--coffee);color:#fff; }
.btn.primary:hover { background:#694c3c; }
.btn.soft { background:var(--surface-soft);color:var(--ink-2);border-color:var(--border); }
.btn.ghost { background:transparent;color:var(--ink-2);border-color:var(--border); }
.btn.green { background:var(--sage);color:white; }
.btn.danger { color:#a9504f;background:#fff1f0;border-color:#f0d8d3; }
.btn.block { width:100%; }
.btn.small { padding:8px 11px;min-height:34px;font-size:11px;border-radius:10px; }
.btn.link { background:transparent;border:0;padding:6px 0;color:var(--coffee-2);font-weight:780; }
.empty { padding:40px 18px;text-align:center; }
.empty .empty-icon { margin:0 auto 15px;background:var(--surface-soft);width:60px;height:60px;border-radius:20px;display:grid;place-items:center;color:var(--coffee-2); }
.empty h3 { margin-bottom:8px; }
.empty p { color:var(--muted);font-size:13px;max-width:360px;margin:0 auto 18px; }
.month-toolbar { display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px; }
.month-toolbar h2 { font-size:24px;text-transform:capitalize; }
.month-arrows { display:flex;gap:6px; }
.calendar { background:var(--surface);border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);padding:15px; }
.calendar-weekdays,.calendar-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekdays div { text-align:center;padding:12px 4px;color:#9c8e81;font-size:11px;font-weight:780;text-transform:uppercase; }
.day-cell { position:relative;min-height:104px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #f3efe9;background:#fff;border-radius:12px;padding:12px 10px;margin:2px;gap:7px;color:var(--ink-2);transition:background .18s,border .18s,transform .18s; }
.day-cell:hover { background:#faf6ef;transform:translateY(-1px);border-color:#dfd0bf; }
.day-cell.outside { opacity:.32; }
.day-cell.today { border:1px solid #b59176;box-shadow:inset 0 0 0 1px #d4bdab; }
.day-cell.noschedule { background:#fbf9f6; }
.day-cell .day-number { font-weight:730;font-size:13px; }
.day-chip { font-size:10px;font-weight:750;border-radius:6px;padding:4px 6px;line-height:1.25;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.day-chip.paid { background:#e9f4e9;color:#3d7252; }
.day-chip.pending { background:#fff2e0;color:#b27632; }
.day-chip.cancelled { background:#f5eeed;color:#a36c69; }
.day-foot { margin-top:auto;color:#b0a298;font-size:10px; }
.legend { display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-top:18px;color:var(--muted);font-size:11px; }
.legend span { display:flex;align-items:center;gap:6px; }
.legend i { width:8px;height:8px;border-radius:50%; }
.table-card { background:var(--surface);border:1px solid var(--border);border-radius:22px;overflow:hidden;box-shadow:var(--shadow); }
.table-scroll { overflow-x:auto; }
.data-table { width:100%;border-collapse:collapse;text-align:left; }
.data-table th { font-size:10px;font-weight:820;letter-spacing:.09em;text-transform:uppercase;color:#a19182;background:#fbf9f6;padding:16px 22px;white-space:nowrap; }
.data-table td { border-top:1px solid #f0ece6;padding:16px 22px;font-size:12px;white-space:nowrap; }
.data-table tbody tr { transition:background .17s; }
.data-table tbody tr:hover { background:#fcf9f4; }
.row-link { border:0;background:transparent;color:var(--ink);font-weight:730;display:flex;align-items:center;gap:8px;padding:0;text-align:left; }
.filterbar { display:flex;align-items:center;gap:9px;margin-bottom:18px;flex-wrap:wrap; }
.filterbar select,.field select,.field input,.field textarea { background:#fff;border:1px solid #e4dcd1;border-radius:12px;padding:11px 13px;color:var(--ink);min-height:44px;width:100%; }
.filterbar select { width:auto;min-width:165px;background:#fff; }
.stat-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px; }
.stat-tile { border:1px solid var(--border);background:var(--surface);padding:22px;border-radius:19px; }
.stat-tile .tile-icon { width:37px;height:37px;border-radius:12px;display:grid;place-items:center;background:var(--surface-soft);color:var(--coffee-2);margin-bottom:17px; }
.stat-tile label { display:block;font-size:11px;color:var(--muted);font-weight:660; }
.stat-tile strong { display:block;font-size:30px;letter-spacing:-.055em;margin-top:5px;line-height:1.2; }
.stats-rows { display:flex;flex-direction:column;gap:17px; }
.stat-bar-row { display:grid;grid-template-columns:156px minmax(0,1fr) 30px;align-items:center;gap:17px;font-size:12px; }
.stat-bar-name { display:flex;align-items:center;gap:8px;font-weight:720; }
.progress-track { background:#f1ede6;border-radius:999px;height:12px;overflow:hidden; }
.progress-bar { height:100%;border-radius:999px;min-width:0;transition:width .5s; }
.stats-insight { padding:18px 20px;background:#f0f6ed;color:#375b3e;border-radius:16px;font-size:12px;display:flex;align-items:center;gap:11px;line-height:1.6; }
.team-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.team-card { padding:26px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:var(--shadow); }
.team-top { display:flex;align-items:center;justify-content:space-between;margin-bottom:23px; }
.team-card h3 { margin-bottom:4px; }
.team-card .role { color:var(--muted);font-size:12px; }
.team-card .team-metrics { display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:19px 0; }
.team-metrics strong { display:block;font-size:19px;letter-spacing:-.03em; }
.team-metrics label { display:block;color:var(--muted);font-size:11px; }
.team-foot { display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);gap:8px; }
.field { display:flex;flex-direction:column;gap:7px; }
.field label { font-weight:750;font-size:12px;color:var(--ink-2); }
.field small { font-size:11px; }
.form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px; }
.field .textarea { min-height:110px;resize:vertical; }
.settings-section { padding:24px 0;border-top:1px solid var(--border); }
.settings-section:first-of-type { border-top:0;padding-top:0; }
.settings-section h3 { margin-bottom:6px; }
.settings-section p { color:var(--muted);font-size:12px;margin-bottom:18px; }
.weekday-picker { display:flex;gap:8px;flex-wrap:wrap; }
.weekday-chip { padding:9px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface-soft);font-size:11px;font-weight:760;color:#97877a; }
.weekday-chip.on { background:#e7f1e7;border-color:#a6c7af;color:#355b42; }
.order-row { display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f4efe8; }
.order-row:last-child { border:0; }
.order-index { color:#ac9c8e;font-weight:800;font-size:11px;width:20px; }
.order-row strong { flex:1;font-size:13px; }
.order-controls { display:flex;gap:5px; }
.settings-members { display:grid;grid-template-columns:repeat(2,1fr);gap:11px; }
.settings-member { display:flex;align-items:center;gap:9px;padding:13px;border:1px solid var(--border);border-radius:13px;background:#fff; }
.settings-member span { min-width:0;flex:1;font-size:12px;font-weight:730; }
.modal-backdrop { position:fixed;inset:0;z-index:100;background:#24191094;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade .18s both; }
@keyframes fade { from{opacity:0}to{opacity:1} }
.modal { width:min(100%,520px);max-height:min(90vh,800px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border-radius:25px;box-shadow:0 30px 110px #120b0836;padding:27px;animation:modalIn .2s both; }
@keyframes modalIn { from{opacity:0;transform:translateY(13px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)} }
.modal-header { display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:21px; }
.modal-header h2 { font-size:23px;text-transform:capitalize; }
.modal-header .subtitle { font-size:12px;color:var(--muted);margin-top:5px; }
.modal-status { display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface-soft);border-radius:15px;padding:15px 17px;margin-bottom:19px; }
.modal-status strong { display:block;font-size:13px; }
.modal-status small { font-size:11px; }
.modal-people { margin:14px 0 20px; }
.modal-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:21px; }
.modal-actions .btn { flex:1; }
.modal-divider { height:1px;background:var(--border);margin:20px 0; }
.warning-note { background:#fff7e8;border:1px solid #f1e1c4;color:#956d38;border-radius:13px;padding:12px 15px;font-size:12px;line-height:1.55; }
.text-link { border:0;background:none;font-size:12px;color:var(--coffee-2);font-weight:760;padding:7px 0;text-decoration:underline;text-underline-offset:3px; }
.toast-layer { position:fixed;z-index:150;right:25px;bottom:26px;display:flex;flex-direction:column;gap:9px;max-width:min(440px,calc(100vw - 30px));pointer-events:none; }
.toast { display:flex;align-items:center;gap:10px;background:#3a2d25;color:#fff;border-radius:13px;padding:13px 16px;box-shadow:0 16px 40px #1e100b28;animation:modalIn .24s both;font-size:12px;font-weight:670; }
.toast.error { background:#8b4644; }
.auth-wrap { min-height:100vh;display:grid;grid-template-columns:minmax(380px,1.1fr) minmax(400px,.9fr);background:#faf8f4; }
.auth-art { position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:55px clamp(40px,7vw,105px);background:#4b342a;color:#fff0e1;overflow:hidden;isolation:isolate; }
.auth-art .brand-mark { background:#fff1de;color:#50372e; }
.auth-art .brand-sub { color:#c8aa95; }
.auth-art .auth-quote { position:relative;z-index:2;max-width:560px; }
.auth-art h1 { font-size:clamp(45px,5vw,77px);letter-spacing:-.07em;line-height:1.02; }
.auth-art h1 em { font-style:normal;color:#e8c29c; }
.auth-art p { color:#e1c6ae;max-width:370px;font-size:14px;margin-top:22px;line-height:1.75; }
.auth-art .auth-drawing { position:absolute;width:470px;height:470px;right:-140px;top:18%;transform:rotate(-14deg);z-index:-1;opacity:.18; }
.auth-foot { font-size:11px;color:#b89e88;letter-spacing:.03em; }
.auth-right { display:flex;align-items:center;justify-content:center;padding:40px; }
.auth-form-wrap { width:min(100%,400px); }
.auth-form-wrap .eyebrow { margin-bottom:9px; }
.auth-form-wrap h2 { font-size:34px;margin-bottom:12px; }
.auth-form-wrap .intro { color:#86786d;font-size:13px;line-height:1.7;margin-bottom:26px; }
.auth-tabs { display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#eee8e0;padding:5px;border-radius:13px;margin-bottom:23px; }
.auth-tab { border:0;background:transparent;padding:10px 8px;color:#857568;font-size:12px;font-weight:760;border-radius:10px; }
.auth-tab.active { background:#fff;color:var(--coffee);box-shadow:0 3px 8px #20110b0b; }
.auth-form { display:flex;flex-direction:column;gap:16px; }
.auth-form .field input,.auth-form .field select { min-height:49px; }
.auth-notice { margin-top:20px;border-radius:13px;background:#f1ebdf;padding:13px;color:#7b6757;font-size:11px;line-height:1.55;display:flex;gap:8px; }
.auth-mini-brand { display:none; }
.error-panel { max-width:480px;margin:10vh auto;padding:35px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:25px; }
.error-panel .btn { margin-top:20px; }
.muted { color:var(--muted); }
.mobile-user { display:none; }
.mobile-card-list { display:none; }
.visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-width:1120px) {
  .grid-main { grid-template-columns:minmax(0,1fr) minmax(275px,.78fr);gap:16px; }
  .content-area { padding:29px 30px 96px; }
  .card { padding:21px; }
  .hero-card { padding:28px; }
  .day-cell { min-height:86px;padding:8px; }
}
@media(max-width:880px) {
  .shell { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .content-area { padding:18px 22px 110px; }
  .mobile-topbrand { display:flex;align-items:center;gap:10px; }
  .mobile-topbrand .brand-mark { width:36px;height:36px;border-radius:12px; }
  .mobile-topbrand .brand-title { font-size:18px; }
  .mobile-topbrand .brand-sub { font-size:9px; }
  .topbar { margin-bottom:25px; }
  .topbar .crumb { display:none; }
  .bottom-nav { position:fixed;bottom:0;left:0;right:0;z-index:65;display:flex;align-items:center;justify-content:space-around;gap:1px;background:#ffffffef;border-top:1px solid var(--border);backdrop-filter:blur(16px);padding:8px 6px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -12px 35px #1c100509; }
  .bottom-link { flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;border:0;color:#9a8d80;padding:6px 1px;position:relative;font-size:10px;font-weight:680; }
  .bottom-link.active { color:var(--coffee);font-weight:830; }
  .bottom-link.active::before { content:'';height:3px;width:19px;border-radius:99px;background:var(--coffee);position:absolute;top:-8px; }
  .grid-main { grid-template-columns:1fr 1fr; }
  .auth-wrap { grid-template-columns:1fr; }
  .auth-art { display:none; }
  .auth-right { min-height:100vh;padding:25px; }
  .auth-mini-brand { display:flex;align-items:center;gap:10px;margin-bottom:44px; }
}
@media(max-width:650px) {
  .content-area { padding:16px 16px 115px; }
  .topbar { margin-bottom:26px; }
  .topbar-actions .header-pill { display:none; }
  h1 { font-size:30px; }
  h2 { font-size:21px; }
  .section-head { align-items:start; }
  .section-head p { font-size:12px;line-height:1.6; }
  .section-head .btn { font-size:11px;padding:9px 11px; }
  .grid-main,.team-grid,.form-grid { grid-template-columns:1fr; }
  .card { padding:20px;border-radius:20px; }
  .grid-col { gap:17px; }
  .hero-card { min-height:314px;padding:25px 23px;border-radius:23px; }
  .hero-avatar { width:65px;height:65px;border-radius:20px;font-size:22px; }
  .hero-person strong { font-size:28px; }
  .hero-card .hero-main { gap:14px; }
  .hero-bottom { padding-top:21px;gap:7px; }
  .hero-button { padding:13px 16px; }
  .hero-subbutton { padding:10px 5px; }
  .meta-stat { padding:14px 12px; }
  .meta-stat strong { font-size:16px; }
  .meta-stat label { font-size:10px; }
  .stat-grid { grid-template-columns:repeat(2,1fr);gap:11px; }
  .stat-grid .stat-tile:nth-child(3) { grid-column:span 2; }
  .stat-tile { padding:18px; }
  .stat-tile strong { font-size:25px; }
  .stat-bar-row { grid-template-columns:96px minmax(0,1fr) 18px;gap:9px; }
  .stat-bar-name { font-size:10px; }
  .stat-bar-name .avatar { display:none; }
  .calendar { padding:5px;border-radius:18px; }
  .calendar-weekdays div { font-size:9px;padding:9px 0; }
  .day-cell { min-height:59px;margin:1px;border-radius:8px;padding:6px 3px;gap:4px;align-items:center;text-align:center; }
  .day-cell .day-number { font-size:11px; }
  .day-cell .day-chip { font-size:8px;padding:3px 4px;max-width:100%; }
  .day-cell .day-foot { display:none; }
  .month-toolbar h2 { font-size:20px; }
  .table-card .table-scroll { display:none; }
  .mobile-card-list { display:block;padding:5px 14px; }
  .mobile-record { width:100%;border:0;background:white;display:flex;align-items:center;gap:13px;padding:15px 2px;text-align:left;border-bottom:1px solid var(--border); }
  .mobile-record:last-child { border:0; }
  .mobile-record strong { font-size:12px;display:block; }
  .mobile-record small { font-size:11px; }
  .filterbar select { min-width:0;flex:1; }
  .modal-backdrop { align-items:flex-end;padding:0; }
  .modal { width:100%;max-height:92dvh;border-radius:25px 25px 0 0;padding:23px 20px calc(25px + env(safe-area-inset-bottom)); }
  .settings-members { grid-template-columns:1fr; }
  .toast-layer { right:10px;left:10px;bottom:calc(87px + env(safe-area-inset-bottom));max-width:none; }
  .auth-right { padding:20px;align-items:flex-start; }
  .auth-form-wrap { margin:30px auto 40px; }
  .auth-mini-brand { margin-bottom:45px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
}
html[data-theme="dark"] { --bg:#211b18;--surface:#2e2622;--surface-soft:#3b302a;--surface-deep:#514239;--ink:#f5e9dc;--ink-2:#d0b9a8;--muted:#ac9585;--border:#473a33;--coffee:#71503e;--coffee-2:#d3a481;--cream:#ead4bb;--sage-soft:#31473a;--sage-dark:#b2d8ba;--amber-soft:#4d3e29;--rose-soft:#4c3130;--shadow:none; }
html[data-theme="dark"] .sidebar { background:#281f1c;border-color:#473a33; }
html[data-theme="dark"] .nav-item.active,html[data-theme="dark"] .sidebar-note { background:#46372e;color:#f3dec9; }
html[data-theme="dark"] .person-row+.person-row,html[data-theme="dark"] .next-day+.next-day { border-color:#473a33; }
html[data-theme="dark"] .queue-element,html[data-theme="dark"] .day-cell.noschedule { background:#372b26;border-color:#473a33; }
html[data-theme="dark"] .day-cell,html[data-theme="dark"] .filterbar select,html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .settings-member { background:var(--surface);color:var(--ink);border-color:var(--border); }
html[data-theme="dark"] .day-cell:hover { background:#3c302a; }
html[data-theme="dark"] .calendar-weekdays,html[data-theme="dark"] .data-table th { background:var(--surface); }
html[data-theme="dark"] .data-table td { border-color:var(--border); }
html[data-theme="dark"] .bottom-nav { background:#2b231fee; }
html[data-theme="dark"] .auth-wrap { background:var(--bg); }
html[data-theme="dark"] .auth-tab.active { background:var(--surface);color:var(--ink); }
