/* ScrimMate v2.0 — confirm sheet, AI compare, coach upgrades, Super Admin command center. */

/* ---------- In-app confirm sheet (replaces native WebView OK boxes) ---------- */
.auth-page.modal-scrim.sm-cf-modal { align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); background: rgb(4 4 8 / .62); }
.auth-page.modal-scrim.sm-cf-modal > .auth-card { width: min(380px, 100%); margin: 0; border-radius: 24px; padding: 22px 20px 18px; text-align: center; border: 1px solid color-mix(in srgb, var(--sm-accent) 22%, transparent);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sm-accent) 14%, transparent), transparent 62%), var(--sm-surface, #141418);
  box-shadow: 0 30px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .03) inset; animation: sm-cf-pop .32s cubic-bezier(.2, 1.3, .3, 1) both; }
.sm-cf-modal > .auth-card::before { display: none !important; }
.sm-cf-modal .panel-head { position: static !important; flex-direction: column-reverse; gap: 0; padding: 0 26px !important; margin: 0; border: 0; background: transparent !important; box-shadow: none !important; }
.sm-cf-modal .panel-head h2 { font-size: 1.16rem; font-weight: 850; letter-spacing: -.01em; margin: 10px 0 0; text-align: center; }
.sm-cf-modal .panel-head .btn.ghost[data-action="close-modal"] { position: absolute; top: 10px; right: 10px; min-height: 34px; width: 34px; padding: 0; border-radius: 50%; opacity: .7; }
.sm-cf-modal > .auth-card { position: relative; }
.sm-cf { display: flex; flex-direction: column; align-items: center; }
.sm-cf__icon { order: -1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; margin: 4px auto 0; color: #111; background: linear-gradient(140deg, var(--sm-accent), color-mix(in srgb, var(--sm-accent) 60%, #ff8a00)); box-shadow: 0 10px 30px color-mix(in srgb, var(--sm-accent) 40%, transparent); animation: sm-cf-icon .5s .08s cubic-bezier(.2, 1.4, .3, 1) both; }
.sm-cf__icon svg { width: 30px; height: 30px; }
.sm-cf--danger .sm-cf__icon { color: #fff; background: linear-gradient(140deg, #ff5a5a, #c62828); box-shadow: 0 10px 30px rgb(230 60 60 / .38); }
.sm-cf-modal:has(.sm-cf--danger) > .auth-card { border-color: rgb(255 90 90 / .28); background: radial-gradient(120% 70% at 50% 0%, rgb(255 80 80 / .14), transparent 62%), var(--sm-surface, #141418); }
.sm-cf-modal .auth-card > .panel-head { order: 1; }
.sm-cf-modal .auth-card { display: flex; flex-direction: column; }
.sm-cf-modal .auth-card > .sm-cf { order: 2; }
.sm-cf-modal .auth-card > .panel-head { order: 0; margin-top: 70px; }
.sm-cf-modal .sm-cf__icon { position: absolute; top: 20px; left: 50%; margin-left: -31px; }
.sm-cf__text { margin: 8px 4px 0; color: var(--sm-muted, #b8b8c4); line-height: 1.5; font-size: .95rem; }
.sm-cf__detail { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: .82rem; color: var(--sm-muted, #b8b8c4); background: rgb(255 255 255 / .05); }
.sm-cf .row.confirm-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 18px; }
.sm-cf .row.confirm-actions .btn { min-height: 48px; border-radius: 14px; font-weight: 800; }
.sm-cf .row.confirm-actions .btn.ghost { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .08); }
:root[data-theme="light"] .sm-cf .row.confirm-actions .btn.ghost { background: rgb(0 0 0 / .05); border-color: rgb(0 0 0 / .06); color: #222; }
.sm-cf .row.confirm-actions .btn.primary { box-shadow: 0 8px 22px color-mix(in srgb, var(--sm-accent) 32%, transparent); }
.sm-cf .row.confirm-actions .btn.danger { background: linear-gradient(135deg, #ff5a5a, #c62828); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgb(220 50 50 / .32); }
.sm-cf .row.confirm-actions .btn:active { transform: scale(.97); }
@keyframes sm-cf-pop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sm-cf-icon { from { opacity: 0; transform: scale(.4) rotate(-14deg); } to { opacity: 1; transform: none; } }
:root[data-theme="light"] .auth-page.modal-scrim.sm-cf-modal { background: rgb(20 20 30 / .38); }
:root[data-theme="light"] .auth-page.modal-scrim.sm-cf-modal > .auth-card { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sm-accent) 18%, transparent), transparent 62%), #fff; box-shadow: 0 30px 70px rgb(20 20 40 / .25); }
:root[data-theme="light"] .sm-cf-modal:has(.sm-cf--danger) > .auth-card { background: radial-gradient(120% 70% at 50% 0%, rgb(255 80 80 / .12), transparent 62%), #fff; }
:root[data-theme="light"] .sm-cf__text { color: #4a4a58; }
:root[data-theme="light"] .sm-cf__detail { background: rgb(0 0 0 / .045); color: #4a4a58; }

/* ---------- AI Compare card ---------- */
.aicmp { --a: var(--sm-accent, #f6c445); --b: #5b8cff; position: relative; margin: 14px 0 6px; padding: 14px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgb(124 92 255 / .16), rgb(91 140 255 / .06) 45%, transparent), var(--sm-glass-raised, rgb(255 255 255 / .04)); border: 1px solid rgb(140 120 255 / .28); }
.aicmp::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(140 110 255 / .32), transparent 65%); z-index: -1; animation: aicmp-float 7s ease-in-out infinite alternate; }
.aicmp__top { display: flex; align-items: center; gap: 12px; }
.aicmp__top b { display: block; font-weight: 850; font-size: 1rem; letter-spacing: -.01em; }
.aicmp__top small { display: block; color: var(--sm-muted, #a8a8b8); font-size: .78rem; margin-top: 2px; }
.aicmp__orb { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: conic-gradient(from 200deg, #7c5cff, #5b8cff, #22d3ee, #7c5cff); box-shadow: 0 6px 20px rgb(124 92 255 / .45); animation: aicmp-orb 6s linear infinite; }
.aicmp__orb svg { width: 22px; height: 22px; animation: aicmp-orb 6s linear infinite reverse; }
.aicmp__go { margin-top: 12px; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; font: inherit; font-weight: 850; color: #fff; cursor: pointer;
  background: linear-gradient(110deg, #7c5cff, #5b8cff 55%, #22d3ee); background-size: 200% 100%; box-shadow: 0 10px 26px rgb(110 90 255 / .38); animation: aicmp-sheen 4s ease-in-out infinite; }
.aicmp__go svg { width: 18px; height: 18px; }
.aicmp__go:active { transform: scale(.98); }
.aicmp__loading { margin-top: 12px; display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border-radius: 14px; background: rgb(255 255 255 / .04); text-align: center; }
.aicmp__loading small { color: var(--sm-muted, #a8a8b8); font-size: .76rem; }
.aicmp__scan { display: flex; gap: 6px; margin-bottom: 6px; }
.aicmp__scan i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #22d3ee); animation: aicmp-dot 1s ease-in-out infinite; }
.aicmp__scan i:nth-child(2) { animation-delay: .15s; } .aicmp__scan i:nth-child(3) { animation-delay: .3s; }
.aicmp__res { margin-top: 12px; animation: aicmp-in .45s cubic-bezier(.2, .9, .3, 1) both; }
.aicmp__crown { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--a) 14%, transparent); border: 1px solid color-mix(in srgb, var(--a) 35%, transparent); }
.aicmp__res.is-b .aicmp__crown { background: color-mix(in srgb, var(--b) 14%, transparent); border-color: color-mix(in srgb, var(--b) 38%, transparent); }
.aicmp__res.is-even .aicmp__crown { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
.aicmp__crown-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #111; background: var(--a); animation: aicmp-pop .6s .1s cubic-bezier(.2, 1.5, .3, 1) both; }
.aicmp__res.is-b .aicmp__crown-ic { background: var(--b); color: #fff; }
.aicmp__res.is-even .aicmp__crown-ic { background: rgb(255 255 255 / .14); color: inherit; }
.aicmp__crown-ic svg { width: 20px; height: 20px; }
.aicmp__crown > span:nth-child(2) { flex: 1; min-width: 0; }
.aicmp__crown small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sm-muted, #a8a8b8); font-weight: 800; }
.aicmp__crown b { display: block; font-size: 1.02rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aicmp__conf { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 99px; background: rgb(255 255 255 / .08); white-space: nowrap; }
.aicmp__conf.is-high { background: rgb(34 197 94 / .18); color: #4ade80; } .aicmp__conf.is-low { background: rgb(245 158 11 / .18); color: #fbbf24; }
.aicmp__head { margin: 12px 0 4px; font-size: 1.02rem; font-weight: 850; line-height: 1.3; }
.aicmp__verdict { margin: 0; color: var(--sm-muted, #c0c0cc); line-height: 1.5; font-size: .9rem; }
.aicmp__battle { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: rgb(124 92 255 / .12); font-size: .86rem; line-height: 1.45; }
.aicmp__battle svg { flex: 0 0 auto; width: 18px; height: 18px; color: #a78bfa; margin-top: 1px; }
.aicmp__battle b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: #a78bfa; }
.aicmp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.aicmp__cols > div { min-width: 0; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / .04); }
.aicmp__cols h5 { margin: 0 0 6px; font-size: .78rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aicmp__cols h5.is-a { color: var(--a); } .aicmp__cols h5.is-b { color: var(--b); }
.aicmp__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aicmp__list li { position: relative; padding-left: 14px; font-size: .8rem; line-height: 1.4; }
.aicmp__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }
.aicmp__list.is-b li::before { background: var(--b); }
.aicmp__none { margin: 0; font-size: .78rem; color: var(--sm-muted, #a8a8b8); }
.aicmp__tips { margin-top: 12px; display: grid; gap: 6px; }
.aicmp__tips h5 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--sm-muted, #a8a8b8); }
.aicmp__tips h5 svg { width: 16px; height: 16px; }
.aicmp__tips p { margin: 0; padding: 8px 10px; border-radius: 12px; font-size: .84rem; line-height: 1.4; background: rgb(255 255 255 / .04); border-left: 3px solid var(--a); }
.aicmp__tips p.is-b { border-left-color: var(--b); }
.aicmp__tips p b { display: block; font-size: .72rem; color: var(--sm-muted, #a8a8b8); }
.aicmp__foot { margin: 10px 0 0; font-size: .7rem; color: var(--sm-muted, #8a8a98); text-align: center; }
.aicmp__again { margin: 8px auto 0; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #a78bfa; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; padding: 6px 10px; }
.aicmp__again svg { width: 16px; height: 16px; }
.aicmp__err { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgb(239 68 68 / .12); color: #fca5a5; font-size: .85rem; }
.aicmp__err svg { width: 18px; height: 18px; flex: 0 0 auto; }
@keyframes aicmp-orb { to { transform: rotate(360deg); } }
@keyframes aicmp-float { to { transform: translate(-30px, 30px) scale(1.1); } }
@keyframes aicmp-sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aicmp-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes aicmp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aicmp-pop { from { transform: scale(.3) rotate(-20deg); } to { transform: none; } }
:root[data-theme="light"] .aicmp { background: linear-gradient(160deg, rgb(124 92 255 / .12), rgb(91 140 255 / .05) 45%, transparent), #fff; border-color: rgb(124 92 255 / .25); }
:root[data-theme="light"] .aicmp { --b: #2f5fe0; --a: #b07800; }
:root[data-theme="light"] .aicmp__crown-ic { color: #fff; }
:root[data-theme="light"] .aicmp__verdict { color: #45455a; }
:root[data-theme="light"] .aicmp__cols > div, :root[data-theme="light"] .aicmp__tips p, :root[data-theme="light"] .aicmp__loading { background: rgb(0 0 0 / .035); }
:root[data-theme="light"] .aicmp__battle b, :root[data-theme="light"] .aicmp__battle svg, :root[data-theme="light"] .aicmp__again { color: #6d4ae0; }
:root[data-theme="light"] .aicmp__conf.is-high { color: #15803d; } :root[data-theme="light"] .aicmp__conf.is-low { color: #b45309; }
:root[data-theme="light"] .aicmp__err { color: #b91c1c; }

/* ---------- AI coach chat v2.0 ---------- */
.sm-aichat__col { display: flex; flex-direction: column; min-width: 0; max-width: min(84%, 540px); }
.sm-aichat__col .sm-aichat__bubble { max-width: 100%; }
.sm-aichat__msg.is-own .sm-aichat__col { align-items: flex-end; }
.sm-aichat__h { display: block; margin: 6px 0 2px; font-weight: 850; font-size: 1.0em; }
.sm-aichat__ol { display: flex; gap: 8px; margin: 3px 0; }
.sm-aichat__ol i { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; font-style: normal; font-size: .72rem; font-weight: 900; color: #111; background: var(--sm-accent, #f6c445); margin-top: 1px; }
.sm-aichat__acts { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 4px; opacity: .78; }
.sm-aichat__acts button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--sm-muted, #a8a8b8); font: inherit; font-size: .72rem; font-weight: 700; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.sm-aichat__acts button:active { background: rgb(255 255 255 / .08); }
.sm-aichat__acts svg { width: 14px; height: 14px; }
.sm-aichat__acts small { font-size: .68rem; color: var(--sm-muted, #8a8a98); }
.sm-aichat__styles { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.sm-aichat__styles::-webkit-scrollbar { display: none; }
.sm-aichat__style { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); color: var(--sm-muted, #b8b8c4); font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.sm-aichat__style.is-on { color: #111; background: linear-gradient(135deg, var(--sm-accent, #f6c445), color-mix(in srgb, var(--sm-accent, #f6c445) 70%, #ff8a00)); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--sm-accent, #f6c445) 30%, transparent); }
.sm-aichat__style.is-ideas { margin-left: auto; }
.sm-aichat__style.is-ideas.is-on { color: #fff; background: linear-gradient(135deg, #7c5cff, #5b8cff); }
.sm-aichat__style svg { width: 14px; height: 14px; }
.sm-aichat__style:active { transform: scale(.95); }
.sm-aichat__chips.is-follow { animation: aicmp-in .35s ease both; }
.sm-aichat__chips.is-follow .sm-chip { border-style: dashed; }
:root[data-theme="light"] .sm-aichat__style { border-color: rgb(0 0 0 / .1); background: rgb(0 0 0 / .03); color: #4a4a58; }
:root[data-theme="light"] .sm-aichat__style.is-on { color: #111; background: linear-gradient(135deg, var(--sm-accent, #f6c445), color-mix(in srgb, var(--sm-accent, #f6c445) 70%, #ff8a00)); border-color: transparent; }
:root[data-theme="light"] .sm-aichat__style.is-ideas.is-on { color: #fff; background: linear-gradient(135deg, #7c5cff, #5b8cff); }
:root[data-theme="light"] .sm-aichat__acts button { color: #5a5a6a; }
.sm-aichat__msg:not(.is-own):has(.sm-aichat__acts) { align-items: flex-start; }
.sm-aichat__msg:not(.is-own):has(.sm-aichat__acts) .sm-aichat__av { margin-top: 4px; }
.sm-aichat__h { color: var(--sm-accent, #f6c445); font-size: 1.04em; letter-spacing: -.01em; }
.sm-aichat__bubble b { color: var(--sm-accent, #f6c445); font-weight: 800; }
.sm-aichat__msg.is-own .sm-aichat__bubble b { color: inherit; }
:root[data-theme="light"] .sm-aichat__style.is-on:not(.is-ideas) { color: #fff; }
:root[data-theme="light"] .sm-aichat__ol i { color: #fff; }

/* ---------- Super Admin Command Center ---------- */
.admc { display: grid; gap: 14px; }
.admc-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 24px; border: 1px solid rgb(255 255 255 / .07);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--admc-tone) 26%, transparent), transparent 60%), linear-gradient(160deg, rgb(255 255 255 / .05), rgb(255 255 255 / .01)), var(--sm-surface, #141418); --admc-tone: #34d399; animation: admc-in .45s cubic-bezier(.2, 1, .3, 1) both; }
.admc-hero--warn { --admc-tone: #fbbf24; } .admc-hero--bad { --admc-tone: #f87171; } .admc-hero--info { --admc-tone: #60a5fa; }
.admc-hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--admc-tone) 22%, transparent), transparent 70%); pointer-events: none; }
.admc-hero__txt { min-width: 0; flex: 1; } .admc-hero__txt .eyebrow { margin: 0; letter-spacing: .14em; font-size: .68rem; opacity: .75; }
.admc-hero__txt h3 { margin: 2px 0 4px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; color: var(--admc-tone); }
.admc-hero__txt p { margin: 0; font-size: .86rem; color: var(--sm-muted, #b8b8c4); line-height: 1.4; }
.admc-hero__meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .admc-hero__meta small { color: var(--sm-muted, #9a9aa8); font-size: .74rem; }
.admc-ring { position: relative; flex: 0 0 auto; width: 84px; height: 84px; display: grid; place-items: center; }
.admc-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .admc-ring circle { fill: none; stroke-width: 8; }
.admc-ring__bg { stroke: rgb(255 255 255 / .08); } .admc-ring__fg { stroke: var(--admc-tone); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, 1, .3, 1); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--admc-tone) 60%, transparent)); animation: admc-ring 1.1s cubic-bezier(.2, 1, .3, 1) both; }
.admc-ring b { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.admc-live { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .05); color: inherit; font-weight: 800; font-size: .76rem; }
.admc-live i { width: 8px; height: 8px; border-radius: 50%; background: #9a9aa8; } .admc-live.on i { background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: admc-pulse 1.8s infinite; }
.admc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sm-accent) 35%, transparent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); color: inherit; font-weight: 800; font-size: .78rem; }
.admc-chip svg { width: 16px; height: 16px; } .admc-chip:disabled { opacity: .55; } .admc-chip:active { transform: scale(.96); }
.admc-banner { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgb(251 191 36 / .14); border: 1px solid rgb(251 191 36 / .35); color: #fbbf24; font-weight: 800; font-size: .86rem; }
.admc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .admc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admc-kpi { position: relative; display: grid; gap: 1px; padding: 14px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .06); background: linear-gradient(160deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015)); animation: admc-in .45s calc(var(--i, 0) * 40ms) cubic-bezier(.2, 1, .3, 1) both; }
.admc-kpi > svg { width: 20px; height: 20px; color: var(--sm-accent); margin-bottom: 4px; }
.admc-kpi b { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.admc-kpi span { font-weight: 800; font-size: .8rem; } .admc-kpi small { color: var(--sm-muted, #9a9aa8); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admc-kpi.is-live > svg { color: #34d399; } .admc-kpi.is-bad { border-color: rgb(248 113 113 / .35); } .admc-kpi.is-bad > svg, .admc-kpi.is-bad b { color: #f87171; }
.admc-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .admc-quick::-webkit-scrollbar { display: none; }
.admc-quick button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .04); color: inherit; font-weight: 800; font-size: .82rem; }
.admc-quick button svg { width: 18px; height: 18px; color: var(--sm-accent); } .admc-quick button:active { transform: scale(.97); } .admc-quick button:disabled { opacity: .6; }
.admc-grid { display: grid; gap: 14px; } @media (min-width: 900px) { .admc-grid { grid-template-columns: 1fr 1fr; } }
.admc-card { padding: 16px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .06); background: linear-gradient(170deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012)); min-width: 0; animation: admc-in .5s cubic-bezier(.2, 1, .3, 1) both; }
.admc-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.admc-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .98rem; font-weight: 850; } .admc-card h3 svg { width: 18px; height: 18px; color: var(--sm-accent); }
.admc-card h4 { margin: 12px 0 6px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sm-muted, #9a9aa8); }
.admc-legend { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--sm-muted, #9a9aa8); } .admc-legend i { width: 8px; height: 8px; border-radius: 3px; margin-left: 4px; }
.admc-legend i.r, .admc-bar i.r { background: var(--sm-accent); } .admc-legend i.s, .admc-bar i.s { background: #60a5fa; } .admc-legend i.a, .admc-bar i.a { background: #a78bfa; }
.admc-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.admc-bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 4px; background: rgb(255 255 255 / .035); overflow: hidden; }
.admc-bar i { display: block; min-height: 0; border-radius: 2px; transform-origin: bottom; animation: admc-grow .7s cubic-bezier(.2, 1, .3, 1) both; }
.admc-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; margin-bottom: 6px; border-radius: 12px; border: 0; background: rgb(255 255 255 / .04); color: inherit; text-align: left; font-weight: 700; font-size: .86rem; }
.admc-row em { font-style: normal; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgb(251 191 36 / .18); color: #fbbf24; font-weight: 900; font-size: .76rem; }
.admc-row span { flex: 1; } .admc-row svg { width: 18px; height: 18px; opacity: .5; }
.admc-calm { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: #34d399; font-weight: 800; font-size: .9rem; } .admc-calm svg { width: 20px; height: 20px; }
.admc-err { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; margin-bottom: 4px; border: 0; border-radius: 10px; background: rgb(248 113 113 / .08); color: inherit; text-align: left; }
.admc-err code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; } .admc-err small { color: #f87171; font-weight: 900; }
.admc-brief { background: radial-gradient(120% 90% at 100% 0%, rgb(167 139 250 / .16), transparent 60%), linear-gradient(170deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012)); border-color: rgb(167 139 250 / .22); }
.admc-brief ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.admc-brief li { position: relative; padding: 9px 12px 9px 30px; border-radius: 12px; background: rgb(255 255 255 / .04); font-size: .88rem; line-height: 1.45; animation: admc-in .4s calc(var(--i, 0) * 70ms) cubic-bezier(.2, 1, .3, 1) both; }
.admc-brief li::before { content: ""; position: absolute; left: 12px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, var(--sm-accent)); }
.admc-brief li:first-child { font-weight: 800; }
.admc-brief__hint, .admc-brief__err { margin: 2px 0; color: var(--sm-muted, #9a9aa8); font-size: .86rem; line-height: 1.45; } .admc-brief__err { color: #f87171; }
.admc-brief__load { display: flex; gap: 6px; padding: 10px 2px; } .admc-brief__load span { width: 9px; height: 9px; border-radius: 50%; background: #a78bfa; animation: admc-dot 1s infinite ease-in-out; }
.admc-brief__load span:nth-child(2) { animation-delay: .15s; } .admc-brief__load span:nth-child(3) { animation-delay: .3s; }
.admc-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .1); background: rgb(0 0 0 / .2); }
.admc-search:focus-within { border-color: var(--sm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-accent) 22%, transparent); }
.admc-search svg { width: 18px; height: 18px; opacity: .6; } .admc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: .92rem; }
.admc-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; margin-bottom: 4px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .035); color: inherit; text-align: left; }
.admc-hit > svg:first-child { width: 20px; height: 20px; color: var(--sm-accent); } .admc-hit > svg:last-child { width: 16px; height: 16px; opacity: .45; }
.admc-hit span { flex: 1; min-width: 0; display: grid; } .admc-hit b, .admc-hit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .admc-hit small { color: var(--sm-muted, #9a9aa8); font-size: .74rem; }
.admc-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.admc-top button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .035); color: inherit; text-align: left; }
.admc-top em { font-style: normal; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; background: rgb(255 255 255 / .07); }
.admc-top li:first-child em { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1a00; } .admc-top li:nth-child(2) em { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #111; } .admc-top li:nth-child(3) em { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }
.admc-top span { flex: 1; min-width: 0; display: grid; } .admc-top span small { color: var(--sm-muted, #9a9aa8); font-size: .74rem; }
.admc-top strong { display: grid; text-align: right; font-size: 1.1rem; font-weight: 900; color: var(--sm-accent); } .admc-top strong small { font-size: .62rem; font-weight: 700; color: var(--sm-muted, #9a9aa8); text-transform: uppercase; letter-spacing: .08em; }
.admc-feed ul { margin: 0; padding: 0; list-style: none; display: grid; max-height: 380px; overflow: auto; }
.admc-feed li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgb(255 255 255 / .05); } .admc-feed li:last-child { border: 0; }
.admc-feed li > svg { flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 12%, transparent); }
.admc-feed li span { flex: 1; min-width: 0; display: grid; } .admc-feed li b, .admc-feed li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .admc-feed li b { font-size: .86rem; } .admc-feed li small { color: var(--sm-muted, #9a9aa8); font-size: .72rem; text-transform: capitalize; }
.admc-feed time { flex: 0 0 auto; font-size: .7rem; color: var(--sm-muted, #9a9aa8); }
@keyframes admc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes admc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes admc-ring { from { stroke-dashoffset: 213.6; } }
@keyframes admc-pulse { 0% { box-shadow: 0 0 0 0 rgb(52 211 153 / .55); } 70% { box-shadow: 0 0 0 8px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
@keyframes admc-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }
:root[data-theme="light"] .admc-hero { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--admc-tone) 22%, transparent), transparent 60%), #fff; border-color: rgb(0 0 0 / .07); box-shadow: 0 10px 30px rgb(20 20 40 / .07); }
:root[data-theme="light"] .admc-hero--ok { --admc-tone: #059669; } :root[data-theme="light"] .admc-hero--warn { --admc-tone: #b45309; } :root[data-theme="light"] .admc-hero--bad { --admc-tone: #dc2626; }
:root[data-theme="light"] .admc-hero__txt p, :root[data-theme="light"] .admc-kpi small, :root[data-theme="light"] .admc-hero__meta small { color: #55556a; }
:root[data-theme="light"] .admc-ring__bg { stroke: rgb(0 0 0 / .08); }
:root[data-theme="light"] .admc-kpi, :root[data-theme="light"] .admc-card { background: #fff; border-color: rgb(0 0 0 / .07); box-shadow: 0 6px 20px rgb(20 20 40 / .05); }
:root[data-theme="light"] .admc-brief { background: radial-gradient(120% 90% at 100% 0%, rgb(124 92 255 / .1), transparent 60%), #fff; border-color: rgb(124 92 255 / .2); }
:root[data-theme="light"] .admc-quick button, :root[data-theme="light"] .admc-live { background: #fff; border-color: rgb(0 0 0 / .08); }
:root[data-theme="light"] .admc-row, :root[data-theme="light"] .admc-hit, :root[data-theme="light"] .admc-top button, :root[data-theme="light"] .admc-brief li { background: rgb(0 0 0 / .035); }
:root[data-theme="light"] .admc-top li:nth-child(n+4) em { background: rgb(0 0 0 / .07); } :root[data-theme="light"] .admc-bar { background: rgb(0 0 0 / .04); }
:root[data-theme="light"] .admc-search { background: #fff; border-color: rgb(0 0 0 / .12); } :root[data-theme="light"] .admc-feed li { border-color: rgb(0 0 0 / .06); }
:root[data-theme="light"] .admc-row em { color: #92400e; background: rgb(251 191 36 / .25); } :root[data-theme="light"] .admc-banner { color: #92400e; }
:root[data-theme="light"] .admc-calm { color: #047857; }

/* ---------- Reduced motion for every v2.0 animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .sm-cf-modal > .auth-card, .sm-cf__icon, .admc-hero, .admc-kpi, .admc-card, .admc-bar i, .admc-ring__fg, .admc-brief li, .admc-brief__load span, .admc-live.on i,
  [class^="aicmp"], [class*=" aicmp"], [class^="aichat"], [class*=" aichat"] { animation: none !important; transition: none !important; }
}
:root.sm-reduce-motion .sm-cf-modal > .auth-card, :root.sm-reduce-motion .sm-cf__icon, :root.sm-reduce-motion .admc-hero, :root.sm-reduce-motion .admc-kpi, :root.sm-reduce-motion .admc-card,
:root.sm-reduce-motion .admc-bar i, :root.sm-reduce-motion .admc-ring__fg, :root.sm-reduce-motion .admc-brief li, :root.sm-reduce-motion .admc-live.on i,
:root.sm-reduce-motion [class^="aicmp"], :root.sm-reduce-motion [class*=" aicmp"], :root.sm-reduce-motion [class^="aichat"], :root.sm-reduce-motion [class*=" aichat"] { animation: none !important; transition: none !important; }
/* v2.0.0: "ScrimMate AI replied" toast when an answer arrives after the chat was closed. */
.sm-aitoast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); z-index: 90; transform: translateX(-50%); width: min(420px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; color: var(--sm-text, #f4f4f8);
  background: linear-gradient(160deg, rgb(124 92 255 / .22), rgb(91 140 255 / .08)), var(--sm-surface, #141418); border: 1px solid rgb(140 120 255 / .35);
  box-shadow: 0 16px 40px rgb(0 0 0 / .4); animation: sm-aitoast-in .32s cubic-bezier(.2, 1.2, .3, 1) both; }
.sm-aitoast__av { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #fff; background: linear-gradient(140deg, #7c5cff, #5b8cff); }
.sm-aitoast__av svg { width: 20px; height: 20px; }
.sm-aitoast__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-aitoast__txt b { font-size: .88rem; }
.sm-aitoast__txt small { font-size: .76rem; color: var(--sm-muted, #b8b8c4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="light"] .sm-aitoast { color: #16161c; background: linear-gradient(160deg, rgb(124 92 255 / .14), rgb(91 140 255 / .05)), #fff; box-shadow: 0 16px 40px rgb(20 20 40 / .2); }
:root[data-theme="light"] .sm-aitoast__txt small { color: #55556a; }
@keyframes sm-aitoast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .sm-aitoast { animation: none; } }
:root.sm-reduce-motion .sm-aitoast { animation: none; }
