@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #111318;
  --card: #1B1E27;
  --elevated: #252936;
  --accent: #D92B87;
  --accent-hover: #F044A0;
  --accent-soft: rgba(217, 43, 135, 0.12);
  --text: #F3F3F6;
  --text-2: #A5A8B5;
  --text-3: #8A8F9E;
  --border: #343744;
  --success: #45C58A;
  --warning: #E9B45D;
  --error: #E56B78;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --r-card: 14px;
  --r-input: 9px;
  --r-btn: 9px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --container: 1150px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { opacity: .7; cursor: progress; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
.hidden { display: none !important; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ SHARED COMPONENTS ============ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; border-radius: var(--r-btn);
  padding: 11px 18px; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-btn);
  color: var(--text-2); transition: background .15s, color .15s; position: relative;
}
.icon-btn:hover { background: var(--elevated); color: var(--text); }
.icon-btn:active { transform: scale(0.95); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(69,197,138,.15); flex-shrink: 0; }
.status-dot.down { background: var(--error); box-shadow: 0 0 0 3px rgba(229,107,120,.15); }
.status-dot.checking { background: var(--text-3); box-shadow: none; }
.progress { height: 4px; background: var(--elevated); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* Logos: defined once in the SVG sprite, coloured via CSS */
.ml-logo { display: block; flex-shrink: 0; color: var(--text); --logo-pop: #FFBC1F; }
.jm-sig { display: inline-flex; align-items: flex-start; color: var(--text-2); }
.jm-mark { width: 2.2em; height: 2em; margin: -0.5em 0 -0.5em 0.15em; }
.jm-sig .tm { font-size: .75em; margin-left: 1px; line-height: 1; }

/* Subtle branding footer */
.site-footer { text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: .02em; }
.site-footer strong { color: var(--text-2); font-weight: 500; }

/* Loading skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--card) 0%, var(--elevated) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 10px;
}
.sk-line { height: 10px; border-radius: 99px; margin-top: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Empty / error states */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  padding: 28px 16px; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-3); font-size: 13px;
}
.empty svg.lucide { width: 22px; height: 22px; margin-bottom: 4px; }
.empty strong { color: var(--text-2); font-weight: 500; font-size: 14px; }

/* ============ LOGIN ============ */
#login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 72px; position: relative; overflow: hidden;
}
#login::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(217,43,135,.14), transparent 70%),
    radial-gradient(500px 400px at 75% 85%, rgba(120,60,200,.10), transparent 70%);
}
.login-footer { position: absolute; left: 0; right: 0; bottom: 24px; }
.login-card { position: relative; width: 100%; max-width: 400px; padding: 36px 32px 24px; box-shadow: var(--shadow); }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .ml-logo { width: 58px; height: 76px; margin: 0 auto 16px; }
.login-brand h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.14em; }
.login-brand p { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.login-hint { text-align: center; font-size: 12px; color: var(--text-3); margin: -14px 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }

.input-wrap {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-input);
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(229,107,120,.12); }
.input-wrap > svg.lucide:first-child { color: var(--text-3); width: 16px; height: 16px; }
.input { flex: 1; min-width: 0; height: 100%; background: transparent; border: none; outline: none; padding: 0; }
.input::placeholder { color: var(--text-3); }
.pw-toggle { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-3); border-radius: 6px; flex-shrink: 0; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg.lucide { width: 16px; height: 16px; }
.field-error { color: var(--error); font-size: 12px; margin-top: 5px; }
.form-error {
  display: flex; align-items: center; gap: 8px; color: var(--error); font-size: 13px;
  background: rgba(229,107,120,.08); border: 1px solid rgba(229,107,120,.3); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px;
}
.form-error svg.lucide { width: 16px; height: 16px; }

