/* YELAN · 晴空水彩. User-approved references, native CSS; no theme runtime. */
:where(.app,.topbar,.title-copy,.view-switch,.console-stage,.console-shell-panel,.console-shell-panel > .panel-body,.console-gate,.console-gate-card,.console-gate-card > .newapi-card-body,.console-gate-copy,.console-gate-form,.console-gate-status,.console-key-input-wrap,.console-gate-kicker) { all: unset; box-sizing: border-box; }
:where(.app,.topbar,.title-copy,.view-switch,.console-gate,.console-gate-card,.console-gate-copy,.console-gate-form,.console-gate-kicker)::before,
:where(.app,.topbar,.title-copy,.view-switch,.console-gate,.console-gate-card,.console-gate-copy,.console-gate-form,.console-gate-kicker)::after { content: none; }
:root {
  color-scheme: light;
  --wc-ink: #273f50;
  --wc-muted: #66716e;
  --wc-blue: #286c9b;
  --wc-green: #527c57;
  --wc-coral: #f59b73;
  --wc-gold: #ac722d;
  --wc-paper: #fbf7ec;
  --wc-line: #d9caaa;
  --wc-shadow: 0 5px 18px #334d6610, 0 1px 3px #685a3810;
  --wc-display: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --wc-ui: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wc-ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 20px; }
