/* Skyice ICE Craft: one restrained design language for every product surface. */
:root {
  --skyice-blue: #188CF2;
  --skyice-ice: #13C4E8;
  --skyice-violet: #13C4E8;
  --skyice-dark: #121214;
  --bg: #121214;
  --panel: #1A1F27;
  --surface: #1A1F27;
  --surface-raised: #222C37;
  --text: #FCFCFF;
  --muted: #A1B0BE;
  --line: rgba(205, 224, 242, .15);
  --accent: #188CF2;
  --deep-accent: #79C4FF;
  --violet: #13C4E8;
  --ice-blue: #79C4FF;
  --ok: #65C49B;
  --danger: #ED8794;
  --skyice-shadow: 0 12px 30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(24, 140, 242, .06);
}

html.light {
  color-scheme: light;
  --bg: #F2F7FC;
  --panel: #FFFFFF;
  --surface: #FFFFFF;
  --surface-raised: #EAF3FB;
  --text: #182431;
  --muted: #5D7185;
  --line: rgba(34, 69, 100, .16);
  --accent: #0B65B1;
  --deep-accent: #0B65B1;
  --violet: #0B65B1;
  --ice-blue: #0B65B1;
  --ok: #147B59;
  --danger: #B93950;
  --skyice-shadow: 0 10px 28px rgba(22, 80, 132, .10), 0 1px 0 rgba(255, 255, 255, .92) inset;
}

html:not(.light) { color-scheme: dark; }
html, body { background-color: var(--bg) !important; }
html.light body {
  color: var(--text) !important;
  background-color: #F2F7FC !important;
  background-image: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--skyice-blue) 9%, transparent), transparent 48%), linear-gradient(180deg, #F2F7FC, #F2F7FC) !important;
}
html:not(.light) body {
  color: var(--text) !important;
  background-color: #121214 !important;
  background-image: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--skyice-blue) 8%, transparent), transparent 48%), linear-gradient(180deg, #121214, #121214) !important;
}
body {
  color: var(--text);
  background-image: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--ice-blue) 7%, transparent), transparent 48%), linear-gradient(180deg, var(--bg), var(--bg));
}
body::before, body::after { display: none !important; }
.ambient, .aurora { display: none !important; }
#snow-canvas { opacity: .16; }