.login-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 22px; font-size: 13px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); user-select: none; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox .box { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 4px; display: grid; place-items: center; background: var(--bg); transition: all .15s; }
.checkbox .box svg.lucide { width: 12px; height: 12px; stroke-width: 3; color: #fff; opacity: 0; }
.checkbox input:checked + .box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .box svg.lucide { opacity: 1; }
.checkbox input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { color: var(--accent-hover); }
.login-card .btn-primary { width: 100%; padding: 12px; }
.login-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* ============ DASHBOARD ============ */
#dashboard { min-height: 100vh; position: relative; }
#dashboard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(700px 300px at 20% 0%, rgba(217,43,135,.08), transparent 70%),
              radial-gradient(600px 300px at 85% 0%, rgba(120,60,200,.06), transparent 70%);
}
.container { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.1em; font-size: 14px; }
.brand .ml-logo { width: 26px; height: 34px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.badge-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: 2px solid var(--bg); }
.avatar-btn { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 99px; transition: background .15s; }
.avatar-btn:hover { background: var(--elevated); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: linear-gradient(135deg, #3A2A4A, #5A2A48); border: 1px solid var(--border); }
.avatar-btn > svg.lucide { width: 15px; height: 15px; color: var(--text-3); }

/* Dropdowns */
.dd-anchor { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.dd-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dd-head strong { display: block; font-size: 14px; }
.dd-head span { font-size: 12px; color: var(--text-3); }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; text-align: left; }
.dd-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.dd-item svg.lucide { width: 16px; height: 16px; }
.dd-item.danger:hover { color: var(--error); }
.notif-dd { width: 340px; padding: 0; }
.notif-dd .dd-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.notif-dd .dd-title button { font-size: 12px; color: var(--accent); font-weight: 500; }
.notif-dd .notif-list { padding: 6px; max-height: 360px; overflow-y: auto; }

/* Announcement */
.announcement {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(217,43,135,.12), rgba(217,43,135,.04));
  border: 1px solid rgba(217,43,135,.3); border-radius: 12px; transition: opacity .2s, transform .2s;
}
.announcement.alert { background: rgba(229,107,120,.08); border-color: rgba(229,107,120,.4); }
.announcement.alert > svg.lucide { color: var(--error); }
.announcement.alert .pill { background: rgba(229,107,120,.15); color: var(--error); }
.announcement.leaving { opacity: 0; transform: translateY(-6px); }
.announcement > svg.lucide { color: var(--accent); }
.announcement p { flex: 1; font-size: 14px; }
.pill { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-hover); white-space: nowrap; }
.announcement .icon-btn { width: 30px; height: 30px; }
.announcement .icon-btn svg.lucide { width: 16px; height: 16px; }

