.app-page {
  min-height: 100svh;
  color: #101722;
  background: #bfd9e8;
}
.app-backdrop { position: fixed; z-index: -3; inset: 0; overflow: hidden; background: #79a8c8; }
.app-backdrop video { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.8) brightness(1.04); }
.app-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(226,240,247,.68); backdrop-filter: blur(3px); }
.app-header {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 18px;
  right: 18px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b1420;
  background: rgba(255,255,255,.25);
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 18px 48px rgba(51,91,112,.1);
  backdrop-filter: blur(24px) saturate(1.15);
}
.app-header .brand-mark { width: 44px; height: 44px; color: #fff; background: #172232; }
.app-header .brand strong { font-family: var(--heading); font-size: 21px; font-style: italic; font-weight: 400; }
.app-header-center { margin: auto; color: rgba(10,17,29,.48); font-size: 10px; text-transform: uppercase; }
.app-header .header-user { margin-left: auto; }
.header-user { display: flex; align-items: center; gap: 9px; padding: 5px 7px 5px 13px; border-radius: 999px; background: rgba(255,255,255,.35); }
.header-user span { display: flex; flex-direction: column; }
.header-user b { font-size: 11px; font-weight: 500; }
.header-user small { color: rgba(10,17,29,.45); font-size: 8px; }
.header-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #a64f68; font-family: var(--heading); font-style: italic; }
.app-layout { min-height: 100svh; display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; padding: 90px 18px 18px; }
.app-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100svh - 108px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.23);
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 18px 55px rgba(55,93,113,.09);
  backdrop-filter: blur(24px) saturate(1.08);
}
.sidebar-label { margin: 10px 10px 8px; color: rgba(10,17,29,.38); font-size: 8px; text-transform: uppercase; }
.app-nav { display: flex; flex-direction: column; gap: 3px; }
.app-nav button, .app-nav a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  color: rgba(10,17,29,.6);
  background: transparent;
  font-size: 11px;
  text-align: left;
}
.app-nav button:hover, .app-nav button.is-active, .app-nav a:hover { color: #fff; background: #172232; }
.app-nav svg { width: 16px; height: 16px; }
.sidebar-card { margin-top: auto; padding: 15px; border-radius: 7px; color: #fff; background: rgba(23,34,50,.9); }
.sidebar-card small { color: rgba(255,255,255,.55); font-size: 8px; }
.sidebar-card b { display: block; margin: 6px 0 13px; font-family: var(--heading); font-size: 27px; font-weight: 400; }
.sidebar-card a { display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.app-main { min-width: 0; padding: 36px clamp(16px, 4vw, 58px) 60px; border-radius: 8px; background: rgba(247,251,253,.72); box-shadow: inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(28px); }
.view-panel { display: none; }
.view-panel.is-active { display: block; animation: viewIn .45s ease both; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.view-heading p { margin: 0 0 8px; color: #537486; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.view-heading h1 { margin: 0; font-family: var(--heading); font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: .92; }
.view-heading h1 em { color: #a64f68; font-style: italic; }
.view-heading > small { max-width: 310px; color: rgba(10,17,29,.52); font-size: 10px; line-height: 1.55; text-align: right; }
.app-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; color: #fff; background: #172232; font-size: 10px; font-weight: 500; }
.app-button:hover { background: #a64f68; }
.app-button.secondary { color: #15202d; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(10,17,29,.1); }
.app-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #172232; background: rgba(255,255,255,.55); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.metric-card { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.36); box-shadow: 0 16px 45px rgba(60,96,115,.07); }
.metric-card span { display: flex; align-items: center; justify-content: space-between; color: rgba(10,17,29,.5); font-size: 9px; }
.metric-card svg { width: 15px; height: 15px; }
.metric-card b { display: block; margin: 18px 0 5px; overflow: hidden; font-family: var(--heading); font-size: 31px; font-weight: 400; text-overflow: ellipsis; }
.metric-card small { color: #2e7d62; font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 10px; margin-top: 10px; }
.app-panel { padding: 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.34); box-shadow: 0 16px 45px rgba(60,96,115,.06); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 12px; font-weight: 500; }
.panel-head span, .panel-head button { color: rgba(10,17,29,.45); font-size: 8px; }
.usage-chart { height: 190px; display: flex; align-items: end; gap: 7px; padding-top: 20px; border-bottom: 1px solid rgba(10,17,29,.1); }
.usage-chart i { flex: 1; height: var(--h); min-width: 5px; border-radius: 2px 2px 0 0; background: #6e9db7; opacity: .72; transition: opacity 160ms ease, background 160ms ease; }
.usage-chart i:hover { opacity: 1; background: #a64f68; }
.chart-days { display: flex; justify-content: space-between; margin-top: 8px; color: rgba(10,17,29,.35); font-size: 7px; }
.distribution { display: flex; flex-direction: column; gap: 14px; }
.distribution-row { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 12px; }
.distribution-row span { display: flex; flex-direction: column; gap: 7px; font-size: 9px; }
.distribution-row i { height: 4px; border-radius: 999px; background: rgba(10,17,29,.08); overflow: hidden; }
.distribution-row i::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: #a64f68; }
.distribution-row b { text-align: right; font-family: var(--heading); font-size: 18px; font-weight: 400; }
.table-panel { margin-top: 10px; overflow: hidden; padding: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.data-table th { padding: 13px 15px; color: rgba(10,17,29,.38); font-size: 7px; font-weight: 500; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 15px; border-top: 1px solid rgba(10,17,29,.08); white-space: nowrap; }
.data-table td.model-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #29735a; background: rgba(63,151,116,.09); font-size: 8px; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #43a67d; }
.key-list { display: flex; flex-direction: column; gap: 8px; }
.key-row { display: grid; grid-template-columns: minmax(190px,1.2fr) 1fr 90px 70px 90px; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.34); }
.key-name { min-width: 0; display: flex; align-items: center; gap: 11px; }
.key-name i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #6e9db7; }
.key-name i svg { width: 15px; height: 15px; }
.key-name span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.key-name b { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; }
.key-name small, .key-cell small { color: rgba(10,17,29,.42); font-size: 8px; }
.key-cell { display: flex; flex-direction: column; gap: 3px; font-size: 9px; }
.token-code { overflow: hidden; font-family: ui-monospace, monospace; text-overflow: ellipsis; }
.switch { position: relative; width: 34px; height: 19px; display: inline-flex; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 100%; border-radius: 999px; background: rgba(10,17,29,.18); transition: background 160ms ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.switch input:checked + span { background: #54a889; }
.switch input:checked + span::after { transform: translateX(15px); }
.filters-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.app-input, .app-select { min-height: 39px; padding: 0 13px; border: 1px solid rgba(10,17,29,.1); border-radius: 999px; outline: 0; color: #101722; background: rgba(255,255,255,.45); font-size: 9px; }
.app-input:focus, .app-select:focus { border-color: #6e9db7; background: rgba(255,255,255,.7); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: rgba(10,17,29,.55); font-size: 9px; }
.field input, .field textarea, .field select { width: 100%; min-height: 43px; padding: 10px 13px; border: 1px solid rgba(10,17,29,.1); border-radius: 7px; outline: 0; color: #101722; background: rgba(255,255,255,.45); font-size: 10px; }
.field textarea { min-height: 95px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #6e9db7; background: rgba(255,255,255,.72); }
.field.full { grid-column: 1 / -1; }
.redeem-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 24px; border-radius: 8px; color: #fff; background: #172232; }
.redeem-hero h2 { margin: 0 0 7px; font-family: var(--heading); font-size: 31px; font-weight: 400; }
.redeem-hero p { margin: 0; color: rgba(255,255,255,.55); font-size: 9px; }
.redeem-form { display: flex; gap: 7px; }
.redeem-form input { min-width: 240px; color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.plan-card { padding: 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.34); }
.plan-card small { color: rgba(10,17,29,.45); font-size: 8px; }
.plan-card b { display: block; margin: 12px 0 18px; font-family: var(--heading); font-size: 30px; font-weight: 400; }
.plan-card ul { min-height: 88px; margin: 0 0 18px; padding: 0; list-style: none; color: rgba(10,17,29,.58); font-size: 9px; line-height: 1.9; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(7,12,20,.38); backdrop-filter: blur(7px); }
.modal-backdrop.is-open { display: grid; }
.app-modal { width: min(520px,100%); padding: 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 8px; background: rgba(235,245,249,.92); box-shadow: 0 30px 90px rgba(22,50,68,.25); }
.app-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.app-modal h2 { margin: 0; font-family: var(--heading); font-size: 32px; font-weight: 400; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; padding: 12px 17px; border-radius: 999px; color: #fff; background: #172232; font-size: 9px; opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.auth-page { min-height: 100svh; display: grid; place-items: center; padding: 90px 20px 30px; color: #101722; }
.auth-video { position: fixed; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-shade { position: fixed; z-index: -1; inset: 0; background: rgba(18,42,57,.22); }
.auth-brand { position: fixed; z-index: 3; top: 22px; left: 28px; color: #fff; }
.auth-card { width: min(430px,100%); padding: 28px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; background: rgba(248,252,253,.46); box-shadow: 0 30px 90px rgba(34,64,79,.18); backdrop-filter: blur(28px) saturate(1.1); }
.auth-card h1 { margin: 0; font-family: var(--heading); font-size: 52px; font-weight: 400; line-height: .9; }
.auth-card > p { margin: 12px 0 24px; color: rgba(10,17,29,.55); font-size: 10px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 19px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.34); }
.auth-tabs button { flex: 1; padding: 9px; border: 0; border-radius: 999px; color: rgba(10,17,29,.52); background: transparent; font-size: 9px; }
.auth-tabs button.is-active { color: #fff; background: #172232; }
.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.is-active { display: flex; }
.auth-form .app-button { width: 100%; margin-top: 4px; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; color: rgba(10,17,29,.52); font-size: 8px; }
.auth-meta label { display: flex; align-items: center; gap: 6px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 5px 0; color: rgba(10,17,29,.35); font-size: 8px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(10,17,29,.1); }
.oauth-button { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(10,17,29,.1); border-radius: 999px; color: #101722; background: rgba(255,255,255,.4); font-size: 9px; }

.generate-page { min-height: 100svh; color: #101722; background: #c3ddeb; }
.generate-layout { min-height: 100svh; display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 12px; padding: 86px 14px 14px; }
.generate-controls { padding: 22px; border-radius: 8px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px rgba(255,255,255,.76); backdrop-filter: blur(25px); }
.generate-controls h1 { margin: 0 0 5px; font-family: var(--heading); font-size: 38px; font-weight: 400; }
.generate-controls > p { margin: 0 0 22px; color: rgba(10,17,29,.48); font-size: 9px; }
.segmented { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.4); }
.segmented button { flex: 1; padding: 8px; border: 0; border-radius: 999px; color: rgba(10,17,29,.52); background: transparent; font-size: 8px; }
.segmented button.is-active { color: #fff; background: #172232; }
.upload-zone { min-height: 90px; display: grid; place-items: center; padding: 14px; border: 1px dashed rgba(10,17,29,.2); border-radius: 8px; color: rgba(10,17,29,.45); background: rgba(255,255,255,.2); font-size: 9px; text-align: center; }
.upload-zone svg { display: block; margin: 0 auto 7px; }
.generate-stage { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 32px; border-radius: 8px; color: #fff; background: #6e9db7; isolation: isolate; }
.generate-stage video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.generate-stage::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(8,21,32,.2); }
.stage-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; }
.stage-top p { margin: 0; font-family: var(--heading); font-size: 25px; font-style: italic; }
.stage-actions { display: flex; gap: 7px; }
.stage-actions button { color: #fff; background: rgba(255,255,255,.13); backdrop-filter: blur(14px); }
.prompt-dock { width: min(760px,100%); margin: 0 auto; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px rgba(255,255,255,.45), 0 20px 70px rgba(9,31,48,.16); backdrop-filter: blur(24px); }
.prompt-dock textarea { width: 100%; min-height: 88px; padding: 12px; resize: none; border: 0; outline: 0; color: #fff; background: transparent; font-size: 11px; line-height: 1.6; }
.prompt-dock textarea::placeholder { color: rgba(255,255,255,.62); }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; }
.prompt-actions small { padding-left: 10px; color: rgba(255,255,255,.55); font-size: 8px; }
.generate-button { min-height: 41px; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 999px; color: #172232; background: #fff; font-size: 9px; }
.generate-button.is-loading svg { animation: spin 1s linear infinite; }
.history-drawer { position: fixed; z-index: 70; top: 84px; right: 14px; bottom: 14px; width: min(370px,calc(100% - 28px)); padding: 18px; overflow-y: auto; border-radius: 8px; background: rgba(241,248,251,.9); box-shadow: 0 25px 80px rgba(38,70,87,.2); backdrop-filter: blur(28px); transform: translateX(calc(100% + 30px)); transition: transform 260ms ease; }
.history-drawer.is-open { transform: translateX(0); }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.history-head h2 { margin: 0; font-family: var(--heading); font-size: 30px; font-weight: 400; }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.history-item { aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: #94b8cb; }
.history-item video { width: 100%; height: 100%; object-fit: cover; }

.docs-page { min-height: 100svh; color: #101722; background: #d7e8ef; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0,1fr) 190px; gap: 30px; padding: 100px clamp(20px,5vw,72px) 70px; }
.docs-sidebar { position: sticky; top: 100px; align-self: start; padding: 18px; border-radius: 8px; background: rgba(255,255,255,.3); box-shadow: inset 0 1px rgba(255,255,255,.75); }
.docs-sidebar h3 { margin: 0 0 15px; color: rgba(10,17,29,.4); font-size: 8px; font-weight: 500; text-transform: uppercase; }
.docs-sidebar a { display: block; padding: 9px 10px; border-radius: 6px; color: rgba(10,17,29,.55); font-size: 9px; }
.docs-sidebar a:hover, .docs-sidebar a.is-active { color: #fff; background: #172232; }
.docs-content { max-width: 800px; }
.docs-content > p:first-child { color: #557a8d; font-size: 9px; text-transform: uppercase; }
.docs-content h1 { margin: 0 0 20px; font-family: var(--heading); font-size: clamp(50px,6vw,82px); font-weight: 400; line-height: .9; }
.docs-content h1 em { color: #a64f68; font-style: italic; }
.docs-content .lead { color: rgba(10,17,29,.55); font-size: 12px; line-height: 1.8; }
.docs-content section { padding: 35px 0; border-bottom: 1px solid rgba(10,17,29,.1); }
.docs-content h2 { margin: 0 0 14px; font-family: var(--heading); font-size: 32px; font-weight: 400; }
.docs-content p, .docs-content li { color: rgba(10,17,29,.62); font-size: 10px; line-height: 1.8; }
.code-block { position: relative; margin-top: 17px; padding: 18px; overflow-x: auto; border-radius: 8px; color: #e8f4f7; background: #172232; font: 10px/1.7 ui-monospace, SFMono-Regular, monospace; }
.code-block button { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); }
.docs-toc { position: sticky; top: 100px; align-self: start; color: rgba(10,17,29,.45); font-size: 8px; line-height: 2.2; }
.docs-toc b { display: block; color: #101722; font-weight: 500; }

@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.standalone-page {
  min-height: 100svh;
  color: #111a24;
  background: #8dc5e7;
}
.standalone-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.015);
}
.standalone-page::after { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: rgba(255,255,255,.045); }
.standalone-page[data-bg="status"]::before { background-image: url('./assets/flower-public-4k.webp'); }
.standalone-page[data-bg="models"]::before { background-image: url('./assets/flower-public-4k.webp'); background-position: 54% center; }
.standalone-page[data-bg="ranking"]::before { background-image: url('./assets/flower-public-4k.webp'); background-position: 46% center; }
.standalone-page[data-bg="auth"]::before { background-image: url('./assets/flower-public-4k.webp'); background-position: 58% center; }
.page-nav .brand, .page-nav .nav-login { color: #101923; }
.page-nav .nav-links { background: rgba(255,255,255,.36); box-shadow: inset 0 1px rgba(255,255,255,.82), 0 12px 36px rgba(39,75,94,.09); }
.page-nav .nav-links a { color: rgba(10,17,29,.65); }
.page-nav .nav-links a:hover, .page-nav .nav-links a.is-active { color: #101923; background: rgba(255,255,255,.48); }
.page-nav .nav-links .nav-claim { color: #fff; background: #172232; }
.standalone-page .page-nav .nav-login,
.generate-page .page-nav .nav-login {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(16, 25, 35, .14);
  border-radius: 999px;
  color: #101923;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 8px 24px rgba(17, 30, 39, .14);
  backdrop-filter: blur(12px) saturate(1.05);
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
}
.standalone-main { padding-top: 82px; }
.page-hero {
  min-height: 76svh;
  display: grid;
  grid-template-columns: 1fr minmax(260px, .42fr);
  align-content: center;
  align-items: end;
  gap: 30px;
  padding: 90px clamp(24px, 6vw, 90px) 70px;
}
.page-hero.align-right { text-align: right; }
.page-hero.align-right .page-hero-copy { justify-self: end; text-align: right; }
.page-hero > p { grid-column: 1 / -1; align-self: end; margin: 0 0 -4px; color: rgba(10,17,29,.55); font-size: 11px; font-weight: 600; }
.page-hero-title { margin: 0; overflow: hidden; font-family: var(--heading); font-size: clamp(94px, 12vw, 190px); font-weight: 400; line-height: .68; }
.page-hero-title span { display: block; overflow: hidden; padding-bottom: .12em; }
.page-hero-title em { font-style: italic; }
.page-hero-copy { align-self: end; max-width: 340px; display: flex; flex-direction: column; gap: 7px; padding-bottom: 8px; }
.page-hero-copy b { font-size: 18px; font-weight: 500; }
.page-hero-copy span { color: rgba(10,17,29,.56); font-size: 12px; }
.page-content-panel {
  position: relative;
  padding: 72px clamp(20px, 6vw, 90px) 100px;
  border-top: 1px solid rgba(255,255,255,.8);
  background: rgba(240,248,250,.76);
  box-shadow: 0 -25px 80px rgba(50,86,102,.08);
  backdrop-filter: blur(12px) saturate(1.05);
}
.standalone-page .status-toolbar,
.standalone-page .model-toolbar { position: sticky; z-index: 8; top: 84px; margin: 0 0 24px; background: rgba(255,255,255,.44); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 14px 38px rgba(45,78,94,.08); }
.standalone-page .status-grid,
.standalone-page .model-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.standalone-page .status-card,
.standalone-page .model-card { background: rgba(255,255,255,.5); border-color: rgba(255,255,255,.9); box-shadow: 0 15px 38px rgba(45,78,94,.07); }
.standalone-page .status-card { color: #101923; }
.standalone-page .status-card-head h3,
.standalone-page .model-card h3,
.standalone-page .price-row b { color: #101923; }
.standalone-page .status-metrics small,
.standalone-page .availability small,
.standalone-page .price-row span { color: rgba(10,17,29,.48); }
.standalone-page .status-metrics > span + span,
.standalone-page .availability,
.standalone-page .price-row { border-color: rgba(10,17,29,.09); }
.standalone-page .model-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; }
.standalone-page .model-toolbar input { color: #101923; }
.standalone-page .model-toolbar input::placeholder { color: rgba(10,17,29,.45); }
.standalone-page .model-toolbar svg { color: rgba(10,17,29,.45); }
.standalone-page .model-filters button { color: rgba(10,17,29,.55); }
.standalone-page .model-filters button:hover,
.standalone-page .model-filters button.is-active { color: #fff; background: #172232; }
.standalone-page .model-toolbar > p small { color: rgba(10,17,29,.48); }

.ranking-main { padding-bottom: 100px; }
.ranking-board {
  margin-top: 0;
  padding: 78px clamp(20px, 6vw, 90px);
  border-top: 1px solid rgba(255,255,255,.78);
  background: rgba(246,249,246,.75);
  backdrop-filter: blur(11px) saturate(1.05);
}
.ranking-board + .ranking-board { background: rgba(250,235,240,.78); }
.ranking-board > header { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 36px; }
.ranking-board > header p { grid-column: 1 / -1; margin: 0 0 7px; color: #557a75; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.ranking-board > header h2 { margin: 0; font-family: var(--heading); font-size: clamp(46px,6vw,76px); font-weight: 400; }
.ranking-board > header h2 em { color: #a44b66; font-style: italic; }
.ranking-board > header > span { color: rgba(10,17,29,.48); font-size: 11px; }
.ranking-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 14px; align-items: stretch; }
.ranking-list,
.ranking-gallery { padding: 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: rgba(255,255,255,.52); box-shadow: 0 18px 50px rgba(49,81,91,.07); }
.ranking-list-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 8px; border-bottom: 1px solid rgba(10,17,29,.08); }
.ranking-list-row:last-child { border-bottom: 0; }
.ranking-list-row > span { color: rgba(10,17,29,.32); font-family: var(--heading); font-size: 22px; font-style: italic; }
.ranking-list-row div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ranking-list-row strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list-row small { color: rgba(10,17,29,.43); font-size: 9px; }
.ranking-list-row b { color: #9d405b; font-family: var(--heading); font-size: 20px; font-weight: 400; }
.ranking-gallery-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 3px 14px; }
.ranking-gallery-head b { font-size: 12px; font-weight: 500; }
.ranking-gallery-head span { color: rgba(10,17,29,.38); font-size: 8px; }
.media-ribbon { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
.rank-media-item { position: relative; min-width: 0; aspect-ratio: .78; overflow: hidden; border-radius: 7px; color: #fff; background: #7aa9be; }
.rank-media-item img { width: 100%; height: 100%; display: block; object-fit: contain; }
.rank-media-item::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(5,12,18,.72)); }
.rank-media-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9); background: #7aa9be; font-family: var(--heading); font-size: 48px; font-style: italic; }
.rank-media-item footer { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 9px; display: flex; align-items: end; justify-content: space-between; gap: 5px; }
.rank-media-item footer span { min-width: 0; overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.rank-media-item footer b { font-family: var(--heading); font-size: 19px; font-weight: 400; }

.notice-board { padding: 0 clamp(20px,6vw,90px) 100px; }
.notice-board article { display: grid; grid-template-columns: 72px minmax(0,1fr) 36px; align-items: center; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.7); }
.notice-board time { color: #a44b66; font-size: 10px; font-weight: 600; }
.notice-board h2 { margin: 0 0 6px; font-family: var(--heading); font-size: 31px; font-weight: 400; }
.notice-board p { margin: 0; color: rgba(10,17,29,.52); font-size: 11px; }
.notice-board svg { justify-self: end; }

@media (max-width: 1000px) {
  .app-layout { grid-template-columns: 76px minmax(0,1fr); }
  .app-sidebar { padding: 10px; }
  .app-nav button, .app-nav a { justify-content: center; padding: 12px; }
  .app-nav span, .sidebar-label, .sidebar-card { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .key-row { grid-template-columns: minmax(180px,1fr) 1fr 60px 70px; }
  .key-row > :nth-child(3) { display: none; }
  .docs-layout { grid-template-columns: 200px minmax(0,1fr); }
  .docs-toc { display: none; }
  .standalone-page .status-grid,
  .standalone-page .model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ranking-split { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .app-header { left: 8px; right: 8px; top: 8px; }
  .app-header-center, .header-user span { display: none; }
  .app-layout { display: block; padding: 80px 8px 8px; }
  .app-sidebar { position: fixed; z-index: 30; top: auto; left: 8px; right: 8px; bottom: 8px; height: auto; padding: 6px; border-radius: 999px; }
  .app-nav { flex-direction: row; justify-content: space-around; }
  .app-nav button, .app-nav a { width: auto; border-radius: 50%; }
  .app-nav button:nth-child(n+6), .app-nav a { display: none; }
  .app-main { padding: 30px 12px 90px; }
  .view-heading { align-items: start; flex-direction: column; }
  .view-heading > small { text-align: left; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 14px; }
  .metric-card b { font-size: 24px; }
  .key-row { grid-template-columns: 1fr auto auto; }
  .key-row > :nth-child(2), .key-row > :nth-child(3) { display: none; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(4), .data-table td:nth-child(4) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .redeem-hero { grid-template-columns: 1fr; }
  .redeem-form { flex-direction: column; }
  .redeem-form input { min-width: 0; }
  .plan-grid { grid-template-columns: 1fr; }
  .generate-layout { display: block; padding: 80px 8px 8px; }
  .generate-controls { margin-bottom: 8px; }
  .generate-stage { min-height: 650px; padding: 18px; }
  .docs-layout { display: block; padding: 90px 15px 50px; }
  .docs-sidebar { position: static; display: flex; gap: 4px; overflow-x: auto; margin-bottom: 28px; padding: 7px; border-radius: 999px; }
  .docs-sidebar h3 { display: none; }
  .docs-sidebar a { flex: 0 0 auto; border-radius: 999px; }
  .page-hero { min-height: 70svh; grid-template-columns: 1fr; align-content: end; padding: 100px 16px 48px; }
  .page-hero.align-right { text-align: left; }
  .page-hero.align-right .page-hero-copy { justify-self: start; text-align: left; }
  .page-hero-title { font-size: clamp(74px,24vw,110px); }
  .page-content-panel { padding: 50px 12px 80px; }
  .standalone-page .status-toolbar,
  .standalone-page .model-toolbar { position: static; }
  .standalone-page .status-grid,
  .standalone-page .model-grid { grid-template-columns: 1fr; }
  .standalone-page .model-toolbar { grid-template-columns: 1fr auto; }
  .ranking-board { padding: 55px 12px; }
  .ranking-board > header { grid-template-columns: 1fr; }
  .ranking-board > header > span { margin-top: 7px; }
  .media-ribbon { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .media-ribbon .rank-media-item:last-child { display: none; }
  .notice-board { padding: 0 16px 70px; }
  .notice-board article { grid-template-columns: 50px minmax(0,1fr) 24px; gap: 12px; }
}

/* Refined flower-garden layout: clarity first, with compact page headers. */
.app-backdrop {
  background: url('./assets/flower-console.webp') center / cover no-repeat fixed;
}
.app-backdrop::after {
  background: rgba(235, 246, 247, .76);
  backdrop-filter: none;
}
.docs-backdrop { background-image: url('./assets/flower-public-4k.webp'); }
.app-header {
  background: rgba(252, 254, 253, .92);
  backdrop-filter: blur(12px) saturate(1.08);
}
.app-header-center { color: rgba(10,17,29,.58); font-size: 12px; }
.header-user b { font-size: 13px; }
.header-user small { font-size: 11px; }
.app-sidebar,
.app-main { background: rgba(248, 252, 250, .94); backdrop-filter: none; }
.app-nav button,
.app-nav a { min-height: 44px; font-size: 13px; }
.sidebar-label { font-size: 10px; }
.sidebar-card small { font-size: 11px; }
.sidebar-card button { border: 0; padding: 0; color: inherit; background: transparent; font-size: 12px; }
.view-heading p { font-size: 11px; }
.view-heading h1 { font-size: 58px; }
.view-heading > small { color: rgba(10,17,29,.66); font-size: 13px; line-height: 1.65; }
.metric-card span,
.metric-card small { font-size: 12px; }
.metric-card b { font-size: 36px; }
.panel-head h2 { font-size: 15px; }
.panel-head span,
.panel-head button { font-size: 11px; }
.data-table { font-size: 12px; }
.data-table th { font-size: 10px; }
.key-name b { font-size: 13px; }
.key-name small,
.key-cell small { font-size: 10px; }
.key-cell { font-size: 12px; }
.app-button { min-height: 43px; font-size: 12px; }
.app-input,
.app-select { min-height: 43px; font-size: 12px; }
.field label { color: rgba(10,17,29,.7); font-size: 12px; }
.field input,
.field textarea,
.field select { font-size: 13px; }
.toast { font-size: 12px; }
.table-head { padding: 18px 18px 0; }
.rose { background: #a64f68 !important; }
.positive { color: #23785d; }
.negative { color: #a84c61; }
.wallet-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.wallet-summary article,
.affiliate-grid > article {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: rgba(255,255,255,.48);
}
.wallet-summary small,
.affiliate-grid small { display: block; color: rgba(10,17,29,.56); font-size: 12px; }
.wallet-summary b,
.affiliate-stat b { display: block; margin-top: 10px; font-family: var(--heading); font-size: 34px; font-weight: 400; }
.balance-table { margin-top: 12px; }
.affiliate-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 10px; margin-bottom: 12px; }
.invite-card > div { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.invite-card > div b { font-family: var(--heading); font-size: 30px; font-weight: 400; }
.invite-card p,
.affiliate-stat span { margin: 0; color: rgba(10,17,29,.56); font-size: 12px; line-height: 1.6; }
.text-button,
.auth-link,
.auth-back { border: 0; padding: 0; color: #a34260; background: transparent; font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }

.auth-page {
  min-height: 100svh;
  padding: 92px 22px 34px;
  background: #8ec4dd;
}
.auth-image {
  position: fixed;
  z-index: -3;
  inset: 0;
  background: url('./assets/flower-public-4k.webp') center / cover no-repeat;
}
.auth-shade { background: rgba(12, 30, 40, .08); }
.auth-card {
  width: min(470px, 100%);
  padding: 34px;
  background: rgba(249, 252, 250, .82);
  border-color: rgba(255,255,255,.9);
  backdrop-filter: blur(12px) saturate(1.05);
}
.auth-kicker { margin: 0 0 9px !important; color: #3c6f78 !important; font-size: 11px !important; font-weight: 600; text-transform: uppercase; }
.auth-card h1 { font-size: 58px; }
.auth-card > p { color: rgba(10,17,29,.68); font-size: 13px; }
.auth-tabs button { font-size: 12px; }
.auth-tabs.is-hidden { display: none; }
.auth-meta { font-size: 11px; }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.auth-code-row input { min-width: 0; }
.auth-code-button { min-height: 43px; padding: 0 14px; border: 1px solid rgba(10,17,29,.14); border-radius: 7px; color: #fff; background: #172232; font-size: 12px; white-space: nowrap; transition: background 180ms ease, opacity 180ms ease; }
.auth-code-button:hover:not(:disabled) { background: #24374d; }
.auth-code-button:disabled { cursor: not-allowed; opacity: .58; }
.auth-code-hint { min-height: 14px; color: #3d7364; font-size: 11px; }
.auth-code-hint.is-error { color: #a34260; }
.forgot-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.forgot-heading > button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.58); }
.forgot-heading div { display: flex; flex-direction: column; gap: 3px; }
.forgot-heading b { font-size: 18px; }
.forgot-heading span { color: rgba(10,17,29,.55); font-size: 12px; }

.standalone-page::before {
  display: none;
}
.standalone-page::after { display: none; }
.standalone-page { background: #edf5f2; }
.standalone-main { min-height: 100svh; padding-top: 82px; }
.page-hero { display: none; }
.page-content-panel {
  min-height: calc(100svh - 82px);
  padding: 38px clamp(24px, 5vw, 78px) 82px;
  border-top: 1px solid rgba(255,255,255,.72);
  background: #edf5f2;
  box-shadow: none;
  backdrop-filter: none;
}
.compact-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 28px;
}
.compact-page-title p { margin: 0 0 5px; color: #447078; font-size: 11px; font-weight: 600; }
.compact-page-title h1 { margin: 0; font-family: var(--heading); font-size: 56px; font-weight: 400; line-height: .95; }
.compact-page-title > span { max-width: 340px; color: rgba(10,17,29,.64); font-size: 13px; text-align: right; }
.compact-page-title::after {
  content: '';
  flex: 0 0 190px;
  width: 190px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: center / cover no-repeat;
  box-shadow: 0 10px 26px rgba(45,78,94,.08);
}
.status-page .compact-page-title::after { background-image: url('./assets/flower-public-4k.webp'); background-position: 48% 62%; }
.models-page .compact-page-title::after { background-image: url('./assets/flower-public-4k.webp'); background-position: 58% 68%; }
.notice-page .compact-page-title::after { background-image: url('./assets/flower-public-4k.webp'); background-position: 42% 55%; }
.standalone-page .status-toolbar,
.standalone-page .model-toolbar { position: static; margin-bottom: 18px; background: rgba(255,255,255,.62); backdrop-filter: none; }
.standalone-page .status-legend b,
.standalone-page .status-refresh { color: #16222b; }
.standalone-page .status-card,
.standalone-page .model-card { background: rgba(255,255,255,.72); }
.standalone-page .status-card-head h3,
.standalone-page .model-card h3 { font-size: 16px; }
.standalone-page .status-metrics small,
.standalone-page .availability small,
.standalone-page .price-row span { color: rgba(10,17,29,.62); font-size: 11px; }
.standalone-page .status-metrics b,
.standalone-page .availability b,
.standalone-page .price-row b { font-size: 15px; }
.timeline-tooltip { left: 0; top: 0; transform: translate3d(-999px,-999px,0); }

.ranking-main { min-height: 100svh; padding: 82px 0 0; }
.ranking-board {
  padding: 34px clamp(22px, 4vw, 64px) 58px;
  background: #eef6f3;
  backdrop-filter: none;
}
.ranking-board + .ranking-board { background: #f7ecef; }
.ranking-board > header { margin-bottom: 22px; }
.ranking-board > header h2 { font-size: 54px; }
.ranking-board > header > span { font-size: 12px; }
.ranking-split { grid-template-columns: minmax(330px, .52fr) minmax(0, 1.48fr); gap: 12px; }
.ranking-list,
.ranking-gallery { background: rgba(255,255,255,.68); }
.ranking-list-row { grid-template-columns: 36px minmax(0,1fr) auto; min-height: 54px; padding: 7px 6px; }
.ranking-list-row > span { font-size: 21px; }
.ranking-list-row strong { font-size: 13px; }
.ranking-list-row small { font-size: 10px; }
.ranking-list-row b { font-size: 20px; }
.ranking-gallery-head b { font-size: 13px; }
.media-ribbon { grid-template-columns: repeat(5, minmax(110px,1fr)); gap: 9px; }
.rank-media-item { aspect-ratio: .9; background: #d8e8e8; }
.rank-media-item img,
.rank-media-item video { width: 100%; height: 100%; display: block; object-fit: contain; }
.rank-media-item:hover img { transform: none; }
.rank-media-item footer span { font-size: 11px; }
.rank-media-item footer {
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: inherit;
  text-align: left;
}
.rank-media-fallback { color: #21434d; background: #b9d9dc; }
.notice-board { min-height: calc(100svh - 82px); padding: 38px clamp(24px,6vw,90px) 80px; background: #edf5f2; }
.notice-board article { background: transparent; }
.notice-board h2 { font-size: 34px; }
.notice-board p { font-size: 13px; }

.studio-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: url('./assets/flower-public-4k.webp') center / cover no-repeat;
}
.studio-backdrop::after { content: ''; position: absolute; inset: 0; background: rgba(234,245,245,.72); }
.studio-shell { min-height: 100svh; padding: 86px 14px 14px 94px; }
.studio-rail {
  position: fixed;
  z-index: 20;
  top: 86px;
  left: 14px;
  bottom: 14px;
  width: 68px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: rgba(249,252,250,.84);
}
.studio-rail button,
.studio-rail a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 7px; color: rgba(10,17,29,.58); background: transparent; font-size: 10px; }
.studio-rail button.is-active,
.studio-rail button:hover,
.studio-rail a:hover { color: #fff; background: #172232; }
.studio-rail a { margin-top: auto; }
.studio-view { display: none; }
.studio-view.is-active { display: block; }
.studio-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 8px 18px; }
.studio-title p { margin: 0 0 4px; color: #477581; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.studio-title h1 { margin: 0; font-family: var(--heading); font-size: 52px; font-weight: 400; line-height: .9; }
.studio-title h1 em { color: #a14661; }
.studio-title > span { color: rgba(10,17,29,.58); font-size: 13px; }
.studio-workspace { min-height: calc(100svh - 178px); display: grid; grid-template-columns: 286px minmax(420px,1fr) 270px; gap: 10px; }
.studio-controls,
.task-queue,
.text-workspace,
.studio-history-grid article { border: 1px solid rgba(255,255,255,.92); border-radius: 8px; background: rgba(249,252,250,.84); }
.studio-controls { padding: 18px; overflow-y: auto; }
.control-block { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.control-block > label,
.control-row label { color: rgba(10,17,29,.68); font-size: 12px; }
.control-block select,
.control-block input,
.control-row select,
.control-row input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid rgba(10,17,29,.12); border-radius: 7px; outline: 0; color: #111b25; background: rgba(255,255,255,.7); font-size: 12px; }
.control-row { display: grid; grid-template-columns: 1fr .72fr .8fr; gap: 7px; }
.control-row .control-block { min-width: 0; }
.segmented button { font-size: 11px; }
.ratio-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; }
.ratio-grid button { min-height: 35px; padding: 0; border: 1px solid rgba(10,17,29,.1); border-radius: 6px; color: rgba(10,17,29,.58); background: rgba(255,255,255,.5); font-size: 10px; }
.ratio-grid button.is-active { color: #fff; background: #172232; }
.reference-block.is-hidden,
.advanced-fields.is-hidden,
.is-banana .provider-image-only { display: none; }
.upload-zone { min-height: 94px; font-size: 12px; }
.upload-zone small { display: block; margin-top: 5px; font-size: 10px; }
.reference-preview { position: relative; margin-top: 8px; }
.reference-preview img { width: 100%; max-height: 150px; display: block; border-radius: 7px; object-fit: cover; }
.reference-preview button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(10,17,29,.72); }
.advanced-fields { margin-top: 8px; color: rgba(10,17,29,.65); font-size: 12px; }
.advanced-fields summary { cursor: pointer; }
.advanced-fields label { display: block; margin-top: 10px; }
.advanced-fields input { width: 100%; min-height: 40px; margin-top: 5px; padding: 0 10px; border: 1px solid rgba(10,17,29,.12); border-radius: 7px; background: #fff; }
.studio-canvas { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 8px; color: #fff; background: transparent; isolation: isolate; }
.studio-canvas::after { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(8,23,30,.08); }
.canvas-top { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; text-shadow: 0 2px 18px rgba(5,12,20,.45); }
.canvas-top > span { font-family: var(--heading); font-size: 25px; }
.canvas-top small { font-size: 11px; }
.prompt-dock { margin: 0 18px 18px; width: auto; background: rgba(24,40,49,.34); backdrop-filter: blur(12px); }
.prompt-dock textarea { font-size: 13px; }
.prompt-actions small { color: rgba(255,255,255,.85); font-size: 11px; }
.generate-button { font-size: 12px; }
.task-queue { padding: 16px; }
.task-queue > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.task-queue header p { margin: 0 0 3px; color: #4a7480; font-size: 10px; font-weight: 600; }
.task-queue h2 { margin: 0; font-family: var(--heading); font-size: 29px; font-weight: 400; }
.task-queue header > span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #172232; font-size: 11px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item { display: grid; grid-template-columns: 48px minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.7); }
.task-thumb { width: 48px; height: 48px; border-radius: 6px; background: url('./assets/flower-public-4k.webp') center / cover; }
.task-thumb.is-empty { display: grid; place-items: center; color: #52727c; background: #e7f2ef; }
.task-thumb.is-empty svg { width: 18px; }
.thumb-two { background-image: url('./assets/flower-public-4k.webp'); }
.thumb-three { background-image: url('./assets/flower-public-4k.webp'); }
.task-item div { min-width: 0; }
.task-item b { display: block; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.task-item small { display: block; margin-top: 4px; color: rgba(10,17,29,.52); font-size: 9px; }
.task-item > svg { width: 15px; color: #318268; }
.task-item.is-running > svg { animation: spin 1.2s linear infinite; }
.task-progress { display: block; width: 100%; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: rgba(10,17,29,.1); }
.task-progress::after { content: ''; display: block; width: var(--progress); height: 100%; background: #4fa287; }
.text-workspace { min-height: calc(100svh - 178px); display: grid; grid-template-columns: 1fr 260px; overflow: hidden; }
.text-workspace > textarea { min-height: 100%; padding: 28px; border: 0; resize: none; outline: 0; color: #14202a; background: rgba(255,255,255,.18); font: 16px/1.8 var(--body); }
.text-workspace aside { padding: 20px; border-left: 1px solid rgba(10,17,29,.09); }
.text-workspace h2 { margin: 0 0 15px; font-family: var(--heading); font-size: 28px; font-weight: 400; }
.text-workspace aside button,
.history-toolbar button { margin: 0 5px 7px 0; padding: 9px 12px; border: 1px solid rgba(10,17,29,.1); border-radius: 999px; color: rgba(10,17,29,.68); background: rgba(255,255,255,.62); font-size: 11px; }
.studio-search { display: flex; align-items: center; gap: 8px; min-width: 330px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.74); }
.studio-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.studio-history-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.studio-history-grid article { overflow: hidden; }
.studio-history-grid img { width: 100%; aspect-ratio: 1.35; display: block; object-fit: cover; }
.studio-history-grid article > div { position: relative; padding: 15px; }
.studio-history-grid b { display: block; font-size: 14px; }
.studio-history-grid span { display: block; margin-top: 4px; color: rgba(10,17,29,.55); font-size: 11px; }
.studio-history-grid button { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #172232; }
.history-toolbar { margin-bottom: 12px; }
.history-toolbar button.is-active { color: #fff; background: #172232; }
.history-toolbar .history-refresh { float: right; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; }
.history-toolbar .history-refresh svg { width: 14px; }
.studio-empty { grid-column: 1 / -1; min-height: 230px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 24px; border: 1px solid rgba(255,255,255,.92); border-radius: 8px; color: #4a626c; background: rgba(249,252,250,.86); text-align: center; }
.studio-empty.compact { min-height: 150px; border: 0; background: rgba(255,255,255,.58); }
.studio-empty svg { width: 24px; color: #4fa287; }
.studio-empty b { color: #182731; font-size: 13px; font-weight: 600; }
.studio-empty small { max-width: 320px; color: #60717a; font-size: 11px; line-height: 1.6; }
.studio-empty a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 7px; color: #fff; background: #172232; font-size: 11px; }
.history-result-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 3px; padding: 0 !important; background: #e9f2ef; }
.history-result-strip img { aspect-ratio: 1.35; }
.history-result-item { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.studio-history-grid .history-download-button,
.task-item .task-download-button { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); color: #fff; background: rgba(18,31,43,.82); box-shadow: 0 8px 24px rgba(8,18,27,.18); backdrop-filter: blur(10px); }
.studio-history-grid .history-download-button { position: absolute; top: 9px; right: 9px; width: 36px; height: 36px; border-radius: 50%; }
.studio-history-grid .history-download-button:hover,
.task-item .task-download-button:hover { background: #a64f68; }
.studio-history-grid .history-download-button:disabled,
.task-item .task-download-button:disabled { cursor: wait; opacity: .55; }
.studio-history-grid .history-download-button svg,
.task-item .task-download-button svg { width: 15px; height: 15px; }
.task-item .task-download-button { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.studio-history-grid article.is-failed { border-color: rgba(192,74,89,.25); }
.studio-history-grid article.is-failed .history-result-strip { min-height: 170px; display: grid; place-items: center; color: #a14661; }
.studio-history-grid article > div > small { display: block; margin-top: 7px; color: #a14661; font-size: 10px; line-height: 1.5; }
.history-cost { margin-top: 7px !important; color: #46656f !important; }

/* Keep the garden as bright as the auth page while preserving readable work surfaces. */
.standalone-page { background: #8ec4dd; }
.standalone-page::before { display: block; transform: none; filter: none; }
.standalone-page::after { display: block; background: rgba(12,30,40,.08); }
.page-content-panel,
.notice-board { background: rgba(237,245,242,.24); }
.ranking-board { background: rgba(238,246,243,.5); }
.ranking-board + .ranking-board { background: rgba(247,236,239,.54); }
.app-backdrop::after { background: rgba(12,30,40,.08); backdrop-filter: none; }
.studio-backdrop::after { background: rgba(12,30,40,.08); }

@media (max-height: 900px) {
  .auth-page { place-items: start center; padding-top: 78px; }
}

@media (max-width: 1180px) {
  .studio-workspace { grid-template-columns: 260px minmax(380px,1fr); }
  .task-queue { grid-column: 1 / -1; }
  .task-list { display: grid; grid-template-columns: repeat(3,1fr); }
  .ranking-split { grid-template-columns: 340px minmax(0,1fr); }
  .media-ribbon { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 700px) {
  .view-heading h1 { font-size: 44px; }
  .app-nav button:nth-child(6) { display: flex; }
  .app-nav button,
  .app-nav a { flex: 1 1 0; min-width: 0; padding: 11px; }
  .wallet-summary,
  .affiliate-grid,
  .settings-grid { grid-template-columns: 1fr; }
  .compact-page-title { align-items: start; flex-direction: column; margin-bottom: 20px; }
  .compact-page-title h1 { font-size: 46px; }
  .compact-page-title > span { text-align: left; }
  .compact-page-title::after { width: 100%; flex-basis: 76px; }
  .page-content-panel { padding: 28px 12px 70px; }
  .ranking-main { padding-top: 76px; }
  .ranking-split { grid-template-columns: 1fr; }
  .media-ribbon { grid-template-columns: repeat(2,1fr); }
  .auth-card { padding: 26px 22px; }
  .auth-card h1 { font-size: 48px; }
  .auth-code-row { grid-template-columns: minmax(0, 1fr) 104px; }
  .studio-shell { padding: 80px 8px 82px; }
  .studio-rail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 62px; flex-direction: row; border-radius: 999px; }
  .studio-rail button,
  .studio-rail a { flex: 1; min-height: 44px; }
  .studio-rail a { margin: 0; }
  .studio-title { align-items: start; flex-direction: column; }
  .studio-title h1 { font-size: 45px; }
  .studio-workspace { display: block; }
  .studio-controls,
  .studio-canvas,
  .task-queue { margin-bottom: 8px; }
  .studio-canvas { min-height: 620px; }
  .task-list { display: flex; }
  .text-workspace { grid-template-columns: 1fr; }
  .text-workspace > textarea { min-height: 430px; }
  .text-workspace aside { border-top: 1px solid rgba(10,17,29,.09); border-left: 0; }
  .studio-search { min-width: 0; width: 100%; }
  .studio-history-grid { grid-template-columns: 1fr; }
}

/* Readability and feature-complete local redesign pass. */
.auth-brand { color: #101b27; text-shadow: 0 1px 16px rgba(255,255,255,.9); }
.auth-brand strong { font-size: 22px; font-weight: 600; }
.auth-brand .brand-mark { color: #fff; background: #172232; box-shadow: 0 8px 24px rgba(17,31,46,.18); }

.compact-page-title { align-items: center; margin-bottom: 18px; }
.compact-page-title::after { display: none; }
.compact-page-title h1 { color: #101923; font-size: clamp(50px,4.4vw,68px); }
.compact-page-title p { color: #295f69; font-size: 12px; letter-spacing: 0; }
.compact-page-title > span { max-width: 520px; color: #273943; font-size: 15px; font-weight: 500; line-height: 1.65; }
.page-intro,
.ranking-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 8px;
  color: #14222c;
  background: rgba(250,253,252,.86);
  box-shadow: 0 14px 34px rgba(40,78,93,.09);
}
.page-intro strong { flex: 0 0 auto; font-size: 17px; }
.page-intro p { max-width: 860px; margin: 0; color: #3e5059; font-size: 14px; line-height: 1.75; }

.standalone-page .status-toolbar,
.standalone-page .model-toolbar { min-height: 64px; padding: 11px 14px; background: rgba(251,253,252,.9); border-color: rgba(255,255,255,.95); }
.status-legend { gap: 24px; }
.status-legend > span { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 7px; }
.status-legend b { font-size: 14px; }
.status-legend small { grid-column: 2; color: #63727a; font-size: 11px; }
.status-refresh { gap: 12px; font-size: 13px; font-weight: 600; }
.status-refresh button { width: auto; min-width: 92px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 7px; color: #fff; background: #172232; }
.status-refresh button span { font-size: 13px; }
.status-refresh button.is-loading svg { animation: spin 1s linear infinite; }
.status-refresh button:disabled { cursor: wait; opacity: .7; }
.standalone-page .status-grid { gap: 14px; }
.standalone-page .status-card,
.standalone-page .model-card { padding: 20px; background: rgba(251,253,252,.88); box-shadow: 0 18px 42px rgba(40,75,90,.11); }
.standalone-page .status-card-head h3,
.standalone-page .model-card h3 { color: #111d27; font-size: 17px; font-weight: 650; }
.standalone-page .status-label,
.standalone-page .model-type { font-size: 12px; font-weight: 700; }
.standalone-page .status-metrics small,
.standalone-page .availability small,
.standalone-page .price-row span { color: #526069; font-size: 13px; }
.standalone-page .status-metrics b,
.standalone-page .availability b,
.standalone-page .price-row b { color: #14212b; font-size: 18px; font-weight: 650; }
.standalone-page .status-metrics b em { color: #66737b; font-size: 11px; }
.timeline-meta,
.timeline-hint { color: #3d4e57; font-size: 12px; }
.model-search input { color: #14212b; font-size: 14px; }
.model-filters button { color: #4c5961; font-size: 13px; font-weight: 600; }
.model-toolbar > p small { color: #59666e; font-size: 11px; }

.ranking-main { padding-top: 82px; }
.ranking-intro { margin: 0; padding: 28px clamp(22px,4vw,64px); border: 0; border-bottom: 1px solid rgba(255,255,255,.86); border-radius: 0; background: rgba(247,251,249,.82); }
.ranking-intro > div { flex: 0 0 auto; }
.ranking-intro > div p { margin: 0 0 4px; color: #326972; font-size: 12px; font-weight: 700; }
.ranking-intro h1 { margin: 0; font-family: var(--heading); font-size: 48px; font-weight: 400; }
.ranking-intro > p { max-width: 760px; margin: 0; color: #33464f; font-size: 14px; line-height: 1.75; }
.ranking-board { padding-top: 30px; background: rgba(241,248,246,.78); }
.ranking-board + .ranking-board { background: rgba(250,240,243,.8); }
.ranking-board > header p { color: #356b67; font-size: 11px; }
.ranking-board > header > span { color: #45545c; font-size: 14px; }
.ranking-list,
.ranking-gallery { padding: 14px; background: rgba(251,253,252,.9); box-shadow: 0 18px 42px rgba(40,75,90,.1); }
.ranking-list-row { min-height: 68px; padding: 9px 10px; }
.ranking-list-row > span { color: #6d767c; font-size: 23px; }
.ranking-list-row strong { color: #18242d; font-size: 15px; font-weight: 650; }
.ranking-list-row small { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #59666e; font-size: 11px; }
.ranking-list-row small span + span::before { content: '·'; margin-right: 10px; color: #9ba3a8; }
.ranking-list-row > b { font-size: 23px; }
.ranking-gallery-head b { color: #1a2831; font-size: 15px; }
.ranking-gallery-head span { color: #617078; font-size: 11px; }
.rank-media-item img,
.rank-media-item video { width: 100%; height: 100%; display: block; object-fit: contain; }
.rank-media-item footer span { font-size: 12px; font-weight: 650; }
.media-empty { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; color: #51616a; font-size: 14px; }

.app-header { background: rgba(250,253,252,.94); }
.app-main { background: rgba(249,252,251,.97); }
.app-sidebar { background: rgba(249,252,251,.94); }
.app-nav button { color: #3e4d56; font-size: 13px; font-weight: 600; }
.view-heading { margin-bottom: 24px; }
.view-heading p { color: #2f6973; font-size: 12px; }
.view-heading > small { max-width: 460px; color: #344650; font-size: 14px; }
.metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.metric-card { padding: 19px; background: rgba(255,255,255,.86); }
.metric-card span,
.metric-card small { color: #52616a; font-size: 12px; }
.metric-card b { margin: 14px 0 5px; color: #17232d; font-size: 34px; }
.metric-card.token-metric { color: #fff; background: #172232; }
.metric-card.token-metric span,
.metric-card.token-metric b,
.metric-card.token-metric small { color: #fff; }
.dashboard-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 12px 0; overflow: hidden; border: 1px solid rgba(28,52,65,.09); border-radius: 8px; background: rgba(28,52,65,.09); }
.dashboard-facts > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.9); }
.dashboard-facts small { color: #52616a; font-size: 12px; }
.dashboard-facts b { color: #17232d; font-size: 15px; }
.app-panel { background: rgba(255,255,255,.86); }
.panel-head h2,
.table-head h2 { color: #17232d; font-size: 16px; }
.panel-head span,
.panel-head p { color: #52616a; font-size: 12px; }
.data-table { font-size: 12px; }
.data-table th { color: #66747c; font-size: 11px; }
.key-row { grid-template-columns: minmax(220px,1.3fr) minmax(130px,.7fr) 110px 56px auto; background: rgba(255,255,255,.9); }
.key-name b { color: #17232d; font-size: 14px; }
.key-name small,
.key-cell,
.key-cell small { font-size: 12px; }
.key-actions { display: flex; align-items: center; gap: 7px; }
.key-actions .app-button { min-height: 38px; padding: 0 12px; white-space: nowrap; }
.rank-media-settings { margin-top: 12px; }
.rank-media-settings .panel-head > div p { margin: 5px 0 0; }
.rank-media-editor { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(260px,1.2fr); gap: 20px; margin-top: 18px; }
.rank-media-preview { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; border: 1px dashed rgba(28,52,65,.22); border-radius: 8px; color: #62717a; background: #edf5f3; }
.rank-media-preview svg { width: 28px; height: 28px; }
.rank-media-preview img,
.rank-media-preview video { width: 100%; height: 100%; max-height: 360px; display: block; object-fit: contain; }
.rank-media-controls { display: flex; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.rank-media-controls small { flex: 0 0 100%; color: #52616a; font-size: 12px; line-height: 1.65; }
.ccs-modal { width: min(520px,calc(100vw - 28px)); }
.ccs-modal .app-modal-head p { margin: 0 0 4px; color: #3e747d; font-size: 10px; font-weight: 700; }
.modal-description { color: #4b5b64; font-size: 13px; line-height: 1.7; }
.ccs-clients { display: grid; gap: 8px; margin-top: 16px; }
.ccs-clients button { min-height: 72px; display: grid; grid-template-columns: 36px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(28,52,65,.12); border-radius: 8px; color: #17232d; background: #f4f9f7; text-align: left; }
.ccs-clients button:hover { border-color: #4f8e7c; background: #eaf5f1; }
.ccs-clients span { display: flex; flex-direction: column; gap: 3px; }
.ccs-clients b { font-size: 14px; }
.ccs-clients small { color: #607079; font-size: 11px; }

.status-content { padding-top: 102px; }
.status-explainer { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 28px; margin-bottom: 14px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.95); border-radius: 4px; background: rgba(248,252,251,.9); box-shadow: 0 14px 34px rgba(40,78,93,.1); }
.status-explainer > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 8px; }
.status-explainer b { color: #19313f; font-size: 14px; }
.status-explainer small { grid-column: 2; color: #4e6571; font-size: 12px; }
.status-explainer p { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 13px; border-top: 1px solid rgba(23,53,68,.1); color: #385462; font-size: 12px; font-weight: 600; }
.status-content .status-toolbar { position: static; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; border-radius: 4px; }
.status-content .status-toolbar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.status-content .status-toolbar strong { color: #17232d; font-size: 15px; }
.status-content .status-toolbar small { color: #566b75; font-size: 12px; }
.status-page .status-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.status-page .status-card { min-width: 0; padding: 18px; border: 1px solid rgba(39,99,82,.18); border-left: 3px solid #18a577; border-radius: 6px; background: rgba(250,253,252,.92); }
.status-page .status-card.degraded { border-left-color: #d99512; }
.status-page .status-card.error { border-left-color: #dc5656; }
.status-page .status-card-head { padding-bottom: 14px; border-bottom: 1px solid rgba(20,54,69,.1); }
.status-page .status-icon { width: 38px; height: 38px; color: #159a70; background: #e9f7f1; }
.status-page .status-card-head h3 { font-size: 17px; text-transform: uppercase; }
.status-page .status-metrics { margin: 15px 0; }
.status-page .status-metrics b { font-size: 28px; }
.status-page .availability { padding-top: 14px; }
.status-page .availability b { color: #14996f; font-size: 28px; }
.timeline-heading { display: flex; justify-content: space-between; margin: 14px 0 8px; color: #536a75; font-size: 11px; }
.timeline-heading .status-countdown { color: #296d83; }
.status-page .timeline { height: 48px; gap: 2px; }
.status-page .timeline-bar { min-width: 2px; border-radius: 2px; }

.rank-media-item.rank-media-empty { display: flex; flex-direction: column; color: #173145; border: 1px solid rgba(39,86,102,.12); background-color: #e8f5f4; background-image: linear-gradient(rgba(45,112,127,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(45,112,127,.07) 1px, transparent 1px); background-size: 18px 18px; }
.rank-media-empty > div { flex: 1; display: grid; place-items: center; }
.rank-media-empty > div b { color: rgba(23,49,69,.42); font-family: var(--heading); font-size: 34px; font-weight: 400; }
.rank-media-empty footer { color: #fff; background: transparent; }

.is-loading-account .app-layout { visibility: hidden; }
.header-user .app-icon-button { width: 32px; height: 32px; }
.state-message, .table-empty { padding: 30px !important; color: #60717a; text-align: center; }
.data-table td.model-name small { display: block; margin-top: 3px; color: #687780; font-size: 10px; }
.switch.is-locked { opacity: .62; cursor: not-allowed; }
.automatic-checkin { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: #226c54; background: rgba(73,171,133,.12); font-size: 12px; font-weight: 700; }
.checkin-overview { display: grid; grid-template-columns: minmax(300px,.76fr) minmax(480px,1.24fr); gap: 12px; }
.checkin-rules { color: #fff; background: #172232; }
.checkin-rules .panel-head { align-items: flex-start; }
.checkin-rules .panel-head p { margin: 0 0 4px; color: #7bd5b2; font-size: 10px; font-weight: 700; }
.checkin-rules .panel-head h2 { margin: 0; color: #fff; font-family: var(--heading); font-size: 30px; font-weight: 400; }
.checkin-rules .panel-head > svg { color: #7bd5b2; }
.rule-list { display: grid; gap: 3px; margin-top: 18px; }
.rule-list > span { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 2px 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.rule-list i { grid-row: 1 / 3; align-self: center; color: rgba(255,255,255,.32); font: 20px var(--heading); }
.rule-list b { font-size: 12px; }
.rule-list small { color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.55; }
.checkin-rules .checkin-milestones span { border-color: rgba(255,255,255,.14); }
.checkin-rules .checkin-milestones small { color: rgba(255,255,255,.58); }
.checkin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 16px 0; overflow: hidden; border: 1px solid rgba(25,62,74,.08); border-radius: 7px; background: rgba(25,62,74,.08); }
.checkin-stats span { padding: 11px 12px; background: #f5f9f7; }
.checkin-stats small { display: block; color: #617079; font-size: 9px; }
.checkin-stats b { display: block; margin-top: 4px; color: #173145; font-size: 14px; }
.checkin-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 6px; color: #6a7880; font-size: 9px; text-align: center; }
.checkin-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.checkin-calendar > i, .checkin-calendar > span { min-height: 38px; display: grid; place-items: center; border-radius: 5px; color: #5c6d76; background: #edf4f2; font-size: 11px; }
.checkin-calendar > i { visibility: hidden; }
.checkin-calendar > span.is-checked { position: relative; color: #fff; background: #4ba784; font-weight: 700; }
.checkin-calendar > span i { position: absolute; right: 4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.checkin-milestones { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.checkin-milestones span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid rgba(25,62,74,.1); border-radius: 6px; }
.checkin-milestones b { font-size: 11px; }
.checkin-milestones small { color: #58707a; font-size: 9px; }
.checkin-history-panel { margin-top: 12px; }
.profile-heading { padding-bottom: 18px; border-bottom: 1px solid rgba(25,62,74,.1); }
.profile-layout { display: grid; grid-template-columns: minmax(320px,1fr) minmax(320px,1fr); gap: 12px; }
.profile-layout > .app-panel,
.rank-media-settings { padding: 24px; border: 1px solid rgba(255,255,255,.92); box-shadow: 0 16px 42px rgba(35,72,88,.08); }
.profile-card-title { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 20px; }
.profile-card-title > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #172232; }
.profile-card-title > span:first-child svg { width: 19px; }
.profile-card-title p { margin: 0 0 3px; color: #39717a; font-size: 9px; font-weight: 700; }
.profile-card-title h2 { margin: 0; color: #17232d; font-family: var(--heading); font-size: 28px; font-weight: 400; }
.profile-card-title small { display: block; margin-top: 4px; color: #607079; font-size: 10px; line-height: 1.55; }
.profile-note { margin: -5px 0 18px; color: #53656e; font-size: 11px; line-height: 1.65; }
.security-code-row { display: grid; grid-template-columns: minmax(0,1fr) 116px; gap: 7px; }
.security-code-row .app-button { padding: 0 10px; white-space: nowrap; }
.form-feedback { min-height: 18px; margin: 0; color: #52616a; font-size: 11px; }
.form-feedback.is-success { color: #27765b; }
.form-feedback.is-error { color: #a33f52; }
.toast.is-error { background: #a33f52; }
.auth-form-message { min-height: 22px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 3px; color: #2f765e; font-size: 12px; font-weight: 600; line-height: 1.45; text-align: center; }
.auth-form-message.is-success::before,
.auth-form-message.is-error::before { width: 16px; height: 16px; display: inline-grid; flex: 0 0 16px; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; line-height: 1; }
.auth-form-message.is-success::before { content: "✓"; background: #3f8a6d; }
.auth-form-message.is-error::before { content: "!"; background: #a33f52; }
.auth-form-message.is-error, .auth-code-hint.is-error { color: #9b3348; }
.auth-code-hint.is-success { color: #2f765e; }

@media (max-width: 1150px) {
  .status-page .status-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .status-page .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkin-overview,
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .checkin-stats { grid-template-columns: 1fr; }
  .security-code-row { grid-template-columns: 1fr; }
  .profile-layout > .app-panel,
  .rank-media-settings { padding: 18px; }
}

@media (max-width: 700px) {
  .status-content { padding-top: 86px; }
  .status-explainer { grid-template-columns: 1fr; gap: 14px; }
  .status-explainer p { grid-column: auto; }
  .status-content .status-toolbar { align-items: flex-start; flex-direction: column; }
  .status-page .status-grid { grid-template-columns: 1fr; }
  .status-page .status-metrics b, .status-page .availability b { font-size: 25px; }
  .media-ribbon { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-user span, .app-header-center { display: none; }
}

.studio-backdrop::after { background: rgba(12,30,40,.14); }
.studio-shell { padding-right: 18px; padding-bottom: 18px; }
.studio-title { align-items: center; padding: 2px 10px 16px; }
.studio-title h1 { color: #101923; font-size: 46px; }
.studio-title > span { color: #263b47; font-size: 14px; font-weight: 600; }
.studio-workspace { min-height: 700px; grid-template-columns: 310px minmax(520px,1fr) 290px; gap: 12px; }
.studio-controls,
.task-queue { background: rgba(250,253,252,.95); box-shadow: 0 16px 42px rgba(35,72,88,.12); }
.studio-controls { padding: 20px; }
.control-block > label,
.control-row label { color: #354852; font-size: 13px; font-weight: 650; }
.control-block select,
.control-block input,
.control-row select,
.control-row input { color: #14212b; font-size: 13px; background: #fff; }
.segmented button,
.ratio-grid button { font-size: 12px; }
.studio-canvas { min-height: 700px; box-shadow: 0 18px 48px rgba(28,62,79,.16); }
.prompt-dock { background: rgba(13,28,37,.68); }
.prompt-dock textarea { color: #fff; font-size: 14px; line-height: 1.65; }
.prompt-dock textarea::placeholder { color: rgba(255,255,255,.74); }
.prompt-actions small,
.generate-button { font-size: 13px; }
.task-queue h2 { color: #17232d; font-size: 31px; }
.task-item { background: #fff; }
.task-item b { color: #17232d; font-size: 12px; }
.task-item small { color: #5a6871; font-size: 10px; }

@media (max-width: 1280px) {
  .studio-workspace { grid-template-columns: 280px minmax(440px,1fr); }
  .task-queue { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .key-row { grid-template-columns: minmax(200px,1fr) 120px 52px auto; }
  .key-row > :nth-child(3) { display: none; }
}

@media (max-width: 700px) {
  .page-intro,
  .ranking-intro { align-items: flex-start; flex-direction: column; gap: 9px; padding: 16px; }
  .compact-page-title > span { font-size: 14px; text-align: left; }
  .status-legend { width: 100%; justify-content: space-between; gap: 8px; }
  .status-legend small { display: none; }
  .status-refresh { width: 100%; justify-content: space-between; }
  .ranking-intro h1 { font-size: 40px; }
  .ranking-list-row small { gap: 2px 7px; }
  .ranking-list-row small span + span::before { margin-right: 7px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-facts { grid-template-columns: 1fr 1fr; }
  .key-row { grid-template-columns: minmax(0,1fr) auto; }
  .key-row > :nth-child(2),
  .key-row > :nth-child(3),
  .key-row > .switch { display: none; }
  .key-actions .app-button { width: 38px; padding: 0; overflow: hidden; color: transparent; gap: 0; }
  .key-actions .app-button svg { color: #172232; }
  .rank-media-editor { grid-template-columns: 1fr; }
  .studio-title h1 { font-size: 40px; }
  .studio-workspace { min-height: 0; }
  .studio-canvas { min-height: 560px; }
}

/* High-contrast secondary copy for the authenticated work surfaces. */
.app-page .header-user small,
.app-page .sidebar-label,
.app-page .app-nav button:not(.is-active),
.app-page .app-nav a,
.app-page .view-heading > small,
.app-page .metric-card:not(.token-metric) span,
.app-page .metric-card:not(.token-metric) small,
.app-page .dashboard-facts small,
.app-page .panel-head span,
.app-page .panel-head p,
.app-page .data-table th,
.app-page .key-name small,
.app-page .key-cell,
.app-page .key-cell small,
.app-page .field label,
.app-page .wallet-summary small,
.app-page .affiliate-grid small,
.app-page .invite-card p,
.app-page .affiliate-stat span,
.app-page .profile-note,
.app-page .rank-media-controls small,
.app-page .checkin-stats small,
.app-page .checkin-weekdays,
.app-page .checkin-milestones small,
.app-page .chart-days,
.app-page .state-message,
.app-page .table-empty { color: #3d4c56; }

.app-page .sidebar-card small { color: rgba(255,255,255,.8); }
.app-page .data-table td.model-name small { color: #4b5962; }
.app-page .usage-chart i { opacity: .9; }

.header-user-home {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

@supports (display: __nayuto_previous_refresh_disabled__) {
/* Previous workspace refresh retained for reference but disabled. */
:where(.app-page, .generate-page, .standalone-page, .auth-page) {
  --work-ink: #102219;
  --work-ink-soft: #24362e;
  --work-paper: #fbfcf8;
  --work-mist: #edf4f1;
  --work-sky: #dcecf2;
  --work-rose: #ad5570;
  --work-sage: #668476;
  --work-line: rgba(23, 49, 37, .13);
  --work-muted: #56675f;
}

.app-backdrop::after { background: rgba(231, 241, 238, .78); }
.app-header {
  top: 12px;
  left: 18px;
  right: 18px;
  height: 60px;
  gap: 14px;
  padding: 7px 9px 7px 11px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 8px;
  background: rgba(251, 253, 250, .9);
  box-shadow: 0 8px 28px rgba(25, 58, 45, .08);
  backdrop-filter: blur(20px) saturate(1.08);
}
.app-header .brand { min-width: 178px; }
.app-header .brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  background: var(--work-ink);
  box-shadow: none;
}
.app-header .brand strong { color: var(--work-ink); font-size: 20px; }
.header-user {
  gap: 8px;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--work-line);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
}
.header-user b { color: var(--work-ink); }
.header-user small { color: var(--work-muted); }
.header-user-home { display: grid; place-items: center; border-radius: 50%; }
.header-avatar {
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--work-rose);
  transition: background 180ms ease, transform 180ms ease;
}
.header-user-home:hover .header-avatar { background: var(--work-ink); transform: translateY(-1px); }
.header-user .app-icon-button { color: var(--work-muted); background: transparent; }
.header-user .app-icon-button:hover { color: #fff; background: var(--work-ink); }

.app-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  padding: 84px 18px 18px;
}
.app-sidebar {
  top: 84px;
  height: calc(100svh - 102px);
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,.86);
  border-right-color: var(--work-line);
  border-radius: 8px 0 0 8px;
  background: rgba(247, 250, 247, .92);
  box-shadow: none;
  backdrop-filter: blur(20px);
}
.sidebar-label { margin: 7px 10px 12px; color: var(--work-sage); font-size: 9px; letter-spacing: 0; }
.app-nav { gap: 2px; }
.app-nav button,
.app-nav a {
  min-height: 46px;
  gap: 11px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--work-muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.app-nav button:hover,
.app-nav a:hover { color: var(--work-ink); background: var(--work-sky); transform: translateX(2px); }
.app-nav button.is-active { color: #fff; background: var(--work-ink); transform: none; }
.app-nav button.is-active svg { color: #a8d8c2; }
.sidebar-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: var(--work-ink);
}
.sidebar-card b { margin: 8px 0 15px; font-size: 29px; }
.sidebar-card button { width: 100%; display: flex; align-items: center; justify-content: space-between; }

.app-main {
  padding: 34px clamp(24px, 3.6vw, 56px) 64px;
  border: 1px solid rgba(255,255,255,.86);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(239, 246, 242, .9);
  box-shadow: none;
  backdrop-filter: blur(20px);
}
.view-heading { align-items: center; margin-bottom: 26px; }
.view-heading p { margin-bottom: 6px; color: var(--work-sage); font-size: 10px; }
.view-heading h1 { color: var(--work-ink); font-size: clamp(38px, 4vw, 52px); line-height: .96; }
.view-heading h1 em { color: var(--work-rose); }
.view-heading > small { color: var(--work-muted); font-size: 12px; }

.metric-grid { gap: 10px; }
.metric-card {
  min-height: 148px;
  padding: 18px 19px;
  border: 1px solid var(--work-line);
  background: rgba(253, 254, 250, .9);
  box-shadow: none;
}
.metric-card span,
.metric-card small { color: var(--work-muted); }
.metric-card span { font-size: 11px; font-weight: 500; }
.metric-card b { margin: 23px 0 6px; color: var(--work-ink); font-size: 34px; }
.metric-card small { font-size: 10px; }
.metric-card.token-metric { border-color: var(--work-ink); background: var(--work-ink); }
.metric-card.token-metric span,
.metric-card.token-metric b { color: #fff; }
.metric-card.token-metric small { color: rgba(255,255,255,.68); }
.metric-card.token-metric svg { color: #a8d8c2; }

.dashboard-facts {
  margin: 10px 0;
  border-color: var(--work-line);
  background: var(--work-line);
}
.dashboard-facts > span { background: rgba(252,253,249,.92); }
.dashboard-facts small { color: var(--work-muted); }
.dashboard-facts b { color: var(--work-ink); }
.dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(280px,.72fr); gap: 10px; }
.app-panel,
.key-row,
.wallet-summary article,
.affiliate-grid > article {
  border: 1px solid var(--work-line);
  background: rgba(253, 254, 250, .91);
  box-shadow: none;
}
.panel-head { margin-bottom: 18px; }
.panel-head h2 { color: var(--work-ink); font-size: 14px; font-weight: 600; }
.panel-head span,
.panel-head p,
.panel-head button { color: var(--work-muted); }
.usage-chart { min-height: 180px; }
.usage-chart i { background: #78a8bc; }
.distribution > span i { background: var(--work-rose); }
.table-panel { overflow-x: auto; }
.data-table th { color: var(--work-muted); }
.data-table td { color: var(--work-ink-soft); }
.data-table tbody tr:hover td { background: rgba(220,236,242,.42); }

.app-button {
  min-height: 42px;
  border-radius: 8px;
  background: var(--work-ink);
  font-size: 12px;
  transition: background 160ms ease, transform 160ms ease;
}
.app-button:hover { background: var(--work-rose); transform: translateY(-1px); }
.app-button.secondary { color: var(--work-ink); background: rgba(255,255,255,.72); }
.app-icon-button { color: var(--work-ink); background: rgba(255,255,255,.7); transition: color 160ms ease, background 160ms ease; }
.app-icon-button:hover { color: #fff; background: var(--work-ink); }
.app-input,
.app-select,
.field input,
.field textarea,
.field select {
  min-height: 44px;
  border-color: var(--work-line);
  border-radius: 7px;
  color: var(--work-ink);
  background: rgba(255,255,255,.88);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.app-input:focus,
.app-select:focus { border-color: rgba(102,132,118,.7); box-shadow: 0 0 0 3px rgba(102,132,118,.1); }

.key-list { gap: 8px; }
.key-row { padding: 16px 17px; }
.key-name > i { background: var(--work-ink); }
.key-name b { color: var(--work-ink); }
.key-name small,
.key-cell,
.key-cell small { color: var(--work-muted); }

.wallet-summary { gap: 10px; }
.wallet-summary article { min-height: 126px; }
.wallet-summary b,
.affiliate-stat b { color: var(--work-ink); }
.redeem-hero {
  border: 1px solid rgba(255,255,255,.1);
  background: var(--work-ink);
}
.redeem-hero h2 { color: #fff; }
.redeem-hero p { color: rgba(255,255,255,.7); font-size: 11px; }
.redeem-hero .app-input { border: 0; background: rgba(255,255,255,.94); }
.redeem-hero .app-button { color: var(--work-ink); background: #fff; }

.automatic-checkin { border-radius: 8px; color: #27644f; background: #dceee5; }
.checkin-rules { background: var(--work-ink); }
.checkin-rules .panel-head p,
.checkin-rules .panel-head > svg { color: #9fd4bb; }
.checkin-calendar > i,
.checkin-calendar > span { background: var(--work-mist); }
.checkin-calendar > span.is-checked { background: var(--work-sage); }
.checkin-stats { border-color: var(--work-line); background: var(--work-line); }
.checkin-stats span { background: var(--work-paper); }

.profile-heading { padding: 0 0 20px; border-bottom-color: var(--work-line); }
.profile-layout { grid-template-columns: minmax(360px, 3fr) minmax(340px, 2fr); gap: 10px; }
.profile-layout > .app-panel,
.rank-media-settings { padding: 26px; border-color: var(--work-line); box-shadow: none; }
.profile-identity { background: rgba(253,254,250,.94); }
.profile-security { background: rgba(220,236,242,.68); }
.profile-card-title { grid-template-columns: 44px minmax(0,1fr) auto; margin-bottom: 24px; }
.profile-card-title > span:first-child { width: 44px; height: 44px; background: var(--work-ink); }
.profile-security .profile-card-title > span:first-child { background: var(--work-rose); }
.profile-card-title p { color: var(--work-sage); font-size: 9px; }
.profile-card-title h2 { color: var(--work-ink); font-size: 27px; }
.profile-card-title small,
.profile-note,
.rank-media-controls small { color: var(--work-muted); }
.rank-media-settings { margin-top: 10px; background: rgba(253,254,250,.94); }
.rank-media-editor { grid-template-columns: minmax(280px, 3fr) minmax(280px, 2fr); align-items: center; }
.rank-media-preview { min-height: 250px; border-color: var(--work-line); background: var(--work-mist); }
.rank-media-controls { padding-right: clamp(0px, 3vw, 38px); }

/* Shared public-page work surfaces. */
.standalone-page { color: var(--work-ink); background: #9ec7dc; }
.page-content-panel,
.notice-board { background: rgba(237,244,241,.88); }
.compact-page-title p { color: var(--work-sage); }
.compact-page-title h1 { color: var(--work-ink); }
.compact-page-title > span { color: var(--work-muted); }

.public-announcement-list { border-top: 1px solid rgba(22, 35, 30, .2); }
.notice-board .public-announcement { min-height: 150px; grid-template-columns: 88px minmax(0, 1fr) 28px; align-items: start; gap: 24px; padding: 30px 2px; border-top: 0; border-bottom: 1px solid rgba(22, 35, 30, .2); cursor: default; }
.notice-board .public-announcement.is-read { opacity: .68; }
.announcement-number { padding-top: 5px; color: #66736c; font-size: 10px; font-weight: 800; }
.public-announcement.is-unread .announcement-number { color: #a6495c; }
.announcement-public-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.announcement-public-meta time { color: #68766f; font-size: 10px; }
.announcement-public-meta span { padding: 3px 6px; border-radius: 4px; color: #fff; background: #a6495c; font-size: 9px; font-weight: 700; }
.notice-board .public-announcement h2 { margin-bottom: 10px; color: #17231e; font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.notice-board .public-announcement p { max-width: 900px; color: #435149; font-size: 13px; line-height: 1.75; white-space: pre-line; }
.notice-loading,
.notice-empty,
.notice-auth { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #435149; }
.notice-loading { flex-direction: column; }
.notice-loading > span { width: 28px; height: 28px; border: 2px solid rgba(39, 78, 60, .18); border-top-color: #587463; border-radius: 50%; animation: spin .8s linear infinite; }
.notice-loading b { font-size: 12px; }
.notice-empty { flex-direction: column; }
.notice-empty svg { width: 26px; }
.notice-empty b { color: #17231e; font-size: 17px; }
.notice-empty span { color: #68766f; font-size: 12px; }
.notice-auth { justify-content: flex-start; padding: 34px 0; border-bottom: 1px solid rgba(22, 35, 30, .2); }
.notice-auth > svg { width: 38px; height: 38px; padding: 9px; border-radius: 6px; color: #fff; background: #526b5b; }
.notice-auth > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.notice-auth b { color: #17231e; font: 400 26px var(--heading); }
.notice-auth span { color: #56645d; font-size: 12px; }
.notice-auth a { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border-radius: 6px; color: #fff; background: #526b5b; font-size: 12px; font-weight: 700; }
.notice-auth a svg { width: 15px; }

@media (max-width: 700px) {
  .notice-board .public-announcement { grid-template-columns: 1fr 22px; gap: 10px; padding: 22px 0; }
  .announcement-number { grid-column: 1 / -1; }
  .notice-board .public-announcement h2 { font-size: 29px; }
  .notice-board .public-announcement p { font-size: 12px; }
  .notice-auth { align-items: flex-start; flex-wrap: wrap; }
  .notice-auth > div { min-width: calc(100% - 58px); }
  .notice-auth a { margin-left: 52px; }
}
.standalone-page .status-toolbar,
.standalone-page .model-toolbar,
.standalone-page .status-card,
.standalone-page .model-card,
.ranking-list,
.ranking-gallery { border-color: var(--work-line); background: rgba(253,254,250,.9); box-shadow: none; }
.ranking-board { background: rgba(237,244,241,.88); }
.ranking-board + .ranking-board { background: rgba(245,235,238,.88); }

/* Online generation: one calm navbar, compact tool rail, collapsible queue. */
.generate-page { color: var(--work-ink); }
.generate-page .site-nav {
  top: 12px;
  left: 14px;
  right: 14px;
  grid-template-columns: 190px 1fr 190px;
  min-height: 58px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 8px;
  background: rgba(251,253,250,.88);
  box-shadow: 0 8px 28px rgba(25,58,45,.08);
  backdrop-filter: blur(20px) saturate(1.08);
}
.generate-page .site-nav .brand-mark { width: 40px; height: 40px; border: 0; color: #fff; background: var(--work-ink); box-shadow: none; }
.generate-page .site-nav .brand strong { color: var(--work-ink); font-size: 15px; }
.generate-page .page-nav .nav-links { justify-self: center; border: 1px solid var(--work-line); background: rgba(255,255,255,.5); box-shadow: none; }
.generate-page .page-nav .nav-links a { color: var(--work-muted); }
.generate-page .page-nav .nav-links a:hover,
.generate-page .page-nav .nav-links a.is-active { color: var(--work-ink); background: var(--work-sky); }
.generate-page .page-nav .nav-links .nav-claim { color: #fff; background: var(--work-ink); }
.generate-page .nav-login { color: var(--work-ink); }
.studio-backdrop::after { background: rgba(229,240,237,.34); }
.studio-shell { padding: 82px 14px 14px 76px; }
.studio-rail {
  top: 82px;
  left: 14px;
  bottom: 14px;
  width: 52px;
  padding: 7px 5px;
  border-color: rgba(255,255,255,.86);
  background: rgba(251,253,250,.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.studio-rail button,
.studio-rail a { min-height: 48px; gap: 2px; color: var(--work-muted); font-size: 8px; }
.studio-rail button.is-active,
.studio-rail button:hover,
.studio-rail a:hover { color: #fff; background: var(--work-ink); }
.studio-title { min-height: 48px; align-items: center; padding: 0 4px 10px; }
.studio-title p { margin-bottom: 2px; color: var(--work-sage); font-size: 9px; }
.studio-title h1 { color: var(--work-ink); font-size: 31px; line-height: 1; }
.studio-title h1 em { color: var(--work-rose); }
.studio-workspace { min-height: calc(100svh - 140px); grid-template-columns: 292px minmax(430px,1fr) 300px; gap: 8px; transition: grid-template-columns 220ms ease; }
.studio-workspace.is-queue-collapsed { grid-template-columns: 292px minmax(430px,1fr) 48px; }
.studio-controls,
.task-queue,
.text-workspace,
.studio-history-grid article {
  border-color: var(--work-line);
  background: rgba(251,253,250,.93);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.studio-controls { padding: 18px; }
.control-block > label,
.control-row label { color: var(--work-ink-soft); font-size: 11px; }
.control-block select,
.control-block input,
.control-row select,
.control-row input { border-color: var(--work-line); color: var(--work-ink); background: #fff; }
.segmented { background: var(--work-mist); }
.segmented button,
.ratio-grid button { color: var(--work-muted); }
.segmented button.is-active,
.ratio-grid button.is-active { color: #fff; background: var(--work-ink); }
.studio-canvas { min-height: calc(100svh - 140px); border: 1px solid rgba(255,255,255,.56); box-shadow: none; }
.studio-canvas::after { background: rgba(16,34,25,.04); }
.canvas-top { top: 18px; left: 20px; right: 20px; }
.canvas-top > span { font-size: 22px; }
.prompt-dock { margin: 0 14px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(16,34,25,.78); box-shadow: none; }
.generate-button { border-radius: 7px; color: var(--work-ink); background: #fff; }
.task-queue { min-width: 0; grid-column: auto; padding: 14px; overflow: hidden; transition: padding 220ms ease; }
.task-queue > header { min-height: 38px; gap: 10px; margin-bottom: 12px; }
.task-queue header p { color: var(--work-sage); font-size: 9px; }
.task-queue h2 { color: var(--work-ink); font-family: var(--body); font-size: 18px; font-weight: 600; }
.queue-actions { display: flex; align-items: center; gap: 6px; }
.task-queue header .queue-actions > span { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--work-rose); font-size: 10px; }
.queue-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--work-ink); background: var(--work-mist); }
.queue-toggle:hover { color: #fff; background: var(--work-ink); }
.queue-toggle svg { width: 15px; height: 15px; }
.task-item { border: 1px solid rgba(23,49,37,.08); background: #fff; }
.task-queue.is-collapsed { padding: 8px; }
.task-queue.is-collapsed > header { justify-content: center; margin: 0; }
.task-queue.is-collapsed > header > div:first-child,
.task-queue.is-collapsed .queue-actions > span,
.task-queue.is-collapsed .task-list { display: none; }
.task-queue.is-collapsed .queue-actions { display: block; }

@media (min-width: 1560px) {
  .metric-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .metric-card { min-height: 138px; }
}

@media (max-width: 1180px) {
  .app-layout { grid-template-columns: 78px minmax(0,1fr); }
  .app-sidebar { padding: 9px; }
  .sidebar-label,
  .app-nav span,
  .sidebar-card { display: none; }
  .app-nav button,
  .app-nav a { justify-content: center; padding: 0; }
  .app-main { padding-inline: 26px; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { grid-template-columns: 270px minmax(420px,1fr) 48px; }
}

@media (max-width: 900px) {
  .dashboard-grid,
  .profile-layout,
  .rank-media-editor { grid-template-columns: 1fr; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .view-heading > small { max-width: none; text-align: left; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { grid-template-columns: 250px minmax(360px,1fr); }
  .task-queue { grid-column: 1 / -1; }
  .task-queue.is-collapsed { min-height: 48px; }
  .task-queue.is-collapsed > header { justify-content: flex-end; }
}
}

@supports (display: __nayuto_rejected_refresh_disabled__) {
/* Rejected high-contrast concept retained temporarily but disabled. */
/* 2026-07 design system: operational clarity, editorial contrast, focused creation. */
:where(.app-page, .generate-page, .standalone-page, .auth-page, .docs-page) {
  --nx-ink: #11110f;
  --nx-paper: #f5f4ef;
  --nx-white: #fff;
  --nx-fog: #e9e8e2;
  --nx-line: #d2d1ca;
  --nx-muted: #686862;
  --nx-lime: #c7f36a;
  --nx-coral: #ff7257;
  --nx-blue: #5d7cff;
  --nx-green: #37b879;
  --nx-yellow: #edb83f;
  --nx-red: #e95353;
  --nx-shadow: 0 18px 52px rgba(17, 17, 15, .08);
  color: var(--nx-ink);
  letter-spacing: 0;
}

:where(.app-page, .generate-page, .standalone-page, .auth-page, .docs-page) * {
  letter-spacing: 0;
}

:where(.app-page, .generate-page, .standalone-page, .auth-page, .docs-page) :focus-visible {
  outline: 2px solid var(--nx-blue);
  outline-offset: 2px;
}

/* Shared navigation */
.standalone-page .site-nav,
.generate-page .site-nav {
  top: 14px;
  left: 18px;
  right: 18px;
  min-height: 58px;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  padding: 6px 7px 6px 12px;
  border: 1px solid rgba(17,17,15,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(17,17,15,.1);
  backdrop-filter: blur(18px) saturate(1.05);
}

.standalone-page .site-nav .brand-mark,
.generate-page .site-nav .brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--nx-ink);
  background: var(--nx-lime);
  box-shadow: none;
}

.standalone-page .site-nav .brand strong,
.generate-page .site-nav .brand strong {
  color: var(--nx-ink);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.standalone-page .page-nav .nav-links,
.generate-page .page-nav .nav-links {
  justify-self: center;
  padding: 3px;
  border: 0;
  border-radius: 5px;
  background: var(--nx-fog);
  box-shadow: none;
}

.standalone-page .page-nav .nav-links a,
.generate-page .page-nav .nav-links a {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 4px;
  color: #5d5d58;
  font-size: 11px;
  font-weight: 600;
}

.standalone-page .page-nav .nav-links a:hover,
.standalone-page .page-nav .nav-links a.is-active,
.generate-page .page-nav .nav-links a:hover,
.generate-page .page-nav .nav-links a.is-active {
  color: var(--nx-ink);
  background: var(--nx-white);
  box-shadow: 0 2px 8px rgba(17,17,15,.08);
}

.standalone-page .page-nav .nav-links .nav-claim,
.generate-page .page-nav .nav-links .nav-claim {
  color: #fff;
  background: var(--nx-ink);
}

.standalone-page .nav-login,
.generate-page .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 15, .16);
  border-radius: 999px;
  color: var(--nx-ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .96), 0 8px 24px rgba(17, 17, 15, .12);
  backdrop-filter: blur(12px) saturate(1.05);
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
}

/* Public information surfaces */
.standalone-page {
  min-height: 100svh;
  background: var(--nx-paper);
}

.standalone-page::before {
  content: '';
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: var(--page-bg);
  background-position: right top;
  background-size: min(54vw, 860px) auto;
  background-repeat: no-repeat;
  opacity: .13;
  filter: saturate(.82) contrast(1.06);
}

.standalone-page::after {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(17,17,15,.12) .65px, transparent .65px);
  background-size: 7px 7px;
  opacity: .2;
}

.standalone-main {
  min-height: 100svh;
  padding-top: 0;
}

.page-content-panel,
.notice-board {
  width: 100%;
  min-height: 100svh;
  padding: 118px clamp(20px, 4.5vw, 76px) 80px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-masthead {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: end;
  gap: clamp(30px, 8vw, 140px);
  padding: 38px 0 40px;
  border-bottom: 1px solid currentColor;
}

.public-masthead p,
.ranking-intro > div > p {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-masthead h1,
.ranking-intro h1 {
  margin: 0;
  max-width: 760px;
  color: inherit;
  font-family: var(--heading);
  font-size: clamp(58px, 8vw, 118px);
  font-style: normal;
  font-weight: 400;
  line-height: .82;
}

.masthead-summary {
  max-width: 520px;
  justify-self: end;
  padding-bottom: 6px;
}

.masthead-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 750;
}

.masthead-summary p {
  margin: 0;
  color: inherit;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 450;
  line-height: 1.55;
  text-transform: none;
}

.status-page .page-content-panel {
  color: #f8f8f3;
  background: var(--nx-ink);
}

.status-page::before { opacity: .22; filter: grayscale(.2) contrast(1.15); }
.status-page .public-masthead { border-bottom-color: rgba(255,255,255,.24); }
.status-page .public-masthead > div:first-child p { color: var(--nx-lime); }

.status-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.status-explainer > span {
  min-height: 142px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-content: center;
  gap: 8px 12px;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.status-explainer > span:nth-child(3) { border-right: 0; }
.status-explainer .legend-dot { grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
.status-explainer b { color: #fff; font-size: 13px; }
.status-explainer small { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.5; }
.status-explainer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.65;
}

.standalone-page .status-toolbar {
  position: sticky;
  z-index: 4;
  top: 82px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  color: #fff;
  background: rgba(17,17,15,.9);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.standalone-page .status-toolbar strong { color: #fff; font-size: 15px; }
.standalone-page .status-toolbar small { color: rgba(255,255,255,.54); font-size: 10px; }
.status-refresh { gap: 12px; }
.status-refresh > span { color: rgba(255,255,255,.56); }
.status-refresh button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  color: #fff;
  background: transparent;
}
.status-refresh button:hover { color: var(--nx-ink); background: var(--nx-lime); }

.status-grid { gap: 1px; padding-top: 20px; background: rgba(255,255,255,.12); }
.standalone-page .status-card {
  min-height: 250px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  color: var(--nx-ink);
  background: #f1f1eb;
  box-shadow: none;
}
.status-card:hover { transform: none; background: #fff; }
.status-card::before { height: 4px; }
.status-card.operational::before { background: var(--nx-green); }
.status-card.degraded::before { background: var(--nx-yellow); }
.status-card.error::before { background: var(--nx-red); }

/* Model catalog */
.models-page .page-content-panel { padding-bottom: 100px; }
.models-page .public-masthead { color: var(--nx-ink); }
.models-page .public-masthead > div:first-child p { color: var(--nx-blue); }
.models-page .masthead-summary > span { padding: 6px 9px; color: #fff; background: var(--nx-ink); }
.page-intro {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--nx-line);
  border-radius: 0;
  background: transparent;
}
.page-intro strong { font-family: var(--heading); font-size: 24px; font-weight: 400; }
.page-intro p { margin: 0; color: var(--nx-muted); font-size: 12px; line-height: 1.6; }

.standalone-page .model-toolbar {
  position: sticky;
  z-index: 5;
  top: 82px;
  margin: 0 0 24px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--nx-line);
  border-radius: 0;
  background: rgba(245,244,239,.94);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.model-search { min-height: 42px; border: 1px solid var(--nx-line); border-radius: 4px; background: #fff; }
.model-search input { font-size: 12px; }
.model-filters { padding: 3px; border-radius: 4px; background: #e1e0da; }
.model-filters button { min-height: 34px; border-radius: 3px; color: #62625d; font-size: 10px; }
.model-filters button.is-active { color: #fff; background: var(--nx-ink); }
.model-toolbar > p strong { color: var(--nx-ink); font-family: var(--heading); font-size: 30px; }
.model-grid { gap: 1px; background: var(--nx-line); }
.standalone-page .model-card {
  min-height: 270px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.model-card:nth-child(4n + 1) { box-shadow: inset 0 4px var(--nx-blue); }
.model-card:nth-child(4n + 2) { box-shadow: inset 0 4px var(--nx-coral); }
.model-card:nth-child(4n + 3) { box-shadow: inset 0 4px var(--nx-lime); }
.model-card:hover { z-index: 1; transform: translateY(-3px); box-shadow: inset 0 4px var(--nx-ink), var(--nx-shadow); }

/* Community ranking */
.ranking-page { background: #ecebe5; }
.ranking-main { padding: 0; }
.ranking-intro {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 60px;
  margin: 0;
  padding: 140px clamp(20px, 4.5vw, 76px) 54px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--nx-ink);
}
.ranking-intro > div > p { color: var(--nx-coral); }
.ranking-intro-note { max-width: 520px; justify-self: end; }
.ranking-intro-note > span { display: inline-block; margin-bottom: 14px; padding: 6px 9px; color: var(--nx-ink); background: var(--nx-lime); font-size: 10px; font-weight: 800; }
.ranking-intro-note p { margin: 0; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.6; }
.ranking-board {
  padding: 58px clamp(20px, 4.5vw, 76px) 72px;
  border: 0;
  border-radius: 0;
  background: #f5f4ef;
  box-shadow: none;
}
.ranking-board + .ranking-board { color: #fff; background: #242422; }
.ranking-board > header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid currentColor; }
.ranking-board > header p { color: var(--nx-blue); font-size: 10px; }
.ranking-board + .ranking-board > header p { color: var(--nx-lime); }
.ranking-board > header h2 { color: inherit; font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.ranking-board > header h2 em { color: var(--nx-coral); }
.ranking-board > header > span { color: inherit; opacity: .55; }
.ranking-split { grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr); gap: 1px; background: var(--nx-line); }
.ranking-board + .ranking-board .ranking-split { background: rgba(255,255,255,.14); }
.ranking-list,
.ranking-gallery {
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.ranking-board + .ranking-board .ranking-list,
.ranking-board + .ranking-board .ranking-gallery { color: #fff; background: #1a1a18; }
.ranking-list-row { min-height: 64px; padding: 8px 10px; border-bottom-color: rgba(17,17,15,.1); }
.ranking-board + .ranking-board .ranking-list-row { border-bottom-color: rgba(255,255,255,.12); }
.ranking-list-row > span { color: #8a8a84; font-style: normal; }
.ranking-list-row strong { font-size: 13px; }
.ranking-list-row b { color: var(--nx-coral); font-size: 22px; }
.ranking-gallery-head { min-height: 44px; }
.ranking-board + .ranking-board .ranking-gallery-head span,
.ranking-board + .ranking-board .ranking-list-row small { color: rgba(255,255,255,.52); }
.ranking-board + .ranking-board .ranking-list-row strong { color: #fff; }
.ranking-board + .ranking-board .ranking-list-row > span { color: rgba(255,255,255,.42); }
.media-ribbon { gap: 8px; }
.media-ribbon > * { border-radius: 4px; }

/* Authentication: product story beside a focused form */
.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  place-items: stretch;
  padding: 0;
  overflow-x: hidden;
  color: var(--nx-ink);
  background: #fff;
}
.auth-image {
  position: fixed;
  z-index: 0;
  inset: 0 44% 0 0;
  width: auto;
  height: auto;
  background-image: url('./assets/flower-public-4k.webp');
  background-position: center;
  background-size: cover;
  filter: saturate(.82) contrast(1.05);
}
.auth-shade {
  position: fixed;
  z-index: 1;
  inset: 0 44% 0 0;
  background: rgba(17,17,15,.32);
}
.auth-brand {
  position: fixed;
  z-index: 4;
  top: 24px;
  left: 28px;
  color: #fff;
  text-shadow: none;
}
.auth-brand .brand-mark { color: var(--nx-ink); background: var(--nx-lime); box-shadow: none; }
.auth-brand strong { color: #fff; font-style: normal; font-weight: 700; }
.auth-story {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 92px clamp(28px, 5vw, 80px) 42px;
  color: #fff;
}
.auth-signal { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 3px; font-size: 9px; font-weight: 750; }
.auth-signal i,
.app-header-center > i,
.studio-session i { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-lime); box-shadow: 0 0 0 4px rgba(199,243,106,.16); }
.auth-story > div { max-width: 660px; }
.auth-story > div p { margin: 0 0 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.auth-story h2 { margin: 0; font-family: var(--heading); font-size: clamp(42px, 5.5vw, 80px); font-weight: 400; line-height: .92; }
.auth-story ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255,255,255,.28); }
.auth-story li { display: flex; flex-direction: column; gap: 3px; padding: 15px; background: rgba(17,17,15,.42); backdrop-filter: blur(10px); }
.auth-story li b { font-family: var(--heading); font-size: 24px; font-weight: 400; }
.auth-story li span { color: rgba(255,255,255,.68); font-size: 9px; }
.auth-card {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: center;
  width: min(470px, calc(100% - 56px));
  max-height: calc(100svh - 40px);
  margin: 20px auto;
  padding: 34px 38px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.auth-kicker { margin: 0 0 10px !important; color: var(--nx-blue) !important; font-size: 9px !important; font-weight: 800; }
.auth-card h1 { color: var(--nx-ink); font-size: clamp(40px, 4.5vw, 62px); line-height: .9; }
.auth-card h1 em { color: var(--nx-coral); }
.auth-card > p { margin: 14px 0 24px; color: var(--nx-muted); font-size: 12px; }
.auth-tabs { gap: 0; margin-bottom: 24px; padding: 0; border-bottom: 1px solid var(--nx-line); border-radius: 0; background: transparent; }
.auth-tabs button { padding: 11px 4px; border-radius: 0; color: var(--nx-muted); font-size: 11px; }
.auth-tabs button.is-active { color: var(--nx-ink); background: transparent; box-shadow: inset 0 -2px var(--nx-ink); }
.auth-form { gap: 14px; }
.auth-page .field label { color: #4f4f4a; font-size: 10px; font-weight: 650; }
.auth-page .field input {
  min-height: 48px;
  border: 1px solid var(--nx-line);
  border-radius: 4px;
  color: var(--nx-ink);
  background: #fafaf7;
}
.auth-page .field input:focus { border-color: var(--nx-blue); box-shadow: 0 0 0 3px rgba(93,124,255,.12); }
.auth-meta { color: var(--nx-muted); font-size: 10px; }
.auth-link,
.auth-back { color: var(--nx-blue); }
.auth-code-button { min-height: 48px; border: 0; border-radius: 4px; color: #fff; background: var(--nx-ink); }
.auth-page .app-button { min-height: 48px; border-radius: 4px; color: var(--nx-ink); background: var(--nx-lime); font-size: 11px; font-weight: 800; }
.auth-page .app-button:hover { color: #fff; background: var(--nx-ink); }

/* Authenticated cloud workspace */
.app-page { min-height: 100svh; background: var(--nx-fog); }
.app-backdrop { display: none; }
.app-header {
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--nx-line);
  border-radius: 0;
  background: rgba(255,255,255,.95);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.app-header .brand { min-width: 226px; }
.app-header .brand-mark { width: 40px; height: 40px; border: 0; color: var(--nx-ink); background: var(--nx-lime); box-shadow: none; }
.app-header .brand strong { color: var(--nx-ink); font-size: 16px; font-style: normal; font-weight: 750; }
.app-header-center {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nx-muted);
  font-size: 9px;
  text-transform: uppercase;
}
.app-header-center b { color: var(--nx-ink); font-size: 11px; text-transform: none; }
.app-header-center small { color: var(--nx-green); font-size: 9px; }
.header-user { gap: 9px; padding: 4px 4px 4px 12px; border: 1px solid var(--nx-line); border-radius: 4px; background: #f7f7f2; }
.header-user b { color: var(--nx-ink); font-size: 10px; }
.header-user small { color: var(--nx-muted); font-size: 9px; }
.header-user-home { display: grid; place-items: center; border-radius: 50%; }
.header-avatar { width: 34px; height: 34px; color: #fff; background: var(--nx-blue); }
.header-user-home:hover .header-avatar { background: var(--nx-coral); transform: none; }
.header-user .app-icon-button { width: 34px; height: 34px; color: var(--nx-muted); background: transparent; }
.header-user .app-icon-button:hover { color: #fff; background: var(--nx-ink); }

.app-layout { min-height: 100svh; grid-template-columns: 240px minmax(0, 1fr); gap: 0; padding: 68px 0 0; }
.app-sidebar {
  top: 68px;
  height: calc(100svh - 68px);
  padding: 14px 12px;
  border: 0;
  border-right: 1px solid var(--nx-line);
  border-radius: 0;
  background: #fbfbf8;
  box-shadow: none;
  backdrop-filter: none;
}
.sidebar-workspace { min-height: 58px; display: grid; grid-template-columns: 36px minmax(0,1fr) 16px; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px; border: 1px solid var(--nx-line); border-radius: 4px; background: #fff; }
.sidebar-workspace > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 3px; color: var(--nx-ink); background: var(--nx-lime); font-size: 10px; font-weight: 800; }
.sidebar-workspace div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-workspace b { font-size: 11px; }
.sidebar-workspace small { color: var(--nx-muted); font-size: 9px; }
.sidebar-workspace svg { width: 14px; color: var(--nx-muted); }
.sidebar-label { margin: 0 10px 8px; color: #8b8b84; font-size: 8px; font-weight: 750; }
.app-nav { gap: 2px; }
.app-nav button,
.app-nav a { min-height: 44px; gap: 11px; padding: 0 11px; border-radius: 4px; color: #5f5f5a; font-size: 11px; font-weight: 600; }
.app-nav button:hover,
.app-nav a:hover { color: var(--nx-ink); background: var(--nx-fog); transform: none; }
.app-nav button.is-active { color: var(--nx-ink); background: var(--nx-lime); }
.app-nav button.is-active svg { color: var(--nx-ink); }
.sidebar-card { padding: 16px; border: 0; border-radius: 4px; color: #fff; background: var(--nx-ink); }
.sidebar-card small { color: rgba(255,255,255,.54); }
.sidebar-card b { margin: 8px 0 14px; font-size: 28px; }
.sidebar-card button { color: var(--nx-lime); }

.app-main {
  min-height: calc(100svh - 68px);
  padding: 34px clamp(22px, 3.2vw, 52px) 70px;
  border: 0;
  border-radius: 0;
  background: var(--nx-fog);
  box-shadow: none;
  backdrop-filter: none;
}
.view-heading { align-items: end; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--nx-line); }
.view-heading p { margin-bottom: 5px; color: var(--nx-blue); font-size: 9px; font-weight: 800; }
.view-heading h1 { color: var(--nx-ink); font-size: clamp(34px, 3.5vw, 50px); line-height: .92; }
.view-heading h1 em { color: var(--nx-coral); }
.view-heading > small { max-width: 420px; color: var(--nx-muted); font-size: 11px; line-height: 1.5; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--nx-line); }
.metric-card { min-height: 145px; padding: 17px 18px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.metric-card span { color: var(--nx-muted); font-size: 10px; font-weight: 650; }
.metric-card b { margin: 24px 0 6px; color: var(--nx-ink); font-size: 32px; }
.metric-card small { color: #85857e; font-size: 9px; }
.metric-card.token-metric { grid-column: span 2; color: #fff; background: var(--nx-ink); }
.metric-card.token-metric span,
.metric-card.token-metric b { color: #fff; }
.metric-card.token-metric small { color: rgba(255,255,255,.54); }
.metric-card.token-metric svg { color: var(--nx-lime); }
.dashboard-facts { margin: 1px 0 16px; border: 0; background: var(--nx-line); }
.dashboard-facts > span { min-height: 76px; background: #f8f8f4; }
.dashboard-facts small { color: var(--nx-muted); }
.dashboard-facts b { color: var(--nx-ink); }
.dashboard-grid { grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 1px; margin-bottom: 1px; background: var(--nx-line); }
.app-panel,
.key-row,
.wallet-summary article,
.affiliate-grid > article { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.app-panel { padding: 20px; }
.panel-head { margin-bottom: 18px; }
.panel-head h2 { color: var(--nx-ink); font-size: 13px; font-weight: 700; }
.panel-head span,
.panel-head p,
.panel-head button { color: var(--nx-muted); }
.usage-chart i { background: var(--nx-blue); }
.distribution > span i { background: var(--nx-coral); }
.table-panel { overflow-x: auto; }
.data-table th { color: #777771; font-size: 9px; }
.data-table td { color: #30302d; }
.data-table tbody tr:hover td { background: rgba(199,243,106,.16); }
.app-button { min-height: 40px; border-radius: 4px; color: #fff; background: var(--nx-ink); font-size: 10px; font-weight: 700; }
.app-button:hover { color: var(--nx-ink); background: var(--nx-lime); transform: none; }
.app-button.secondary { border: 1px solid var(--nx-line); color: var(--nx-ink); background: #fff; }
.app-icon-button { border-radius: 4px; color: var(--nx-ink); background: #fff; }
.app-input,
.app-select,
.field input,
.field textarea,
.field select { min-height: 43px; border-color: var(--nx-line); border-radius: 4px; color: var(--nx-ink); background: #fff; }
.field input:focus,
.field textarea:focus,
.field select:focus,
.app-input:focus,
.app-select:focus { border-color: var(--nx-blue); box-shadow: 0 0 0 3px rgba(93,124,255,.1); }
.key-list { gap: 1px; background: var(--nx-line); }
.key-row { padding: 15px 16px; }
.key-name > i { border-radius: 3px; background: var(--nx-blue); }
.wallet-summary { gap: 1px; background: var(--nx-line); }
.wallet-summary article { min-height: 126px; }
.redeem-hero { border: 0; border-radius: 0; background: var(--nx-ink); }
.redeem-hero .app-button { color: var(--nx-ink); background: var(--nx-lime); }
.affiliate-grid { gap: 1px; background: var(--nx-line); }
.automatic-checkin { border-radius: 3px; color: var(--nx-ink); background: var(--nx-lime); }
.checkin-overview { gap: 1px; background: var(--nx-line); }
.checkin-rules { color: #fff; background: var(--nx-ink); }
.checkin-rules .panel-head p,
.checkin-rules .panel-head > svg { color: var(--nx-lime); }
.checkin-calendar > i,
.checkin-calendar > span { border-radius: 3px; background: var(--nx-fog); }
.checkin-calendar > span.is-checked { color: var(--nx-ink); background: var(--nx-lime); }
.profile-layout { grid-template-columns: minmax(360px, 1.08fr) minmax(340px, .92fr); gap: 1px; background: var(--nx-line); }
.profile-layout > .app-panel,
.rank-media-settings { padding: 26px; border: 0; box-shadow: none; }
.profile-identity { background: #fff; }
.profile-security { background: #efeee8; }
.profile-card-title { grid-template-columns: 42px minmax(0,1fr) auto; margin-bottom: 24px; }
.profile-card-title > span:first-child { width: 42px; height: 42px; border-radius: 3px; background: var(--nx-ink); }
.profile-security .profile-card-title > span:first-child { color: var(--nx-ink); background: var(--nx-coral); }
.profile-card-title p { color: var(--nx-blue); font-size: 8px; }
.profile-card-title h2 { color: var(--nx-ink); font-size: 25px; }
.rank-media-settings { margin-top: 1px; background: #fff; }
.rank-media-editor { grid-template-columns: minmax(280px, 1.2fr) minmax(280px, .8fr); }
.rank-media-preview { min-height: 280px; border-color: var(--nx-line); border-radius: 4px; background: var(--nx-fog); }

/* Creation workspace */
.generate-page { min-height: 100svh; color: #f6f6f1; background: #0d0d0c; }
.generate-page .site-nav { color: var(--nx-ink); }
.studio-backdrop {
  position: fixed;
  inset: 0;
  background-image: url('./assets/flower-public-4k.webp');
  background-position: center;
  background-size: cover;
  filter: saturate(.65) contrast(1.2) brightness(.42);
}
.studio-backdrop::after { background: rgba(8,8,7,.72); }
.studio-shell { min-height: 100svh; padding: 92px 14px 14px 78px; }
.studio-rail {
  top: 92px;
  left: 14px;
  bottom: 14px;
  width: 52px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  background: rgba(18,18,16,.9);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.studio-rail button,
.studio-rail a { min-height: 48px; gap: 3px; border-radius: 3px; color: rgba(255,255,255,.52); font-size: 8px; }
.studio-rail button.is-active,
.studio-rail button:hover,
.studio-rail a:hover { color: var(--nx-ink); background: var(--nx-lime); }
.studio-title { min-height: 54px; align-items: center; padding: 0 4px 12px; }
.studio-title p { margin-bottom: 3px; color: var(--nx-lime); font-size: 8px; font-weight: 800; }
.studio-title h1 { color: #fff; font-size: 34px; line-height: .95; }
.studio-title h1 em { color: var(--nx-coral); }
.studio-session { display: inline-flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; color: rgba(255,255,255,.62); font-size: 9px; }
.studio-workspace { min-height: calc(100svh - 158px); grid-template-columns: 288px minmax(430px, 1fr) 292px; gap: 1px; background: rgba(255,255,255,.14); transition: grid-template-columns 220ms ease; }
.studio-workspace.is-queue-collapsed { grid-template-columns: 288px minmax(430px, 1fr) 48px; }
.studio-controls,
.task-queue,
.text-workspace,
.studio-history-grid article {
  border: 0;
  border-radius: 0;
  color: var(--nx-ink);
  background: rgba(248,248,243,.97);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.studio-controls { padding: 18px; }
.control-block > label,
.control-row label { color: #3f3f3b; font-size: 9px; font-weight: 750; }
.control-block select,
.control-block input,
.control-row select,
.control-row input { min-height: 40px; border-color: var(--nx-line); border-radius: 3px; color: var(--nx-ink); background: #fff; }
.segmented { padding: 3px; border-radius: 4px; background: #deddd7; }
.segmented button,
.ratio-grid button { border-radius: 3px; color: #60605b; }
.segmented button.is-active,
.ratio-grid button.is-active { color: var(--nx-ink); background: var(--nx-lime); box-shadow: none; }
.upload-zone { border-color: var(--nx-line); border-radius: 4px; background: #fff; }
.studio-canvas {
  min-height: calc(100svh - 158px);
  border: 0;
  border-radius: 0;
  background-image: url('./assets/flower-public-4k.webp');
  background-position: center;
  background-size: cover;
  box-shadow: none;
}
.studio-canvas::after { background: rgba(10,10,8,.24); }
.canvas-top { top: 17px; left: 18px; right: 18px; }
.canvas-top > span { font-size: 20px; }
.canvas-top small { color: rgba(255,255,255,.72); }
.canvas-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 580px);
  display: grid;
  grid-template-columns: auto auto 1fr auto auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -70%);
  color: rgba(255,255,255,.82);
}
.canvas-empty span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 8px; }
.canvas-empty b { font-size: 9px; font-weight: 650; white-space: nowrap; }
.canvas-empty i { height: 1px; background: rgba(255,255,255,.3); }
.prompt-dock { margin: 0 12px 12px; border: 0; border-radius: 5px; color: var(--nx-ink); background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.prompt-dock textarea { color: var(--nx-ink); }
.prompt-actions { border-top-color: var(--nx-line); }
.prompt-actions small { color: var(--nx-muted); }
.generate-button { min-height: 39px; border-radius: 3px; color: var(--nx-ink); background: var(--nx-lime); font-weight: 800; }
.generate-button:hover { color: #fff; background: var(--nx-ink); }
.task-queue { min-width: 0; padding: 14px; overflow: hidden; }
.task-queue header p { color: var(--nx-blue); font-size: 8px; }
.task-queue h2 { color: var(--nx-ink); font-family: var(--body); font-size: 17px; font-weight: 700; }
.queue-actions { display: flex; align-items: center; gap: 6px; }
.task-queue header .queue-actions > span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--nx-ink);
  background: var(--nx-coral);
  font-size: 9px;
}
.queue-toggle { border-radius: 3px; color: var(--nx-ink); background: var(--nx-fog); }
.queue-toggle:hover { color: var(--nx-ink); background: var(--nx-lime); }
.task-item { border-color: var(--nx-line); border-radius: 4px; background: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :where(.app-page, .generate-page, .standalone-page, .auth-page) *,
  :where(.app-page, .generate-page, .standalone-page, .auth-page) *::before,
  :where(.app-page, .generate-page, .standalone-page, .auth-page) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1180px) {
  .standalone-page .site-nav,
  .generate-page .site-nav { grid-template-columns: 160px minmax(0, 1fr) 120px; }
  .standalone-page .page-nav .nav-links a,
  .generate-page .page-nav .nav-links a { padding-inline: 9px; }
  .app-layout { grid-template-columns: 76px minmax(0,1fr); }
  .app-header .brand { min-width: 76px; }
  .app-header .brand strong,
  .sidebar-workspace div,
  .sidebar-workspace > svg,
  .sidebar-label,
  .app-nav span,
  .sidebar-card { display: none; }
  .sidebar-workspace { grid-template-columns: 1fr; padding: 8px; }
  .sidebar-workspace > span { margin: auto; }
  .app-nav button,
  .app-nav a { justify-content: center; padding: 0; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { grid-template-columns: 260px minmax(410px, 1fr) 48px; }
}

@media (max-width: 900px) {
  .public-masthead,
  .ranking-intro { min-height: 380px; grid-template-columns: 1fr; align-content: end; gap: 28px; }
  .masthead-summary,
  .ranking-intro-note { justify-self: start; }
  .status-explainer { grid-template-columns: 1fr; }
  .status-explainer > span { border-right: 0; }
  .page-intro { grid-template-columns: 1fr; gap: 8px; }
  .ranking-split { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid,
  .profile-layout,
  .rank-media-editor { grid-template-columns: 1fr; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .view-heading > small { max-width: none; text-align: left; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { grid-template-columns: 244px minmax(360px, 1fr); }
  .task-queue { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .standalone-page .site-nav,
  .generate-page .site-nav { top: 8px; left: 8px; right: 8px; grid-template-columns: 1fr auto; min-height: 54px; }
  .standalone-page .site-nav .brand strong,
  .generate-page .site-nav .brand strong { display: none; }
  .standalone-page .site-nav .brand,
  .generate-page .site-nav .brand { min-width: 42px; }
  .standalone-page .page-nav .nav-links,
  .generate-page .page-nav .nav-links { top: 58px; left: 0; right: 0; }
  .page-content-panel,
  .notice-board { padding: 92px 16px 56px; }
  .public-masthead { min-height: 330px; padding-bottom: 28px; }
  .public-masthead h1,
  .ranking-intro h1 { font-size: 58px; }
  .status-explainer > span { min-height: 108px; padding: 18px 4px; }
  .status-explainer > p { padding: 16px 4px; }
  .status-toolbar { flex-direction: column; align-items: stretch; }
  .status-refresh { justify-content: space-between; }
  .model-toolbar { align-items: stretch; }
  .model-filters { overflow-x: auto; }
  .ranking-intro { min-height: 430px; padding: 112px 16px 38px; }
  .ranking-board { padding: 38px 16px 52px; }
  .ranking-board > header { align-items: flex-start; grid-template-columns: 1fr; }
  .ranking-board > header > span { margin-top: 8px; }
  .ranking-list,
  .ranking-gallery { padding: 10px; }

  .auth-page { display: block; padding-top: 260px; background: #fff; }
  .auth-image,
  .auth-shade { inset: 0 0 auto; width: 100%; height: 260px; }
  .auth-story { position: absolute; top: 0; left: 0; width: 100%; min-height: 260px; padding: 78px 20px 18px; }
  .auth-story > div p,
  .auth-story h2 { display: none; }
  .auth-story ul { margin-top: auto; }
  .auth-story li { padding: 10px; }
  .auth-story li b { font-size: 18px; }
  .auth-brand { top: 16px; left: 16px; }
  .auth-card { width: 100%; max-height: none; margin: 0; padding: 32px 20px 46px; }
  .auth-card h1 { font-size: 43px; }

  .app-header { height: 62px; padding: 0 8px; }
  .app-header .brand { min-width: 42px; }
  .app-header .brand strong,
  .app-header-center { display: none; }
  .header-user { margin-left: auto; padding-left: 6px; }
  .header-user > span { display: none; }
  .app-layout { display: block; padding: 62px 0 70px; }
  .app-sidebar {
    position: fixed;
    z-index: 30;
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 56px;
    padding: 4px;
    border: 1px solid var(--nx-line);
    border-radius: 5px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .sidebar-workspace { display: none; }
  .app-nav { flex-direction: row; }
  .app-nav button,
  .app-nav a { min-height: 46px; flex: 1; }
  .app-main { min-height: calc(100svh - 62px); padding: 24px 12px 48px; }
  .view-heading h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card,
  .metric-card.token-metric { min-height: 124px; grid-column: auto; padding: 14px; }
  .metric-card b { margin-top: 18px; font-size: 26px; }
  .dashboard-facts { grid-template-columns: 1fr 1fr; }
  .wallet-summary,
  .affiliate-grid { grid-template-columns: 1fr; }
  .redeem-hero { grid-template-columns: 1fr; }
  .profile-layout > .app-panel,
  .rank-media-settings { padding: 18px; }

  .studio-shell { padding: 72px 8px 72px; }
  .studio-rail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 56px; flex-direction: row; padding: 4px; }
  .studio-rail button,
  .studio-rail a { min-height: 46px; flex: 1; }
  .studio-title { min-height: 48px; }
  .studio-title h1 { font-size: 29px; }
  .studio-session { display: none; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { display: block; min-height: 0; background: transparent; }
  .studio-controls,
  .studio-canvas,
  .task-queue { margin-bottom: 1px; }
  .studio-canvas { min-height: 520px; }
  .canvas-empty { width: calc(100% - 32px); grid-template-columns: auto auto 1fr auto auto; }
  .canvas-empty i:nth-of-type(2),
  .canvas-empty span:nth-of-type(3),
  .canvas-empty b:nth-of-type(3) { display: none; }
  .task-queue.is-collapsed { min-height: 48px; }
}
}

@media (max-width: 700px) {
  .app-header { left: 8px; right: 8px; top: 8px; }
  .app-header .brand { min-width: 0; }
  .app-header .brand strong { display: none; }
  .header-user { margin-left: auto; padding-left: 4px; }
  .app-layout { display: block; padding: 76px 8px 76px; }
  .app-sidebar {
    position: fixed;
    z-index: 30;
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 58px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 8px;
  }
  .app-nav { flex-direction: row; }
  .app-nav button,
  .app-nav a { min-height: 46px; flex: 1; }
  .app-main { min-height: calc(100svh - 84px); padding: 24px 14px 54px; border: 1px solid rgba(255,255,255,.86); border-radius: 8px; }
  .view-heading h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 128px; padding: 15px; }
  .metric-card b { margin-top: 18px; font-size: 28px; }
  .dashboard-facts { grid-template-columns: 1fr 1fr; }
  .wallet-summary,
  .affiliate-grid { grid-template-columns: 1fr; }
  .redeem-hero { grid-template-columns: 1fr; }
  .profile-layout > .app-panel,
  .rank-media-settings { padding: 18px; }

  .generate-page .site-nav { left: 8px; right: 8px; top: 8px; grid-template-columns: 1fr auto; min-height: 54px; }
  .generate-page .site-nav .brand strong { display: none; }
  .generate-page .site-nav .nav-links { top: 58px; left: 0; right: 0; }
  .studio-shell { padding: 72px 8px 74px; }
  .studio-rail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 58px; flex-direction: row; padding: 5px; border-radius: 8px; }
  .studio-rail button,
  .studio-rail a { min-height: 46px; flex: 1; }
  .studio-title { min-height: 44px; }
  .studio-title h1 { font-size: 28px; }
  .studio-workspace,
  .studio-workspace.is-queue-collapsed { display: block; min-height: 0; }
  .studio-controls,
  .studio-canvas,
  .task-queue { margin-bottom: 8px; }
  .studio-canvas { min-height: 520px; }
  .task-queue.is-collapsed { min-height: 48px; }
  .task-queue.is-collapsed > header { justify-content: flex-end; }
}
