/* MyFlow Stage 7 — Premium Black/Gold Workspace */
:root{
  --s7-bg:#07090c;--s7-bg2:#0b0f14;--s7-card:rgba(17,20,25,.88);--s7-card2:rgba(22,26,32,.78);
  --s7-line:rgba(255,210,103,.14);--s7-line2:rgba(255,255,255,.08);--s7-text:#f5f7fb;--s7-muted:#939aa6;
  --s7-gold:#e9b949;--s7-gold2:#ffd979;--s7-gold3:#9d6b10;--s7-blue:#4a8cff;--s7-green:#29c780;--s7-red:#ff626d;
}
body.stage7-premium{background:var(--s7-bg);}
body.stage7-premium .v9-shell{--bg:#07090c;--surface:#10141a;--surface-2:#151a21;--line:rgba(255,255,255,.08);--text:#f5f7fb;--text-muted:#9299a5;--gold:#e9b949;--gold-soft:#ffd979;--gold-dark:#a97112;min-height:100vh;background:#07090c;color:var(--s7-text)}
body.stage7-premium .v9-shell .main{background:
  radial-gradient(circle at 88% 8%,rgba(233,185,73,.085),transparent 22%),
  radial-gradient(circle at 18% 100%,rgba(45,94,164,.09),transparent 30%),
  linear-gradient(145deg,#080b0f 0%,#0a0e13 55%,#07090c 100%);color:var(--s7-text)}
body.stage7-premium .v9-shell .sidebar,body.stage7-premium .admin-mode .sidebar{
  width:246px;background:
  radial-gradient(circle at 20% 2%,rgba(233,185,73,.12),transparent 24%),
  linear-gradient(180deg,#0d1117 0%,#090c11 60%,#07090c 100%);border-right:1px solid rgba(255,255,255,.055);box-shadow:18px 0 45px rgba(0,0,0,.26);padding:16px 12px;
}
body.stage7-premium .v9-shell .sb-brand{padding:4px 8px 18px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.07)}
body.stage7-premium .v9-shell .sb-brand img{width:48px;height:48px;background:transparent;border-radius:12px;box-shadow:none}
body.stage7-premium .v9-shell .sb-brand span{color:#fff;font-size:17px;letter-spacing:-.02em}
body.stage7-premium .v9-shell .sb-item{position:relative;color:#9ea5af;border:1px solid transparent;border-radius:11px;padding:9px 10px;min-height:40px;font-size:12.2px;transition:.16s ease}
body.stage7-premium .v9-shell .sb-item:hover{background:rgba(255,255,255,.045);color:#fff;transform:none}
body.stage7-premium .v9-shell .sb-item.active{color:#fff;background:linear-gradient(90deg,rgba(233,185,73,.20),rgba(233,185,73,.04));border-color:rgba(233,185,73,.22);box-shadow:inset 3px 0 0 var(--s7-gold)}
body.stage7-premium .v9-shell .sb-item.active .em{filter:drop-shadow(0 0 8px rgba(233,185,73,.42))}
body.stage7-premium .v9-shell .sb-badge{background:var(--s7-gold);color:#17130b}
body.stage7-premium .v9-shell .sidebar .lang-toggle{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.07)}
body.stage7-premium .v9-shell .sidebar .lang-toggle button{color:#8e96a2}body.stage7-premium .v9-shell .sidebar .lang-toggle button.active{background:linear-gradient(135deg,#f5ce6a,#c98c1d);color:#15120b}
body.stage7-premium .v9-shell .topbar{min-height:68px;background:rgba(8,11,15,.78);backdrop-filter:blur(22px);border-bottom:1px solid rgba(255,255,255,.065);padding:12px 24px;box-shadow:0 8px 28px rgba(0,0,0,.14)}
body.stage7-premium .v9-shell .topbar h1{color:#f5f7fb;font-size:17px}
body.stage7-premium .v9-shell .content{padding:22px 24px 42px;max-width:1700px}
body.stage7-premium .v9-user-pill{border-left-color:rgba(255,255,255,.09)}
body.stage7-premium .v9-user-pill .av{background:linear-gradient(135deg,#f3cf73,#b27611);color:#15120b}
body.stage7-premium .v9-user-pill b{color:#f7f8fb}body.stage7-premium .v9-user-pill span{color:#8f97a3}
body.stage7-premium .v10-top-logout{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.08);color:#ef9a9f}body.stage7-premium .v10-top-logout:hover{background:rgba(255,98,109,.08);border-color:rgba(255,98,109,.22)}
body.stage7-premium .v9-shell .panel,body.stage7-premium .v9-shell .kpi,body.stage7-premium .sa6-card,body.stage7-premium .stage5-card{
  background:linear-gradient(145deg,rgba(19,23,29,.94),rgba(12,15,20,.93));border:1px solid rgba(255,255,255,.075);box-shadow:0 18px 38px rgba(0,0,0,.16);color:var(--s7-text)
}
body.stage7-premium .v9-shell .panel h3,body.stage7-premium .sa6-card h3,body.stage7-premium .stage5-card h3{color:#f6f7fa}
body.stage7-premium .v9-shell input,body.stage7-premium .v9-shell select,body.stage7-premium .v9-shell textarea,
body.stage7-premium .sa6-toolbar input,body.stage7-premium .sa6-toolbar select,body.stage7-premium .sa6-form input,body.stage7-premium .sa6-form select,body.stage7-premium .sa6-form textarea{
  background:#0d1117;border-color:rgba(255,255,255,.09);color:#f3f5f8
}
body.stage7-premium .v9-shell input:focus,body.stage7-premium .v9-shell select:focus,body.stage7-premium .v9-shell textarea:focus{background:#10151c;border-color:rgba(233,185,73,.46);box-shadow:0 0 0 3px rgba(233,185,73,.09)}
body.stage7-premium .v9-shell .btn-gold{background:linear-gradient(135deg,#ffdd80,#d79b27 58%,#b37412);border-color:#d8a231;color:#15120b;box-shadow:0 8px 22px rgba(199,139,28,.18)}
body.stage7-premium .v9-shell .btn-gold:hover{filter:brightness(1.05);box-shadow:0 11px 28px rgba(199,139,28,.26)}
body.stage7-premium .v9-shell .btn-outline,body.stage7-premium .v9-shell .mini-btn{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.085);color:#d9dde3}
body.stage7-premium .v9-shell .btn-outline:hover,body.stage7-premium .v9-shell .mini-btn:hover{background:rgba(233,185,73,.08);border-color:rgba(233,185,73,.24);color:#fff}
body.stage7-premium .v9-shell thead th{background:#11161d;color:#89919d;border-color:rgba(255,255,255,.07)}
body.stage7-premium .v9-shell tbody td{border-color:rgba(255,255,255,.06);color:#dfe3e8}body.stage7-premium .v9-shell tbody tr:hover td{background:rgba(233,185,73,.028)}
body.stage7-premium .v9-shell .doc-row,body.stage7-premium .v9-shell .employee-card,body.stage7-premium .v9-shell .search-result,body.stage7-premium .v9-shell .calendar-cell{background:#10151b;border-color:rgba(255,255,255,.07);box-shadow:none;color:#e8ebef}
body.stage7-premium .v9-shell .reg-form,body.stage7-premium .v9-shell .install-card,body.stage7-premium .v9-shell .task-tabs{background:#0c1015;border-color:rgba(255,255,255,.07)}
body.stage7-premium .dd,body.stage7-premium .desc,body.stage7-premium .meta{color:#8e96a2!important}

/* Premium login */
body.stage7-premium .s7-auth{min-height:100vh;display:grid;grid-template-columns:minmax(520px,1.1fr) minmax(460px,.9fr);position:relative;overflow:hidden;background:
 radial-gradient(circle at 66% 20%,rgba(233,185,73,.11),transparent 19%),
 radial-gradient(circle at 5% 95%,rgba(50,90,135,.18),transparent 26%),
 linear-gradient(125deg,#06080b 0%,#0b0f14 58%,#080b0f 100%);color:#fff}
body.stage7-premium .s7-auth:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.01) 1px,transparent 1px);background-size:55px 55px;mask-image:linear-gradient(to right,#000,transparent 68%)}
.s7-auth-brand{position:relative;z-index:1;padding:52px 58px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.s7-auth-top{display:flex;align-items:center;gap:12px}.s7-auth-top img{width:60px;height:60px;object-fit:contain}.s7-auth-top b{font-size:22px;letter-spacing:.02em}.s7-auth-top span{display:block;font-size:9px;color:#a3a9b3;letter-spacing:.14em;text-transform:uppercase;margin-top:2px}
.s7-auth-copy{max-width:660px}.s7-auth-kicker{font-size:10px;font-weight:900;letter-spacing:.2em;color:var(--s7-gold2);margin-bottom:16px}.s7-auth-copy h1{font-size:52px;line-height:1.04;letter-spacing:-.045em;margin:0 0 18px}.s7-auth-copy h1 em{font-style:normal;color:var(--s7-gold2)}.s7-auth-copy p{max-width:520px;color:#a5acb7;font-size:14px;line-height:1.72;margin:0}.s7-auth-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:30px;max-width:580px}.s7-auth-feature{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.075);background:rgba(255,255,255,.025);border-radius:13px;padding:12px 13px}.s7-auth-feature i{font-style:normal;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(233,185,73,.1);color:#f3c962}.s7-auth-feature b{font-size:11px}.s7-auth-feature small{display:block;color:#7f8793;font-size:9px;margin-top:2px}.s7-auth-foot{font-size:9px;color:#626a75;letter-spacing:.08em}
.s7-auth-main{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;padding:38px 48px}.s7-auth-main:before{content:"";position:absolute;inset:8% 8%;border-radius:50%;background:rgba(233,185,73,.07);filter:blur(80px);z-index:-1}.s7-auth-card{width:min(470px,100%);padding:30px 30px 26px;border-radius:24px;background:linear-gradient(145deg,rgba(20,24,30,.94),rgba(10,13,17,.94));border:1px solid rgba(255,219,130,.22);box-shadow:0 30px 90px rgba(0,0,0,.42);backdrop-filter:blur(22px)}.s7-auth-card .alogo{display:flex;justify-content:center;align-items:center;margin-bottom:14px;min-height:76px}.s7-auth-card .alogo img{width:112px;height:auto;max-height:none;object-fit:contain;transform:none;filter:drop-shadow(0 8px 18px rgba(0,0,0,.28))}.s7-auth-card h2{font-size:27px;margin:0 0 5px;color:#fff}.s7-auth-card .asub{font-size:11.5px;color:#858d99;margin-bottom:22px}.s7-auth-card .field{margin-bottom:13px}.s7-auth-card .field label{display:block;font-size:10px;color:#b1b7c0;font-weight:800;margin-bottom:6px}.s7-auth-card input{width:100%;height:47px;border-radius:11px;background:#0c1015;border:1px solid rgba(255,255,255,.10);color:#fff;padding:0 13px;outline:none}.s7-auth-card input:focus{border-color:rgba(233,185,73,.55);box-shadow:0 0 0 3px rgba(233,185,73,.09)}.s7-auth-submit{width:100%;height:48px;border:0;border-radius:11px;background:linear-gradient(135deg,#ffe18a,#d79b26 62%,#ae7010);color:#14110a;font-weight:900;cursor:pointer;box-shadow:0 9px 24px rgba(194,134,24,.22)}.s7-auth-aux{display:flex;justify-content:space-between;gap:10px;margin:11px 0 15px}.s7-auth-link{border:0;background:transparent;color:#a7aeb8;font-size:10px;cursor:pointer;padding:0}.s7-auth-link:hover{color:#f1c75e}.s7-auth-install{width:100%;height:42px;border-radius:10px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.025);color:#d9dde3;cursor:pointer}.s7-auth-lang{display:flex;justify-content:center;margin-top:14px}.s7-auth-lang .lang-toggle{background:#0b0f14;border-color:rgba(255,255,255,.08)}.s7-auth-lang .lang-toggle button{color:#79818c}.s7-auth-lang .lang-toggle button.active{background:#d9a431;color:#15120b}.s7-auth-card .err{color:#ff8c93;background:rgba(255,98,109,.07);border:1px solid rgba(255,98,109,.16);padding:9px;border-radius:9px}

/* Dashboard v1 */
.s7-dashboard{display:grid;gap:14px}.s7-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:22px;align-items:center;padding:21px 23px;border:1px solid rgba(233,185,73,.15);border-radius:18px;background:linear-gradient(125deg,rgba(19,24,31,.96),rgba(12,15,20,.96));box-shadow:0 18px 44px rgba(0,0,0,.18)}.s7-hero:after{content:"";position:absolute;right:-60px;top:-100px;width:300px;height:300px;border-radius:50%;border:1px solid rgba(233,185,73,.09);box-shadow:0 0 0 45px rgba(233,185,73,.025),0 0 0 90px rgba(233,185,73,.018)}.s7-hero-copy{position:relative;z-index:2}.s7-kicker{font-size:9px;letter-spacing:.18em;color:#d8aa45;font-weight:900;margin-bottom:6px}.s7-hero h2{font-size:26px;letter-spacing:-.035em;margin:0 0 6px}.s7-hero p{margin:0;color:#8e96a2;font-size:11.5px}.s7-search{position:relative;z-index:3;width:min(420px,42vw);display:flex;align-items:center;gap:8px;background:#090d12;border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:7px 9px}.s7-search span{color:#717986}.s7-search input{flex:1;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;padding:5px!important;color:#fff!important}.s7-search kbd{font-size:8px;color:#828994;background:#141920;border:1px solid rgba(255,255,255,.07);border-radius:6px;padding:4px 6px;white-space:nowrap}
.s7-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.s7-quick{position:relative;text-align:left;border:1px solid rgba(255,255,255,.075);border-radius:15px;background:linear-gradient(145deg,#12171e,#0d1117);padding:14px;color:#fff;cursor:pointer;min-height:84px;transition:.16s ease}.s7-quick:hover{transform:translateY(-2px);border-color:rgba(233,185,73,.26);box-shadow:0 14px 30px rgba(0,0,0,.18)}.s7-quick .qi{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-size:18px;background:rgba(68,133,255,.13);margin-bottom:9px}.s7-quick.gold .qi{background:rgba(233,185,73,.12)}.s7-quick.green .qi{background:rgba(41,199,128,.12)}.s7-quick b{display:block;font-size:11px}.s7-quick small{display:block;color:#79818d;font-size:8.8px;margin-top:3px}.s7-quick .arrow{position:absolute;right:13px;top:13px;color:#59616d}
.s7-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.s7-metric{border:1px solid rgba(255,255,255,.07);border-radius:15px;background:linear-gradient(145deg,#11161d,#0d1116);padding:14px;display:grid;grid-template-columns:39px 1fr;gap:11px;align-items:center;min-height:88px}.s7-metric .mi{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:rgba(68,133,255,.12);font-size:18px}.s7-metric.gold .mi{background:rgba(233,185,73,.11)}.s7-metric.green .mi{background:rgba(41,199,128,.11)}.s7-metric.red .mi{background:rgba(255,98,109,.10)}.s7-metric label{font-size:9px;color:#7f8792;text-transform:uppercase;letter-spacing:.05em}.s7-metric strong{display:block;font-size:25px;line-height:1.05;margin-top:3px}.s7-metric small{font-size:8px;color:#65707d}
.s7-main-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:12px}.s7-card{border:1px solid rgba(255,255,255,.07);border-radius:16px;background:linear-gradient(145deg,rgba(18,23,30,.96),rgba(11,14,19,.96));padding:15px;box-shadow:0 14px 34px rgba(0,0,0,.14)}.s7-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.s7-card-head h3{margin:0;font-size:12px}.s7-card-head button{border:0;background:transparent;color:#cfa33f;font-size:9px;cursor:pointer}.s7-chart-wrap{height:178px;display:flex;align-items:flex-end;gap:8px;padding-top:15px}.s7-chart-col{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative}.s7-chart-bar{width:min(33px,65%);border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#f2ca69,#8c5d0a);min-height:5px;box-shadow:0 0 14px rgba(233,185,73,.12)}.s7-chart-lab{position:absolute;bottom:-17px;font-size:7.5px;color:#68717d}.s7-chart-val{position:absolute;bottom:calc(var(--bar) + 4px);font-size:7px;color:#939aa5}.s7-status-wrap{display:flex;align-items:center;gap:19px;padding:8px 4px 4px}.s7-ring{--done:0deg;--progress:0deg;width:124px;height:124px;border-radius:50%;background:conic-gradient(#30c980 0 var(--done),#e6b84d var(--done) var(--progress),#4a8cff var(--progress) 320deg,#29303a 320deg 360deg);display:grid;place-items:center;box-shadow:0 0 0 8px rgba(255,255,255,.018)}.s7-ring:after{content:"";width:80px;height:80px;border-radius:50%;background:#0d1117;border:1px solid rgba(255,255,255,.05)}.s7-ring-label{position:absolute;text-align:center;z-index:2}.s7-ring-label strong{display:block;font-size:22px}.s7-ring-label small{font-size:8px;color:#747d88}.s7-status-list{display:grid;gap:9px;flex:1}.s7-status-item{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9.5px;color:#aab0b8}.s7-status-item span:first-child{display:flex;align-items:center;gap:7px}.s7-dot{width:7px;height:7px;border-radius:50%;background:#30c980}.s7-dot.yellow{background:#e6b84d}.s7-dot.blue{background:#4a8cff}.s7-dot.gray{background:#555f6b}
.s7-lower{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:12px}.s7-list{display:grid;gap:7px}.s7-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.022);border:1px solid rgba(255,255,255,.045)}.s7-row:hover{background:rgba(233,185,73,.035);border-color:rgba(233,185,73,.12)}.s7-row b{font-size:9.8px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s7-row small{display:block;font-size:8px;color:#747d88;margin-top:3px}.s7-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 7px;font-size:7.5px;background:#1c252f;color:#aeb6c0;white-space:nowrap}.s7-pill.ok{background:rgba(41,199,128,.11);color:#59d59b}.s7-pill.warn{background:rgba(233,185,73,.11);color:#eac66e}.s7-pill.bad{background:rgba(255,98,109,.10);color:#ff8990}.s7-pill.info{background:rgba(74,140,255,.11);color:#78a8ff}.s7-activity{display:grid;gap:11px}.s7-activity-row{display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:start}.s7-activity-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#141a21;font-size:13px}.s7-activity-row b{font-size:9px;line-height:1.35}.s7-activity-row small{font-size:7.7px;color:#69727e}.s7-empty{font-size:9px;color:#6f7884;padding:12px;text-align:center}

@media(max-width:1180px){.s7-quick-grid,.s7-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.s7-lower{grid-template-columns:1fr 1fr}.s7-lower>.s7-card:last-child{grid-column:1/-1}.s7-main-grid{grid-template-columns:1fr}}
@media(max-width:900px){body.stage7-premium .s7-auth{grid-template-columns:1fr}.s7-auth-brand{display:none}.s7-auth-main{min-height:100vh;padding:24px}.s7-auth-card{max-width:480px}.s7-hero{align-items:flex-start;flex-direction:column}.s7-search{width:100%}.s7-lower{grid-template-columns:1fr}.s7-lower>.s7-card:last-child{grid-column:auto}}
@media(max-width:820px){body.stage7-premium .v9-shell .sidebar,body.stage7-premium .admin-mode .sidebar{width:286px}.s7-dashboard{padding-bottom:76px}.s7-hero{padding:16px}.s7-hero h2{font-size:21px}.s7-quick-grid,.s7-metrics{grid-template-columns:1fr 1fr;gap:8px}.s7-quick{min-height:76px;padding:11px}.s7-metric{padding:11px}.s7-main-grid,.s7-lower{gap:9px}}
@media(max-width:520px){.s7-auth-main{padding:12px}.s7-auth-card{padding:22px 17px;border-radius:18px}.s7-auth-card .alogo img{width:155px}.s7-quick-grid{grid-template-columns:1fr 1fr}.s7-metrics{grid-template-columns:1fr 1fr}.s7-metric{grid-template-columns:32px 1fr;gap:8px}.s7-metric .mi{width:32px;height:32px;font-size:14px}.s7-metric strong{font-size:21px}.s7-status-wrap{flex-direction:column;align-items:flex-start}.s7-ring{align-self:center}.s7-chart-wrap{height:150px}.s7-search kbd{display:none}}

/* ===== Stage 7 v2 — Light Premium workspace / Dark Sidebar ===== */
body.stage7-premium .v9-shell{
  --bg:#F4F7FB;--surface:#FFFFFF;--surface-2:#F7F9FC;--line:#E3E9F2;--text:#14213A;--text-muted:#6D7890;
  --gold:#D8A33A;--gold-soft:#F4C85A;--gold-dark:#A97412;
  min-height:100vh;background:#F4F7FB;color:#14213A;
}
body.stage7-premium .v9-shell .main{
  background:
    radial-gradient(circle at 95% 2%,rgba(55,118,255,.055),transparent 24%),
    linear-gradient(180deg,#F7F9FC 0%,#F1F5FA 100%);
  color:#14213A;
}
body.stage7-premium .v9-shell .sidebar,body.stage7-premium .admin-mode .sidebar{
  background:
    radial-gradient(circle at 18% 2%,rgba(244,200,90,.10),transparent 24%),
    linear-gradient(180deg,#071B33 0%,#08233F 58%,#06182C 100%);
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:10px 0 30px rgba(18,40,70,.10);
}
body.stage7-premium .v9-shell .sb-brand{border-bottom-color:rgba(255,255,255,.09)}
body.stage7-premium .v9-shell .sb-brand span{color:#FFF}
body.stage7-premium .v9-shell .sb-item{color:#D6DFEA}
body.stage7-premium .v9-shell .sb-item:hover{background:rgba(255,255,255,.07);color:#FFF}
body.stage7-premium .v9-shell .sb-item.active{
  color:#11203A;background:linear-gradient(135deg,#F5D779,#D8A33A);border-color:rgba(255,224,135,.70);
  box-shadow:0 8px 22px rgba(216,163,58,.17);font-weight:800;
}
body.stage7-premium .v9-shell .sb-item.active .em{filter:none}
body.stage7-premium .v9-shell .sb-badge{background:#D8A33A;color:#17233A}
body.stage7-premium .v9-shell .sidebar .lang-toggle{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08)}
body.stage7-premium .v9-shell .sidebar .lang-toggle button{color:#AFC0D2}
body.stage7-premium .v9-shell .sidebar .lang-toggle button.active{background:#F3CF6B;color:#102139}
body.stage7-premium .v9-shell .topbar{
  background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid #E4EAF2;
  box-shadow:0 8px 24px rgba(40,63,94,.05);
}
body.stage7-premium .v9-shell .topbar h1{color:#17243C}
body.stage7-premium .v9-user-pill{border-left-color:#E4EAF2}
body.stage7-premium .v9-user-pill .av{background:linear-gradient(135deg,#E9EEF6,#D3DCE9);color:#23324B;border:1px solid #C8D2DF}
body.stage7-premium .v9-user-pill b{color:#17243C}
body.stage7-premium .v9-user-pill span{color:#768198}
body.stage7-premium .v10-top-logout{background:#FFF;border-color:#E3E9F1;color:#C43A45}
body.stage7-premium .v10-top-logout:hover{background:#FFF4F5;border-color:#F2C7CB}
body.stage7-premium .v9-shell .panel,body.stage7-premium .v9-shell .kpi,body.stage7-premium .sa6-card,body.stage7-premium .stage5-card{
  background:#FFFFFF;border:1px solid #E1E7EF;box-shadow:0 10px 30px rgba(53,74,105,.055);color:#17243C;
}
body.stage7-premium .v9-shell .panel h3,body.stage7-premium .sa6-card h3,body.stage7-premium .stage5-card h3{color:#17243C}
body.stage7-premium .v9-shell input,body.stage7-premium .v9-shell select,body.stage7-premium .v9-shell textarea,
body.stage7-premium .sa6-toolbar input,body.stage7-premium .sa6-toolbar select,body.stage7-premium .sa6-form input,body.stage7-premium .sa6-form select,body.stage7-premium .sa6-form textarea{
  background:#FFF;border-color:#DDE5EF;color:#17243C;
}
body.stage7-premium .v9-shell input:focus,body.stage7-premium .v9-shell select:focus,body.stage7-premium .v9-shell textarea:focus{
  background:#FFF;border-color:#81A9FF;box-shadow:0 0 0 3px rgba(62,117,232,.10);
}
body.stage7-premium .v9-shell .btn-gold{background:linear-gradient(135deg,#F5D779,#D8A33A);border-color:#D4A038;color:#17213A;box-shadow:0 7px 20px rgba(216,163,58,.15)}
body.stage7-premium .v9-shell .btn-outline,body.stage7-premium .v9-shell .mini-btn{background:#FFF;border-color:#DDE5EF;color:#344158}
body.stage7-premium .v9-shell .btn-outline:hover,body.stage7-premium .v9-shell .mini-btn:hover{background:#F7F9FC;border-color:#C7D5E7;color:#17243C}
body.stage7-premium .v9-shell thead th{background:#F6F8FB;color:#718096;border-color:#E6EBF2}
body.stage7-premium .v9-shell tbody td{border-color:#E9EDF3;color:#344158}
body.stage7-premium .v9-shell tbody tr:hover td{background:#FAFBFD}
body.stage7-premium .v9-shell .doc-row,body.stage7-premium .v9-shell .employee-card,body.stage7-premium .v9-shell .search-result,body.stage7-premium .v9-shell .calendar-cell{
  background:#FFF;border-color:#E2E8F0;box-shadow:0 4px 14px rgba(55,78,110,.035);color:#25324A;
}
body.stage7-premium .v9-shell .reg-form,body.stage7-premium .v9-shell .install-card,body.stage7-premium .v9-shell .task-tabs{background:#FFF;border-color:#E2E8F0}
body.stage7-premium .dd,body.stage7-premium .desc,body.stage7-premium .meta{color:#748095!important}

/* Stage 7 dashboard light cards */
.s7-dashboard{gap:14px}
.s7-hero{border:1px solid #E0E7F0;background:linear-gradient(135deg,#FFFFFF 0%,#F7FAFE 100%);box-shadow:0 10px 28px rgba(56,79,111,.055)}
.s7-hero:after{border-color:rgba(216,163,58,.14);box-shadow:0 0 0 45px rgba(216,163,58,.030),0 0 0 90px rgba(57,112,224,.018)}
.s7-kicker{color:#B78320}.s7-hero h2{color:#17243C}.s7-hero p{color:#728097}
.s7-search{background:#FFF;border:1px solid #DCE4EE;box-shadow:0 4px 14px rgba(49,72,104,.04)}
.s7-search span{color:#75849A}.s7-search input{color:#17243C!important}.s7-search input::placeholder{color:#95A0B1}.s7-search kbd{color:#657287;background:#F4F7FA;border-color:#E0E6ED}
.s7-quick{border:1px solid #DDE5EF;background:#FFF;color:#17243C;box-shadow:0 6px 18px rgba(48,72,104,.045)}
.s7-quick:hover{border-color:#C9D7E8;box-shadow:0 11px 24px rgba(46,70,101,.08)}
.s7-quick .qi{background:#EAF2FF;color:#1761E8}.s7-quick.gold{background:#FFFBF1;border-color:#F0DFB9}.s7-quick.gold .qi{background:#FFF0BF;color:#AA720A}.s7-quick.green{background:#F4FCF9;border-color:#D7EEE4}.s7-quick.green .qi{background:#DBF7E9;color:#11845A}.s7-quick small{color:#758197}.s7-quick .arrow{color:#748197}
.s7-metric{border:1px solid #E0E6EE;background:#FFF;box-shadow:0 7px 20px rgba(49,73,105,.045)}
.s7-metric .mi{background:#EAF2FF;color:#1761E8}.s7-metric.gold .mi{background:#FFF0C7;color:#A66C00}.s7-metric.green .mi{background:#DFF7EB;color:#0F875B}.s7-metric.red .mi{background:#FFE7E9;color:#C33E4A}
.s7-metric label{color:#748095}.s7-metric strong{color:#17243C}.s7-metric small{color:#8792A3}
.s7-card{border:1px solid #E0E6EE;background:#FFF;box-shadow:0 8px 24px rgba(49,73,105,.05);color:#17243C}.s7-card-head h3{color:#17243C}.s7-card-head button{color:#B57A12}
.s7-chart-bar{background:linear-gradient(180deg,#F3C759,#D59A20);box-shadow:0 0 12px rgba(216,163,58,.14)}.s7-chart-lab{color:#8A95A6}.s7-chart-val{color:#667287}
.s7-ring{background:conic-gradient(#22B97B 0 var(--done),#F1C34F var(--done) var(--progress),#3F7DE8 var(--progress) 320deg,#DDE4EC 320deg 360deg);box-shadow:0 0 0 8px #F8FAFC}.s7-ring:after{background:#FFF;border-color:#E5EAF0}.s7-ring-label strong{color:#17243C}.s7-ring-label small{color:#7D899C}.s7-status-item{color:#5D697E}
.s7-row{background:#F9FBFD;border-color:#E7ECF2}.s7-row:hover{background:#FFF9EC;border-color:#EEDAAE}.s7-row b{color:#25324A}.s7-row small{color:#7D889A}.s7-pill{background:#EDF1F6;color:#637085}.s7-pill.ok{background:#E2F8ED;color:#17865A}.s7-pill.warn{background:#FFF3D2;color:#9A6908}.s7-pill.bad{background:#FFE8EA;color:#C33E49}.s7-pill.info{background:#E7F0FF;color:#2E69C9}.s7-activity-ic{background:#EEF3FA;color:#315A9C}.s7-activity-row b{color:#354158}.s7-activity-row small,.s7-empty{color:#8590A2}

/* Give long-form work pages comfortable light background */
body.stage7-premium .v9-shell .content{background:transparent}
body.stage7-premium .v9-shell .table-wrap,body.stage7-premium .v9-shell .doc-table-wrap{background:#FFF;border-radius:14px}

@media(max-width:820px){
  body.stage7-premium .v9-shell .sidebar,body.stage7-premium .admin-mode .sidebar{box-shadow:18px 0 40px rgba(5,23,43,.24)}
  body.stage7-premium .v9-shell .topbar{background:rgba(255,255,255,.96)}
}


/* Stage 7 v10 — Cream login theme overrides */
.s7-auth{background:linear-gradient(90deg,#ece4d6 0%,#eadfcd 39%,#f5f0e8 39%,#f2ece3 100%)}
.s7-auth:before{background:radial-gradient(circle at 72% 28%,rgba(201,157,62,.08),transparent 22%),radial-gradient(circle at 78% 62%,rgba(201,157,62,.06),transparent 28%),linear-gradient(90deg,rgba(255,255,255,0) 49%,rgba(185,148,85,.08) 49%,rgba(255,255,255,0) 50%)}
.s7-auth-brand{color:#1b2a49;background:linear-gradient(180deg,rgba(247,241,231,.00),rgba(240,231,215,.05))}
.s7-auth-top b{color:#10274f}
.s7-auth-top span{color:#6f6760}
.s7-auth-kicker{color:#b68525}
.s7-auth-copy h1{color:#13294c}
.s7-auth-copy h1 em{color:#c4922e}
.s7-auth-copy p{color:#5e5a57}
.s7-auth-feature{border:1px solid rgba(180,143,80,.18);background:rgba(255,255,255,.30);box-shadow:0 10px 30px rgba(70,46,8,.06)}
.s7-auth-feature i{background:linear-gradient(135deg,#f6deb2,#e1b254);color:#3d2c11}
.s7-auth-feature b{color:#13294c}
.s7-auth-feature small{color:#7a726a}
.s7-auth-foot{color:#8f867b}
.s7-auth-main{background:radial-gradient(circle at 50% 15%,rgba(255,255,255,.28),transparent 30%),linear-gradient(180deg,#f8f3ec 0%,#f3ede4 100%)}
.s7-auth-main:before{background:rgba(201,157,62,.08);filter:blur(55px)}
.s7-auth-card{background:linear-gradient(180deg,#f8f5ef 0%,#f1eadf 100%);border:1px solid rgba(191,146,69,.42);box-shadow:0 24px 60px rgba(91,67,24,.18)}
.s7-auth-card h2{color:#1a2d4f}
.s7-auth-card .asub{color:#7e766e}
.s7-auth-card .field label{color:#655f5a}
.s7-auth-card input{background:#fffdfa;border:1px solid rgba(194,161,99,.42);color:#24324a}
.s7-auth-card input::placeholder{color:#a39b90}
.s7-auth-card input:focus{border-color:rgba(201,157,62,.75);box-shadow:0 0 0 3px rgba(201,157,62,.12)}
.s7-auth-submit{box-shadow:0 10px 24px rgba(194,134,24,.18)}
.s7-auth-link{color:#7a7369}.s7-auth-link:hover{color:#b07c1a}
.s7-auth-install{border:1px solid rgba(194,161,99,.34);background:rgba(255,255,255,.36);color:#32415b}
.s7-auth-lang .lang-toggle{background:rgba(255,255,255,.52);border-color:rgba(194,161,99,.28)}
.s7-auth-lang .lang-toggle button{color:#6d655b}
.s7-auth-lang .lang-toggle button.active{background:#d9a431;color:#15120b}
@media (max-width: 980px){.s7-auth{background:linear-gradient(180deg,#ece4d6 0%,#f6f0e7 100%)}}
