@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1421;
  --bg-soft: #101d2b;
  --surface: #132333;
  --surface-2: #192c3c;
  --surface-3: #203649;
  --line: rgba(192, 216, 231, .12);
  --line-strong: rgba(192, 216, 231, .2);
  --text: #f0f5f7;
  --muted: #9eb2c2;
  --subtle: #73899a;
  --teal: #58dbc7;
  --teal-strong: #22c9b4;
  --ice: #b9d1e1;
  --blue: #77a9d5;
  --red: #f0848d;
  --green: #8bd4ae;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius: 18px;
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(900px 600px at 80% -10%, rgba(35, 76, 94, .25), transparent 60%), var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(88, 219, 199, .65); outline-offset: 2px; }
a { color: inherit; }

.app-shell { min-height: 100vh; padding-bottom: 52px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(8, 17, 28, .88); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 205px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #09141e; background: linear-gradient(140deg, #86c9df, #54dcc4); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font: 800 14px/1 'Manrope', sans-serif; letter-spacing: .11em; }
.brand-sub { display: block; color: var(--muted); font: 500 10px/1.5 'DM Sans', sans-serif; letter-spacing: .13em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav-button { border: 0; background: transparent; padding: 10px 13px; min-height: 42px; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; transition: .18s ease; }
.nav-button:hover, .nav-button.active { color: var(--text); background: rgba(177, 208, 225, .1); }
.nav-button.active { box-shadow: inset 0 -2px var(--teal); }
.user-menu { display: flex; align-items: center; gap: 10px; min-width: 200px; justify-content: flex-end; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #0b1722; font-size: 11px; font-weight: 800; background: linear-gradient(145deg, #a5d8dd, #51cdbd); }
.user-label { text-align: right; }
.user-label strong { display: block; font-size: 12px; }
.user-label small { color: var(--muted); font-size: 10px; }
.link-button { background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; font-size: 12px; }
.link-button:hover { color: var(--text); }

.main { width: min(1420px, 100%); margin: 0 auto; padding: 30px clamp(16px, 3vw, 42px) 80px; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(158, 194, 212, .18); border-radius: 23px; background: linear-gradient(112deg, rgba(29, 55, 72, .98), rgba(17, 34, 49, .97) 55%, rgba(25, 55, 70, .96)); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 42%; opacity: .4; background: repeating-linear-gradient(90deg, transparent 0 76px, rgba(166, 205, 220, .12) 77px 78px), repeating-linear-gradient(0deg, transparent 0 48px, rgba(166,205,220,.08) 49px 50px); mask-image: linear-gradient(90deg, transparent, black); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 390px; height: 390px; right: 6%; top: -210px; border: 1px solid rgba(183, 220, 231, .13); border-radius: 50%; box-shadow: 0 0 0 32px rgba(183,220,231,.025), 0 0 0 64px rgba(183,220,231,.025), 0 0 0 96px rgba(183,220,231,.025); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(88,219,199,.65); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 11px 0 10px; font: 800 clamp(28px, 3.2vw, 42px)/1.1 'Manrope', sans-serif; letter-spacing: -.04em; }
.hero-copy { max-width: 600px; margin: 0; color: #bdd0db; font-size: 14px; line-height: 1.6; }
.hero-side { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9, 20, 31, .4); }
.hero-side svg { width: 20px; color: var(--ice); }
.hero-side strong { display: block; font-size: 12px; }
.hero-side small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.hero-toolbar { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.select-wrap { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(8, 18, 29, .48); }
.select-wrap label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.select-wrap select { color: var(--text); background: transparent; border: 0; outline: 0; min-width: 150px; font-weight: 600; font-size: 12px; }
.select-wrap option { background: var(--surface); }
.button { min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .18s ease; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: #071a1c; background: var(--teal); box-shadow: 0 4px 20px rgba(34, 201, 180, .14); }
.button-primary:hover { background: #7ce9d8; transform: translateY(-1px); }
.button-quiet { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.035); }
.button-quiet:hover { background: rgba(255,255,255,.08); }
.button-danger { color: #ffc3c7; border-color: rgba(240,132,141,.25); background: rgba(240,132,141,.08); }
.button-small { min-height: 34px; padding: 0 11px; font-size: 11px; }
.button-wide { width: 100%; }
.text-link { color: var(--teal); background: none; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 29px 0 14px; }
.section-title { margin: 0; font: 700 18px/1.2 'Manrope', sans-serif; letter-spacing: -.02em; }
.section-sub { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.tiny-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); gap: 13px; align-items: stretch; }
.team-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(22,39,55,.94), rgba(15,28,42,.97)); overflow: hidden; }
.team-panel-head { padding: 15px 17px 12px; border-bottom: 1px solid var(--line); }
.team-title-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.team-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-ident .avatar { width: 38px; height: 38px; font-size: 10px; }
.team-ident strong { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.2 'Manrope',sans-serif; }
.team-ident small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.team-select { max-width: 145px; color: var(--text); border: 0; border-bottom: 1px solid var(--line-strong); padding: 6px 22px 6px 0; background: transparent; font-weight: 700; font-size: 13px; }
.team-select option { background: var(--surface); }
.team-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.mini-stat { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; }
.mini-stat b { color: var(--text); margin-left: 4px; }
.swap-column { display: flex; align-items: center; justify-content: center; }
.swap-glyph { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ice); background: var(--surface); }
.swap-glyph svg { width: 18px; }
.asset-tools { display: flex; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.search-box { width: 100%; min-width: 0; height: 36px; padding: 0 10px; color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: rgba(3, 12, 21, .25); font-size: 11px; }
.asset-filter { flex: 0 0 auto; min-width: 92px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(3, 12, 21, .25); font-size: 10px; }
.asset-scroll { max-height: min(68vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; scrollbar-width: thin; scrollbar-color: rgba(160,190,208,.25) transparent; }
.asset-scroll::-webkit-scrollbar { width: 6px; }
.asset-scroll::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(160,190,208,.25); }
.asset-card { width: 100%; min-height: 84px; margin: 0 0 8px; display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: rgba(8, 20, 31, .55); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.asset-card:hover { border-color: rgba(161, 196, 215, .32); background: rgba(30, 51, 68, .8); }
.asset-card.selected { border-color: var(--teal); background: linear-gradient(105deg, rgba(28, 101, 100, .32), rgba(8, 23, 33, .72)); box-shadow: inset 3px 0 var(--teal), 0 0 0 1px rgba(88,219,199,.08); }
.asset-card.pick-selected { border-color: var(--blue); background: linear-gradient(105deg, rgba(67, 103, 141, .34), rgba(8, 23, 33, .72)); box-shadow: inset 3px 0 var(--blue); }
.asset-emblem { width: 38px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ice); background: linear-gradient(145deg, #263c4e, #172a3a); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.asset-emblem.qb { color: #eeb9be; background: rgba(131, 67, 86, .28); }
.asset-emblem.rb { color: #9ae2cf; background: rgba(46, 121, 105, .28); }
.asset-emblem.wr { color: #a9c9f2; background: rgba(62, 98, 150, .28); }
.asset-emblem.te { color: #d5b9e7; background: rgba(114, 77, 141, .3); }
.asset-emblem.pick { color: #b9d1e1; border: 1px solid rgba(185,209,225,.16); }
.asset-main { min-width: 0; }
.asset-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.asset-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; font: 700 14px/1.15 'Manrope',sans-serif; }
.asset-detail { display: flex; gap: 7px; align-items: center; margin-top: 5px; color: var(--muted); font-size: 9px; }
.asset-detail .spark { color: var(--teal); }
.asset-news { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.asset-news::before { content: 'NEWS · '; color: var(--blue); font-weight: 700; }
.asset-news.urgent { color: #ffafb6; }
.asset-side { text-align: right; min-width: 36px; }
.asset-value { display: block; font: 700 11px/1.2 'Manrope',sans-serif; }
.asset-value-label { display: block; color: var(--subtle); font-size: 8px; margin-top: 4px; }
.pick-marker { padding: 2px 5px; border: 1px solid rgba(127,170,212,.3); color: #a9c9eb; border-radius: 4px; font-size: 8px; }
.check-ring { width: 28px; height: 28px; justify-self: end; border: 2px solid rgba(201, 221, 232, .4); border-radius: 50%; display: grid; place-items: center; color: transparent; }
.asset-card.selected .check-ring { color: #0d2627; border-color: var(--teal); background: var(--teal); }
.asset-card.pick-selected .check-ring { color: #0e2030; border-color: var(--blue); background: var(--blue); }
.check-ring svg { width: 14px; height: 14px; }
.empty-list { padding: 28px 15px; color: var(--muted); text-align: center; font-size: 12px; }
.column-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 14, 23, .36); color: var(--muted); font-size: 10px; }
.column-total strong { color: var(--text); font-size: 11px; }

.live-tray { position: fixed; z-index: 30; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(940px, calc(100% - 30px)); display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 15px; padding: 13px 16px; border: 1px solid rgba(167, 198, 214, .22); border-radius: 18px; background: rgba(10, 24, 36, .95); box-shadow: 0 20px 70px rgba(0,0,0,.5); backdrop-filter: blur(22px); }
.tray-side { min-width: 0; }
.tray-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tray-summary { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 4px; font-size: 11px; font-weight: 600; }
.tray-vs { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-2); font: 800 10px 'Manrope',sans-serif; }
.tray-center { min-width: 112px; text-align: center; }
.tray-center strong { display: block; color: var(--teal); font: 800 14px 'Manrope',sans-serif; }
.tray-center small { color: var(--muted); font-size: 9px; }
.tray-submit { white-space: nowrap; }
.mobile-tray-top { display: none; }

.grade-banner { padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(88,219,199,.22); border-radius: 13px; background: linear-gradient(100deg, rgba(27,92,88,.27), rgba(21,47,64,.5)); }
.grade-banner h2 { margin: 0; font: 800 14px 'Manrope',sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.grade-banner p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.grade-pill { padding: 7px 11px; border-radius: 8px; color: #08201e; background: var(--teal); font: 800 11px 'Manrope',sans-serif; white-space: nowrap; }
.result-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px minmax(0,1fr); gap: 14px; margin-top: 15px; }
.result-side, .result-center, .insight-box { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, rgba(21,39,55,.96), rgba(13,27,40,.98)); }
.result-side { padding: 16px; }
.result-side h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font: 700 14px 'Manrope',sans-serif; }
.result-side h3 span { color: var(--teal); }
.result-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.result-item:first-of-type { border-top: 0; }
.result-item strong { display: block; font-size: 12px; }
.result-item small { color: var(--muted); display: block; margin-top: 4px; font-size: 10px; }
.result-item .result-news { color: var(--blue); }
.result-item em { color: var(--teal); font: 700 11px 'Manrope',sans-serif; font-style: normal; }
.result-center { padding: 19px 17px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.result-center .tiny-label { letter-spacing: .16em; }
.score-compare { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 14px; }
.score-block strong { display: block; font: 800 21px 'Manrope',sans-serif; }
.score-block small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.score-dash { color: var(--subtle); font-size: 18px; }
.score-diff { padding: 8px; border-radius: 9px; color: var(--teal); background: rgba(88,219,199,.1); font: 700 11px 'Manrope',sans-serif; }
.manager-verdict { margin-top: 13px; padding: 11px; border-radius: 10px; color: #c0e8db; background: rgba(88,219,199,.1); font-size: 11px; line-height: 1.5; }
.market-line { padding-top: 13px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.appraisal { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.appraisal h3 { margin: 0 0 9px; font: 700 13px 'Manrope',sans-serif; }
.appraisal p { margin: 0; color: #d2dce2; font-size: 12px; line-height: 1.65; }
.insights-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.insight-box { padding: 16px; min-height: 146px; }
.insight-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--ice); font: 700 11px 'Manrope',sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.insight-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(158,196,217,.1); color: var(--teal); }
.insight-icon svg { width: 16px; height: 16px; }
.insight-box p { margin: 0; color: #c5d2db; font-size: 10px; line-height: 1.6; }
.insight-box strong { display: block; color: var(--text); font-size: 11px; margin: 2px 0 4px; }
.result-actions { display: flex; justify-content: center; gap: 9px; margin: 17px 0 0; }

/* Final trade appraisal: a compact, visual market-versus-manager summary. */
.grade-banner { min-height: 88px; padding: 13px 20px; display: grid; grid-template-columns: 54px minmax(180px,.95fr) minmax(170px,1.2fr) auto; gap: 15px; border-color: rgba(88,219,199,.4); background: linear-gradient(105deg,rgba(21,74,78,.48),rgba(13,30,45,.95) 54%,rgba(16,43,58,.8)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 8px 30px rgba(0,0,0,.12); }
.grade-banner.bad { border-color: rgba(240,132,141,.42); background: linear-gradient(105deg,rgba(100,37,54,.36),rgba(13,30,45,.95) 54%,rgba(27,36,55,.84)); }
.grade-banner.even { border-color: rgba(119,169,213,.35); }
.banner-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(88,219,199,.34); border-radius: 13px; color: var(--teal); background: rgba(88,219,199,.08); }
.banner-verdict small,.banner-score small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.banner-verdict h2 { margin-top: 4px; color: var(--green); font-size: 17px; }
.grade-banner.bad .banner-verdict h2 { color: var(--red); }
.grade-banner > p { align-self: center; margin: 0; padding-left: 16px; border-left: 1px solid var(--line-strong); color: #c3d1db; font-size: 11px; line-height: 1.5; }
.banner-score { display: grid; grid-template-columns: 32px auto; column-gap: 8px; align-items: center; color: var(--green); }
.banner-score > span { grid-row: span 2; }
.banner-score strong { font: 800 23px 'Manrope',sans-serif; }
.banner-score small { grid-column: 2; font-size: 8px; }
.result-layout { grid-template-columns: minmax(0,1fr) 318px minmax(0,1fr); gap: 12px; }
.result-side { padding: 14px; }
.result-side h3 { gap: 9px; margin-bottom: 10px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.result-side h3 > span:nth-child(2) { color: var(--teal); }
.result-side h3 small { margin-left: auto; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.side-logo { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(180,210,225,.08); }
.side-logo img { width: 29px; height: 29px; object-fit: contain; }
.side-logo .asset-icon { color: var(--teal); }
.result-item { position: relative; min-height: 66px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; margin-top: 8px; padding: 9px 10px; border: 1px solid rgba(192,216,231,.09); border-radius: 10px; background: linear-gradient(110deg,rgba(26,48,65,.75),rgba(15,31,45,.6)); }
.result-item:first-of-type { border-top: 1px solid rgba(192,216,231,.09); }
.result-item::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--teal); }
.result-item:nth-of-type(3n+2)::before { background: #50bce7; }
.result-item:nth-of-type(3n)::before { background: #a5df67; }
.item-emblem { width: 39px; height: 40px; display: grid; place-items: center; }
.player-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.pick-emblem { color: var(--ice); }
.pick-emblem .asset-icon { width: 34px; height: 34px; }
.item-copy { min-width: 0; }
.item-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item small { font-size: 9px; }
.item-meta { display: flex !important; align-items: center; gap: 4px; }
.item-meta .asset-icon { width: 13px; height: 13px; color: var(--green); }
.result-item em { align-self: start; padding: 5px 7px; border-radius: 6px; color: var(--ice); background: rgba(135,175,200,.08); font-size: 10px; }
.result-news { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center-title { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--ice); font: 700 10px 'Manrope',sans-serif; letter-spacing: .15em; }
.center-title .asset-icon { color: var(--teal); }
.result-center { padding: 17px 16px; background: linear-gradient(155deg,rgba(17,36,52,.98),rgba(10,24,37,.98)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.score-compare { gap: 12px; margin: 13px 0 10px; }
.score-block strong { font-size: 19px; }
.score-block strong.good,.good { color: var(--green) !important; }
.score-block strong.bad,.bad { color: var(--red) !important; }
.score-block strong.even,.even { color: var(--ice) !important; }
.score-block small { font-size: 8px; }
.score-diff { align-self: center; padding: 6px 9px; font-size: 9px; }
.manager-verdict { margin-top: 9px; padding: 8px; font-size: 9px; }
.value-graph { margin-top: 11px; padding: 10px 9px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,16,27,.36); text-align: left; }
.graph-heading { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--muted); font: 700 8px 'Manrope',sans-serif; letter-spacing: .1em; }
.graph-heading .asset-icon { color: var(--teal); }
.value-compare-row { display: grid; grid-template-columns: 72px minmax(20px,1fr) 49px; align-items: center; gap: 6px; margin: 7px 0; }
.value-compare-row > span { color: var(--muted); font-size: 8px; }
.value-compare-row > strong { text-align: right; font: 700 9px 'Manrope',sans-serif; }
.value-axis { position: relative; height: 8px; border-radius: 6px; background: linear-gradient(90deg,rgba(240,132,141,.11) 0 49.5%,rgba(139,212,174,.1) 50.5% 100%); }
.axis-center { position: absolute; z-index: 1; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid rgba(221,235,243,.32); }
.value-bar { position: absolute; top: 1px; bottom: 1px; width: var(--bar-width); border-radius: 6px; }
.value-bar[style*="right"] { left: 50%; }
.value-bar[style*="left"] { right: 50%; }
.value-bar.good { background: linear-gradient(90deg,#43b6a6,#a6e76c); }
.value-bar.bad { background: linear-gradient(90deg,#c55670,#f0848d); }
.value-bar.even { left: calc(50% - 2px); width: 4px; background: var(--ice); }
.graph-caption { margin-top: 7px; color: var(--subtle); font-size: 7px; line-height: 1.35; }
.market-line { display: grid; grid-template-columns: 1fr; gap: 3px; padding-top: 9px; margin-top: 9px; text-align: left; }
.market-line .tiny-label { font-size: 8px; }
.market-line strong { color: var(--green); font: 700 9px 'Manrope',sans-serif; }
.market-line small { color: var(--muted); font-size: 8px; }
.insight-box { min-height: 156px; padding: 15px; background: linear-gradient(145deg,rgba(17,36,52,.95),rgba(11,25,38,.98)); }
.insight-head { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.insight-icon { width: 35px; height: 35px; color: var(--teal); background: rgba(88,219,199,.07); }
.insight-icon .asset-icon { width: 26px; height: 26px; }
.insight-box p { font-size: 9px; line-height: 1.55; }
.cap-insight p { display: grid; gap: 8px; }
.cap-team { display: grid; gap: 2px; }
.cap-team strong { color: var(--ice); font-size: 10px; }
.cap-team span { color: #c5d2db; font-size: 9px; }
.cap-team b { font: 700 9px 'Manrope',sans-serif; }
.cap-team small { color: var(--muted); font-size: 8px; }

.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 2px 0 20px; }
.page-title-row h1 { font-size: clamp(26px,3vw,36px); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19,35,51,.96), rgba(14,27,40,.96)); }
.panel-pad { padding: 20px; }
.access-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-height: 42px; padding: 0 11px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(3,13,22,.35); }
.field option { background: var(--surface); }
.access-status { padding: 16px; border: 1px solid rgba(119,169,213,.18); border-radius: 13px; background: rgba(63,94,123,.12); }
.access-status h3 { margin-bottom: 7px; font: 700 14px 'Manrope',sans-serif; }
.access-status p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; color: var(--ice); background: rgba(185,209,225,.1); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-chip.pending { color: #e7cc9e; background: rgba(186,148,75,.12); }
.status-chip.verified { color: var(--green); background: rgba(80,169,119,.14); }
.access-list { display: grid; gap: 8px; margin-top: 14px; }
.access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4,14,22,.25); }
.access-row strong { display: block; font-size: 12px; }
.access-row small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.9fr); gap: 14px; }
.admin-users { display: grid; gap: 8px; }
.admin-user { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(5,15,24,.25); }
.admin-user strong { display: block; font-size: 12px; }
.admin-user small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-actions { display: flex; gap: 6px; }
.grant-select { max-width: 190px; text-overflow: ellipsis; }
.table-wrap { overflow: auto; }
.ranking-list { display: grid; gap: 5px; max-height: 72vh; overflow: auto; padding-right: 4px; }
.rank-row { min-height: 58px; display: grid; grid-template-columns: 30px 34px minmax(0,1fr) auto 58px; gap: 9px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(6,17,27,.38); }
.rank-grip { width: 30px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); cursor: grab; touch-action: none; }
.rank-grip:active { cursor: grabbing; color: var(--teal); border-color: var(--teal); }
.rank-num { color: var(--subtle); font: 700 11px 'Manrope',sans-serif; }
.rank-name { min-width: 0; }
.rank-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.rank-name small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.rank-value-wrap { display: grid; justify-items: end; gap: 2px; }
.rank-value-wrap small { color: var(--subtle); font-size: 7px; letter-spacing: .07em; }
.rank-value { color: var(--teal); font: 700 11px 'Manrope',sans-serif; }
.rank-moves { display: flex; gap: 3px; }
.rank-moves button { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; font-size: 13px; line-height: 1; }
.rank-moves button:hover { border-color: var(--teal); color: var(--teal); }
.rank-row.dragging { opacity: .4; border-color: var(--teal); }
.rank-row.drag-over { border-color: var(--teal); background: rgba(88,219,199,.09); }
.watch-title { padding: 0; border: 0; color: var(--text); background: none; text-align: left; cursor: pointer; font: 700 12px 'Manrope',sans-serif; }
.watch-title:hover { color: var(--teal); }
.watch-row { position: relative; padding-right: 43px; }
.watch-delete { position: absolute; top: 7px; right: 7px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; }
.watch-delete:hover, .watch-delete:focus-visible { color: var(--red); border-color: var(--red); background: rgba(240,132,141,.1); }
.record-meta { margin: 12px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.record-value-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.record-value-row strong { color: var(--text); font-size: 14px; text-align: right; }
.history-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.8fr) minmax(0,1fr); gap: 12px; align-items: start; }
.history-side h2 { font: 700 15px 'Manrope',sans-serif; margin: 0 0 4px; }
.history-side > small { color: var(--muted); }
.history-assets { display: grid; gap: 7px; margin-top: 13px; }
.history-asset { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6,17,27,.38); }
.history-asset strong, .history-asset small { display: block; }
.history-asset strong { font-size: 11px; }
.history-asset small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.history-asset b { color: var(--teal); font: 700 10px 'Manrope',sans-serif; white-space: nowrap; }
.current-evaluation h2 { margin: 13px 0 7px; font: 700 16px 'Manrope',sans-serif; }
.current-evaluation p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.current-evaluation > small { color: var(--subtle); font-size: 9px; }
.detail-actions { margin-top: 16px; }
.notice { padding: 11px 13px; border: 1px solid rgba(119,169,213,.18); border-radius: 10px; color: var(--muted); background: rgba(81,126,160,.1); font-size: 11px; line-height: 1.55; }
.empty-state { padding: 38px 20px; text-align: center; }
.empty-state .empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 17px; color: var(--teal); background: rgba(88,219,199,.1); }
.empty-state svg { width: 26px; }
.empty-state h2 { margin-bottom: 7px; font: 700 18px 'Manrope',sans-serif; }
.empty-state p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top, #183349 0, #0b1421 58%); }
.login-card { width: min(430px,100%); padding: 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(15,31,45,.91); box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 25px; }
.login-card h1 { font-size: 25px; }
.login-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 18px 0; border-radius: 10px; background: rgba(1,10,18,.45); }
.auth-tab { min-height: 35px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.auth-tab.active { color: var(--text); background: var(--surface-3); }
.login-form { display: grid; gap: 12px; }
.login-foot { margin-top: 16px; color: var(--subtle); font-size: 10px; line-height: 1.5; }
.demo-note { margin-top: 14px; padding: 11px; border-radius: 10px; color: var(--muted); background: rgba(88,219,199,.07); font-size: 10px; line-height: 1.5; }
.toast { position: fixed; z-index: 60; bottom: 22px; left: 50%; transform: translate(-50%,18px); opacity: 0; pointer-events: none; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: #1b3040; box-shadow: var(--shadow); font-size: 12px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.back-link { margin-bottom: 15px; padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 11px; }
.back-link:hover { color: var(--text); }
.footer { display: flex; justify-content: space-between; gap: 18px; width: min(1420px,100%); margin: 0 auto; padding: 0 clamp(16px,3vw,42px) 24px; color: var(--subtle); font-size: 10px; }
.demo-badge { position: fixed; z-index: 25; top: 82px; right: 16px; padding: 7px 9px; border: 1px solid rgba(119,169,213,.23); border-radius: 8px; color: var(--ice); background: rgba(24,47,66,.82); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
  .topbar { padding-inline: 20px; }
  .brand { min-width: auto; }
  .user-menu { min-width: auto; }
  .user-label { display: none; }
  .result-layout { grid-template-columns: minmax(0,1fr) 260px minmax(0,1fr); }
  .insights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-grid { grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); gap: 8px; }
  .asset-card { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 7px; padding: 8px; }
  .asset-emblem { width: 32px; height: 38px; }
  .check-ring { width: 25px; height: 25px; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 11px; }
  .brand-sub { font-size: 8px; }
  .nav { display: none; }
  .user-menu { gap: 5px; }
  .main { padding: 17px 12px 118px; }
  .hero { padding: 20px 17px; border-radius: 18px; }
  .hero-row { align-items: flex-start; }
  .hero-side { display: none; }
  .hero-toolbar { display: grid; grid-template-columns: 1fr auto; margin-top: 18px; gap: 8px; }
  .select-wrap { min-height: 40px; padding-inline: 9px; }
  .select-wrap label { font-size: 9px; }
  .select-wrap select { min-width: 0; width: 100%; font-size: 11px; }
  .hero-toolbar .button { min-height: 40px; padding-inline: 11px; font-size: 10px; }
  .section-head { margin: 22px 2px 10px; }
  .section-title { font-size: 15px; }
  .section-sub { font-size: 10px; }
  .team-grid { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 5px; }
  .team-panel { border-radius: 13px; }
  .team-panel-head { padding: 10px 8px 8px; }
  .team-title-row { align-items: flex-start; }
  .team-ident { gap: 6px; }
  .team-ident .avatar { width: 29px; height: 29px; font-size: 8px; }
  .team-ident strong { max-width: 82px; font-size: 10px; }
  .team-ident small { font-size: 8px; margin-top: 2px; }
  .team-select { max-width: 100%; min-width: 0; width: 100%; padding: 8px 18px 8px 5px; margin-top: 8px; font-size: 10px; }
  .team-title-row { display: block; }
  .team-meta { gap: 4px; margin-top: 7px; }
  .mini-stat { padding: 4px 5px; font-size: 8px; }
  .swap-glyph { width: 26px; height: 26px; }
  .swap-glyph svg { width: 13px; }
  .asset-tools { display: block; padding: 7px; }
  .search-box { height: 32px; font-size: 10px; }
  .asset-filter { width: 100%; height: 29px; margin-top: 5px; font-size: 9px; }
  .asset-scroll { max-height: 58vh; padding: 6px; }
  .asset-card { min-height: 77px; margin-bottom: 6px; grid-template-columns: 25px minmax(0,1fr) 24px; gap: 5px; padding: 7px 5px; border-radius: 10px; }
  .asset-emblem { width: 25px; height: 31px; border-radius: 7px; font-size: 8px; }
  .asset-tag { font-size: 7px; gap: 3px; }
  .asset-name { margin-top: 4px; font-size: 10px; }
  .asset-detail { margin-top: 4px; font-size: 7px; gap: 4px; }
  .asset-news { max-width: 100%; margin-top: 3px; font-size: 6px; }
  .asset-side { display: none; }
  .check-ring { width: 22px; height: 22px; border-width: 1.5px; }
  .check-ring svg { width: 11px; height: 11px; }
  .column-total { margin-top: 7px; padding: 8px 6px; font-size: 8px; }
  .column-total strong { font-size: 9px; }
  .live-tray { bottom: 74px; width: calc(100% - 18px); grid-template-columns: 1fr 32px 1fr; gap: 6px; padding: 9px; border-radius: 15px; }
  .tray-side { min-width: 0; }
  .tray-label { font-size: 7px; }
  .tray-summary { font-size: 9px; }
  .tray-vs { width: 26px; height: 26px; font-size: 8px; }
  .tray-center { display: none; }
  .tray-submit { position: absolute; top: -38px; right: 3px; min-height: 32px; padding-inline: 11px; font-size: 9px; }
  .mobile-bottom-nav { position: fixed; z-index: 35; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat( auto-fit, minmax(0,1fr) ); padding: 7px 5px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8,17,28,.96); backdrop-filter: blur(18px); }
  .mobile-bottom-nav .nav-button { min-height: 42px; padding: 6px 2px; font-size: 9px; }
  .result-layout { grid-template-columns: 1fr 1fr; gap: 8px; }
  .result-center { grid-column: 1/-1; grid-row: 1; padding: 17px; }
  .result-side { padding: 10px; }
  .result-side h3 { font-size: 11px; margin-bottom: 9px; }
  .result-item { gap: 6px; padding: 8px 0; }
  .result-item strong { font-size: 10px; }
  .result-item small { font-size: 8px; }
  .result-item em { font-size: 9px; }
  .score-block strong { font-size: 18px; }
  .insights-grid { gap: 8px; }
  .insight-box { min-height: 130px; padding: 11px; }
  .insight-head { gap: 6px; margin-bottom: 9px; font-size: 9px; }
  .insight-icon { width: 25px; height: 25px; }
  .insight-box p { font-size: 9px; }
  .appraisal { padding: 14px; }
  .appraisal p { font-size: 11px; }
  .access-layout, .admin-grid { grid-template-columns: 1fr; }
  .history-detail-grid { grid-template-columns: 1fr 1fr; }
  .history-detail-grid .current-evaluation { grid-column: 1/-1; grid-row: 1; }
  .rank-row { grid-template-columns: 28px 25px minmax(0,1fr) auto 55px; gap: 6px; padding: 7px; }
  .rank-grip { width: 28px; height: 38px; }
  .rank-name strong { font-size: 10px; }
  .rank-name small { font-size: 8px; }
  .rank-value { font-size: 10px; }
  .rank-moves button { width: 24px; height: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-title-row { align-items: flex-start; flex-direction: column; }
  .page-title-row h1 { font-size: 27px; }
  .admin-user { grid-template-columns: 1fr; }
  .admin-actions { flex-wrap: wrap; }
  .grant-select { flex: 1 1 100%; max-width: none; min-height: 40px; }
  .footer { padding-inline: 14px; padding-bottom: 18px; flex-direction: column; gap: 6px; font-size: 9px; }
  .demo-badge { top: 68px; right: 8px; font-size: 8px; }
}
@media (max-width: 360px) {
  .asset-card { grid-template-columns: 22px minmax(0,1fr) 21px; gap: 4px; }
  .asset-emblem { width: 22px; height: 28px; }
  .asset-name { font-size: 9px; }
  .team-ident strong { max-width: 65px; }
  .rank-row { grid-template-columns: 25px 21px minmax(0,1fr) auto 49px; gap: 4px; }
  .rank-grip { width: 25px; }
  .rank-value-wrap small { font-size: 6px; }
}
@media (max-width: 720px) {
  .grade-banner { grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; padding: 11px; }
  .banner-icon { width: 36px; height: 36px; border-radius: 10px; }
  .banner-icon .asset-icon { width: 30px; height: 30px; }
  .banner-verdict small { font-size: 7px; }
  .banner-verdict h2 { font-size: 12px; }
  .grade-banner > p { grid-column: 1/-1; grid-row: 2; padding: 7px 0 0; border: 0; border-top: 1px solid var(--line); font-size: 9px; }
  .banner-score { grid-column: 3; grid-row: 1; grid-template-columns: 21px auto; gap: 4px; }
  .banner-score > span .asset-icon { width: 22px; height: 22px; }
  .banner-score strong { font-size: 16px; }
  .banner-score small { font-size: 6px; }
  .result-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .result-center { grid-column: 1/-1; grid-row: 1; }
  .result-side { min-width: 0; padding: 8px; }
  .result-side h3 { gap: 5px; font-size: 9px; }
  .result-side h3 small { font-size: 6px; }
  .side-logo { width: 25px; height: 25px; flex-basis: 25px; }
  .side-logo img { width: 22px; height: 22px; }
  .result-item { grid-template-columns: 27px minmax(0,1fr); gap: 4px; padding: 7px 5px; }
  .item-emblem { width: 25px; height: 28px; }
  .player-logo { width: 24px; height: 24px; }
  .item-copy { padding-right: 31px; }
  .item-copy strong { font-size: 9px; }
  .result-item small { font-size: 7px; }
  .result-item em { position: absolute; top: 6px; right: 5px; padding: 3px 4px; font-size: 7px; }
  .trend-pair { gap: 1px; }
  .trend-pair .asset-icon { width: 10px; height: 10px; }
  .item-meta { font-size: 6px !important; }
  .insights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cap-team strong { font-size: 9px; }
  .cap-team span,.cap-team b { font-size: 8px; }
}