/* Welcome */
.welcome { padding: 28px 0 22px; }
.welcome h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.welcome p { color: var(--text-2); margin-top: 4px; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.service {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s, background .2s;
}
.service:hover { border-color: rgba(217,43,135,.5); transform: translateY(-2px); background: #1F2230; }
.service:active { transform: translateY(0); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.service-icon svg.lucide { width: 22px; height: 22px; }
.service h3 { font-size: 16px; font-weight: 600; }
.service p { color: var(--text-2); font-size: 13px; }
.service .arrow { margin-left: auto; color: var(--text-3); transition: color .2s, transform .2s; }
.service:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Main grid: both columns stretch to the same height so their bottoms line up */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--gap); align-items: stretch; }
.section + .section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.section-head h3 svg.lucide { color: var(--accent); width: 18px; height: 18px; }
.section-head .more { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 2px; }
.section-head .more:hover { color: var(--text); }
.section-head .more svg.lucide { width: 14px; height: 14px; }

.row-scroll { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.row-scroll.is-empty { display: block; }
.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.row-scroll > * { scroll-snap-align: start; }

/* Artwork: real image URL layered over a gradient fallback */
.art { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.art::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 55%); }
.art .art-title { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.art.has-image .art-title { display: none; }

/* Continue watching: featured hero + grid of the rest */
.cw-hero { display: block; border-radius: 14px; }
.cw-hero-art { aspect-ratio: 21/9; border-radius: 14px; border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.cw-hero-art::after {
  background:
    linear-gradient(90deg, rgba(10,11,15,.88) 0%, rgba(10,11,15,.45) 50%, transparent 100%),
    linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
}
.cw-hero-body { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 24px; max-width: 440px; }
.cw-hero-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hover); }
.cw-hero-body h4 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 2px; }
.cw-hero-sub { font-size: 13px; color: var(--text-2); }
.cw-hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.cw-resume { padding: 9px 16px; font-size: 13px; }
.cw-resume svg.lucide { width: 14px; height: 14px; fill: #fff; }
.cw-hero-progress { flex: 1; max-width: 200px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.cw-hero-progress .progress { flex: 1; }
.cw-hero:hover .cw-hero-art, .cw-hero:focus-visible .cw-hero-art { border-color: rgba(217,43,135,.5); }
.cw-hero:hover .cw-resume { background: var(--accent-hover); }

.cw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cw-item { display: block; cursor: pointer; border-radius: 12px; }
.cw-thumb { aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.cw-thumb .art-title { font-size: 14px; }
.cw-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.cw-play span { width: 40px; height: 40px; border-radius: 50%; background: rgba(217,43,135,.9); display: grid; place-items: center; }
.cw-play svg.lucide { fill: #fff; color: #fff; width: 16px; height: 16px; margin-left: 2px; }
.cw-item:hover .cw-thumb, .cw-item:focus-visible .cw-thumb { border-color: rgba(217,43,135,.5); transform: translateY(-2px); }
.cw-item:hover .cw-play, .cw-item:focus-visible .cw-play { opacity: 1; }
.cw-meta { padding: 10px 2px 0; }
.cw-meta h4 { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin: 2px 0 8px; }

/* Recently added */
.ra-row { grid-auto-columns: calc((100% - 70px) / 6); }
.poster { display: block; cursor: pointer; border-radius: 10px; }
.poster .art { aspect-ratio: 2/3; border-radius: 10px; border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.poster .art-title { font-size: 13px; line-height: 1.25; }
.poster:hover .art, .poster:focus-visible .art { border-color: rgba(217,43,135,.5); transform: translateY(-3px); }
.poster h4 { font-size: 13px; font-weight: 500; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster span { font-size: 12px; color: var(--text-3); }
.new-tag { position: absolute; z-index: 2; top: 8px; left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: #fff; }

/* Right column: notifications card grows to fill the column height */
.side-col { display: flex; flex-direction: column; gap: var(--gap); }
.side-card { padding: 20px; }
.side-card.grow { flex: 1; display: flex; flex-direction: column; }
.side-card.grow .view-all { margin-top: auto; }
.side-card .section-head h3 { font-size: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.stat strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--text-3); }
.stat.sk { height: 68px; border: none; }
.allowance { margin-top: 16px; }
.allowance-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.allowance-top span { color: var(--text-2); }
.allowance-top strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.allowance .progress { height: 6px; }
.allowance small { display: block; margin-top: 8px; color: var(--text-3); font-size: 12px; }

.notif { display: flex; gap: 12px; padding: 10px; border-radius: 10px; transition: background .15s; cursor: default; }
.notif:hover { background: rgba(255,255,255,.03); }
.notif-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--elevated); flex-shrink: 0; }
.notif-icon svg.lucide { width: 15px; height: 15px; }
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.notif-body strong .unread { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notif-body p { font-size: 12px; color: var(--text-2); }
.notif-body time { font-size: 11px; color: var(--text-3); }
.side-card .notif-list { margin: 0 -10px 10px; }
.side-card .notif-list .empty { margin: 0 10px; }
.view-all { width: 100%; padding: 9px; border-radius: 8px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 6px; }
.view-all:hover { color: var(--text); background: var(--elevated); }
.view-all svg.lucide { width: 14px; height: 14px; transition: transform .2s; }
.view-all.expanded svg.lucide { transform: rotate(180deg); }

/* Server strip */
.server-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 0;
  margin: 40px 0 24px; padding: 12px 20px; font-size: 13px; color: var(--text-2); transition: border-color .2s, background .2s;
}
.server-strip.offline { border-color: rgba(229,107,120,.4); background: rgba(229,107,120,.06); }
.strip-item { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.strip-item:first-child { padding-left: 0; }
.strip-item:last-child { padding-right: 0; }
.strip-item + .strip-item { border-left: 1px solid var(--border); }
.strip-item svg.lucide { width: 15px; height: 15px; color: var(--text-3); }
.strip-item strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.strip-item.online strong { color: var(--success); }
.strip-item.down strong { color: var(--error); }
.dash-footer { padding-bottom: 28px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px;
  font-size: 13px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; transition: all .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg.lucide { color: var(--accent); width: 16px; height: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .main-grid { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
  .server-strip { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header { height: 60px; }
  .brand { gap: 8px; }
  .brand .brand-text { font-size: 11px; letter-spacing: 0.08em; }
  .welcome { padding: 20px 0 16px; }
  .welcome h2 { font-size: 24px; }
  .services { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .service { padding: 16px 18px; }
  .side-col { grid-template-columns: 1fr; }
  .cw-hero-art { aspect-ratio: 16/10; }
  .cw-hero-body { left: 16px; right: 16px; bottom: 16px; }
  .cw-hero-body h4 { font-size: 19px; }
  .cw-hero-actions { gap: 12px; margin-top: 12px; }
  .cw-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  }
  .cw-grid > * { scroll-snap-align: start; }
  .ra-row { grid-auto-columns: 38%; }
  .announcement .pill { display: none; }
  .notif-dd { width: min(340px, calc(100vw - 32px)); right: -48px; }
  .server-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .strip-item { padding: 0 12px; }
  .strip-item + .strip-item { border-left: none; }
  .strip-item:nth-child(even) { border-left: 1px solid var(--border); }
  .strip-item:nth-child(odd) { padding-left: 0; }
  .login-card { padding: 28px 20px 20px; }
}

/* ============ PORTAL ADDITIONS (CSP-safe replacements for inline styles) ============ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sk-hero { aspect-ratio: 21/9; border-radius: 14px; }
.sk-thumb { aspect-ratio: 16/9; border-radius: 12px; }
.sk-poster { aspect-ratio: 2/3; }
.sk-icon { width: 32px; height: 32px; border-radius: 9px; }
.sk-bar { width: 100%; height: 6px; margin-top: 4px; }
.sk-strip { width: 100%; margin: 4px 0; }
.sk-grow { flex: 1; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
.mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt2 { margin-top: 2px; }
.t-warning { color: var(--warning); } .t-success { color: var(--success); } .t-accent { color: var(--accent); }
.t-muted { color: var(--text-2); } .t-error { color: var(--error); }
.allowance + .allowance { margin-top: 12px; }
.allowance .progress.full > span { background: var(--warning); }
.logo-pop { fill: var(--logo-pop, #FFBC1F); }
