:root {
  --lime: #d8ff36;
  --blue: #5766ff;
  --ink: #11120f;
  --cream: #f4f2e9;
  --muted: #676960;
  --line: rgba(17, 18, 15, .16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; width: 100%; }

.hero { --hero-gutter: clamp(20px, 4vw, 64px); min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 112px var(--hero-gutter) 14px; color: #fff; background: var(--ink); }
.site-nav { width: min(calc(100% - 40px), 1230px); min-height: 58px; position: fixed; z-index: 100; top: 28px; left: 50%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 0; padding: 7px 12px 7px 18px; isolation: isolate; background: linear-gradient(112deg, rgba(255,255,255,.64), rgba(242,247,245,.3) 48%, rgba(255,255,255,.46)); border: 0; border-radius: 999px; box-shadow: 0 14px 38px rgba(8,15,13,.16); backdrop-filter: blur(30px) saturate(185%) contrast(1.06); -webkit-backdrop-filter: blur(30px) saturate(185%) contrast(1.06); transform: translate3d(-50%, 0, 0); will-change: transform; transition: transform .82s cubic-bezier(.16,1,.3,1), background .58s ease, box-shadow .58s ease; }
.site-nav.is-scrolled { background: linear-gradient(112deg, rgba(255,255,255,.72), rgba(242,247,245,.44) 48%, rgba(255,255,255,.58)); box-shadow: 0 10px 30px rgba(8,15,13,.18); transform: translate3d(-50%, -14px, 0) scale(.97); }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-weight: 700; font-size: 15px; letter-spacing: -.04em; }
.site-nav .brand { color: var(--ink); }
.brand-glyph { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-family: var(--serif); font-size: 21px; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
  .nav-links a { padding: 7px 10px; color: var(--ink); border-radius: 999px; font-size: 15px; font-weight: 700; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
  .nav-links a:hover { color: var(--ink); background: var(--lime); box-shadow: 0 7px 14px rgba(17,18,15,.12); transform: translateY(-2px); }
  .nav-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--cream); background: var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
  .nav-cta:hover, .button-dark:hover { color: var(--ink); background: var(--lime); box-shadow: 0 12px 22px rgba(216,255,54,.26); transform: translateY(-3px); }
  .nav-cta svg, .button svg, .text-link svg { width: 16px; height: 16px; }
  .nav-toggle { display: none; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
  .nav-toggle:hover { background: var(--lime); color: var(--ink); box-shadow: 0 8px 16px rgba(17,18,15,.16); transform: scale(1.06); }

.hero-video, .hero-video-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { z-index: 0; object-fit: cover; }
.hero-video-shade { z-index: 1; background: rgba(10, 12, 10, .54); }
.hero-copy { width: min(100%, 680px); position: relative; z-index: 2; margin: clamp(38px, 7vw, 88px) 0 0; text-align: left; }
.kicker, .section-label { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.kicker { margin-bottom: 17px; letter-spacing: .11em; }
.kicker { color: rgba(255,255,255,.76); }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); border: 1px solid var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(46px, 6.8vw, 96px); line-height: .9; letter-spacing: -.07em; font-weight: 600; }
h1 em, h2 em { color: var(--blue); font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.06em; }
h1 { color: #fff; }
.hero-title-line { display: block; overflow: clip; }
h1 em { color: #fff; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 7px; text-underline-offset: .08em; }
.hero-description { width: min(100%, 490px); margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.6; }
.hero-actions { display: flex; justify-content: flex-start; align-items: center; gap: 23px; margin-top: 28px; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
  .button:hover { box-shadow: 0 12px 22px rgba(17,18,15,.2); transform: translateY(-3px); }
  .button-dark:hover { box-shadow: 0 12px 22px rgba(216,255,54,.26); }
.button-dark { color: #fff; background: var(--ink); }
.button-lime { color: var(--ink); background: var(--lime); }
.button-large { padding: 17px 23px; font-size: 14px; }
  .play-link { display: inline-flex; align-items: center; gap: 9px; padding: 0; color: #fff; background: transparent; border: 0; font-size: 13px; font-weight: 600; transition: color .2s ease, transform .2s ease; }
  .play-link span { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
  .play-link svg { width: 13px; height: 13px; fill: #fff; transition: fill .2s ease; }
  .play-link:hover { color: var(--lime); transform: translateX(4px); }
  .play-link:hover span { background: var(--lime); border-color: var(--lime); transform: scale(1.1); }
  .play-link:hover svg { fill: var(--ink); }

@media (min-width: 801px) {
  .hero-copy { margin: clamp(118px, 11vw, 164px) 0 0 clamp(38px, 2vw, 44px); }
}

.statement { display: grid; grid-template-columns: 1fr minmax(0, 1.75fr); gap: 34px; padding: clamp(100px, 14vw, 190px) clamp(20px, 7vw, 112px); overflow: clip; background: var(--cream); }
.statement, .workflow, .case-study, .join-section { scroll-margin-top: 112px; }
.section-label { color: var(--muted); }
.statement h2, .workflow h2, .case-study h2, .join-section h2 { margin: 0; font-size: clamp(37px, 5vw, 76px); line-height: .98; letter-spacing: -.065em; font-weight: 600; }
.statement h2 span { color: var(--blue); font-family: var(--serif); font-style: italic; }
.statement-detail { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; grid-column: 2; margin-top: 62px; }
.statement-detail p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: box-shadow .2s ease, transform .2s ease; }
  .text-link:hover { color: var(--ink); border-color: var(--lime); box-shadow: inset 0 -5px 0 var(--lime); transform: translateX(4px); }

.workflow { padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 64px); overflow: clip; color: var(--cream); background: var(--ink); }
.section-header { display: flex; justify-content: space-between; gap: 30px; max-width: 1230px; margin: 0 auto 58px; }
.workflow .section-label { color: #9b9d93; }
.workflow h2 em { color: var(--lime); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1230px; margin: 0 auto; border: 1px solid rgba(244,242,233,.23); }
.feature { min-height: 360px; position: relative; padding: 26px; color: var(--ink); }
.feature + .feature { border-left: 1px solid rgba(17,18,15,.3); }
.feature-lime { background: var(--lime); }
.feature-blue { background: var(--blue); color: var(--cream); }
.feature-ink { color: var(--cream); background: #252821; }
.feature-index { color: inherit; font-family: var(--mono); font-size: 11px; }
.feature > svg { width: 28px; height: 28px; position: absolute; top: 26px; right: 26px; stroke-width: 1.5; }
.feature h3 { max-width: 250px; margin: 72px 0 12px; font-size: 25px; line-height: 1.05; letter-spacing: -.045em; }
.feature p { max-width: 255px; margin: 0; color: inherit; opacity: .72; font-size: 14px; line-height: 1.55; }
.feature-word { position: absolute; bottom: 18px; left: 24px; font-family: var(--serif); font-size: clamp(55px, 6vw, 91px); line-height: .8; font-style: italic; letter-spacing: -.08em; opacity: .95; }

.case-study { display: grid; grid-template-columns: minmax(330px, .86fr) 1.14fr; min-height: 660px; overflow: clip; background: var(--cream); }
.case-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(60px, 8vw, 130px); }
.case-copy h2 { margin: 18px 0 24px; }
.case-copy h2 em { color: var(--blue); }
.case-copy > p:not(.section-label) { max-width: 320px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.62; }
.case-image { min-height: 520px; position: relative; overflow: hidden; background: #bfcee2; }
.case-image > img { height: 100%; min-height: 520px; object-fit: cover; filter: saturate(.8) contrast(1.04); }
.case-overlay { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: 22px; color: var(--cream); background: var(--ink); }
.case-overlay span { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.case-overlay strong { font-family: var(--serif); font-size: 25px; line-height: .92; font-style: italic; font-weight: 600; text-align: right; }

.join-section { min-height: 620px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; color: var(--cream); text-align: center; background: var(--blue); }
.join-section .section-label { color: rgba(244,242,233,.64); }
.join-section h2 { position: relative; z-index: 1; margin: 20px 0 30px; }
.join-section h2 em { color: var(--lime); }
.join-section .button { position: relative; z-index: 1; }
.join-orbit { width: min(88vw, 620px); aspect-ratio: 1; position: absolute; bottom: -48%; display: grid; place-items: center; border: 1px solid rgba(244,242,233,.45); border-radius: 50%; }
.join-orbit::before, .join-orbit::after { content: ""; position: absolute; border: 1px solid rgba(244,242,233,.28); border-radius: 50%; }
.join-orbit::before { inset: 12%; }.join-orbit::after { inset: 28%; }
.join-orbit span { position: absolute; color: var(--lime); font-family: var(--serif); font-size: clamp(45px, 8vw, 90px); font-style: italic; letter-spacing: -.08em; }
.join-orbit span:first-child { top: 11%; left: 12%; }.join-orbit span:nth-child(2) { right: 7%; bottom: 21%; }
.join-orbit b { width: 15px; height: 15px; border-radius: 50%; background: var(--lime); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px clamp(20px, 4vw, 64px); color: var(--cream); background: var(--ink); border-top: 1px solid rgba(244,242,233,.2); }
footer p { margin: 0; color: #989b90; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
footer > div { display: flex; gap: 15px; } footer > div a { color: #b8bab1; font-size: 12px; } footer > div a:hover { color: var(--lime); }
dialog { width: min(90vw, 600px); padding: 44px; color: var(--cream); background: var(--ink); border: 1px solid var(--lime); }
dialog::backdrop { background: rgba(17,18,15,.72); }
  .dialog-close { width: 34px; height: 34px; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border: 0; border-radius: 50%; transition: box-shadow .18s ease, transform .18s ease; }
  .dialog-close:hover { box-shadow: 0 8px 16px rgba(216,255,54,.28); transform: rotate(8deg) scale(1.08); }
.dialog-close svg { width: 16px; height: 16px; }
dialog h2 { margin: 15px 0; font-size: clamp(34px, 6vw, 60px); line-height: .98; letter-spacing: -.06em; } dialog h2 em { color: var(--lime); font-family: var(--serif); font-style: italic; } dialog p { max-width: 380px; margin: 0; color: #b7baae; line-height: 1.6; }

@media (max-width: 800px) {
  .hero { min-height: 100vh; padding: 106px 14px 18px; }
  .site-nav { width: auto; min-height: 58px; top: 10px; right: 14px; left: 14px; display: flex; justify-content: space-between; padding: 8px 10px 8px 14px; transform: none; }
  .site-nav.is-scrolled { transform: none; }
  .nav-cta { display: none; }
  .nav-toggle { width: 37px; height: 37px; display: grid; place-items: center; color: var(--cream); background: var(--ink); border: 0; border-radius: 50%; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-links { width: 100%; position: absolute; top: calc(100% + 8px); left: 0; display: none; padding: 12px; background: var(--cream); border: 1px solid rgba(17,18,15,.14); border-radius: 16px; box-shadow: 0 18px 35px rgba(17,18,15,.16); }
  .nav-links.is-open { display: grid; gap: 4px; }.nav-links a { padding: 10px; }
  .hero-copy { margin-top: 38px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }.hero-description { font-size: 14px; }
  .statement { display: block; padding: 84px 22px; }.statement h2 { margin-top: 30px; }.statement-detail { display: grid; gap: 27px; margin-top: 36px; }.statement-detail p { font-size: 14px; }
  .workflow { padding: 72px 14px; }.section-header { display: block; margin-bottom: 34px; }.section-header h2 { margin-top: 23px; }.feature-grid { grid-template-columns: 1fr; }.feature { min-height: 280px; }.feature + .feature { border-top: 1px solid rgba(17,18,15,.3); border-left: 0; }
  .case-study { grid-template-columns: 1fr; }.case-copy { padding: 76px 22px 60px; }.case-image { min-height: 420px; }.case-image > img { min-height: 420px; }.case-overlay { padding: 17px; }.case-overlay strong { font-size: 20px; }
  .join-section { min-height: 520px; }.join-orbit { bottom: -37%; }
  footer { align-items: flex-start; flex-direction: column; padding: 27px 22px; } footer > div { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Creator workspace */
.workspace-page { --workspace-banner-height: 0px; }
html:not(.canvas-editor-window) .workspace-page:not(.is-auth-pending, .is-auth-locked):has(> .announcement-bar:not([hidden])) {
  --workspace-banner-height: 47px;
}
.announcement-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--workspace-banner-height);
  padding: 6px 48px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.announcement-bar[hidden],
body:is(.is-auth-pending, .is-auth-locked) > .announcement-bar,
.canvas-editor-window .announcement-bar { display: none; }
.announcement-link, .announcement-clock, .announcement-countdown, .announcement-time, .announcement-copy {
  display: flex;
  align-items: center;
}
.announcement-link {
  min-width: 0;
  gap: 24px;
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
}
.announcement-clock { flex: none; gap: 10px; white-space: nowrap; }
.announcement-countdown { gap: 3px; }
.announcement-time { gap: 2px; }
.announcement-time b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 26px;
  border-radius: 5px;
  background: var(--lime);
  color: #172419;
  font-variant-numeric: tabular-nums;
}
.announcement-copy { gap: 12px; white-space: nowrap; }
.announcement-copy strong { font-weight: 650; }
.announcement-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--lime);
  color: #172016;
  font-weight: 650;
  white-space: nowrap;
}
.announcement-cta-label { display: block; line-height: 1; }
.announcement-cta svg { display: block; flex: none; width: 13px; height: 13px; }
.announcement-link:hover .announcement-cta { background: #e4ff9c; }
.announcement-close {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.announcement-close > svg { width: 18px; height: 18px; }
.announcement-close:hover { background: #272727; }
.announcement-bar :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 800px) {
  .announcement-link { gap: 14px; }
  .announcement-copy > span { display: none; }
}
@media (max-width: 600px) {
  .announcement-bar { padding: 6px 39px 6px 8px; font-size: 11px; }
  .announcement-link { gap: 8px; }
  .announcement-copy, .announcement-cta > svg, .announcement-cta > i { display: none; }
  .announcement-clock { gap: 6px; }
  .announcement-countdown { gap: 2px; }
  .announcement-time { gap: 1px; }
  .announcement-time b { width: 13px; height: 24px; }
  .announcement-cta { min-height: 26px; padding-inline: 7px; }
  .announcement-close { right: 4px; }
}

.workspace-page { --sidebar-width: 76px; --workspace-header-height: 64px; min-height: 100vh; height: 100vh; overflow: hidden; background: #f7f7f3; color: var(--ink); }
.workspace-sidebar { width: var(--sidebar-width); position: fixed; inset: var(--workspace-banner-height) auto 0 0; z-index: 20; display: flex; flex-direction: column; padding: 16px 6px; background: #f1f2ee; color: var(--ink); border-right: 1px solid rgba(17,18,15,.08); }
.workspace-mark { position: relative; display: flex; align-items: center; justify-content: center; padding: 2px 0 30px; font-size: 16px; }
.workspace-mark strong { width: max-content; position: absolute; top: 7px; left: calc(50% + 32px); display: block; color: var(--ink); font-family: "Inter", var(--sans); font-size: 18px; font-weight: 800; line-height: 28px; letter-spacing: -.025em; white-space: nowrap; }
.workspace-mark .brand-glyph { width: 40px; height: 40px; padding: 0; color: #18181b; fill: currentColor; background: transparent; border-radius: 0; font-size: 25px; box-shadow: none; }
.workspace-nav, .workspace-sidebar-bottom { display: grid; gap: 8px; }
.workspace-nav a, .workspace-sidebar-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 62px; padding: 7px 2px; border: 1px solid transparent; border-radius: 7px; color: #73787f; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: center; transition: color .24s ease, background .24s ease, border-color .24s ease, transform .24s ease; }
.workspace-nav a:not([aria-disabled="true"]):hover, .workspace-sidebar-bottom a:hover { color: var(--ink); background: #e7eaed; transform: translateY(-2px); }
.workspace-nav a:not([aria-disabled="true"]):hover svg, .workspace-sidebar-bottom a:hover svg { transform: translateY(-1px) scale(1.06); fill: currentColor; stroke-width: 1.8; }
.workspace-nav a.is-active { color: var(--ink); background: transparent; border-color: transparent; box-shadow: none; font-weight: 700; }
.workspace-nav svg, .workspace-sidebar-bottom svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .24s ease; }
.workspace-nav a small { display: block; color: inherit; font-size: 8px; font-weight: 600; line-height: 1; }
.workspace-nav .workspace-nav-divider.admin-only { margin: 0 3px; padding: 6px 0 0; }
.workspace-nav .workspace-nav-divider.admin-only > span { display: block; font-size: 10px; line-height: 12px; transform: translateY(3px); }
.workspace-nav .workspace-nav-divider.admin-only + a.admin-only { margin-top: -8px; }
.workspace-nav .admin-only[hidden] { display: none; }
.workspace-sidebar-bottom { margin-top: 12px; border-top: 1px solid rgba(17,18,15,.1); padding-top: 12px; }
.workspace-sidebar-extra { width: 100%; min-width: 0; display: grid; justify-items: center; gap: 8px; margin-top: auto; padding: 10px 0 0; }
.membership-card { display: grid; gap: 3px; width: 54px; min-height: 66px; padding: 7px 3px; color: #2b7282; background: #e7f7fb; border: 1px solid #caeaf1; border-radius: 8px; font-size: 9px; text-align: center; transition: background .24s ease, transform .24s ease; }
.membership-card:hover { background: #d9f2f8; transform: translateY(-2px); }
.membership-card strong { color: #2b98ad; font-size: 9px; }.membership-card span { color: var(--ink); font-size: 10px; font-weight: 800; }.membership-card small { font-size: 9px; }
.workspace-notice-menu { position: relative; width: 100%; min-width: 0; }
.sidebar-notice { width: 38px; height: 30px; position: relative; display: grid; place-items: center; margin: 0 auto; padding: 0; color: #73787f; background: transparent; border: 0; border-radius: 8px; transition: color .24s ease; }.sidebar-notice:hover, .sidebar-notice[aria-expanded="true"] { color: var(--ink); background: transparent; }.sidebar-notice svg { width: 18px; height: 18px; display: block; transform: translateY(2px); }.sidebar-notice span { position: absolute; top: -2px; right: 0; min-width: 14px; height: 14px; display: grid; place-items: center; padding: 0 3px; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: 8px; font-weight: 800; }
.workspace-page:has(.notification-popover.is-open) .sidebar-notice,
.workspace-page:has(.notification-popover.is-open) .workspace-account-menu { z-index: 100; }
.notification-popover { width: min(458px, calc(100vw - 16px)); height: 100vh; position: fixed; top: 0; left: 0; z-index: 80; display: flex !important; flex-direction: column; box-sizing: border-box; padding: 28px 0 16px 76px; overflow: hidden; color: var(--ink); background: linear-gradient(90deg, #f3f5f7 0 76px, rgba(255,255,255,.98) 76px 100%); border: 1px solid rgba(17,18,15,.1); border-top: 0; border-left: 0; border-radius: 0 12px 12px 0; box-shadow: none; transform-origin: 0 50%; animation: notification-drawer-in .2s cubic-bezier(.16,1,.3,1); }
.notification-popover.is-closed { display: none !important; }
.workspace-page:has(.notification-popover.is-open) .workspace-sidebar { z-index: 90; }
.workspace-page:has(.notification-popover.is-open) .workspace-mark,
.workspace-page:has(.notification-popover.is-open) .workspace-nav { z-index: 100; }
.notification-header { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 18px; }.notification-header strong { font-size: 23px; letter-spacing: -.04em; }.notification-close { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; color: #7d8580; background: transparent; border: 0; border-radius: 50%; line-height: 1; cursor: pointer; }.notification-close:is(:hover, :focus-visible) { color: #fff; }.notification-close svg { width: 30px; height: 30px; display: block; position: static; flex: 0 0 auto; margin: 0; transform: none; }.notification-close circle { fill: transparent; }.notification-close:is(:hover, :focus-visible) circle { fill: var(--ink); }
.notification-toolbar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 14px 13px; border-bottom: 1px solid rgba(17,18,15,.08); }
.notification-tabs { display: flex; gap: 4px; min-width: 0; }.notification-tab { padding: 9px 15px; color: #87908a; background: transparent; border: 0; border-radius: 8px; font-size: 12px; cursor: pointer; }.notification-tab:hover { color: var(--ink); background: #f2f4f1; }.notification-tab.is-active { color: var(--ink); background: #eef0ee; font-weight: 700; }
.notification-clear-all { flex: 0 0 auto; margin-left: auto; padding: 9px 10px; color: #87908a; background: transparent; border: 0; border-radius: 8px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.notification-clear-all:is(:hover, :focus-visible):not(:disabled) { color: #fff; background: #dc2626; }
.notification-clear-all:disabled { opacity: .5; cursor: default; }
.notification-list { flex: 1; display: grid; align-content: start; gap: 0; padding: 10px 8px 14px; overflow-y: auto; overscroll-behavior: contain; }.notification-list article { min-height: 82px; display: flex; align-items: flex-start; gap: 11px; padding: 13px 12px; border-radius: 9px; }.notification-list article:hover { background: #f4f6f3; }.notification-list article.is-hidden { display: none; }.notification-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 50%; }.notification-icon svg { width: 18px; height: 18px; stroke-width: 2; }.notification-list article > div:nth-child(2) { display: grid; gap: 4px; min-width: 0; padding-top: 1px; }.notification-list article strong { overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.notification-list article span { color: #808981; font-size: 11px; line-height: 1.45; }.notification-list article small { color: #a2a8a3; font-size: 10px; line-height: 1.2; }.notification-thumb { width: 42px; height: 42px; flex: 0 0 auto; margin-left: auto; object-fit: cover; border-radius: 6px; }.notification-mark-read { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; margin: 0; padding: 0 14px; color: #7d8580; background: transparent; border: 0; border-radius: 7px; font-size: 11px; line-height: 1; cursor: pointer; }.notification-mark-read:hover { color: var(--ink); background: #eef1ed; }
.notification-empty { margin: 0; padding: 48px 16px; color: #8a918d; font-size: 12px; text-align: center; }
.notification-error { margin: 0; padding: 16px; color: #b42318; font-size: 12px; line-height: 1.5; }
.notification-list article[role="button"] { cursor: pointer; }
.notification-list article[role="button"]:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.notification-list article.is-unread strong::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--lime); vertical-align: middle; }
.notification-mark-read[hidden] { display: none; }
.notification-popover .notification-list { min-height: 0; padding-bottom: 0; }
.notification-list article { align-items: center; gap: 8px; }
.notification-open { min-width: 0; flex: 1; display: flex; align-items: flex-start; gap: 11px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 6px; text-align: left; font: inherit; cursor: pointer; }
.notification-content { min-width: 0; flex: 1; display: grid; gap: 4px; padding-top: 1px; }
.notification-dismiss { width: 28px; height: 28px; flex: 0 0 auto; align-self: center; display: grid; place-items: center; margin-left: auto; padding: 0; color: #87908a; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.notification-dismiss svg { width: 15px; height: 15px; }
.notification-dismiss:is(:hover, :focus-visible) { color: #fff; background: #dc2626; }
.notification-dismiss:disabled { cursor: wait; opacity: .6; }
.notification-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.notification-footer { min-height: 50px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 10px 0; }
.notification-footer:has(.notification-mark-read[hidden]) { display: none; }
.notification-popover:has(.notification-mark-read:not([hidden])) { padding-bottom: 0; }
.notification-mark-read:disabled { cursor: wait; opacity: .6; }
#notificationCount.is-hidden { display: none; }
@keyframes notification-drawer-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
.workspace-shell { position: fixed; inset: var(--workspace-banner-height) 0 0 var(--sidebar-width); height: auto; min-height: 0; margin: 0; padding-top: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: var(--supercanv-scrollbar-width, thin); }
.workspace-shell::before { content: ''; position: fixed; top: var(--workspace-banner-height); right: 0; left: var(--sidebar-width); z-index: 19; height: var(--workspace-header-height); background: #f3f5f7; }
.workspace-topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(17,18,15,.08); }
.workspace-breadcrumb, .workspace-top-actions { display: flex; align-items: center; gap: 10px; }
.workspace-breadcrumb { color: #85887e; font-size: 13px; }.workspace-breadcrumb svg { width: 14px; }.workspace-breadcrumb strong { color: var(--ink); }
.workspace-top-actions { gap: 12px; }.icon-button, .avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; }.icon-button { color: var(--muted); background: transparent; }.icon-button:hover { color: var(--ink); background: #e9e9e2; }.icon-button svg { width: 17px; }.avatar { color: var(--ink); background: var(--lime); font-size: 13px; font-weight: 800; }
.workspace-main { width: 100%; max-width: 1360px; flex: 1 0 auto; box-sizing: border-box; margin: 0 auto; padding: 48px clamp(24px, 5vw, 72px) 88px; }
.site-legal-footer { display: flex; align-items: center; justify-content: center; gap: 12px; color: #8a928b; background: transparent; border-top: 1px solid rgba(17,18,15,.08); font-size: 11px; line-height: 1.5; }
.site-legal-footer a { color: #68736c; text-decoration: none; }
.site-legal-footer a:hover, .site-legal-footer a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-legal-footer-workspace { flex: 0 0 auto; margin: 0 auto; padding: 18px 24px 26px; }
.site-legal-footer-auth { grid-column: 1 / -1; align-self: end; padding: 0; color: #aeb9ac; border-top: 0; }
.site-legal-footer-auth a { color: #d0dacd; }
.site-legal-footer-auth a:is(:hover, :focus-visible) { color: #fff; text-decoration-color: #fff; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.eyebrow { margin: 0 0 12px; color: #85887e; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }.generate-button { min-height: 39px; display: inline-flex; align-items: center; gap: 9px; margin-left: auto; padding: 0 15px; color: var(--ink); background: var(--lime); border: 0; border-radius: 8px; font-size: 13px; font-weight: 800; transition: box-shadow .2s ease, transform .2s ease, background .2s ease; }.generate-button:hover { background: #c8f224; box-shadow: 0 10px 20px rgba(216,255,54,.28); transform: translateY(-2px); }.generate-button svg { width: 16px; }.generate-button kbd { padding: 2px 5px; color: #64675d; background: rgba(17,18,15,.1); border-radius: 4px; font: 10px var(--mono); }
.generate-button:disabled { cursor: wait; opacity: .72; transform: none; }.generate-button.is-generating svg { animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.inspiration-section { margin-top: 72px; }.section-title-row h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.06em; }.view-link { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }.view-link svg { width: 14px; }.inspiration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }.inspiration-card { min-width: 0; position: relative; overflow: hidden; padding: 0; aspect-ratio: 1.35; background: #ddd; border: 0; border-radius: 12px; text-align: left; }.inspiration-card img { height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.16,1,.3,1), filter .35s ease; }.inspiration-card span { position: absolute; left: 13px; bottom: 11px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.4); }.inspiration-card:hover img { transform: scale(1.06); filter: saturate(1.12); }.card-wide { aspect-ratio: 1.35; }
.workspace-view[hidden] { display: none; }.section-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; }.assets-section { padding-top: 18px; }.asset-toolbar { display: flex; gap: 8px; margin: 32px 0 18px; }.asset-filter { padding: 9px 14px; color: var(--muted); background: transparent; border: 1px solid rgba(17,18,15,.12); border-radius: 999px; font-size: 12px; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }.asset-filter:hover { color: var(--ink); background: #fff; transform: translateY(-2px); }.asset-filter.is-active { color: var(--ink); background: var(--lime); border-color: var(--lime); }.assets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }.asset-card { overflow: hidden; background: #fff; border: 1px solid rgba(17,18,15,.1); border-radius: 12px; text-align: left; box-shadow: 0 12px 30px rgba(17,18,15,.05); transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease; }.asset-card:hover { border-color: rgba(17,18,15,.24); box-shadow: 0 18px 34px rgba(17,18,15,.1); transform: translateY(-4px); }.asset-card img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }.asset-card > div { display: grid; gap: 5px; padding: 12px 14px 14px; }.asset-card strong { font-size: 13px; }.asset-card span { color: var(--muted); font-size: 11px; }
.tool-section { padding-top: 18px; }.canvas-board { min-height: 560px; position: relative; overflow: hidden; margin-top: 32px; background: #eef1ed; border: 1px solid rgba(17,18,15,.1); border-radius: 18px; }.canvas-board-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(17,18,15,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,15,.08) 1px, transparent 1px); background-size: 32px 32px; }.canvas-note { position: absolute; display: grid; gap: 5px; width: 190px; padding: 16px; background: rgba(255,255,255,.9); border: 1px solid rgba(17,18,15,.1); border-radius: 12px; box-shadow: 0 14px 30px rgba(17,18,15,.08); }.canvas-note span { color: var(--blue); font: 10px var(--mono); text-transform: uppercase; }.canvas-note strong { font-size: 14px; }.canvas-note small { color: var(--muted); font-size: 11px; }.canvas-note-a { top: 110px; left: 18%; transform: rotate(-3deg); }.canvas-note-b { top: 270px; left: 48%; transform: rotate(2deg); }.canvas-add { position: absolute; right: 28px; bottom: 24px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; color: var(--ink); background: var(--lime); border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; transition: transform .24s ease, box-shadow .24s ease; }.canvas-add:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(216,255,54,.24); }.canvas-add svg { width: 15px; }
@media (max-width: 900px) { .workspace-page { --sidebar-width: 64px; }.workspace-sidebar { padding: 16px 5px; }.workspace-mark { justify-content: center; padding: 2px 0 24px; }.workspace-nav span, .workspace-sidebar-bottom span { display: none; }.workspace-nav a, .workspace-sidebar-bottom a { justify-content: center; padding: 0; min-height: 56px; }.workspace-sidebar-extra { display: none; }.workspace-main { padding: 42px 24px 72px; }.workspace-topbar { padding: 0 24px; }.inspiration-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .workspace-main { padding: 32px 16px 56px; }.generate-button { width: 100%; justify-content: center; margin-left: 0; }.inspiration-section { margin-top: 64px; }.inspiration-grid { gap: 9px; }.card-wide { grid-column: span 2; }.assets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.section-title-row { align-items: flex-start; flex-direction: column; gap: 18px; }.asset-toolbar { margin-top: 24px; } }

/* Vertical creator flow: compose first, then browse the generated archive. */
.workspace-main { max-width: 1160px; }
.create-stage { width: min(100%, 980px); margin: 0 auto; }
.generate-button { white-space: nowrap; }

.archive-section { width: min(100%, 1160px); margin: 104px auto 0; padding: 34px 0 8px; border-top: 1px solid rgba(17,18,15,.1); }
.archive-section .section-title-row { align-items: end; }
.archive-section .section-title-row h2 { font-size: clamp(34px, 4vw, 52px); }
.archive-manage { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid rgba(17,18,15,.14); border-radius: 8px; font-size: 12px; font-weight: 800; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.archive-manage:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.archive-manage svg { width: 15px; }
.archive-toolbar { display: flex; gap: 5px; margin: 28px 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(17,18,15,.1); }
.archive-filter { padding: 7px 13px; color: #777a70; background: transparent; border: 0; border-radius: 7px; font-size: 12px; font-weight: 800; transition: color .2s ease, background .2s ease; }
.archive-filter:hover { color: var(--ink); background: #e9ece8; }
.archive-filter.is-active { color: var(--ink); background: var(--lime); }
.archive-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.archive-card { min-width: 0; position: relative; overflow: hidden; aspect-ratio: .82; padding: 0; color: #fff; background: #d9ddd7; border: 0; border-radius: 10px; text-align: left; isolation: isolate; box-shadow: 0 8px 20px rgba(17,18,15,.06); transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s ease; }
.archive-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 48%, rgba(7,9,8,.7)); pointer-events: none; }
.archive-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.16,1,.3,1), filter .35s ease; }
.archive-card-image-button { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: inherit; cursor: pointer; overflow: hidden; }
.archive-card-image-button img { display: block; }
.archive-card:hover { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(17,18,15,.14); }
.archive-card:hover img { transform: scale(1.06); filter: saturate(1.1); }
.archive-card-label, .archive-duration { position: absolute; z-index: 2; font-size: 11px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.archive-card-label { right: 10px; bottom: 10px; left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-duration { top: 10px; right: 10px; color: rgba(255,255,255,.92); font-family: var(--mono); font-size: 9px; }

@media (max-width: 980px) {
  .generate-button { grid-column: span 3; width: 100%; justify-content: center; margin-left: 0; }
  .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .workspace-main { padding-top: 32px; }
  .generate-button { grid-column: span 2; }
  .archive-section { margin-top: 72px; padding-top: 28px; }
  .archive-section .section-title-row { align-items: flex-start; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Desktop composer affordances brought into the web version. */
.tool-button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 6px 9px; color: #757970; background: #f0f2ef; border: 0; border-radius: 7px; font-size: 11px; font-weight: 700; transition: color .2s ease, background .2s ease, transform .2s ease; }
.tool-button:hover { color: var(--ink); background: #e4e8e3; transform: translateY(-1px); }
.tool-button svg { width: 14px; height: 14px; }

/* Creator workspace follows the spacious, centered composition of the reference tool. */
.workspace-main { max-width: 1280px; }
.create-stage { width: min(100%, 1080px); }
.generate-button { min-height: 42px; border-radius: 10px; }
.custom-size-row { margin-top: 12px; }
.reference-thumb { width: 58px; height: 58px; position: relative; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(17,18,15,.14); border-radius: 7px; background: #e6e9e5; }
.reference-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reference-thumb button { width: 18px; height: 18px; position: absolute; top: 3px; right: 3px; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(17,18,15,.72); border: 0; border-radius: 50%; }
.reference-thumb button svg { width: 11px; height: 11px; }
.custom-size-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.custom-size-row label { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 9px 11px; color: #858980; background: #f7f8f6; border: 1px solid rgba(17,18,15,.11); border-radius: 7px; font: 10px var(--mono); }
.custom-size-row input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: 12px var(--mono); }
.custom-size-row input::placeholder { color: #bfc5bd; }
.size-link { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: #8b9087; background: transparent; border: 1px solid rgba(17,18,15,.12); border-radius: 50%; }
.size-link:hover { color: var(--ink); background: #eef0ec; }
.size-link svg { width: 13px; height: 13px; }
.generation-status { min-height: 18px; margin: 12px 0 0; color: #6c7168; font-size: 12px; }
.generation-status.is-error { color: #c74e43; }
.generation-status.is-success { color: #168267; }
.archive-card-meta { position: absolute; z-index: 2; bottom: 10px; left: 10px; display: none; color: rgba(255,255,255,.75); font: 9px var(--mono); }
.archive-card.is-selected { outline: 0; }
.archive-empty { padding: 48px 20px; color: var(--muted); text-align: center; background: #eef1ed; border: 1px dashed rgba(17,18,15,.15); border-radius: 10px; }

/* Match the desktop generation workspace archive: a quiet header and dense portrait result wall. */
.workspace-page { background: #f3f5f7; }
.workspace-main { max-width: 1360px; }
.workspace-main .eyebrow { display: none; }
.archive-section { width: 100%; margin-top: 72px; padding: 26px 0 12px; border-top: 0; }
.archive-section .section-title-row { align-items: center; padding: 0 0 12px; border-bottom: 0; }
.archive-section .section-title-row > div { display: flex; align-items: center; min-width: 0; }
.archive-section .eyebrow,
.archive-section .section-subtitle { display: none; }
.archive-section .section-title-row h2 { margin: 0; color: #172033; font-size: 15px; line-height: 1.2; letter-spacing: 0; font-weight: 900; }
.archive-toolbar { display: none; }
.archive-manage { min-height: 34px; padding: 0 13px; color: #17243a; background: rgba(255,255,255,.82); border-color: rgba(212,223,236,.9); border-radius: 999px; font-size: 12px; font-weight: 900; }
.archive-manage[hidden], .archive-batch-actions[hidden] { display: none !important; }
.archive-manage:hover { color: #17243a; background: var(--lime); border-color: var(--lime); }
.archive-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.archive-batch-actions { display: inline-flex; align-items: center; gap: 9px; color: #6b778c; font-size: 12px; font-weight: 850; }
.archive-batch-pill, .archive-batch-delete, .archive-batch-done { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid rgba(212,223,236,.9); border-radius: 999px; color: #17243a; background: rgba(255,255,255,.82); font-size: 12px; font-weight: 900; transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.archive-batch-pill:hover:not(:disabled), .archive-batch-delete:hover:not(:disabled), .archive-batch-done:hover:not(:disabled) { transform: translateY(-1px); }
.archive-batch-delete { color: #fff; background: #dc2626; border-color: #dc2626; }
.archive-batch-delete:disabled { opacity: .52; cursor: not-allowed; }
.archive-batch-done { color: #fff; background: #172033; border-color: #172033; }
.archive-batch-delete svg { width: 14px; }
.archive-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); grid-auto-rows: max-content; gap: 18px; align-items: start; align-content: start; margin-top: 22px; padding-right: 40px; }
.archive-grid.is-managing { cursor: crosshair; }
.archive-grid.is-selecting { user-select: none; cursor: crosshair; touch-action: none; }
.archive-selection-rect { position: absolute; z-index: 5; border: 1px dashed #2563eb; background: rgba(37,99,235,.1); pointer-events: none; }
.archive-card { aspect-ratio: 2 / 3; border-radius: 18px; background: #e6eaf0; box-shadow: 0 4px 10px rgba(35,48,74,.05); }
.archive-card::after { background: linear-gradient(180deg, transparent 58%, rgba(7,9,8,.48)); }
.archive-card img { object-fit: cover; }
.archive-card-check { display: none; position: absolute; top: 9px; left: 9px; z-index: 3; width: 19px; height: 19px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(17,24,39,.14); box-shadow: 0 1px 3px rgba(15,23,42,.2); cursor: pointer; pointer-events: auto; appearance: none; }
.archive-grid.is-managing .archive-card-check { display: block; }
.archive-card.is-selected .archive-card-check { border-color: var(--lime); background: var(--lime); box-shadow: none; }
.archive-card.is-selected .archive-card-check::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.archive-card-check:hover { transform: scale(1.08); }
.archive-card-check:focus-visible { outline: 0; outline-offset: 0; }
.archive-card-delete { position: absolute; top: 8px; right: 8px; z-index: 4; width: 23px; height: 23px; display: grid; place-items: center; padding: 0; color: #be123c; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 3px 10px rgba(15,23,42,.16); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease, background 160ms ease; }
.archive-card-delete svg { width: 13px; height: 13px; }
.archive-card:hover .archive-card-delete, .archive-card:focus-within .archive-card-delete { opacity: 1; pointer-events: auto; }
.archive-card-delete:hover { color: #fff; background: #dc2626; transform: scale(1.08); }
.archive-grid.is-managing .archive-card-delete { display: none; }
.archive-card-label, .archive-card-meta { display: none; }
.archive-duration { top: auto; right: 10px; bottom: 10px; font-size: 11px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.archive-card:hover { transform: none; box-shadow: 0 4px 10px rgba(35,48,74,.05); }
.archive-card:hover img { transform: none; filter: none; }

@media (max-width: 980px) {
  .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: 0; }
}

@media (max-width: 600px) {
  .archive-section { margin-top: 64px; padding-top: 22px; }
  .archive-actions { width: 100%; }
  .archive-batch-actions { flex-wrap: wrap; justify-content: flex-end; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
}

@media (max-width: 600px) {
  .custom-size-row { margin-top: 12px; }
}
.workspace-nav a.is-active { color: var(--ink) !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.workspace-nav a.is-active svg { color: var(--ink) !important; fill: currentColor; }
/* Use the matching solid artwork on hover/selection, preserving its internal cutouts. */
.workspace-nav a[data-view="ecommerce"] { --workspace-solid-icon: url("assets/icons/hugeicons/shopping-bag-03-solid-rounded.webp"); }
.workspace-nav a[data-view="image-edit"] { --workspace-solid-icon: url("assets/icons/hugeicons/image-add-02-solid-rounded.webp"); }
.workspace-nav a[data-view="batch-matting"] { --workspace-solid-icon: url("assets/icons/hugeicons/ai-background-eraser-solid-rounded.webp"); }
.workspace-nav a[data-view="canvas"] { --workspace-solid-icon: url("assets/icons/hugeicons/dashboard-square-add-solid-rounded.webp"); }
.workspace-nav a svg.workspace-nav-outline-icon { fill: none !important; stroke: currentColor; stroke-width: 2; }
.workspace-nav a .workspace-nav-solid-icon { visibility: hidden; }
.workspace-nav a.has-solid-icon:not([aria-disabled="true"]):is(:hover, .is-active) .workspace-nav-solid-icon { visibility: visible; }
.workspace-nav a.has-solid-icon:not([aria-disabled="true"]):is(:hover, .is-active) svg.workspace-nav-outline-icon path { visibility: hidden; }
.workspace-nav a[data-view="video-creation"] svg { fill: none !important; stroke: currentColor; }
.workspace-nav a[data-view="video-creation"]:is(.is-active, :hover) .workspace-video-icon-body { fill: currentColor; }
.workspace-nav a[data-view="inspiration-square"] svg { fill: none !important; }
.workspace-nav a[data-view="inspiration-square"]:is(:hover, .is-active) svg path { fill: currentColor; }
.workspace-nav a:is([data-developer-only], [data-developer-preview])[hidden] { display: none; }
.workspace-nav a[data-developer-preview] .workspace-nav-coming-soon { color: #747a82; font-size: 10px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.workspace-nav a[data-developer-preview][aria-disabled="true"] { cursor: default; }
.workspace-nav a[data-view="admin-settings"].is-active svg circle { fill: #fff; }
.workspace-nav a.is-active { color: var(--ink); background: transparent; border-color: transparent; box-shadow: none; }
.workspace-nav a.is-active svg { color: var(--ink); fill: currentColor; }
.workspace-sidebar { background: #f3f5f7; border-right: 0; }
.workspace-nav { position: absolute; top: 50%; right: 6px; left: 6px; transform: translateY(-50%); }
@media (max-height: 880px) {
  .workspace-nav { top: 100px; bottom: 16px; gap: 4px; align-content: start; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: var(--supercanv-scrollbar-width, thin); transform: none; }
  .workspace-nav a { min-height: 54px; padding: 4px 2px; }
}
.workspace-nav a:not([aria-disabled="true"]):hover, .workspace-sidebar-bottom a:hover { color: var(--ink) !important; background: transparent !important; }
.workspace-main { max-width: none; padding-right: clamp(18px, 2vw, 36px); padding-left: clamp(18px, 2vw, 36px); }
.create-stage { width: min(100%, 1500px); }
.archive-section { width: 100%; max-width: none; margin-top: clamp(280px, 32vh, 410px); }
.archive-section .section-title-row { position: relative; padding-bottom: 12px; padding-right: 40px; }
.archive-section .section-title-row::after { content: ""; position: absolute; right: 40px; bottom: 0; left: 0; height: 1px; background: rgba(210,218,231,.72); }
.archive-grid { height: min(780px, calc(100vh - 220px)); min-height: 290px; max-height: 1213px; overflow-x: hidden; overflow-y: auto; resize: vertical; scrollbar-width: var(--supercanv-scrollbar-width, thin); scrollbar-color: var(--supercanv-scrollbar-color, var(--supercanv-scrollbar-thumb, #d4d4d4) transparent); }
.archive-grid::-webkit-scrollbar { width: var(--supercanv-scrollbar-size, 5px); }
.archive-grid::-webkit-scrollbar-track { background: transparent; }
.archive-grid::-webkit-scrollbar-thumb { background: var(--supercanv-scrollbar-thumb, #d4d4d4); border: 0; border-radius: 999px; }
@media (max-width: 600px) {
  .archive-section { margin-top: 140px; }
  .archive-section .section-title-row { padding-right: 0; }
  .archive-section .section-title-row::after { right: 0; }
  .archive-grid { height: auto; min-height: 0; max-height: none; overflow: visible; resize: none; scrollbar-width: auto; }
}

/* Internal user management surface, modeled on New API's dense table patterns. */
.users-section { width: min(100%, 1480px); margin: 0 auto; padding-top: 18px; }
.users-heading { align-items: center; }
.users-add-button { display: inline-flex; align-items: center; gap: 7px; }
.users-add-button svg { width: 15px; height: 15px; }
.users-toolbar { display: flex; align-items: end; gap: 12px; margin: 32px 0 14px; }
.users-search { position: relative; flex: 1 1 320px; max-width: 430px; }
.users-search svg { width: 16px; height: 16px; position: absolute; top: 11px; left: 12px; color: #8b918e; pointer-events: none; }
.users-search input, .users-filter select { width: 100%; height: 38px; box-sizing: border-box; color: var(--ink); background: #fff; border: 1px solid rgba(17,18,15,.14); border-radius: 8px; font: 13px var(--sans); outline: 0; }
.users-search input { padding: 0 12px 0 36px; }
.users-search input:focus, .users-filter select:focus { border-color: #9ca6a0; box-shadow: 0 0 0 3px rgba(77,94,84,.1); }
.users-filter { display: grid; gap: 5px; min-width: 132px; color: #777d78; font: 10px var(--mono); }
.users-filter select { padding: 0 30px 0 10px; }
.users-custom-select { position: relative; min-width: 132px; }
.users-custom-select-trigger { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 30px 0 10px; position: relative; color: var(--ink); background: #fff; border: 1px solid rgba(17,18,15,.14); border-radius: 8px; font: 13px var(--sans); text-align: left; cursor: pointer; }
.users-custom-select-trigger::after { content: ''; width: 7px; height: 7px; position: absolute; top: 50%; right: 12px; border-right: 1.5px solid #6e766f; border-bottom: 1.5px solid #6e766f; transform: translateY(-50%) rotate(45deg); transition: transform .16s ease; }
.users-custom-select.is-open .users-custom-select-trigger { border-color: #9ca6a0; box-shadow: 0 0 0 3px rgba(77,94,84,.1); }
.users-custom-select.is-open .users-custom-select-trigger::after { top: 50%; transform: translateY(-50%) rotate(225deg); }
.users-custom-select-menu { width: 100%; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: grid; gap: 3px; box-sizing: border-box; padding: 5px; background: rgba(255,255,255,.98); border: 1px solid #d9dad8; border-radius: 10px; box-shadow: 0 12px 26px rgba(43,48,52,.14); }
.users-custom-select-menu[hidden] { display: none; }
.users-custom-select-option { min-height: 34px; padding: 6px 8px; color: #3e454d; background: transparent; border: 0; border-radius: 7px; font: 600 13px var(--sans); text-align: left; cursor: pointer; }
.users-custom-select-option:hover, .users-custom-select-option.is-selected { color: #2f353c; background: #e8ebe9; }
.users-toolbar .users-custom-select-option:hover:not(:disabled),
.users-toolbar .users-custom-select-option:focus-visible:not(:disabled),
.users-toolbar .users-custom-select-option.is-selected { color: #fff; background: #111827; }
.users-summary { margin-left: auto; padding-bottom: 10px; color: #858b86; font-size: 12px; white-space: nowrap; }
.users-message { min-height: 17px; margin: 0 0 10px; color: #6b7280; font-size: 12px; line-height: 1.45; }
.users-message.is-success { color: #16804b; font-weight: 700; }
.users-message.is-error { color: #b42318; font-weight: 700; }
.users-table-wrap { overflow-x: auto; overflow-y: hidden; background: #fff; border: 1px solid rgba(17,18,15,.1); border-radius: 10px; box-shadow: 0 12px 28px rgba(17,18,15,.045); }
.users-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.users-table th { padding: 12px 16px; color: #8a908c; background: #fafbf9; border-bottom: 1px solid rgba(17,18,15,.09); font: 10px var(--mono); font-weight: 500; text-align: left; }
.users-table td { padding: 14px 16px; color: #505751; border-bottom: 1px solid rgba(17,18,15,.07); font-size: 13px; vertical-align: middle; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table tbody tr { transition: background .18s ease; }
.users-table tbody tr:hover { background: #fbfcfa; }
.users-table th:first-child, .users-table td:first-child { width: 30%; }
.users-table th:nth-child(2), .users-table td:nth-child(2) { width: 15%; }
.users-table th:nth-child(3), .users-table td:nth-child(3) { width: 15%; }
.users-table th:nth-child(4), .users-table td:nth-child(4) { width: 12%; }
.users-table th:nth-child(5), .users-table td:nth-child(5) { width: 16%; }
.users-table th:last-child, .users-table td:last-child { width: 12%; text-align: right; }
.user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-identity > span:last-child { display: grid; gap: 3px; min-width: 0; }
.user-identity strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-identity small { overflow: hidden; color: #929893; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; color: #33453c; background: #e4ef9e; border-radius: 50%; font-size: 12px; font-weight: 800; }
.user-role, .user-status { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.user-role { border: 1px solid transparent; }
.user-role-admin { color: #315b96; background: #eaf2ff; border-color: #d7e4f8; }
.user-role-root { color: #725096; background: #f2ecf9; border-color: #e4d9ef; }
.user-role-member { color: #276a78; background: #eaf5f7; border-color: #cfe7ec; }
.user-status-active { color: #2f7250; background: #e9f6eb; }
.user-status-disabled { color: #8a7062; background: #f6eee8; }
.user-status i { width: 5px; height: 5px; display: block; border-radius: 50%; background: currentColor; }
.user-last-active { color: #858b86 !important; font-size: 12px !important; }
.user-row-actions { display: inline-flex; gap: 2px; }
.user-row-actions .icon-button { width: 30px; height: 30px; color: #8a918c; border-radius: 7px; }
.user-row-actions .icon-button:hover { color: var(--ink); background: #eef1ed; }
.user-row-actions .user-delete-action:hover { color: #aa5d54; background: #fbefed; }
.user-row-actions svg { width: 15px; height: 15px; }
.users-empty { padding: 50px 20px; color: #858b86; font-size: 13px; text-align: center; }
.users-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; color: #858b86; font-size: 12px; }
.users-pagination { display: flex; gap: 4px; }
.users-pagination .icon-button { width: 30px; height: 30px; border: 1px solid rgba(17,18,15,.12); border-radius: 7px; }
.users-pagination .icon-button:disabled { cursor: not-allowed; opacity: .38; }
.user-editor { width: min(440px, calc(100vw - 32px)); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(17,18,15,.22); }
.user-editor::backdrop { background: rgba(23,28,25,.24); backdrop-filter: blur(3px); }
.user-editor form { padding: 24px; }
.user-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
#userEditor .user-editor-header { align-items: center; }
.user-editor-header .eyebrow { margin-bottom: 8px; }
.user-editor-header h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.user-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.user-editor-fields label { display: grid; gap: 6px; color: #777d78; font: 10px var(--mono); }
.user-editor-fields label:nth-child(1), .user-editor-fields label:nth-child(2) { grid-column: span 2; }
.user-editor-fields input, .user-editor-fields select { width: 100%; height: 38px; box-sizing: border-box; padding: 0 10px; color: var(--ink); background: #fafbf9; border: 1px solid rgba(17,18,15,.14); border-radius: 7px; font: 13px var(--sans); outline: 0; }
.user-editor-fields input:focus, .user-editor-fields select:focus { border-color: #9ca6a0; box-shadow: 0 0 0 3px rgba(77,94,84,.1); }
.user-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 26px; }
.users-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.users-clear-filters { align-self: flex-end; padding: 10px 2px; border: 0; background: transparent; color: #68746d; font: 12px var(--sans); cursor: pointer; }
.users-clear-filters:hover { color: #111; text-decoration: underline; }
.users-table { min-width: 940px; }
.users-table th:first-child, .users-table td:first-child { width: 25%; }
.users-table th:nth-child(2), .users-table td:nth-child(2) { width: 13%; }
.users-table th:nth-child(3), .users-table td:nth-child(3) { width: 10%; }
.users-table th:nth-child(4), .users-table td:nth-child(4) { width: 9%; }
.users-table th:nth-child(5), .users-table td:nth-child(5), .users-table th:nth-child(6), .users-table td:nth-child(6) { width: 15%; }
.users-table th:last-child, .users-table td:last-child { width: 13%; }
.user-date { color: #707974 !important; font-size: 11px !important; line-height: 1.6; }
.user-self-label { margin-left: 5px; font-size: 10px; font-weight: 500; color: #758078; font-style: normal; }
.user-row-actions .icon-button:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.user-editor { max-height: calc(100dvh - 32px); overflow-y: auto; }
.user-editor-fields label:nth-child(-n+4) { grid-column: span 2; }
.user-editor-fields > [hidden] { display: none; }
.user-editor-fields input[readonly], .user-editor-fields input:disabled { color: #758078; background: #f1f3f0; }
.user-editor .users-custom-select-trigger:disabled { color: #758078; cursor: not-allowed; background: #f1f3f0; }
.user-editor .users-custom-select { min-width: 0; }
.user-editor #userEditorMessage { margin-top: 14px; min-height: 0; }
.user-editor #userEditorMessage:empty { display: none; }
.user-editor-header .icon-button { display: flex; align-items: center; justify-content: center; padding: 0; width: 30px; height: 30px; border-radius: 50%; }
.user-editor-header .icon-button:hover { color: #fff; background: #111; }
.user-editor-header .icon-button svg { display: block; width: 14px; height: 14px; flex: none; }
.button-quiet { color: #5c645e; background: #f1f3f0; }
.button-quiet:hover { background: #e7ebe7; }
@media (max-width: 760px) { .users-toolbar { align-items: stretch; flex-wrap: wrap; }.users-search { flex-basis: 100%; max-width: none; }.users-summary { margin-left: 0; padding-bottom: 0; align-self: center; }.users-table-wrap { overflow-x: auto; }.users-table { min-width: 940px; }.users-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; } }

/* Administrator API settings: a light, dense port of the desktop canvas
   settings surface. Keep every control on one quiet border with no focus
   shadow so it follows the web workspace form treatment. */
.admin-settings-page {
  width: min(100%, 1330px);
  max-width: 1330px;
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-inline: auto;
  padding-top: 18px;
  color: #111827;
}

.admin-settings-page .eyebrow { display: none; }

.admin-settings-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto minmax(94px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  background: #fff;
}

.admin-settings-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.admin-settings-local {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(5,150,105,.18);
  border-radius: 999px;
  color: #059669;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  justify-self: end;
}

.admin-settings-local svg { width: 15px; height: 15px; }

.admin-settings-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

[data-settings-section-panel][hidden] { display: none !important; }
.admin-settings-sections { margin: 0; padding: 5px; border-radius: 22px; }
#adminSettingsSections button { min-height: 36px; }
#adminSettingsSections::before { background: #202326; }
#adminSettingsSections button.active { color: #fff; }
#adminCutoutPanel { max-width: 900px; }
.admin-cutout-fields { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 12px; }
#adminCutoutAlibaba[hidden], #webProviderPanel[hidden] { display: none !important; }
.admin-cutout-fields [hidden] { display: none !important; }
#adminCutoutPanel .admin-settings-card-actions { flex-wrap: wrap; }
.admin-cutout-help { margin: 10px 0 0; color: #6b7280; font-size: 12px; line-height: 1.6; }
#adminCutoutMessage { flex: 1; min-width: 200px; }
@media (max-width: 760px) { .admin-settings-heading .admin-settings-sections { grid-column: 1 / -1; grid-row: 2; width: 100%; } }
@media (max-width: 600px) {
  #adminSettingsSections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  #adminSettingsSections::before { display: none; }
  #adminSettingsSections button { width: 100%; min-width: 0; padding-inline: 6px; font-size: 12px; }
  #adminSettingsSections button.active { color: #fff; background: #202326; }
}
#adminBillingPanel { min-width: 0; display: grid; gap: 14px; }
.admin-billing-intro { margin: 0 2px; color: #6b7280; font-size: 13px; line-height: 1.6; }
#adminBillingPanel > .billing-pricing-section { margin-top: 0; padding: 14px; border: 1px solid #f3f4f6; border-radius: 20px; background: #fff; }
.admin-config-summary .has-unsaved-changes { color: #9a6300; }
.web-provider-status-idle { color: #64748b; border-color: #e2e8f0; background: #f8fafc; }
.web-provider-status-pill { justify-self: start; width: max-content; }
.web-provider-configure-models { grid-column: 1 / -1; justify-self: start; }
#webProviderConfigureModels[hidden],
#webProviderCancel[hidden] { display: none; }

.admin-settings-platform-panel,
.admin-config-summary,
.admin-settings-card,
.admin-model-section,
.admin-model-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.admin-settings-platform-panel {
  align-content: start;
  gap: 9px;
}

.admin-settings-content,
.admin-runninghub-panel,
#adminPlatformDetail {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.admin-settings-content {
  width: 100%;
  max-width: 100%;
  justify-self: start;
}

.admin-settings-card[hidden],
.admin-platform-settings-panel[hidden],
.admin-runninghub-panel[hidden],
#adminPlatformDetail[hidden] { display: none !important; }

.admin-platform-settings-panel { min-width: 0; display: grid; gap: 12px; }
.admin-platform-tabs { --tab-count: 3; }
.admin-card-heading.admin-interface-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-interface-heading > div { min-width: 0; }
.admin-interface-heading button { flex-shrink: 0; }
.admin-interface-note { margin: 0; color: #6b7280; font-size: 12px; line-height: 1.6; }
.admin-interface-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 12px; line-height: 1.5; }
.admin-interface-meta dt { color: #6b7280; }
.admin-interface-meta dd { margin: 0; color: #374151; overflow-wrap: anywhere; }
.admin-settings-field > span > small { margin-left: 6px; font-size: 11px; font-weight: 400; color: #9ca3af; }
#adminInterfacePanel input, #adminInterfaceParameters, .admin-interface-example pre { font-family: Consolas, monospace; font-size: 12px; }
#adminInterfaceParameters { min-height: 88px; border-radius: 6px; }
.admin-interface-url { overflow-wrap: anywhere; color: #6b7280; line-height: 1.5; }
.admin-interface-example { min-width: 0; border-top: 1px solid #edf0f3; padding-top: 10px; }
.admin-interface-example summary { cursor: pointer; color: #374151; font-size: 12px; }
.admin-interface-example pre { max-height: 270px; overflow: auto; margin: 10px 0 0; padding: 12px; border-radius: 6px; background: #f6f7f8; color: #374151; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-interface-example p, #adminInterfaceParametersHelp { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: #6b7280; }
.admin-platform-settings-card { gap: 8px; padding-block: 12px; }
.admin-platform-settings-card > .admin-platform-tabs { padding-block: 3px; }
.admin-platform-settings-card > .admin-platform-tabs::before { top: 3px; bottom: 3px; }
.admin-platform-settings-card .admin-platform-tabs button { min-height: 28px; }
#adminBasicPanel { gap: 8px; }
#adminBasicPanel > .admin-card-heading { gap: 2px; padding-bottom: 4px; }
#adminBasicPanel > .admin-card-heading > :is(h3, p) { position: relative; top: -3px; }

.admin-settings-panel-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.admin-fixed-provider {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dce2e9;
  border-radius: 16px;
  color: #111827;
  background: #f8fafc;
  text-align: left;
}

.admin-fixed-provider:hover,
.admin-fixed-provider.is-active {
  border-color: #111827;
  color: #fff;
  background: #111827;
}

.admin-fixed-provider-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: #111827;
  font-size: 11px;
  font-weight: 900;
}

.admin-fixed-provider.is-active .admin-fixed-provider-mark,
.admin-fixed-provider:hover .admin-fixed-provider-mark {
  color: #111827;
  background: #fff;
}

.admin-fixed-provider .admin-platform-meta strong,
.admin-fixed-provider .admin-platform-meta small { color: inherit; }

.admin-platform-list-heading { display:flex; align-items:center; justify-content:space-between; }
.admin-platform-list-heading .icon-button { width:26px; height:26px; padding:5px; border:0; }
.admin-platform-list-heading svg { width:14px; height:14px; }
#adminPlatformBalancesRefresh[aria-busy="true"] svg { animation: admin-balance-spin 780ms linear infinite; }
.admin-platform-balance-status { margin: -4px 0 0; color: #6b7280; font: 400 11px/1.5 var(--sans); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { #adminPlatformBalancesRefresh[aria-busy="true"] svg { animation: none; } }
.admin-platform-count { margin-left: 5px; color: #9ca3af; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.admin-platform-search { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 34px; padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 8px; color: #6b7280; background: #f8f9fa; transition: border-color .15s ease, background .15s ease; }
.admin-platform-search:focus-within { border-color: #9ca3af; background: #fff; }
.admin-platform-search > svg { flex: none; width: 14px; height: 14px; }
.admin-platform-search input { flex: 1; width: 0; min-width: 0; padding: 0; border: 0; outline: none; color: #171717; background: transparent; font: 400 12px var(--sans); }
.admin-platform-search input::placeholder { color: #9ca3af; }
.admin-platform-search input::-webkit-search-cancel-button { display: none; }
.admin-platform-search button { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 4px; border: 0; border-radius: 50%; color: #6b7280; background: transparent; cursor: pointer; }
.admin-platform-search button:is(:hover, :focus-visible) { color: #fff; background: #171717; }
.admin-platform-search button svg { width: 14px; height: 14px; }
.admin-platform-filters { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; padding: 3px; border-radius: 999px; background: #f3f4f6; }
.admin-platform-filters button { flex: 1 1 auto; min-width: 0; min-height: 28px; padding: 5px 6px; border: 0; border-radius: 999px; color: #6b7280; background: transparent; font: 600 11px var(--sans); cursor: pointer; transition: color .15s ease, background .15s ease; }
.admin-platform-filters button:hover { color: #171717; background: #e5e7eb; }
.admin-platform-filters button[aria-pressed="true"] { color: #171717; background: var(--lime); }
.admin-platform-filters button:focus-visible { outline: 2px solid #9ca3af; outline-offset: 1px; }
.admin-platform-empty { margin: 0; padding: 24px 0; color: #9ca3af; font-size: 12px; text-align: center; }
.admin-platform-item[hidden], .admin-fixed-provider[hidden], .admin-platform-search button[hidden], .admin-platform-empty[hidden] { display: none; }
.admin-platform-name-row { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.admin-platform-name-row strong { flex:1 1 auto; min-width:0; }
.admin-provider-balance { flex:0 0 auto; min-width:0; max-width:112px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6b7280; font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.admin-provider-balance.is-stale,.admin-provider-balance.is-error { color:#a16207; }
.admin-platform-item.is-selected .admin-provider-balance,.admin-fixed-provider:hover .admin-provider-balance,.admin-fixed-provider.is-active .admin-provider-balance { color:#d1d5db; }

.admin-platform-list {
  min-width: 0;
  display: grid;
  gap: 10px;
  /* Match the desktop settings surface: the list grows with its entries.
     The workspace page owns scrolling instead of clipping this panel. */
  max-height: none;
  overflow: visible;
}

.admin-platform-list::-webkit-scrollbar { width: 6px; }
.admin-platform-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.admin-access-groups { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-access-group-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.admin-access-group { display: inline-flex; align-items: center; max-width: 100%; border-radius: 999px; color: #6b7280; background: #f3f4f6; cursor: grab; touch-action: none; transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.admin-access-group.is-pointer-dragging { position: relative; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.1); cursor: grabbing; transition: none; will-change: transform; }
.admin-access-group.is-drag-shifting { transition: transform 180ms cubic-bezier(.2,.8,.2,1); will-change: transform; }
.admin-access-group.is-selected { color: #fff; background: #171717; }
.admin-access-group-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-width: 0; min-height: 30px; padding: 5px 7px 5px 12px; border: 0; border-radius: 999px; color: inherit; background: transparent; font: 600 12px var(--sans); overflow-wrap: anywhere; }
.admin-access-group-tabs button:hover { color: #171717; background: #e9eaec; }
.admin-access-group-tabs button[aria-pressed="true"] { color: #fff; background: transparent; }
.admin-access-group-tabs button[aria-pressed="true"]:hover { background: #303030; }
.admin-access-group-tabs button:focus-visible { outline: 2px solid #9ca3af; outline-offset: 2px; }
.admin-access-group-dirty { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #c9a050; }
.admin-access-groups > .admin-settings-quiet-button { flex-shrink: 0; min-height: 30px; padding: 5px 10px; }
.admin-access-group-tabs .admin-access-group-rename { flex-shrink: 0; width: 24px; min-height: 24px; height: 24px; margin-right: 3px; padding: 5px; }
.admin-access-group-tabs .admin-access-group-rename:hover { color: #fff; background: #171717; }
.admin-access-group-tabs .is-selected .admin-access-group-rename { color: #fff; }
.admin-access-group-tabs .is-selected .admin-access-group-rename:is(:hover, :focus-visible) { background: #303030; }
.admin-access-groups svg { width: 13px; height: 13px; }
body.is-admin-access-group-dragging { user-select: none; }
@media (prefers-reduced-motion: reduce) { .admin-access-group, .admin-access-group.is-drag-shifting { transition: none; } }
.admin-access-group-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.admin-access-group-dialog-fields { display: grid; gap: 14px; padding: 18px 20px 0; }
.admin-access-group-dialog [hidden] { display: none !important; }
.admin-delete-confirm.admin-access-group-dialog footer { flex-direction: row; align-items: center; justify-content: flex-end; }
.admin-delete-confirm.admin-access-group-dialog header .icon-button { flex-shrink: 0; }

.admin-platform-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #111827;
  background: transparent;
  cursor: grab;
  transform-origin: center;
  will-change: transform;
  transition: transform 180ms ease;
}

.admin-platform-item:hover { background: #fbfcfd; }
.admin-platform-item.is-dragging { border-color: #111827; background: #f3f4f6; opacity: .92; cursor: grabbing; }
.admin-platform-item.is-pointer-dragging { position: relative; z-index: 20; isolation: isolate; border-color: #111827; background: #f3f4f6; cursor: grabbing; transition: none; }
.admin-platform-item.is-drag-shifting { pointer-events: none; transition: transform 180ms ease; }
.admin-platform-item.is-order-settling { will-change: transform; transition: transform 180ms ease; }
body.is-admin-platform-dragging { user-select: none; cursor: grabbing; }

.admin-platform-drag-handle {
  width: 22px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
}

.admin-platform-drag-handle:active { cursor: grabbing; }
.admin-platform-drag-handle svg { width: 15px; height: 15px; }

.admin-platform-select {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.admin-platform-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #2563eb;
  background: #f3f4f6;
}

.admin-platform-icon svg { width: 14px; height: 14px; }

.admin-platform-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-platform-meta strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-platform-meta small {
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-platform-delete {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #6b7280;
  background: transparent;
}

.admin-platform-delete:hover { color: #b91c1c; background: transparent; }
.admin-platform-delete svg { width: 14px; height: 14px; }

.admin-platform-item.is-selected { border-color: #171717; color: #fff; background: #171717; }
.admin-platform-item.is-selected .admin-platform-meta strong { color: #fff; }
.admin-platform-item.is-selected .admin-platform-meta small,
.admin-platform-item.is-selected .admin-platform-drag-handle,
.admin-platform-item.is-selected .admin-platform-delete { color: #d1d5db; }
.admin-platform-item.is-selected .admin-platform-icon { color: #fff; background: #333; }
.admin-platform-item.is-selected .admin-platform-delete:hover { color: #fca5a5; }

.admin-add-platform {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-add-platform:hover { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.admin-add-platform svg { width: 15px; height: 15px; }

.admin-settings-side-section {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

.admin-settings-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.admin-settings-panel-title > svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #111827;
}

.admin-settings-panel-title h3 {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.admin-settings-panel-title p,
.admin-settings-note {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.admin-settings-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-settings-field > span,
.admin-settings-field > label {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.admin-settings-side-section .admin-settings-field { gap: 5px; }
.admin-settings-side-section .admin-settings-field > span { color: #6b7280; font-size: 11px; }

.admin-settings-field input,
.admin-settings-field select,
.admin-settings-field textarea {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  outline: 0;
  color: #111827;
  background: #f8fafc;
  box-shadow: none;
  font: 12px var(--sans);
}

.admin-settings-field input::placeholder { color: #9aa3af; }
.admin-settings-field textarea { min-height: 90px; padding: 10px; line-height: 1.6; resize: vertical; }
.admin-settings-field textarea::placeholder { color: #9aa3af; }
.admin-key-status { color: #64748b; font-size: 11px; line-height: 1.5; }
.admin-key-status.is-saved { color: #047857; }
.admin-console-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-console-control .admin-settings-quiet-button { min-height: 36px; white-space: nowrap; }
.admin-console-password-control { align-items: center; gap: 0; padding-right: 4px; border: 1px solid #dbe3ee; border-radius: 16px; background: #f8fafc; }
.admin-console-password-control:focus-within { border-color: #111827; }
.admin-console-password-control input { min-width: 0; min-height: 34px; border: 0; background: transparent; }
.admin-console-password-actions { display: flex; align-items: center; }
.admin-console-password-control .admin-settings-quiet-button { min-height: 28px; padding: 0 8px; border: 0; border-radius: 10px; color: #475569; background: transparent; box-shadow: none; font-size: 11px; }
.admin-console-password-control .admin-settings-quiet-button:hover:not(:disabled) { background: #e9eef4; }
.admin-console-password-control .admin-settings-quiet-button:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
.admin-console-password-control [hidden] { display: none; }
.admin-connection-more { padding-top: 12px; border-top: 1px solid #e5e7eb; }
.admin-connection-more > summary { width: fit-content; cursor: pointer; color: #475569; font-size: 12px; font-weight: 700; line-height: 20px; }
.admin-connection-more[open] > summary { margin-bottom: 12px; }
.admin-settings-field input:focus,
.admin-settings-field select:focus,
.admin-settings-field textarea:focus { border-color: #111827; background: #f8fafc; box-shadow: none; outline: 0; }

.admin-settings-page input:-webkit-autofill,
.admin-settings-page input:-webkit-autofill:hover,
.admin-settings-page input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
  box-shadow: 0 0 0 1000px #f8fafc inset !important;
}

.admin-settings-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.admin-settings-side-actions .admin-settings-quiet-button {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-settings-quiet-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-settings-quiet-button:hover:not(:disabled) { border-color: #d9dee7; background: #f7f8fa; }
.admin-settings-quiet-button:disabled { color: #9aa3af; background: #f8fafc; cursor: not-allowed; }
.admin-settings-quiet-button svg { width: 14px; height: 14px; }

.admin-config-summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.admin-balance-summary {
  min-width: 118px;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.admin-balance-age {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.admin-balance-age.is-loading { color: #111827; }
.admin-balance-summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-balance-summary > span > span { color: #111827; }
.admin-balance-summary strong { color: #059669; font-weight: 900; }
.admin-balance-refresh { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; color: currentColor; background: transparent; }
.admin-balance-refresh:disabled { opacity: .56; cursor: wait; }
.admin-balance-refresh svg { width: 13px; height: 13px; }
.admin-balance-refresh .is-spinning { animation: admin-balance-spin 780ms linear infinite; }
@keyframes admin-balance-spin { to { transform: rotate(360deg); } }

.admin-config-summary h3 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.admin-config-name {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: text;
}

.admin-config-name input {
  width: auto;
  min-width: 3ch;
  max-width: calc(100% - 17px);
  field-sizing: content;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.admin-config-name input:hover { border-bottom-color: #cbd5e1; }
.admin-config-name input:focus-visible { outline: 0; border-bottom-color: currentColor; }
.admin-config-name svg { width: 12px; height: 12px; flex: none; color: #64748b; }
#adminSelectedGroupName { min-width: 0; overflow-wrap: anywhere; }

.admin-config-summary p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-config-actions,
.admin-model-actions,
.admin-connection-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-settings-save-button,
.admin-settings-delete-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #111827;
  border-radius: 16px;
  color: #fff;
  background: #111827;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-settings-save-button:hover:not(:disabled) { border-color: #000; background: #000; }
.admin-settings-save-button:disabled { opacity: .55; cursor: not-allowed; }

.admin-settings-delete-button {
  border-color: rgba(220,38,38,.16);
  color: #dc2626;
  background: #fff5f5;
}

.admin-settings-delete-button:hover { border-color: #dc2626; background: #fee2e2; }
.admin-settings-save-button svg, .admin-settings-delete-button svg { width: 14px; height: 14px; }

.admin-card-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-card-heading h3 {
  margin: 0;
  color: #111827;
  font-size: 14px;
}

.admin-card-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-settings-field-wide { grid-column: 1 / -1; }

.admin-settings-select-field { min-width: 0; }
.admin-settings-select-field .users-custom-select { width: 100%; min-width: 0; }
.admin-settings-select-field .users-custom-select-trigger {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border-color: #dbe3ee;
  border-radius: 16px;
  color: #111827;
  background: #f8fafc;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.admin-settings-select-field .users-custom-select-trigger::after { border-color: #64748b; }
.admin-settings-select-field .users-custom-select.is-open .users-custom-select-trigger { border-color: #111827; box-shadow: none; }
.admin-settings-select-field .users-custom-select-menu {
  top: calc(100% + 6px);
  bottom: auto;
  width: 100%;
  padding: 6px;
  border-color: #dbe3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.admin-settings-select-field .users-custom-select-option { min-height: 32px; border-radius: 9px; color: #111827; font-size: 12px; }
.admin-settings-select-field .users-custom-select-option:hover,
.admin-settings-select-field .users-custom-select-option.is-selected { color: #fff; background: #111827; }

.admin-connection-actions { margin-top: 0; }
.admin-connection-actions .admin-settings-quiet-button { min-height: 34px; }
.admin-connection-actions { flex-wrap: wrap; }
.admin-speed-result { align-self: center; color: #111827; font-size: 12px; font-weight: 600; }
.admin-speed-result.is-error { color: #b42318; }
#adminPlatformMessage:empty { display: none; }

.admin-settings-message {
  min-height: 17px;
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.admin-settings-message.is-success { color: #059669; font-weight: 800; }
.admin-settings-message.is-error { color: #dc2626; font-weight: 800; }
.admin-settings-help { color: #6b7280; font-size: 11px; }
.admin-settings-help summary { width: fit-content; cursor: pointer; font-weight: 700; }
.admin-settings-help p { margin: 5px 0 0; line-height: 1.5; }

.admin-model-section { gap: 12px; }
.admin-model-header,
.admin-model-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-model-header h3,
.admin-model-card h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
}

.admin-model-header p,
.admin-model-card p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.admin-model-groups { display: grid; gap: 10px; }
.admin-model-card { padding: 12px; }
.admin-model-card > header .admin-settings-quiet-button { min-height: 34px; }
.admin-model-collapse { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 0; border: 0; border-radius: 4px; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.admin-model-collapse:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.admin-model-collapse .admin-model-count { color: #6b7280; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.admin-model-collapse svg { flex: none; width: 14px; height: 14px; }
.admin-model-collapse[aria-expanded="false"] svg { transform: rotate(-90deg); }
.admin-model-list { display: grid; gap: 7px; }

.admin-model-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  color: #111827;
  background: #f8fafc;
}

.admin-model-row > strong {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: #111827;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-model-type-control {
  min-width: 88px;
  display: block;
  flex: 0 0 88px;
  margin: 0;
}

.admin-model-type-control > span { display: none; }
.admin-model-type-control .users-custom-select { width: 88px; min-width: 88px; }
.admin-model-type-control .users-custom-select-trigger {
  width: 88px;
  height: 30px;
  min-height: 30px;
  padding: 0 24px 0 9px;
  border-color: transparent;
  border-radius: 12px;
  color: #111827;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.admin-model-type-control .users-custom-select-trigger::after { right: 10px; }
.admin-model-type-control .users-custom-select.is-open .users-custom-select-trigger { border-color: #111827; box-shadow: none; }
.admin-model-type-control .users-custom-select-menu { top: calc(100% + 6px); bottom: auto; width: 120px; left: 50%; transform: translateX(-50%); border-color: #dbe3ee; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(15,23,42,.14); }
.admin-model-type-control .users-custom-select-option { min-height: 32px; border-radius: 9px; color: #111827; font-size: 12px; }
.admin-model-type-control .users-custom-select-option:hover,
.admin-model-type-control .users-custom-select-option.is-selected { color: #fff; background: #111827; }

.admin-model-delete {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #6b7280;
  background: transparent;
}

.admin-model-delete:hover { color: #b91c1c; background: transparent; }
.admin-model-delete svg { width: 14px; height: 14px; }

.admin-model-empty {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  color: #9aa3af;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-settings-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Native dialog is used so keyboard focus and Escape behave like the desktop
   picker while retaining the same light card treatment. */
.admin-model-picker {
  width: min(780px, calc(100vw - 64px));
  max-height: min(720px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 20px;
  color: #111827;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.22);
}

.admin-model-picker::backdrop { background: rgba(17,24,39,.18); backdrop-filter: blur(8px); }
.admin-model-picker form { max-height: inherit; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; margin: 0; }
.admin-model-picker-header,
.admin-model-picker-tools,
.admin-model-picker-footer { padding: 16px 20px; }

.admin-model-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-model-picker-header h3 { margin: 0; color: #111827; font-size: 16px; }
.admin-model-picker-header p { margin: 4px 0 0; color: #64748b; font-size: 12px; font-weight: 700; }
.admin-settings-page dialog header .icon-button { flex-shrink: 0; width: 32px; height: 32px; color: #64748b; background: #f1f5f9; border-radius: 50%; cursor: pointer; }
.admin-settings-page dialog header .icon-button:hover { color: #fff; background: #171717; }
.admin-settings-page dialog header .icon-button:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }

.admin-model-picker-tools {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-model-search {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  color: #64748b;
  background: #f8fafc;
}

.admin-model-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.admin-model-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #111827; background: transparent; box-shadow: none; font: 12px var(--sans); }
.admin-model-search input::placeholder { color: #9aa3af; }
.admin-model-search:focus-within { border-color: #718096; box-shadow: 0 0 0 2px rgba(113,128,150,.12); }

.admin-model-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-model-filter-tabs button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: #64748b;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.admin-model-filter-tabs button:hover,
.admin-model-filter-tabs button.is-active { color: #fff; background: #111827; }

.admin-model-picker-list {
  min-height: 0;
  max-height: min(440px, calc(100dvh - 260px));
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
  padding: 12px 20px 16px;
}
.admin-model-picker-list.is-dragging { user-select: none; cursor: crosshair; }
.admin-model-picker-list.is-dragging .admin-model-picker-option { cursor: crosshair; }

.admin-model-picker-option {
  min-height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #111827;
  background: #f8fafc;
  cursor: pointer;
}

.admin-model-picker-option:hover { border-color: #dbe3ee; }
.admin-model-picker-option.is-selected { border-color: #202326; background: #f8fafc; }
.admin-model-picker-option:has(input:focus-visible) { outline: 2px solid #718096; outline-offset: 2px; }
.admin-model-picker-option input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; cursor: pointer; }
.admin-model-picker-option input:checked { border-color: #202326; background: #202326; }
.admin-model-picker-option input:focus-visible { outline: 0; box-shadow: none; }
.admin-model-picker-option strong { min-width: 0; overflow: hidden; flex: 1; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-model-picker-option small { color: #64748b; font-size: 11px; }

.admin-model-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-model-picker-footer > div { display: inline-flex; align-items: center; gap: 8px; }
.admin-model-picker-footer .admin-settings-quiet-button,
.admin-model-picker-footer .admin-settings-save-button { min-height: 36px; }

.admin-delete-confirm {
  width: min(400px, calc(100vw - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 16px;
  color: #111827;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 52px rgba(15,23,42,.16);
}

.admin-delete-confirm::backdrop { background: rgba(17,24,39,.2); backdrop-filter: blur(7px); }
.admin-delete-confirm form { margin: 0; }
.admin-delete-confirm header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 0; }
.admin-delete-confirm h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.admin-delete-confirm p { margin: 4px 0 0; color: #6b7280; font-size: 13px; line-height: 1.45; }
.admin-delete-confirm-credential { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: #374151; font-size: 13px; line-height: 1.45; cursor: pointer; }
.admin-delete-confirm-credential[hidden] { display: none; }
.admin-delete-confirm-credential input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #202326; }
.admin-delete-confirm header .icon-button { flex-shrink: 0; width: 28px; height: 28px; color: #4b5563; background: transparent; border-radius: 50%; }
.admin-delete-confirm header .icon-button:hover,
.admin-delete-confirm header .icon-button:focus-visible { color: #fff; background: #171717; outline: 0; }
/* Reset the landing-page footer colors inside the shared confirmation dialog. */
.admin-delete-confirm footer { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 20px 20px; color: inherit; background: transparent; border-top: 0; }
.admin-delete-confirm footer button { min-width: 64px; }
.admin-delete-confirm footer .admin-settings-delete-button { border-color: #dc2626; color: #fff; background: #dc2626; }
.admin-delete-confirm footer .admin-settings-delete-button:hover { border-color: #b91c1c; background: #b91c1c; }

/* Important configuration actions share the approved confirmation preview. */
.important-confirm-dialog { box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow: auto; border: 1px solid #e9eae5; border-radius: 26px; color: #11120f; background: #fff; box-shadow: 0 24px 80px #11120f26; scrollbar-width: thin; }
.important-confirm-dialog::backdrop { background: #11120f2b; backdrop-filter: blur(5px); }
.important-confirm-dialog form { margin: 0; }
.important-confirm-dialog [hidden] { display: none !important; }
.important-confirm-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.important-confirm-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #dc2626; background: #fff1f0; }
.important-confirm-icon svg { width: 21px; height: 21px; }
.important-confirm-dialog .important-confirm-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: #8b8d85; background: transparent; }
.important-confirm-close svg { width: 18px; height: 18px; }
.important-confirm-dialog .important-confirm-close:hover { color: #fff; background: #11120f; }
.important-confirm-dialog h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.important-confirm-dialog .important-confirm-description { margin: 9px 0 20px; color: #787a72; font-size: 13px; line-height: 1.85; }
.important-confirm-summary { padding: 16px; border-radius: 16px; background: #f6f7f3; overflow-wrap: anywhere; }
.important-confirm-summary > span { display: block; margin-bottom: 8px; color: #7c7f74; font-size: 11px; }
.important-confirm-summary > strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.7; }
.important-confirm-summary > p { margin: 6px 0 0; color: #82857a; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.important-confirm-dialog .important-confirm-impact { margin: 16px 0 0; color: #8a574f; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.important-confirm-dialog .admin-delete-confirm-credential { margin-top: 16px; color: #676b5d; font-size: 12px; line-height: 1.8; }
.important-confirm-dialog .important-confirm-error { margin: 16px 0 0; color: #b91c1c; font-size: 12px; line-height: 1.8; }
.important-confirm-dialog .important-confirm-footer { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; margin: 26px 0 0; padding: 0; border: 0; color: inherit; background: transparent; }
.important-confirm-footer > button { min-width: 90px; min-height: 40px; padding: 9px 17px; border: 1px solid #e5e6df; border-radius: 99px; font-size: 13px; font-weight: 600; transition: color .15s, background .15s, border-color .15s; }
.important-confirm-footer > .important-confirm-cancel { color: #11120f; background: #fff; }
.important-confirm-footer > .important-confirm-cancel:hover { border-color: #eef0ee; background: #eef0ee; }
.important-confirm-footer > .important-confirm-submit { border-color: #dc2626; color: #fff; background: #dc2626; }
.important-confirm-footer > .important-confirm-submit:hover:not(:disabled) { border-color: #b91c1c; background: #b91c1c; }
.important-confirm-dialog[data-tone="change"] .important-confirm-icon { color: #11120f; background: #f1f4e9; }
.important-confirm-dialog[data-tone="change"] .important-confirm-impact { color: #777b6c; }
.important-confirm-dialog[data-tone="change"] .important-confirm-submit { border-color: #11120f; background: #11120f; }
.important-confirm-dialog[data-tone="change"] .important-confirm-submit:hover:not(:disabled) { border-color: #d8ff36; color: #11120f; background: #d8ff36; }
.important-confirm-dialog button:disabled, .important-confirm-dialog input:disabled { cursor: wait; opacity: .6; }
.important-confirm-dialog button:focus-visible { outline: 2px solid #8a8d80; outline-offset: 3px; }
@media (max-width: 480px) { .important-confirm-dialog { padding: 22px; border-radius: 24px; } }

#adminWorkflowRoot .workflow-library-detail .resource-editor-detail-actions .primary { color: #fff; background: #202326; border-color: #202326; }
#adminWorkflowRoot .workflow-library-detail .resource-editor-detail-actions .primary:hover:not(:disabled),
#adminWorkflowRoot .workflow-library-detail .resource-editor-detail-actions .primary:focus-visible { color: #202326; background: var(--lime); border-color: var(--lime); }

/* Portalled resource dialogs also need protection from the page footer styles. */
.workspace-page .delete-confirm-dialog { overflow: hidden; border-radius: 16px; }
.rename-dialog > header > button[aria-label],
.delete-confirm-dialog > header > button[aria-label] { width: 30px; height: 30px; padding: 0; border: 1px solid #dfe3e7; border-radius: 50%; background: #fff; color: #6b7280; }
.rename-dialog > header > button[aria-label]:hover,
.rename-dialog > header > button[aria-label]:focus-visible,
.delete-confirm-dialog > header > button[aria-label]:hover,
.delete-confirm-dialog > header > button[aria-label]:focus-visible { border-color: #171717; background: #171717; color: #fff; }
.rename-dialog > form > footer,
.delete-confirm-dialog > footer { flex-direction: row; align-items: center; margin: 0; color: inherit; background: transparent; border: 0; }
.rename-dialog > form > footer { padding: 0; }
.rename-dialog > form > footer > button:not(.primary):hover:not(:disabled),
.rename-dialog > form > footer > button:not(.primary):focus-visible:not(:disabled),
.delete-confirm-dialog > footer > button:not(.danger):hover:not(:disabled),
.delete-confirm-dialog > footer > button:not(.danger):focus-visible:not(:disabled) { border-color: #d1d5db; background: #eef0ee; color: var(--ink); }
.rename-dialog > form > footer .primary:hover:not(:disabled),
.rename-dialog > form > footer .primary:focus-visible:not(:disabled) { color: var(--ink); background: var(--lime); border-color: var(--lime); }

@media (max-width: 980px) {
  .admin-settings-layout { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); }
  .admin-model-picker-tools { grid-template-columns: 1fr; }
  .admin-model-filter-tabs { justify-self: start; }
}

@media (max-width: 760px) {
  .admin-settings-page { width: 100%; max-width: 100%; }
  .admin-settings-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .admin-settings-heading > .admin-settings-sections { grid-column: 1 / -1; grid-row: 2; }
  .admin-settings-local { grid-column: 2; grid-row: 1; }
  .admin-settings-layout { grid-template-columns: 1fr; }
  .admin-settings-platform-panel { order: 0; }
  .admin-settings-content { order: 1; width: 100%; max-width: 100%; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-settings-field-wide { grid-column: auto; }
  .admin-config-summary { align-items: flex-start; grid-template-columns: 1fr; }
  .admin-balance-summary { justify-items: start; text-align: left; }
  .admin-config-actions { width: 100%; justify-content: flex-end; }
  .admin-model-header, .admin-model-card > header { align-items: flex-start; flex-direction: column; }
  .admin-model-actions { width: 100%; justify-content: flex-start; }
  .admin-model-picker { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .admin-model-picker-list { max-height: calc(100dvh - 300px); }
  .admin-model-picker-header, .admin-model-picker-tools, .admin-model-picker-footer { padding-inline: 14px; }
  .admin-model-picker-footer { align-items: flex-start; flex-direction: column; }
  .admin-model-picker-footer > div { width: 100%; justify-content: flex-end; }
}


/* Shared form control treatment: a quiet field with a single dark focus ring. */
.auth-form input,
.users-search input,
.users-filter select,
.user-editor-fields input,
.user-editor-fields select,
.account-form input {
  box-shadow: none;
}
.auth-form input:focus,
.users-search input:focus,
.users-filter select:focus,
.user-editor-fields input:focus,
.user-editor-fields select:focus,
.account-form input:focus {
  border-color: #11120f;
  box-shadow: none;
  outline: 0;
}
.auth-form input.has-value { background-color: #fafbf9 !important; }
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background-color: #fafbf9 !important;
}
.users-custom-select-trigger,
.users-custom-select.is-open .users-custom-select-trigger { box-shadow: none; }
.users-custom-select.is-open .users-custom-select-trigger { border-color: #11120f; }
.user-editor-fields .users-custom-select { width: 100%; min-width: 0; }
.user-editor-fields .users-custom-select-trigger { background: #fafbf9; border-color: rgba(17,18,15,.14); }
.user-editor-fields .users-custom-select.is-open .users-custom-select-trigger { border-color: #11120f; }

/* Authentication gate and role-aware workspace chrome. */
.auth-gate { min-height: 100vh; position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 560px) minmax(360px, 450px); justify-content: center; gap: clamp(180px, 21vw, 480px); align-items: center; padding: clamp(28px, 5vw, 72px); color: #fff; background: #151914; }
.auth-gate[hidden] { display: none; }
.auth-shell { max-width: 560px; transform: translateY(clamp(48px, 7vh, 80px)); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(68px, 13vh, 150px); font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.auth-brand .brand-glyph { width: 34px; height: 34px; font-size: 23px; }
.auth-brand > span:last-child { margin-left: 8px; color: rgba(255,255,255,.42); font: 10px var(--mono); letter-spacing: .12em; }
.auth-copy .eyebrow { color: rgba(255,255,255,.5); }
.auth-copy h1 { max-width: 520px; margin: 0 0 22px; color: #fff; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.07em; }
.auth-copy > p:not(.eyebrow) { max-width: 420px; margin: 0; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.6; }
.auth-note { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(52px, 10vh, 110px); color: rgba(255,255,255,.48); font-size: 11px; }
.auth-note svg { width: 15px; height: 15px; color: var(--lime); }
.auth-card { width: 100%; max-width: 450px; padding: 28px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.5); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.auth-tabs { display: flex; gap: 5px; margin-bottom: 30px; padding-bottom: 12px; border-bottom: 1px solid rgba(17,18,15,.1); }
.auth-tab { padding: 8px 12px; color: #8a908a; background: transparent; border: 0; border-radius: 7px; font-size: 13px; font-weight: 700; }
.auth-tab:hover { color: var(--ink); background: #f0f2ed; }
.auth-tab.is-active { color: var(--ink); background: var(--lime); }
.auth-form-heading { margin-bottom: 24px; }
.auth-form-heading .eyebrow { margin-bottom: 8px; }
.auth-form-heading h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.05em; }
.auth-form-heading p:last-child { margin: 0; color: #7e857f; font-size: 13px; }
.auth-form { display: grid; gap: 14px; }
.auth-form > label { display: grid; gap: 6px; color: #69716b; font: 10px var(--mono); }
.auth-form > label[hidden] { display: none !important; }
.auth-form .auth-confirm-field, .auth-password-group { display: grid; gap: 6px; color: #69716b; font: 10px var(--mono); }
.auth-form .auth-confirm-field[hidden] { display: none !important; }
.auth-password-field { position: relative; min-width: 0; }
.auth-form .auth-password-field input { padding-right: 46px; }
.auth-password-field input::-ms-reveal, .auth-password-field input::-ms-clear { display: none; }
.auth-password-toggle { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: #69716b; background: transparent; cursor: pointer; }
.auth-password-toggle:hover { color: #11120f; background: #e9ebe7; }
.auth-password-toggle:focus-visible { outline: 2px solid #11120f; outline-offset: 1px; }
.auth-password-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.auth-password-toggle[aria-pressed="false"] .password-eye-slash { display: none; }
.auth-form input { width: 100%; height: 42px; box-sizing: border-box; padding: 0 12px; color: var(--ink); background: #fafbf9; border: 1px solid rgba(17,18,15,.16); border-radius: 8px; outline: 0; font: 14px var(--sans); transition: background-color .18s ease, border-color .18s ease; }
.auth-form input.has-value { background-color: #e8f0fe !important; }
.auth-form input:focus { border-color: #11120f; box-shadow: none; }
.auth-form input:-webkit-autofill, .auth-form input:-webkit-autofill:hover, .auth-form input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #e8f0fe inset; transition: background-color 9999s ease-out; }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; border: 0; appearance: none; }
.auth-submit:hover { box-shadow: none; }
.auth-submit svg { width: 16px; height: 16px; }
.auth-submit:disabled { cursor: wait; opacity: .6; }
.auth-status { min-height: 18px; margin: 0; color: #a85e54; font-size: 12px; line-height: 1.5; }
.auth-status.is-success { color: #2d7652; }
.auth-recovery-link { justify-self: end; margin: 10px 0 0; padding: 0; color: #727a73; background: transparent; border: 0; font-size: 12px; cursor: pointer; }
.auth-recovery-link:hover { color: var(--ink); text-decoration: underline; }
.auth-recovery-panel { display: grid; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(17,18,15,.1); }
.auth-recovery-panel[hidden] { display: none !important; }
.auth-recovery-heading { display: grid; gap: 4px; }
.auth-recovery-heading strong { color: var(--ink); font-size: 14px; }
.auth-recovery-heading span { color: #8a928a; font-size: 11px; line-height: 1.4; }
.auth-recovery-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.auth-recovery-actions button { min-height: 36px; }
.auth-gate { overflow-y: auto; }
.auth-form[hidden], .auth-email-code-field[hidden], .security-field[hidden] { display: none !important; }
@media (min-width: 821px) { .auth-card { transform: translateY(calc(clamp(72px, 8vh, 104px) + clamp(48px, 7vh, 80px))); } }
.email-code-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.email-code-row input { flex: 1; width: 0; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.email-code-row .email-code-send { flex: 0 0 auto; min-height: 42px; padding: 0 12px; color: var(--ink); border: 1px solid rgba(17,18,15,.14); border-radius: 9px; background: #f5f5f3; font-size: 12px; white-space: nowrap; }
.email-code-row .email-code-send:hover:not(:disabled) { color: #fff; background: #171916; border-color: #171916; }
.email-code-row .email-code-send:disabled { cursor: not-allowed; opacity: .55; }
.auth-email-code-field label { display: grid; gap: 6px; color: #69716b; font: 10px var(--mono); }
.auth-recovery-panel .auth-status { margin: 0; }
.workspace-nav-divider { display: grid; gap: 5px; margin: 12px 3px 0; padding: 13px 0 4px; border-top: 1px solid rgba(17,18,15,.1); color: #a0a59d; font: 9px var(--mono); text-align: center; }
.workspace-account-menu { position: relative; width: 100%; min-width: 0; margin-top: 8px; }
.workspace-account { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.workspace-account:hover, .workspace-account[aria-expanded="true"] { background: transparent; transform: none; }
.workspace-account-avatar { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #11120f; border-radius: 50%; font-size: 11px; font-weight: 800; box-shadow: none; }
.workspace-account-name, .workspace-account-chevron { display: none; }
.workspace-account-popover { width: 214px; position: absolute; left: calc(100% + 10px); bottom: calc(100% + 9px); z-index: 40; display: grid; gap: 3px; padding: 8px; color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid rgba(17,18,15,.12); border-radius: 10px; box-shadow: 0 16px 34px rgba(17,18,15,.16); transform-origin: 8% 100%; animation: account-menu-in .16s ease-out; }
.workspace-account-popover[hidden] { display: none; }
.workspace-account-menu-heading { display: flex; align-items: center; gap: 9px; padding: 7px 8px 10px; margin-bottom: 3px; border-bottom: 1px solid rgba(17,18,15,.08); }
.workspace-account-menu-avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #344238; background: var(--lime); border-radius: 50%; font-size: 11px; font-weight: 800; }
.workspace-account-menu-heading div { display: grid; gap: 2px; min-width: 0; }
.workspace-account-menu-heading strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account-menu-heading small { color: #858b86; font-size: 10px; }
.workspace-account-popover a, .workspace-account-popover > button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 0 8px; color: #59615c; background: transparent; border: 0; border-radius: 7px; font: 11px var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: color .16s ease, background .16s ease; }
.workspace-account-popover a:hover, .workspace-account-popover > button:hover { color: var(--ink); background: #eef1ed; }
.workspace-account-popover > button:last-child { margin-top: 3px; color: #9b5f58; border-top: 0; border-radius: 7px; box-shadow: none; }
.workspace-account-popover > button:last-child:hover { color: #8a3f37; background: #fff1ef; }
.workspace-account-popover svg { width: 15px; height: 15px; flex: 0 0 auto; }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.account-view { width: min(100%, 1080px); margin: 120px auto 0; }
.account-form { display: grid; width: min(100%, 560px); gap: 14px; padding: 24px; border: 1px solid rgba(17,18,15,.1); border-radius: 12px; background: rgba(255,255,255,.72); }
.account-form label { display: grid; gap: 6px; color: #69716d; font-size: 12px; font-weight: 700; }
.account-form input { height: 40px; padding: 0 11px; border: 1px solid #d9dedb; border-radius: 7px; background: #fff; color: var(--ink); font: 14px var(--sans); }
.account-form input[readonly] { color: #8a918d; background: #f3f5f3; }
.account-status { min-height: 18px; margin: 0; color: #68716c; font-size: 12px; }
.account-status.is-success { color: #3c7b4a; }
.usage-summary { display: grid; grid-template-columns: repeat(3, minmax(140px, 220px)); gap: 12px; margin: 24px 0; }
.usage-summary article { display: grid; gap: 8px; padding: 20px; border: 1px solid rgba(17,18,15,.1); border-radius: 10px; background: rgba(255,255,255,.72); }
.usage-summary span { color: #77807a; font-size: 12px; }
.usage-summary strong { font-size: 28px; }
@media (max-width: 700px) { .account-view { margin-top: 60px; }.usage-summary { grid-template-columns: 1fr; } }
.account-view { width: min(100% - 48px, 1080px); margin: 72px auto 0; }
.account-profile-card, .account-settings-card, .account-security-card { border: 1px solid rgba(17,18,15,.1); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 10px 28px rgba(17,18,15,.05); }
.account-profile-heading { display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.account-profile-avatar { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #000; border-radius: 50%; font-size: 22px; font-weight: 800; }
.account-profile-heading h2 { margin: 0 0 6px; font-size: 24px; }
.account-profile-heading p { margin: 7px 0 0; color: #7a817c; font-size: 12px; }
.account-profile-meta { display: flex; gap: 10px; color: #68716c; font-size: 12px; }
.membership-view, .usage-view { width: min(100% - 48px, 1180px); margin: 24px auto 0; }
.membership-page-heading, .pricing-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.membership-page-heading h2, .pricing-page-heading h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.06em; }
.membership-page-heading .section-subtitle, .pricing-page-heading .section-subtitle { margin: 0; color: #747d76; font-size: 13px; }
.membership-page-actions { display: flex; align-items: center; gap: 14px; }
.membership-page-actions .button { min-height: 38px; }
.membership-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.membership-overview article { display: grid; gap: 8px; min-height: 112px; padding: 18px 20px; border: 1px solid rgba(17,18,15,.1); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(17,18,15,.04); }
.membership-overview span, .membership-overview small { color: #77807a; font-size: 11px; }
.membership-overview strong { color: var(--ink); font-size: 26px; letter-spacing: -.04em; }
.membership-usage-card { margin-bottom: 16px; padding: 20px; border: 1px solid rgba(17,18,15,.1); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(17,18,15,.04); }
.membership-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.membership-card-heading h3 { margin: 0 0 5px; font-size: 17px; }
.membership-card-heading p { margin: 0; color: #7b837d; font-size: 11px; }
.membership-card-heading .button { min-height: 34px; }
.membership-usage-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 12px; border-radius: 10px; background: #f5f7f4; }
.membership-usage-toolbar label { display: grid; gap: 6px; min-width: 140px; color: #737c75; font-size: 11px; }
.membership-usage-toolbar select { height: 34px; padding: 0 9px; color: #343a35; background: #fff; border: 1px solid #dfe4df; border-radius: 8px; font: inherit; }
.membership-usage-toolbar .users-custom-select { width: 100%; min-width: 0; }
.membership-usage-toolbar .users-custom-select-trigger { height: 34px; padding: 0 30px 0 9px; color: #343a35; background: #fff; border-color: #dfe4df; border-radius: 8px; font: inherit; }
:is(.membership-usage-toolbar, .finance-filters, .adjustment-filter) .users-custom-select-trigger::after { width: 16px; height: 16px; right: 7px; border: 0; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a837b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5.5 5 5 5-5'/%3E%3C/svg%3E"); transform: translateY(-50%); pointer-events: none; }
:is(.membership-usage-toolbar, .finance-filters, .adjustment-filter) .users-custom-select.is-open .users-custom-select-trigger::after { transform: translateY(-50%) rotate(180deg); }
.membership-usage-toolbar .users-custom-select.is-open .users-custom-select-trigger { border-color: #11120f; box-shadow: none; }
.membership-usage-toolbar .users-custom-select-menu { top: calc(100% + 5px); border-color: #dfe4df; border-radius: 10px; box-shadow: 0 14px 28px rgba(17,18,15,.12); }
.membership-usage-toolbar .users-custom-select-option { min-height: 32px; color: #4d564e; border-radius: 7px; font: inherit; }
.membership-usage-toolbar .users-custom-select-option:hover,
.membership-usage-toolbar .users-custom-select-option.is-selected { color: #fff; background: #111827; }
.membership-view > .account-profile-card { margin-bottom: 18px; }
.membership-view > .account-settings-grid { margin-bottom: 16px; }
.membership-usage-status { min-height: 18px; margin: 12px 0 0; color: #7b837d; font-size: 11px; }
.membership-overview-status { margin: -4px 0 16px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.membership-usage-table-wrap { overflow-x: auto; }
.membership-usage-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 11px; }
.membership-usage-table th { padding: 11px 10px; color: #89918b; border-bottom: 1px solid #e7ebe6; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
.membership-usage-table td { padding: 13px 10px; color: #4d564e; border-bottom: 1px solid #eef1ed; white-space: nowrap; }
.membership-usage-table tbody tr:last-child td { border-bottom: 0; }
.membership-type-pill, .membership-status-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10px; }
.membership-type-image { color: #3569a8; background: #edf4ff; }
.membership-type-video { color: #885b2c; background: #fff4e6; }
.membership-type-ecommerce { color: #3e7354; background: #edf8f0; }
.membership-status-success { color: #34704a; background: #edf8f0; }
.membership-status-running { color: #946b2e; background: #fff7e6; }
.membership-status-failed { color: #9a4f49; background: #fff0ef; }
.membership-credit-value { color: #202820 !important; font-weight: 700; }
.membership-usage-empty { padding: 34px 16px; color: #8a938c; text-align: center; }
.pricing-view { width: min(100% - 48px, 1280px); margin: 12px auto 0; padding-bottom: 36px; }
.pricing-view .pricing-page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; text-align: left; }
.pricing-page-heading .eyebrow { display: none; }
.pricing-view .pricing-page-heading h2 { margin: 0 0 4px; font-size: 28px; line-height: 1.3; letter-spacing: -.045em; }
.pricing-view .pricing-page-heading .section-subtitle { color: #777d77; font-size: 12px; line-height: 1.5; }
.pricing-preview-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; color: #737373; border: 1px solid #e5e5e5; border-radius: 999px; background: #fafafa; font-size: 10px; }
.pricing-preview-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #858585; }
.pricing-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pricing-tabs { grid-column: 2; display: inline-flex; padding: 5px; border-radius: 999px; background: #e8ebe7; }
.pricing-tabs button { min-width: 118px; min-height: 36px; padding: 0 23px; color: #737971; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.pricing-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); box-shadow: none; }
.pricing-back-link { justify-self: end; display: inline-flex; align-items: center; gap: 4px; color: #626a62; font-size: 11px; }
.pricing-back-link svg { width: 14px; height: 14px; }
.pricing-tab-description { margin: 8px 0 10px; color: #727970; font-size: 12px; line-height: 1.6; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 42px 16px; padding-top: 24px; }
.pricing-grid.is-membership { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pricing-card { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid #dfe3dc; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(17,18,15,.025); }
.pricing-card.is-featured { border-color: var(--lime); background: #fff; box-shadow: 0 8px 24px rgba(17,18,15,.07); }
.pricing-card-banner { position: absolute; bottom: calc(100% - 10px); left: 0; right: 0; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 8px 10px; border-radius: 11px 11px 0 0; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1; z-index: -1; }
.pricing-card { isolation: isolate; }
.pricing-card-main { position: relative; display: flex; flex: 1; flex-direction: column; padding: 22px 23px 18px; border-bottom: 1px solid #ecefe6; border-radius: 17px 17px 0 0; background: #fff; }
.pricing-card.is-featured .pricing-card-main { background: radial-gradient(ellipse at 50% 0%, rgba(216,255,54,.24) 0%, rgba(216,255,54,.07) 42%, rgba(216,255,54,0) 75%), #fff; }
.pricing-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.pricing-card-description { margin: 0; color: #666; font-size: 12px; line-height: 1.6; }
.pricing-card-price { display: flex; align-items: baseline; gap: 3px; margin: 17px 0 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pricing-card-price > span { font-size: 20px; font-weight: 600; }
.pricing-card-price strong { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.pricing-card-price small { margin-left: 5px; color: #848b7e; font-size: 12px; }
.pricing-card-unit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 14px; color: #666; font-size: 11px; line-height: 1.6; }
.pricing-card-discount { color: #414141; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pricing-card-allowance { display: grid; grid-template-rows: auto minmax(18px, auto) auto auto; row-gap: 4px; padding: 12px 0 14px; border-top: 1px solid #ecefe6; }
.pricing-card-credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin: 0; color: #666; font-size: 12px; }
.pricing-card-credit strong { color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pricing-credit-breakdown { grid-row: 2; margin: 0; color: #666; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pricing-max-images { display: flex; grid-row: 3; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin: 0; color: #7d8575; font-size: 11px; line-height: 1.8; }
.pricing-max-images > span { color: #727d67; }
.pricing-max-images strong { margin: 0; color: inherit; font-size: inherit; font-weight: 500; line-height: inherit; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-max-videos { display: grid; grid-row: 4; gap: 1px; margin: 0; color: #666; font-size: 11px; line-height: 1.6; }
.pricing-max-videos strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.pricing-max-videos small { font-size: 11px; }
.pricing-max-caption { margin: 0; color: #858f79; font-size: 10px; line-height: 1.6; }
.pricing-resolution-note { margin: 5px 0 0; color: #58664b; font-size: 11px; line-height: 1.6; }
.pricing-card-use-case { padding: 18px 23px 0; }
.pricing-card-use-case > span { color: #8a9281; font-size: 10px; }
.pricing-card-use-case > p { margin: 6px 0 0; color: #444f3b; font-size: 12px; font-weight: 500; line-height: 1.6; }
.pricing-card .pricing-card-benefits { display: grid; gap: 9px; margin: 0; padding: 15px 23px 14px; color: #68705f; font-size: 12px; list-style: none; }
.pricing-card-benefits li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.pricing-card-benefits li > svg { flex: 0 0 auto; width: 14px; height: 18px; color: #879375; }
.pricing-card-benefits li > span > span { white-space: nowrap; }
.pricing-card-validity { margin: 0; padding: 0 23px 18px; color: #929986; font-size: 10px; line-height: 1.6; }
@media (max-width: 800px) {
  .pricing-card-use-case, .pricing-card .pricing-card-benefits, .pricing-card-validity { padding-inline: 18px; }
}
.pricing-card-action { display: grid; gap: 8px; margin-top: auto; text-align: center; }
.pricing-card-action .button, .pricing-preview-content > .button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 43px; padding: 0 10px; border: 1px solid #dedede; border-radius: 999px; box-shadow: none; transform: none; font-size: 12px; }
.pricing-card-action .button-quiet { color: #414141; background: #fff; }
.pricing-card-action .button-quiet:hover,
.pricing-card-action .button-quiet:focus-visible { color: #fff; border-color: var(--ink); background: var(--ink); }
.pricing-card-action .button-lime { color: #fff; border-color: var(--ink); background: var(--ink); font-weight: 600; }
.pricing-card-action .button-lime:hover,
.pricing-card-action .button-lime:focus-visible { color: var(--ink); border-color: var(--lime); background: var(--lime); box-shadow: none; transform: none; }
.pricing-card-action .button svg { width: 14px; height: 14px; }
.pricing-card-action > small { color: #666; font-size: 11px; }
.pricing-capacity-note { margin: 16px 0 0; color: #7d7d7d; font-size: 11px; line-height: 1.8; text-align: center; }
.pricing-exchange-note { margin: 14px 0 26px; color: #666; font-size: 11px; line-height: 1.8; text-align: center; }
.pricing-exchange-note strong { color: #414141; font-weight: 600; white-space: nowrap; }
.pricing-benefits-section { margin: 26px 0 24px; }
.pricing-benefits-section h3 { margin: 0 0 12px; color: var(--ink); font-size: 23px; font-weight: 600; }
.pricing-benefits-scroll { overflow: auto; border: 1px solid #e5e5e5; border-radius: 15px; background: #fff; }
.pricing-benefits-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.pricing-benefits-table th, .pricing-benefits-table td { padding: 12px 14px; border-bottom: 1px solid #ededed; color: #626262; text-align: center; font-weight: 400; line-height: 1.5; }
.pricing-benefits-table thead th { color: #3c3c3c; background: #f5f5f5; font-weight: 600; }
.pricing-benefits-table th:first-child { width: 23%; text-align: left; }
.pricing-benefits-table tbody th { color: #414141; background: #fff; font-weight: 500; }
.pricing-benefits-table th small { display: block; margin-top: 5px; color: #858585; font-size: 10px; font-weight: 400; }
.pricing-benefits-table .is-featured { color: #333; background: #f3f3f3; }
.pricing-benefits-table tr:last-child th, .pricing-benefits-table tr:last-child td { border-bottom: 0; }
.pricing-details-note { margin: 12px 0 0; color: #858585; font-size: 10px; line-height: 1.8; }
.pricing-image-usage { padding: 22px 24px 17px; border: 1px solid #e1e5db; border-radius: 16px; background: rgba(255,255,255,.7); }
.pricing-usage-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.pricing-usage-heading h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.pricing-usage-heading p { margin: 0; color: #8a9182; font-size: 10px; }
.pricing-usage-heading > span { color: #8a927d; font-size: 10px; white-space: nowrap; }
.pricing-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pricing-image-grid > article { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid #e9ece3; border-radius: 11px; background: #fff; }
.pricing-resolution-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: #f5f7ef; color: #6d795b; }
.pricing-resolution-icon > svg { width: 17px; height: 17px; stroke-width: 1.5; }
.pricing-image-grid h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.pricing-image-grid h4 > span { margin-left: 4px; color: #7f8875; font-size: 10px; font-weight: 400; }
.pricing-image-grid p { margin: 0; color: #8c9482; font-size: 10px; }
.pricing-image-grid p strong { color: #4e5b40; font-size: 13px; font-weight: 600; }
.pricing-image-value { margin-left: auto; color: #8a9380; font-size: 10px; white-space: nowrap; }
.pricing-usage-footnote { margin: 13px 0 0; color: #949b8a; font-size: 10px; line-height: 1.6; }
.pricing-faq { display: grid; gap: 0; margin-top: 24px; }
.pricing-faq details { padding: 15px 2px; border-bottom: 1px solid #e5e5e5; }
.pricing-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #626262; font-size: 12px; list-style: none; cursor: pointer; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary svg { flex: 0 0 auto; width: 14px; height: 14px; color: #858585; }
.pricing-faq details[open] summary svg { transform: rotate(45deg); }
.pricing-faq details p { max-width: 860px; margin: 11px 0 0; color: #858585; font-size: 11px; line-height: 1.9; }
.pricing-footnote { margin: 23px 0 0; color: #858585; font-size: 10px; line-height: 1.7; text-align: center; }
.pricing-preview-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; color: var(--ink); border: 1px solid #e3e7dc; border-radius: 21px; background: #fff; box-shadow: 0 24px 90px rgba(17,18,15,.2); overflow: hidden; }
.pricing-preview-dialog::backdrop { background: rgba(26,32,22,.35); backdrop-filter: blur(4px); }
.pricing-preview-content { position: relative; max-height: calc(100dvh - 42px); padding: 23px; border: solid transparent; border-width: 8px 4px 8px 8px; overflow: auto; overscroll-behavior: contain; }
.pricing-preview-content::-webkit-scrollbar-track { margin-block: clamp(20px, 6dvh, 64px); }
.pricing-preview-close { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #858c7e; border: 0; border-radius: 50%; background: #f3f5ef; }
.pricing-preview-close:hover { color: #fff; background: var(--ink); }
.pricing-preview-close svg { width: 14px; height: 14px; }
.pricing-dialog-eyebrow { color: #929b84; font-size: 10px; }
.pricing-preview-content h3 { margin: 16px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.pricing-preview-description { margin: 0; color: #8a9480; font-size: 12px; line-height: 1.6; }
.pricing-preview-details { display: grid; gap: 16px; margin: 27px 0 24px; }
.pricing-preview-details > div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.pricing-preview-details dt { color: #929b85; }
.pricing-preview-details dd { margin: 0; color: #4a563d; text-align: right; }
.pricing-preview-usage { padding: 12px 0; border-top: 1px solid #ecefe6; font-size: 12px; }
.pricing-preview-usage summary { cursor: pointer; font-weight: 600; }
.pricing-preview-usage .pricing-preview-details { margin: 12px 0 0; gap: 10px; }
.pricing-preview-usage .pricing-preview-details > div { gap: 8px; line-height: 1.6; }
.pricing-preview-usage dd { flex-shrink: 0; max-width: 50%; }
.pricing-preview-video-details dd { flex: 0 1 auto; max-width: none; }
.pricing-preview-video-details dd > span { white-space: nowrap; }
.pricing-preview-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; padding-top: 19px; border-top: 1px solid #edf0e5; font-size: 12px; }
.pricing-preview-total strong { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.pricing-preview-content > .button:disabled { color: #9ca48f; border-color: #e7eadf; background: #eff2e8; cursor: not-allowed; opacity: 1; }
.pricing-preview-footnote { margin: 12px 0 0; color: #a0a793; font-size: 10px; line-height: 1.8; text-align: center; }
@media (max-width: 1390px) { .pricing-grid.is-membership { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pricing-grid, .pricing-grid.is-membership { grid-template-columns: repeat(2, minmax(0, 1fr)); }.pricing-image-value { display: none; } }
@media (max-width: 800px) { .membership-page-heading { align-items: flex-start; flex-direction: column; }.membership-page-actions { flex-wrap: wrap; }.membership-overview { grid-template-columns: 1fr; }.membership-view, .usage-view { width: min(100% - 32px, 1180px); margin-top: 36px; }.pricing-view { width: calc(100% - 32px); margin-top: 30px; }.pricing-card-main { padding: 22px 18px 18px; }.pricing-back-link { font-size: 10px; }.pricing-tabs button { min-width: 100px; padding: 0 15px; }.pricing-image-usage { padding: 19px; }.pricing-image-grid { gap: 8px; }.pricing-image-grid > article { justify-content: center; padding: 12px 8px; }.pricing-resolution-icon { display: none; } }
@media (max-width: 560px) { .pricing-benefits-section h3 { font-size: 20px; }.pricing-benefits-table { min-width: 544px; }.pricing-benefits-table.is-credits { min-width: 432px; }.pricing-benefits-table th, .pricing-benefits-table td { padding: 10px 8px; }.pricing-benefits-table th:first-child { position: sticky; left: 0; z-index: 1; width: 96px; background: #fafafa; }.pricing-grid, .pricing-grid.is-membership { grid-template-columns: 1fr; }.pricing-toolbar { display: flex; flex-direction: column; gap: 15px; }.pricing-back-link { align-self: flex-end; }.pricing-tab-description { margin-top: 12px; }.pricing-card-price { margin: 21px 0 10px; }.pricing-card h3 { font-size: 20px; }.pricing-usage-heading { align-items: flex-start; flex-direction: column; gap: 8px; }.pricing-usage-heading > span { font-size: 9px; }.pricing-image-grid { grid-template-columns: 1fr; }.pricing-image-grid > article { justify-content: flex-start; gap: 10px; padding: 12px; }.pricing-resolution-icon { display: grid; width: 30px; height: 30px; }.pricing-image-grid h4 > span { display: inline; margin: 0 0 0 3px; }.pricing-preview-content { padding: 19px 15px; } }
@media (max-width: 350px) {
  .pricing-tabs { align-self: stretch; }
  .pricing-tabs button { flex: 1; min-width: 0; padding-inline: 6px; }
  .pricing-preview-content { padding-inline: 11px; }
  .pricing-preview-usage .pricing-preview-video-details > div { gap: 5px; font-size: 11px; }
}
.account-profile-meta span + span { color: #356f9b; }
.account-profile-heading .view-link { margin-left: auto; align-self: flex-start; }
.account-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(17,18,15,.08); }
.account-stat-grid article { display: grid; gap: 6px; padding: 18px 24px; }
.account-stat-grid article + article { border-left: 1px solid rgba(17,18,15,.08); }
.account-stat-grid span, .account-stat-grid small { color: #7a817c; font-size: 11px; }
.account-stat-grid strong { font-size: 24px; }
.account-settings-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.account-settings-card, .account-security-card { padding: 22px; }
.account-settings-card { width: 100%; min-width: 0; }
.account-card-heading h3 { margin: 0; font-size: 18px; }
.account-card-heading p { margin: 4px 0 18px; color: #7a817c; font-size: 12px; }
.account-form-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 3px; border-radius: 9px; background: #f1f3f1; }
.account-form-tabs button { flex: 1; height: 32px; border: 0; border-radius: 7px; color: #7a817c; background: transparent; font-size: 12px; cursor: pointer; }
.account-form-tabs button.is-active { color: #fff; background: #111827; box-shadow: none; }
.account-action-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 10px 0; border: 0; border-top: 1px solid rgba(17,18,15,.08); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.account-action-row span { display: grid; gap: 4px; }
.account-action-row strong { font-size: 13px; }
.account-action-row small { color: #7a817c; font-size: 11px; }
.account-action-row svg { width: 16px; color: #8a918d; }
.account-tab-panel { display: grid; gap: 12px; }
.account-tab-panel[hidden] { display: none; }
.account-form .account-toggle-row { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(17,18,15,.08); }
.account-toggle-row span { display: grid; gap: 4px; }
.account-toggle-row strong { font-size: 13px; }
.account-toggle-row small, .security-help { margin: 0; color: #7a817c; font-size: 11px; line-height: 1.45; }
.account-toggle-row input { appearance: none; flex: 0 0 38px; width: 38px; height: 22px; margin: 0; border: 1px solid #d6dad7; border-radius: 20px; background: #e7eae7; cursor: pointer; position: relative; transition: background .15s; }
.account-toggle-row input::after { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: white; border-radius: 50%; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.account-toggle-row input:checked { background: #11120f; border-color: #11120f; }
.account-toggle-row input:checked::after { transform: translateX(16px); }
.account-toggle-row input:focus-visible { outline: 2px solid #11120f; outline-offset: 3px; }
.account-toggle-row > span { flex: 1; }
.account-tab-panel > label:not(.account-toggle-row), .security-field { display: grid; gap: 8px; color: #5e6761; font-size: 12px; font-weight: 700; line-height: 1.5; }
.account-tab-panel select, .security-field input { width: 100%; height: 38px; box-sizing: border-box; padding: 0 10px; color: var(--ink); background: #fafbf9; border: 1px solid rgba(17,18,15,.14); border-radius: 7px; font: 13px var(--sans); outline: 0; }
.account-tab-panel select:focus, .security-field input:focus { border-color: #11120f; box-shadow: none; }
.account-tab-panel .users-custom-select { width: 100%; min-width: 0; }
.account-tab-panel .users-custom-select-option:not(.is-selected):hover,
.account-tab-panel .users-custom-select-option:not(.is-selected):focus-visible { color: #11120f; background: #fff; box-shadow: inset 0 0 0 1px #11120f; outline: 0; }
.account-tab-panel .users-custom-select-option.is-selected { color: #fff; background: #11120f; box-shadow: none; outline: 0; }
.account-tab-panel .users-custom-select-trigger:focus-visible { border-color: #11120f; box-shadow: none; outline: 0; }
.account-tab-panel .users-custom-select.is-open .users-custom-select-trigger { border-color: #11120f; box-shadow: none; }
.account-security-dialog { width: min(92vw, 500px); padding: 0; color: var(--ink); background: #fff; border: 1px solid rgba(17,18,15,.12); border-radius: 16px; box-shadow: none; }
.account-security-dialog::backdrop { background: rgba(17,18,15,.34); }
.account-security-dialog form { display: grid; gap: 16px; padding: 22px; }
.account-security-dialog #accountSecurityContent { display: grid; gap: 16px; min-width: 0; }
.account-security-dialog header, .account-security-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-security-dialog header h3 { margin: 3px 0 0; font-size: 18px; }
.account-security-dialog footer { justify-content: flex-end; padding: 4px 0 0; color: var(--ink); background: transparent; border: 0; }
.account-security-dialog .button { min-height: 38px; padding: 0 16px; border: 1px solid #d9dedb; border-radius: 8px; font: 600 13px var(--sans); cursor: pointer; box-shadow: none; transform: none; }
.account-security-dialog .button:hover { box-shadow: none; transform: none; }
.account-security-dialog .button:focus-visible { outline: 2px solid #11120f; outline-offset: 2px; }
.account-security-dialog .button-quiet { color: #5c645e; background: #f1f3f0; }
.account-security-dialog .button-quiet:hover { color: var(--ink); background: #e7ebe7; }
.account-security-dialog .button-dark { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.account-security-dialog .button-dark:hover { background: #c6ef3e; border-color: #c6ef3e; }
.account-security-dialog .button[hidden] { display: none; }
.security-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.security-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid rgba(17,18,15,.1); border-radius: 9px; background: #fafbf9; }
.security-list-row span { display: grid; gap: 6px; min-width: 0; }
.security-list-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.security-list-row small, .security-list-row svg { color: #7a817c; font-size: 11px; }
.security-empty { margin: 0; padding: 18px; color: #7a817c; background: #fafbf9; border-radius: 9px; font-size: 12px; text-align: center; }
.security-empty.is-error { color: #b42318; background: #fff5f5; }
.security-new-token { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(198,239,62,.75); border-radius: 9px; color: #25300e; background: rgba(198,239,62,.2); }
.security-new-token code { display: block; overflow: auto; padding: 8px; color: #111827; background: #fff; border-radius: 6px; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; }
.security-revoke-all { justify-self: start; }
@media (max-width: 700px) { .account-view { width: min(100% - 24px, 1080px); margin-top: 44px; }.account-profile-heading { align-items: flex-start; flex-wrap: wrap; }.account-profile-heading .view-link { width: 100%; margin-left: 82px; }.account-stat-grid, .account-settings-grid { grid-template-columns: 1fr; }.account-stat-grid article + article { border-top: 1px solid rgba(17,18,15,.08); border-left: 0; } }
body.is-auth-pending > aside,
body.is-auth-pending > .workspace-shell,
body.is-auth-pending > .auth-gate,
body.is-auth-locked > aside,
body.is-auth-locked > .workspace-shell { visibility: hidden; }
@media (max-width: 820px) { .auth-gate { grid-template-columns: 1fr; align-content: center; overflow-y: auto; padding: 32px 22px; }.auth-shell { display: none; }.auth-card { margin: 0 auto; } }

.web-provider-status-card { gap: 10px; }
.web-provider-heading { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.web-provider-heading h3 { font-size: 18px; }
.web-provider-heading .admin-settings-quiet-button { justify-self: end; }
.web-provider-header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.web-provider-tabs { position: relative; justify-self: center; isolation: isolate; display: inline-flex; align-items: center; width: fit-content; max-width: 100%; gap: 6px; padding: 4px; border: 1px solid #f3f4f6; border-radius: 20px; background: #eef0f3; box-shadow: 0 1px 1px rgba(31,41,55,.02); }
.web-provider-tabs::before { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 114px; border-radius: 20px; background: #202326; content: ''; pointer-events: none; transform: translateX(calc(var(--route-tab-index, 0) * 120px)); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
#webProviderTabs::before { background: var(--lime); }
.web-provider-tabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 114px; min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 20px; color: #718096; background: transparent; font: inherit; font-size: 13px; font-weight: 760; white-space: nowrap; cursor: pointer; }
.web-provider-tabs button.active { color: #fff; }
#webProviderTabs button.active { color: var(--ink); }
.web-provider-tabs button:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-tabs svg { width: 16px; height: 16px; }
.web-provider-panel { display: grid; min-width: 0; gap: 14px; }
.web-provider-upscale-notice { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f7f8fa; }
.web-provider-upscale-notice[hidden] { display: none; }
.web-provider-image-tiers { justify-self: stretch; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-width: 0; }
.web-provider-image-tiers[hidden] { display: none; }
.web-provider-image-tiers button { display: inline-flex; align-items: center; gap: 6px; min-width: 64px; max-width: 100%; min-height: 32px; padding: 6px 14px; border: 1px solid #dbe3ee; border-radius: 20px; color: #64748b; background: #f8fafc; font: 700 12px var(--sans); cursor: pointer; touch-action: none; transition: transform 180ms cubic-bezier(.2,.8,.2,1), color .2s ease, background .2s ease, border-color .2s ease; }
.web-provider-image-tiers button > svg { flex: none; width: 18px; height: 18px; }
/* Keep drag and release transforms local while sharing neutral choice colors. */
.web-provider-image-tiers button:is(:hover, :focus-visible):not(.is-active) { color: var(--supercanv-option-text); background: var(--supercanv-option-hover); border-color: #cbd0d6; }
.web-provider-image-tiers button:is(:hover, :focus-visible):not(.is-active) .web-provider-image-model-logo { filter: brightness(0); }
.web-provider-image-tiers button.is-active .web-provider-image-model-logo { filter: brightness(0) invert(1); }
.web-provider-image-tiers button.is-active { border-color: #202326; color: #fff; background: #202326; }
.web-provider-image-tiers button:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-video-models { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-width: 0; }
.web-provider-video-models[hidden] { display: none; }
.web-provider-video-model-item { display: inline-flex; align-items: stretch; min-width: 0; transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.web-provider-video-model-item.is-dragging, .web-provider-image-tiers > button.is-dragging { position: relative; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.1); border-radius: 20px; transition: none; will-change: transform; }
.web-provider-video-model-item.is-drag-shifting, .web-provider-image-tiers > button.is-drag-shifting { transition: transform 180ms cubic-bezier(.2,.8,.2,1); will-change: transform; }
.web-provider-video-models .web-provider-video-model-option { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 6px 14px; border: 1px solid #dbe3ee; border-radius: 20px; color: #64748b; background: #f8fafc; font: 700 12px var(--sans); overflow-wrap: anywhere; text-align: left; cursor: pointer; touch-action: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.web-provider-video-models .web-provider-video-model-option:hover:not(.is-active) { color: #202326; background: #e9ece8; border-color: #cbd0d6; }
.web-provider-video-models .web-provider-video-model-option:hover:not(.is-active) .web-provider-video-model-logo { filter: brightness(0); }
.web-provider-video-models .web-provider-video-model-option > span { min-width: 0; }
.web-provider-video-model-logo, .web-provider-image-model-logo { flex: none; box-sizing: border-box; width: 18px; height: 18px; padding: 1px; object-fit: contain; filter: brightness(0) invert(.4); }
.web-provider-video-models .web-provider-video-model-option.is-active .web-provider-video-model-logo { filter: brightness(0) invert(1); }
.web-provider-video-models .web-provider-video-model-option.is-active { border-color: #202326; color: #fff; background: #202326; }
.web-provider-video-models .web-provider-video-model-option:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-video-models .web-provider-video-model-option:active, .web-provider-image-tiers > button:active { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .web-provider-video-model-item, .web-provider-video-model-item.is-drag-shifting, .web-provider-image-tiers > button { transition: none; } }
.web-provider-model-group, .web-provider-model-routes { display: grid; min-width: 0; gap: 10px; }
.web-provider-model-routes .web-provider-row-actions { flex-wrap: wrap; }
.web-provider-status-list { display: grid; gap: 8px; }
.web-provider-status-row { position: relative; display: grid; grid-template-columns: minmax(210px, 1.35fr) minmax(230px, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 12px 12px 44px; border: 1px solid #edf0f4; border-radius: 14px; background: #fff; }
.web-provider-status-row[data-provider-row] { cursor: pointer; }
.web-provider-status-row.is-selected { border-color: #cbd0d6; background: #f1f3f5; }
.web-provider-status-row:focus-visible { outline: 2px solid #202326; outline-offset: 2px; }
.web-provider-drag-handle { position: absolute; top: 12px; left: 10px; display: grid; place-items: center; width: 24px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: #9298a1; background: transparent; cursor: grab; touch-action: none; }
.web-provider-drag-handle svg { width: 15px; height: 15px; }
.web-provider-drag-handle:hover:not(:disabled) { color: #202326; background: #eceef0; }
.web-provider-drag-handle:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-drag-handle:disabled { opacity: .35; cursor: default; }
.web-provider-status-row.is-dragging { z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.1); cursor: grabbing; }
.web-provider-status-row.is-drag-shifting { transition: transform 180ms ease; }
body.is-web-provider-dragging { user-select: none; cursor: grabbing; }
body.is-web-provider-dragging .web-provider-drag-handle { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .web-provider-status-row.is-drag-shifting { transition: none; } }
.web-provider-main { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.web-provider-main strong { min-width: 0; overflow: hidden; color: #111827; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.web-provider-main small { grid-column: 1 / -1; min-width: 0; overflow: hidden; color: #7b8490; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.web-provider-main .web-provider-wan-summary { overflow: visible; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.web-provider-order { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid rgba(198,239,62,.72); border-radius: 999px; color: #2f3b15; background: rgba(198,239,62,.42); font-size: 11px; font-weight: 900; white-space: nowrap; }
.web-provider-meta { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; color: #6b7280; font-size: 11px; }
.web-provider-meta span { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid #eef1f4; border-radius: 999px; background: #fbfcfd; white-space: nowrap; }
.web-provider-status-pill { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.web-provider-status-spinner { flex: none; width: 10px; height: 10px; margin-right: 4px; box-sizing: border-box; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .web-provider-status-spinner { animation: none; } }
.web-provider-status-ok { color: #15803d; background: #f5fff7; }
.web-provider-status-cooldown { color: #b45309; background: #fff9ee; }
.web-provider-status-missing { color: #6b7280; background: #f8fafc; }
.web-provider-status-off { color: #777; background: #f7f7f7; }
.web-provider-error { grid-column: 1 / -1; padding: 8px 10px; border-radius: 10px; color: #b42318; background: #fff5f5; font-size: 11px; line-height: 1.45; }
.web-provider-retest { display: block; margin-top: 4px; color: #505761; overflow-wrap: anywhere; }
.web-provider-error [data-provider-retest] { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 6px; border: 1px solid #d3d7dd; border-radius: 4px; color: #505761; background: #fff; font: inherit; cursor: pointer; }
.web-provider-error [data-provider-retest] svg { width: 12px; height: 12px; }
.web-provider-route-details { grid-column: 1 / -1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.web-provider-route-details.is-video { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.web-provider-cost, .web-provider-reference-limits, .web-provider-duration-limits, .web-provider-route-details.is-video > .web-provider-cost-recent { grid-column: 1 / -1; min-width: 0; color: #68707a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.web-provider-cost-reference, .web-provider-cost-recent, .web-provider-cost-range { display: block; }
.web-provider-cost > summary { display: list-item; list-style-position: inside; cursor: pointer; }
.web-provider-row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.web-provider-row-actions button { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid #edf0f4; border-radius: 999px; color: #111827; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.web-provider-row-actions button:hover { border-color: #111827; background: #f8fafc; }
.web-provider-row-actions button:disabled { cursor: default; opacity: .55; }
.users-custom-select-option:disabled { color: #9ca3af; cursor: not-allowed; opacity: .65; }
.web-provider-row-actions button:last-child { color: #dc2626; }
.web-provider-row-actions svg { width: 13px; height: 13px; }
.web-provider-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 10px; margin-top: 2px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.web-provider-form-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.web-provider-form-heading div { display: grid; gap: 3px; }
.web-provider-form-heading strong { color: #111827; font-size: 13px; }
.web-provider-form-heading small { color: #7b8490; font-size: 11px; line-height: 1.4; }
.web-provider-form-help { grid-column: 1 / -1; margin: 0; color: #7b8490; font-size: 11px; line-height: 1.5; }
.web-provider-wan-variants { grid-column: 1 / -1; display: grid; gap: 7px; padding: 11px 12px; border: 1px solid #e4e8ed; border-radius: 12px; background: #f8fafc; font-size: 11px; }
.web-provider-wan-variants[hidden] { display: none; }
.web-provider-form > label[hidden] { display: none; }
.web-provider-wan-variants > strong { color: #202326; font-size: 12px; }
.web-provider-wan-variants > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; align-items: center; }
.web-provider-wan-variants code { min-width: 0; overflow-wrap: anywhere; color: #4b5563; }
.web-provider-wan-variants > small { color: #7b8490; line-height: 1.5; }
.web-provider-priority-control { display: grid; grid-template-columns: minmax(0,1fr) 28px; min-width: 0; height: 38px; overflow: hidden; border: 1px solid #dbe3ee; border-radius: 12px; background: #f8fafc; }
.web-provider-priority-control:focus-within { border-color: #718096; box-shadow: 0 0 0 2px rgba(113,128,150,.12); }
.web-provider-priority-control #webProviderPriority { appearance: textfield; min-width: 0; width: 100%; height: 100%; padding: 0 10px; border: 0; border-radius: 0; outline: 0; box-shadow: none; text-align: center; background: transparent; }
.web-provider-priority-control input::-webkit-inner-spin-button,
.web-provider-priority-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.web-provider-priority-steps { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid #e5e7eb; }
.web-provider-priority-steps button { display: grid; place-items: center; padding: 0; border: 0; color: #64748b; background: transparent; cursor: pointer; }
.web-provider-priority-steps button + button { border-top: 1px solid #e5e7eb; }
.web-provider-priority-steps svg { width: 12px; height: 12px; }
.web-provider-priority-steps button:hover:not(:disabled) { color: #fff; background: #202326; }
.web-provider-monitor { position: relative; width: min(100%, 860px); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; margin: 0 auto 2px; padding: 8px 12px; color: #60656b; font-size: 12px; line-height: 1.65; border: 1px solid #edf0f4; border-radius: 14px; background: #fcfdfd; }
.web-provider-monitor[hidden] { display: none; }
.web-provider-monitor > details { min-width: 0; }
.web-provider-monitor summary { cursor: pointer; overflow-wrap: anywhere; }
.web-provider-monitor > details > summary { min-height: 28px; padding: 3px 0; color: #374151; }
.web-provider-monitor-state { display: inline-block; margin-left: 8px; color: #60656b; font-size: 11px; }
.web-provider-monitor-state.is-attention { color: #9f2d2d; font-weight: 650; }
.web-provider-monitor-meta { margin: 5px 0 9px; color: #8a919b; font-size: 11px; }
.web-provider-monitor-item { border-bottom: 1px solid #edf0f4; }
.web-provider-monitor-item > summary { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 0; list-style: none; }
.web-provider-monitor-item > summary::-webkit-details-marker { display: none; }
.web-provider-monitor-item > summary::after { flex-shrink: 0; color: #8a919b; font-size: 16px; line-height: 1; content: '›'; }
.web-provider-monitor-item[open] > summary::after { transform: rotate(90deg); }
.web-provider-monitor-item strong { flex: 1; min-width: 0; color: #374151; font-size: 12px; font-weight: 600; }
.web-provider-monitor-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 65%; font-size: 11px; }
.web-provider-monitor-badges > span { padding: 1px 6px; border-radius: 4px; color: #6b7280; background: #f3f4f6; }
.web-provider-monitor-item.is-attention .web-provider-monitor-badges > span { color: #9f2d2d; background: #fff3f2; }
.web-provider-monitor-item.is-error .web-provider-monitor-badges > span { color: #a61b1b; background: #ffefee; }
.web-provider-monitor-item-body { padding: 0 0 8px; color: #6b7280; overflow-wrap: anywhere; }
.web-provider-monitor-item-body p { margin: 3px 0; }
.web-provider-monitor-item-body ul { margin: 4px 0 0; padding-left: 18px; }
.web-provider-monitor-rest { margin-top: 8px; }
.web-provider-monitor-rest > summary { padding: 3px 0; }
.web-provider-monitor-rest > summary > span { margin-left: 8px; color: #8a919b; font-size: 11px; }
.web-provider-monitor-note { margin: 9px 0 0; color: #8a919b; font-size: 11px; }
.web-provider-monitor summary:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-monitor > button { position: static; align-self: center; min-height: 28px; padding: 3px 10px; white-space: nowrap; }
#webProviderRefresh.is-loading svg { animation: web-provider-refresh-spin 780ms linear infinite; }
#webProviderRefresh.is-loading { border-color: #202326; color: #ffffff; background: #202326; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
#webProviderRefresh.is-loading svg { color: #ffffff; }
@keyframes web-provider-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #webProviderRefresh.is-loading svg { animation: none; } }
.web-provider-priority-steps button:focus-visible { outline: 2px solid #718096; outline-offset: -2px; }
.web-provider-priority-steps button:disabled { color: #c3c9d0; cursor: not-allowed; }
.web-provider-vision { position: relative; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #edf0f4; border-radius: 12px; color: #6b7280; background: #f8faf9; font-size: 12px; cursor: pointer; }
.web-provider-vision input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.web-provider-vision-track { position: relative; width: 34px; height: 20px; flex: 0 0 34px; border: 1px solid #c7cfcc; border-radius: 999px; background: #dfe4e1; }
.web-provider-vision-track::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); content: ''; }
.web-provider-vision input:checked + .web-provider-vision-track { border-color: #202326; background: #202326; }
.web-provider-vision input:checked + .web-provider-vision-track::after { transform: translateX(14px); }
.web-provider-vision input:focus-visible + .web-provider-vision-track { outline: 2px solid #718096; outline-offset: 3px; }
.web-provider-vision:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.web-provider-vision-copy { min-width: 0; display: grid; gap: 3px; }
.web-provider-vision-copy strong { color: #37413d; font-size: 12px; font-weight: 650; }
.web-provider-vision-copy small { color: #7b8490; font-size: 11px; line-height: 1.5; }
.web-provider-vision[hidden] { display: none; }
.web-provider-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.web-provider-form-message { flex: 1 1 100%; width: 100%; margin: 0; color: #6b7280; font-size: 11px; line-height: 1.4; }
.web-provider-form-message.is-success { color: #15803d; }
.web-provider-form-message.is-error { color: #b42318; }
.web-provider-form .users-custom-select-trigger:focus-visible,
.admin-settings-page .admin-settings-quiet-button:focus-visible,
.admin-settings-page .admin-settings-save-button:focus-visible,
.admin-settings-page .admin-settings-delete-button:focus-visible,
.web-provider-row-actions button:focus-visible { outline: 2px solid #718096; outline-offset: 2px; }
.web-provider-form .users-custom-select-option:hover:not(:disabled),
.web-provider-form .users-custom-select-option.is-selected { color: #fff; background: #202326; }
@media (max-width: 1120px) { .web-provider-heading { grid-template-columns: minmax(0, 1fr) auto; }.web-provider-heading > .web-provider-tabs { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 900px) { .web-provider-status-row { grid-template-columns: minmax(0, 1fr) auto; }.web-provider-meta, .web-provider-error { grid-column: 1 / -1; }.web-provider-row-actions { grid-column: 1 / -1; justify-content: flex-start; }.web-provider-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .web-provider-status-row, .web-provider-form { grid-template-columns: 1fr; }.web-provider-tabs { width: 100%; gap: 0; }.web-provider-tabs button { flex: 1; min-width: 0; width: auto; padding: 0 6px; gap: 5px; }.web-provider-tabs::before { width: calc((100% - 8px) / var(--tab-count, 3)); transform: translateX(calc(var(--route-tab-index, 0) * 100%)); } }
@media (max-width: 760px) { .web-provider-model-routes .web-provider-status-row { grid-template-columns: minmax(0, 1fr); min-width: 0; } }
@media (max-width: 760px) { .web-provider-heading { grid-template-columns: minmax(0, 1fr); gap: 12px; }.web-provider-heading > .web-provider-tabs { grid-column: 1; grid-row: auto; }.web-provider-header-actions { justify-self: start; max-width: 100%; }.web-provider-header-actions > button { min-width: 0; } }
@media (max-width: 760px) { #webProviderTabs button { min-height: 40px; padding: 4px 1px; font-size: 12px; line-height: 1.2; } #webProviderTabs svg { display: none; } .web-provider-upscale-suffix { display: block; } }
@media (max-width: 520px) { #webProviderTabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } #webProviderTabs::before { display: none; } #webProviderTabs button { width: 100%; min-height: 36px; padding: 2px 0; font-size: 11px; gap: 0; } #webProviderTabs button.active { background: var(--lime); } #webProviderTabs .web-provider-upscale-suffix { display: inline; } }
@media (prefers-reduced-motion: reduce) { .web-provider-tabs::before { transition: none; } }

/* The former standalone archive host is now used only as the generation history portal. */
.billing-pricing-section { min-width: 0; width: 100%; max-width: 100%; margin-top: 28px; padding: 24px 0; border-top: 1px solid #e5e7eb; color: #252525; letter-spacing: 0; }
.usage-view > .membership-usage-card { min-width: 0; max-width: 100%; }
.billing-pricing-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-pricing-section h3 { margin: 0; font-size: 17px; }
.billing-pricing-section p, .billing-summary { color: #626262; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.billing-consumption-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 10px; border-block: 1px solid #eef1ed; font-size: 13px; }
#billingConsumptionTotal { margin-inline-start: 8px; color: #626262; }
#billingConsumptionAccounts[hidden] { display: none; }
.billing-catalogue-note { margin: 14px 0 4px; }
.billing-catalogue-wrap { margin-bottom: 18px; }
.billing-catalogue { min-width: 610px; border-collapse: separate; border-spacing: 0; }
.billing-catalogue th, .billing-catalogue td { white-space: normal; vertical-align: top; font-size: 12px; }
.billing-catalogue .billing-published-heading { white-space: nowrap; }
.billing-catalogue .billing-catalogue-group th { color: #252b26; background: #e4e9e3; border-radius: 8px; }
.billing-catalogue td span { display: inline-block; margin-inline-end: 10px; }
#billingPriceForm { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(140px, 1fr) minmax(180px, 2fr) auto; align-items: end; gap: 14px; }
#billingPriceForm label { display: grid; gap: 7px; min-width: 0; font-size: 12px; }
#billingPriceForm input, #billingPriceForm select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d9dde0; border-radius: 6px; background: #fff; color: #252525; font: inherit; }
#billingPriceForm button { min-height: 40px; border-radius: 6px; }
#billingPriceForm :disabled { opacity: .55; cursor: not-allowed; }
.billing-orders-section, .billing-published-packages { margin-top: 18px; }
.billing-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-panel-heading > div { min-width: 0; }
.billing-panel-heading .icon-button { flex: 0 0 34px; width: 34px; height: 34px; }
.billing-panel-heading h3 { margin: 0; font-size: 16px; }
.billing-panel-heading p { margin: 5px 0 0; color: #626262; font-size: 12px; line-height: 1.5; }
.billing-cashier-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid #d9dddb; border-radius: 8px; background: #fff; color: #242725; overflow: auto; letter-spacing: 0; }
.billing-cashier-dialog::backdrop { background: rgba(0,0,0,.32); }
.billing-cashier-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-cashier-dialog h3 { margin: 0; font-size: 18px; }
.billing-cashier-dialog .icon-button { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; line-height: 1; background: #f3f4f3; color: #333; }
.billing-cashier-dialog .icon-button svg { width: 16px; height: 16px; margin: 0; }
.billing-cashier-dialog p { max-width: none; margin: 14px 0; color: #565b57; font-size: 13px; line-height: 1.6; }
.billing-cashier-dialog .billing-cashier-notice { color: #76551e; background: #fff9eb; padding: 9px 12px; border-radius: 4px; }
.billing-cashier-dialog dl { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; font-size: 13px; line-height: 1.5; }
.billing-cashier-dialog dt { color: #737873; }
.billing-cashier-dialog dd { margin: 0; overflow-wrap: anywhere; }
.billing-cashier-dialog label { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0; font-size: 13px; line-height: 1.5; }
.billing-cashier-dialog input { margin: 3px 0 0; accent-color: #323632; }
.billing-cashier-dialog footer { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 18px 0; padding: 0; border: 0; color: inherit; background: transparent; }
.billing-cashier-dialog footer .button { min-height: 36px; padding: 8px 12px; border-radius: 6px; font-size: 12px; }
.billing-cashier-dialog a { font-size: 12px; text-decoration: underline; }
.billing-cashier-dialog [hidden], #billingCashierResume[hidden] { display: none; }
.user-finance-dialog.refund-applications-dialog { width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; }
.refund-applications-dialog [hidden] { display: none; }
.refund-filters, .refund-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.refund-applications-dialog form { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #e3e6e4; }
.refund-applications-dialog label { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; }
.refund-applications-dialog input:not([type=checkbox]), .refund-applications-dialog textarea, .refund-applications-dialog select { max-width: 100%; box-sizing: border-box; min-height: 36px; padding: 8px; border: 1px solid #d5dad7; border-radius: 4px; background: #fff; color: #252a27; font: inherit; }
.refund-applications-dialog textarea { min-height: 70px; resize: vertical; }
.refund-applications-dialog .refund-confirm { display: flex; align-items: center; gap: 8px; }
.refund-applications-dialog .billing-receipt dd { overflow-wrap: anywhere; }
.refund-applications-dialog .finance-table-wrap { max-width: 100%; overflow-x: auto; }
.refund-applications-dialog .membership-usage-table { min-width: 600px; }
.user-finance-dialog.statement-dialog { width: min(840px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; }
.statement-dialog [hidden] { display: none; }
.statement-import-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.statement-dialog label { display: grid; gap: 6px; margin: 10px 0; min-width: 0; font-size: 13px; }
.statement-dialog input:not([type=checkbox]), .statement-dialog select, .statement-dialog textarea { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; min-height: 36px; padding: 8px; border: 1px solid #d5dad7; border-radius: 4px; background: #fff; color: #252a27; font: inherit; }
.statement-dialog input[type=file] { font-size: 12px; }
.statement-dialog .statement-confirm { display: flex; align-items: center; gap: 8px; }
.statement-dialog .finance-table-wrap { max-width: 100%; overflow-x: auto; }
.statement-dialog .membership-usage-table { min-width: 600px; }
.statement-dialog .billing-receipt dd { overflow-wrap: anywhere; }
.statement-list-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.statement-dialog textarea { min-height: 70px; resize: vertical; }
.refund-applications-dialog .billing-receipt, .statement-dialog .billing-receipt { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 8px 12px; margin: 18px 0; font-size: 13px; line-height: 1.55; }
.refund-applications-dialog .billing-receipt dt, .statement-dialog .billing-receipt dt { color: #707872; }
.refund-applications-dialog .billing-receipt dd, .statement-dialog .billing-receipt dd { margin: 0; min-width: 0; }
.user-finance-dialog.refund-applications-dialog .finance-table-wrap, .user-finance-dialog.statement-dialog .finance-table-wrap { max-height: 28dvh; }
@media (max-width: 560px) { .statement-import-fields { grid-template-columns: minmax(0,1fr); } }
dialog.refund-applications-dialog [hidden], dialog.statement-dialog [hidden] { display: none; }
#refundApplicationsOpen[hidden], #refundAdminOpen[hidden], #statementOpen[hidden] { display: none; }
.cash-reviews-dialog { width: min(1000px, calc(100vw - 32px)); overflow: auto; }
.cash-reviews-dialog h3 { letter-spacing: 0; }
.cash-reviews-dialog p { max-width: none; color: #5c635e; font-size: 13px; }
.cash-reviews-dialog [hidden], #cashReviewsOpen[hidden] { display: none; }
.cash-reviews-filters { display: grid; grid-template-columns: 100px minmax(0, 240px) 32px; align-items: end; gap: 12px; margin: 16px 0; }
.cash-reviews-filters .icon-button { width: 32px; height: 36px; }
.cash-reviews-dialog label { display: grid; min-width: 0; gap: 6px; color: #565d58; font-size: 12px; }
.cash-reviews-dialog input:not([type="checkbox"]), .cash-reviews-dialog select, .cash-reviews-dialog textarea { width: 100%; min-width: 0; padding: 9px; border: 1px solid #d7dcd8; border-radius: 4px; font: inherit; color: #272b28; background: #fff; }
.cash-reviews-dialog .billing-receipt { overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.cash-reviews-dialog .billing-receipt dd { margin: 3px 0 10px; }
#cashReviewsForm { display: grid; gap: 14px; margin-top: 16px; }
#cashReviewsForm textarea { min-height: 80px; resize: vertical; }
#cashReviewsForm .cash-reviews-confirm { display: flex; align-items: flex-start; gap: 8px; }
.cash-reviews-confirm input { margin: 2px 0 0; }
#cashReviewsForm button { justify-self: start; border-radius: 6px; }
.cash-reviews-dialog .finance-table-wrap { max-height: 34dvh; }
.finance-tabs { flex-wrap: wrap; }
.billing-orders-section { min-width: 0; max-width: 100%; }
.billing-orders-section .billing-receipt { min-width: 180px; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.billing-orders-section .billing-receipt dd { margin: 4px 0 12px; }
#billingPackageForm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; }
#billingPackageForm label { display: grid; gap: 7px; min-width: 0; font-size: 12px; }
#billingPackageForm input, #billingPackageForm select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #d9dde0; border-radius: 6px; background: #fff; color: #252525; font: inherit; }
#billingPackageForm button { min-height: 40px; justify-self: start; border-radius: 6px; }
#billingPackageForm :disabled { opacity: .55; cursor: not-allowed; }
.billing-package-admin-section .membership-usage-table-wrap { max-width: 100%; overflow: auto; }
.billing-package-management { margin-top: 12px; }
.billing-price-history summary, .billing-reference summary { cursor: pointer; font-size: 12px; }
.billing-reference { min-width: 140px; max-width: 280px; }
.billing-reference dl { white-space: normal; overflow-wrap: anywhere; margin: 10px 0; }
.billing-reference dt { color: #737373; font-size: 11px; }
.billing-reference dd { margin: 4px 0 10px; font-size: 12px; }
.user-finance-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid #d9dddb; border-radius: 8px; background: #fff; color: #242725; }
.user-finance-dialog::backdrop { background: rgba(0,0,0,.32); }
.user-finance-dialog h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.finance-tabs { --supercanv-option-hover: #dfe2df; display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; box-sizing: border-box; padding: 4px; border: 0; border-radius: 999px; background: #f4f6f4; }
.finance-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #68716b; font-size: 13px; cursor: pointer; transition: color .16s ease, background .16s ease; }
.finance-tabs button:hover { color: #202823; background: var(--supercanv-option-hover, #dfe2df); }
.finance-tabs button:focus-visible { outline: 1px solid #202823; outline-offset: 1px; }
.finance-tabs button[aria-pressed="true"] { color: #fff; background: #11120f; }
.finance-table-wrap { overflow: auto; max-height: 58dvh; }
.finance-table-wrap th { position: sticky; top: 0; background: #fff; z-index: 1; }
.finance-table-wrap td:last-child { min-width: 150px; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
#userFinanceDialog { box-sizing: border-box; overflow: visible; }
#userFinanceDialog[open] { display: flex; flex-direction: column; }
#userFinanceDialog > :not(.finance-table-wrap) { flex-shrink: 0; }
#userFinanceDialog > .finance-table-wrap { min-height: 0; }
.finance-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.finance-filters[hidden] { display: none; }
.finance-filters label { display: grid; gap: 6px; min-width: 0; flex: 1 1 150px; color: #68716b; font-size: 12px; }
.finance-filters select { box-sizing: border-box; width: 100%; min-width: 0; height: 36px; padding: 6px 10px; border: 1px solid #d9dddb; border-radius: 4px; background: #fff; color: #242725; font: inherit; }
.finance-filters .users-custom-select { width: 100%; min-width: 0; }
.finance-filters .users-custom-select-trigger { box-sizing: border-box; padding-right: 36px; font-size: 13px; }
.finance-filters .users-custom-select-trigger::after { right: 10px; }
.finance-filters .users-custom-select-trigger:focus-visible { outline: 2px solid #9ca6a0; outline-offset: 2px; }
.finance-filters .users-custom-select-menu { max-height: min(280px, 40dvh); overflow-y: auto; overscroll-behavior: contain; border-radius: 8px; }
.finance-filters .users-custom-select-option:is(:hover, :focus-visible, .is-selected):not(:disabled) { color: #fff; background: #111827; }
.finance-filters .users-custom-select-option:focus-visible { outline: 2px solid #b5bdb7; outline-offset: -2px; }
#userFinanceMore[hidden] { display: none; }
#userFinanceStatus { font-size: 13px; color: #68716b; min-height: 18px; }
.users-toolbar { flex-wrap: wrap; }
.users-toolbar > [hidden], .finance-tabs > [hidden], .user-detail-actions > [hidden] { display: none; }
.users-table { min-width: 0; }
.users-table :is(th,td) { padding-inline: 12px; overflow-wrap: anywhere; }
.users-table :is(th,td):first-child { width: auto; }
.users-table :is(th,td):nth-child(2) { width: 10%; }
.users-table :is(th,td):nth-child(3) { width: 8%; }
.users-table :is(th,td):nth-child(4) { width: 10%; }
.users-table :is(th,td):nth-child(5) { width: 9%; }
.users-table :is(th,td):nth-child(6) { width: 9%; }
.users-table :is(th,td):nth-child(7) { width: 6%; }
.users-table :is(th,td):nth-child(8) { width: 12%; }
.users-table :is(th,td):last-child { width: 184px; }
.user-row-actions { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
.user-row-actions .icon-button { flex: 0 0 30px; }
@media(max-width:1000px) { .users-table { min-width: 1060px; } }
.users-table td > small { display: block; margin-top: 5px; font-size: 11px; color: #737b76; }
.user-name-link, .user-pending-link { border: 0; padding: 0; background: transparent; color: #262d28; font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.user-name-link { font-weight: 600; }
.user-name-link:hover, .user-pending-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.user-name-link:focus-visible, .user-pending-link:focus-visible { outline: 2px solid #949e97; outline-offset: 3px; }
.user-name-link:disabled, .user-pending-link:disabled { cursor: default; opacity: .6; }
.user-detail-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#userFinanceDialog .user-editor-header { gap: 12px; margin-bottom: 12px; }
#userFinanceDialog h3 { letter-spacing: 0; min-width: 0; }
.user-detail-title-suffix { display: inline-block; }
#userFinanceSummary:empty, #userFinanceStatus:empty { display: none; }
#userFinanceBody td:last-child:has(> .icon-button) { min-width: 44px; width: 44px; }
#userFinanceDialog .finance-tabs { gap: 4px; }
#userFinanceOverview h4, #userTaskDetails h4 { margin: 20px 0 12px; font-size: 14px; font-weight: 600; }
.user-detail-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 24px; margin: 0 0 20px; }
.user-detail-metrics dt { color: #727a75; font-size: 12px; margin-bottom: 6px; }
.user-detail-metrics dd { margin: 0; color: #282d29; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#userTaskDetails { padding: 0 0 20px; border-top: 1px solid #e4e7e5; }
#userTaskDetails pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.7; }
.credit-review-form { display: grid; gap: 12px; margin: 16px 0; max-width: 560px; }
.credit-review-form label { display: grid; min-width: 0; gap: 6px; font-size: 12px; color: #565d58; }
.credit-review-form :is(input[type="password"], textarea) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #d9dedb; border-radius: 6px; background: #fff; color: #202622; font: inherit; }
.credit-review-form textarea { min-height: 88px; resize: vertical; }
.credit-review-form .credit-review-confirm { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; }
.credit-review-form button { justify-self: start; }
#billingCashierPayment { display: grid; justify-items: center; gap: 10px; padding: 12px 0; }
#billingCashierPayment[hidden] { display: none; }
#billingCashierPayment img { display: block; width: 224px; max-width: 100%; height: auto; aspect-ratio: 1; }
#billingCashierPayment a { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; color: #344b3b; }
.user-task-outputs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 16px; }
.user-task-outputs figure { margin: 0; min-width: 0; }
.user-task-outputs figcaption { font-size: 12px; color: #68716b; margin-bottom: 8px; overflow-wrap: anywhere; }
.user-task-outputs :is(img,video) { display: block; width: 100%; height: 230px; object-fit: contain; background: #f3f5f4; border-radius: 4px; }
@media(max-width:600px) { .user-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } #userFinanceDialog .user-editor-header { align-items: flex-start; } #userFinanceDialog .finance-tabs { gap: 4px; } }
.billing-adjustments-dialog { overflow: auto; }
.billing-adjustments-dialog [hidden] { display: none !important; }
.adjustments-heading { position: sticky; top: -24px; z-index: 3; margin: -24px -24px 0; padding: 24px 24px 10px; border-bottom: 1px solid #e4e7e5; background: #fff; }
.adjustments-heading .user-editor-header { margin-bottom: 0; }
.adjustments-heading .users-message { margin-bottom: 0; }
.adjustment-section { min-width: 0; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e4e7e5; }
.adjustment-section h4 { margin: 0 0 16px; font-size: 14px; overflow-wrap: anywhere; }
.adjustment-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 14px; }
.adjustment-form label { display: grid; gap: 7px; min-width: 0; color: #4c514e; font-size: 12px; }
.adjustment-form input, .adjustment-form select, .adjustment-form textarea, .adjustment-filter select { min-width: 0; width: 100%; padding: 10px; border: 1px solid #d9dddb; border-radius: 6px; background: #fff; color: #242725; font: inherit; }
.adjustment-form input, .adjustment-form select, .adjustment-filter select { height: 40px; }
.adjustment-form textarea { min-height: 72px; resize: vertical; line-height: 1.5; }
.adjustment-form input[readonly] { background: #f5f6f5; }
#adjustmentInvestigationForm { margin-top: 18px; }
.adjustment-form :disabled { opacity: .55; cursor: not-allowed; }
.adjustment-wide { grid-column: 1 / -1; }
.adjustment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adjustment-form > .adjustment-actions { grid-column: span 2; }
.adjustment-actions .button, .adjustment-form > .button { min-height: 40px; border-radius: 6px; }
.adjustment-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.adjustment-filter select { width: 140px; }
.adjustment-filter .users-custom-select { width: 140px; min-width: 0; }
.adjustment-filter .users-custom-select-trigger { box-sizing: border-box; padding-right: 36px; }
.adjustment-filter .users-custom-select-trigger::after { right: 10px; }
.adjustment-filter .users-custom-select-trigger:focus-visible { outline: 2px solid #9ca6a0; outline-offset: 2px; }
.adjustment-filter .users-custom-select-menu { max-height: min(280px, 40dvh); overflow-y: auto; overscroll-behavior: contain; border-radius: 8px; }
.adjustment-filter .users-custom-select-option:is(:hover, :focus-visible, .is-selected):not(:disabled) { color: #fff; background: #111827; }
.billing-adjustments-dialog .finance-table-wrap { max-height: 34dvh; }
.adjustment-details { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px 16px; font-size: 12px; line-height: 1.6; }
.adjustment-details dt { color: #68716b; }
.adjustment-details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:600px) { .adjustments-heading { top: -16px; margin: -16px -16px 0; padding: 16px 16px 8px; }.billing-adjustments-dialog .finance-table-wrap { max-height: none; }.adjustment-form { grid-template-columns: minmax(0,1fr); }.adjustment-form > .adjustment-actions { grid-column: auto; }.adjustment-details { grid-template-columns: 82px minmax(0,1fr); gap: 7px 10px; } }
@media (max-width: 600px) { .user-finance-dialog { padding: 16px; }.user-finance-dialog h3 { font-size: 16px; } }
.billing-pagination { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0 0; margin: 0; border: 0; background: none; color: inherit; }
.billing-pagination > [hidden] { display: none; }
.billing-summary { margin: 16px 0 0; }
.billing-task-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; color: #626262; font-size: 12px; }
.billing-task-filter[hidden] { display: none; }
.billing-task-filter > span { min-width: 0; overflow-wrap: anywhere; }
.billing-task-filter b { color: #333; font-weight: 500; }
.billing-task-filter .icon-button { flex: none; }
@media (max-width: 980px) { #billingPriceForm, #billingPackageForm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #billingPriceForm, #billingPackageForm { grid-template-columns: minmax(0, 1fr); } #billingPriceForm button { justify-self: start; } }
.archive-section:not([data-image-history="true"]) { display: none !important; }

/* Keep utility actions with the workspace header, like the reference creator. */
.workspace-sidebar > .workspace-sidebar-extra { width: auto; position: fixed; top: calc(var(--workspace-banner-height) + 19px); right: 70px; z-index: 45; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.workspace-sidebar > .workspace-sidebar-extra .workspace-notice-menu { width: auto; }
.workspace-sidebar > .workspace-sidebar-extra .sidebar-notice { width: 38px; height: 38px; }
.workspace-sidebar > .workspace-account-menu { width: 38px; position: fixed; top: calc(var(--workspace-banner-height) + 19px); right: 20px; z-index: 45; margin: 0; }
.workspace-sidebar > .workspace-account-menu .workspace-account-popover { top: calc(100% + 8px); right: 0; bottom: auto; left: auto; }
.notification-popover { width: min(360px, calc(100vw - 24px)); height: min(540px, calc(100dvh - var(--workspace-banner-height) - var(--workspace-header-height) - 20px)); top: calc(var(--workspace-banner-height) + var(--workspace-header-height) + 8px); right: 18px; left: auto; padding: 18px 10px 12px; background: rgba(255,255,255,.98); border: 1px solid rgba(17,18,15,.12); border-radius: 16px; box-shadow: 0 18px 44px rgba(17,18,15,.16); transform-origin: 92% 0; animation-name: notification-popover-in; }
.notification-popover .notification-header, .notification-popover .notification-toolbar { padding-left: 8px; padding-right: 8px; }
@keyframes notification-popover-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Keep the recycle-bin warning icon visually distinct from its informational copy. */
.canvas-manager-trash > p > svg { color: #dc2626; }
