:root {
  --navy: #061a33;
  --navy-2: #0b2948;
  --navy-3: #12395e;
  --ice: #f3f7f8;
  --white: #ffffff;
  --green: #00c7f2;
  --green-2: #54ed9b;
  --silver: #b9c6cf;
  --ink: #102237;
  --muted: #617184;
  --red: #d84949;
  --amber: #f3a934;
  --blue: #3b8bd4;
  --line: #dbe4e9;
  --border: #dbe4e9;
  --surface: #ffffff;
  --surface-2: #f1f5f6;
  --shadow: 0 12px 35px rgba(6, 26, 51, 0.12);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ice); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ice);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 70% 20%, rgba(139,197,63,.2), transparent 26%),
    linear-gradient(145deg, #061a33, #0a2d4d 60%, #0f3c61);
  color: #fff;
  transition: opacity .35s ease;
}
.splash.loaded { opacity: 0; pointer-events: none; }
.splash strong { display:block; font-size: 25px; letter-spacing: .12em; }
.splash small { display:block; margin-top: 5px; color: #c8d4dc; letter-spacing: .08em; }
.splash-icon { width:76px; height:76px; border-radius:20px; box-shadow:0 12px 30px rgba(0,0,0,.3); }

.app-shell { min-height: 100vh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display:flex; align-items:center; justify-content:space-between;
  min-height: 68px; padding: 10px 16px;
  color: #fff; background: rgba(6,26,51,.96); backdrop-filter: blur(18px);
  border-bottom: 3px solid var(--green);
}
.brand-button { display:flex; align-items:center; gap:10px; border:0; color:#fff; background:transparent; text-align:left; padding:0; }
.brand-button b { display:block; letter-spacing:.11em; font-size:14px; }
.brand-button small { display:block; color:#b8c7d1; font-size:9px; letter-spacing:.16em; margin-top:2px; }
.mini-mark { width:40px; height:40px; display:block; border-radius:11px; object-fit:cover; box-shadow:0 3px 10px rgba(0,0,0,.25); }
.top-actions { display:flex; gap:8px; }
.icon-button,.avatar-button { width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.16); color:#fff; background:rgba(255,255,255,.08); font-weight:900; }
.install-button { color:var(--on-highlight, var(--navy)); background:var(--green); }
.back-site { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.16); color:#fff; background:rgba(255,255,255,.08); text-decoration:none; font-weight:900; }
.sync-state { min-width:64px; height:38px; display:flex; align-items:center; justify-content:center; gap:6px; padding:0 10px; border-radius:999px; border:1px solid rgba(255,255,255,.16); color:#fff; background:rgba(255,255,255,.08); font-size:10px; font-weight:950; letter-spacing:.06em; }
.sync-state span { width:7px; height:7px; border-radius:50%; background:#f3a934; box-shadow:0 0 0 3px rgba(243,169,52,.14); }
.sync-state.cloud span { background:#54ed9b; box-shadow:0 0 0 3px rgba(84,237,155,.14); }
.sync-state.syncing span { background:#00c7f2; animation:syncPulse 1s infinite; }
@keyframes syncPulse { 50% { opacity:.35; } }
.access-callout { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:15px 17px; border:1px solid #bfe8f1; border-radius:17px; background:linear-gradient(120deg,#e6fafe,#f5fcfd); box-shadow:0 7px 22px rgba(6,26,51,.045); }
.access-callout span,.access-callout strong,.access-callout small { display:block; }
.access-callout span { color:#168098; font-size:8px; font-weight:1000; letter-spacing:.11em; }
.access-callout strong { margin-top:5px; color:#0b2a45; font-size:13px; }
.access-callout small { margin-top:3px; color:#637887; font-size:10px; }
.account-plan { padding:18px; border-radius:18px; color:#fff; background:linear-gradient(135deg,#061a33,#0b3e58); }
.account-plan span,.account-plan strong,.account-plan small { display:block; }
.account-plan span { color:#6bdff6; font-size:9px; font-weight:1000; letter-spacing:.12em; text-transform:uppercase; }
.account-plan strong { margin-top:8px; font-size:21px; }
.account-plan small { margin-top:9px; color:#c0d0da; line-height:1.5; }
.account-affiliation { margin-top:10px; padding:14px 16px; border:1px solid var(--line); border-radius:15px; background:#f4f7f8; }
.account-affiliation span,.account-affiliation strong,.account-affiliation small { display:block; }
.account-affiliation span { color:#5b8f28; font-size:9px; font-weight:1000; letter-spacing:.1em; text-transform:uppercase; }
.account-affiliation strong { margin-top:5px; color:var(--ink); font-size:15px; }
.account-affiliation small { margin-top:4px; color:var(--muted); font-size:11px; text-transform:capitalize; }
.splash.account-gate { overflow:auto; padding:28px 16px; }
.gate-card { width:min(460px,100%); padding:30px; border:1px solid rgba(255,255,255,.14); border-radius:25px; background:rgba(3,19,36,.78); box-shadow:0 24px 60px rgba(0,0,0,.25); text-align:center; backdrop-filter:blur(16px); }
.gate-card > img { width:76px; height:76px; border-radius:20px; box-shadow:0 12px 25px rgba(0,0,0,.24); }
.gate-card .eyebrow { justify-content:center; margin-top:18px; color:#68ddf5; }
.gate-card h1 { color:#fff; font-size:32px; }
.gate-card p:not(.eyebrow) { margin:13px 0 22px; color:#bacbd6; line-height:1.6; }
.gate-card .button { width:100%; }
.gate-back { display:block; margin-top:15px; color:#aabdc9; font-size:11px; font-weight:800; text-decoration:none; }
.onboarding-card { text-align:left; }
.onboarding-card > img { display:block; margin:0 auto; }
.onboarding-card .eyebrow,.onboarding-card h1,.onboarding-card > p { text-align:center; }
.onboarding-card .field span { color:#dce8ee; }
.onboarding-card .field small { display:block; margin-top:6px; color:#9fb3c0; font-size:10px; }
.onboarding-card form .button { width:100%; margin-top:17px; }
.onboarding-card .admin-form-message { min-height:18px; margin:9px 0 0; color:#ffb5b5; font-size:11px; text-align:center; }
.main { width:min(100%, 1180px); margin:0 auto; padding: 20px 16px 30px; }

.bottom-nav {
  position:fixed; z-index:40; left:0; right:0; bottom:0;
  display:grid; grid-template-columns:repeat(6,1fr);
  padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  background:color-mix(in srgb,var(--surface) 97%,transparent); border-top:1px solid var(--line); box-shadow:0 -12px 30px rgba(6,26,51,.08); backdrop-filter:blur(18px);
}
.bottom-nav button { position:relative; border:0; background:transparent; color:#768494; padding:4px 2px; border-radius:14px; }
.bottom-nav span { display:block; height:24px; line-height:24px; font-size:22px; font-weight:900; }
.bottom-nav small { display:block; font-size:10px; font-weight:800; }
.bottom-nav button.active { color:var(--navy); background:#edf4e4; }
.bottom-nav button.active span { color:#5f9f22; }
.bottom-nav i { position:absolute; top:0; right:20%; min-width:17px; height:17px; padding:0 4px; border-radius:12px; background:var(--red); color:white; font-size:10px; line-height:17px; font-style:normal; }

.eyebrow { margin:0 0 7px; color:#5b8f28; font-size:11px; font-weight:1000; letter-spacing:.13em; text-transform:uppercase; }
h1 { margin:0; font-size:clamp(28px,7vw,46px); line-height:1.05; letter-spacing:-.035em; }
h2 { margin:0; font-size:22px; letter-spacing:-.02em; }
h3 { margin:0; font-size:16px; }
.subhead { color:var(--muted); margin:8px 0 0; line-height:1.5; font-size:14px; }
.page-heading { display:flex; gap:12px; align-items:flex-end; justify-content:space-between; margin-bottom:18px; }
.page-heading .actions { flex:none; }

.hero {
  position:relative; overflow:hidden; min-height:220px; padding:24px;
  border-radius:26px; color:#fff; background:linear-gradient(140deg,var(--navy),var(--navy-2) 67%,#124f49); box-shadow:var(--shadow);
}
.hero::after { content:"FI"; position:absolute; right:-14px; bottom:-45px; color:rgba(255,255,255,.055); font-size:180px; font-weight:1000; font-style:italic; letter-spacing:-.12em; }
.hero .eyebrow { color:var(--green-2); }
.hero p { position:relative; z-index:1; max-width:600px; color:#d3dce3; line-height:1.5; }
.hero-actions { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.cap-strip { position:relative; z-index:1; margin-top:25px; max-width:560px; }
.cap-label { display:flex; justify-content:space-between; font-size:12px; font-weight:800; margin-bottom:7px; }
.progress { height:10px; overflow:hidden; border-radius:10px; background:rgba(255,255,255,.13); }
.progress > span { display:block; width:0; height:100%; border-radius:10px; background:linear-gradient(90deg,var(--green),#c2e38e); transition:width .3s; }
.progress.danger > span { background:linear-gradient(90deg,var(--amber),var(--red)); }

.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:10px 15px; border:0; border-radius:13px; background:var(--navy); color:#fff; font-weight:850; text-decoration:none; }
.button.green { background:var(--green); color:var(--on-highlight, var(--navy)); }
.button.light { background:#fff; color:var(--navy); }
.button.ghost { background:transparent; color:var(--ink); border:1px solid var(--line); }
.button.small { min-height:34px; padding:7px 11px; font-size:12px; }
.button.danger { background:#fff0f0; color:#b12525; border:1px solid #f1c3c3; }
.button:disabled { opacity:.45; cursor:not-allowed; }

.kpi-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; margin:15px 0; }
.kpi-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:15px; box-shadow:0 5px 18px rgba(6,26,51,.05); }
.kpi-card small { display:block; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.kpi-card strong { display:block; margin-top:5px; color:var(--ink); font-size:24px; line-height:1; }
.kpi-card em { display:block; margin-top:7px; color:#6d7c8c; font-size:11px; font-style:normal; }
.section-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 6px 24px rgba(6,26,51,.055); padding:17px; margin-top:14px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.section-title a,.text-button { padding:0; border:0; background:transparent; color:#4f8d21; font-size:12px; font-weight:900; text-decoration:none; }

.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.quick-card { min-height:115px; padding:16px; border:0; border-radius:18px; text-align:left; background:#eff5f7; color:var(--navy); }
.quick-card:nth-child(1) { background:#e9f3dc; }
.quick-card:nth-child(2) { background:#e8f0f8; }
.quick-card.trade { grid-column:1/-1; min-height:96px; color:#fff; background:linear-gradient(118deg,var(--navy),#0a445b 70%,#0a6674); }
.quick-card.trade small { color:#bbd3dc; }
.quick-card.trade span { color:var(--green-2); }
.quick-card span { display:block; font-size:22px; }
.quick-card strong { display:block; margin-top:15px; }
.quick-card small { display:block; margin-top:4px; color:var(--muted); }

.filter-panel { position:sticky; top:68px; z-index:20; background:rgba(243,247,248,.96); backdrop-filter:blur(15px); padding:10px 0 12px; }
.segmented { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; background:#dfe8ec; padding:4px; border-radius:14px; }
.segmented.scope-tabs{grid-template-columns:repeat(2,1fr);margin-bottom:8px}
.segmented.tier-tabs{grid-template-columns:repeat(4,1fr)}
.segmented button { border:0; border-radius:11px; padding:9px 6px; color:#637385; background:transparent; font-size:12px; font-weight:900; }
.segmented button.active { background:var(--surface); color:var(--ink); box-shadow:0 3px 10px rgba(6,26,51,.1); }
.chips { display:flex; gap:7px; overflow:auto; padding:10px 1px 2px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:none; border:1px solid var(--line); border-radius:999px; padding:8px 13px; color:var(--muted); background:var(--surface); font-size:12px; font-weight:850; }
.chip.active { color:var(--on-highlight, var(--navy)); background:var(--green); border-color:var(--green); }
.search-row { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:10px; }
.search-input,.field input,.field select,.field textarea { width:100%; min-height:43px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface); outline:none; }
.search-input:focus,.field input:focus,.field select:focus,.field textarea:focus { border-color:#7caf3d; box-shadow:0 0 0 3px rgba(139,197,63,.18); }

.result-meta { display:flex; justify-content:space-between; margin:6px 2px 10px; color:var(--muted); font-size:11px; font-weight:800; }
.card-list { display:grid; gap:14px; }
.player-card { display:grid; grid-template-columns:54px minmax(0,1fr) 44px; gap:15px; align-items:start; padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:22px; box-shadow:0 6px 20px rgba(6,26,51,.055); }
.rank-badge { width:54px; height:54px; display:grid; place-items:center; margin-top:10px; border-radius:16px; background:#edf3f5; color:var(--navy); font-size:18px; font-weight:1000; }
.rank-badge.core { background:#e8f4da; color:#477d19; }
.player-main { min-width:0; }
.player-name { display:flex; align-items:center; gap:8px; min-width:0; }
.player-name > strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:17px; line-height:1.25; }
.icegrade-chip { flex:none; display:flex; align-items:center; gap:7px; margin-left:auto; padding:5px 6px 5px 9px; border:1px solid #00c7f2; border-radius:11px; color:#fff; background:linear-gradient(135deg,#062847,#075f77); box-shadow:0 5px 13px rgba(0,115,143,.2); }
.icegrade-chip span { font-size:8px; font-weight:1000; letter-spacing:.1em; }
.icegrade-chip strong { min-width:30px; padding:5px 6px; border-radius:7px; color:var(--on-highlight,var(--navy)); background:var(--green); font-size:15px; line-height:1; text-align:center; }
.position-pill { flex:none; min-width:30px; padding:4px 7px; border-radius:8px; color:#fff; background:var(--navy-3); font-size:10px; font-weight:1000; text-align:center; }
.player-meta { margin-top:7px; color:var(--muted); font-size:12px; line-height:1.45; white-space:normal; }
.confidence-tag { display:inline-flex; margin-left:4px; padding:2px 5px; border-radius:6px; color:#506271; background:#edf2f4; font-size:8px; font-weight:900; text-transform:uppercase; }
.confidence-tag.high { color:#246036; background:#e2f4e7; }
.confidence-tag.low { color:#895d16; background:#fff1d8; }
.player-stat { display:flex; flex-wrap:wrap; gap:7px 14px; margin-top:10px; font-size:12px; font-weight:850; }
.player-stat b { color:#568f25; }
.pulse-tier-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:12px; }
.pulse-summary { display:block; margin-top:5px; color:var(--muted); font-size:10px; font-weight:800; }
.pulse-rule-note { margin:0 0 13px; padding:10px 12px; border:1px solid #cbdde8; border-radius:12px; color:#466172; background:#edf6fa; font-size:11px; line-height:1.45; }
.pulse-rule-note.lower { border-color:#cfe1bd; color:#48682c; background:#f0f8e9; }
.pulse-eligibility { display:inline-flex; align-items:center; width:max-content; padding:4px 7px; border-radius:7px; font-size:8px; font-weight:1000; letter-spacing:.05em; white-space:nowrap; }
.pulse-eligibility.prospect { flex:none; margin-left:auto; color:#17603d; background:#dff6e9; }
.pulse-eligibility.veteran { margin-top:8px; color:#264f88; background:#e7eef9; }
.prospect-rank { color:#17603d; background:#dff6e9; }
.pulse-source-line { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; align-items:start; margin-top:10px; color:var(--muted); font-size:12px; line-height:1.4; }
.pulse-source-line b { padding:4px 7px; border-radius:7px; color:#17603d; background:#dff6e9; font-size:10px; letter-spacing:.04em; white-space:nowrap; }
.prospect-link { display:grid; place-items:center; text-decoration:none; }
.drafts-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;margin-top:10px;font-size:12px;line-height:1.4;color:var(--muted)}
.drafts-line b{padding:4px 7px;border-radius:7px;background:#e7eef9;color:#264f88;font-size:10px;letter-spacing:.04em;white-space:nowrap}
.drafts-line.matched strong{color:#264f88}.drafts-line.unmatched span{color:#8b6b32}
.status-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.status-control span{font-size:11px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.status-control select{width:min(155px,100%);min-height:39px;border:1px solid var(--line);border-radius:11px;padding:8px 30px 8px 10px;background:var(--surface-2);color:var(--ink);font-size:12px;font-weight:900}
.status-priority{background:#e6f7ec!important;color:#17603d!important}.status-avoid,.status-lost{background:#feecea!important;color:#8a2424!important}.status-active-bid,.status-won{background:#e7eef9!important;color:#264f88!important}
.board-filter-row{display:grid;grid-template-columns:minmax(135px,.75fr) minmax(135px,.75fr) 1fr 1fr;gap:8px;margin-top:9px;align-items:end}
.board-filter-row>label>span{display:block;margin:0 0 4px 2px;font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase}
.board-filter-row .ea-toggle>span{display:inline;margin:0 0 0 auto;font-size:inherit;text-transform:none}
.board-filter-row .ea-toggle{margin-top:0}
.drafts-profile{margin-top:14px}.source-link{margin:10px 0 0;text-align:right;font-size:12px;font-weight:800}.source-link a{color:#264f88}
.player-actions { display:flex; flex-direction:column; gap:8px; }
.track-button { width:44px; height:44px; border:0; border-radius:13px; background:#edf4e4; color:#4d861e; font-size:21px; font-weight:900; }
.track-button.tracked { color:#fff; background:#5e9729; }
.detail-button { width:44px; height:36px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--ink); font-size:18px; }

.empty { padding:34px 20px; text-align:center; color:var(--muted); background:var(--surface); border:1px dashed var(--line); border-radius:18px; }
.empty strong { display:block; color:var(--ink); font-size:16px; margin-bottom:5px; }

.war-card { padding:15px; background:var(--surface); border:1px solid var(--line); border-left:5px solid var(--blue); border-radius:17px; box-shadow:0 4px 16px rgba(6,26,51,.04); }
.war-card.stop { border-left-color:var(--red); }
.war-card.safe { border-left-color:var(--green); }
.war-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.war-top small { display:block; color:var(--muted); margin-top:4px; }
.decision { flex:none; padding:5px 9px; border-radius:999px; font-size:10px; font-weight:1000; }
.decision.safe { background:#e7f5db; color:#437618; }
.decision.stop { background:#fde4e4; color:#ae2828; }
.bid-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:13px; }
.bid-metric { padding:10px; border-radius:12px; background:#f1f5f6; }
.bid-metric small { display:block; color:var(--muted); font-size:9px; font-weight:900; text-transform:uppercase; }
.bid-metric strong { display:block; margin-top:4px; font-size:14px; }
.countdown { color:#386f14 !important; }
.war-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }

.cap-dashboard { display:grid; gap:10px; grid-template-columns:1.3fr 1fr 1fr; padding:15px; color:#fff; background:linear-gradient(135deg,var(--navy),var(--navy-2)); border-radius:19px; }
.cap-dashboard small { display:block; color:#b8c7d1; font-size:9px; font-weight:900; text-transform:uppercase; }
.cap-dashboard strong { display:block; margin-top:5px; font-size:18px; }
.cap-dashboard .wide { grid-column:1/-1; }
.roster-section { margin-top:16px; }
.roster-section-title { display:flex; align-items:center; gap:9px; color:var(--ink); margin-bottom:8px; }
.roster-section-title i { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:#e7efda; color:#50851f; font-style:normal; font-size:11px; font-weight:1000; }
.roster-slot { display:grid; grid-template-columns:44px 1fr auto; gap:10px; align-items:center; min-height:64px; padding:10px 12px; border-bottom:1px solid var(--line); background:var(--surface); }
.roster-slot:first-of-type { border-radius:15px 15px 0 0; }
.roster-slot:last-of-type { border-radius:0 0 15px 15px; border-bottom:0; }
.role { font-size:11px; font-weight:1000; color:#536579; }
.slot-player strong { display:block; font-size:13px; }
.slot-player small { display:block; margin-top:3px; color:var(--muted); }
.slot-add { width:34px; height:34px; border-radius:11px; border:1px solid var(--line); background:#f6f9fa; color:#517f29; font-size:20px; }

.alert { padding:12px 14px; border-radius:13px; margin-top:10px; font-size:12px; line-height:1.45; }
.alert.good { background:#e8f5dd; color:#3e6d18; }
.alert.warn { background:#fff2dd; color:#8b5a0e; }
.alert.bad { background:#fde8e8; color:#982828; }
.rule-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.rule { padding:13px; border-radius:14px; background:#eff4f6; }
.rule strong { display:block; color:var(--ink); font-size:17px; }
.rule small { color:var(--muted); }
.menu-list { display:grid; gap:8px; }
.menu-item { display:flex; align-items:center; justify-content:space-between; width:100%; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); font-weight:800; text-align:left; }
.menu-item small { display:block; margin-top:3px; color:var(--muted); font-weight:500; }

.modal-backdrop { position:fixed; inset:0; z-index:80; display:flex; align-items:flex-end; justify-content:center; padding-top:30px; background:rgba(2,14,27,.62); backdrop-filter:blur(4px); }
.modal { width:min(100%,680px); max-height:92vh; overflow:auto; padding:18px 18px calc(20px + env(safe-area-inset-bottom)); border-radius:25px 25px 0 0; background:var(--surface); box-shadow:0 -20px 60px rgba(0,0,0,.25); }
.modal-head { position:sticky; top:-18px; z-index:3; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 0 12px; background:var(--surface); }
.modal-close { width:38px; height:38px; flex:none; border:0; border-radius:50%; background:var(--surface-2); color:var(--ink); font-size:20px; }
.detail-hero { display:flex; gap:13px; align-items:center; padding:16px; border-radius:18px; color:#fff; background:linear-gradient(135deg,var(--navy),var(--navy-3)); }
.detail-rank { min-width:58px; height:58px; display:grid; place-items:center; border-radius:16px; background:var(--green); color:var(--on-highlight, var(--navy)); font-size:20px; font-weight:1000; }
.detail-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:10px; }
.detail-metrics div { padding:11px 8px; border-radius:12px; background:#f0f4f5; text-align:center; }
.detail-metrics strong { display:block; font-size:15px; }
.detail-metrics small { color:var(--muted); font-size:9px; text-transform:uppercase; }
.history { display:grid; gap:7px; margin-top:9px; }
.history-row { display:grid; grid-template-columns:44px 1fr auto; gap:8px; align-items:center; padding:10px; border-radius:12px; background:#f3f6f7; font-size:11px; }
.history-row strong { color:var(--ink); }
.history-row span:last-child { text-align:right; }
.field { display:block; margin-top:12px; }
.field > span { display:block; margin-bottom:6px; color:#526376; font-size:11px; font-weight:900; text-transform:uppercase; }
.field textarea { min-height:76px; resize:vertical; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.form-actions { display:flex; gap:8px; margin-top:16px; }
.form-actions .button { flex:1; }
.player-picker { max-height:52vh; overflow:auto; display:grid; gap:7px; margin-top:10px; }
.pick-row { display:flex; align-items:center; justify-content:space-between; gap:9px; width:100%; padding:12px; border:1px solid var(--line); border-radius:13px; background:var(--surface); color:var(--ink); text-align:left; }
.pick-row strong { display:block; }
.pick-row small { color:var(--muted); }

.availability-grid { display:grid; grid-template-columns:1fr repeat(9,30px); min-width:620px; font-size:11px; }
.availability-wrap { overflow:auto; }
.availability-grid > * { padding:7px 3px; border-bottom:1px solid #e7edef; text-align:center; }
.availability-grid .name { position:sticky; left:0; z-index:1; background:var(--surface); text-align:left; font-weight:800; }
.availability-grid button { width:24px; height:24px; border:1px solid var(--line); border-radius:7px; background:#eef2f3; }
.availability-grid button.yes { border-color:var(--green); background:var(--green); color:var(--on-highlight, var(--navy)); }
.brand-preview { display:flex; align-items:center; gap:15px; padding:18px; border-radius:20px; color:#fff; background:linear-gradient(135deg,var(--preview-primary),color-mix(in srgb,var(--preview-primary) 72%,var(--preview-secondary))); box-shadow:var(--shadow); }
.brand-preview img { width:72px; height:72px; flex:none; border-radius:18px; }
.brand-preview small,.brand-preview span { display:block; color:rgba(255,255,255,.72); font-size:10px; letter-spacing:.08em; }
.brand-preview strong { display:block; margin:4px 0; font-size:22px; }
.theme-presets { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.theme-preset { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); font-size:12px; font-weight:850; }
.theme-preset i { width:28px; height:28px; flex:none; border-radius:50%; background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%); border:2px solid #fff; box-shadow:0 0 0 1px var(--line); }
.team-theme-title { margin-bottom:10px; }
.team-theme-title h2 { font-size:17px; }
.team-theme-title span { padding:5px 9px; border-radius:999px; color:#07556a; background:#dff8fd; font-size:9px; font-weight:1000; }
.team-theme-picker { display:grid; grid-template-columns:minmax(110px,.5fr) minmax(180px,.8fr) minmax(220px,1.2fr); gap:10px; }
.field-note { margin:8px 0 15px; color:var(--muted); font-size:10px; line-height:1.5; }
.appearance-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.appearance-option { min-height:112px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:16px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); text-align:left; }
.appearance-option > i { width:45px; height:45px; display:grid; place-items:center; border-radius:14px; color:#0b5062; background:#dff8fd; font-size:23px; font-style:normal; }
.appearance-option span strong,.appearance-option span small { display:block; }
.appearance-option span strong { font-size:14px; }
.appearance-option span small { margin-top:5px; color:var(--muted); font-size:10px; line-height:1.35; }
.appearance-option > b { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; color:var(--on-highlight,var(--navy)); background:var(--green); font-size:11px; }
.appearance-option.active { border-color:var(--green); box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 18%,transparent); }
.color-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.color-grid input[type="color"] { padding:4px; height:48px; }
.scenario-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }

/* FrontIce decision analytics */
.icegrade-panel { position:relative; overflow:hidden; margin-top:12px; padding:17px; border-radius:19px; color:#fff; background:linear-gradient(135deg,#061a33,#0b3951 68%,#0c5561); }
.icegrade-panel::after { content:""; position:absolute; width:230px; height:230px; right:-110px; top:-115px; border:1px solid rgba(255,255,255,.1); border-radius:50%; box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.02); pointer-events:none; }
.icegrade-head { position:relative; z-index:1; display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; }
.icegrade-mark { width:66px; height:66px; display:grid; align-content:center; justify-items:center; border-radius:18px; color:#05253b; background:linear-gradient(145deg,var(--green),var(--green-2)); box-shadow:0 8px 22px rgba(0,199,242,.2); }
.icegrade-mark strong { font-size:27px; line-height:1; }
.icegrade-mark span { margin-top:4px; font-size:7px; font-weight:1000; letter-spacing:.08em; }
.icegrade-head p { margin:0; color:#76dff3; font-size:8px; font-weight:1000; letter-spacing:.12em; }
.icegrade-head h3 { margin-top:5px; color:#fff; }
.icegrade-head > div > small { display:block; margin-top:4px; color:#aec2cd; font-size:9px; line-height:1.4; }
.confidence-seal { min-width:76px; padding:8px 9px; border:1px solid rgba(255,255,255,.16); border-radius:12px; color:#ffd98b; background:rgba(255,255,255,.06); text-align:center; font-size:10px; font-weight:1000; text-transform:uppercase; }
.confidence-seal.high { color:#8cf1b2; }
.confidence-seal.low { color:#ffd08a; }
.confidence-seal small { display:block; margin-top:3px; color:#aabec9; font-size:7px; text-transform:none; }
.icegrade-lanes { position:relative; z-index:1; display:grid; grid-template-columns:repeat(2,1fr); gap:12px 16px; margin-top:17px; }
.icegrade-lane > div:first-child { display:flex; justify-content:space-between; gap:10px; color:#dae5ea; font-size:9px; font-weight:900; }
.icegrade-lane > div:first-child b { color:#fff; }
.icegrade-track { height:7px; margin-top:6px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.12); }
.icegrade-track i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#00c7f2,#54ed9b); }
.icegrade-lane small { display:block; margin-top:5px; color:#8fa9b6; font-size:7px; }
.freshness-row { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:16px; padding-top:12px; border-top:1px solid rgba(255,255,255,.1); color:#a7bdc8; font-size:8px; font-weight:800; }
.icegrade-method { position:relative; z-index:1; margin:10px 0 0; color:#8da6b3; font-size:8px; line-height:1.5; }
.detail-actions { flex-wrap:wrap; }
.detail-actions .button { min-width:135px; }

/* Trade Analyzer */
.trade-menu-item { border-color:#b8dfe7; background:linear-gradient(105deg,#f3fcfd,#fff); }
.trade-menu-item > b { color:#087d91; font-size:18px; }
.trade-identity-bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; padding:16px 18px; border-radius:19px; color:#fff; background:linear-gradient(125deg,var(--navy),#0a3a53); box-shadow:var(--shadow); }
.trade-identity-bar label { min-width:0; }
.trade-identity-bar label:last-child { text-align:right; }
.trade-identity-bar label > span { display:block; color:#9fb7c5; font-size:8px; font-weight:1000; letter-spacing:.08em; text-transform:uppercase; }
.trade-identity-bar strong { display:block; margin-top:5px; overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.trade-identity-bar input { width:100%; max-width:280px; margin-top:4px; padding:7px 9px; border:1px solid rgba(255,255,255,.2); border-radius:9px; outline:0; color:#fff; background:rgba(255,255,255,.08); text-align:right; font-weight:850; }
.trade-identity-bar input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(0,199,242,.14); }
.trade-versus { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:#063247; background:var(--green); font-size:9px; font-weight:1000; }
.trade-board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.trade-side { min-width:0; padding:15px; border:1px solid var(--line); border-top:4px solid #e7a432; border-radius:18px; background:var(--surface); box-shadow:0 6px 22px rgba(6,26,51,.05); }
.trade-side.theirs { border-top-color:#25a765; }
.trade-side-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.trade-side-head small { display:block; max-width:190px; overflow:hidden; color:var(--muted); font-size:8px; font-weight:900; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.trade-side-head h2 { margin-top:3px; font-size:18px; }
.trade-side-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:13px; }
.trade-side-summary span { padding:8px 6px; border-radius:10px; color:#758590; background:#f1f5f6; text-align:center; font-size:8px; }
.trade-side-summary b { display:block; margin-bottom:2px; color:#163047; font-size:11px; }
.trade-assets { display:grid; gap:7px; margin-top:10px; }
.trade-asset { display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; padding:10px; border:1px solid #e0e7ea; border-radius:13px; background:#fbfcfd; }
.trade-asset-score { width:41px; height:41px; display:grid; align-content:center; justify-items:center; border-radius:11px; color:#075568; background:#dff7fb; }
.trade-asset-score strong { font-size:16px; line-height:1; }
.trade-asset-score small { margin-top:2px; font-size:7px; font-weight:1000; }
.trade-asset-copy { min-width:0; }
.trade-asset-copy > div { display:flex; align-items:center; gap:6px; }
.trade-asset-copy strong { overflow:hidden; color:#152e43; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.trade-asset-copy small,.trade-asset-copy em { display:block; overflow:hidden; margin-top:4px; color:#71828f; font-size:8px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.trade-asset-copy em { color:#3b6174; font-weight:850; }
.trade-asset-actions { display:grid; gap:5px; }
.trade-asset-actions button { width:28px; height:27px; border:1px solid #d7e1e5; border-radius:8px; color:#456778; background:#fff; font-size:11px; font-weight:900; }
.trade-asset-actions button.remove { color:#a03d3d; }
.trade-empty { min-height:100px; display:grid; place-content:center; padding:18px; border:1px dashed #bfd0d7; border-radius:13px; color:#768894; text-align:center; }
.trade-empty strong { color:#294356; font-size:12px; }
.trade-empty span { margin-top:5px; font-size:9px; }
.trade-verdict { position:relative; overflow:hidden; margin-top:12px; padding:19px; border-radius:20px; color:#fff; background:linear-gradient(130deg,#061a33,#0a3851); box-shadow:var(--shadow); }
.trade-verdict::after { content:"⇄"; position:absolute; right:-12px; bottom:-50px; color:rgba(255,255,255,.045); font-size:150px; font-weight:1000; }
.trade-verdict.owner { border:1px solid rgba(84,237,155,.48); }
.trade-verdict.other { border:1px solid rgba(243,169,52,.55); }
.trade-verdict.balanced { border:1px solid rgba(0,199,242,.48); }
.trade-verdict.incomplete { min-height:118px; display:flex; align-items:center; gap:14px; }
.trade-verdict-mark { width:55px; height:55px; display:grid; place-items:center; flex:none; border-radius:15px; color:#073449; background:#aeeef8; font-weight:1000; }
.trade-verdict.incomplete p,.trade-verdict-top p { margin:0; color:#6fe0f5; font-size:8px; font-weight:1000; letter-spacing:.13em; }
.trade-verdict.incomplete h2 { margin-top:4px; font-size:18px; }
.trade-verdict.incomplete span { display:block; margin-top:5px; color:#a9bdc8; font-size:9px; }
.trade-verdict-top { position:relative; z-index:1; display:grid; grid-template-columns:1fr auto; gap:15px; align-items:center; }
.trade-verdict-top h2 { margin-top:5px; font-size:22px; }
.trade-verdict-top > div:first-child > span { display:block; margin-top:6px; color:#9fb5c1; font-size:9px; }
.trade-confidence { min-width:90px; padding:10px; border:1px solid rgba(255,255,255,.13); border-radius:13px; background:rgba(255,255,255,.06); text-align:center; }
.trade-confidence strong { display:block; font-size:20px; }
.trade-confidence small { display:block; margin-top:3px; color:#a7bcc7; font-size:8px; }
.trade-balance-label { position:relative; z-index:1; display:flex; justify-content:space-between; gap:12px; margin-top:18px; color:#b2c4cd; font-size:8px; font-weight:850; }
.trade-balance { position:relative; z-index:1; display:flex; gap:3px; height:11px; margin-top:7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.08); }
.trade-balance span { background:linear-gradient(90deg,#d99031,#f3b64e); }
.trade-balance i { background:linear-gradient(90deg,#24a967,#5ee69a); }
.trade-reasons { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.trade-reasons article { padding:10px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.055); }
.trade-reasons small { display:block; color:#7fdae9; font-size:7px; font-weight:1000; letter-spacing:.08em; }
.trade-reasons strong { display:block; margin-top:5px; color:#e6eef1; font-size:9px; line-height:1.4; }
.trade-notes-card .field { margin-top:0; }
.trade-toolbar { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:12px; }
.trade-method-note { margin-bottom:10px; }
.trade-editor-summary { display:flex; align-items:center; gap:9px; padding:13px; border-radius:13px; color:#fff; background:linear-gradient(120deg,#09213b,#0c4c5d); }
.trade-editor-summary strong { margin-left:auto; font-size:17px; }
.trade-editor-summary small { color:#b1c6cf; font-size:9px; }
.form-help { margin:8px 0 0; color:var(--muted); font-size:9px; line-height:1.5; }

.toast { position:fixed; left:50%; bottom:90px; z-index:120; transform:translate(-50%,20px); max-width:calc(100% - 32px); padding:11px 15px; border-radius:12px; background:#061a33; color:#fff; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.25s; font-size:12px; font-weight:800; text-align:center; }
.toast.show { transform:translate(-50%,0); opacity:1; }
.skeleton { height:80px; border-radius:17px; background:linear-gradient(90deg,#e8eef0 25%,#f5f8f9 38%,#e8eef0 63%); background-size:400% 100%; animation:shine 1.4s infinite; }
@keyframes shine { to { background-position:-100% 0; } }

.directory-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:14px; padding:5px; border-radius:17px; background:#dfe8ec; }
.directory-tabs button { min-height:48px; padding:9px 12px; border:0; border-radius:13px; color:#657687; background:transparent; font-size:13px; font-weight:900; }
.directory-tabs button span { display:inline-grid; min-width:24px; margin-left:5px; padding:3px 6px; border-radius:999px; color:#647481; background:rgba(255,255,255,.55); font-size:9px; }
.directory-tabs button.active { color:var(--ink); background:var(--surface); box-shadow:0 4px 13px rgba(6,26,51,.1); }
.directory-tabs button.active span { color:#246036; background:#e2f4e7; }
.directory-summary { display:flex; align-items:baseline; gap:8px; margin:5px 2px 13px; color:var(--muted); }
.directory-summary strong { color:var(--ink); font-size:25px; }
.directory-summary span { font-size:12px; font-weight:800; }
.member-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.member-card { display:flex; align-items:center; gap:12px; min-width:0; padding:15px; border:1px solid var(--line); border-radius:17px; background:var(--surface); box-shadow:0 4px 16px rgba(6,26,51,.04); }
.member-avatar { width:43px; height:43px; display:grid; place-items:center; flex:none; border-radius:13px; color:#fff; background:linear-gradient(145deg,var(--navy),var(--navy-3)); font-size:12px; font-weight:1000; }
.member-card div { min-width:0; }
.member-card strong,.member-card small,.member-card em { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.member-card strong { color:var(--ink); font-size:13px; }
.member-card small { margin-top:4px; color:#477d19; font-size:10px; font-weight:900; }
.member-card em { margin-top:3px; color:var(--muted); font-size:10px; font-style:normal; }
.directory-toolbar { display:grid; grid-template-columns:1.6fr minmax(180px,.7fr) minmax(140px,.5fr); gap:9px; margin:4px 0 8px; }
.directory-toolbar .field { margin:0; }
.directory-toolbar .field > span { display:block; margin:0 0 5px 2px; color:var(--muted); font-size:9px; font-weight:950; letter-spacing:.06em; text-transform:uppercase; }
.directory-shortcuts { display:flex; gap:7px; overflow:auto; padding:4px 1px 7px; }
.lg-directory-list { display:grid; gap:7px; }
.lg-member-row { display:grid; grid-template-columns:52px minmax(180px,1.4fr) 45px minmax(130px,.8fr) minmax(105px,.55fr) 34px; gap:10px; align-items:center; padding:12px 13px; border:1px solid var(--line); border-radius:15px; background:var(--surface); box-shadow:0 3px 13px rgba(6,26,51,.035); }
.lg-member-rank { color:#738391; font-size:11px; font-weight:950; text-align:center; }
.lg-member-name,.lg-member-platform { min-width:0; }
.lg-member-name strong,.lg-member-name small,.lg-member-platform strong,.lg-member-platform small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.lg-member-name strong { color:var(--ink); font-size:13px; }
.lg-member-name small,.lg-member-platform small { margin-top:3px; color:var(--muted); font-size:9px; }
.lg-member-platform strong { color:#526575; font-size:10px; }
.lg-status { justify-self:start; padding:6px 9px; border-radius:999px; color:#536477; background:#edf2f4; font-size:9px; font-weight:1000; white-space:nowrap; }
.lg-status.status-prospect { color:#17603d; background:#dff6e9; }
.lg-status.status-amateur { color:#07556a; background:#dff8fd; }
.lg-status.status-draft-pick,.lg-status.status-draftee { color:#64420d; background:#fff0cf; }
.lg-status.status-veteran { color:#264f88; background:#e7eef9; }
.directory-profile { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--line); border-radius:10px; color:#2d6985; background:#f7fafb; font-weight:950; text-decoration:none; }
.directory-loading { display:grid; gap:10px; }

@media (min-width: 720px) {
  .app-shell { padding-bottom:30px; padding-left:92px; }
  .topbar { margin-left:-92px; padding-left:24px; }
  .bottom-nav { top:68px; right:auto; width:92px; display:flex; flex-direction:column; justify-content:flex-start; gap:7px; padding:18px 9px; border-top:0; border-right:1px solid var(--line); }
  .bottom-nav button { min-height:68px; }
  .main { padding:28px; }
  .kpi-grid { grid-template-columns:repeat(4,1fr); }
  .quick-grid { grid-template-columns:repeat(4,1fr); }
  .card-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bid-grid { grid-template-columns:repeat(4,1fr); }
  .modal-backdrop { align-items:center; padding:30px; }
  .modal { border-radius:25px; padding-bottom:20px; }
}

@media (max-width: 760px) {
  .trade-board { grid-template-columns:1fr; }
  .trade-reasons { grid-template-columns:1fr; }
  .directory-toolbar { grid-template-columns:1fr 1fr; }
  .directory-search { grid-column:1/-1; }
  .lg-member-row { grid-template-columns:42px minmax(0,1fr) auto 32px; }
  .lg-member-platform { display:none; }
  .lg-member-row .position-pill { display:none; }
}

@media (max-width: 560px) {
  .bottom-nav small { font-size:8px; }
  .member-grid { grid-template-columns:1fr; }
  .icegrade-head { grid-template-columns:auto 1fr; }
  .confidence-seal { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; }
  .confidence-seal small { margin:0; }
  .icegrade-lanes { grid-template-columns:1fr; }
  .trade-identity-bar { grid-template-columns:1fr auto; }
  .trade-identity-bar label:last-child { grid-column:1/-1; text-align:left; }
  .trade-identity-bar input { max-width:none; text-align:left; }
  .trade-versus { grid-column:2; grid-row:1; }
  .trade-verdict-top { grid-template-columns:1fr; }
  .trade-confidence { display:flex; justify-content:space-between; align-items:center; }
  .trade-confidence small { margin:0; }
  .trade-side-head { align-items:flex-start; }
  .trade-side-head .button { padding:7px 9px; }
  .player-card { grid-template-columns:48px minmax(0,1fr) 40px; gap:11px; padding:16px; }
  .rank-badge { width:48px; height:48px; font-size:17px; }
  .track-button { width:40px; height:42px; }
  .detail-button { width:40px; }
  .team-theme-picker,.appearance-grid { grid-template-columns:1fr; }
  .pulse-tier-tabs button { padding-inline:3px; font-size:10px; }
}

@media (min-width: 1040px) {
  .card-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-layout { display:grid; grid-template-columns:1.45fr 1fr; gap:14px; }
  .home-layout .hero { grid-row:span 2; }
}

@media (display-mode: standalone) {
  .install-button { display:none !important; }
}
.ea-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;margin-top:9px;font-size:12px;line-height:1.4;color:var(--muted)}
.ea-line b{padding:4px 7px;border-radius:7px;background:#102f4e;color:#9bdcf2;font-size:10px;letter-spacing:.05em}
.ea-line.matched span{color:#326b50}.ea-line.unmatched span{color:#8b6b32}
.ea-toggle{display:flex;gap:8px;align-items:center;margin-top:10px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;font-size:12px;background:var(--surface)}
.ea-toggle span{margin-left:auto;color:var(--muted);font-weight:700}
.ea-profile{margin-top:14px}.ea-status{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px}.ea-status.ok{background:#dff6e9;color:#17603d}.ea-status.no{background:#fff1d6;color:#7a5311}
.ea-identity{margin:0 0 12px;color:var(--muted);font-size:13px}.ea-match-source{display:inline-flex;margin-left:8px;padding:3px 7px;border-radius:999px;color:#17603d;background:#dff6e9;font-size:8px;font-weight:900;text-transform:uppercase}.ea-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.ea-metrics div{padding:10px 6px;text-align:center;border-radius:10px;background:var(--surface-2)}.ea-metrics strong{display:block;font-size:17px}.ea-metrics small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;margin-top:3px}
@media(max-width:560px){.ea-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.board-filter-row{grid-template-columns:1fr}.board-filter-row .ea-toggle{width:100%}}

/* User-selected app appearance */
html.dark-ui {
  --ice:#07111f;
  --white:#0e1c2a;
  --ink:#edf4f7;
  --muted:#9dafbc;
  --line:#263a4c;
  --border:#263a4c;
  --surface:#0e1c2a;
  --surface-2:#152638;
  color-scheme:dark;
  background:#07111f;
}
html.dark-ui body { background:#07111f; color:var(--ink); }
html.dark-ui .filter-panel { background:rgba(7,17,31,.96); }
html.dark-ui .segmented,.dark-ui .directory-tabs { background:#142536; }
html.dark-ui .segmented button,.dark-ui .directory-tabs button { color:#9dafbc; }
html.dark-ui .quick-card { color:var(--ink); background:#142536; }
html.dark-ui .quick-card:nth-child(1) { background:#183126; }
html.dark-ui .quick-card:nth-child(2) { background:#152a3f; }
html.dark-ui .account-affiliation,.dark-ui .rule,.dark-ui .bid-metric,.dark-ui .detail-metrics div,.dark-ui .history-row,.dark-ui .trade-side-summary span,.dark-ui .trade-asset { background:var(--surface-2); border-color:var(--line); }
html.dark-ui .rank-badge,.dark-ui .slot-add,.dark-ui .availability-grid button,.dark-ui .directory-profile { color:var(--ink); background:#1a2d3e; }
html.dark-ui .rank-badge.core { color:#b9f275; background:#203b28; }
html.dark-ui .trade-menu-item { border-color:#285064; background:linear-gradient(105deg,#102a39,var(--surface)); }
html.dark-ui .skeleton { background:linear-gradient(90deg,#142536 25%,#1c3042 38%,#142536 63%); background-size:400% 100%; }
html.dark-ui .access-callout { border-color:#285064; background:linear-gradient(120deg,#102b3a,#102131); }
html.dark-ui .account-affiliation strong,.dark-ui .appearance-option span strong { color:var(--ink); }
html.dark-ui .field > span,.dark-ui .role,.dark-ui .lg-member-platform strong,.dark-ui .kpi-card em { color:#aebfcb; }
html.dark-ui .trade-asset-actions button { border-color:var(--line); color:#b8dce4; background:#1a2d3e; }
html.dark-ui .button.danger { border-color:#6b3337; color:#ff9fa6; background:#351e25; }
html.dark-ui .button.light { color:#071b34; background:#edf4f7; }
html.dark-ui .alert.good { color:#a9e687; background:#1b3525; }
html.dark-ui .alert.warn { color:#f3c879; background:#3a2c17; }
html.dark-ui .alert.bad { color:#ff9fa6; background:#3c2027; }
html.dark-ui .appearance-option > i { color:#7ce9ff; background:#12364a; }
html.dark-ui .pulse-rule-note { border-color:#285064; color:#b8dce4; background:#102a39; }
html.dark-ui .pulse-rule-note.lower { border-color:#36563e; color:#b9e2b5; background:#173024; }

/* Public FrontIce website */
.marketing-page { background:#f5f8f9; color:#102237; }
.marketing-page main { overflow:hidden; }
.site-header { position:sticky; top:0; z-index:70; height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; padding:0 max(24px,calc((100vw - 1240px)/2)); color:#fff; background:rgba(5,22,42,.94); border-bottom:1px solid rgba(255,255,255,.1); backdrop-filter:blur(18px); }
.site-brand { display:flex; align-items:center; gap:11px; color:inherit; text-decoration:none; }
.site-brand img { width:42px; height:42px; border-radius:12px; object-fit:cover; box-shadow:0 7px 18px rgba(0,0,0,.24); }
.site-brand strong { display:block; font-size:15px; letter-spacing:.11em; }
.site-brand small { display:block; margin-top:3px; color:#9fb2c3; font-size:8px; font-weight:800; letter-spacing:.15em; }
.site-nav { display:flex; gap:32px; margin-left:auto; }
.site-nav a { color:#c6d2db; text-decoration:none; font-size:13px; font-weight:750; }
.site-nav a:hover { color:#fff; }
.site-login { flex:none; min-height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 17px; border-radius:12px; color:#071b34; background:#00c7f2; text-decoration:none; font-size:13px; font-weight:950; }

.site-hero { position:relative; min-height:690px; display:grid; grid-template-columns:.88fr 1.12fr; align-items:center; gap:58px; padding:82px max(24px,calc((100vw - 1240px)/2)) 90px; color:#fff; background:
  radial-gradient(circle at 76% 20%,rgba(0,199,242,.18),transparent 30%),
  radial-gradient(circle at 18% 88%,rgba(84,237,155,.1),transparent 25%),
  linear-gradient(145deg,#04172d,#082844 58%,#0a304a); }
.site-hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.22; background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size:54px 54px; mask-image:linear-gradient(to right,#000,transparent 75%); }
.site-hero-copy { position:relative; z-index:1; }
.site-kicker { display:flex; align-items:center; gap:9px; margin:0 0 16px; color:#62dbf4; font-size:11px; font-weight:950; letter-spacing:.14em; text-transform:uppercase; }
.site-kicker span { width:23px; height:3px; border-radius:5px; background:#00c7f2; }
.site-hero h1 { max-width:600px; font-size:clamp(43px,5vw,73px); line-height:.98; letter-spacing:-.055em; }
.site-hero h1 em { color:#62dbf4; font-style:normal; }
.site-lead { max-width:585px; margin:24px 0 0; color:#c8d5de; font-size:17px; line-height:1.7; }
.site-hero-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:30px; }
.site-cta { min-height:49px; display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:0 21px; border:0; border-radius:13px; text-decoration:none; font-size:13px; font-weight:950; cursor:pointer; }
.site-cta.primary { color:#061a33; background:#00c7f2; box-shadow:0 10px 28px rgba(0,199,242,.21); }
.site-cta.primary:hover { background:#45d8f5; transform:translateY(-1px); }
.site-cta.secondary { color:#0a2b49; background:#fff; border:1px solid #d7e2e8; }
.site-hero .site-cta.secondary { color:#fff; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); }
.site-cta.dark { color:#fff; background:#061a33; }
.site-cta.full { width:100%; }
.site-cta:disabled { opacity:.65; cursor:wait; }
.site-proof { display:flex; gap:0; margin-top:42px; }
.site-proof div { min-width:118px; padding:0 24px; border-left:1px solid rgba(255,255,255,.16); }
.site-proof div:first-child { padding-left:0; border-left:0; }
.site-proof strong { display:block; font-size:22px; }
.site-proof span { display:block; margin-top:4px; color:#94a9b8; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }

.product-window { position:relative; z-index:1; min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:24px; background:#f2f6f7; box-shadow:0 34px 70px rgba(0,0,0,.35); transform:perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.window-top { height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 18px; color:#fff; background:#071c34; border-bottom:3px solid #00c7f2; }
.window-mark { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:950; letter-spacing:.08em; }
.window-mark img { width:30px; height:30px; border-radius:8px; }
.live-chip { padding:6px 9px; border-radius:999px; color:#7ce9ff; background:rgba(0,199,242,.1); font-size:8px; font-weight:950; letter-spacing:.08em; }
.window-body { min-height:435px; display:grid; grid-template-columns:54px 1fr; color:#102237; }
.window-rail { display:flex; flex-direction:column; align-items:center; gap:12px; padding-top:18px; color:#7d8c9a; background:#fff; border-right:1px solid #dce5e9; }
.window-rail i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; font-style:normal; }
.window-rail i.active { color:#061a33; background:#dff8fd; }
.window-content { min-width:0; padding:24px; }
.preview-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.preview-head small { display:block; color:#3b8f9f; font-size:8px; font-weight:950; letter-spacing:.13em; }
.preview-head strong { display:block; margin-top:7px; font-size:20px; letter-spacing:-.025em; }
.preview-head button { padding:9px 12px; border:0; border-radius:9px; color:#061a33; background:#00c7f2; font-size:9px; font-weight:950; }
.preview-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:19px; }
.preview-kpis div { padding:13px; border:1px solid #dce5e9; border-radius:12px; background:#fff; box-shadow:0 5px 14px rgba(6,26,51,.04); }
.preview-kpis small,.preview-kpis span { display:block; color:#748494; font-size:7px; font-weight:850; letter-spacing:.08em; }
.preview-kpis b { display:block; margin:5px 0; color:#061a33; font-size:19px; }
.preview-board { margin-top:12px; padding:15px; border:1px solid #dce5e9; border-radius:14px; background:#fff; }
.preview-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:11px; }
.preview-title span { color:#708090; font-size:8px; }
.preview-player { display:grid; grid-template-columns:34px 1fr auto 28px; align-items:center; gap:9px; padding:10px 0; border-top:1px solid #e7edef; }
.preview-player > b { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; color:#136072; background:#dff8fd; font-size:9px; }
.preview-player span strong,.preview-player span small { display:block; }
.preview-player span strong { font-size:10px; }
.preview-player span small { margin-top:3px; color:#788694; font-size:7px; }
.preview-player i { color:#246e7d; font-size:8px; font-style:normal; font-weight:950; }
.preview-player em { width:25px; height:25px; display:grid; place-items:center; border-radius:8px; color:#061a33; background:#dff8fd; font-style:normal; font-weight:900; }

.logo-strip { min-height:90px; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:36px; padding:20px 24px; color:#607181; background:#fff; border-bottom:1px solid #e2e9ed; }
.logo-strip span { color:#98a5af; font-size:9px; font-weight:950; letter-spacing:.14em; }
.logo-strip b { color:#536678; font-size:12px; letter-spacing:.05em; }
.site-section { width:min(1180px,calc(100% - 48px)); margin:0 auto; padding:100px 0; }
.section-intro { max-width:650px; }
.section-intro.centered { margin:0 auto; text-align:center; }
.section-intro.centered .site-kicker { justify-content:center; }
.section-intro h2,.final-cta h2 { margin:0; color:#061a33; font-size:clamp(33px,4vw,50px); line-height:1.08; letter-spacing:-.045em; }
.section-intro > p:last-child { margin:16px 0 0; color:#667788; font-size:16px; line-height:1.6; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:46px; }
.feature-grid article { min-height:245px; padding:25px; border:1px solid #dde6ea; border-radius:20px; background:#fff; box-shadow:0 8px 25px rgba(6,26,51,.045); }
.feature-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:13px; color:#0a5061; background:#dff8fd; font-size:20px; font-weight:900; }
.feature-grid h3 { margin-top:28px; font-size:19px; }
.feature-grid p { min-height:66px; margin:10px 0 17px; color:#667788; font-size:13px; line-height:1.6; }
.feature-grid small { color:#2b7786; font-size:9px; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }

.pricing-section { width:100%; padding-left:max(24px,calc((100vw - 1180px)/2)); padding-right:max(24px,calc((100vw - 1180px)/2)); background:#eaf1f3; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); align-items:stretch; gap:14px; margin-top:48px; }
.price-card { position:relative; display:flex; flex-direction:column; padding:28px; border:1px solid #d8e3e8; border-radius:22px; background:#fff; box-shadow:0 9px 28px rgba(6,26,51,.05); }
.price-card.featured { border:2px solid #00b7dc; box-shadow:0 18px 42px rgba(0,125,154,.14); transform:translateY(-8px); }
.popular { position:absolute; top:-13px; right:22px; padding:7px 10px; border-radius:999px; color:#061a33; background:#00c7f2; font-size:8px; font-weight:1000; letter-spacing:.1em; }
.price-card > div:first-of-type > small { color:#248294; font-size:9px; font-weight:1000; letter-spacing:.13em; }
.price-card h3 { margin-top:8px; font-size:24px; }
.price-card p { min-height:62px; margin:10px 0 0; color:#6a7987; font-size:13px; line-height:1.55; }
.price { display:flex; align-items:baseline; gap:7px; margin:25px 0 20px; }
.price strong { color:#061a33; font-size:38px; letter-spacing:-.05em; }
.price span { color:#758491; font-size:11px; font-weight:800; }
.price-card ul { flex:1; display:grid; gap:12px; margin:0 0 26px; padding:0; list-style:none; }
.price-card li { position:relative; padding-left:23px; color:#4f6070; font-size:12px; }
.price-card li::before { content:"✓"; position:absolute; left:0; color:#1692aa; font-weight:1000; }
.checkout-note { min-height:22px; margin:18px 0 0; color:#586a79; text-align:center; font-size:12px; font-weight:800; }
.checkout-note[data-tone="error"] { color:#a23838; }

.faq-section { display:grid; grid-template-columns:.75fr 1.25fr; gap:70px; }
.faq-grid { display:grid; }
.faq-grid details { padding:22px 0; border-bottom:1px solid #dce5e9; }
.faq-grid summary { display:flex; align-items:center; justify-content:space-between; gap:16px; color:#102237; font-size:14px; font-weight:900; cursor:pointer; list-style:none; }
.faq-grid summary::after { content:"+"; color:#16849a; font-size:21px; }
.faq-grid details[open] summary::after { content:"−"; }
.faq-grid p { margin:13px 35px 0 0; color:#687887; font-size:13px; line-height:1.65; }
.final-cta { width:min(1180px,calc(100% - 48px)); display:grid; grid-template-columns:130px 1fr auto; align-items:center; gap:34px; margin:0 auto 100px; padding:38px; border-radius:26px; color:#fff; background:linear-gradient(135deg,#051a32,#0a3551); box-shadow:0 22px 50px rgba(6,26,51,.16); }
.final-cta img { width:120px; height:120px; border-radius:24px; object-fit:cover; }
.final-cta h2 { color:#fff; font-size:35px; }
.final-cta p:not(.site-kicker) { margin:9px 0 0; color:#aebfcb; }
.site-footer { min-height:130px; display:flex; align-items:center; gap:38px; padding:30px max(24px,calc((100vw - 1180px)/2)); color:#fff; background:#041529; }
.site-footer p { margin-right:auto; color:#8fa2b2; font-size:11px; }
.site-footer > div { display:flex; gap:22px; }
.site-footer > div a { color:#bdcbd5; text-decoration:none; font-size:11px; font-weight:800; }

@media (max-width:1000px) {
  .site-hero { grid-template-columns:1fr; padding-top:70px; }
  .site-hero-copy { max-width:680px; }
  .product-window { max-width:760px; width:100%; transform:none; }
  .feature-grid { grid-template-columns:repeat(2,1fr); }
  .pricing-grid { grid-template-columns:1fr; max-width:650px; margin-left:auto; margin-right:auto; }
  .price-card.featured { transform:none; }
  .faq-section { grid-template-columns:1fr; gap:25px; }
  .final-cta { grid-template-columns:95px 1fr; }
  .final-cta img { width:90px; height:90px; }
  .final-cta .site-cta { grid-column:1/-1; }
}

@media (max-width:700px) {
  .site-header { height:68px; padding:0 16px; }
  .site-nav { display:none; }
  .site-brand small { display:none; }
  .site-login { min-height:39px; padding:0 13px; }
  .site-hero { min-height:0; gap:46px; padding:64px 18px 62px; }
  .site-hero h1 { font-size:45px; }
  .site-lead { font-size:15px; }
  .site-hero-actions .site-cta { width:100%; }
  .site-proof { justify-content:space-between; }
  .site-proof div { min-width:0; padding:0 12px; }
  .site-proof strong { font-size:18px; }
  .site-proof span { font-size:7px; }
  .product-window { border-radius:18px; }
  .window-body { grid-template-columns:1fr; min-height:390px; }
  .window-rail { display:none; }
  .window-content { padding:16px; }
  .preview-head strong { font-size:15px; }
  .preview-kpis div { padding:10px; }
  .preview-player { grid-template-columns:31px 1fr 26px; }
  .preview-player i { display:none; }
  .logo-strip { gap:18px 28px; }
  .site-section { width:calc(100% - 32px); padding:72px 0; }
  .feature-grid { grid-template-columns:1fr; }
  .feature-grid article { min-height:0; }
  .feature-grid p { min-height:0; }
  .pricing-section { width:100%; padding-left:16px; padding-right:16px; }
  .price-card { padding:24px; }
  .final-cta { width:calc(100% - 32px); grid-template-columns:65px 1fr; gap:18px; margin-bottom:70px; padding:25px; }
  .final-cta img { width:65px; height:65px; border-radius:16px; }
  .final-cta h2 { font-size:25px; }
  .final-cta .site-kicker { display:none; }
  .site-footer { align-items:flex-start; flex-wrap:wrap; padding:28px 18px; }
  .site-footer p { width:100%; order:3; }
  .back-site { display:none; }
  .sync-state { min-width:52px; padding:0 8px; }
  .access-callout { align-items:stretch; flex-direction:column; }
  .access-callout .button { width:100%; }
}

/* Owner administration */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.admin-page { min-height:100vh; background:#eef3f5; }
.admin-header { height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 max(20px,calc((100vw - 1200px)/2)); color:#fff; background:#051a32; border-bottom:3px solid #00c7f2; }
.admin-header > div { display:flex; align-items:center; gap:15px; color:#a9bdca; font-size:11px; font-weight:800; }
.admin-header > div a { padding:9px 12px; border:1px solid rgba(255,255,255,.16); border-radius:10px; color:#fff; text-decoration:none; }
.admin-shell { width:min(1200px,calc(100% - 40px)); margin:0 auto; padding:42px 0 70px; }
.admin-state { min-height:520px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.admin-state h1 { margin-top:18px; font-size:30px; }
.admin-state p { max-width:480px; margin:10px 0 22px; color:#687988; line-height:1.55; }
.admin-state-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:20px; color:#07586a; background:#d7f6fc; font-size:28px; }
.admin-spinner { width:42px; height:42px; border:4px solid #d5e1e6; border-top-color:#00aecd; border-radius:50%; animation:adminSpin .75s linear infinite; }
@keyframes adminSpin { to { transform:rotate(360deg); } }
.admin-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:28px; }
.admin-hero h1 { font-size:clamp(35px,5vw,52px); }
.admin-hero > div > p:last-child { margin:12px 0 0; color:#677887; }
.admin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.admin-stats article { padding:20px; border:1px solid #dbe5e9; border-radius:18px; background:#fff; box-shadow:0 6px 18px rgba(6,26,51,.04); }
.admin-stats small { display:block; color:#6b7c89; font-size:9px; font-weight:950; letter-spacing:.11em; }
.admin-stats strong { display:block; margin:9px 0 5px; color:#061a33; font-size:31px; line-height:1; }
.admin-stats span { color:#83919b; font-size:10px; }
.admin-panel { margin-top:16px; overflow:hidden; border:1px solid #d8e2e7; border-radius:20px; background:#fff; box-shadow:0 8px 28px rgba(6,26,51,.045); }
.admin-panel-head { min-height:83px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 20px; border-bottom:1px solid #e2e9ed; }
.admin-panel-head h2 { font-size:19px; }
.admin-panel-head p { margin:5px 0 0; color:#748391; font-size:11px; }
.data-refresh-panel { border-color:#b8dce4; }
.data-refresh-panel .admin-panel-head { background:linear-gradient(105deg,#f5fcfd,#fff); }
.data-refresh-body { padding:20px; }
.data-refresh-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.data-refresh-action { min-height:84px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:14px; border:1px solid #d5e2e7; border-radius:15px; color:#163448; background:#f9fbfc; text-align:left; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.data-refresh-action:hover:not(:disabled) { transform:translateY(-2px); border-color:#91cbd6; box-shadow:0 9px 20px rgba(7,55,74,.09); }
.data-refresh-action:focus-visible { outline:3px solid rgba(0,174,205,.28); outline-offset:2px; }
.data-refresh-action:disabled { opacity:.58; cursor:not-allowed; }
.data-refresh-action.selected { border-color:#28a8bd; box-shadow:0 0 0 2px rgba(0,174,205,.12); }
.data-refresh-action.working { opacity:1; border-color:#00aecd; background:#effbfe; cursor:wait; }
.data-refresh-index { width:32px; height:32px; display:grid; place-items:center; border-radius:10px; color:#fff; background:#08788d; font-size:11px; font-weight:950; }
.data-refresh-action.pool .data-refresh-index { background:#28a260; }
.data-refresh-action.lgdrafts .data-refresh-index { background:#08788d; }
.data-refresh-action.ea .data-refresh-index { background:#315fa5; }
.data-refresh-action-copy { min-width:0; }
.data-refresh-action-copy strong,.data-refresh-action-copy small { display:block; }
.data-refresh-action-copy strong { color:#0e2d40; font-size:11px; }
.data-refresh-action-copy small { margin-top:5px; overflow:hidden; color:#71838f; font-size:8px; font-weight:800; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.data-refresh-arrow { color:#7d98a6; font-size:18px; font-weight:900; }
.data-refresh-action.working .data-refresh-arrow { color:#08788d; animation:adminSpin .8s linear infinite; }
.data-refresh-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
.data-refresh-stats article { padding:14px; border:1px solid #e0e8eb; border-radius:13px; background:#fbfcfd; }
.data-refresh-stats small { display:block; color:#798993; font-size:8px; font-weight:950; letter-spacing:.08em; }
.data-refresh-stats strong { display:block; margin-top:7px; color:#0d2d40; font-size:19px; line-height:1.15; }
.data-refresh-stats article:last-child strong { font-size:13px; line-height:1.35; }
.data-refresh-progress { margin-top:14px; padding:15px; border-radius:13px; background:#071f38; }
.data-refresh-copy { display:flex; justify-content:space-between; gap:18px; margin-bottom:11px; color:#fff; }
.data-refresh-copy strong { font-size:11px; }
.data-refresh-copy span { color:#a9bfcc; font-size:9px; text-align:right; }
.data-refresh-progress .progress { height:8px; background:rgba(255,255,255,.14); }
.data-refresh-note { margin:12px 2px 0; color:#7a8994; font-size:9px; line-height:1.5; }
.data-refresh-note a { color:#08768c; font-weight:900; }
.windows-updater { margin-top:14px; padding:16px; border:1px solid #d8e6ea; border-radius:15px; background:linear-gradient(135deg,#f8fcfd,#f3f8fa); }
.windows-updater-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.windows-updater-head > div { display:flex; align-items:center; gap:10px; }
.windows-updater-head strong,.windows-updater-head small { display:block; }
.windows-updater-head strong { color:#102f42; font-size:12px; }
.windows-updater-head small { margin-top:3px; color:#718491; font-size:9px; font-weight:800; }
.bridge-dot { width:11px; height:11px; display:block; flex:none; border-radius:50%; background:#a9b6bd; box-shadow:0 0 0 4px rgba(169,182,189,.16); }
.bridge-dot.paired { background:#e4a524; box-shadow:0 0 0 4px rgba(228,165,36,.14); }
.bridge-dot.online { background:#25ad66; box-shadow:0 0 0 4px rgba(37,173,102,.14); }
.bridge-download { text-decoration:none; white-space:nowrap; }
.windows-updater > p { margin:12px 0; color:#637784; font-size:10px; line-height:1.55; }
.windows-updater-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.windows-updater-actions .site-cta { min-height:38px; padding:0 14px; border-radius:10px; font-size:9px; }
.windows-updater-actions .danger { color:#a23e3e; border-color:#e4caca; }
.pairing-code-panel { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 16px; margin-top:13px; padding:13px 15px; border:1px dashed #83c7d3; border-radius:12px; background:#fff; }
.pairing-code-panel span { color:#58717f; font-size:9px; font-weight:850; }
.pairing-code-panel code { grid-row:1/3; grid-column:2; color:#075f73; font:950 23px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.13em; }
.pairing-code-panel small { color:#8998a1; font-size:8px; }
.updater-steps { margin-top:12px; color:#657985; font-size:9px; }
.updater-steps summary { width:max-content; color:#08768c; cursor:pointer; font-weight:900; }
.updater-steps ol { margin:9px 0 0; padding-left:18px; line-height:1.7; }
.admin-search { min-width:280px; display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid #cedbe1; border-radius:11px; background:#f8fafb; }
.admin-search span { color:#6d7e8d; font-size:18px; }
.admin-search input { width:100%; min-height:40px; border:0; outline:0; background:transparent; font-size:12px; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { padding:12px 14px; color:#778693; background:#f4f7f8; border-bottom:1px solid #e2e8ec; text-align:left; font-size:8px; font-weight:950; letter-spacing:.09em; text-transform:uppercase; }
.admin-table td { padding:14px; border-bottom:1px solid #e8edef; color:#506171; font-size:11px; white-space:nowrap; }
.admin-table tr:last-child td { border-bottom:0; }
.person-cell { display:flex; align-items:center; gap:10px; min-width:220px; }
.person-cell > span { width:35px; height:35px; display:grid; place-items:center; flex:none; border-radius:10px; color:#07576a; background:#ddf7fc; font-weight:950; }
.person-cell strong,.person-cell small { display:block; }
.person-cell strong { color:#12283c; font-size:12px; }
.person-cell small { margin-top:3px; color:#7c8b97; font-size:9px; }
.admin-badge { display:inline-flex; align-items:center; min-height:25px; padding:0 8px; border-radius:999px; color:#536676; background:#e9eef1; font-size:8px; font-weight:950; text-transform:uppercase; letter-spacing:.05em; }
.admin-badge.pro { color:#075f71; background:#d9f6fb; }
.admin-badge.team { color:#245f39; background:#def4e5; }
.admin-badge.admin { color:#74500c; background:#fff0cf; }
.status-dot { width:7px; height:7px; display:inline-block; margin-right:7px; border-radius:50%; background:#b1bdc4; }
.status-dot.active { background:#27b468; box-shadow:0 0 0 3px rgba(39,180,104,.12); }
.admin-actions { text-align:right; }
.admin-actions button,.admin-refresh { padding:7px 9px; border:1px solid #d3dee3; border-radius:8px; color:#31576d; background:#fff; font-size:9px; font-weight:900; }
.admin-actions button + button { margin-left:5px; }
.admin-actions button.revoke { color:#a23e3e; }
.admin-actions button:disabled { opacity:.35; cursor:not-allowed; }
.admin-empty { padding:28px; color:#7a8995; text-align:center; font-size:12px; }
.audit-list { display:grid; }
.audit-list article { display:flex; gap:12px; align-items:flex-start; padding:14px 20px; border-bottom:1px solid #e8edef; color:#61717f; font-size:11px; }
.audit-list article:last-child { border-bottom:0; }
.audit-list article > span { width:29px; height:29px; display:grid; place-items:center; flex:none; border-radius:9px; color:#08768c; background:#ddf7fc; font-weight:1000; }
.audit-list b,.audit-list strong { color:#1d3549; }
.audit-list small { display:block; margin-top:4px; color:#8b98a1; font-size:9px; }
.admin-dialog { width:min(680px,calc(100% - 28px)); max-height:90vh; padding:0; overflow:auto; border:0; border-radius:22px; background:#fff; box-shadow:0 26px 70px rgba(0,0,0,.28); }
.admin-dialog::backdrop { background:rgba(2,15,28,.68); backdrop-filter:blur(4px); }
.admin-dialog form { padding:24px; }
.dialog-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:17px; border-bottom:1px solid #e2e8ec; }
.dialog-head h2 { font-size:24px; }
.dialog-head .site-kicker { margin-bottom:7px; }
.dialog-head > button { width:37px; height:37px; border:0; border-radius:50%; color:#526575; background:#edf2f4; font-size:20px; }
.admin-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0 12px; }
.admin-form-grid .field small { display:block; margin-top:4px; color:#8a98a2; font-size:9px; }
.admin-form-message { min-height:18px; margin:13px 0 0; color:#a13939; font-size:11px; font-weight:800; }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:10px; }

@media (max-width:850px) {
  .admin-stats { grid-template-columns:repeat(2,1fr); }
  .data-refresh-actions { grid-template-columns:1fr; }
  .data-refresh-stats { grid-template-columns:repeat(2,1fr); }
  .admin-panel-head { align-items:flex-start; flex-direction:column; }
  .admin-search { width:100%; min-width:0; }
  .admin-table thead { display:none; }
  .admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display:block; width:100%; }
  .admin-table tr { padding:12px 15px; border-bottom:1px solid #e1e8eb; }
  .admin-table td { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:7px 0; border:0; }
  .admin-table td::before { content:attr(data-label); color:#84929d; font-size:8px; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
  .admin-table td:first-child::before,.admin-table td:last-child::before { display:none; }
  .admin-table .admin-actions { justify-content:flex-end; padding-top:12px; }
}

@media (max-width:600px) {
  .admin-header { height:66px; padding:0 14px; }
  .admin-header > div > span { display:none; }
  .admin-shell { width:calc(100% - 28px); padding-top:30px; }
  .admin-hero { align-items:stretch; flex-direction:column; }
  .admin-stats { gap:8px; }
  .admin-stats article { padding:15px; }
  .data-refresh-body { padding:15px; }
  .data-refresh-copy { align-items:flex-start; flex-direction:column; gap:5px; }
  .data-refresh-copy span { text-align:left; }
  .windows-updater-head { align-items:flex-start; flex-direction:column; }
  .bridge-download { width:100%; text-align:center; }
  .pairing-code-panel { grid-template-columns:1fr; }
  .pairing-code-panel code { grid-row:auto; grid-column:auto; }
  .admin-form-grid { grid-template-columns:1fr; }
  .dialog-actions .site-cta { flex:1; padding:0 12px; }
}
