/* The retail workspace shares the same accessible controls as the original CRM. */
:root {
    --bg:#0c1018; --panel:#141a25; --line:#283141; --ink:#f3f6fb;
    --muted:#9ba9bf; --accent:#a9c8ff; --primary:#a9f2ce;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size:15px;
}
body { background:var(--bg); }
.app-body { min-height:100vh; }
.sidebar { position:fixed; top:0; bottom:0; left:0; width:244px; background:#101620; border-right:1px solid #242e3d; display:flex; flex-direction:column; padding:25px 17px 18px; z-index:20; }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; color:#f8faff; font-weight:770; font-size:17px; line-height:1.1; letter-spacing:.03em; }
.brand strong { color:var(--primary); }
.brand small { display:block; font-size:11px; color:var(--muted); font-weight:500; letter-spacing:.03em; margin-top:6px; }
.brand-icon { width:42px; height:42px; border-radius:13px; flex:none; display:grid; place-items:center; background:#d4f8e6; color:#12251d; }
.brand-icon i { width:23px; height:19px; transform:skew(-18deg); background:repeating-linear-gradient(90deg,currentColor 0 4px,transparent 4px 8px); }
.sidebar .brand { margin:0 9px 33px; }
.sidebar nav { overflow-y:auto; flex:1; }
.nav-caption { font-size:10px; font-weight:700; letter-spacing:.11em; color:#8390a5; margin:15px 10px 8px; }
.nav-link { display:flex; align-items:center; gap:11px; text-decoration:none; color:#aab7ca; font-size:13px; font-weight:580; padding:12px; margin:3px 0; border-radius:9px; border:1px solid transparent; }
.nav-link svg { color:var(--tone,#a9b7d1); flex:none; }
.nav-link:hover { color:#fff; background:#1a2332; }
.nav-link[aria-current] { background:#243346; border-color:#344760; color:white; }
.nav-link[aria-current] svg { color:var(--primary); }
.nav-link.clients,.nav-link.planner { --tone:#b6a6f8; }.nav-link.shifts { --tone:#f6c783; }.nav-link.shops { --tone:#8bd6bd; }
.sidebar-bottom { border-top:1px solid var(--line); padding:18px 9px 2px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#9ceac4; box-shadow:0 0 12px #5bcc9470; }
.workspace { max-width:1700px; margin-left:244px; margin-right:auto; padding:0 32px 40px; min-width:0; }
.workspace .mast { min-height:82px; margin-bottom:20px; }
.header-title { display:flex; align-items:center; gap:12px; color:#c8d4e6; font-size:14px; font-weight:650; }
.menu-toggle { display:none; }
.identity { gap:12px; }
.identity span { display:grid; gap:2px; line-height:1.2; }
.identity b { font-size:13px; color:var(--ink); font-weight:650; }
.identity small { font-size:11px; }
.avatar { width:38px; height:38px; border-radius:50%; background:#29364b; display:grid; place-items:center; color:#bed2ed; }
.welcome { min-height:228px; position:relative; overflow:hidden; border:1px solid #314759; border-radius:18px; background:radial-gradient(ellipse at 85% 0%,#2c5b65 0%,transparent 60%),linear-gradient(113deg,#1a2e36,#172333 65%,#162230); padding:32px; display:flex; align-items:center; isolation:isolate; }
.welcome > div:first-child { z-index:1; max-width:76%; }
.eyebrow { color:#a5d3c5; letter-spacing:.045em; font-size:12px; font-weight:650; margin-bottom:12px; }
.welcome h1 { font-size:clamp(26px,3.1vw,45px); line-height:1.14; margin:5px 0 9px; }
.welcome p:not(.eyebrow) { color:#bdcdd6; font-size:14px; }
.button,button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; gap:8px; border-radius:9px; background:var(--primary); color:#132c23; border:1px solid transparent; padding:10px 15px; font-weight:700; font-size:13px; }
.button:hover { filter:brightness(1.08); }
.welcome .button { margin-top:23px; }
.zebra-art { width:300px; height:265px; transform:rotate(-23deg) skew(-15deg); position:absolute; right:-26px; top:-25px; border-radius:45px; opacity:.42; background:repeating-linear-gradient(90deg,transparent 0 19px,#93d9c0 20px 32px,transparent 33px 41px,#adf6d9 42px 57px,transparent 58px 74px); mask-image:linear-gradient(135deg,transparent,#000 45%,#000 75%,transparent); z-index:0; }
.overview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0; }
.metric { display:grid; position:relative; padding:19px 17px; border:1px solid var(--line); background:var(--panel); border-radius:13px; text-decoration:none; gap:4px; color:var(--ink); overflow:hidden; min-height:132px; }
.metric:hover,.shop-tile:hover { border-color:#526986; background:#182333; }
.metric span { font-size:12px; color:#b6c3d4; font-weight:600; padding-right:27px; }
.metric strong { font-size:34px; line-height:1.1; letter-spacing:-.045em; margin-top:6px; font-variant-numeric:tabular-nums; }
.metric small { font-size:11px; }
.metric-icon { position:absolute; right:13px; top:14px; width:35px; height:35px; border-radius:9px; display:grid; place-items:center; font-style:normal; }
.metric-icon svg { width:19px; height:19px; }
.green { color:#8ee6b7; background:#17352c; }.orange { color:#ffbf85; background:#392b25; }.violet { color:#cdb5ff; background:#312744; }.blue { color:#a5cbff; background:#25344a; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px; align-items:start; }
.panel,.lane { border-radius:14px; background:var(--panel); border:1px solid var(--line); padding:20px; }
.dashboard-grid>.panel { min-height:268px; }
.section-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:16px; }
.section-head h2,.panel h2 { font-size:18px; letter-spacing:-.02em; }
.section-head p { margin-top:4px; font-size:12px; }
.section-head a { text-decoration:none; font-size:12px; color:var(--primary); white-space:nowrap; }
.empty-state { min-height:180px; border:1px dashed #37475d; border-radius:10px; display:grid; align-content:center; justify-items:center; gap:8px; text-align:center; padding:16px; color:#9fb4ce; }
.empty-state b { color:var(--ink); }.empty-state p { font-size:12px; }.empty-state a { font-size:13px; text-decoration:none; }
.progress-item { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; margin:17px 0; font-size:13px; }
.progress-item b { font-size:13px; color:#d4e7f6; }
progress { appearance:none; -webkit-appearance:none; width:100%; height:7px; grid-column:1/-1; border:0; border-radius:20px; background:#283346; overflow:hidden; }
progress::-webkit-progress-bar { background:#283346; } progress::-webkit-progress-value { background:#96dfbd; border-radius:20px; } progress::-moz-progress-bar { background:#96dfbd; }
.progress-footer { border-top:1px solid var(--line); margin-top:20px; padding-top:12px; font-size:12px; }
.shop-overview,.section-space { margin-top:16px; }
.shop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.shop-tile { background:#101722; border:1px solid var(--line); border-radius:12px; padding:15px; display:grid; gap:7px; color:var(--ink); text-decoration:none; align-content:start; min-height:145px; }
.shop-icon { width:34px; height:34px; background:#233748; color:#a7d7e5; display:grid; place-items:center; border-radius:9px; }
.shop-tile b { font-size:15px; }.shop-tile small { font-size:11px; overflow-wrap:anywhere; }.shop-tile span { color:#a9eacb; font-size:12px; margin-top:5px; }
.heading { margin:26px 0 22px; }.heading h1 { font-size:clamp(25px,3vw,35px); font-weight:700; }.heading p { font-size:14px; }
.composer { border-color:#425a53; background:linear-gradient(120deg,#172d2a,#172230); padding:17px 20px; }
.composer summary { color:#aff3d1; }
.filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0 0 20px; background:var(--panel); border:1px solid var(--line); padding:14px; border-radius:12px; }
.filters label { min-width:130px; flex:1; font-size:11px; }.filters a { padding:10px 5px; font-size:12px; }.filters button { min-height:39px; }
input,textarea,select { background:#0f1621; border-color:#344258; border-radius:9px; font-size:14px; } label { color:#bac8da; }
.ghost { color:#c6d4e8; border-color:#425168; background:#17212d; }
.kanban { gap:14px; }.lane { background:#101620; padding:14px; min-height:360px; }.lane h2 { color:#dce7f5; font-size:14px; }.lane h2 small { font-size:12px; background:#243044; border-radius:7px; padding:3px 8px; }.task-card { background:#182331; border:1px solid #31435a; padding:15px; gap:8px; border-radius:11px; }.task-card:hover { border-color:#627d9b; }
.task-card[draggable="false"] { cursor:default; }.task-title { font-size:14px; line-height:1.4; }.task-card > span,.task-card > small { font-size:11px; }.task-card .late,.late { color:#ffc0a1; }
.tagline { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:3px 0; }
.badge,.task-card .badge { display:inline-flex; max-width:100%; width:fit-content; font-size:10px; line-height:1.35; padding:4px 7px; border-radius:6px; color:#c4d3e5; background:#27354a; overflow-wrap:anywhere; }
.badge.urgent,.task-card .badge.urgent { color:#ffc4be; background:#542d38; }.badge.high,.task-card .badge.high { color:#ffe0a7; background:#4c3a24; }.badge.normal,.task-card .badge.normal { background:#263d39;color:#b3e7d2; }
.work-row { display:flex; gap:10px; align-items:center; justify-content:space-between; text-decoration:none; color:var(--ink); border-bottom:1px solid var(--line); padding:13px 0; min-width:0; }
.work-row:last-child { border:0; }.work-row:hover b { color:var(--primary); }.work-row div { min-width:0; }.work-row b { display:block; font-size:13px; overflow-wrap:anywhere; }.work-row small { display:block; font-size:11px; margin-top:5px; }.work-row .badge { flex:none; }
.section-title { font-size:15px; margin-top:18px; }.subform { background:#111a26;border:1px solid var(--line);border-radius:10px;padding:13px; }.subform[open] summary { margin-bottom:12px; }.subform label,.subform .hint { margin-top:10px; }
.deal-board { grid-template-columns:repeat(4,minmax(0,1fr)); }.lane-total { font-size:17px;font-weight:700;color:#bcd0e7;margin:12px 0; }.deal-card { display:grid; gap:7px; margin:10px 0; padding:13px; border-radius:9px; background:#1b2637; border:1px solid #34475d; text-decoration:none; color:var(--ink); overflow-wrap:anywhere; }.deal-card:hover { border-color:#7294b9; }.deal-card b { font-size:13px; }.deal-card small { font-size:11px; }.deal-card span { color:#a4eac8; font-size:14px; font-weight:700; }
.planner-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }.planner-grid>section { min-height:146px; }
.metrics strong { font-size:clamp(21px,2.5vw,35px); overflow-wrap:anywhere; }.metrics .panel p { font-size:13px; }.note { background:#182231; border-radius:8px; margin:7px 0; padding:13px; border:1px solid #29384b; }.chat-list [aria-current] { background:#263b51;color:#fff; }.chat-side,.thread { min-height:400px; }
.login-body { min-height:100vh; background:radial-gradient(ellipse at 75% 20%,#233e44 0,transparent 48%),radial-gradient(ellipse at 15% 80%,#182c48 0,transparent 50%),var(--bg); }.login-body .narrow { max-width:500px; padding-top:5vh; }.login-body .mast { border:0; }.login-body .panel { padding:30px; background:#172030; box-shadow:0 26px 90px #0005; }.login-body .panel h1 { font-size:29px; }.login-body .panel button { min-height:46px; }
@media(max-width:1200px) { .sidebar {width:222px}.workspace{margin-left:222px;padding-inline:23px}.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-height:115px}.deal-board{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:900px) { .sidebar{width:210px}.workspace{margin-left:210px;padding-inline:17px}.dashboard-grid{grid-template-columns:1fr}.kanban{grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:auto}.kanban .lane{min-width:180px}.deal-board{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.zebra-art{right:-120px}.welcome{padding:24px}.welcome>div:first-child{max-width:90%} }
@media(max-width:700px) { .workspace{margin:0;padding:0 15px 26px}.sidebar{display:none;width:min(280px,86vw);top:65px;box-shadow:0 0 0 100vmax #0007;}.app-body.menu-open .sidebar{display:flex}.menu-toggle{display:inline-flex;padding:7px 10px;font-size:17px}.workspace .mast{position:sticky;top:0;z-index:30;background:var(--bg);min-height:65px;margin-bottom:14px}.avatar{display:none}.identity small{display:none}.identity b{font-size:11px}.welcome h1{font-size:28px}.welcome{min-height:200px}.metric{padding:13px;min-height:111px}.metric span{font-size:11px}.metric-icon{width:28px;height:28px;right:8px;top:8px}.metric-icon svg{width:16px;height:16px}.metric strong{font-size:29px}.metric small{font-size:10px}.overview-metrics{gap:9px}.kanban{display:grid;grid-template-columns:1fr;overflow:visible}.lane{min-height:120px}.planner-grid{grid-template-columns:1fr}.panel{padding:15px}.shop-tile{min-height:130px}.chat-side,.thread{min-height:0}.filters label{min-width:120px}.row{flex-wrap:wrap}.heading{margin:19px 0}.heading h1{font-size:27px} }
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