body.yelan-watercolor {
  margin: 0; padding: 24px 28px 38px; min-height: 100dvh; height: auto;
  display: block; color: var(--wc-ink); font: 14px/1.6 var(--wc-ui);
  background: #c6e1ed; overflow: visible; -webkit-font-smoothing: antialiased;
}
body.yelan-watercolor::before, body.yelan-watercolor::after { display: none; }
[hidden] { display: none !important; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #3482b5; outline-offset: 3px; box-shadow: none;
}
button,a { touch-action: manipulation; }
a { color: var(--wc-blue); }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 500; padding: 12px 20px; background: var(--wc-paper); border: 2px solid var(--wc-blue); }
.skip-link:focus { top: 10px; }
.summer-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #aad3ea url('./summer-scene.webp') center bottom / cover no-repeat; }
.summer-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#fff7df16,transparent 70%); }
.summer-cloud { position: absolute; height: 130px; width: 480px; left: -160px; top: 15%; opacity: .55; background: radial-gradient(ellipse at 28% 57%,#fffdf2 0 19%,transparent 20%),radial-gradient(ellipse at 47% 47%,#fffdf2 0 30%,transparent 31%),radial-gradient(ellipse at 73% 62%,#fffdf2 0 20%,transparent 21%); filter: blur(13px); animation: cloud-drift 52s ease-in-out infinite alternate; }
.summer-cloud.cloud-two { top: 41%; left: 63%; width: 500px; height: 110px; opacity: .3; animation-duration: 67s; animation-delay: -28s; }
.summer-petals { position: absolute; inset: 0; overflow: hidden; }
.summer-petal { position: absolute; left: var(--x); top: -30px; width: var(--s,12px); height: calc(var(--s,12px)*.6); background: linear-gradient(130deg,#ffe5db,#edb2ab); border-radius: 90% 12% 85% 25%; opacity: 0; animation: petal-flight var(--duration,19s) var(--delay,0s) linear infinite; }
.summer-grass { position: absolute; bottom: -9px; left: -10px; right: -10px; height: 55px; opacity: .32; background: repeating-linear-gradient(76deg,transparent 0 32px,#63864b 33px 34px,transparent 35px 51px); mask-image: linear-gradient(transparent,#000); transform-origin: bottom; animation: meadow-breeze 4.8s ease-in-out infinite alternate; }
.app { display: block; position: relative; z-index: 1; max-width: 1450px; min-width: 0; width: 100%; margin: 0 auto; height: auto; min-height: calc(100dvh - 65px); padding: 0; gap: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.topbar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 170px); min-height: 92px; margin: 0; padding: 16px 28px; border: 1px solid #e0d0aa; border-radius: 14px 20px 13px 15px; background: url('./paper.webp') #fbf7ec; box-shadow: var(--wc-shadow); backdrop-filter: none; }
.topbar .title-copy { display: block; }
.title-copy h1 { display: flex; align-items: baseline; white-space: nowrap; gap: 5px; margin: 0; font: 600 clamp(25px,2.9vw,40px)/1.3 var(--wc-display); color: #23465f; letter-spacing: .075em; text-shadow: none; }
.brand-latin { font-size: .86em; letter-spacing: .01em; }
.brand-mark { font-family: serif; color: #bf964c; font-size: 1.1em; margin-right: 6px; }
.brand-eyebrow { font: 10px/1.5 var(--wc-ui); letter-spacing: .17em; color: #7e8273; margin-bottom: 5px; }
.masthead-status { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 9px; font-size: 13px; color: #527456; }
.masthead-status.is-error { color: #ac583e; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4e9669; box-shadow: 0 0 0 4px #55976814; }
.masthead-status.is-error .live-dot { background: #b06a40; }
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.view-switch.public-tabs { display: flex; gap: 18px; width: calc(100% - 170px); padding: 10px 18px 0; margin: 0 0 24px; border: 0; border-bottom: 1px solid #f6f1dba6; border-radius: 0; background: transparent; box-shadow: none; }
.public-tabs .view-tab { position: relative; flex: 0 0 auto; width: auto; min-width: 0; min-height: 48px; padding: 6px 18px 12px; color: #5a6e76; background: transparent; border: 0; border-radius: 0; font: 500 21px/1.3 var(--wc-display); box-shadow: none; white-space: nowrap; }
.public-tabs .view-tab.active { color: #236b99; background: transparent; }
.public-tabs .view-tab.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 4px; background: #3d86b3; border-radius: 60% 45% 70% 35%; transform: rotate(-.8deg); }
.public-tabs .return-console { margin-left: auto; font-family: var(--wc-ui); font-size: 13px; }
.small-cap { font-family: var(--wc-ui); font-size: 10px; color: #7d897d; letter-spacing: .13em; font-weight: 500; }
.stage.view { min-height: 0; height: auto; background: none; padding: 0; margin: 0; border: 0; box-shadow: none; overflow: visible; }
#leaderboardView { display: grid; grid-template-columns: minmax(0,1fr) 296px 124px; grid-template-rows: auto auto auto; grid-template-areas:'stats login .' 'board login .' 'ticker ticker ticker'; gap: 20px 22px; align-items: start; align-content: start; min-width: 0; }
.public-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0; }
.public-stats .metric { display: flex; align-items: center; min-width: 0; gap: 16px; min-height: 104px; padding: 15px 18px; border: 1px solid var(--wc-line); border-radius: 17px 20px 15px 19px; background: url('./paper.webp') #fcf8ee; box-shadow: var(--wc-shadow); }
.stat-art { width: 35px; height: 35px; flex: 0 0 auto; opacity: .8; }
.stat-text { min-width: 0; }
.public-stats .label { font: 16px/1.5 var(--wc-display); color: #5c655d; margin: 0 0 5px; letter-spacing: .04em; }
.public-stats .value { max-width: 100%; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font: 500 clamp(21px,2vw,29px)/1.25 var(--wc-ui); letter-spacing: -.025em; color: currentColor; font-variant-numeric: tabular-nums; }
.metric-green { color: #4e7958; }.metric-blue { color: #317daa; }.metric-gold { color: #ae7837; }
#watercolorPublicBoard { display: block; grid-area: board; min-height: 0; height: auto; max-height: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; overflow: visible; }
#watercolorPublicBoard > .panel-body { display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); grid-template-rows: auto; grid-template-areas: none; grid-auto-rows: auto; gap: 0; padding: 0; margin: 0; min-height: 0; height: auto; max-height: none; overflow: visible; background: none; }
.rank-paper { position: relative; align-self: start; min-height: 345px; border: 1px solid var(--wc-line); border-radius: 18px 16px 21px 15px; padding: 16px 18px 18px; background: url('./paper.webp') #fcf8ed; box-shadow: var(--wc-shadow); }
.rank-paper-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 18px var(--wc-display); margin: 0 0 16px; }
.rank-paper-title .small-cap { font-size: 9px; }
.rank-list-head { display: grid; grid-template-columns: 36px minmax(0,1fr) 70px; gap: 8px; padding: 8px 0 10px; color: #7b7865; font: italic 12px var(--wc-display); border-bottom: 1px solid #dacfba; }
.rank-list-head > :last-child { text-align: right; }
#rankRows { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: visible; max-height: none; }
#rankRows .row { display: grid; grid-template-columns: 32px minmax(0,1fr) 78px; align-items: center; gap: 10px; min-height: 49px; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid #e7ddc9; border-radius: 0; color: var(--wc-ink); box-shadow: none; position: relative; }
#rankRows .row:hover { background: #90bac410; transform: none; }
#rankRows .row .rank { font: 16px var(--wc-display); color: #937c4e; background: #eddeb545; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #d7be89; }
#rankRows .row .name { min-width: 0; display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rankRows .row .score { color: #5d655e; font: 14px var(--wc-ui); font-variant-numeric: tabular-nums; text-align: right; }
#rankRows .row .meta,#rankRows .rank-title,#rankRows .rank-trend,#rankRows .bar { display: none; }
.rank-paper-foot { color: #8c8b75; margin-top: 22px; font: 12px/1.8 var(--wc-display); text-align: center; }
.podium-landscape { align-self: end; position: relative; min-width: 0; min-height: 410px; height: 430px; margin: -15px -7px 0; }
.podium-painting { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; position: absolute; inset: 0; }
.podium-caption { position: absolute; top: 4%; left: 0; right: 0; text-align: center; font-size: 9px; color: #576c70; letter-spacing: .15em; }
#podiumRows.painted-podium { position: absolute; inset: auto 8px 4px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; background: none; border: 0; }
.painted-podium .podium-card { background: #fff8e6ed; border: 1px solid #ceb886; border-radius: 8px; padding: 7px 3px; box-shadow: 0 3px 12px #263d4d13; min-width: 0; min-height: 55px; color: var(--wc-ink); display: flex; flex-direction: column; gap: 2px; justify-content: center; align-items: center; }
.painted-podium .medal-1 { grid-column: 2; grid-row: 1; transform: translateY(-12px); border-color: #c6993f; }
.painted-podium .medal-2 { grid-column: 1; grid-row: 1; }.painted-podium .medal-3 { grid-column: 3; grid-row: 1; }
.painted-podium .podium-medal,.painted-podium .podium-meta,.painted-podium .rank-title { display: none; }
.painted-podium .podium-name { display: block; max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painted-podium .podium-score { font-size: 10px; color: #77755e; }
.console-shell-panel { grid-area: login; padding: 0; background: transparent; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
.console-shell-panel > .panel-body { padding: 0; overflow: visible; height: auto; }
.console-outer-title { display: none; }
.console-gate { padding: 0; margin: 0; display: block; min-height: 0; }
.console-gate-card { display: block; width: 100%; margin: 0; min-width: 0; min-height: 380px; padding: 0; background: url('./paper.webp') #fcf8ee; border: 1px solid #c6d6d7; border-radius: 20px 17px 21px 18px; box-shadow: var(--wc-shadow); }
.console-gate-card > .newapi-card-body { display: flex; flex-direction: column; gap: 26px; padding: 30px 24px 24px; min-height: 0; }
.console-gate-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.console-gate-copy h2 { order: -1; font: 600 23px/1.5 var(--wc-display); letter-spacing: .04em; color: #246f9a; margin: 0 0 12px; }
.console-gate-kicker { display: block; margin: 0; padding: 0; background: none; border: 0; color: #548aad; font-size: 12px; font-weight: 400; letter-spacing: .18em; }
.console-gate-kicker::before,.console-gate-kicker::after { content: '—'; margin: 0 10px; color: #a7c5d4; }
.console-gate-copy p { margin: 13px 0 0; font: 13px var(--wc-display); color: #818575; }
.console-gate-form { display: flex; flex-direction: column; gap: 20px; }
.console-gate-label-row { display: flex; margin: 0 0 7px; }
.console-gate-label-row label { font: 12px var(--wc-ui); color: #5f736d; }
.console-key-input-wrap { display: flex; position: relative; background: #fffdf4; border: 1px solid #b4c7cc; border-radius: 7px; overflow: hidden; min-width: 0; }
#newApiDashboardKeyInput { width: 100%; min-width: 0; padding: 12px; min-height: 46px; border: 0; box-shadow: none; border-radius: 0; background: transparent; font-family: var(--wc-ui); }
.console-key-visibility { all: unset; box-sizing: border-box; min-width: 52px; min-height: 46px; flex: 0 0 52px; align-self: stretch; display: grid; place-items: center; padding: 6px 10px; color: #506d73; font: 12px/1.4 var(--wc-ui); cursor: pointer; }
.console-key-hint { margin-top: 8px; font-size: 12px; color: #747c70; }
.console-gate-status { font-size: 12px; margin: -8px 0 0; padding: 0; min-height: 20px; color: #748172; background: none; text-align: center; border: 0; }
.console-gate-status.bad { color: #a94338; padding: 8px; background: #f8e8df; border-radius: 6px; }
.newapi-button,.refresh-button,.search-button,.usage-log-page-button { min-height: 38px; padding: 8px 14px; border: 1px solid #cbcdb9; border-radius: 8px; background: #fbf8ef; color: #365669; font: 500 13px/1.4 var(--wc-ui); text-shadow: none; box-shadow: 0 2px 5px #35577608; transition: background 120ms,transform 120ms,box-shadow 120ms; }
.newapi-button.primary,.search-button { color: #fff; background: #4884a0; border-color: #427f96; box-shadow: 0 2px 5px #3c6c8515; }
.newapi-button.danger { background: #fff8ee; color: #a45747; border-color: #dfc4b1; }
#newApiDashboardLoginButton,#summerEnterConsole { width: 100%; min-height: 49px; color: #593b2c; background: linear-gradient(110deg,#f8aa80,#f6ba97); border: 1px solid #df9469; font: 600 18px var(--wc-display); box-shadow: 0 4px 8px #cc8e5820; border-radius: 9px 7px 10px 8px; }
.newapi-button:hover,.refresh-button:hover { background: #e9f0e7; color: #294f64; transform: translateY(-1px); }
.newapi-button:active,.view-tab:active,.console-nav:active { transform: translateY(1px); }
.session-actions { display: grid; gap: 10px; }
body[data-home-session="true"] .console-gate-form,body[data-home-session="true"] .console-gate-status { display: none; }
.public-ticker { grid-area: ticker; display: flex; align-items: center; min-height: 58px; gap: 20px; padding: 14px 18px; border: 1px solid var(--wc-line); background: url('./paper.webp') #fbf7ec; border-radius: 11px 17px 12px 15px; box-shadow: var(--wc-shadow); margin-top: 8px; }
.ticker-label { display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; color: #3d789d; font: 600 13px var(--wc-display); border: 1px solid #a6bfd0; padding: 4px 10px; border-radius: 4px; background: #d8ebf145; }
#boardTicker { flex: 1; min-width: 0; padding: 0; margin: 0; border: 0; background: none; color: #646f66; font: 13px/1.7 var(--wc-ui); white-space: normal; }
#boardTicker .rank-title { display: none; }
.summer-companion { pointer-events: none; position: fixed; z-index: -1; right: max(-12px,calc((100vw - 1480px)/2)); bottom: 18px; width: clamp(175px,14.5vw,220px); transform-origin: 50% 100%; animation: companion-breeze 6s ease-in-out infinite alternate; }
.summer-companion img { display: block; width: 100%; height: auto; filter: drop-shadow(2px 4px 5px #50697d16); }
.summer-companion .companion-hair { position: absolute; inset: 0; transform-origin: 41% 15%; animation: hair-breeze 3.8s ease-in-out infinite alternate; }
.motion-toggle { position: fixed; bottom: 10px; right: 16px; z-index: 80; display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px; border: 1px solid #b8cabc; border-radius: 6px; background: #fbf8edee; color: #416774; font: 11px var(--wc-ui); box-shadow: 0 2px 8px #36526910; }
.motion-toggle-icon { font: 14px var(--wc-ui); }
.console-notice { position: fixed; top: 18px; right: 18px; left: auto; bottom: auto; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: min(360px, calc(100vw - 36px)); padding: 10px 10px 10px 16px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 12px; background: rgba(247, 250, 239, 0.92); color: #355647; box-shadow: 0 10px 28px rgba(51, 77, 102, 0.16); font: 13px/1.5 var(--wc-ui); backdrop-filter: blur(12px); opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.4s ease; }
.console-notice.is-error { background: #fff4e9; border-color: #cda18b; color: #884a3b; }
.console-notice span { min-width: 0; overflow-wrap: anywhere; }
.console-notice.is-leaving { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.console-notice button { flex: 0 0 36px; min-height: 36px; border: 0; color: inherit; background: transparent; font-size: 20px; }
body:not([data-console-open="true"]) .console-notice { display: none; }
.empty { padding: 30px 18px; background: #fbf7ecb3; border: 1px dashed #c6cbb9; border-radius: 10px; color: #5f726b; font: 14px/1.7 var(--wc-ui); text-align: center; }

/* The original console remains the sole owner of account/payment/admin state. */
body[data-console-open="true"] { padding: 0; }
body[data-console-open="true"] .app { max-width: none; min-height: 100dvh; }
body[data-console-open="true"] .topbar,body[data-console-open="true"] .public-tabs,body[data-console-open="true"] .public-stats,body[data-console-open="true"] .public-ticker { display: none; }
body[data-console-open="true"] .summer-companion { display: none; }
body[data-console-open="true"] .summer-scene::after { background: #f6f5e957; }
body[data-console-open="true"] #leaderboardView { display: block; }
body[data-console-open="true"] .console-shell-panel { display: block; width: 100%; }
.console-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); align-items: start; gap: 0; min-height: 100dvh; min-width: 0; max-width: none; width: 100%; height: auto; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.console-sidebar { display: flex; flex-direction: column; align-self: start; position: sticky; top: 0; height: 100dvh; min-height: 0; padding: 26px 16px 16px; background: linear-gradient(#fcf8eee8 0%,#fcf8eee8 65%,#e8eee4b3),url('./paper.webp'); border: 0; border-right: 1px solid #e1d5bd; border-radius: 0; box-shadow: none; overflow: auto; z-index: 10; }
.console-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 25px; margin: 0 0 10px; color: #375866; border: 0; border-bottom: 1px solid #e2dac6; background: none; }
.console-brand strong { font: 600 22px var(--wc-display); color: #334e5f; }
.console-brand span:not(.paper-plane) { display: block; font: 9px var(--wc-ui); letter-spacing: .17em; margin-top: 6px; color: #8a8c79; }
.paper-plane { color: #5aa0c3; font-size: 28px; transform: rotate(-25deg); }
.console-nav-list { display: flex; flex-direction: column; gap: 8px; padding: 0; overflow: visible; background: none; }
.console-nav { min-width: 0; width: 100%; min-height: 47px; padding: 11px 13px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; border: 1px solid transparent; border-radius: 8px 10px 7px 9px; background: transparent; color: #5a6c6c; box-shadow: none; font: 15px var(--wc-display); transition: background 160ms,color 160ms; }
.console-nav.active { background: linear-gradient(105deg,#d1e9f3,#cee9f3aa); border-color: #b9d7e0; color: #276e9e; box-shadow: inset 0 1px #eff7f5; }
.console-nav:hover:not(.active) { background: #e5eedfaa; }
.console-nav-icon { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 0; border-radius: 0; background: none; color: #70929e; font: 12px var(--wc-ui); }
.sidebar-illustration { margin: auto -16px 0; min-height: 180px; max-height: 33vh; flex: 1 1 190px; overflow: hidden; position: relative; background: linear-gradient(transparent,#dfe7c899); mask-image: linear-gradient(transparent,#000 17%); }
.sidebar-illustration img { position: absolute; height: 380px; width: auto; max-width: none; top: 12px; left: 30px; opacity: .83; transform: rotate(-2deg); }
.sidebar-illustration span { position: absolute; bottom: 12px; left: 24px; right: 15px; color: #486651; font: 12px var(--wc-display); padding: 7px; background: #fff9e4b0; }
.console-sidebar-foot { padding: 14px 5px 0; background: none; border-top: 1px solid #d3cfb7; display: grid; gap: 10px; }
.console-sidebar-identity { color: #53696a; font-size: 12px; overflow-wrap: anywhere; }
.console-sidebar-foot .newapi-button { min-height: 38px; width: 100%; }
.console-sidebar > .console-brand,.console-nav-list,.console-sidebar-foot { flex-shrink: 0; }
.sidebar-illustration { pointer-events: none; }
.console-content { min-width: 0; padding: 30px 30px 64px; height: auto; min-height: 100dvh; overflow: visible; background: transparent; }
.console-page,.console-page-main { width: 100%; min-width: 0; height: auto; max-height: none; padding: 0; margin: 0; overflow: visible; background: transparent; }
.console-mobile-bar { display: none; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.view-heading h2 { font: 600 29px var(--wc-display); color: #2b506b; margin: 5px 0 0; }
.view-heading p { font-size: 12px; color: #4f716d; margin: 0; }
.channel-status-shell { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 0; height: auto; background: none; }
.channel-status-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0 0 20px; padding: 0; }
.usage-query-card { padding: 13px 18px; border: 1px solid #d9ceb4; background: url('./paper.webp') #fbf8ef; box-shadow: var(--wc-shadow); border-radius: 12px 15px 10px 13px; min-width: 0; }
.usage-query-card > span { font-size: 12px; color: #607670; }
.usage-query-card > strong { display: block; margin: 4px 0; font: 500 25px var(--wc-ui); color: #396c83; }
.usage-query-card .newapi-card-desc { font-size: 11px; color: #7e8273; }
.channel-status-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0; margin-bottom: 24px; background: none; border: 0; }
.newapi-input,.newapi-select,.newapi-textarea,.usage-log-filter-input { min-width: 0; padding: 10px 12px; min-height: 40px; background: #fffcf3; color: var(--wc-ink); border: 1px solid #b9c9c7; border-radius: 7px; box-shadow: none; font: 13px/1.45 var(--wc-ui); }
#newApiChannelSearch { width: min(320px,45%); flex: 0 1 320px; }
#newApiChannelStatusFilter { width: 160px; min-width: 100px; }
.channel-status-count { border: 1px solid #d8c69f; background: #f8e7cbae; color: #8c663c; padding: 7px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
#summerRefreshChannels { margin-left: auto; }
.channel-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 0; height: auto; max-height: none; overflow: visible; }
.channel-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 205px; padding: 19px 20px 16px; gap: 10px; border: 1px solid #ced2b9; border-radius: 16px 13px 19px 12px; box-shadow: var(--wc-shadow); background: url('./paper.webp') #fdf9ed; color: var(--wc-ink); overflow: hidden; cursor: pointer; transition: transform 180ms var(--wc-ease),box-shadow 180ms; }
.channel-card::after { content: ''; position: absolute; width: 78px; height: 110px; bottom: 0; right: -25px; background: radial-gradient(ellipse at 40% 20%,#97ae6d2b 0 16%,transparent 18%),radial-gradient(ellipse at 70% 46%,#a9be7230 0 20%,transparent 22%),radial-gradient(ellipse at 28% 76%,#96a86130 0 21%,transparent 23%); transform: rotate(22deg); pointer-events: none; }
.channel-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #45687424; }
.channel-card.idle { border-color: #bed0d1; }.channel-card.warn { border-color: #dcb884; }.channel-card.danger { border-color: #d8a99b; }
.channel-card.warn::after { filter: sepia(1); }.channel-card.danger::after { filter: sepia(1) hue-rotate(320deg); }
.channel-card-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.channel-card-head > div:first-child { min-width: 0; }
.channel-model-name { color: #2d505e; font: 600 17px/1.4 var(--wc-display); overflow-wrap: anywhere; white-space: normal; }
.channel-provider-line { font: 11px/1.5 var(--wc-ui); color: #808575; margin-top: 5px; white-space: normal; }
.channel-status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 8px; border: 1px solid #b9cda8; border-radius: 6px; color: #56804a; background: #d4e0bc35; font: 12px/1.5 var(--wc-ui); flex: 0 0 auto; }
.channel-status-pill.idle { color: #4c88a0; border-color: #bad3df; background: #d9eaf335; }
.channel-status-pill.warn { color: #a57530; border-color: #dac7a0; background: #f3dfb835; }
.channel-status-pill.danger { color: #a05848; border-color: #dab4a4; background: #f6d4c535; }
.channel-card-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; }
.channel-card-metric { min-width: 0; background: none; border: 0; padding: 0; box-shadow: none; }
.channel-card-metric span { display: block; color: #65705f; font-size: 11px; font-weight: 400; }
.channel-card-metric strong { display: block; font: 500 18px/1.5 var(--wc-ui); color: #3f696f; letter-spacing: -.02em; }
.channel-bars { display: flex; align-items: end; gap: 3px; margin-top: auto; min-height: 15px; }
.channel-bar { flex: 1; height: 14px; border-radius: 2px; background: #9abc83; box-shadow: none; }
.channel-bar.idle { background: #d3ddd5; opacity: .75; }.channel-bar.failed { background: #d89882; }.channel-bar.warn { background: #d5bb77; }
.channel-data-note { font-size: 12px; color: #557269; margin-top: 18px; }
.channel-data-note.is-error { color: #984c34; background: #fff8e4; padding: 12px; border-radius: 6px; }
.channel-status-grid > .empty { grid-column: 1/-1; }
.model-detail-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: 370px; max-width: 94vw; height: 100dvh; max-height: 100dvh; padding: 26px; border: 1px solid #cbbf9f; border-radius: 16px 0 0 16px; color: var(--wc-ink); background: url('./paper.webp') #fbf7ec; box-shadow: -12px 0 70px #2a536535; overflow-y: auto; }
.model-detail-dialog::backdrop { background: #24435438; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; }
.icon-button { border: 0; background: none; min-width: 40px; min-height: 40px; color: #617369; font-size: 25px; }
.model-detail-dialog h2 { font: 600 26px/1.5 var(--wc-display); overflow-wrap: anywhere; }
.model-detail-dialog h3 { font: 600 18px var(--wc-display); }
#summerModelState { color: #62796c; font-size: 13px; }
#summerModelMetrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 22px 0; border-block: 1px solid #d9d1ba; }
.model-detail-call { padding: 10px 0; border-bottom: 1px solid #e5dac7; font-size: 12px; display: flex; flex-wrap: wrap; gap: 5px 10px; }
.model-detail-section { padding: 14px 0 20px; }

/* Shared account, billing, integration and operator surfaces. */
.newapi-card,.usage-log-panel,.admin-summary-card,.admin-panel,.admin-account-card,.recharge-panel,.recharge-method-card,.instance-tool-panel,.instance-pane,.dashboard-hourly-card,.dashboard-overview,.newapi-metric { background: url('./paper.webp') #fcf8ee; border: 1px solid #d6d0b9; box-shadow: var(--wc-shadow); border-radius: 12px; color: var(--wc-ink); min-width: 0; }
.newapi-card-head { background: transparent; padding: 18px 20px; border-bottom: 1px solid #e0d8c0; }
.newapi-card-body { padding: 20px; }
.newapi-card-title,.console-page-title h2 { font-family: var(--wc-display); color: #325c70; letter-spacing: .02em; }
.newapi-card-title { font-size: 19px; }.console-page-title h2 { font-size: 28px; }
.newapi-card-desc,.newapi-billing-summary,.usage-update-stamp,.display-name-policy-note { color: #6e7a6d; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
.dashboard-overview { width: 100%; grid-template-columns: minmax(0,1fr); }
.dashboard-overview > .newapi-card-body { grid-template-columns: minmax(0,1fr); }
.dashboard-overview > .newapi-card-head { min-width: 0; flex-wrap: wrap; }
.dashboard-overview > .newapi-card-head > div:first-child { flex: 1 1 210px; min-width: 0; }
.dashboard-head-actions { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-left: auto; flex-wrap: wrap; }
.dashboard-leaderboard-slot { display: none; }
.dashboard-primary-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.newapi-metrics { gap: 14px; }.newapi-metric { padding: 16px; background: #fffaf044; box-shadow: none; }
.newapi-metric span { color: #69796b; font-size: 12px; }.newapi-metric strong { color: #367391; font-size: 26px; font-family: var(--wc-ui); font-weight: 500; }.newapi-metric em { color: #80866f; font-size: 11px; }
.dashboard-hourly-card { margin-top: 20px; box-shadow: none; padding: 16px; background: #f4f6e955; }
.hourly-chart { min-height: 170px; }.hourly-bar-fill,.hourly-fill { background: #79aabe; border-radius: 4px 4px 0 0; }
.usage-log-shell,.usage-log-panel { min-width: 0; }.usage-log-table-wrap,.admin-recent-table-wrap,.newapi-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #ded7c2; border-radius: 8px; }
.usage-log-table,.admin-recent-table,.newapi-table { background: #fffbf1; font-family: var(--wc-ui); font-size: 12px; }
.usage-log-table th,.admin-recent-table th,.newapi-table th { background: #edf0e2; color: #667764; font-weight: 500; }
.usage-log-table td,.admin-recent-table td,.newapi-table td { border-color: #e6decb; color: #3e535e; }
.usage-log-toolbar,.usage-log-filters,.newapi-actions,.admin-account-toolbar { flex-wrap: wrap; gap: 10px; }
.usage-log-primary-filters { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-areas: "range start end" "status model actions"; gap: 12px; }
.usage-log-date,.usage-log-filter-field,.usage-log-filter-actions { min-width: 0; }
.usage-log-date input,.usage-log-filter-field input,.usage-log-filter-field select { width: 100%; max-width: 100%; min-width: 0; }
.instance-config-card > .newapi-card-body { grid-template-columns: minmax(0,1fr); }
.instance-tool-tabs,.instance-tool-pane { min-width: 0; max-width: 100%; }
.instance-tool-note { overflow-wrap: anywhere; }
.newapi-code,.instance-code,pre { max-width: 100%; overflow: auto; border: 1px solid #c5d1c7; border-radius: 9px; background: #f0f3ea; color: #355461; padding: 17px; font: 12px/1.8 ui-monospace,"Cascadia Code",monospace; white-space: pre; }
.admin-workspace-tabs,.instance-tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; background: #faf6e8b0; border: 1px solid #d3cbb1; border-radius: 10px; padding: 8px; }
.admin-workspace-tab,.instance-tool-tab { background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 9px 12px; min-height: 38px; font: 13px var(--wc-ui); color: #627667; }
.admin-workspace-tab.active,.instance-tool-tab.active { background: #dcebf0; border-color: #b5ccd5; color: #2e6c90; }
.admin-page-hero,.recharge-page-hero { padding: 0 0 20px; color: var(--wc-ink); border: 0; background: none; }
.admin-overview-strip { gap: 12px; margin-bottom: 20px; }.admin-summary-card { padding: 15px; }
.admin-workspace-panel,.admin-section { background: transparent; border: 0; min-width: 0; max-height: none; }
.admin-account-list,.admin-pricing-list,.admin-announcement-list { max-height: 65vh; overflow-y: auto; }
.console-page[data-console-page="admin"] [data-models-pane="channels"] { position: static; width: 100%; min-width: 0; height: auto; min-height: 70vh; padding: 0; margin: 0; background: transparent; }
.yelan-ops { --panel: #fcf8eef5; --line: #d4cfb7; --line2: #e0d6bf; --text: #2b4655; --muted: #6b7b70; --accent: #4583a1; --accent2: #abcba6; --accent3: #eeb385; --shadow: #33566a13; --good: #578650; background: transparent; font-family: var(--wc-ui); padding: 0; height: auto; }
.yelan-ops header h1 { font-family: var(--wc-display); color: #315b70; }.yelan-ops header h1 small { letter-spacing: 0; color: #6c7d6e; }
.yelan-ops .section,.yelan-ops .card { background: url('./paper.webp') #fcf8ee; border-radius: 12px; }
.yelan-ops button { min-height: 36px; border-radius: 7px; box-shadow: none; }
.yelan-ops input,.yelan-ops select,.yelan-ops textarea { font-family: var(--wc-ui); background: #fffdf6; border-color: #c4cec0; border-radius: 6px; }
.yelan-ops .hint,.yelan-ops .sub,.yelan-ops small { line-height: 1.65; }
.ops-standalone { min-height: 100dvh; padding: 28px; background: linear-gradient(#f6f5e957,#f6f5e957),#d6e9eb url('./summer-scene.webp') center bottom/cover fixed; font-family: var(--wc-ui); }
.ops-standalone #yelanOpsRoot { min-height: calc(100dvh - 56px); }
.ops-standalone .ops-back { display: inline-block; margin-bottom: 18px; font-size: 13px; text-decoration: none; }

/* Editorial view: paper list, a reading note, and a real existing agent flow. */
body[data-active-view="frontier-news"] .topbar,body[data-active-view="frontier-news"] .public-tabs { display: flex; }
body[data-active-view="frontier-news"] { padding: 24px 28px 38px; }
body[data-active-view="frontier-news"] .app { max-width: 1450px; }
body[data-active-view="frontier-news"] .summer-companion { display: block; width: 210px; bottom: 4px; }
#frontierNewsView { width: calc(100% - 155px); }
.frontier-news-panel { display: grid; grid-template-columns: minmax(0,1fr) 280px; grid-template-areas:'newshead digest' 'toolbar digest' 'news digest' 'query digest'; gap: 0 22px; padding: 0; margin: 0; height: auto; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.newspaper-header { grid-area: newshead; padding: 23px 24px 10px; background: url('./paper.webp') #fcf8ee; border: 1px solid var(--wc-line); border-bottom: 0; border-radius: 16px 15px 0 0; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.newspaper-title { font: 600 30px var(--wc-display); color: #2d5975; letter-spacing: .05em; }.newspaper-subtitle { color: #7c7e6c; font: 13px var(--wc-display); }
.news-toolbar { grid-area: toolbar; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 24px; border: 1px solid var(--wc-line); border-block: 0; background: url('./paper.webp') #fcf8ee; }
.update-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }.update-time { font-size: 11px; color: #737e73; }.news-count { font-size: 11px; color: #527b91; padding: 4px 8px; border: 1px solid #bfcfd2; border-radius: 7px; background: #ddecf138; }
#refreshNews { padding: 6px 10px; min-height: 32px; font-size: 12px; box-shadow: none; }
.newspaper-content { grid-area: news; display: block; padding: 5px 18px 20px; margin: 0; width: 100%; max-height: none; height: auto; overflow: visible; border: 1px solid var(--wc-line); border-top: 0; border-radius: 0 0 15px 17px; background: url('./paper.webp') #fcf8ee; }
.news-feed-shell { display: block; height: auto; }.news-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; padding: 5px 5px 14px; background: none; border: 0; }
.news-filter-button,.news-filter-tab { min-height: 34px; padding: 5px 10px; color: #657c70; background: #eff0e437; border: 1px solid #d8d3bd; border-radius: 6px; font-size: 12px; }
.news-filter-button.active,.news-filter-tab.active { color: #346f91; border-color: #adc8d4; background: #dfedf3; }
.news-feed-list { display: grid; gap: 10px; padding: 0; max-height: none; overflow: visible; }
.news-feed-row { display: grid; grid-template-columns: 35px minmax(0,1fr) 42px; gap: 12px; align-items: start; padding: 18px 15px; min-height: 105px; background: #fffaf038; border: 1px solid #dbd0b6; border-radius: 9px; color: var(--wc-ink); text-decoration: none; box-shadow: none; transition: background 160ms; }
.news-feed-row:hover { background: #e7efe255; transform: none; border-color: #afc2b0; }
.news-feed-rank { color: #81a092; background: #e5ebd9; border: 0; padding: 7px 0; width: 30px; border-radius: 7px; font: 15px var(--wc-display); text-align: center; }
.news-feed-topline { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px; color: #83907b; margin-bottom: 5px; }.news-feed-source { color: #627c7a; }.news-feed-title { font: 500 16px/1.75 var(--wc-display); color: #2e4d62; word-break: normal; overflow-wrap: anywhere; }.news-feed-meta { font-size: 10px; color: #938970; text-align: right; }.news-feed-hash { color: #87a0ae; }
.news-intel-panel { grid-area: digest; display: flex; flex-direction: column; align-self: start; padding: 24px 20px; gap: 14px; border: 1px solid var(--wc-line); border-radius: 16px 13px 18px 14px; background: url('./paper.webp') #fcf8ee; box-shadow: var(--wc-shadow); min-width: 0; height: auto; max-height: none; position: sticky; top: 20px; }
.news-digest-heading h2 { color: #365b6e; font: 600 24px var(--wc-display); margin: 5px 0 10px; }.news-digest-heading p { color: #7e8570; font: 12px/1.7 var(--wc-display); margin: 0; }
.news-digest-list { display: grid; gap: 17px; }.digest-item { font: 13px/1.85 var(--wc-display); color: #546863; text-decoration: none; border-left: 2px solid #b9c69d; padding-left: 12px; }
.digest-item small { display: block; color: #8e937b; font: 10px/1.8 var(--wc-ui); }
.news-query-paper { grid-area: query; display: block; margin-top: 18px; padding: 20px 24px; border: 1px solid var(--wc-line); border-radius: 14px; background: url('./paper.webp') #fcf8ee; position: static; box-shadow: var(--wc-shadow); }
.agent-console-head { padding: 0 0 12px; border: 0; background: none; display: block; }.agent-console-title { font: 600 23px var(--wc-display); color: #3a626c; }.agent-console-subtitle { font-size: 12px; color: #7c8675; margin-top: 7px; }
.agent-search-container { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 10px; padding: 0; background: none; border: 0; }.agent-input { width: 100%; min-height: 86px; background: #fffaf0; border: 1px solid #c8cbb2; border-radius: 8px; color: var(--wc-ink); padding: 11px; font: 13px/1.6 var(--wc-ui); resize: vertical; }.agent-actions { display: flex; flex-direction: column; gap: 8px; }
.agent-run-button { background: #99b8a0; border-color: #88a68a; color: #244a43; font-family: var(--wc-display); }.agent-brief-button { min-height: 36px; font-size: 11px; }
.query-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; }.agent-suggestion-chip { font: 11px var(--wc-ui); min-height: 30px; padding: 5px 8px; background: #e9eedc77; color: #62806e; border: 1px solid #d0d5bc; border-radius: 5px; }.agent-statusline { color: #708476; font: 11px var(--wc-ui); margin-top: 10px; }
.agent-briefing { position: static; height: auto; width: 100%; min-width: 0; max-height: 70vh; overflow: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.agent-briefing [class*="drawer"] { position: static; width: 100%; max-width: 100%; box-shadow: none; background: transparent; }
.agent-briefing h3 { font-family: var(--wc-display); }.agent-briefing p { font-size: 13px; }
.news-more { justify-self: center; margin-top: 8px; }

@keyframes cloud-drift { to { transform: translate3d(100px,-10px,0); } }
@keyframes meadow-breeze { to { transform: skewX(-8deg); } }
@keyframes companion-breeze { from { transform: rotate(-.3deg); } to { transform: rotate(.45deg); } }
@keyframes hair-breeze { from { transform: rotate(0deg); } to { transform: rotate(.9deg) translateX(.6px); } }
@keyframes petal-flight { 0% { opacity: 0; transform: translate3d(0,-25px,0) rotate(0deg); } 8% { opacity: .8; } 82% { opacity: .55; } 100% { opacity: 0; transform: translate3d(-170px,103vh,0) rotate(390deg); } }
.motion-paused .summer-scene *,.motion-paused .summer-companion,.motion-paused .companion-hair,.scene-sleep .summer-scene *,.scene-sleep .summer-companion,.scene-sleep .companion-hair { animation-play-state: paused; }
body[data-console-open="true"] .summer-petals,body[data-console-open="true"] .summer-grass { display: none; }

@media (min-width: 1600px) { .app { padding-top: 12px; } .topbar { min-height: 106px; } .podium-landscape { height: 490px; } .rank-paper { min-height: 410px; } }
@media (max-height: 720px) and (min-width: 701px) { .sidebar-illustration { display: none; } }
@media (max-width: 1230px) {
  body.yelan-watercolor { padding: 20px; }
  .topbar,.view-switch.public-tabs { width: calc(100% - 80px); }
  #leaderboardView { grid-template-columns: minmax(0,1fr) 270px 50px; gap: 18px; }
  .public-stats .metric { gap: 10px; padding: 14px 12px; }.stat-art { width: 29px; height: 29px; }.public-stats .label { font-size: 14px; }
  .summer-companion { width: 195px; right: -22px; bottom: 40px; }
  .podium-landscape { height: 370px; min-height: 370px; }.rank-paper { padding: 15px 13px; }.rank-paper-title .small-cap { display: none; }
  #rankRows .row { grid-template-columns: 27px minmax(0,1fr) 57px; gap: 7px; }.rank-list-head { grid-template-columns: 27px minmax(0,1fr) 57px; gap: 7px; }
  .console-shell { grid-template-columns: 196px minmax(0,1fr); }.console-sidebar { padding-inline: 12px; }.console-content { padding: 26px 22px 60px; }.channel-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.console-brand strong { font-size: 19px; }.console-nav { padding-inline: 10px; font-size: 14px; }
  #frontierNewsView { width: calc(100% - 75px); }.frontier-news-panel { grid-template-columns: minmax(0,1fr) 255px; gap: 0 16px; }
}
@media (max-width: 1000px) {
  .topbar,.view-switch.public-tabs { width: 100%; }.topbar { min-height: 86px; padding: 16px 22px; }
  #leaderboardView { grid-template-columns: minmax(0,1fr) 262px; grid-template-areas:'stats stats' 'board login' 'ticker ticker'; }
  .summer-companion { display: none; } .public-stats .metric { min-height: 91px; padding: 15px 22px; }
  #watercolorPublicBoard > .panel-body { grid-template-columns: 1fr; gap: 10px; }.rank-paper { min-height: 0; }.podium-landscape { height: 295px; min-height: 295px; margin: 0; }.podium-painting { object-fit: contain; }.painted-podium .podium-card { max-width: 130px; width: 100%; justify-self: center; }
  #podiumRows.painted-podium { inset-inline: 22px; bottom: 0; }.podium-caption { top: 0; }.public-ticker { margin-top: 0; }
  .dashboard-primary-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.channel-status-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .usage-log-primary-filters { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "range status" "start end" "model actions"; }
  .console-shell { grid-template-columns: 175px minmax(0,1fr); }.console-content { padding: 24px 18px 58px; }.console-brand { padding-inline: 0; gap: 6px; }.console-brand strong { font-size: 17px; }.paper-plane { font-size: 22px; }.console-nav { gap: 7px; padding: 9px 7px; }.view-heading { align-items: start; flex-direction: column; gap: 8px; }
  .channel-card { padding: 16px; }.channel-model-name { font-size: 16px; }
  #frontierNewsView { width: 100%; }.frontier-news-panel { grid-template-columns: minmax(0,1fr) 232px; gap: 0 14px; }.news-intel-panel { padding: 20px 17px; }.newspaper-header { padding: 20px 18px 8px; }.newspaper-subtitle { font-size: 12px; }.news-toolbar { padding-inline: 18px; }.news-feed-row { padding: 13px 10px; grid-template-columns: 27px minmax(0,1fr); gap: 10px; }.news-feed-meta { display: none; } body[data-active-view="frontier-news"] .summer-companion { display: none; }
}
@media (max-width: 700px) {
  body.yelan-watercolor,body[data-active-view="frontier-news"] { padding: 14px 12px 52px; }
  .summer-scene { background-image: url('./summer-scene-mobile.webp'); background-position: 53% bottom; }
  .summer-cloud { width: 300px; height: 100px; filter: blur(9px); }.summer-cloud.cloud-two { display: none; }.summer-petal:nth-child(n+7) { display: none; }
  .topbar { padding: 17px 16px; min-height: 92px; gap: 8px; flex-wrap: wrap; border-radius: 12px 16px 12px 14px; }
  .title-copy h1 { font-size: clamp(22px,5.8vw,31px); gap: 3px; letter-spacing: .04em; }.brand-eyebrow { font-size: 8px; letter-spacing: .09em; }.brand-mark { margin-right: 1px; }
  .masthead-status { font-size: 11px; gap: 7px; margin-left: 33px; }.live-dot { width: 6px; height: 6px; }
  .view-switch.public-tabs { gap: 8px; margin-bottom: 18px; padding: 5px 3px 0; }.public-tabs .view-tab { min-height: 46px; padding: 10px 12px; font-size: 18px; }.public-tabs .return-console { font-size: 11px; padding: 8px 6px; }
  #leaderboardView { grid-template-columns: minmax(0,1fr); grid-template-areas:'stats' 'login' 'board' 'ticker'; gap: 17px; }
  .public-stats { gap: 8px; }.public-stats .metric { min-height: 86px; padding: 12px 9px; display: block; border-radius: 11px; }.stat-art { width: 19px; height: 19px; display: none; }.public-stats .label { font: 12px var(--wc-display); margin-bottom: 7px; white-space: nowrap; }.public-stats .value { font-size: 20px; }.metric-gold .value { font-size: 16px; line-height: 25px; }
  .console-gate-card { min-height: 0; border-radius: 14px; }.console-gate-card > .newapi-card-body { padding: 22px 23px; gap: 15px; }.console-gate-copy h2 { font-size: 24px; margin-bottom: 5px; }.console-gate-copy p { margin-top: 8px; }.console-gate-kicker { font-size: 10px; }.console-gate-form { gap: 14px; }.console-gate-status { margin: 0; }.console-key-hint { font-size: 11px; }
  .rank-paper { padding: 17px; }.rank-paper-title .small-cap { display: block; }.rank-list-head { grid-template-columns: 35px minmax(0,1fr) 74px; }#rankRows .row { grid-template-columns: 35px minmax(0,1fr) 74px; min-height: 52px; }.rank-paper-foot { margin-top: 16px; }
  .podium-landscape { height: 340px; min-height: 340px; margin: 8px 0 0; }#podiumRows.painted-podium { inset-inline: 5px; bottom: 5px; }.podium-caption { top: 3px; }
  .public-ticker { align-items: start; flex-direction: column; gap: 9px; padding: 14px; }#boardTicker { font-size: 12px; }.ticker-label { font-size: 12px; }
  .motion-toggle { bottom: 8px; right: 10px; min-height: 37px; }
  .console-notice { top: 56px; right: 12px; left: auto; bottom: auto; max-width: min(360px, calc(100vw - 24px)); padding-left: 14px; }
  body[data-console-open="true"] { padding: 0; }.console-shell { display: block; min-height: 100dvh; }
  .console-sidebar { position: static; height: auto; width: 100%; padding: 0; min-height: 0; border: 0; overflow: visible; background: #fcf8ed; }.console-sidebar .console-brand,.sidebar-illustration { display: none; }
  .console-nav-list,.console-sidebar-foot { display: none; } body.mobile-nav-open .console-nav-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; padding: 75px 15px 10px; }body.mobile-nav-open .console-sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 18px; gap: 10px; }.console-sidebar-foot .newapi-button { width: auto; }
  .console-nav { font-size: 15px; min-height: 44px; padding: 8px 10px; }.console-nav-icon { width: 21px; }
  .console-content { padding: 84px 14px 55px; min-height: 100dvh; }body.mobile-nav-open .console-content { padding-top: 22px; }
  .console-mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: absolute; top: 0; left: 0; right: 0; z-index: 12; height: 64px; padding: 10px 14px; background: url('./paper.webp') #fcf8ec; border-bottom: 1px solid #d7d3ba; }
  .console-mobile-bar button { background: #e8f1e8; color: #476d77; min-height: 41px; padding: 8px 12px; border: 1px solid #c9d5c6; border-radius: 7px; font-size: 13px; }.console-mobile-bar strong { font: 600 19px var(--wc-display); }.console-mobile-bar .small-cap { font-size: 8px; }
  .view-heading { gap: 6px; margin-bottom: 17px; }.view-heading h2 { font-size: 26px; }.view-heading .small-cap { font-size: 9px; }.view-heading p { font-size: 11px; }
  .channel-status-summary { gap: 9px; margin-bottom: 16px; }.usage-query-card { padding: 12px 14px; }.usage-query-card > strong { font-size: 23px; }.usage-query-card .newapi-card-desc { font-size: 10px; }
  .channel-status-toolbar { gap: 9px; margin-bottom: 16px; }#newApiChannelSearch { width: 100%; flex: 1 1 100%; min-height: 44px; }#newApiChannelStatusFilter { width: 130px; min-height: 42px; }.channel-status-count { font-size: 11px; padding: 7px 8px; }#summerRefreshChannels { min-height: 41px; margin-left: auto; padding-inline: 11px; }
  .channel-status-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }.channel-card { min-height: 204px; padding: 20px; }.channel-model-name { font-size: 19px; }.channel-card-metric strong { font-size: 21px; }.channel-card-metric span { font-size: 12px; }.channel-data-note { font-size: 11px; }
  .model-detail-dialog { width: 100%; max-width: 100%; padding: 22px; border-radius: 0; }
  .newapi-card-head,.newapi-card-body { padding: 16px; }.newapi-card-title { font-size: 18px; }.newapi-metrics,.dashboard-primary-metrics,.dashboard-state-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.newapi-metric { padding: 12px; }.newapi-metric strong { font-size: 22px; }.dashboard-hourly-card { padding: 10px; }.dashboard-grid { display: block; }
  .newapi-input,.newapi-select,.newapi-button { min-height: 42px; }.newapi-field { min-width: 0; }.newapi-actions { flex-wrap: wrap; }.console-page-grid,.recharge-layout,.admin-workspace-grid { grid-template-columns: minmax(0,1fr); }
  .usage-log-primary-filters { grid-template-columns: minmax(0,1fr); grid-template-areas: "range" "start" "end" "status" "model" "actions"; }
  .admin-workspace-tabs,.instance-tool-tabs { gap: 5px; padding: 6px; }.admin-workspace-tab,.instance-tool-tab { flex: 1 0 auto; min-height: 42px; padding: 8px; font-size: 12px; }.admin-overview-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .yelan-ops { padding: 0; }.yelan-ops header { gap: 10px; }.yelan-ops .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }.yelan-ops .card { padding: 12px; }.yelan-ops .num { font-size: 24px; }.yelan-ops .section { min-width: 0; }.yelan-ops .table-wrap { overflow-x: auto; }
  .ops-standalone { padding: 16px 12px; }
  #frontierNewsView { width: 100%; }.frontier-news-panel { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas:'newshead' 'toolbar' 'news' 'digest' 'query'; gap: 0; }.newspaper-header { padding: 20px 17px 9px; gap: 7px; }.newspaper-title { font-size: 28px; }.newspaper-subtitle { display: block; width: 100%; }.news-toolbar { padding: 9px 17px; }.newspaper-content { padding: 6px 12px 16px; }.news-filter-bar { gap: 6px; padding-inline: 0; }.news-filter-button,.news-filter-tab { min-height: 38px; font-size: 11px; padding: 7px 9px; }.news-feed-row { min-height: 90px; padding: 14px 11px; }.news-feed-title { font-size: 16px; line-height: 1.65; }.news-feed-list { gap: 9px; }
  .news-intel-panel { position: static; margin-top: 17px; padding: 21px; }.news-digest-heading h2 { font-size: 23px; }.news-digest-list { gap: 13px; }.digest-item { font-size: 14px; }.news-query-paper { padding: 20px 17px; }.agent-search-container { grid-template-columns: minmax(0,1fr); }.agent-actions { flex-direction: row; }.agent-actions > * { flex: 1; min-height: 43px; }.agent-input { min-height: 89px; }.agent-suggestion-chip { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
  .summer-scene *,.summer-companion,.companion-hair { animation: none !important; }.summer-petals { display: none; }
  button,a,.channel-card { transition: none; }.channel-card:hover { transform: none; }.motion-toggle { display: none; }
}

.channel-family-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:-6px 0 20px; }
.channel-family-tabs button { min-height:34px; padding:6px 13px; border:1px solid #c4d0bc; background:#fcf8edb0; color:#527366; border-radius:6px; font:12px var(--wc-ui); }
.channel-family-tabs button[aria-pressed="true"] { background:#d3e7ec; border-color:#99bbc8; color:#28698a; }
.channel-card { text-align:left; font-family:var(--wc-ui); }
.channel-card-foot { font-size:10px; color:#7b8574; padding-top:3px; }
.detail-open { overflow:hidden !important; }
.public-stats .rank-title { display:none; }
@media(max-width:700px){.channel-family-tabs {gap:6px;margin:0 0 15px}.channel-family-tabs button{min-height:38px;padding:6px 11px}.channel-card-foot{font-size:11px}}

#rankRows .row::before,#rankRows .row::after,.painted-podium .podium-card::before,.painted-podium .podium-card::after {content:none;}
#rankRows .pill {background:none;border:0;border-radius:0;padding:0;color:#647064;box-shadow:none;text-align:right;font:14px var(--wc-ui);}
#rankRows .rank-badge {display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid #d0b675;background:#f4e2b8;font:14px var(--wc-display);color:#977027;box-shadow:none;}
#rankRows .row:nth-child(2) .rank-badge {background:#e6eced;border-color:#b6c9cd;color:#648492;}
#rankRows .row:nth-child(3) .rank-badge {background:#efdbc9;border-color:#d1ad8a;color:#996332;}
#rankRows .row .left {min-width:0;}.rank-list-head {gap:10px;}.rank-list-head span:nth-child(2) {padding-left:4px;}
.painted-podium .podium-card {font-family:var(--wc-ui);}.painted-podium .podium-score {font-family:var(--wc-ui);font-weight:400;}
.channel-provider-line {max-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.channel-card-foot {font-weight:400;}
@media(max-width:1000px){#watercolorPublicBoard > .panel-body{grid-template-rows:auto auto;}}

#boardTicker::before,#boardTicker::after {content:none;}
@media(max-width:1000px){#watercolorPublicBoard > .panel-body {display:block;height:auto;max-height:none;flex:none;}.podium-landscape{margin-top:16px;}}
