:root{
  --green:#0f5136;--green-2:#176b49;--green-3:#e7f3ed;--ink:#17211c;--muted:#6b746f;--line:#e6e9e7;--bg:#f5f7f6;--card:#fff;--danger:#b42318;--warning:#b85c00;--blue:#2463eb;--purple:#7c3aed;
  --radius:16px;--shadow:0 10px 30px rgba(15,81,54,.08)
}
*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.nowrap{white-space:nowrap}.text-right{text-align:right}
.btn{border:0;border-radius:10px;padding:11px 15px;background:var(--green);color:white;cursor:pointer;font-weight:650;display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn:hover{background:var(--green-2)}.btn.secondary{background:white;color:var(--green);border:1px solid #b8d6c7}.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}.btn.danger{background:var(--danger)}.btn.sm{padding:8px 10px;font-size:13px}.btn.block{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}
.input,.select,.textarea{width:100%;border:1px solid #d9dfdc;border-radius:10px;background:#fff;padding:11px 12px;outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#7bb89b;box-shadow:0 0 0 3px rgba(23,107,73,.10)}.textarea{min-height:95px;resize:vertical}.label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:span 2}.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.check-row:last-child{border:0}.check-row input{width:19px;height:19px}
.alert{padding:12px 14px;border-radius:10px;background:var(--green-3);color:var(--green);margin:0 0 16px}.alert.error{background:#fff1f0;color:var(--danger)}.alert.warn{background:#fff7e8;color:#8a4b00}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f5f7f6,#e8f1ec)}.login-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800}.brand-title{font-family:Georgia,serif;font-size:21px;color:#143c2d}.brand-sub{font-size:12px;color:var(--muted)}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:#102a24;color:#edf8f3;padding:18px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:8px 8px 20px}.sidebar .brand-title{color:#fff;font-size:18px}.nav{display:flex;flex-direction:column;gap:4px}.nav a{padding:11px 12px;border-radius:9px;color:#d8e6df;font-size:14px;display:flex;gap:10px;align-items:center}.nav a:hover,.nav a.active{background:#1d6b4d;color:#fff}.nav .dot{width:8px;height:8px;border:1px solid currentColor;border-radius:50%}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:14px 8px 4px;font-size:13px}
.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20}.page{padding:24px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.page-head h1{font-size:24px;margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}
.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px}.metric .labelx{font-size:12px;color:var(--muted)}.metric .value{font-size:27px;font-weight:750;margin-top:7px}.metric.green .value{color:#16834f}.metric.blue .value{color:var(--blue)}.metric.orange .value{color:#d56300}.metric.purple .value{color:var(--purple)}.metric.red .value{color:#d92d20}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 8px rgba(18,42,35,.03);overflow:hidden}.card-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head h2,.card-head h3{font-size:15px;margin:0}.card-body{padding:16px 17px}.card-foot{padding:13px 17px;border-top:1px solid var(--line)}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table th{font-size:12px;color:var(--muted);font-weight:700;background:#fafbfa}.table tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef2f0;color:#4d5a54;font-size:11px;font-weight:700}.badge.green{background:#e4f5eb;color:#16734a}.badge.orange{background:#fff2e4;color:#a54f00}.badge.red{background:#fdeceb;color:#a62920}.badge.blue{background:#eaf0ff;color:#325fc6}
.progress{height:8px;border-radius:20px;background:#edf1ef;overflow:hidden}.progress>span{display:block;height:100%;background:var(--green);border-radius:20px}
.chat-layout{display:grid;grid-template-columns:340px 1fr;height:calc(100vh - 118px);min-height:580px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.chat-list{border-right:1px solid var(--line);overflow:auto}.chat-search{padding:12px;border-bottom:1px solid var(--line)}.thread{padding:13px 14px;display:flex;gap:11px;border-bottom:1px solid var(--line)}.thread:hover,.thread.active{background:#f0f6f3}.avatar{width:42px;height:42px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.thread-main{min-width:0;flex:1}.thread-title{display:flex;justify-content:space-between;gap:8px;font-weight:700;font-size:14px}.thread-snippet{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:12px;margin-top:3px}.chat-pane{display:flex;flex-direction:column;min-width:0;background:#efeae2}.chat-head{height:62px;background:#fff;border-bottom:1px solid var(--line);padding:10px 16px;display:flex;align-items:center;gap:10px}.messages{padding:18px;overflow:auto;flex:1;background-image:radial-gradient(rgba(15,81,54,.04) 1px,transparent 1px);background-size:20px 20px}.bubble{max-width:min(74%,640px);padding:9px 11px;border-radius:10px;background:#fff;margin:0 0 8px;box-shadow:0 1px 1px rgba(0,0,0,.05);font-size:14px}.bubble.mine{margin-left:auto;background:#d8f8c6}.bubble .meta{font-size:10px;color:#6a756f;text-align:right;margin-top:3px}.chat-compose{background:#f7f8f7;padding:10px;display:flex;gap:8px;border-top:1px solid var(--line)}.chat-compose textarea{min-height:42px;max-height:100px}
.mobile-shell{max-width:560px;margin:0 auto;min-height:100vh;background:#f5f7f6;padding-bottom:76px}.mobile-top{position:sticky;top:0;z-index:20;background:var(--green);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}.mobile-top .title{font-weight:750}.mobile-body{padding:14px}.hero-card{border-radius:18px;overflow:hidden;background:#fff;border:1px solid var(--line);margin-bottom:14px}.hero-photo{height:150px;background:linear-gradient(160deg,#658b74,#1c4a36);display:flex;align-items:flex-end;padding:18px;color:#fff}.hero-content{padding:15px}.list-card{background:#fff;border:1px solid var(--line);border-radius:15px;margin-bottom:12px;overflow:hidden}.list-item{display:flex;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}.list-item:last-child{border:0}.list-item .grow{flex:1}.bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);height:68px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.bottom-nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;color:#59645f}.bottom-nav a.active{color:var(--green);font-weight:750}.nav-icon{width:18px;height:18px;border:2px solid currentColor;border-radius:5px}
.catch-card{display:grid;grid-template-columns:105px 1fr;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:10px}.catch-photo{background:#dce8e2;min-height:105px;display:grid;place-items:center;color:var(--green)}.catch-photo img{width:100%;height:100%;object-fit:cover}.catch-info{padding:12px}.catch-weight{font-size:20px;font-weight:800;color:#16834f}
.qr-box{display:inline-grid;place-items:center;background:#fff;padding:10px;border:1px solid var(--line);border-radius:10px}.qr-box canvas,.qr-box img{max-width:180px;height:auto}.qr-box svg{width:180px;height:180px}
.print-only{display:none}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(3,1fr)}.grid-3{grid-template-columns:1fr 1fr}.admin-shell{grid-template-columns:210px 1fr}}
@media(max-width:820px){.admin-shell{display:block}.sidebar{display:none}.page{padding:15px}.topbar{padding:0 15px}.metrics{grid-template-columns:1fr 1fr}.grid-3,.grid-2,.form-grid,.form-grid.three{grid-template-columns:1fr}.span-2{grid-column:auto}.chat-layout{grid-template-columns:1fr;height:auto}.chat-list{max-height:42vh;border-right:0;border-bottom:1px solid var(--line)}.chat-pane{min-height:62vh}.page-head{align-items:flex-start;flex-direction:column}.table{min-width:700px}}
@media print{body{background:white}.no-print,.sidebar,.topbar,.bottom-nav{display:none!important}.print-only{display:block}.admin-shell{display:block}.page{padding:0}.card{border:0;box-shadow:none}.page-head{margin-bottom:8px}.table-wrap{overflow:visible}.table{min-width:0}.btn{display:none!important}}
/* v2.0 additions */
:root{--brand-primary:var(--green);--brand-soft:#e7f3ed}
.avatar-img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:10px}.check-row.compact{padding:4px 6px}.chat-media{display:block;max-width:min(340px,100%);max-height:330px;border-radius:10px;margin-bottom:7px;object-fit:cover}.bubble.urgent{outline:2px solid #c63f32;background:#fff3f1}.bubble.mine.urgent{background:#ffe7e2}.bubble-sender{font-weight:700;color:var(--green);margin-bottom:3px}.reply-quote{border-left:3px solid var(--green);background:rgba(15,81,54,.07);padding:6px 8px;border-radius:6px;margin-bottom:6px;font-size:12px;max-width:100%}.bubble-actions{display:flex;align-items:center;gap:3px;flex-wrap:wrap;opacity:.2;transition:.15s;margin-top:3px}.bubble:hover .bubble-actions,.bubble:focus-within .bubble-actions{opacity:1}.link-btn,.emoji-btn{border:0;background:transparent;padding:2px 4px;font-size:11px;color:var(--muted);cursor:pointer}.emoji-btn{font-size:14px}.danger-text{color:#b52b24}.reaction-row{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.reaction-chip{background:#f0f3f1;border:1px solid var(--line);border-radius:999px;padding:2px 6px;font-size:11px}.typing-indicator{font-size:12px;color:var(--muted);min-height:22px;padding:4px 16px}.chat-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:5px}.file-pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;cursor:pointer;color:var(--text)}.reply-preview{background:#eef5f1;border-left:3px solid var(--green);padding:5px 8px;border-radius:6px;margin-bottom:5px;font-size:12px}.hero-photo.has-image{background-size:cover;background-position:center}.presence-alert{border-left:5px solid #c63f32}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#aaa;margin-right:6px}.status-dot.online{background:#1a8b57}.media-thumb{width:64px;height:64px;object-fit:cover;border-radius:8px}.report-bar{height:10px;border-radius:999px;background:#e7ece9;overflow:hidden}.report-bar>span{display:block;height:100%;background:var(--green);border-radius:999px}.stat-rank{font-size:28px;font-weight:800;color:var(--green)}.offline-banner{position:sticky;top:0;z-index:50;background:#8a5b00;color:#fff;padding:7px;text-align:center;font-size:12px}.hidden{display:none!important}
@media(max-width:820px){.check-grid{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bubble-actions{opacity:1}.chat-media{max-width:100%}}
/* v2 production refinements */
.brand-logo{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 8px}.section-head h3{margin:0}.section-head a{font-size:13px}.card-link{display:flex;align-items:center;min-height:72px;padding:14px;border:1px solid var(--border,#dfe7e2);border-radius:14px;background:var(--card,#fff);text-decoration:none;color:inherit;font-weight:700}.segmented{display:flex;padding:3px;background:#eef3f0;border-radius:12px;margin-bottom:12px}.segmented a{flex:1;text-align:center;padding:8px 10px;border-radius:9px;text-decoration:none;color:inherit;font-size:13px}.segmented a.active{background:#fff;color:var(--green,#0f5136);font-weight:700}.task-circle{width:30px;height:30px;border-radius:50%;border:2px solid #9fb1a7;display:grid;place-items:center;flex:none}.task-circle.done{background:var(--green,#0f5136);border-color:var(--green,#0f5136);color:#fff}.task-circle.blocked{background:#b42318;border-color:#b42318;color:#fff}.task-photo{width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin-bottom:8px}.stay-hero{width:100%;height:180px;object-fit:cover}.date-wrap{display:flex;width:100%;min-width:0;border:1px solid var(--border,#dfe7e2);border-radius:12px;padding:9px 11px;background:#fff}.date-wrap input{display:block;width:100%;min-width:0;border:0;background:transparent;padding:0;font:inherit}.empty-state{padding:24px;text-align:center;color:var(--muted,#69766f)}.mobile-messages{min-height:45vh;max-height:58vh}.chat-mobile-body{padding-bottom:88px}.mobile-compose{position:sticky;bottom:67px;z-index:5;background:var(--panel,#fff);border-top:1px solid var(--border,#dfe7e2)}.icon-btn-light{background:transparent;border:0;color:#fff;font-size:22px}.catch-photo-large{width:100%;max-height:360px;object-fit:cover;border-radius:14px}.catch-thumb{width:56px;height:56px;object-fit:cover;border-radius:10px}.compact{padding:10px}.list-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--border,#e4e9e6)}

.forward-mini{display:inline-block;position:relative}.forward-mini summary{list-style:none;cursor:pointer}.forward-mini summary::-webkit-details-marker{display:none}.forward-form{position:absolute;z-index:40;min-width:220px;padding:8px;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);display:grid;gap:6px}.stack-sm{display:grid;gap:5px}

/* =========================================================
   VISUAL PRODUCTION EDITION 2.1
   Matches the approved Château dashboard / PWA concept.
   ========================================================= */
:root{
  --sidebar:#082a25;--sidebar-2:#0d3a31;--sidebar-active:#137858;
  --surface:#ffffff;--surface-2:#f8faf9;--canvas:#f3f6f5;--ink-2:#27322d;
  --blue:#1478d4;--orange:#e16b19;--purple:#8a55d4;--red:#ef3f45;
  --shadow-soft:0 8px 28px rgba(18,42,35,.06);--shadow-card:0 2px 10px rgba(18,42,35,.045);
}
body{background:var(--canvas);letter-spacing:-.005em}
.ui-icon{width:19px;height:19px;flex:0 0 auto}.bottom-icon{width:21px;height:21px}.brand-logo{max-width:44px;max-height:48px;object-fit:contain;border-radius:8px;background:#fff}.brand-lockup{display:flex;align-items:center;gap:11px;padding:10px 7px 21px;color:white}.brand-lockup.compact{padding:0}.brand-crest{width:44px;height:44px;border:1px solid rgba(255,255,255,.28);border-radius:50%;display:grid;place-items:center;color:#e8eee8;flex:0 0 auto}.brand-crest svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand-copy strong{font-family:Georgia,serif;font-size:16px;letter-spacing:.04em;text-transform:uppercase;line-height:1.15}.brand-copy span{font-size:10px;opacity:.7;letter-spacing:.06em;text-transform:uppercase;margin-top:4px}
.admin-shell{grid-template-columns:232px minmax(0,1fr);background:var(--canvas)}.sidebar{background:linear-gradient(180deg,#061f1c 0%,#0a302a 56%,#071e1b 100%);padding:10px 8px 14px;border-right:1px solid rgba(255,255,255,.04);box-shadow:6px 0 28px rgba(5,31,28,.06);z-index:50}.nav{gap:2px;overflow:auto;padding-right:2px}.nav a{position:relative;padding:9px 10px;border-radius:7px;color:#e0ece7;font-size:13px;gap:10px;min-height:38px}.nav a .ui-icon{opacity:.9}.nav a:hover{background:rgba(255,255,255,.075)}.nav a.active{background:linear-gradient(90deg,#166e53,#198761);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}.nav a.active .ui-icon{stroke-width:2.2}.nav-badge{margin-left:auto;min-width:20px;height:20px;border-radius:999px;background:#20a36c;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:800}.sidebar-foot{padding:12px 7px 3px}.user-mini{display:flex;gap:9px;align-items:center}.user-mini>div{display:flex;flex-direction:column;min-width:0}.user-mini span:not(.user-avatar){font-size:10px;opacity:.67}.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#dfb787,#8d6039);color:white;font-weight:800;border:2px solid rgba(255,255,255,.45);flex:0 0 auto}.sidebar-logout{display:flex;align-items:center;gap:8px;margin-top:12px;padding:8px 6px;color:#bfd2c9;font-size:12px}.sidebar-logout .ui-icon{width:16px;height:16px}
.main{background:var(--canvas)}.topbar{height:62px;padding:0 20px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(18,42,35,.06);border:0}.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px}.topbar-title{display:flex;flex-direction:column}.topbar-title strong{font-size:15px}.topbar-title span{display:none;font-size:10px;color:var(--muted)}.icon-btn,.top-icon{width:38px;height:38px;border:0;background:transparent;border-radius:10px;display:grid;place-items:center;color:#273a32;cursor:pointer;position:relative}.icon-btn:hover,.top-icon:hover{background:#f0f5f2}.mobile-menu-btn{display:none}.global-search{height:38px;width:min(300px,28vw);display:flex;align-items:center;gap:8px;background:#fbfcfb;border:1px solid #dfe5e2;border-radius:8px;padding:0 11px;color:#6a766f}.global-search .ui-icon{width:16px;height:16px}.global-search input{border:0;background:transparent;outline:0;width:100%;font-size:12px;color:var(--ink)}.top-count{position:absolute;right:-2px;top:-2px;min-width:17px;height:17px;background:#e23f44;color:#fff;border:2px solid white;border-radius:999px;font-size:9px;font-weight:800;display:grid;place-items:center}.top-user{display:flex;align-items:center;gap:8px;padding-left:5px}.small-avatar{width:31px;height:31px;font-size:12px}.top-user>div{display:flex;flex-direction:column}.top-user strong{font-size:11px}.top-user span:not(.user-avatar){font-size:9px;color:var(--muted)}
.page{padding:16px 18px 28px;max-width:1750px;width:100%;margin:0 auto}.page-head{margin-bottom:14px}.page-head h1{font-size:20px;letter-spacing:-.02em}.page-head .muted{font-size:12px}.app-footer{padding:27px 1px 7px;color:#87918c;font-size:11px}
.card{border:1px solid #e4e9e6;border-radius:10px;box-shadow:var(--shadow-card)}.card-head{padding:12px 14px}.card-head h2,.card-head h3{font-size:13px}.card-body{padding:14px}.card-foot{padding:11px 14px}.btn{border-radius:7px;padding:9px 13px;font-size:12px}.btn.sm{padding:7px 9px;font-size:11px}.input,.select,.textarea{border-radius:7px;padding:9px 10px;font-size:13px}.label{font-size:12px}.badge{border-radius:5px;padding:3px 7px}
.metrics.dashboard-kpis{grid-template-columns:repeat(5,minmax(145px,1fr));gap:12px}.metric.kpi-card{position:relative;min-height:97px;border-radius:9px;padding:13px 14px 9px;overflow:hidden}.metric.kpi-card .labelx{font-size:11px;font-weight:650}.metric.kpi-card .value{font-size:25px;margin-top:4px;line-height:1}.metric.kpi-card .subvalue{font-size:9px;color:#6d7973;margin-top:5px}.metric.kpi-card .sparkline{position:absolute;right:8px;bottom:5px;width:118px;height:38px;opacity:.9}.metric.kpi-card .sparkline .area{opacity:.1}.metric.kpi-card.green .sparkline{color:#1d9a61}.metric.kpi-card.blue .sparkline{color:#248de0}.metric.kpi-card.orange .sparkline{color:#ee7b28}.metric.kpi-card.purple .sparkline{color:#9a61e7}.metric.kpi-card.red .sparkline{color:#ef4d55}
.dashboard-row{display:grid;grid-template-columns:1.1fr 1.12fr 1fr 1fr;gap:12px;margin-bottom:12px}.dashboard-row.secondary{grid-template-columns:1fr 1.35fr 1fr}.dashboard-card{min-height:244px}.dashboard-card .card-body{padding:8px 14px 11px}.dash-list-row{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #edf0ee;font-size:11px}.dash-list-row:last-child{border-bottom:0}.dash-list-row .time{font-weight:750;color:#1f2925}.dash-list-row strong{font-size:11px}.dash-list-row .muted{font-size:9px}.dash-link{font-size:10px;color:#137858;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:3px}.dash-link .ui-icon{width:14px;height:14px}.task-box{width:16px;height:16px;border:1.5px solid #829189;border-radius:3px;display:grid;place-items:center}.task-box.done{background:#20a36c;border-color:#20a36c;color:#fff}.task-box.done .ui-icon{width:11px;height:11px}.catch-thumb{width:44px;height:39px;border-radius:6px;object-fit:cover;background:#dce7e1;display:grid;place-items:center;color:#486057;overflow:hidden}.catch-thumb img{width:100%;height:100%;object-fit:cover}.catch-row{grid-template-columns:44px 1fr auto}.catch-row .weight{font-weight:800;color:#1b7653}.dashboard-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.dashboard-stat{padding:13px;border-right:1px solid #edf0ee;border-bottom:1px solid #edf0ee}.dashboard-stat:nth-child(2n){border-right:0}.dashboard-stat:nth-last-child(-n+2){border-bottom:0}.dashboard-stat span{display:block;font-size:9px;color:var(--muted)}.dashboard-stat strong{display:block;font-size:21px;color:#16734a;margin-top:4px}.dashboard-stat.orange strong{color:#e26c18}.shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.shortcut{min-height:78px;border:1px solid #e4e9e6;border-radius:8px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#176b49;font-size:10px;font-weight:700;padding:8px;text-align:center;transition:.18s}.shortcut:hover{transform:translateY(-1px);box-shadow:0 6px 17px rgba(20,73,55,.08);border-color:#c7ddd2}.shortcut .ui-icon{width:23px;height:23px}.occupancy-wrap{display:grid;grid-template-columns:145px 1fr;align-items:center;gap:13px;padding:10px}.occupancy-donut{--pct:50;width:132px;height:132px;border-radius:50%;background:conic-gradient(#1a9d63 0 calc(var(--pct)*1%),#dfe6e2 calc(var(--pct)*1%) 100%);display:grid;place-items:center;position:relative}.occupancy-donut:before{content:"";position:absolute;inset:24px;background:white;border-radius:50%}.occupancy-donut .inside{z-index:1;text-align:center}.occupancy-donut strong{display:block;font-size:24px}.occupancy-donut span{font-size:9px;color:var(--muted)}.occ-legend{display:flex;flex-direction:column;gap:7px}.occ-item{display:grid;grid-template-columns:8px 1fr auto;gap:7px;align-items:center;font-size:10px}.occ-dot{width:7px;height:7px;border-radius:50%;background:#1a9d63}.occ-dot.free{background:#c7d0cc}.occ-item b{font-weight:600}.occ-item span{color:var(--muted)}
/* Chat tuned to approved WhatsApp-like visual */
.chat-layout{border-radius:10px;box-shadow:var(--shadow-soft);border-color:#e2e7e4}.chat-list{background:#fff}.chat-search{background:#f8faf9}.thread{padding:11px 12px}.thread.active{background:#edf6f1}.avatar{background:linear-gradient(145deg,#1b7653,#0f5136);font-size:13px}.chat-pane{background:#efeae2}.chat-head{height:58px}.messages{background-color:#efeae2;background-image:radial-gradient(rgba(15,81,54,.035) 1px,transparent 1px);background-size:17px 17px}.bubble{border-radius:7px;padding:8px 10px;font-size:12px}.bubble.mine{background:#d9fdd3}.bubble.urgent{box-shadow:inset 3px 0 #e54a4f}.bubble-sender{color:#16734a;font-weight:750}.chat-media{border-radius:6px;max-width:min(330px,100%)}.chat-compose{background:#f0f2f1}.chat-compose .textarea{border-radius:18px;min-height:38px;background:#fff}.file-pill{border-radius:999px}
/* Mobile apps */
.mobile-shell{max-width:510px;background:#f1f3f2;box-shadow:0 0 0 1px rgba(18,42,35,.04);min-height:100dvh}.mobile-top{min-height:62px;padding:10px 13px;background:linear-gradient(180deg,#07513f,#0b6a50);box-shadow:0 2px 7px rgba(3,48,37,.16)}.mobile-brand-head{display:flex;align-items:center;gap:9px}.mobile-brand-head .brand-crest{width:33px;height:33px}.mobile-brand-head .brand-crest svg{width:23px;height:23px}.mobile-brand-head strong{font-size:13px}.mobile-brand-head span{display:block;font-size:9px;opacity:.78}.mobile-body{padding:11px 10px 18px}.hero-card{border-radius:10px;border-color:#dfe5e2;box-shadow:0 2px 8px rgba(24,50,40,.05)}.hero-photo{height:165px;padding:14px;background-position:center;background-size:cover}.hero-photo strong{font-size:24px!important}.hero-content{padding:13px}.list-card{border-radius:9px;box-shadow:0 1px 5px rgba(24,50,40,.025)}.list-item{padding:11px 12px}.list-item strong{font-size:12px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:15px 2px 7px}.section-head h3{font-size:13px;margin:0}.section-head a{font-size:10px;color:var(--green);font-weight:700}.mobile-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:11px}.mobile-metric{background:#fff;border:1px solid #e0e6e3;border-radius:8px;padding:9px 6px;text-align:center}.mobile-metric strong{display:block;font-size:21px}.mobile-metric span{font-size:8px;color:var(--muted)}.mobile-metric.green strong{color:#16834f}.mobile-metric.orange strong{color:#e06c19}.mobile-metric.blue strong{color:#1478d4}.mobile-metric.purple strong{color:#8a55d4}.card-link{border-radius:8px;font-size:11px;min-height:70px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;border:1px solid #e1e6e3;color:#245544;font-weight:700;padding:8px}.bottom-nav{height:62px;background:#0b2d29;border-top:0;color:white;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav a{color:#cedbd5;position:relative;font-size:9px;gap:2px}.bottom-nav a.active{color:#24b77a}.bottom-count{position:absolute;top:7px;right:27%;min-width:16px;height:16px;border-radius:50%;background:#ee4348;color:white;font-size:8px;display:grid;place-items:center;border:1px solid #0b2d29}.guest-bottom-nav{background:#fff;border-top:1px solid #e1e5e3}.guest-bottom-nav a{color:#48554f}.guest-bottom-nav a.active{color:#0b8b5a}.guest-bottom-nav .bottom-count{border-color:#fff}.catch-card{grid-template-columns:90px 1fr;border-radius:8px}.catch-photo{min-height:94px}.catch-info{padding:10px}.catch-weight{font-size:18px}.chat-mobile-head{background:#fff;border:1px solid #e1e6e3;border-radius:8px;padding:9px;display:flex;align-items:center;gap:8px;margin-bottom:7px}.mobile-messages{height:56vh!important;border-radius:8px!important}.mobile-compose{border-radius:0 0 8px 8px}
/* Reservation and form presentation */
.reservation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.reservation-summary .summary-chip{background:#f8faf9;border:1px solid #e4e8e6;border-radius:8px;padding:10px}.summary-chip span{display:block;font-size:9px;color:var(--muted)}.summary-chip strong{font-size:13px}.table th{background:#f7f9f8}.table tbody tr:hover{background:#fafcfb}
.sidebar-scrim{display:none}
@media(max-width:1280px){.dashboard-row{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-row.secondary{grid-template-columns:1fr 1fr}.dashboard-row.secondary>.card:last-child{grid-column:span 2}.metrics.dashboard-kpis{grid-template-columns:repeat(3,1fr)}.admin-shell{grid-template-columns:215px minmax(0,1fr)}}
@media(max-width:960px){.admin-shell{display:block}.sidebar{display:flex;position:fixed;left:0;top:0;bottom:0;width:235px;transform:translateX(-105%);transition:.22s}.sidebar.open{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:0;background:rgba(2,23,20,.4);z-index:40}.sidebar-scrim.open{display:block}.mobile-menu-btn{display:grid}.topbar-title span{display:block}.global-search{width:min(240px,32vw)}.top-user>div{display:none}.page{padding:13px}.metrics.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-row,.dashboard-row.secondary{grid-template-columns:1fr 1fr}.dashboard-row.secondary>.card:last-child{grid-column:auto}.shortcuts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.topbar{height:58px;padding:0 10px}.topbar-title span{display:none}.global-search{display:none}.top-user{display:none}.page{padding:10px}.metrics.dashboard-kpis{grid-template-columns:1fr 1fr;gap:8px}.metric.kpi-card{min-height:90px}.metric.kpi-card:nth-child(5){grid-column:span 2}.dashboard-row,.dashboard-row.secondary{grid-template-columns:1fr}.dashboard-row.secondary>.card:last-child{grid-column:auto}.dashboard-card{min-height:auto}.occupancy-wrap{grid-template-columns:120px 1fr}.occupancy-donut{width:112px;height:112px}.occupancy-donut:before{inset:20px}.reservation-summary{grid-template-columns:1fr 1fr}.shortcuts{grid-template-columns:1fr 1fr}.page-head{gap:9px}.actions{width:100%}.actions .btn{flex:1}.table{min-width:680px}}
@media(max-width:390px){.mobile-shell{max-width:none}.mobile-body{padding-left:8px;padding-right:8px}.mobile-metric-grid{grid-template-columns:repeat(2,1fr)}.metrics.dashboard-kpis{grid-template-columns:1fr}.metric.kpi-card:nth-child(5){grid-column:auto}.occupancy-wrap{grid-template-columns:1fr;justify-items:center}.occ-legend{width:100%}}
.staff-steak-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:6px}.staff-stek-card{height:126px;border-radius:9px;overflow:hidden;position:relative;background:#1f4f3d;color:#fff;border:1px solid rgba(10,60,43,.12)}.staff-stek-card img,.stek-placeholder{width:100%;height:100%;object-fit:cover}.stek-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#6e9582,#244c3d)}.stek-placeholder .ui-icon{width:34px;height:34px}.staff-stek-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,24,18,.78),rgba(3,24,18,.04) 65%)}.stek-overlay{position:absolute;left:10px;right:8px;bottom:8px;z-index:2;display:flex;flex-direction:column}.stek-overlay strong{font-size:13px}.stek-overlay span{font-size:9px;opacity:.85}.stek-status{position:absolute;right:7px;top:7px;z-index:3;background:#d9f4e4;color:#176b49;border-radius:5px;padding:3px 6px;font-size:8px}.stek-status.attention{background:#ffebda;color:#a65417}.stek-status.occupied{background:#e8f0ff;color:#3563b6}.task-list-mobile .task-box{flex:0 0 16px}.card-link .ui-icon{width:19px;height:19px;margin-right:6px;vertical-align:middle}
.guest-stay-card{background:#fff;border:1px solid #dfe5e2;border-radius:9px;overflow:hidden;margin-bottom:10px}.guest-stay-photo{height:188px;background:linear-gradient(145deg,#668f79,#164d39);background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:15px;color:white}.guest-welcome-copy{display:flex;flex-direction:column}.guest-welcome-copy span{font-size:9px;opacity:.85}.guest-welcome-copy strong{font-size:25px}.guest-stay-body{padding:14px}.guest-stay-body h2{font-size:20px;margin:0 0 4px}.guest-stay-body>p{font-size:11px;margin:0 0 10px}.guest-detail-row{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;padding:9px 0;border-top:1px solid #edf0ee}.guest-detail-row .ui-icon{width:18px;height:18px;color:#376756}.guest-detail-row span{display:block;font-size:9px;color:var(--muted)}.guest-detail-row strong{font-size:11px}.guest-help-card{background:#e9f4ed;border:1px solid #d1e6d8;border-radius:9px;padding:11px;display:grid;grid-template-columns:25px 1fr 20px;gap:8px;align-items:center;color:#1b6349}.guest-help-card>.ui-icon{width:19px;height:19px}.guest-help-card strong{display:block;font-size:11px}.guest-help-card span{display:block;font-size:9px;color:#4d6b5f;margin-top:2px}.guest-page-head h2{margin:0}.catch-add-card{background:#fff;border:1px solid #dfe5e2;border-radius:9px;padding:12px;display:grid;grid-template-columns:34px 1fr 20px;gap:9px;align-items:center;margin-bottom:10px}.catch-add-card>span{width:34px;height:34px;border-radius:50%;background:#eaf4ed;color:#176b49;display:grid;place-items:center}.catch-add-card>span .ui-icon{width:19px}.catch-add-card strong{display:block;font-size:11px}.catch-add-card small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.catch-add-card>.ui-icon{width:17px;color:#176b49}.catch-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.catch-line strong{font-size:12px}.catch-line .catch-weight{font-size:17px;line-height:1}.catch-actions{margin-top:8px}.guest-form-head{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;margin-bottom:9px}.guest-form-head .icon-btn .ui-icon{transform:rotate(180deg)}.guest-form-head>div{display:flex;flex-direction:column}.guest-form-head strong{font-size:14px}.guest-form-head span{font-size:9px;color:var(--muted)}.catch-form-card{border-radius:9px}.catch-linked-badge{display:flex;align-items:center;gap:5px;background:#edf6f1;color:#1c6b4d;padding:8px 9px;border-radius:7px;font-size:9px;margin-bottom:12px}.catch-linked-badge .ui-icon{width:15px}.input-unit{display:flex;align-items:center;border:1px solid #d9dfdc;border-radius:7px;background:#fff;overflow:hidden}.input-unit input{border:0;outline:0;padding:9px 10px;width:100%;font:inherit}.input-unit span{font-size:10px;color:var(--muted);padding-right:9px}.photo-upload{min-height:72px;border:1px dashed #a7bcb1;border-radius:7px;background:#f7faf8;color:#176b49;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;font-size:9px;cursor:pointer}.photo-upload input{display:none}.photo-upload .ui-icon{width:22px}.catch-save{min-height:43px}
.task-box.doing{border-color:#248de0;background:#eaf4fd}.task-list-mobile .list-item{min-height:57px}.task-list-mobile .badge{font-size:8px}
.visual-login{background:radial-gradient(circle at 20% 20%,#e8f1ec 0,transparent 38%),linear-gradient(135deg,#f4f7f5,#e7efeb)}.visual-login .login-card{border-radius:12px;width:min(420px,100%);padding:28px;box-shadow:0 18px 55px rgba(15,55,42,.12)}.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:24px}.login-brand img{width:49px;height:49px;object-fit:contain}.login-crest{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:#0c3f34;color:#fff}.login-crest svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.login-brand>div{display:flex;flex-direction:column}.login-brand strong{font-family:Georgia,serif;font-size:16px;color:#143c2d}.login-brand span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-top:3px}.visual-login h1{font-size:21px;margin:0}.visual-login p{font-size:11px;color:var(--muted);margin:5px 0 20px}
