/* ═════════════ Super Portal — the platform owner's console: violet & gold, sidebar layout, light and dark ═════════════ */

/* palette: dark (default for .sp) and light (when the app theme is light) */
.sp {
  --bg: #0a0618; --surface: #14102b; --surface2: #1b1639; --ink: #f2eeff; --mut: #a59dcb; --line: #2a2250; --line2: #3b3170; --tint: rgba(255, 255, 255, .045); --tint2: rgba(255, 255, 255, .08);
  --brand: #f5b942; --brand-hover: #ffd27a; --brand-glow: #ffcf6b; --brand-soft: rgba(245, 185, 66, .14); --brand-ink: #ffd27a; --on-brand: #1a1204; --ring: 0 0 0 3px rgba(245, 185, 66, .3);
  --btn: linear-gradient(180deg, #ffcb5c, #f5a524); --btn-hover: linear-gradient(180deg, #ffd983, #f9b445); --btn-ink: #1a1204; --btn-shadow: 0 10px 24px -12px rgba(245, 165, 36, .9);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .14); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14); --bad: #fb7185; --bad-soft: rgba(251, 113, 133, .16); --info: #93c5fd; --info-soft: rgba(147, 197, 253, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8); color-scheme: dark;
  --canvas: radial-gradient(1100px 560px at 85% -10%, rgba(124, 58, 237, .26), transparent 62%), radial-gradient(800px 480px at 0% 30%, rgba(245, 185, 66, .09), transparent 60%), #0a0618;
}
:root[data-theme="light"] .sp {
  --bg: #f4f2fc; --surface: #ffffff; --surface2: #f7f5fe; --ink: #1c1638; --mut: #6a638f; --line: #e7e3f6; --line2: #d5cfee; --tint: rgba(28, 22, 56, .04); --tint2: rgba(28, 22, 56, .07);
  --brand: #6d28d9; --brand-hover: #5b21b6; --brand-glow: #8b5cf6; --brand-soft: rgba(109, 40, 217, .09); --brand-ink: #5b21b6; --on-brand: #ffffff; --ring: 0 0 0 3px rgba(109, 40, 217, .25);
  --btn: linear-gradient(180deg, #8b5cf6, #6d28d9); --btn-hover: linear-gradient(180deg, #9d75f8, #7c3aed); --btn-ink: #fff; --btn-shadow: 0 10px 22px -12px rgba(109, 40, 217, .8);
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #be123c; --bad-soft: #ffe4e6; --info: #1d4ed8; --info-soft: #dbeafe;
  --shadow: 0 1px 2px rgba(28, 22, 56, .05), 0 16px 36px -22px rgba(60, 40, 140, .3); color-scheme: light;
  --canvas: radial-gradient(1000px 520px at 90% -12%, rgba(139, 92, 246, .16), transparent 62%), radial-gradient(760px 460px at 0% 40%, rgba(245, 185, 66, .13), transparent 60%), #f4f2fc;
}
.sp { position: relative; min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; background: var(--canvas); color: var(--ink); isolation: isolate; }
.sp input, .sp select, .sp textarea { background: var(--surface2) !important; color: var(--ink) !important; border-color: var(--line2) !important; } .sp input::placeholder { color: var(--mut); }
.sp input[type=checkbox], .sp input[type=radio] { background: var(--surface) !important; }
.sp .skeleton { background: linear-gradient(90deg, var(--surface), var(--surface2), var(--surface)); background-size: 200% 100%; }
.sp h1, .sp h3 { color: var(--ink); -webkit-text-fill-color: initial; background: none; }
.sp .mut, .spmut, .sp small { color: var(--mut); }

/* sidebar: always deep violet */
.spside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #1a1238 0%, #120b2b 60%, #0e0822 100%); color: #e8e3fb; border-right: 1px solid rgba(255, 255, 255, .06); z-index: 30; overflow: hidden; }
.spside::after { content: ""; position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245, 185, 66, .14); filter: blur(60px); pointer-events: none; }
.spbrand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; } .spbrand b { display: block; font-size: 15.5px; letter-spacing: -.01em; color: #fff; } .spbrand small { color: #f5b942; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.splogo { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #f5b942, #f97316); box-shadow: 0 8px 22px -8px rgba(245, 185, 66, .8); overflow: hidden; }
.splogo svg { width: 22px; height: 22px; stroke: #1a1204; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .splogo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.spnav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; scrollbar-width: thin; } .spgrp { margin-bottom: 14px; } .spgrp small { display: block; padding: 6px 10px; color: #8d83b8; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.spnav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px; border-radius: 12px; color: #c9c1ea; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
.spnav a svg, .spic svg, .spcmd svg, .spcard h3 svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.spnav a.on { color: #fff; background: linear-gradient(90deg, rgba(245, 185, 66, .24), rgba(245, 185, 66, .05)); box-shadow: inset 0 0 0 1px rgba(245, 185, 66, .32); } .spnav a.on svg { stroke: #f5b942; } .spnav a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #f5b942; }
.spnav em { margin-left: auto; font-style: normal; background: #fb7185; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; } .spnav em[hidden] { display: none; }
.spside-foot { position: relative; z-index: 1; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 10px; }
.spcmd { display: flex !important; align-items: center; gap: 10px; width: 100%; background: rgba(255, 255, 255, .06) !important; color: #c9c1ea !important; border: 1px solid rgba(255, 255, 255, .1) !important; box-shadow: none !important; justify-content: flex-start; font-weight: 600; font-size: 13px; } .spcmd:hover:not(:disabled) { background: rgba(255, 255, 255, .11) !important; color: #fff !important; transform: none !important; }
.spcmd kbd { margin-left: auto; font: 600 10.5px ui-monospace, monospace; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; padding: 1px 6px; color: #a79fd0; }
.spuserbox { display: flex; align-items: center; gap: 10px; } .spuserbox > div { flex: 1; min-width: 0; line-height: 1.2; } .spuserbox b { display: block; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spuserbox small { color: #a79fd0; font-size: 11px; }
.spic { background: transparent !important; color: var(--mut) !important; border: 1px solid transparent !important; box-shadow: none !important; width: 36px; min-height: 36px; padding: 0 !important; border-radius: 11px !important; position: relative; display: inline-grid; place-items: center; flex: none; }
.spic:hover:not(:disabled) { background: var(--tint2) !important; color: var(--ink) !important; transform: none !important; } .spside .spic { color: #a79fd0 !important; } .spside .spic:hover:not(:disabled) { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.spav { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; flex: none; } .spav.gold { background: linear-gradient(135deg, #f5b942, #f97316); color: #1a1204; }

/* body */
.spbody { min-width: 0; display: flex; flex-direction: column; }
.sptop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 32px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.spcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); } .spcrumb b { color: var(--ink); } .spcrumb i { opacity: .5; font-style: normal; } .grow { flex: 1; }
.burger { display: none !important; } .bellbtn.spic .bellc { box-shadow: 0 0 0 3px var(--bg); }
.spmain { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 70px; animation: fadeUp .45s both; }
.spscrim { display: none; }

.sphero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sphero h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; font-weight: 750; } .sphero p { margin: 6px 0 0; color: var(--mut); } .spact { display: flex; gap: 10px; }
.sp button:not(.spic):not(.spghost):not(.eye):not(.iconbtn):not(.spcmd):not(.fold):not(.tpl):not(.st):not(.pvbtn) { background: var(--btn); color: var(--btn-ink); font-weight: 700; border: 0; box-shadow: var(--btn-shadow); }
.sp button:not(.spic):not(.spghost):not(.spcmd):not(.fold):not(.tpl):not(.st):not(.pvbtn):hover:not(:disabled) { background: var(--btn-hover); color: var(--btn-ink); }
.sp button.ghost { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line2) !important; box-shadow: none !important; }
.spghost { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line2) !important; box-shadow: none !important; font-weight: 600; } .spghost:hover:not(:disabled) { border-color: var(--brand) !important; color: var(--brand) !important; transform: none !important; background: var(--brand-soft) !important; } .spghost svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.spghost.danger { color: var(--bad) !important; } .spghost.danger:hover:not(:disabled) { border-color: var(--bad) !important; background: var(--bad-soft) !important; color: var(--bad) !important; }

.sptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.sptile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; animation: fadeUp .5s both; }
.sptile:hover { transform: translateY(-4px); border-color: var(--line2); } .sptile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--g, rgba(124, 58, 237, .3)); filter: blur(30px); opacity: .6; }
.sptile i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--g2, #7c3aed); margin-bottom: 8px; position: relative; z-index: 1; } .sptile i svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sptile span { color: var(--mut); font-size: 12.5px; font-weight: 600; } .sptile b { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; } .sptile small { color: var(--mut); font-size: 12px; }
.sptile.t1 { --g2: linear-gradient(135deg, #7c3aed, #6366f1); --g: rgba(99, 102, 241, .35); } .sptile.t2 { --g2: linear-gradient(135deg, #f5b942, #f97316); --g: rgba(249, 115, 22, .3); } .sptile.t3 { --g2: linear-gradient(135deg, #14b8a6, #0ea5e9); --g: rgba(20, 184, 166, .3); } .sptile.t4 { --g2: linear-gradient(135deg, #ec4899, #8b5cf6); --g: rgba(236, 72, 153, .28); } .sptile.t5 { --g2: linear-gradient(135deg, #fb7185, #f43f5e); --g: rgba(244, 63, 94, .26); } .sptile.t6 { --g2: linear-gradient(135deg, #22c55e, #14b8a6); --g: rgba(34, 197, 94, .28); }

.spcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; } .spcols.two { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.spcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px; animation: fadeUp .5s both; } .spcard.flush { padding: 6px 0; }
.spcard h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; } .spcard h3 svg { stroke: var(--brand); }
.sprow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .sprow:last-child { border: 0; } .sprow b { display: block; } .sprow small { display: block; max-width: 340px; }
.spacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .spacts button { min-height: 32px; padding: 5px 13px; font-size: 12.5px; }
.spev { display: flex; gap: 12px; padding: 7px 0; font-size: 13px; } .spev i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 7px; box-shadow: 0 0 0 4px var(--brand-soft); } .spev span { color: var(--mut); } .spev em { font-style: normal; background: var(--surface2); border: 1px solid var(--line2); border-radius: 6px; padding: 0 7px; font-size: 11.5px; } .spev small { display: block; }
.spmore { display: inline-block; margin-top: 8px; color: var(--brand); text-decoration: none; font-weight: 650; font-size: 13px; }
.sphealth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .sphealth div { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .sphealth span { display: block; color: var(--mut); font-size: 11.5px; } .sphealth b { font-size: 16px; } .sphealth b.ok { color: var(--ok); }

.sptool { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .sptool input { flex: 1; min-width: 220px; max-width: 420px; border-radius: 12px; padding: 10px 14px; }
.spseg { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; } .spseg button { background: transparent !important; color: var(--mut) !important; box-shadow: none !important; border: 0 !important; min-height: 30px; padding: 4px 14px; border-radius: 9px; font-weight: 600; } .spseg button.on { background: var(--brand-soft) !important; color: var(--brand) !important; }
.spgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.spws { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, border-color .25s, box-shadow .25s; animation: fadeUp .5s both; overflow: hidden; box-shadow: var(--shadow); }
.spws::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); } .spws:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 22px 44px -26px var(--c); }
.spws.suspended { opacity: .8; } .spws.pending { border-style: dashed; border-color: var(--warn); }
.spws .top { display: flex; align-items: center; gap: 12px; } .spws .nm { flex: 1; min-width: 0; } .spws .nm b { display: block; font-size: 16px; } .spws .nm small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spmods { display: flex; gap: 6px; } .spmod { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--info-soft); color: var(--info); } .spmod.delivery { background: var(--ok-soft); color: var(--ok); }
.wsav { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 8px 20px -10px var(--c); }
.spst { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; } .spst.active { background: var(--ok-soft); color: var(--ok); } .spst.pending { background: var(--warn-soft); color: var(--warn); } .spst.suspended { background: var(--bad-soft); color: var(--bad); }
.spnote { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 7px 11px; font-size: 12.5px; }
.spstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .spstats div { background: var(--tint); border-radius: 12px; padding: 9px 10px; text-align: center; } .spstats b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; } .spstats span { color: var(--mut); font-size: 11px; }
.spadm { font-size: 13px; } .spadm span { color: var(--mut); }
.spempty { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--mut); } .spempty svg { width: 40px; height: 40px; stroke: var(--line2); fill: none; stroke-width: 1.5; }
.spgroup { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; overflow: hidden; animation: fadeUp .5s both; box-shadow: var(--shadow); } .spgroup.owner { border-color: color-mix(in srgb, #f5b942 55%, transparent); background: linear-gradient(180deg, rgba(245, 185, 66, .09), var(--surface)); }
.spgroup > header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--tint); } .spgroup > header > div { flex: 1; } .spgroup > header b { display: block; } .spgroup > header .wsav { width: 36px; height: 36px; font-size: 15px; }
.spuserrow { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; transition: background .15s; } .spuserrow:last-child { border: 0; } .spuserrow:hover { background: var(--tint); } .spuserrow.off { opacity: .55; }
.spuserrow .who { flex: 1 1 200px; min-width: 0; } .spuserrow .who b, .spuserrow .who small { display: block; }
.spposn { font-size: 12.5px; color: var(--brand-ink); min-width: 120px; font-weight: 600; } .spflags em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-right: 4px; } .spflags .inv { background: var(--warn-soft); color: var(--warn); } .spflags .blk { background: var(--bad-soft); color: var(--bad); }
.spbrands { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .spbr { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .spbr > div { flex: 1; min-width: 0; } .spbr b, .spbr small { display: block; }
.spsw { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .spsw:last-child { border: 0; } .spsw span b, .spsw span small { display: block; } .spsw span small { margin-top: 2px; }
.spsw input { position: absolute; opacity: 0; } .spsw i { flex: none; width: 44px; height: 25px; border-radius: 99px; background: var(--line2); position: relative; transition: background .25s; margin-top: 2px; } .spsw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.spsw input:checked + i { background: var(--brand); } .spsw input:checked + i::after { transform: translateX(19px); } .spsw input:focus-visible + i { box-shadow: var(--ring); }
.sp label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--mut); margin-bottom: 12px; } .sp label.f input, .sp label.f textarea { color: var(--ink); font-weight: 400; font-size: 14px; }
.spsec { margin: 0; padding-left: 18px; color: var(--mut); font-size: 13px; line-height: 1.7; } .spsave { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.sptable { width: 100%; font-size: 13px; } .sptable th { text-align: left; color: var(--mut); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 16px; border-bottom: 1px solid var(--line); background: transparent; } .sptable td { padding: 9px 16px; border-bottom: 1px solid var(--line); } .sptable tr:hover td { background: var(--tint); } .sptable code { background: var(--surface2); border-radius: 6px; padding: 2px 7px; color: var(--brand-ink); }
.sp .scroll { background: transparent; }

/* quick-jump palette */
#palette { position: fixed; inset: 0; z-index: 100; background: rgba(8, 5, 22, .6); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 14vh; animation: fadeUp .18s both; }
#palette .pal { width: min(620px, 92vw); background: var(--surface, #fff); color: var(--ink, #111); border: 1px solid var(--line2, #ddd); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); overflow: hidden; } :root[data-theme="dark"] #palette .pal { background: #14102b; color: #f2eeff; border-color: #3b3170; }
#palette input { width: 100%; border: 0 !important; border-bottom: 1px solid var(--line, #e7e3f6) !important; border-radius: 0 !important; padding: 18px 20px; font-size: 16px; background: transparent !important; outline: none; box-shadow: none !important; color: inherit !important; }
#palette .plist { max-height: 52vh; overflow: auto; padding: 8px; } #palette .pi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; } #palette .pi.on, #palette .pi:hover { background: rgba(124, 58, 237, .13); }
#palette .pt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7c3aed; min-width: 70px; } #palette small { color: #8b84ad; margin-left: auto; }

@media (max-width: 960px) {
  .sp { grid-template-columns: 1fr; } .spside { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); } .sp.navopen .spside { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  .sp.navopen .spscrim { display: block; position: fixed; inset: 0; background: rgba(8, 5, 22, .55); z-index: 25; } .burger { display: inline-grid !important; } .sptop { padding: 10px 14px; } .spmain { padding: 20px 14px 60px; } .sphero h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .spmain, .sptile, .spws, .spcard, .spgroup { animation: none; } }

/* ── settings hub ── */
.settabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.settabs button { display: inline-flex; align-items: center; gap: 8px; background: transparent !important; color: var(--mut) !important; border: 1px solid transparent !important; box-shadow: none !important; border-radius: 11px !important; font-weight: 650; padding: 8px 14px; } .settabs button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settabs button:hover { color: var(--ink) !important; background: var(--tint) !important; transform: none !important; } .settabs button.on { color: var(--brand) !important; background: var(--brand-soft) !important; border-color: color-mix(in srgb, var(--brand) 35%, transparent) !important; }
.sp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .sp .spcard small { color: var(--mut); font-size: 11.5px; line-height: 1.4; } .sp label.f small { font-weight: 400; margin-top: 2px; }
.spcols.setcols { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); } .spcard.wide2 { grid-column: 1 / -1; } .sp .spcard .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.mailstate { border-radius: 14px; padding: 12px 16px; font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; border: 1px solid transparent; } .mailstate.ok { background: var(--ok-soft); color: var(--ok); } .mailstate.bad { background: var(--bad-soft); color: var(--bad); }
.mstats { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; flex-wrap: wrap; } .mstats span { color: var(--ink); opacity: .85; } .mstats b { font-size: 15px; }
.testbox { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; } .testbox button { min-height: 40px; }
.sp .notice { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 8px 0; } .sp .notice.warn { background: var(--warn-soft); color: var(--ink); border-color: transparent; }
@media (max-width: 700px) { .sp .two { grid-template-columns: 1fr; } .spcols.setcols, .spcols.two { grid-template-columns: 1fr; } }
