/* PhoneLedger 1.3.0 — reference dashboard composition and shared workspace controls. */
:root{--brand-primary:#0878ff;--brand-accent:#923bff;--ink:#0c123b;--muted:#64708c;--line:#d3e0fa;--surface:#f4f8ff;--green:var(--brand-primary);--deep:#035cdb;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{background:#eaf1fa;color:var(--ink)}
#shell{display:grid;grid-template-columns:222px minmax(0,1fr);grid-template-rows:68px 1fr;gap:0;min-height:100vh;margin:8px;border:1px solid #fff;border-radius:24px;overflow:clip;background:linear-gradient(120deg,#fbfdff,#f1f6ff);box-shadow:0 8px 26px #3660961b}
.topbar{grid-column:1/-1;grid-row:1;position:relative;z-index:30;height:68px;gap:22px;padding:0 24px;background:linear-gradient(110deg,#fff,#f4f8ff);border-bottom:1px solid #dae6fb;box-shadow:none}
.brand{font-size:23px!important;letter-spacing:-1.05px;gap:11px;font-weight:800;color:#090f35;flex-shrink:0}.brand>span>small{font-size:10px;letter-spacing:0;font-weight:500;margin-top:2px;color:#10173a}.brand-mark{height:39px;width:39px;border-radius:0;background:transparent!important;box-shadow:none;padding:0;position:relative;isolation:isolate;overflow:hidden}.brand-mark>i{position:absolute;width:35px;height:13px;transform:rotate(-43deg);background:linear-gradient(110deg,#6030ff,#086cff 60%,#40e0fa);border-radius:2px;left:1px;top:4px;box-shadow:0 0 0 2px #fff}.brand-mark>i:nth-child(2){top:16px;left:0;transform:rotate(-43deg)}.brand-mark>i:nth-child(3){width:27px;top:27px;left:13px;transform:rotate(-43deg)}
.role-pill{flex-shrink:0;display:inline-flex;align-items:center;padding:10px 17px;border-radius:24px;color:#fff;background:linear-gradient(115deg,#b150ff,#6027f9);box-shadow:0 4px 10px #8b4aff24;border:1px solid #ac70ff;font-size:12px;font-weight:750;white-space:nowrap}.seller-workspace .role-pill{color:#3513b7;background:linear-gradient(120deg,#eee2ff,#d9c3ff);border-color:#d0b3ff}
.breadcrumb{display:none}.global-search{flex:1;width:auto;max-width:540px;min-width:100px;margin:0 auto!important}.global-search input{height:39px;background:linear-gradient(120deg,#fbfdff,#eaf2ff);border:1px solid #c9dcff;border-radius:24px;font-size:11px;padding-left:40px;color:#18315b;box-shadow:0 3px 7px #2055b508}.global-search>span{left:15px;top:11px;color:#071538}.global-search kbd{background:#dce9ff;border:0;color:#18315b;right:11px;padding:4px 6px;top:7px}.global-search .icon{width:16px;height:16px}#search-results{top:43px;border-color:#c9dcff}#search-results button:hover{background:#eaf3ff}
.topbar-tools{display:flex;gap:12px;align-items:center}.icon-button{border:1px solid #e0eaff;background:linear-gradient(#fff,#eef5ff);color:#101a44;width:37px;height:37px;border-radius:12px;box-shadow:0 3px 5px #2a60b110}.profile-button{background:transparent;border-left:1px solid #d6e2fa;padding-left:17px;gap:9px;min-width:120px}.profile-button>span:first-child{width:38px;height:38px;border:2px solid #fff;background:linear-gradient(140deg,#d3e8ff,#a2b8ee);color:#173265;font-size:12px;box-shadow:0 0 0 1px #dce6f8}.profile-button strong{font-size:11px;font-weight:750;color:#0a1236;max-width:135px}.profile-button small{font-size:9px;color:#253d6a;margin-top:3px}.profile-chevron{font-size:19px;margin-left:8px;color:#12244c}
#sidebar{grid-column:1;grid-row:2;position:sticky;top:0;height:calc(100vh - 84px);padding:11px 10px 18px;border:1px solid #d6e6fb;border-top:0;border-left:0;border-radius:0 0 24px 24px;background:linear-gradient(155deg,#fff 55%,#f0f6ff);overflow:hidden;z-index:20}.workspace-switch{display:none}#sidebar:before,#sidebar:after{content:'';position:absolute;z-index:-1;width:300px;height:130px;left:-40px;bottom:-70px;border-radius:48%;transform:rotate(14deg);background:linear-gradient(120deg,#d6edff,#e7e7ff)}#sidebar:after{bottom:-84px;left:-77px;transform:rotate(-10deg);background:linear-gradient(120deg,#9edaff99,#e1edff);border-top:1px solid #a6daff}
#side-nav{position:relative;scrollbar-width:thin;padding-bottom:10px}#side-nav .nav-heading{font-size:8px;letter-spacing:.7px;margin:16px 13px 5px;color:#7891b5}#side-nav .nav-heading:first-child{display:none}#side-nav button{font-size:12px;font-weight:550;padding:10px 15px;margin:2px 0;gap:15px;color:#0d1739;min-height:36px;line-height:1.25;border-radius:11px}#side-nav button .icon{width:19px;height:19px;padding:0;box-sizing:border-box;background:transparent;color:#10193b;border-radius:0;flex-shrink:0}#side-nav button:hover{background:#eef5ff}#side-nav button.active{background:linear-gradient(180deg,#21aaff,#0065f5);color:#fff;border:1px solid #087bff;box-shadow:0 4px 8px #0380ff28,inset 0 1px #7bd7ff;font-weight:700;padding:9px 14px}#side-nav button.active .icon{color:#fff;background:none}.sidebar-bottom{position:relative;border-color:#dce7f8;padding:12px 10px 0;margin-top:7px}.sidebar-health{color:#6b83a4;font-size:8px}#logout{font-size:11px;color:#1c4d91}.sidebar-bottom>small{color:#8099bc;font-size:7px}
.workspace-body{grid-row:2;grid-column:2;min-width:0}.workspace{padding:12px 13px 0;max-width:1900px;margin:auto}.workspace-header{padding:13px 9px 0;margin-bottom:23px;align-items:center}.workspace-header h1{font-size:28px;letter-spacing:-1px;color:#101740}.workspace-header p{font-size:12px;color:#657494;margin-top:7px}.workspace-header .eyebrow{color:#1676ee;font-size:9px}.overview-page .workspace-header{display:none}#notice:not(:empty){margin-bottom:13px;background:#edf7ff;border:1px solid #bddcff;color:#174d82;padding:13px 16px;border-radius:12px;font-size:12px}#notice.error{background:#fff1f1;color:#a52738;border-color:#f4cad0}.workspace-footer{margin-top:20px;padding:20px 6px 17px;border-color:#dce7fb;color:#6c84a8;font-size:9px}.workspace-footer>span:first-child{font-size:11px;color:#315781}
.button{background:linear-gradient(#23a8ff,var(--brand-primary));border:1px solid #0872ef;border-radius:20px;font-size:11px;font-weight:650;box-shadow:0 3px 6px #0a72ff1a;padding:10px 17px}.button:hover{background:linear-gradient(#168ff0,#0865d9)}.button.secondary{color:#15234b;background:linear-gradient(#fff,#eef5ff);border-color:#bdcfff;box-shadow:0 2px 4px #3460a61a}.button .icon{width:16px;height:16px}.small{padding:8px 13px}input,textarea,select{border-color:#ccdafa;color:#192a50;font-size:12px;background:#fff}input:focus,select:focus,textarea:focus{border-color:#398cff;box-shadow:0 0 0 3px #147aff12}button:focus-visible,a:focus-visible{outline:3px solid #57a8ff;outline-offset:3px}label{font-size:11px}input[type=checkbox]{accent-color:#087aff}.eyebrow{color:#0876ff}.muted{color:#6a7e9d;font-size:12px}
.hero.admin-hero{padding:20px 30px;min-height:181px;display:flex;align-items:center;gap:10px;background:linear-gradient(115deg,#e9e8ff,#e7f3ff 58%,#f1efff);border:1px solid #bfcfff;border-radius:18px;box-shadow:0 4px 8px #447dcf14;position:relative;overflow:hidden;color:#0b123c}.hero:before{content:'';position:absolute;right:0;top:-70px;width:370px;height:340px;border:28px solid #fff4;border-radius:0;transform:rotate(40deg);pointer-events:none}.hero:after{content:none}.hero-copy{flex:1;min-width:0;z-index:2}.hero .eyebrow{font-size:11px;letter-spacing:.4px;color:#0041ef;margin-bottom:9px}.hero h2{font-size:29px;font-weight:800;letter-spacing:-1.15px;color:#070e34;line-height:1.22;white-space:nowrap}.hero h2 span{color:#1739ff}.hero p{font-size:11px;line-height:1.65;margin:8px 0 0;color:#172340;max-width:570px}.hero-actions{display:flex;gap:11px;margin-top:14px;flex-wrap:wrap}.hero .button{font-size:11px;padding:8px 15px;background:linear-gradient(#25b3ff,#0965f9);border-color:#1478ff;color:#fff}.hero .button.secondary{background:linear-gradient(#fff,#edf4ff);border-color:#bbcaff;color:#0e183d}.hero-devices{width:35%;max-width:390px;min-width:220px;height:178px;object-fit:contain;margin:-18px -10px -19px -20px;flex-shrink:0;filter:drop-shadow(0 6px 3px #1b62cc0b)}.hero-platform-badge{display:flex;flex-direction:column;align-items:center;flex:0 0 147px;padding:0 0 0 5px;z-index:1}.hero-crown{font-size:36px;line-height:1;color:#ffac00;text-shadow:0 2px #ffd266}.hero-platform-badge strong{font-size:19px;letter-spacing:-.8px;color:#0a1239}.hero-platform-badge small{font-size:11px;margin-top:3px}.hero-platform-badge p{font-size:10px;background:#e4eaff;border:1px solid #cad6ff;border-radius:24px;padding:9px 14px;white-space:pre-line;text-align:center;line-height:1.6;box-shadow:0 3px 5px #6275ab1b}
.seller-welcome{display:flex;align-items:center;justify-content:space-between;padding:5px 15px 0;gap:20px;min-height:62px}.seller-welcome h2{font-size:24px;letter-spacing:-.9px;font-weight:800;line-height:1.25;color:#10133b}.seller-welcome p{font-size:11px;margin-top:4px;color:#27375c}.period-select{width:auto;min-width:133px;border:1px solid #c8d8ff;padding:9px 12px;font-size:11px;border-radius:10px;background:linear-gradient(#fff,#f2f6ff);box-shadow:0 3px 6px #3263b80c;color:#13204a}
.metrics.dashboard-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:12px 0}.seller-workspace .dashboard-metrics{grid-template-columns:repeat(6,minmax(0,1fr));margin:10px 0 12px}.metric{--tone:#058eff;--tint:0,151,255;display:flex;align-items:center;gap:13px;position:relative;overflow:hidden;border-radius:16px;padding:14px 12px;border:1px solid rgba(var(--tint),.19);background:linear-gradient(115deg,#fff 18%,rgba(var(--tint),.065));box-shadow:0 3px 6px #3379ce12;min-height:92px}.metric:nth-child(6n+2){--tone:#a350f9;--tint:156,77,251}.metric:nth-child(6n+3){--tone:#00bf75;--tint:0,202,123}.metric:nth-child(6n+4){--tone:#ff9b00;--tint:255,170,0}.metric:nth-child(6n+5){--tone:#f447a4;--tint:248,71,174}.metric:nth-child(6n+6){--tone:#9530ff;--tint:142,52,255}.metric:after{content:'';position:absolute;width:65px;height:65px;border-radius:50%;right:-20px;bottom:-42px;background:rgba(var(--tint),.04);pointer-events:none}.metric-icon{width:51px;height:51px;border:1px solid rgba(var(--tint),.2);border-radius:50%;background:linear-gradient(145deg,rgba(var(--tint),.6),var(--tone));box-shadow:0 4px 9px rgba(var(--tint),.22),inset 0 1px #fff9;color:#fff;display:grid;place-items:center;flex-shrink:0}.metric:nth-child(n) .metric-icon{background:linear-gradient(145deg,rgba(var(--tint),.6),var(--tone));color:#fff}.metric-icon .icon{width:28px;height:28px;stroke-width:1.9}.metric-body{min-width:0;flex:1}.metric-head{display:block}.metric-head small{font-size:11px;font-weight:550;color:#101a3e}.metric strong{font-size:23px;line-height:1.2;letter-spacing:-.7px;font-weight:800;margin:4px 0;color:#0b1138;overflow-wrap:normal;white-space:nowrap}.metric-foot{font-size:8px;color:#557092;line-height:1.35;white-space:normal}.seller-workspace .metric{min-height:81px;padding:10px;gap:10px}.seller-workspace .metric:nth-child(1){--tone:#00b847;--tint:0,214,112}.seller-workspace .metric:nth-child(2){--tone:#087aff;--tint:0,146,255}.seller-workspace .metric:nth-child(3){--tone:#962cff;--tint:159,59,255}.seller-workspace .metric:nth-child(5){--tone:#ff303e;--tint:255,58,90}.seller-workspace .metric:nth-child(n) .metric-icon{height:47px;width:47px;color:var(--tone);background:linear-gradient(145deg,#fff,rgba(var(--tint),.15));border:0;box-shadow:inset 0 0 0 1px #fff,0 2px 3px rgba(var(--tint),.04)}.seller-workspace .metric strong{font-size:20px}.seller-workspace .metric-head small{font-size:10px}.seller-workspace .metric-foot{font-size:8px}
.dashboard-grid.reference-dashboard-row{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin:0 0 14px}.seller-workspace .reference-dashboard-row{grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,1fr)}.panel{background:linear-gradient(120deg,#fff,#f6f9ff);border:1px solid #cbdcfa;border-radius:17px;padding:15px 17px;box-shadow:0 4px 7px #3674b60d;margin-bottom:16px;min-width:0}.panel-head{margin-bottom:11px;align-items:center;gap:7px}.panel-head h3{font-size:16px;font-weight:800;color:#0c1539;letter-spacing:-.5px;line-height:1.2}.panel-head p{color:#647798;font-size:10px;margin:4px 0 0}.panel-head button{font-size:10px;color:#0049f5;white-space:nowrap;padding:2px 0}.panel p{color:#536d95}.dashboard-trend .panel-head{gap:5px}.dashboard-trend .period-select{min-width:107px;max-width:125px;padding:7px 8px;font-size:10px}.activity-chart{min-width:0;position:relative;min-height:190px}.activity-chart>svg{width:100%;height:213px;display:block;overflow:visible}.chart-label{fill:#263a62;font-size:10px;font-weight:550}.chart-legend{display:flex;gap:13px;flex-wrap:wrap;justify-content:flex-end;font-size:9px;margin:0 0 1px;min-height:13px;color:#28385c}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:8px;height:8px;border-radius:50%}.panel .chart-period{font-size:9px;color:#6b83a6;margin:0;line-height:1.4}.reference-dashboard-row>.panel{min-height:262px;margin:0}.plan-mix-layout{display:flex;gap:14px;align-items:center;min-height:184px}.donut-wrap{display:flex;justify-content:center;margin:0;flex-shrink:0}.data-donut{width:136px;height:136px;border-radius:50%;display:grid;place-items:center;box-shadow:0 5px 10px #4266ba0d}.donut-hole{height:96px;width:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(#fff,#f2f7ff);border-radius:50%;box-shadow:inset 0 3px 9px #3464b30b}.donut-hole strong{font-size:26px;letter-spacing:-1px;color:#0d173d;line-height:1.2}.donut-hole small{font-size:9px;margin-top:3px;color:#253c65}.plan-mix-legend{flex:1;min-width:0}.plan-mix-item{display:flex;gap:7px;align-items:center;font-size:10px;margin:15px 0;line-height:1.3}.plan-mix-item i{width:9px;height:9px;border-radius:50%;flex-shrink:0}.plan-mix-item span{flex:1;overflow-wrap:anywhere}.plan-mix-item strong{font-size:11px;white-space:nowrap}
.mini-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e0e9f9}.mini-row:last-child{border-bottom:0}.mini-avatar{height:35px;width:35px;border-radius:8px;background:linear-gradient(#f0f6ff,#ccddff);border:1px solid #cfdefa;color:#075ce8;display:grid;place-items:center;flex-shrink:0}.mini-row:nth-child(3n+2) .mini-avatar{background:linear-gradient(#eadaff,#a459df);color:#fff;border-color:#d7b9fa}.mini-row:nth-child(3n+3) .mini-avatar{background:linear-gradient(#e6e7ff,#9db4ff);color:#253dea;border-color:#c6ceff}.mini-row-main{flex:1;min-width:0}.mini-row-main strong{font-size:11px;line-height:1.3;color:#131a3b;display:block;font-weight:750;overflow-wrap:anywhere}.mini-row-main small{font-size:9px;color:#48618d;line-height:1.4;display:block;margin-top:3px;overflow-wrap:anywhere}.mini-row>strong{color:#10193c;font-size:12px;white-space:nowrap}.recent-shops .mini-row{gap:8px;padding:9px 0}.recent-shops .row-action{padding:4px;font-size:9px;border:0;background:transparent;box-shadow:none}.recent-shops .status-chip{font-size:9px;padding:3px 6px}.status-chip{font-size:10px;border-radius:10px;background:#d2fbe4;color:#008128;padding:4px 8px}.status-chip:before{display:none}.status-chip.warning{background:#ffe6ac;color:#c74700}.status-chip.danger{background:#ffe1e5;color:#bc2342}.status-chip.neutral{background:#e7edfa;color:#4c648b}
.quick-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.quick-action-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 5px;min-height:78px;border-radius:12px;background:linear-gradient(#e4f3ff,#cce6ff);border:1px solid #c5dfff;color:#0a1739;font-size:10px;font-weight:650;line-height:1.2;box-shadow:0 2px 2px #fff,inset 0 1px #fff7}.quick-action-tile .icon{height:27px;width:27px;color:#0871ff;stroke-width:2}.quick-action-tile:nth-child(6n+2){background:linear-gradient(#f1eaff,#e7d5ff);border-color:#e3d2fc}.quick-action-tile:nth-child(6n+2) .icon{color:#8c20ff}.quick-action-tile:nth-child(6n+3){background:linear-gradient(#e3fff6,#cbf8ec);border-color:#c3f0e3}.quick-action-tile:nth-child(6n+3) .icon{color:#00b75c}.quick-action-tile:nth-child(6n+4){background:linear-gradient(#fff5e6,#ffe8ca);border-color:#ffdfb6}.quick-action-tile:nth-child(6n+4) .icon{color:#ff8700}.quick-action-tile:nth-child(6n+5){background:linear-gradient(#ffedf7,#ffd8ed);border-color:#f8cee3}.quick-action-tile:nth-child(6n+5) .icon{color:#fc278b}.quick-action-tile:hover{filter:brightness(.98);border-color:#9dbff5}.secondary-dashboard-row{grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}.secondary-dashboard-row .panel{margin:0}.secondary-dashboard-row .empty-state{min-height:125px;padding:12px}.dashboard-data-note{font-size:10px;line-height:1.7;color:#647b9b;padding:0 5px;margin-top:15px}.empty-state{padding:24px 12px;min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty-state>.icon{width:31px;height:31px;color:#8cb2ee}.empty-state h3{font-size:13px;color:#28416a;margin-top:11px}.empty-state p{font-size:10px;color:#6d84a6;max-width:260px;line-height:1.7;margin:7px 0 0}
.table-wrap{border-color:#d4e1f6;box-shadow:0 4px 9px #326ba809;border-radius:14px}th{background:#eef4ff;color:#50688f;font-size:10px}td{font-size:12px;color:#344b71;border-color:#e3ecfa}td:first-child{color:#172b4d}.row-action{font-size:10px;color:#1e62bd;background:#f8fbff;border:1px solid #d7e4f8;border-radius:7px;padding:6px 9px;margin:3px}.row-action:hover{background:#eaf2ff}.toolbar{gap:12px}.record-count{color:#6d83a5}.table-pagination{color:#6a80a1}.plan-card{border-color:#cbdafa;background:linear-gradient(#fff,#f0f6ff);box-shadow:0 3px 8px #2a5d9f0b}.profile-item{border-color:#e0e8f6}.profile-item small{color:#7186a5;font-size:10px}.profile-item strong{font-size:12px;color:#233b62}.cart-total{background:#eaf3ff;border-color:#c7dcff;color:#174d90}.form-section{color:#376ab0;border-color:#dce8fb}.line-card{background:#f8fbff;border-color:#d9e5f8}.permission-matrix{border-color:#d7e3f6}.checkbox-group{border-color:#d7e3f6}.link-button{color:#0567de}
dialog{color:#17284d;border-color:#c5d8fa;box-shadow:0 30px 100px #15366e45;border-radius:18px}dialog::backdrop{background:#142e6259;backdrop-filter:blur(4px)}dialog header{border-color:#d9e4f7;background:linear-gradient(#fff,#f5f9ff)}dialog h2{color:#142443;font-size:22px}.dialog-footer{background:#f3f7ff;border-color:#d6e3f9}.dialog-footer span{color:#617b9e;font-size:10px}#editor-description{font-size:12px;color:#5c7396;line-height:1.7}#editor-fields .field-help{font-size:10px;color:#7186a7}#form-error{font-size:12px;color:#bc314c}.login-art{background:linear-gradient(145deg,#067eff,#3757dd 65%,#8840e2)}.login-art .brand{color:#fff}.login-art .eyebrow,.login-art p{color:#dceaff}.login-art small{color:#d4e5ff}.login-art .brand-mark{background:#fff3!important;border-radius:10px}.login-wrap{border-color:#d3e1f8;box-shadow:0 20px 90px #2459a218}.login-links{color:#3e6caa}.login-wrap .button{padding:14px}.login-wrap .brand-mark span{color:#b9e4ff}
.brand-image{max-width:140px;max-height:38px;object-fit:contain}.platform-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding:7px;border:1px solid #e5e4f0;background:#fff;border-radius:12px}.platform-tabs button{border:0;border-radius:8px;padding:11px 15px;background:none;color:#7b8297;font-weight:650}.platform-tabs button.active{background:#7b65d914;color:#6d55bd}.settings-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 25px}.settings-form .wide{grid-column:1/-1}.settings-form label{margin:0}.settings-form input,.settings-form select,.settings-form textarea{font-size:13px;padding:12px;border:1px solid #dfe4ef;background:#fafbff}.settings-form label>small{font-weight:400;color:#8790a5;margin-top:6px;line-height:1.5}.settings-form .check-field{display:flex;align-items:center;gap:10px}.check-field input{width:auto}.settings-form h3{margin:10px 0}.settings-actions{display:flex;gap:12px;align-items:center;margin-top:10px}.settings-status{padding:14px 17px;background:#7584d30a;border:1px solid #7584d31d;border-radius:10px;font-size:12px;color:#738098;line-height:1.7}.support-layout{display:grid;grid-template-columns:300px minmax(0,1fr);border:1px solid #e3e6ef;border-radius:16px;background:#fff;overflow:hidden;min-height:550px}.support-list{border-right:1px solid #e7e7f1;background:#fbfbfe;padding:15px;max-height:700px;overflow:auto}.support-search{margin-bottom:15px}.thread-item{display:block;width:100%;background:white;border:1px solid #eeeaf6;border-radius:11px;margin-bottom:10px;text-align:left;padding:14px;color:#536079}.thread-item.active{background:#7c65d90b;border-color:#b9abe4}.thread-item strong{display:block;font-size:13px;margin:0 0 7px}.thread-item small{display:block;color:#9298aa;font-size:11px;line-height:1.6}.thread-item .status-chip{margin-top:8px}.unread-count{float:right;background:#8064d5;border-radius:12px;color:white;padding:2px 7px;font-size:10px}.chat-pane{display:flex;flex-direction:column;min-width:0}.chat-header{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #eae8f1;justify-content:space-between}.chat-header h3{font-size:15px}.chat-header p{font-size:11px;color:#8b93a8;margin-top:6px}.chat-messages{flex:1;min-height:300px;max-height:450px;overflow:auto;padding:22px;background:radial-gradient(circle at top right,#e8e5f833,transparent 70%)}.chat-message{max-width:85%;width:fit-content;margin:0 0 17px;padding:13px 16px;border-radius:14px 14px 14px 3px;background:#f0f3fa;border:1px solid #e7ebf3;color:#56617a;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.mine{margin-left:auto;background:#8064d910;border-color:#8064d923;border-radius:14px 14px 3px 14px;color:#65548e}.chat-message small{display:block;color:#9a9caf;font-size:9px;margin-top:6px}.chat-compose{padding:18px;border-top:1px solid #eae8f1;display:flex;gap:12px;align-items:flex-end}.chat-compose textarea{resize:vertical;min-height:65px;max-height:200px;flex:1;font-size:13px}.chat-compose .button{padding:14px 18px}.demo-banner{border:1px dashed #d2b1ef;background:#b56ee90b;padding:18px;border-radius:12px;line-height:1.8;color:#8063a3}.notification-log{max-height:350px;overflow:auto;margin-top:20px}.settings-feedback{font-size:12px;white-space:pre-wrap;color:#397d6d;line-height:1.8}.settings-feedback.error{color:#b65f67}.login-art{background:linear-gradient(145deg,#6053b4,#466caa 65%,#438b9c)}.login-art .eyebrow,.login-art p{color:#d8dcef}.login-art small{color:#c2cce4}
.platform-tabs button.active{background:#eaf3ff;color:#0769e4}.settings-form input,.settings-form select,.settings-form textarea{background:#f9fbff;border-color:#d2dff7}.thread-item.active{background:#eaf3ff;border-color:#abcdfb}.chat-message.mine{background:#e9f2ff;border-color:#d2e3fb;color:#24558c}.login-art{background:linear-gradient(145deg,#067eff,#3757dd 65%,#8840e2)}.login-art .eyebrow,.login-art p{color:#dceaff}.login-art small{color:#d4e5ff}
@media(min-width:1500px){.workspace{padding-top:12px}.hero.admin-hero{min-height:190px}.hero h2{font-size:32px}.hero-devices{height:190px;max-width:440px}.metric{padding:15px 16px;min-height:94px}.metric strong{font-size:25px}.seller-workspace .metric strong{font-size:22px}.panel-head h3{font-size:17px}.reference-dashboard-row>.panel{min-height:275px}.activity-chart>svg{height:224px}.data-donut{height:150px;width:150px}.donut-hole{height:108px;width:108px}}
@media(max-width:1350px){.topbar{gap:15px;padding:0 20px}.brand{font-size:21px!important}.brand>span>small{font-size:9px}.role-pill{font-size:11px;padding:9px 14px}.topbar-tools{gap:8px}.hero.admin-hero{padding:22px;min-height:170px}.hero h2{font-size:25px}.hero-devices{min-width:180px;width:30%;margin-left:-30px}.hero-platform-badge{flex-basis:125px}.hero-platform-badge strong{font-size:17px}.hero p{font-size:10px}.hero .button{font-size:10px;padding:8px 11px}.metric{padding:12px 10px;gap:9px}.metric-icon{height:43px;width:43px}.metric strong{font-size:20px}.metric-head small{font-size:10px}.metric-foot{font-size:8px}.seller-workspace .metric{gap:7px;padding:10px 7px}.seller-workspace .metric:nth-child(n) .metric-icon{height:36px;width:36px}.seller-workspace .metric strong{font-size:17px}.seller-workspace .metric-head small{font-size:9px}.metric-icon .icon{height:24px;width:24px}.panel{padding:14px 13px}.panel-head h3{font-size:15px}.plan-mix-layout{gap:9px;flex-wrap:wrap;justify-content:center}.plan-mix-legend{min-width:110px}.data-donut{width:114px;height:114px}.donut-hole{width:82px;height:82px}.donut-hole strong{font-size:23px}.plan-mix-item{font-size:9px;gap:5px}.plan-mix-item strong{font-size:10px}.mini-row{gap:7px}.mini-avatar{width:30px;height:32px}.mini-row-main strong{font-size:10px}.mini-row>strong{font-size:11px}.recent-shops .mini-row{flex-wrap:wrap}.recent-shops .mini-row-main{min-width:70px}.recent-shops .status-chip{font-size:8px}.quick-action-tile{font-size:9px;min-height:74px}.quick-action-grid{gap:7px}.chart-label{font-size:11px}}
@media(max-width:1100px){#shell{grid-template-columns:190px minmax(0,1fr)}.topbar{gap:12px}.brand{font-size:19px!important}.brand-mark{height:35px;width:35px}.profile-button{padding-left:10px;min-width:auto}.profile-button>span:nth-child(2){display:none}.profile-chevron{display:none}.global-search{max-width:380px}.hero h2{font-size:23px}.hero-platform-badge{display:none}.hero-devices{width:34%;margin-left:-30px}.hero-actions{gap:7px}.hero .button{font-size:9px;padding:7px 10px}.dashboard-metrics .metric{flex-direction:column;align-items:flex-start;gap:7px;min-height:126px}.metric-body{width:100%}.seller-workspace .dashboard-metrics .metric{min-height:126px}.seller-workspace .metric-head small{font-size:10px}.seller-workspace .metric strong{font-size:18px}.reference-dashboard-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important}.reference-dashboard-row>.panel:last-child{grid-column:1/-1;min-height:0}.recent-shops .mini-row{flex-wrap:nowrap}.quick-action-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:10px}.activity-chart>svg{height:215px}.seller-welcome h2{font-size:21px}#side-nav button{font-size:11px;padding:9px 12px;gap:12px}#side-nav button.active{padding:8px 11px}.plan-mix-layout{flex-wrap:nowrap}.data-donut{height:110px;width:110px}.donut-hole{height:78px;width:78px}}
@media(max-width:850px){#shell{grid-template-columns:174px minmax(0,1fr);margin:5px;border-radius:18px}.topbar{padding:0 13px;gap:10px}.topbar .brand>span>small{display:none}.topbar .brand{font-size:17px!important;gap:7px}.role-pill{font-size:10px;padding:8px 11px}.global-search input{font-size:10px}.topbar-tools{gap:6px}.topbar-tools .button{font-size:9px;padding:7px 9px}.topbar .icon-button{width:32px;height:32px}.topbar-tools #refresh{display:none}.profile-button{padding-left:8px}.profile-button>span:first-child{width:32px;height:32px}.workspace{padding:10px 11px 0}#sidebar{height:calc(100vh - 79px);padding:10px 7px 15px}.hero.admin-hero{padding:19px;min-height:170px}.hero h2{font-size:22px;white-space:normal}.hero-devices{width:29%;min-width:120px;margin-left:-40px;align-self:flex-end;height:135px}.hero p{max-width:330px}.hero-actions{max-width:340px}.hero .button{font-size:9px}.metrics.dashboard-metrics,.seller-workspace .dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.dashboard-metrics .metric,.seller-workspace .dashboard-metrics .metric{flex-direction:row;align-items:center;min-height:87px}.metric:nth-child(n) .metric-icon{width:37px;height:37px}.metric strong,.seller-workspace .metric strong{font-size:19px}.metric-head small{font-size:10px}.reference-dashboard-row{grid-template-columns:1fr!important}.reference-dashboard-row>.panel:last-child{grid-column:auto}.reference-dashboard-row>.panel{min-height:0}.activity-chart>svg{height:230px}.plan-mix-layout{justify-content:flex-start;min-height:155px;gap:28px}.data-donut{height:145px;width:145px}.donut-hole{height:103px;width:103px}.plan-mix-item{font-size:12px}.plan-mix-item strong{font-size:12px}.quick-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-action-tile{font-size:11px}.seller-welcome{align-items:flex-start;padding:7px 3px 0;flex-wrap:wrap;gap:11px}.seller-welcome h2{font-size:22px}.seller-welcome .period-select{padding:7px 9px;min-width:115px;font-size:10px}.secondary-dashboard-row{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}}
@media(max-width:600px){#shell{display:grid;grid-template-columns:1fr;grid-template-rows:61px 1fr;margin:0;border:0;border-radius:0;min-height:100vh}.topbar{grid-column:1;height:61px;padding:0 12px;gap:9px;position:sticky;top:0}.topbar .brand{font-size:18px!important}.topbar .brand-mark{height:32px;width:32px}.topbar .role-pill{font-size:9px;padding:6px 8px}.topbar .global-search{position:absolute;top:69px;left:15px;right:15px;max-width:none;z-index:1;display:none}.topbar .profile-button{display:flex;padding-left:0;border:0;margin-left:auto}.topbar-tools{margin-left:auto}.topbar-tools #quick-add{display:none}.profile-button>span:first-child{height:30px;width:30px}.topbar #support-shortcut{display:none}.mobile-menu{display:inline-flex}.topbar .mobile-menu{height:30px;width:30px;border-radius:8px}.workspace-body{grid-column:1;grid-row:2;min-width:0}#sidebar{position:fixed;left:0;top:61px;width:230px;height:calc(100vh - 61px);transform:translateX(-105%);transition:transform .18s;box-shadow:15px 0 45px #17305f25;border-radius:0 18px 18px 0;z-index:40;padding:12px}body.nav-open #sidebar{transform:translateX(0)}#side-nav button{font-size:12px;min-height:39px}.workspace{padding:12px 11px 0}.hero.admin-hero{padding:21px 19px;min-height:211px;border-radius:17px;align-items:flex-start}.hero h2{font-size:25px;max-width:250px}.hero .eyebrow{font-size:9px}.hero p{font-size:10px;max-width:265px}.hero-devices{position:absolute;right:-20px;bottom:32px;width:145px;min-width:0;height:116px;opacity:.7;margin:0;z-index:1}.hero-copy{z-index:2}.hero-actions{gap:7px;margin-top:17px;max-width:100%}.hero .button{font-size:9px;padding:8px 9px}.hero .button .icon{width:13px;height:13px}.metrics.dashboard-metrics,.seller-workspace .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0}.dashboard-metrics .metric,.seller-workspace .dashboard-metrics .metric{min-height:86px;padding:11px 9px;gap:9px}.metric strong,.seller-workspace .metric strong{font-size:21px;letter-spacing:-.7px}.metric-head small,.seller-workspace .metric-head small{font-size:10px}.metric-foot{font-size:8px}.metric:nth-child(n) .metric-icon{height:36px;width:36px}.metric-icon .icon{height:22px;width:22px}.seller-workspace .metric:nth-child(n) .metric-icon{height:36px;width:36px}.dashboard-metrics .metric:last-child:nth-child(odd){grid-column:1/-1}.panel{padding:15px;border-radius:15px}.panel-head h3{font-size:16px}.panel-head button{font-size:10px}.reference-dashboard-row{gap:11px!important}.activity-chart>svg{height:213px}.plan-mix-layout{gap:23px;min-height:165px}.plan-mix-item{font-size:11px}.plan-mix-item strong{font-size:12px}.recent-shops .mini-row{flex-wrap:nowrap}.mini-row-main strong{font-size:11px}.mini-row-main small{font-size:10px}.mini-row>strong{font-size:12px}.mini-avatar{height:35px;width:35px}.recent-shops .status-chip{font-size:9px}.quick-action-grid{gap:9px}.quick-action-tile{font-size:10px;min-height:82px}.quick-action-tile .icon{height:28px;width:28px}.seller-welcome h2{font-size:23px}.seller-welcome p{font-size:11px}.workspace-header{padding:6px 4px 0;gap:13px;flex-wrap:wrap}.workspace-header h1{font-size:25px}.workspace-header p{font-size:11px;max-width:none}.workspace-footer{font-size:8px}.workspace-footer>span:first-child{font-size:10px}.toolbar-left{gap:9px}.toolbar input{min-width:145px}.toolbar-right .button{font-size:10px}#editor-fields{grid-template-columns:1fr}.dialog-footer span{font-size:9px;max-width:160px}.dialog-footer{gap:10px}.dialog-footer .button{font-size:10px;padding:10px 13px}.settings-form{grid-template-columns:1fr}.support-layout{grid-template-columns:1fr}.support-list{max-height:230px;border-right:0;border-bottom:1px solid #e7e7f1}.chat-compose{flex-direction:column;align-items:stretch}.chat-compose textarea{width:100%}.platform-tabs button{font-size:11px;padding:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.metric,.button,#sidebar{transition:none!important}}

/* Stable module colors in both panels, including the active item. */
#side-nav button{--nav-color:#2563eb;--nav-tint:#eaf2ff;font-weight:650;gap:11px}
#side-nav button .icon{width:29px;height:29px;padding:5px;border-radius:9px;color:var(--nav-color);background:var(--nav-tint);box-shadow:inset 0 0 0 1px #ffffff80}
#side-nav button.active .icon{color:var(--nav-color);background:var(--nav-tint);box-shadow:0 2px 5px #003a8526,inset 0 0 0 1px #ffffffb3}
#side-nav button[data-page="Shops"],#side-nav button[data-page="Inventory"],#side-nav button[data-page="Shop"]{--nav-color:#079669;--nav-tint:#e1faef}
#side-nav button[data-page="Plans"],#side-nav button[data-page="Roles"],#side-nav button[data-page="Branding"]{--nav-color:#8b3ed8;--nav-tint:#f3e8ff}
#side-nav button[data-page="Sales"],#side-nav button[data-page="Payments"],#side-nav button[data-page="Billing"]{--nav-color:#e44c88;--nav-tint:#ffe8f1}
#side-nav button[data-page="Subscriptions"],#side-nav button[data-page="Purchases"],#side-nav button[data-page="Suppliers"]{--nav-color:#d87906;--nav-tint:#fff2d9}
#side-nav button[data-page="Support"],#side-nav button[data-page="Returns"]{--nav-color:#e45155;--nav-tint:#ffe9e9}
#side-nav button[data-page="Reports"],#side-nav button[data-page="Ledger"]{--nav-color:#0891b2;--nav-tint:#dff8fc}
#side-nav button[data-page="Settings"],#side-nav button[data-page="Automation"],#side-nav button[data-page="Accessories"]{--nav-color:#6751d7;--nav-tint:#eeebff}
#side-nav button[data-page="Staff"],#side-nav button[data-page="Customers"],#side-nav button[data-page="Website"]{--nav-color:#167bb5;--nav-tint:#e2f4ff}
#side-nav button[data-page="Audit"],#side-nav button[data-page="Expenses"],#side-nav button[data-page="Updates"]{--nav-color:#a953b6;--nav-tint:#f9e8fc}

.workspace-access-banner{display:flex;align-items:center;gap:12px;padding:14px 17px;margin:0 0 14px;border:1px solid #cfb1ff;border-radius:15px;background:linear-gradient(110deg,#f4eaff,#eaf3ff);box-shadow:0 4px 15px #6541b514;position:sticky;top:76px;z-index:25;color:#362269}.workspace-access-banner>.icon{width:28px;height:28px;color:#8541d1;flex-shrink:0}.workspace-access-banner>div{flex:1}.workspace-access-banner strong{font-size:13px}.workspace-access-banner p{font-size:11px;margin:4px 0 0;line-height:1.5}.workspace-access-banner .button{white-space:nowrap}@media(max-width:600px){.workspace-access-banner{top:65px;flex-wrap:wrap;padding:12px}.workspace-access-banner>div{min-width:190px}.workspace-access-banner .button{width:100%}}
/* Seller completion 1.4 */
.seller-workspace .button:not(.secondary){background:var(--seller-accent,var(--brand-primary,#0877ff))}.seller-workspace .role-pill{background:#e7f4ff;color:var(--seller-accent,#0877ff)}
#side-nav button[data-page="Employees"]{--nav-color:#167bb5;--nav-tint:#e2f4ff}#side-nav button[data-page="Exchange"]{--nav-color:#d05c13;--nav-tint:#fff0dd}#side-nav button[data-page="Wholesale"]{--nav-color:#cc3b83;--nav-tint:#ffe9f4}
.invoice-template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.invoice-template-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#fff;border:2px solid #e5eaf3;border-radius:14px;padding:18px;text-align:left;color:#283b55;cursor:pointer}.invoice-template-card.selected{border-color:var(--seller-accent,#0877ff);background:#f0f6ff}.invoice-template-card small{font-size:11px;color:#71829a;line-height:1.5}.template-paper{font-size:30px;color:#7c6ed5;background:#eeeaff;border-radius:9px;width:50px;text-align:center}.invoice-preview{width:100%;height:590px;border:1px solid #dce5ef;border-radius:12px;background:#edf2f7}.settings-form>.wide{grid-column:1/-1}.settings-form label:has(input[type="checkbox"]){display:flex;align-items:center;gap:10px}.settings-form input[type="checkbox"]{width:18px;height:18px}.inline-customer{padding:20px;border:1px solid #d5e7fa;background:linear-gradient(120deg,#f1f8ff,#fbf5ff);border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.inline-customer h3,.inline-customer>p{grid-column:1/-1;margin:0}.inline-customer[hidden]{display:none}.inline-customer label{min-width:0}.inline-customer textarea{min-height:65px}.ledger-filters{display:flex;align-items:flex-end;gap:12px;margin-bottom:20px}.ledger-filters label{flex:1}.ledger-balances{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.ledger-balances .metric{padding:16px}.history-section{margin-top:15px}.history-section h3{font-size:15px;margin:0 0 12px}.attachment-actions{display:flex;flex-wrap:wrap;gap:10px}.attachment-actions h3{width:100%}.permission-matrix{overflow-x:auto;grid-column:1/-1}.permission-matrix table{min-width:590px}.permission-matrix input[type="checkbox"]{width:18px;height:18px}.permission-matrix td{padding:10px}.settings-form textarea{min-height:80px}.settings-form .logo-preview{max-width:150px;max-height:90px;object-fit:contain}.ledger-overview .toolbar{margin-bottom:18px}.history-section .empty-state{padding:20px}.history-section .empty-state .icon{height:25px}.history-section .empty-state h3{margin-bottom:5px}.ledger-overview .table-wrap{margin-top:12px}@media(max-width:700px){.invoice-template-cards{grid-template-columns:1fr}.invoice-template-card{display:grid;grid-template-columns:50px 1fr;gap:4px 12px;padding:12px}.template-paper{grid-row:span 2}.invoice-template-card small{grid-column:2}.inline-customer{grid-template-columns:1fr;padding:14px}.ledger-filters{flex-wrap:wrap}.ledger-filters label{min-width:120px}.ledger-balances{grid-template-columns:1fr}.invoice-preview{height:500px}}
.contact-identity{display:flex;align-items:center;gap:9px}.contact-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:11px;overflow:hidden;background:linear-gradient(135deg,#e9f2ff,#f3eaff);display:grid;place-items:center;color:#6a66b5;font-size:11px;font-weight:700}.contact-avatar img{width:100%;height:100%;object-fit:cover}.contact-identity strong{font-weight:600}
