:root{color-scheme:dark;--bg:#080c18;--bg2:#0d1222;--surface:rgba(25,30,48,.78);--surface-2:rgba(32,38,61,.72);--line:rgba(203,213,255,.14);--line-strong:rgba(203,213,255,.24);--text:#f7f8ff;--muted:#aeb5cb;--purple:#7957f5;--purple-2:#a58bff;--green:#29d39a;--red:#ff6474;--amber:#f6b95b;--blue:#4ab3ff;--shadow:0 24px 70px rgba(0,0,0,.34)}
*{box-sizing:border-box}html{min-width:320px;background:var(--bg)}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--text);background:radial-gradient(circle at 82% 3%,rgba(76,65,184,.23),transparent 30%),radial-gradient(circle at 62% 55%,rgba(69,50,161,.10),transparent 35%),linear-gradient(135deg,#080b15,#11182b 63%,#0b1020);min-height:100vh;font-size:16px}button,input,select,textarea{font:inherit}button{color:inherit}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow,.kicker{letter-spacing:.08em;text-transform:uppercase;font-size:.78rem;font-weight:700;color:var(--purple-2);margin:0 0 .6rem}.notice{position:fixed;top:1rem;left:50%;z-index:100;transform:translate(-50%,-130%);max-width:min(92vw,620px);padding:.82rem 1rem;border:1px solid var(--line-strong);border-radius:12px;background:#171d31;box-shadow:var(--shadow);transition:.24s;color:var(--text)}.notice.show{transform:translate(-50%,0)}.notice.error{border-color:rgba(255,100,116,.55);background:#301821}.notice.success{border-color:rgba(41,211,154,.5);background:#102920}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr)}.auth-brand{padding:clamp(3rem,8vw,8rem);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-brand:before{content:"";position:absolute;inset:7% -10% auto 35%;height:70%;background:radial-gradient(ellipse,rgba(121,87,245,.26),transparent 63%);filter:blur(12px);pointer-events:none}.auth-brand h1{font-size:clamp(2.8rem,5.2vw,5.7rem);line-height:.98;letter-spacing:-.065em;margin:.5rem 0 1.5rem;max-width:900px}.auth-copy{font-size:1.05rem;line-height:1.75;color:var(--muted);max-width:650px}.auth-trust{display:flex;gap:1.6rem;flex-wrap:wrap;margin-top:2.5rem;color:#d5d8e7}.auth-trust span{display:flex;gap:.55rem;align-items:center}.auth-trust svg{width:19px;color:var(--purple-2)}.auth-card{display:flex;align-items:center;justify-content:center;padding:2rem;background:rgba(8,11,21,.62);border-left:1px solid var(--line)}.auth-card>div,.auth-card>form{width:min(100%,450px)}.brand-inline{display:flex;gap:.7rem;align-items:center;margin-bottom:2rem}.brand-mark{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#332569,#1b173b);color:#9a7cff;font-size:1.45rem;box-shadow:inset 0 0 0 1px rgba(162,139,255,.12)}.brand-mark.large{width:76px;height:76px;font-size:2.25rem;margin-bottom:2.5rem}.brand-mark.small{width:34px;height:34px;font-size:1rem}.auth-form{padding:2rem;border:1px solid var(--line-strong);border-radius:22px;background:linear-gradient(145deg,rgba(34,39,62,.82),rgba(15,20,36,.9));box-shadow:var(--shadow)}.auth-form h2{font-size:2rem;margin:.1rem 0 .35rem}.auth-form label,.form-grid label,.field{display:grid;gap:.5rem;font-size:.86rem;color:#d7daea;font-weight:600}.auth-form label{margin-top:1.1rem}input,select,textarea{width:100%;border:1px solid var(--line-strong);border-radius:10px;background:rgba(7,10,20,.62);color:var(--text);padding:.78rem .9rem;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--purple-2);box-shadow:0 0 0 3px rgba(121,87,245,.15)}textarea{resize:vertical;min-height:95px}.button{border:1px solid var(--line-strong);border-radius:10px;padding:.72rem 1rem;background:rgba(46,52,78,.7);font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.button:hover{border-color:rgba(165,139,255,.6);transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.button.primary{background:linear-gradient(135deg,#6944df,#4b35aa);border-color:#8064e8}.button.success{background:rgba(24,121,91,.38);border-color:rgba(41,211,154,.4)}.button.danger{background:rgba(145,43,58,.34);border-color:rgba(255,100,116,.4)}.button.warning{background:rgba(143,94,25,.35);border-color:rgba(246,185,91,.4)}.button.subtle{background:rgba(27,32,51,.55)}.button.small{font-size:.82rem;padding:.5rem .7rem}.wide{width:100%;margin-top:1.3rem}.text-button{background:none;border:0;color:var(--purple-2);padding:1rem;cursor:pointer;width:100%}
.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(11,15,29,.96),rgba(13,18,35,.92));padding:1.35rem 1rem;display:flex;flex-direction:column;z-index:30;backdrop-filter:blur(24px)}.brand{display:flex;align-items:flex-start;gap:.85rem;padding:.1rem .35rem 1.8rem}.brand strong{font-size:1.13rem;line-height:1.12}.brand small{display:block;color:var(--muted);font-size:.75rem;margin-top:.55rem}.nav{display:grid;gap:.38rem}.nav button{border:0;background:transparent;color:#cbd0df;display:flex;align-items:center;gap:.9rem;padding:.86rem 1rem;border-radius:12px;cursor:pointer;text-align:left;position:relative}.nav button:hover,.nav button.active{background:linear-gradient(90deg,rgba(92,68,191,.52),rgba(65,57,119,.36));color:white}.nav button svg{width:21px}.nav .badge{margin-left:auto;background:#ee4659;color:white;min-width:22px;height:22px;border-radius:99px;display:grid;place-items:center;font-size:.72rem;font-weight:800}.account-card{margin-top:auto;border:1px solid var(--line-strong);border-radius:14px;padding:1rem;background:linear-gradient(145deg,rgba(52,48,95,.48),rgba(20,24,43,.82));display:grid;grid-template-columns:42px minmax(0,1fr);gap:.7rem}.avatar{width:42px;height:42px;border-radius:50%;background:#4e31b3;display:grid;place-items:center}.avatar svg{width:21px}.account-copy{min-width:0}.account-copy strong,.account-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.account-copy strong{font-size:.85rem}.account-copy small{font-size:.68rem;color:var(--muted);margin-top:.25rem}.role-chip{display:inline-flex;margin-top:.55rem;padding:.2rem .55rem;border-radius:99px;background:#6540d6;font-size:.65rem;font-weight:800}.sign-out{grid-column:1/-1;border:0;border-radius:9px;background:rgba(72,76,105,.35);padding:.7rem;display:flex;align-items:center;gap:.6rem;cursor:pointer}.sign-out svg{width:18px}.mobile-topbar{display:none}.workspace{grid-column:2;padding:1.4rem 2rem 1rem;min-width:0}.top-header{display:flex;justify-content:space-between;align-items:center;gap:2rem;min-height:120px}.top-header h1{margin:.2rem 0 .35rem;font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.045em}.top-header p{margin-top:0}.company-lockup{display:flex;align-items:center;gap:1rem;min-width:min(100%,470px);justify-content:flex-end}.company-lockup>span:nth-child(2){height:58px;width:2px;background:#edf0ff}.company-lockup strong{font-size:1.2rem;white-space:nowrap}.company-lockup small{display:block;color:var(--muted);margin-top:.45rem}.network-mark svg{width:45px;height:45px}.page{outline:none}.page-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(310px,.9fr);gap:1rem}.stack{display:grid;gap:1rem}.panel{border:1px solid var(--line-strong);background:linear-gradient(145deg,rgba(34,39,61,.72),rgba(18,23,40,.76));border-radius:14px;box-shadow:0 12px 34px rgba(0,0,0,.13);padding:1.15rem;backdrop-filter:blur(15px)}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.panel-header h2,.panel-header h3{margin:0}.panel-header h2{font-size:1.18rem}.panel-header h3{font-size:1rem}.panel-header .actions{display:flex;gap:.55rem;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.stat-card{min-height:126px;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:.85rem;padding:1.1rem;border:1px solid var(--line-strong);border-radius:14px;background:linear-gradient(145deg,rgba(35,40,62,.76),rgba(18,23,40,.82))}.stat-icon{width:55px;height:55px;border-radius:50%;display:grid;place-items:center;background:rgba(121,87,245,.28);color:var(--purple-2)}.stat-icon.green{background:rgba(41,211,154,.18);color:var(--green)}.stat-icon.red{background:rgba(255,100,116,.18);color:var(--red)}.stat-icon.gray{background:rgba(156,165,201,.13);color:#c0c7df}.stat-icon svg{width:28px}.stat-card span{color:var(--muted);font-size:.8rem}.stat-card strong{display:block;font-size:2rem;margin-top:.4rem}.trend{height:270px;position:relative}.trend svg{width:100%;height:220px;overflow:visible}.chart-grid line{stroke:rgba(192,199,225,.1);stroke-width:1}.chart-line{fill:none;stroke:#7957f5;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:url(#chartGlow);opacity:.35}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem;padding:0 .7rem}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.quick-action{min-height:92px;border:1px solid var(--line);border-radius:12px;background:rgba(39,44,67,.55);padding:1rem;text-align:left;cursor:pointer}.quick-action.primary{background:linear-gradient(135deg,rgba(105,68,223,.75),rgba(65,48,136,.7));border-color:rgba(150,120,255,.4)}.quick-action svg{width:24px;margin-bottom:.75rem}.quick-action strong{display:block}.quick-action small{color:var(--muted)}.slogan{display:flex;gap:.8rem;align-items:center}.slogan b{color:var(--amber);font-size:1.6rem}.slogan small{display:block;color:var(--muted);margin-top:.25rem}
.toolbar{display:flex;gap:.65rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}.toolbar label{min-width:140px;display:grid;gap:.35rem;font-size:.72rem;color:var(--muted);font-weight:700}.toolbar .grow{flex:1;min-width:210px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.table{width:100%;border-collapse:collapse;min-width:820px}.table th{font-size:.68rem;color:#9ca5bd;text-transform:uppercase;letter-spacing:.04em;text-align:left;background:rgba(36,41,63,.75);padding:.7rem .75rem;position:sticky;top:0}.table td{padding:.72rem .75rem;border-top:1px solid rgba(203,213,255,.07);font-size:.84rem;vertical-align:middle}.table tbody tr{cursor:pointer}.table tbody tr:hover{background:rgba(121,87,245,.08)}.cell-main{font-weight:600}.cell-sub{display:block;color:var(--muted);font-size:.7rem;margin-top:.2rem}.money{font-variant-numeric:tabular-nums}.status{display:inline-flex;align-items:center;gap:.35rem;padding:.28rem .55rem;border-radius:999px;font-size:.68rem;font-weight:700}.status.NEEDS_REVIEW{color:#ff8895;background:rgba(175,44,60,.35)}.status.APPROVED,.status.ACTIVE,.status.GRANTED,.status.RESOLVED{color:#52e4b1;background:rgba(22,118,87,.32)}.status.REJECTED,.status.DISABLED,.status.REVOKED{color:#ff8794;background:rgba(155,42,55,.32)}.status.ARCHIVED,.status.PENDING{color:#c9cfe3;background:rgba(107,116,151,.24)}.empty{text-align:center;padding:3rem;color:var(--muted)}.bulk-bar{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.8rem 1rem;border:1px solid rgba(121,87,245,.35);border-radius:12px;background:rgba(79,57,158,.19);margin-bottom:1rem}.bulk-bar strong{margin-right:auto}.check{width:17px;height:17px;accent-color:var(--purple)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid .full{grid-column:1/-1}.upload-zone{border:1px dashed rgba(165,139,255,.5);border-radius:14px;padding:2rem;text-align:center;background:rgba(73,53,153,.1);cursor:pointer}.upload-zone svg{width:34px;color:var(--purple-2);margin-bottom:.8rem}.upload-zone input{position:absolute;opacity:0;pointer-events:none}.file-pill{display:inline-flex;align-items:center;gap:.5rem;background:rgba(42,48,72,.8);padding:.5rem .75rem;border-radius:8px;margin-top:.8rem}.progress{height:7px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}.progress>span{height:100%;display:block;background:linear-gradient(90deg,#6b47e4,#a58bff);transition:width .25s}.ocr-box{font-family:ui-monospace,SFMono-Regular,monospace;min-height:170px;font-size:.78rem}.helper{font-size:.75rem;color:var(--muted);line-height:1.5}.alert{padding:.8rem 1rem;border-radius:10px;border:1px solid var(--line);background:rgba(70,76,105,.18);font-size:.82rem}.alert.warning{border-color:rgba(246,185,91,.35);background:rgba(128,86,23,.18)}.alert.danger{border-color:rgba(255,100,116,.35);background:rgba(128,31,45,.2)}.identity-pair{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.identity{padding:.8rem;border:1px solid var(--line);border-radius:10px}.identity small{color:var(--muted);display:block;margin-bottom:.35rem}.flag-list,.timeline{display:grid;gap:.65rem}.flag{border:1px solid var(--line);border-radius:10px;padding:.75rem;background:rgba(23,28,47,.6);display:flex;justify-content:space-between;gap:1rem}.timeline-item{display:grid;grid-template-columns:12px 1fr auto;gap:.7rem;align-items:start}.timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--purple);margin-top:.3rem;box-shadow:0 0 0 4px rgba(121,87,245,.12)}.timeline-item small{color:var(--muted)}
.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:1rem}.modal-backdrop{position:absolute;inset:0;background:rgba(3,5,12,.72);backdrop-filter:blur(8px)}.modal-panel{position:relative;width:min(900px,96vw);max-height:92vh;overflow:auto;border:1px solid var(--line-strong);border-radius:18px;background:linear-gradient(145deg,#171d31,#0e1425);box-shadow:0 30px 100px rgba(0,0,0,.55);padding:1.35rem}.modal-close{position:absolute;right:1rem;top:1rem;z-index:2}.icon-button{width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:rgba(39,44,67,.75);display:grid;place-items:center;cursor:pointer}.icon-button svg{width:19px}.modal h2{margin:.2rem 0 1.2rem;padding-right:3rem}.detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:1rem}.modal-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.undo-bar{position:fixed;z-index:90;right:1.2rem;bottom:1.2rem;display:flex;align-items:center;gap:1rem;border:1px solid rgba(165,139,255,.55);border-radius:12px;background:#1d2240;padding:.9rem 1rem;box-shadow:var(--shadow)}.undo-bar button{border:0;background:none;color:#b9a8ff;font-weight:800;cursor:pointer}.user-card{display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:12px}.user-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.45rem}.user-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}.split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem}footer{display:flex;justify-content:space-between;color:#838ca5;font-size:.72rem;padding:1.5rem 0 .3rem}
@media(max-width:1180px){.stats{grid-template-columns:repeat(2,1fr)}.page-grid{grid-template-columns:1fr}.company-lockup{min-width:auto}.company-lockup strong{font-size:.95rem}}
@media(max-width:820px){.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.auth-card{border:0;min-height:100vh}.app-shell{display:block}.sidebar{transform:translateX(-102%);transition:.22s}.sidebar.open{transform:translateX(0)}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:25;background:rgba(9,13,25,.9);border-bottom:1px solid var(--line);padding:.7rem 1rem;backdrop-filter:blur(14px)}.mobile-topbar .brand-inline{margin:0}.workspace{padding:1rem;grid-column:auto}.top-header{align-items:flex-start;min-height:auto;padding:.8rem 0 1.1rem}.company-lockup{display:none}.form-grid,.detail-grid,.split,.identity-pair{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.stats{grid-template-columns:1fr 1fr}.stat-card{min-height:108px;grid-template-columns:45px 1fr}.stat-icon{width:45px;height:45px}.stat-card strong{font-size:1.55rem}.quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){body{font-size:15px}.auth-card{padding:1rem}.auth-form{padding:1.25rem}.stats{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.top-header h1{font-size:1.7rem}.panel{padding:.9rem}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar .grow{grid-column:1/-1}.toolbar label{min-width:0}.modal{padding:.3rem}.modal-panel{padding:1rem;max-height:97vh;border-radius:14px}.user-card{grid-template-columns:1fr}.user-actions{justify-content:flex-start}.undo-bar{left:.7rem;right:.7rem;bottom:.7rem}footer{display:grid;gap:.4rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Dashboard-only visual layer, based on the approved smoked-glass reference. */
.dashboard-mode{--glass:rgba(15,17,27,.64);--glass-deep:rgba(12,14,22,.78);--glass-line:rgba(228,225,255,.2);grid-template-columns:290px minmax(0,1fr);isolation:isolate;position:relative;background:linear-gradient(135deg,#0b0c13,#11131c 58%,#0b0e14)}
.dashboard-mode:before,.app-shell:not(.dashboard-mode)::before{content:"";position:fixed;inset:0 0 auto 16%;height:420px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 48% 22% at 62% 45%,rgba(237,111,178,.30),transparent 76%),radial-gradient(ellipse 41% 26% at 53% 51%,rgba(122,82,204,.27),transparent 76%),linear-gradient(157deg,transparent 35%,rgba(142,92,193,.1) 36%,rgba(247,141,188,.35) 37%,rgba(255,177,161,.15) 38%,transparent 42%);filter:blur(12px);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 64%,transparent 100%)}
.dashboard-mode:after,.app-shell:not(.dashboard-mode)::after{content:"";position:fixed;inset:0 auto 0 0;width:290px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 95% 38% at 0% 70%,rgba(57,93,154,.22),transparent 75%),radial-gradient(ellipse 80% 30% at 105% 100%,rgba(225,125,155,.2),transparent 74%),radial-gradient(ellipse 55% 28% at 70% 7%,rgba(125,81,181,.22),transparent 78%)}
.dashboard-mode>.sidebar,.app-shell:not(.dashboard-mode)>.sidebar{width:290px;padding:1.4rem 1.1rem;background:linear-gradient(155deg,rgba(19,20,32,.82),rgba(16,17,27,.67) 46%,rgba(40,26,36,.6));border-right:1px solid rgba(231,224,255,.2);box-shadow:inset -1px 0 rgba(255,255,255,.04),12px 0 46px rgba(0,0,0,.24);backdrop-filter:blur(30px) saturate(132%);overflow:hidden}
.dashboard-mode>.sidebar:before,.dashboard-mode>.sidebar:after,.app-shell:not(.dashboard-mode)>.sidebar:before,.app-shell:not(.dashboard-mode)>.sidebar:after{content:"";position:absolute;pointer-events:none;inset:auto -38% -12% -35%;height:52%;border-radius:50%;border:1px solid rgba(150,174,255,.17);transform:rotate(-35deg);box-shadow:0 -2px 18px rgba(163,139,255,.08),inset 0 8px 36px rgba(118,160,232,.07)}
.dashboard-mode>.sidebar:after,.dashboard-mode>.sidebar:after,.app-shell:not(.dashboard-mode)>.sidebar:after{inset:auto -48% -20% -54%;height:48%;border-color:rgba(255,172,199,.2);transform:rotate(24deg);box-shadow:0 -2px 25px rgba(255,153,187,.09)}
.dashboard-mode .brand,.dashboard-mode .nav,.dashboard-mode .account-card,.dashboard-mode .brand,.dashboard-mode .nav,.dashboard-mode .account-card,.app-shell:not(.dashboard-mode) .brand,.app-shell:not(.dashboard-mode) .nav,.app-shell:not(.dashboard-mode) .account-card{position:relative;z-index:1}
.dashboard-mode .brand{align-items:center;padding:.2rem .35rem 2.3rem;gap:.9rem}
.dashboard-mode .brand-mark{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.28),transparent 28%),linear-gradient(145deg,rgba(150,106,255,.82),rgba(71,40,148,.64));color:#fff;box-shadow:0 0 24px rgba(143,91,255,.4),inset 0 1px 3px rgba(255,255,255,.48),inset 0 -8px 18px rgba(21,12,53,.38)}
.dashboard-mode .nav{gap:.48rem}
.dashboard-mode .nav button{min-height:48px;border:1px solid transparent;border-radius:15px;padding:.78rem .95rem;transition:background .18s,border-color .18s,transform .18s}
.dashboard-mode .nav button:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.08)}
.dashboard-mode .nav button.active{background:linear-gradient(105deg,rgba(139,91,236,.72),rgba(77,55,130,.52) 58%,rgba(206,143,132,.42));border-color:rgba(248,224,255,.48);box-shadow:0 8px 24px rgba(113,62,186,.22),inset 0 1px rgba(255,255,255,.4),inset 0 -1px rgba(255,255,255,.08)}
.dashboard-mode .nav button.active:after{content:"";position:absolute;inset:1px;border-radius:14px;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.14),transparent 42%,rgba(255,198,176,.08))}
.dashboard-mode .nav .badge{background:linear-gradient(140deg,#c4557e,#7f3d68);box-shadow:inset 0 1px rgba(255,255,255,.22)}
.dashboard-mode .account-card{border-color:rgba(228,220,255,.2);border-radius:17px;background:linear-gradient(140deg,rgba(86,62,110,.42),rgba(30,27,39,.63) 60%,rgba(104,63,62,.3));box-shadow:0 15px 35px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.18),inset 0 -1px rgba(255,255,255,.05);backdrop-filter:blur(22px)}
.dashboard-mode .avatar{background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.3),transparent 28%),linear-gradient(145deg,rgba(129,88,231,.86),rgba(67,48,156,.65));box-shadow:inset 0 1px rgba(255,255,255,.35),0 5px 18px rgba(100,66,209,.25)}
.dashboard-mode .role-chip{background:linear-gradient(100deg,#8953e9,#6e43cf);box-shadow:0 2px 12px rgba(125,73,223,.32),inset 0 1px rgba(255,255,255,.28)}
.dashboard-mode .sign-out{border:1px solid rgba(228,225,255,.1);background:linear-gradient(125deg,rgba(255,255,255,.1),rgba(255,255,255,.025));box-shadow:inset 0 1px rgba(255,255,255,.1)}
.dashboard-mode .workspace{padding:14px 26px 12px;position:relative;z-index:1}
.dashboard-mode .top-header{display:grid;grid-template-columns:minmax(0,1fr);gap:17px;align-items:stretch;min-height:0;padding:0 0 15px}
.dashboard-topline{display:grid;grid-template-columns:minmax(220px,1fr) 52px minmax(260px,350px);gap:14px;align-items:center}
.dashboard-mode .dashboard-search{height:48px;display:flex;align-items:center;gap:13px;padding:0 14px;border:1px solid rgba(228,225,255,.22);border-radius:25px;background:linear-gradient(120deg,rgba(26,27,39,.68),rgba(43,33,52,.52) 56%,rgba(24,25,34,.62));box-shadow:0 11px 30px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.18),inset 0 -1px rgba(255,255,255,.035);backdrop-filter:blur(22px) saturate(135%)}
.dashboard-search>svg{width:21px;color:#dfe0ed;flex:none}
.dashboard-search input{height:100%;padding:0;border:0;background:transparent;box-shadow:none!important;font-size:.84rem;color:#f7f5ff}
.dashboard-search input::placeholder{color:#b8b9ca}
.dashboard-search kbd{flex:none;padding:.22rem .42rem;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:rgba(255,255,255,.08);color:#e4e1ee;font:500 .7rem Inter,system-ui,sans-serif;white-space:nowrap}
.dashboard-notification{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(228,225,255,.18);border-radius:50%;background:linear-gradient(145deg,rgba(42,39,49,.72),rgba(19,20,28,.72));box-shadow:0 8px 24px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.15);backdrop-filter:blur(18px)}
.dashboard-notification svg{width:20px}
.dashboard-notification b{position:absolute;right:2px;top:3px;width:9px;height:9px;border-radius:50%;background:#ef7784;box-shadow:0 0 12px rgba(239,119,132,.58)}
.dashboard-mode .dashboard-company{min-width:0;height:62px;justify-content:flex-start;gap:14px;padding:0 14px;border:1px solid rgba(228,225,255,.2);border-radius:16px;background:linear-gradient(115deg,rgba(34,36,48,.72),rgba(32,31,41,.65) 65%,rgba(46,35,42,.58));box-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.17),inset 0 -1px rgba(255,255,255,.04);backdrop-filter:blur(22px) saturate(125%)}
.dashboard-company .network-mark svg{width:34px;height:34px}
.dashboard-company strong{font-size:.82rem;white-space:nowrap}
.dashboard-company small{font-size:.72rem;margin-top:.25rem}
.dashboard-company>svg{width:16px;margin-left:auto;color:#b7b6c4}
.dashboard-mode .welcome-block{padding:.2rem 4px 0}
.dashboard-mode .welcome-block .kicker{margin:0 0 .2rem;color:#c4bdcf;text-transform:none;letter-spacing:0;font-size:1rem;font-weight:400}
.dashboard-mode .welcome-block h1{font-size:clamp(2rem,2.7vw,2.65rem);letter-spacing:-.045em;margin:.1rem 0 .25rem}
.dashboard-mode .welcome-block .muted{font-size:1rem;color:#b9bac9;margin:0}
.dashboard-mode .top-header>.company-lockup{display:none}
.dashboard-mode .page{min-width:0}
.dashboard-content{display:grid;gap:16px}
.dashboard-mode .stats{display:grid;grid-template-columns:minmax(255px,1.5fr) repeat(4,minmax(142px,1fr));gap:12px;margin:0}
.dashboard-mode .stat-card,.dashboard-mode .panel{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--glass-line);border-radius:19px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.008) 24%,transparent 46%),linear-gradient(125deg,rgba(41,34,52,.62),rgba(15,17,26,.7) 48%,rgba(27,23,31,.62));box-shadow:0 14px 34px rgba(0,0,0,.24),0 1px rgba(255,255,255,.18) inset,0 -1px rgba(255,255,255,.04) inset;backdrop-filter:blur(24px) saturate(133%)}
.dashboard-mode .stat-card:before,.dashboard-mode .panel:before{content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse 90% 58% at 2% 0%,rgba(224,180,255,.12),transparent 65%),linear-gradient(118deg,rgba(255,255,255,.055),transparent 28%,transparent 78%,rgba(255,194,168,.055));opacity:.9}
.dashboard-mode .stat-card{min-width:0;min-height:132px;padding:17px;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:start}
.dashboard-mode .stat-icon{width:46px;height:46px;color:#dfcaff;background:radial-gradient(circle at 34% 25%,rgba(255,255,255,.27),transparent 32%),linear-gradient(145deg,rgba(133,82,223,.75),rgba(71,44,135,.55));box-shadow:inset 0 1px 2px rgba(255,255,255,.35),0 7px 17px rgba(112,70,196,.22)}
.dashboard-mode .stat-icon.red{color:#ffb0a4;background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.2),transparent 34%),linear-gradient(145deg,rgba(180,68,67,.72),rgba(103,39,48,.55))}
.dashboard-mode .stat-icon.green{color:#8eead1;background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.23),transparent 34%),linear-gradient(145deg,rgba(59,151,132,.68),rgba(34,82,81,.55))}
.dashboard-mode .stat-icon.gray{color:#e0e2ed;background:linear-gradient(145deg,rgba(124,132,151,.62),rgba(63,69,81,.52))}
.dashboard-mode .stat-copy{min-width:0;position:relative;z-index:1}
.dashboard-mode .stat-copy>span{display:block;color:#ddd9e6;font-size:.77rem;line-height:1.3}
.dashboard-mode .stat-copy>span:last-child{color:#b7b6c6;font-size:.72rem;margin-top:.32rem}
.dashboard-mode .stat-copy strong{display:block;margin-top:.5rem;font-size:clamp(1.35rem,1.85vw,1.9rem);line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.035em}
.dashboard-mode .expense-card{background:radial-gradient(ellipse 45% 88% at 100% 3%,rgba(231,122,174,.23),transparent 78%),linear-gradient(140deg,rgba(133,78,171,.42),rgba(31,24,42,.72) 47%,rgba(35,43,52,.66));border-color:rgba(238,186,235,.52);box-shadow:0 16px 35px rgba(0,0,0,.28),0 0 22px rgba(179,98,198,.13),inset 0 1px rgba(255,255,255,.37),inset 0 -1px rgba(255,255,255,.08)}
.dashboard-mode .expense-card .stat-copy strong{font-size:clamp(1.5rem,2.15vw,2.15rem)}
.dashboard-mode .stat-spark{position:absolute;right:16px;bottom:17px;height:49px;display:flex;align-items:end;gap:6px;opacity:.86}
.dashboard-mode .stat-spark i{width:7px;height:22px;border-radius:8px;background:linear-gradient(#eda3ff,rgba(155,89,214,.24));box-shadow:0 0 11px rgba(217,135,246,.46)}
.dashboard-mode .stat-spark i:nth-child(2){height:29px}.dashboard-mode .stat-spark i:nth-child(3){height:37px}.dashboard-mode .stat-spark i:nth-child(4){height:42px}.dashboard-mode .stat-spark i:nth-child(5){height:48px}
.dashboard-analytics{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(390px,1.25fr);gap:14px}
.dashboard-mode .panel{padding:15px 17px}
.dashboard-mode .panel-header{position:relative;z-index:1;margin-bottom:10px}
.dashboard-mode .panel-header h2{font-size:1.02rem;letter-spacing:-.02em}
.dashboard-mode .panel-header .muted,.dashboard-mode .panel-header>div>span{font-size:.78rem;color:#b9b7c7}
.dashboard-mode .trend-panel,.dashboard-mode .category-panel{min-height:244px}
.dashboard-mode .trend-panel{background:radial-gradient(ellipse 58% 72% at 69% 52%,rgba(151,68,141,.12),transparent 85%),linear-gradient(145deg,rgba(48,43,57,.68),rgba(17,18,27,.75) 48%,rgba(25,24,33,.68))}
.period-pill{height:34px;display:inline-flex;align-items:center;gap:10px;padding:0 11px;border:1px solid rgba(224,219,242,.2);border-radius:11px;background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.025));color:#e0deea;font-size:.72rem;box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 14px rgba(0,0,0,.12)}
.period-pill svg{width:14px}
.dashboard-mode .trend{height:185px}
.dashboard-mode .trend svg{height:155px;overflow:visible}
.dashboard-mode .chart-grid line{stroke:rgba(226,221,239,.13);stroke-dasharray:4 5}
.dashboard-mode .chart-area{fill:url(#chartGlow);opacity:.8}
.dashboard-mode .chart-line{fill:none;stroke:#ee8cdb;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dashboard-mode .chart-point{fill:#fff0ff;stroke:#ed8cdd;stroke-width:2;filter:drop-shadow(0 0 5px rgba(246,149,224,.8))}
.dashboard-mode .chart-labels{padding:0 3px;color:#c4c1cf;font-size:.69rem}
.category-panel{background:radial-gradient(ellipse 65% 100% at 15% 92%,rgba(233,139,134,.12),transparent 77%),linear-gradient(145deg,rgba(44,40,53,.66),rgba(16,18,27,.76) 54%,rgba(28,28,35,.68))}
.category-content{display:grid;grid-template-columns:minmax(155px,.9fr) minmax(0,1.45fr);gap:12px;align-items:center;min-height:173px}
.donut{width:min(100%,178px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--donut));filter:drop-shadow(0 7px 16px rgba(0,0,0,.26));position:relative}
.donut:before{content:"";position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.075),transparent 45%),linear-gradient(145deg,rgba(18,19,27,.94),rgba(9,11,16,.96));box-shadow:inset 0 2px 8px rgba(255,255,255,.08),0 0 0 1px rgba(255,255,255,.06)}
.donut>div{position:relative;z-index:1;text-align:center;display:grid;gap:4px}
.donut strong{font-size:1rem;font-variant-numeric:tabular-nums}
.donut span{font-size:.68rem;color:#b8b7c5}
.category-legend{display:grid;min-width:0}
.category-row{display:grid;grid-template-columns:10px minmax(60px,1fr) 36px auto;gap:8px;align-items:center;min-height:31px;border-bottom:1px solid rgba(230,226,240,.08);font-size:.68rem;color:#ceccd7}
.category-row:last-child{border:0}
.category-row>i{width:9px;height:9px;border-radius:50%;background:var(--category-color);box-shadow:0 0 9px color-mix(in srgb,var(--category-color),transparent 48%)}
.category-row b{font-weight:500;color:#e5e2eb;text-align:right}
.category-row strong{font-weight:500;color:#d6d3df;font-variant-numeric:tabular-nums;white-space:nowrap}
.category-empty{font-size:.75rem}
.dashboard-bottom{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(310px,1.05fr);gap:14px;align-items:stretch}
.recent-panel{min-width:0;background:linear-gradient(145deg,rgba(49,42,53,.68),rgba(16,18,27,.75) 45%,rgba(22,25,34,.72))}
.dashboard-mode .view-all{width:auto;padding:.56rem .75rem;border:1px solid rgba(202,182,247,.28);border-radius:11px;background:linear-gradient(130deg,rgba(111,88,156,.3),rgba(36,34,48,.55));font-size:.72rem;white-space:nowrap}
.view-all span{margin-left:.35rem}
.dashboard-mode .table-wrap{border-color:rgba(225,219,240,.1);border-radius:12px;background:rgba(10,12,18,.23)}
.dashboard-mode .dashboard-table{min-width:740px}
.dashboard-mode .dashboard-table th{padding:.58rem .58rem;background:rgba(23,24,34,.48);color:#c2bfce;text-transform:none;letter-spacing:0;font-size:.68rem}
.dashboard-mode .dashboard-table td{padding:.56rem .58rem;border-top-color:rgba(228,223,239,.085);font-size:.73rem;white-space:nowrap}
.dashboard-mode .dashboard-table tbody tr:hover{background:rgba(177,132,222,.08)}
.merchant-mark{display:inline-grid;vertical-align:middle;place-items:center;width:23px;height:23px;margin-right:8px;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.035));color:#f4eaff;font-size:.65rem;font-weight:700}
.category-tag{display:inline-flex;max-width:130px;overflow:hidden;text-overflow:ellipsis;padding:.24rem .48rem;border:1px solid rgba(179,138,255,.2);border-radius:99px;background:rgba(137,98,201,.2);color:#d5baff;font-size:.65rem}
.dashboard-status{display:inline-flex;align-items:center;gap:6px;color:#80e8c8;font-size:.7rem}
.dashboard-status i{width:8px;height:8px;border-radius:50%;background:#79e5c3;box-shadow:0 0 9px rgba(121,229,195,.38)}
.dashboard-status.NEEDS_REVIEW{color:#ffb078}.dashboard-status.NEEDS_REVIEW i{background:#ffae76;box-shadow:0 0 9px rgba(255,174,118,.36)}
.dashboard-status.REJECTED{color:#ff8b98}.dashboard-status.REJECTED i{background:#ff8794}
.dashboard-status.ARCHIVED{color:#c1c3d0}.dashboard-status.ARCHIVED i{background:#aeb2c4}
.dashboard-side{display:grid;grid-template-rows:auto 1fr;gap:10px;min-width:0}
.dashboard-mode .quick-upload{padding:13px 15px;background:radial-gradient(ellipse 83% 115% at 0% 0%,rgba(200,93,180,.28),transparent 74%),radial-gradient(ellipse 65% 95% at 100% 100%,rgba(91,181,165,.23),transparent 80%),linear-gradient(135deg,rgba(54,36,61,.8),rgba(17,22,30,.75) 55%,rgba(26,39,42,.68));border-color:rgba(225,188,230,.32);box-shadow:0 15px 35px rgba(0,0,0,.27),0 0 24px rgba(182,92,166,.12),inset 0 1px rgba(255,255,255,.25)}
.dashboard-mode .quick-upload .panel-header{margin-bottom:9px}
.dashboard-mode .slogan{gap:10px}
.dashboard-mode .slogan b{color:#ffc7f4;text-shadow:0 0 13px rgba(255,137,226,.68);font-size:1.5rem}
.dashboard-mode .slogan h2{margin:0 0 2px}
.upload-drop{width:100%;min-height:102px;display:grid;place-content:center;justify-items:center;gap:4px;border:1px dashed rgba(229,221,245,.38);border-radius:13px;background:linear-gradient(145deg,rgba(20,22,30,.62),rgba(30,27,36,.5));box-shadow:inset 0 1px rgba(255,255,255,.1),inset 0 -10px 28px rgba(0,0,0,.13);cursor:pointer;transition:background .2s,border-color .2s}
.upload-drop:hover{border-color:rgba(234,192,255,.62);background:linear-gradient(145deg,rgba(66,43,77,.53),rgba(32,34,41,.55))}
.upload-drop svg{width:26px;height:26px;margin-bottom:1px;color:#f0d8ff;filter:drop-shadow(0 0 7px rgba(196,130,239,.44))}
.upload-drop strong{font-size:.76rem}.upload-drop span{font-size:.68rem;color:#d0cbd9}.upload-drop small{margin-top:3px;color:#aaa7b7;font-size:.61rem}
.dashboard-mode .actions-panel{padding:12px 14px;background:linear-gradient(145deg,rgba(35,34,43,.75),rgba(15,17,25,.75));}
.dashboard-mode .actions-panel .panel-header{margin-bottom:8px}
.dashboard-mode .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.dashboard-mode .quick-action{min-height:72px;display:grid;place-items:center;align-content:center;gap:6px;padding:8px 5px;border:1px solid rgba(224,218,238,.19);border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02));box-shadow:inset 0 1px rgba(255,255,255,.14),0 5px 14px rgba(0,0,0,.17);text-align:center;transition:transform .18s,border-color .18s}
.dashboard-mode .quick-action:hover{transform:translateY(-2px);border-color:rgba(236,222,255,.43)}
.dashboard-mode .quick-action svg{width:21px;height:21px;margin:0;color:#c89bff}
.dashboard-mode .quick-action strong{font-size:.62rem;line-height:1.15}
.dashboard-mode .quick-action.mint svg{color:#84dfc7}.dashboard-mode .quick-action.blue svg{color:#89c9ff}.dashboard-mode .quick-action.amber svg{color:#ffd394}
.dashboard-mode .quick-action.primary{background:linear-gradient(145deg,rgba(123,76,200,.65),rgba(49,37,80,.66));border-color:rgba(190,154,255,.42)}
.dashboard-mode .quick-action.mint{background:linear-gradient(145deg,rgba(55,122,111,.4),rgba(24,45,46,.65))}
.dashboard-mode .quick-action.blue{background:linear-gradient(145deg,rgba(49,103,150,.4),rgba(25,38,55,.65))}
.dashboard-mode .quick-action.amber{background:linear-gradient(145deg,rgba(143,102,57,.4),rgba(53,43,33,.67))}
.attention-line{margin-top:9px;color:#bbb8c7;font-size:.65rem;text-align:center}.attention-line span{padding:0 4px;color:#827e90}
.dashboard-mode footer{color:#858493;padding:.65rem 0 .2rem}
/* Shared smoked-glass system for the existing non-dashboard routes. */
.app-shell:not(.dashboard-mode){position:relative;isolation:isolate;background:radial-gradient(ellipse 58% 36% at 66% 2%,rgba(208,105,162,.16),transparent 78%),radial-gradient(ellipse 52% 45% at 4% 72%,rgba(80,115,177,.15),transparent 80%),linear-gradient(145deg,#0b0d14,#11121b 55%,#0a0d12)}
.app-shell:not(.dashboard-mode)::before,.app-shell:not(.dashboard-mode)::after{content:"";position:fixed;pointer-events:none;z-index:-1}
.app-shell:not(.dashboard-mode)::before{inset:0 0 auto 16%;height:420px;background:radial-gradient(ellipse 48% 22% at 62% 45%,rgba(237,111,178,.25),transparent 76%),radial-gradient(ellipse 41% 26% at 53% 51%,rgba(122,82,204,.23),transparent 76%),linear-gradient(157deg,transparent 35%,rgba(142,92,193,.09) 36%,rgba(247,141,188,.28) 37%,rgba(255,177,161,.12) 38%,transparent 42%);filter:blur(14px);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 64%,transparent 100%)}
.app-shell:not(.dashboard-mode)::after{inset:0 auto 0 0;width:290px;background:radial-gradient(ellipse 95% 38% at 0% 70%,rgba(57,93,154,.2),transparent 75%),radial-gradient(ellipse 80% 30% at 105% 100%,rgba(225,125,155,.17),transparent 74%),radial-gradient(ellipse 55% 28% at 70% 7%,rgba(125,81,181,.2),transparent 78%)}
.app-shell:not(.dashboard-mode)>.sidebar{width:290px;padding:1.4rem 1.1rem;background:linear-gradient(155deg,rgba(19,20,32,.82),rgba(16,17,27,.67) 46%,rgba(40,26,36,.6));border-right:1px solid rgba(231,224,255,.2);box-shadow:inset -1px 0 rgba(255,255,255,.04),12px 0 46px rgba(0,0,0,.24);backdrop-filter:blur(30px) saturate(132%);overflow:hidden}
.dashboard-mode>.sidebar:before,.dashboard-mode>.sidebar:after,.app-shell:not(.dashboard-mode)>.sidebar:before,.dashboard-mode>.sidebar:after,.app-shell:not(.dashboard-mode)>.sidebar:after{content:"";position:absolute;pointer-events:none;inset:auto -38% -12% -35%;height:52%;border-radius:50%;border:1px solid rgba(150,174,255,.17);transform:rotate(-35deg);box-shadow:0 -2px 18px rgba(163,139,255,.08),inset 0 8px 36px rgba(118,160,232,.07)}
.dashboard-mode>.sidebar:after,.app-shell:not(.dashboard-mode)>.sidebar:after{inset:auto -48% -20% -54%;height:48%;border-color:rgba(255,172,199,.2);transform:rotate(24deg);box-shadow:0 -2px 25px rgba(255,153,187,.09)}
.dashboard-mode .brand,.dashboard-mode .nav,.dashboard-mode .account-card,.app-shell:not(.dashboard-mode) .brand,.app-shell:not(.dashboard-mode) .nav,.app-shell:not(.dashboard-mode) .account-card{position:relative;z-index:1}
.app-shell:not(.dashboard-mode) .brand{align-items:center;padding:.2rem .35rem 2.3rem;gap:.9rem}
.app-shell:not(.dashboard-mode) .brand-mark{background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.28),transparent 28%),linear-gradient(145deg,rgba(150,106,255,.82),rgba(71,40,148,.64));color:#fff;box-shadow:0 0 24px rgba(143,91,255,.4),inset 0 1px 3px rgba(255,255,255,.48),inset 0 -8px 18px rgba(21,12,53,.38)}
.app-shell:not(.dashboard-mode) .nav{gap:.48rem}
.app-shell:not(.dashboard-mode) .nav button{min-height:48px;border:1px solid transparent;border-radius:15px;padding:.78rem .95rem;transition:background .18s,border-color .18s,transform .18s}
.app-shell:not(.dashboard-mode) .nav button:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.08)}
.app-shell:not(.dashboard-mode) .nav button.active{background:linear-gradient(105deg,rgba(139,91,236,.72),rgba(77,55,130,.52) 58%,rgba(206,143,132,.42));border-color:rgba(248,224,255,.48);box-shadow:0 8px 24px rgba(113,62,186,.22),inset 0 1px rgba(255,255,255,.4),inset 0 -1px rgba(255,255,255,.08)}
.app-shell:not(.dashboard-mode) .nav button.active:after{content:"";position:absolute;inset:1px;border-radius:14px;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.14),transparent 42%,rgba(255,198,176,.08))}
.app-shell:not(.dashboard-mode) .nav .badge{background:linear-gradient(140deg,#c4557e,#7f3d68);box-shadow:inset 0 1px rgba(255,255,255,.22)}
.app-shell:not(.dashboard-mode) .account-card{border-color:rgba(231,224,255,.2);border-radius:16px;background:linear-gradient(145deg,rgba(74,61,91,.54),rgba(25,27,39,.56));box-shadow:0 12px 28px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.2);backdrop-filter:blur(20px)}
.app-shell:not(.dashboard-mode) .avatar{background:linear-gradient(145deg,rgba(150,106,255,.85),rgba(71,40,148,.74));box-shadow:0 0 20px rgba(143,91,255,.28),inset 0 1px rgba(255,255,255,.4)}
.app-shell:not(.dashboard-mode) .role-chip{background:linear-gradient(135deg,rgba(139,91,236,.86),rgba(88,56,151,.83));box-shadow:inset 0 1px rgba(255,255,255,.25)}
.app-shell:not(.dashboard-mode) .sign-out{border:1px solid rgba(231,224,255,.12);background:linear-gradient(135deg,rgba(255,255,255,.1),rgba(255,255,255,.025));box-shadow:inset 0 1px rgba(255,255,255,.1)}
.app-shell:not(.dashboard-mode) .panel,.app-shell:not(.dashboard-mode) .user-card{position:relative;overflow:hidden;border-color:rgba(231,224,255,.2);border-radius:17px;background:radial-gradient(ellipse 72% 85% at 100% 0%,rgba(191,123,174,.11),transparent 77%),linear-gradient(145deg,rgba(46,43,55,.68),rgba(17,19,28,.72) 52%,rgba(30,31,39,.64));box-shadow:0 14px 34px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.21),inset 0 -1px rgba(255,255,255,.06);backdrop-filter:blur(22px) saturate(125%)}
.app-shell:not(.dashboard-mode) .panel:before,.app-shell:not(.dashboard-mode) .user-card:before{content:"";position:absolute;inset:0 0 auto;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(232,220,255,.35),rgba(255,199,181,.28),transparent)}
.app-shell:not(.dashboard-mode) .panel-header,.app-shell:not(.dashboard-mode) .flag,.app-shell:not(.dashboard-mode) .user-card>*{position:relative;z-index:1}
.app-shell:not(.dashboard-mode) .panel-header h2{letter-spacing:-.025em}
.app-shell:not(.dashboard-mode) input,.app-shell:not(.dashboard-mode) select,.app-shell:not(.dashboard-mode) textarea{border-color:rgba(225,219,240,.2);border-radius:11px;background:linear-gradient(145deg,rgba(11,13,20,.66),rgba(34,31,43,.43));box-shadow:inset 0 1px rgba(255,255,255,.07);backdrop-filter:blur(12px)}
.app-shell:not(.dashboard-mode) input:focus,.app-shell:not(.dashboard-mode) select:focus,.app-shell:not(.dashboard-mode) textarea:focus{border-color:rgba(199,160,255,.72);box-shadow:0 0 0 3px rgba(164,111,236,.13),0 0 18px rgba(164,111,236,.1),inset 0 1px rgba(255,255,255,.11)}
.app-shell:not(.dashboard-mode) .button{border-color:rgba(225,219,240,.22);border-radius:11px;background:linear-gradient(140deg,rgba(255,255,255,.1),rgba(255,255,255,.025));box-shadow:inset 0 1px rgba(255,255,255,.12),0 5px 16px rgba(0,0,0,.14);transition:transform .18s,border-color .18s,background .18s}
.app-shell:not(.dashboard-mode) .button:hover{border-color:rgba(236,222,255,.48);background:linear-gradient(140deg,rgba(255,255,255,.14),rgba(255,255,255,.04))}
.app-shell:not(.dashboard-mode) .button.primary{background:linear-gradient(140deg,rgba(139,91,236,.78),rgba(76,53,142,.75));border-color:rgba(202,174,255,.5);box-shadow:inset 0 1px rgba(255,255,255,.28),0 0 18px rgba(143,91,255,.16)}
.app-shell:not(.dashboard-mode) .button.success{background:linear-gradient(140deg,rgba(55,137,119,.5),rgba(28,59,55,.58));border-color:rgba(132,227,201,.34)}
.app-shell:not(.dashboard-mode) .button.danger{background:linear-gradient(140deg,rgba(155,69,82,.48),rgba(69,35,45,.62));border-color:rgba(255,153,164,.35)}
.app-shell:not(.dashboard-mode) .toolbar{border-color:rgba(225,219,240,.12);border-radius:14px;background:linear-gradient(145deg,rgba(44,42,54,.55),rgba(17,19,28,.48));box-shadow:inset 0 1px rgba(255,255,255,.1)}
.app-shell:not(.dashboard-mode) .table-wrap{border-color:rgba(225,219,240,.12);border-radius:13px;background:rgba(9,11,17,.24)}
.app-shell:not(.dashboard-mode) .table th{background:rgba(22,23,32,.57);color:#cbc8d4;letter-spacing:.045em}
.app-shell:not(.dashboard-mode) .table td{border-top-color:rgba(228,223,239,.085)}
.app-shell:not(.dashboard-mode) .table tbody tr:hover{background:rgba(177,132,222,.075)}
.receipt-cards{display:none}
.app-shell:not(.dashboard-mode) .status{border-color:rgba(225,219,240,.17);background:linear-gradient(135deg,rgba(255,255,255,.1),rgba(255,255,255,.025));box-shadow:inset 0 1px rgba(255,255,255,.1)}
.app-shell:not(.dashboard-mode) .upload-zone{border-color:rgba(224,211,244,.32);border-radius:15px;background:radial-gradient(ellipse 75% 90% at 0% 0%,rgba(186,113,178,.16),transparent 78%),linear-gradient(145deg,rgba(19,20,29,.52),rgba(37,32,43,.48));box-shadow:inset 0 1px rgba(255,255,255,.14),inset 0 -14px 28px rgba(0,0,0,.14)}
.app-shell:not(.dashboard-mode) .upload-zone:hover{border-color:rgba(230,193,255,.55);box-shadow:inset 0 1px rgba(255,255,255,.2),0 0 22px rgba(189,125,224,.1)}
.app-shell:not(.dashboard-mode) .form-grid label,.app-shell:not(.dashboard-mode) .form-grid input,.app-shell:not(.dashboard-mode) .form-grid select,.app-shell:not(.dashboard-mode) .form-grid textarea{min-width:0}
.app-shell:not(.dashboard-mode) .progress{background:rgba(9,11,17,.5);border:1px solid rgba(225,219,240,.13);border-radius:99px;overflow:hidden}.app-shell:not(.dashboard-mode) .progress span{background:linear-gradient(90deg,#9a75ef,#e68dcc,#8ce0c9);box-shadow:0 0 12px rgba(213,128,226,.35)}
.auth-shell{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse 48% 36% at 80% 7%,rgba(210,111,172,.15),transparent 78%),radial-gradient(ellipse 52% 50% at 12% 78%,rgba(79,114,176,.15),transparent 80%),linear-gradient(145deg,#0b0d14,#12131d 60%,#0a0d12)}
.auth-shell:before{content:"";position:absolute;inset:0 0 auto 16%;height:420px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 48% 22% at 62% 45%,rgba(237,111,178,.24),transparent 76%),radial-gradient(ellipse 41% 26% at 53% 51%,rgba(122,82,204,.2),transparent 76%),linear-gradient(157deg,transparent 35%,rgba(142,92,193,.08) 36%,rgba(247,141,188,.27) 37%,rgba(255,177,161,.12) 38%,transparent 42%);filter:blur(14px)}
.auth-brand{padding:clamp(2.5rem,7vw,7rem);background:linear-gradient(145deg,rgba(41,38,50,.24),rgba(16,18,26,.1));backdrop-filter:blur(10px)}
.auth-brand h1{font-size:clamp(2.8rem,5.2vw,5.2rem)}
.auth-card{position:relative;background:linear-gradient(145deg,rgba(47,43,55,.47),rgba(17,19,27,.58));border-left:1px solid rgba(231,224,255,.18);backdrop-filter:blur(26px) saturate(125%)}
.auth-form{position:relative;overflow:hidden;border-color:rgba(231,224,255,.22);border-radius:20px;background:radial-gradient(ellipse 80% 75% at 100% 0%,rgba(187,119,174,.12),transparent 78%),linear-gradient(145deg,rgba(47,44,56,.72),rgba(17,19,28,.74) 57%,rgba(29,30,38,.65));box-shadow:0 22px 44px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.22),inset 0 -1px rgba(255,255,255,.06);backdrop-filter:blur(24px)}
.auth-form:before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(232,220,255,.38),rgba(255,199,181,.28),transparent);pointer-events:none}
.auth-shell .auth-card input{border-color:rgba(225,219,240,.2);background:linear-gradient(145deg,rgba(11,13,20,.66),rgba(34,31,43,.43));box-shadow:inset 0 1px rgba(255,255,255,.07)}
.auth-shell .button{border-radius:11px;background:linear-gradient(140deg,rgba(139,91,236,.78),rgba(76,53,142,.75));border-color:rgba(202,174,255,.5);box-shadow:inset 0 1px rgba(255,255,255,.28),0 0 18px rgba(143,91,255,.16)}
@media(max-width:820px){.app-shell:not(.dashboard-mode)>.sidebar{width:270px}.app-shell:not(.dashboard-mode){background-attachment:fixed}.auth-brand{display:none}.auth-card{border:0;min-height:100vh;background:linear-gradient(145deg,rgba(47,43,55,.5),rgba(17,19,27,.64))}.auth-form{width:min(100%,450px)}}
@media(max-width:520px){
  .receipt-cards{display:grid;gap:.65rem}
  .receipt-card{position:relative;padding:.8rem;border:1px solid rgba(225,219,240,.16);border-radius:14px;background:radial-gradient(ellipse 85% 90% at 100% 0%,rgba(174,111,164,.11),transparent 75%),linear-gradient(145deg,rgba(37,35,46,.68),rgba(14,16,23,.7));box-shadow:inset 0 1px rgba(255,255,255,.1)}
  .receipt-card-head{display:flex;align-items:center;gap:.65rem;min-width:0}
  .receipt-card-merchant{flex:1;min-width:0}.receipt-card-merchant strong{display:block;overflow-wrap:anywhere;font-size:.9rem}
  .receipt-card-amount{font-size:.9rem;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
  .receipt-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:.65rem .8rem;margin-top:.75rem;padding-top:.65rem;border-top:1px solid rgba(228,223,239,.09)}
  .receipt-card-meta>span{display:grid;gap:.18rem;min-width:0}.receipt-card-meta small{color:#a9a7b5;font-size:.64rem;text-transform:uppercase;letter-spacing:.06em}.receipt-card-meta strong{font-size:.75rem;overflow-wrap:anywhere}
  .receipt-card-meta .status{justify-self:start}.receipt-card-actions{display:flex;justify-content:flex-end;margin-top:.55rem}.receipt-card-actions .button{min-height:38px}.receipt-card-actions svg{width:14px}
  .receipt-cards+.table-wrap{display:none}
  .bulk-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:.5rem;padding:.7rem}
  .bulk-bar strong{grid-column:1/-1;margin:0}.bulk-bar .button{min-height:42px;padding:.5rem .35rem}
  .auth-shell{min-height:100svh;grid-template-columns:1fr;align-content:start;gap:0;padding:clamp(2rem,8vh,4rem) 1.1rem 2rem}
  .auth-brand{display:flex;align-items:center;justify-content:center;padding:0 0 1.5rem;background:none;backdrop-filter:none}
  .auth-brand:before{inset:-7rem 0 auto;height:15rem;background:radial-gradient(ellipse,rgba(151,98,199,.19),transparent 70%)}
  .auth-brand .brand-mark.large{width:50px;height:50px;margin:0;font-size:1.4rem;flex:none}
  .auth-brand .eyebrow,.auth-brand h1,.auth-brand .auth-copy,.auth-brand .auth-trust{display:none}
  .auth-brand:after{content:"Hero Receipt Management";font-size:1rem;font-weight:700;letter-spacing:-.02em}
  .auth-card{min-height:0;padding:0;background:none;backdrop-filter:none}
  .auth-card>.brand-inline{display:none}
  .auth-form{width:min(100%,440px);padding:1.5rem;margin:0 auto}
  .auth-form h2{font-size:1.8rem}
}
@media(max-width:1360px){.dashboard-mode .stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-mode .expense-card{grid-column:span 1}.dashboard-analytics{grid-template-columns:minmax(0,1.45fr) minmax(350px,1fr)}}
@media(max-width:1180px){.dashboard-analytics,.dashboard-bottom{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.dashboard-mode .category-content{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:820px){.dashboard-mode{display:block}.dashboard-mode>.sidebar{width:270px}.dashboard-mode .workspace{padding:12px 16px}.dashboard-topline{grid-template-columns:minmax(0,1fr) 46px}.dashboard-mode .dashboard-company{grid-column:1/-1;height:50px}.dashboard-mode .top-header{gap:13px}.dashboard-mode .welcome-block h1{font-size:2rem}.dashboard-mode .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-mode .expense-card{grid-column:1/-1}.dashboard-side{grid-template-columns:1fr}.dashboard-mode .category-panel{min-height:230px}}
@media(max-width:520px){.dashboard-mode .workspace{padding:10px}.dashboard-topline{grid-template-columns:minmax(0,1fr) 42px;gap:8px}.dashboard-mode .dashboard-search{height:44px;padding:0 10px;gap:8px}.dashboard-search input{font-size:.73rem}.dashboard-search kbd{display:none}.dashboard-notification{width:42px;height:42px}.dashboard-company strong{font-size:.72rem}.dashboard-mode .welcome-block .kicker{font-size:.9rem}.dashboard-mode .welcome-block h1{font-size:1.8rem}.dashboard-mode .welcome-block .muted{font-size:.85rem}.dashboard-mode .stats{grid-template-columns:1fr}.dashboard-mode .expense-card{grid-column:auto}.dashboard-mode .stat-card{min-height:104px}.dashboard-mode .category-content{grid-template-columns:1fr;justify-items:center}.category-legend{width:100%}.dashboard-mode .dashboard-table{min-width:690px}.dashboard-mode .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.upload-drop.is-dragging{border-color:rgba(234,192,255,.85);background:linear-gradient(145deg,rgba(101,59,123,.6),rgba(36,42,48,.68));box-shadow:inset 0 0 28px rgba(210,130,236,.13),0 0 22px rgba(210,130,236,.16)}.dashboard-mode .expense-card .stat-copy>span:last-child{display:inline-flex;margin-top:.4rem;padding:.22rem .45rem;border-radius:99px;background:rgba(75,181,145,.16);color:#87e5c2;font-variant-numeric:tabular-nums}.dashboard-content{gap:13px}.dashboard-mode .stat-card{min-height:126px}.dashboard-mode .trend-panel,.dashboard-mode .category-panel{min-height:236px}.dashboard-mode .trend{height:175px}.dashboard-mode .trend svg{height:145px}.dashboard-mode .dashboard-table th{padding:.5rem .58rem}.dashboard-mode .dashboard-table td{padding:.45rem .58rem}.upload-drop{min-height:92px}.dashboard-side{gap:8px}.dashboard-mode .quick-action{min-height:68px}.dashboard-topline{display:none}.dashboard-mode .dashboard-topline{display:grid}

/* Structured review is scoped to the actual app; no local-page theme overrides. */
#isolation-banner{padding:8px 16px;background:#fff3d4;color:#543b08;text-align:center;font-weight:600}.receipt-intelligence{overflow-wrap:anywhere}.receipt-intelligence .intelligence-table{border-collapse:collapse;width:100%;font-size:12px}.receipt-intelligence td,.receipt-intelligence th{padding:8px 3px;border-bottom:1px solid #dde3e8;text-align:left;vertical-align:top}.receipt-intelligence input{width:100%;min-width:70px}.receipt-intelligence button{margin:3px;padding:7px}.receipt-intelligence pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto}.receipt-intelligence details{max-width:200px}@media(max-width:650px){.receipt-intelligence .intelligence-table tr{display:grid;grid-template-columns:1fr}.receipt-intelligence .intelligence-table tr:first-child{display:none}.receipt-intelligence td{display:block;width:100%;border:0}.receipt-intelligence .intelligence-table tr{border-bottom:1px solid #dde3e8;padding:8px 0}.receipt-intelligence input{min-width:0}.receipt-intelligence details{max-width:100%}}
