/* Violet / periwinkle / coral. Solid body text, interactive accents only. */
:root, .studio-page {
  --bg: #10101c; --surface: #1a1b2e; --raised: #24263e; --border: #393c59;
  --text: #f3f2fc; --muted: #b8bad0; --subtle: #a0a3bf;
  --accent: #bcb0ff; --accent-strong: #d4cbff; --accent-bg: #2d284b;
  --coral: #ffb6a5; --sky: #a4caff; --blue: var(--sky); --amber: var(--coral);
  --font-ui: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
:root[data-theme=light], :root[data-theme=light] .studio-page {
  --bg: #f5f4fc; --surface: #ffffff; --raised: #edebf8; --border: #d9d6eb;
  --text: #24233c; --muted: #5e607c; --subtle: #696b87;
  --accent: #6546bd; --accent-strong: #50339e; --accent-bg: #eee8ff;
  --coral: #a84935; --sky: #315fba;
}
body { font-family: var(--font-ui); font-size: 15px; font-weight: 400; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3 { font-weight: 650; text-wrap: pretty; }
::selection { background: var(--accent-bg); color: var(--text); }
.studio-page { background: radial-gradient(ellipse 850px 500px at 8% 0%, #8867ed13, transparent), radial-gradient(ellipse 700px 400px at 96% 12%, #ed967b0b, transparent), var(--bg); }
.ambient-background { background: radial-gradient(ellipse at 80% 18%, #847eff10, transparent 55%), radial-gradient(ellipse at 8% 68%, #d29df90b, transparent 48%); }
.ambient-art { filter: hue-rotate(70deg) saturate(.85); }
.ambient-reveal .ambient-art { filter: hue-rotate(70deg) saturate(.85) brightness(1.12); }
.ambient-veil { background: radial-gradient(ellipse 54% 80% at 50% 40%, color-mix(in srgb, var(--bg) 85%, transparent), color-mix(in srgb, var(--bg) 35%, transparent) 68%, transparent), linear-gradient(180deg, #10101c18, transparent 65%, #10101c55); }
:root[data-theme=light] .ambient-art { filter: invert(1) hue-rotate(230deg) saturate(.55); }
:root[data-theme=light] .ambient-veil { background: radial-gradient(ellipse 54% 80% at 50% 40%, #f5f4fcd9, #f5f4fc5c 68%, transparent); }
.topbar, .studio-page .topbar {
  --surface-x: 50%; --surface-y: 0px; --surface-intensity: 0;
  position: sticky; top: 14px; z-index: 40; isolation: isolate;
  width: calc(100% - 48px); max-width: 1312px; min-height: 78px; height: auto;
  margin: 16px auto 0; padding: 12px 18px; gap: 28px; border: 1px solid var(--border); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px #08071624, inset 0 1px 0 #ffffff0d;
}
.topbar::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(330px circle at var(--surface-x) var(--surface-y), color-mix(in srgb, var(--accent) 14%, transparent), transparent 80%); opacity: var(--surface-intensity); transition: opacity .25s; }
.brand, .studio-page .brand { font-size: 24px; font-weight: 800; gap: 11px; letter-spacing: -.6px; }
.brand-ai { color: var(--accent); font-weight: 650; }
.brand img, .studio-page .brand img { width: 42px; height: 42px; filter: drop-shadow(0 4px 9px #6550b833); }
.brand small, .studio-page .brand small { display: block; border: 0; margin: 1px 0 0; padding: 0; font-size: 10px; letter-spacing: .16em; line-height: 1.5; font-weight: 500; }
.topnav, .studio-page .topnav { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--studio-line, var(--border)); background: color-mix(in srgb, var(--bg) 60%, transparent); border-radius: 14px; }
.topnav a, .studio-page .topnav a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .18s, background .18s, border-color .18s; }
.topnav a svg { width: 16px; height: 16px; }
.topnav a[aria-current], .studio-page .topnav a[aria-current] { color: var(--accent); background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 1px 0 #ffffff0b; }
.topnav a::after, .studio-page .topnav a[aria-current]::after { display: none; }
.topnav a:hover, .topnav a:focus-visible { color: var(--text); background: var(--raised); }
.top-actions, .studio-page .top-actions { gap: 10px; }
.top-actions > .icon-button { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.curated-label { display: none; }
.admin-link, .studio-page .admin-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border: 1px solid #ffffff20; border-radius: 12px; background: linear-gradient(115deg, #c5b7ff, #9ebfff); color: #23213f; font-size: 14px; font-weight: 750; box-shadow: 0 4px 16px #7861d426; transition: box-shadow .2s, filter .2s; }
.admin-link:hover { filter: brightness(1.07); box-shadow: 0 5px 22px #7861d44a; }
:root[data-theme=light] .admin-link { background: linear-gradient(115deg, #6e4ac5, #4669c2); color: #fff; }
.studio-heading h1 { font-size: clamp(30px, 3.4vw, 45px); line-height: 1.45; font-weight: 700; letter-spacing: -.025em; }
.standards-hero h1 { font-weight: 700; letter-spacing: -.025em; line-height: 1.45; }
:is(.studio-heading, .standards-hero) h1 > span { color: var(--accent); }
@supports (background-clip: text) {
  :is(.studio-heading, .standards-hero) h1 > span { background: linear-gradient(105deg, var(--accent) 8%, var(--sky) 45%, var(--coral) 80%, var(--accent)); background-size: 180% 100%; background-position: var(--title-position, 30%) center; background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.studio-heading p, .standards-hero > p { font-size: 16px; line-height: 1.9; }
.studio-eyebrow, .section-label { color: var(--accent); letter-spacing: .13em; }
.studio-total strong { font-family: var(--font-ui); font-weight: 750; color: var(--coral); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.studio-page .preview-heading h3 { font-family: var(--font-ui); font-weight: 700; letter-spacing: -.015em; line-height: 1.45; transition: color .2s; }
.studio-page .tool-preview-card:hover h3, .studio-page .tool-preview-card:focus-within h3 { color: var(--accent); }
.studio-page .preview-summary { font-size: 16px; line-height: 1.85; }
.studio-page .detail-main .prose { font-size: 16px; line-height: 1.95; }
.studio-page .tool-card.tool-preview-card { --card-art-hue: 70deg; }
.studio-page .tool-card[data-tone=blue] { --card-art-hue: 30deg; }
.studio-page .tool-card[data-tone=amber] { --card-art-hue: -60deg; }
.studio-page .tool-monogram { color: var(--accent); background: var(--accent-bg); }
.studio-page [data-tone=blue] .tool-monogram { color: var(--sky); background: color-mix(in srgb, var(--sky) 12%, var(--surface)); }
.studio-page [data-tone=amber] .tool-monogram { color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.detail-surface-art::before { filter: hue-rotate(70deg); }
:root[data-theme=light] .detail-surface-art::before { filter: invert(1) hue-rotate(230deg) saturate(.45); }
@media (max-width: 900px) {
  .topbar, .studio-page .topbar { gap: 16px; padding: 12px 14px; }
  .topnav a, .studio-page .topnav a { padding: 8px 12px; }
}
@media (max-width: 640px) {
  .topbar, .studio-page .topbar { width: calc(100% - 24px); top: 8px; margin-top: 10px; flex-wrap: wrap; gap: 10px; border-radius: 18px; padding: 10px 12px; }
  .brand, .studio-page .brand { font-size: 21px; }
  .brand img, .studio-page .brand img { width: 36px; height: 36px; }
  .topnav, .studio-page .topnav { display: flex; order: 3; width: 100%; padding: 3px; }
  .topnav a, .studio-page .topnav a { flex: 1; min-height: 36px; padding: 6px 10px; font-size: 13px; }
  .admin-link, .studio-page .admin-link { padding: 8px 11px; min-height: 38px; font-size: 13px; }
  .top-actions > .icon-button { width: 36px; height: 38px; }
  .studio-heading h1 { font-size: 29px; }
  .studio-results-heading { scroll-margin-top: 150px; }
  .standards-section { scroll-margin-top: 150px; }
}
/* Compact browsing: spend space on content, keep the full UE version statement. */
.studio-page .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.studio-page .tool-grid.list-layout { grid-template-columns: 1fr; }
.studio-page .tool-card.tool-preview-card { border-radius: 14px; }
.studio-page .tool-preview { padding: 20px; }
.studio-page .preview-heading { gap: 11px; align-items: flex-start; }
.studio-page .preview-heading h3 { font-size: 20px; line-height: 1.45; }
.studio-page .preview-heading .tool-monogram { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.studio-page .preview-arrow { width: 16px; height: 16px; margin-top: 6px; }
.studio-page .preview-labels { gap: 5px; margin-top: 12px; }
.studio-page .preview-labels > span { padding: 2px 7px; font-size: 12px; }
.studio-page .preview-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; line-height: 1.7; margin: 13px 0 16px; }
.studio-page .preview-version { padding-top: 12px; }
.studio-page .preview-version > span { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.studio-page .preview-version p { margin-top: 5px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.preview-detail-hint { color: var(--accent); white-space: nowrap; }
.studio-page .tool-preview:hover .preview-detail-hint { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 901px) {
  .studio-page .list-layout .tool-preview { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 24px; padding: 18px 20px; }
  .studio-page .list-layout .preview-heading { grid-column: 1; grid-row: 1; }
  .studio-page .list-layout .preview-labels { grid-column: 1; grid-row: 2; margin: 0; }
  .studio-page .list-layout .preview-summary { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .studio-page .list-layout .preview-version { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--studio-line); align-self: center; }
}
@media (max-width: 1179px) {
  .studio-page .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-page .tool-grid.list-layout { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .studio-page .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .studio-page .tool-preview { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar::before { display: none; }
  :is(.studio-heading, .standards-hero) h1 > span { background-position: 30% center; }
}
@media (forced-colors: active) {
  :is(.studio-heading, .standards-hero) h1 > span { color: CanvasText; background: none; }
  .topnav a[aria-current] { outline: 2px solid Highlight; }
}