/* A quiet, consistent navigation shell instead of a fixed, high-gloss overlay. */
.site-header, .portal-header, .topbar {
  position: sticky !important;
  z-index: 1400 !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  border-bottom: 1px solid var(--line) !important;
  background: color-mix(in srgb, var(--bg) 94%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.04) !important;
}
.site-header .nav-shell { width: min(1180px, 100%); margin: 0 auto; padding-top: 13px; padding-bottom: 13px; }
.portal-header { padding-right: max(18px, calc((100vw - 1124px) / 2)) !important; padding-left: max(18px, calc((100vw - 1124px) / 2)) !important; }
.topbar { padding-right: max(18px, calc((100vw - 1124px) / 2)) !important; padding-left: max(18px, calc((100vw - 1124px) / 2)) !important; }
.nav-shell, .portal-header, .topbar { min-height: 60px; }
.brand { gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.brand-mark { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 8px; background-color: transparent; box-shadow: none; object-fit: contain; }
.brand em, .brand b { color: var(--ice-blue); }
.nav-links, .header-user, .topbar nav { gap: 12px; font-size: 12px; }
.nav-portal { min-height: 36px; padding: 8px 13px; border: 1px solid color-mix(in srgb, var(--ice-blue) 28%, var(--line)); border-radius: 9px; color: #fff !important; background: linear-gradient(110deg, #0B65B1, #1878C5) !important; box-shadow: none !important; font-size: 11px; font-weight: 750; letter-spacing: 0; }
.nav-portal:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(34, 111, 145, .16) !important; }
.page-shell { padding-top: 12px !important; }
.page-shell .hero { min-height: auto; align-items: flex-start; padding: 18px 0 42px; }
.portal-main { padding-top: 34px !important; }
body.has-bottom-nav .portal-main { padding-bottom: 112px !important; }

/* Legible surfaces: cards distinguish information by structure, not blur and glow. */
:is(.auth-card, .control-card, .error-card, .panel, .stat-card, .response-chart, .price-card, .faq, .terms, .benefits article, .docs-tools, .docs-endpoint, .dashboard-stat-card, .dashboard-api-panel, .dashboard-thanks-panel, .timeline-card, .changelog-feed-panel, .submission-panel, .settings-card, .admin-submission, .form-card, .upload-card, .result-card, .trust-row > div, .glass, .notice) {
  border-color: var(--line) !important;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 76%, transparent) !important;
  box-shadow: var(--skyice-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
}
html.light :is(.auth-card, .control-card, .error-card, .panel, .stat-card, .response-chart, .price-card, .faq, .terms, .benefits article, .docs-tools, .docs-endpoint, .dashboard-stat-card, .dashboard-api-panel, .dashboard-thanks-panel, .timeline-card, .changelog-feed-panel, .submission-panel, .settings-card, .admin-submission, .form-card, .upload-card, .result-card, .trust-row > div, .glass, .notice) {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 76%, transparent) !important;
  box-shadow: var(--skyice-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
}
html:not(.light) :is(.auth-card, .control-card, .error-card, .panel, .stat-card, .response-chart, .price-card, .faq, .terms, .benefits article, .docs-tools, .docs-endpoint, .dashboard-stat-card, .dashboard-api-panel, .dashboard-thanks-panel, .timeline-card, .changelog-feed-panel, .submission-panel, .settings-card, .admin-submission, .form-card, .upload-card, .result-card, .trust-row > div, .glass, .notice) {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 76%, transparent) !important;
  box-shadow: var(--skyice-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
}
:is(.auth-card, .control-card, .error-card, .settings-card, .dashboard-api-panel, .dashboard-thanks-panel, .changelog-feed-panel, .docs-tools, .form-card, .result-card, .upload-card, .faq, .terms) { border-radius: 16px; }
:is(.stat-card, .price-card, .benefits article, .docs-endpoint, .timeline-card, .admin-submission, .trust-row > div, .notice) { border-radius: 13px; }
:is(.auth-card, .control-card, .error-card, .settings-card, .panel, .docs-tools, .form-card, .upload-card, .result-card) { box-shadow: var(--skyice-shadow) !important; }
:is(.button, button, input, textarea, select, summary, a) { -webkit-tap-highlight-color: transparent; }
a { text-underline-offset: .18em; }
:is(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid color-mix(in srgb, var(--skyice-violet) 65%, var(--ice-blue)); outline-offset: 2px; }
::selection { color: var(--text); background: color-mix(in srgb, var(--skyice-violet) 34%, transparent); }

/* Clear type, accessible controls, and calmer actions. */
.eyebrow, .chart-kicker, .docs-heading .eyebrow, .docs-category-title { color: var(--ice-blue); }
.hero-lead, .docs-intro, .muted { color: var(--muted); }
:is(.auth-card label, .control-card label, .settings-card label, .docs-search, .docs-param, .form-card label) { font-size: 12px; }
:is(input, textarea, select, .search, .docs-search input, .docs-param input, .docs-param select) { color: var(--text); border-color: var(--line); background-color: var(--surface-raised); font-size: 13px; }
:is(input, textarea, select)::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
:is(.auth-card input, .control-card input, .control-card select, .settings-card input, .settings-card select, .settings-card textarea) { min-height: 44px; border-radius: 9px; }
:is(.button, .button-primary, .button-secondary, .button-ghost, .nav-portal, #createButton, .input-row button, .secondary-button, .copy-button) { transition: transform .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.button { min-height: 40px; border-radius: 9px; font-size: 12px; }
.button:hover, .button-primary:hover, .button-secondary:hover, .button-ghost:hover { transform: translateY(-1px); }
:is(.button-primary, .nav-portal, #createButton, .input-row button) {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(110deg, #0879E8, #13C4E8) !important;
  box-shadow: 0 7px 18px rgba(38, 112, 145, .14) !important;
}
:is(.button-primary, .nav-portal, #createButton, .input-row button):hover { box-shadow: 0 9px 21px rgba(38, 112, 145, .20) !important; }
:is(.button-secondary, .button-ghost, .secondary-button, .copy-button) { border: 1px solid var(--line); color: var(--text); background: var(--surface-raised); box-shadow: none; }
:is(.button-secondary, .button-ghost, .secondary-button, .copy-button):hover { border-color: color-mix(in srgb, var(--ice-blue) 42%, var(--line)); background: color-mix(in srgb, var(--ice-blue) 8%, var(--surface-raised)); }
.button-danger, .delete-button { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); }
:is(.chip, .status-pill, .health-state, .plan-badge, .method-tag, .docs-endpoint .pill, .settings-order-status) { letter-spacing: .025em; }

/* The public hero uses the existing low-poly cube as a product specimen, not an orb. */
.page-shell .hero-orbit {
  width: 350px;
  height: 320px;
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--surface);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--ice-blue) 7%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--ice-blue) 7%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: var(--skyice-shadow);
}
.page-shell .hero-orbit::before, .page-shell .hero-orbit::after { position: absolute; z-index: 2; color: var(--muted); font: 750 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.page-shell .hero-orbit::before { top: 19px; left: 20px; content: "SKYICE / API"; }
.page-shell .hero-orbit::after { right: 20px; bottom: 18px; content: "ENDPOINTS  ·  DOCS"; }
.page-shell .ice-orb {
  position: relative;
  top: auto;
  left: auto;
  width: 198px;
  height: 198px;
  border: 1px solid rgba(37, 103, 137, .12);
  border-radius: 16px;
  background: transparent url("/assets/skyice-cube-transparent.png") center / contain no-repeat;
  box-shadow: 0 15px 36px rgba(23, 65, 94, .13);
  animation: none;
}
.page-shell .orb-core, .page-shell .orbit-dot, .page-shell .orbit-label { display: none !important; }

/* Small, consistent plan labels; distinguish the featured tier without a rainbow. */
.plan-badge { border: 1px solid color-mix(in srgb, var(--skyice-violet) 35%, var(--line)); color: var(--deep-accent); background: color-mix(in srgb, var(--skyice-violet) 11%, var(--surface-raised)); }
.badge-free .plan-badge, .badge-basic .plan-badge, .badge-premium .plan-badge, .badge-pro .plan-badge, .badge-ultra .plan-badge, .badge-supreme .plan-badge { border-color: color-mix(in srgb, var(--skyice-violet) 35%, var(--line)); color: var(--deep-accent); background: color-mix(in srgb, var(--skyice-violet) 11%, var(--surface-raised)); }
.price-card.featured { border-color: color-mix(in srgb, var(--skyice-violet) 58%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, var(--skyice-violet) 11%, transparent); }
.price-card li::before { color: var(--ice-blue); }
.chart-kicker, .price-kicker, .benefits b { color: var(--ice-blue); }
.chart-body polyline { stroke: var(--ice-blue); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ice-blue) 35%, transparent)); }
.stat-icon, .dashboard-stat-icon { border-color: color-mix(in srgb, var(--ice-blue) 30%, var(--line)); color: var(--ice-blue); background: color-mix(in srgb, var(--ice-blue) 9%, var(--surface-raised)); }

/* Endpoint states are semantic, but the documentation stays on-brand and easy to scan. */
.docs-status-card { min-height: 108px; border: 1px solid var(--line) !important; border-radius: 13px; color: var(--text) !important; background: var(--surface) !important; box-shadow: var(--skyice-shadow) !important; }
.docs-status-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ice-blue) 38%, var(--line)) !important; box-shadow: var(--skyice-shadow) !important; }
.docs-status-card > span, .docs-status-card small { color: var(--muted) !important; }
.docs-status-card strong { color: var(--ice-blue) !important; }
.docs-status-card[data-status="active"] strong { color: var(--ok) !important; }
.docs-status-card[data-status="maintenance"] strong { color: #A87512 !important; }
html:not(.light) .docs-status-card[data-status="maintenance"] strong { color: #E5B65A !important; }
.docs-status-card[data-status="error"] strong { color: var(--danger) !important; }
.docs-status-card.is-selected { outline: 2px solid color-mix(in srgb, var(--skyice-violet) 46%, transparent); outline-offset: 2px; }
:is(.docs-filter-chip, .docs-category-chip, .docs-language-tab).is-selected { border-color: color-mix(in srgb, var(--ice-blue) 48%, var(--line)); color: var(--deep-accent); background: color-mix(in srgb, var(--skyice-violet) 10%, var(--surface-raised)); }
html:not(.light) :is(.docs-filter-chip, .docs-category-chip, .docs-language-tab).is-selected { color: #DFC0FA; }
.method-tag { color: var(--ice-blue); }
.docs-endpoint[open] { border-color: color-mix(in srgb, var(--ice-blue) 40%, var(--line)); }
.docs-endpoint.status-active { background: color-mix(in srgb, var(--ok) 4%, var(--surface)) !important; }
.docs-endpoint.status-maintenance { background: color-mix(in srgb, #D49B36 7%, var(--surface)) !important; }
.docs-endpoint.status-error { background: color-mix(in srgb, var(--danger) 6%, var(--surface)) !important; }

/* Portal and admin navigation read as one product, with less floating glass. */
.skyice-bottom-nav {
  min-height: 62px;
  padding: 6px;
  border: 1px solid var(--line) !important;
  border-radius: 15px !important;
  background: color-mix(in srgb, var(--surface) 76%, transparent) !important;
  box-shadow: 0 7px 22px rgba(13, 28, 42, .10) !important;
  backdrop-filter: blur(26px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.55) !important;
}
.skyice-bottom-nav a { border-radius: 10px; font-size: 10px; }
.skyice-bottom-nav a:hover, .skyice-bottom-nav a.active { border-color: transparent; color: var(--deep-accent); background: color-mix(in srgb, var(--skyice-violet) 12%, var(--surface-raised)); box-shadow: none; transform: none !important; }
html:not(.light) .skyice-bottom-nav { background: color-mix(in srgb, var(--surface) 76%, transparent) !important; }
.log-tab, .view-admin-controller .admin-tabs .log-tab { border-radius: 10px; box-shadow: none; }
.log-tab:hover, .view-admin-controller .admin-tabs .log-tab:hover { transform: none; box-shadow: none; }
.log-tab.is-active, .view-admin-controller .admin-tabs .log-tab.is-active { border-color: #0B65B1 !important; color: #fff !important; background: #0B65B1 !important; box-shadow: none !important; }
.admin-tabs, .view-admin-controller .admin-tabs { box-shadow: none; }
:is(.timeline-card, .submission-row, .settings-order-card, .thanks-person, .admin-submission) { border-color: var(--line); }
:is(.timeline-card, .submission-row, .thanks-person, .admin-submission) p { color: var(--muted); }

.dashboard-api-panel, .dashboard-thanks-panel { border-radius: 15px !important; }
.dashboard-api-header { border-color: var(--line); }
.dashboard-api-header h2 { font-size: 20px; }
.dashboard-api-kicker { color: var(--ice-blue); }
.dashboard-live { border-color: color-mix(in srgb, var(--ok) 25%, var(--line)); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface-raised)); box-shadow: none; }
.dashboard-api-list > div { border-color: var(--line); }
.dashboard-api-list dd a { color: var(--deep-accent); }
.dashboard-stat-card { min-height: 142px; border-radius: 13px; }
.dashboard-stat-card:hover { transform: translateY(-1px); box-shadow: var(--skyice-shadow) !important; }

/* Settings, records, and admin tables use crisp separators and readable controls. */
:is(.settings-card, .panel, #admin-panel, .control-card) { border-radius: 15px; }
:is(.table-wrap, .settings-management-table) { border-color: var(--line); border-radius: 12px; }
:is(th, .table-wrap th) { color: var(--muted); }
:is(.settings-contact-grid > div, .settings-stats > div, .settings-upload, .settings-event-item, .settings-event-create, .settings-event-editor) { border-color: var(--line); background: var(--surface-raised); }
.verified-badge.is-verified { border-color: color-mix(in srgb, var(--ice-blue) 35%, var(--line)); color: var(--ice-blue); background: color-mix(in srgb, var(--ice-blue) 8%, var(--surface-raised)); }
#settings-dialog { border-radius: 15px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); }
#settings-dialog::backdrop { background: rgba(11, 26, 44, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Shared footer and theme switch. */
.skyice-footer, .site-footer, .portal-footer, footer.footer {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}
.skyice-footer { padding-top: 16px; }
.skyice-footer__brand img { border: 1px solid var(--line); border-radius: 7px; }
.skyice-footer__brand em { color: var(--ice-blue); }
.skyice-footer__copyright { font-size: 10px; }
.theme-icon-toggle { border-color: var(--line); color: var(--ice-blue); background: var(--surface-raised); box-shadow: none; }
.theme-icon-toggle::before, .theme-icon-toggle::after { position: absolute; top: 4px; z-index: 0; color: var(--muted); font-size: 11px; line-height: 16px; }
.theme-icon-toggle::before { left: 6px; content: "☼"; }
.theme-icon-toggle::after { right: 6px; content: "☾"; }
.theme-icon-toggle span { position: relative; z-index: 1; width: 17px; height: 17px; background: currentColor; box-shadow: none; }
.turnstile-gate { background: rgba(12, 22, 32, .64) !important; backdrop-filter: blur(7px) !important; }
.turnstile-panel { border-color: var(--line) !important; border-radius: 15px !important; color: var(--text) !important; background: color-mix(in srgb,var(--surface) 78%,transparent) !important; box-shadow: 0 16px 46px rgba(0, 0, 0, .18) !important; backdrop-filter: blur(26px) saturate(1.5) !important; -webkit-backdrop-filter: blur(26px) saturate(1.5) !important; }
.turnstile-kicker { color: var(--ice-blue) !important; }

/* Keep Docs status cards color-coded; disabled endpoint rows stay passive and muted. */
.docs-status-card[data-status="all"] { border-color: rgba(33,139,255,.52) !important; color: #fff !important; background: linear-gradient(135deg,#0879e8,#278eff 58%,#4ca8ff) !important; }
.docs-status-card[data-status="active"] { border-color: rgba(24,163,108,.55) !important; color: #fff !important; background: linear-gradient(135deg,#08754d,#169766 58%,#37b77e) !important; }
.docs-status-card[data-status="maintenance"] { border-color: rgba(208,139,0,.58) !important; color: #fff !important; background: linear-gradient(135deg,#8b5e00,#bd8100 58%,#dfa52a) !important; }
.docs-status-card[data-status="error"] { border-color: rgba(221,82,99,.58) !important; color: #fff !important; background: linear-gradient(135deg,#982f43,#c23e53 58%,#e06070) !important; }
.docs-status-card[data-status] > span, .docs-status-card[data-status] small { color: rgba(255,255,255,.9) !important; }
.docs-status-card[data-status] strong { color: #fff !important; }
.docs-endpoint.status-maintenance, .docs-endpoint.status-error { background: color-mix(in srgb,var(--surface) 94%,transparent) !important; }
.docs-endpoint.is-unavailable { opacity: .56; border-color: var(--line) !important; }
.docs-endpoint-summary-disabled:after { display: none !important; content: none !important; }

/* CDN uploader: keep the drop interaction clear; use the cube instead of a glowing core. */
body:has(.upload-card) {
  color: var(--text) !important;
  background: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--ice-blue) 7%, transparent), transparent 48%), var(--bg) !important;
}
body:has(.upload-card) .topbar { min-height: 62px; }
body:has(.upload-card) .brand-mark, body:has(.short-link-row) .brand-mark {
  overflow: hidden;
  color: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: transparent url("https://api.skyice.click/assets/skyice-cube-transparent.png") center / contain no-repeat !important;
  box-shadow: none !important;
}
body:has(.upload-card) .hero { min-height: 330px; padding: 48px 20px 28px; }
body:has(.upload-card) h1 { color: var(--text); font-size: clamp(3.2rem, 7vw, 5.4rem); }
body:has(.upload-card) h1 span { color: var(--ice-blue); text-shadow: none; }
body:has(.upload-card) .intro { color: var(--muted); }
body:has(.upload-card) .hero-notes { color: var(--muted); font-size: 11px; }
body:has(.upload-card) .hero-notes i { color: var(--ice-blue); }
body:has(.upload-card) .ice-core {
  width: 224px;
  height: 224px;
  border: 1px solid rgba(37, 103, 137, .12);
  border-radius: 18px;
  background: transparent url("https://api.skyice.click/assets/skyice-cube-transparent.png") center / contain no-repeat;
  box-shadow: var(--skyice-shadow);
  transform: none;
  animation: none;
}
body:has(.upload-card) :is(.core-ring, .core-glow, .core-star, .core-label) { display: none !important; }
body:has(.upload-card) .upload-card {
  min-height: 254px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--ice-blue) 40%, var(--line)) !important;
  border-radius: 15px;
  background: color-mix(in srgb, var(--ice-blue) 3%, var(--surface)) !important;
  box-shadow: none !important;
  transition: border-color .18s ease, background-color .18s ease;
}
body:has(.upload-card) .upload-card:hover, body:has(.upload-card) .upload-card:focus-visible, body:has(.upload-card) .upload-card.is-dragging {
  transform: none;
  border-color: var(--ice-blue) !important;
  background: color-mix(in srgb, var(--ice-blue) 7%, var(--surface)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice-blue) 12%, transparent) !important;
}
body:has(.upload-card) .upload-orbit { width: 50px; height: 50px; border-radius: 13px; color: var(--ice-blue); border-color: color-mix(in srgb, var(--ice-blue) 30%, var(--line)); background: color-mix(in srgb, var(--ice-blue) 8%, var(--surface-raised)); box-shadow: none; }
body:has(.upload-card) .upload-card h2 { color: var(--text); }
body:has(.upload-card) .upload-copy, body:has(.upload-card) .drop-hint { color: var(--muted); }
body:has(.upload-card) .upload-copy button { color: var(--deep-accent); border-color: color-mix(in srgb, var(--skyice-violet) 40%, var(--line)); }
body:has(.upload-card) .drop-hint span { color: var(--ice-blue); }
body:has(.upload-card) .trust-row strong { color: var(--text); }
body:has(.upload-card) .trust-row small { color: var(--muted); font-size: 10px; }
body:has(.upload-card) .trust-icon { border-color: var(--line); color: var(--ice-blue); background: var(--surface-raised); }
body:has(.upload-card) .progress-track { background: color-mix(in srgb, var(--ice-blue) 14%, var(--surface-raised)); }
body:has(.upload-card) .progress-track span { background: linear-gradient(90deg, #0B65B1, #13C4E8); box-shadow: none; }
body:has(.upload-card) .file-line, body:has(.upload-card) .share-link { color: var(--text); border-color: var(--line); background: var(--surface-raised); }
body:has(.upload-card) .file-info strong { color: var(--text); }
body:has(.upload-card) .file-info small, body:has(.upload-card) .expiry-note { color: var(--muted); }
body:has(.upload-card) .copy-button { color: var(--text); border-color: var(--line); background: var(--surface-raised); }
body:has(.upload-card) .delete-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
body:has(.upload-card) .status-message { color: var(--muted); }

/* Shortlink: make the destination field the focal point and keep the result easy to verify. */
body:has(.short-link-row) {
  color: var(--text) !important;
  background: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--ice-blue) 7%, transparent), transparent 48%), var(--bg) !important;
}
body:has(.short-link-row) .topbar { min-height: 62px; }
body:has(.short-link-row) main { width: min(100% - 40px, 1020px); }
body:has(.short-link-row) .hero { width: min(760px, 100%); margin: 74px auto 0; padding: 0 0 18px; }
body:has(.short-link-row) .eyebrow { color: var(--ice-blue); font-size: 10px; letter-spacing: .16em; }
body:has(.short-link-row) h1 { color: var(--text); font-size: clamp(44px, 6.5vw, 76px); font-weight: 650; letter-spacing: -.07em; line-height: .99; }
body:has(.short-link-row) h1 em { color: var(--ice-blue); text-shadow: none; }
html.light body:has(.short-link-row) h1 em { color: var(--ice-blue) !important; text-shadow: none !important; }
html:not(.light) body:has(.short-link-row) h1 em { color: var(--ice-blue) !important; text-shadow: none !important; }
body:has(.short-link-row) .intro { color: var(--muted); font-size: 14px; line-height: 1.7; }
body:has(.short-link-row) .form-card { margin-top: 30px; padding: clamp(18px, 3vw, 24px); border-radius: 15px; }
body:has(.short-link-row) .form-card label { color: var(--text); font-size: 12px; }
body:has(.short-link-row) .input-row { border-color: var(--line); border-radius: 11px; background: var(--surface-raised); }
body:has(.short-link-row) .input-row:focus-within { border-color: color-mix(in srgb, var(--ice-blue) 60%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice-blue) 14%, transparent); }
body:has(.short-link-row) .input-row input { color: var(--text); }
body:has(.short-link-row) .input-row input::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
body:has(.short-link-row) .form-meta, body:has(.short-link-row) .limit-note { color: var(--muted); }
body:has(.short-link-row) .short-link-row { border-color: color-mix(in srgb, var(--ice-blue) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--ice-blue) 5%, var(--surface-raised)); }
body:has(.short-link-row) .short-link-row a { color: var(--deep-accent); }
body:has(.short-link-row) .destination-block span, body:has(.short-link-row) .destination-block a { color: var(--muted); }
body:has(.short-link-row) .delete-details { border-color: var(--line); }
body:has(.short-link-row) .delete-details summary { color: var(--deep-accent); }
body:has(.short-link-row) .token-row code { color: var(--deep-accent); }
body:has(.short-link-row) .delete-button { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
body:has(.short-link-row) .trust-row { gap: 12px 22px; }
body:has(.short-link-row) .trust-item { color: var(--muted); }
body:has(.short-link-row) .trust-icon { color: var(--ice-blue); }
body:has(.short-link-row) .notice { border-radius: 12px; }
body:has(.short-link-row) .notice-mark { border-color: color-mix(in srgb, var(--ice-blue) 35%, var(--line)); color: var(--ice-blue); }
body:has(.short-link-row) .notice p { color: var(--muted); }

@media (max-width: 700px) {
  .page-shell .hero { min-height: auto; padding: 14px 0 30px; }
  .page-shell .hero-orbit { display: none; }
  .portal-main { padding-top: 26px !important; }
  .page-shell { padding-top: 24px !important; }
  .dashboard-hero-copy { max-width: 70%; }
}
@media (max-width: 650px) {
  .skyice-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-right: 17px; padding-left: 17px; }
  .skyice-footer__copyright { grid-column: 1 / -1; justify-self: start; font-size: 10px; }
  .bottom-nav__label { font-size: 8px; }
  body:has(.upload-card) .hero { min-height: auto; padding: 44px 4px 25px; }
  body:has(.upload-card) .ice-core { display: none; }
  body:has(.upload-card) .upload-card { min-height: 238px; padding: 24px 16px; }
  body:has(.short-link-row) .hero { margin-top: 48px; }
  body:has(.short-link-row) .form-card { margin-top: 24px; }
  body:has(.short-link-row) .input-row { flex-wrap: wrap; }
  body:has(.short-link-row) .input-row input { flex: 1 1 100%; }
  body:has(.short-link-row) .input-row button { width: 100%; }
}
@media (max-width: 470px) {
  .portal-main { padding-right: 14px !important; padding-left: 14px !important; }
  .dashboard-hero { min-height: 196px; padding: 20px 17px; }
  .dashboard-hero-copy { max-width: calc(100% - 83px); }
  .dashboard-sky::after { right: 14px; width: 90px; border-radius: 12px; }
  .dashboard-username { font-size: clamp(32px, 9vw, 43px); }
  .skyice-bottom-nav { width: calc(100% - 18px); min-height: 58px; border-radius: 13px !important; }
  .skyice-bottom-nav a { min-height: 44px; font-size: 8px; }
  body:has(.short-link-row) main { width: min(100% - 30px, 1020px); }
  body:has(.short-link-row) .hero { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
