@import url('./src/navigation.css');
.studio-cooking, [data-studio="cooking"] { --studio-secondary:#f8b66b; --studio-ink:#89501a; --studio-tint:#fff0df; }
:root[data-theme="dark"] .studio-cooking { --studio-ink:#f8b66b; --studio-tint:#573c28; }
.topbar > #theme-toggle:only-child { margin-left:auto; }
:root:not([data-studio]) [data-panel="settings"] > .setting-row { border-top:0; padding-top:0; }
.orbit-emblem { position:relative; display:grid; place-items:center; min-height:180px; margin:0 0 24px; }
.orbit-emblem svg { width:min(100%,640px); height:auto; fill:none; stroke:var(--line); stroke-width:1; }
.orbit-emblem .orbit-center { fill:var(--accent); stroke:none; }
.orbit-emblem .orbit-point { fill:var(--muted); stroke:none; }
.orbit-motion-toggle { position:absolute; right:0; bottom:0; border:0; border-radius:6px; padding:6px 8px; color:var(--muted); background:transparent; font:inherit; font-size:11px; cursor:pointer; }
.orbit-motion-toggle:hover { background:var(--surface-soft); }
.orbit-motion-toggle:focus-visible { outline:2px solid var(--accent); }
/* Compact account quota summary; values always come from the local read-only service. */
.usage-panel { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.usage-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.usage-heading h3 { margin:0; }
.usage-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.usage-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; }
.usage-values > div { min-width:0; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.usage-values dt { color:var(--muted); font-size:12px; margin-bottom:8px; }
.usage-values dd { margin:0; font-size:clamp(16px,2vw,23px); font-weight:650; }
.usage-status { margin:0; font-size:11px; color:var(--muted); }
.usage-values dd.usage-reset { margin-top:8px; font-size:12px; font-weight:400; color:var(--muted); font-variant-numeric:tabular-nums; }
@media (max-width:650px) { .usage-heading { flex-wrap:wrap; } .usage-actions { flex:1 1 100%; justify-content:space-between; } .usage-values { grid-template-columns:repeat(2,minmax(0,1fr)); } .usage-values > div { padding:12px; } }
@media (max-width:360px) { .usage-values { grid-template-columns:1fr; } }
:root { color-scheme: light; --bg: #f4f6fa; --surface: #fff; --surface-soft: #eef1f6; --text: #202633; --muted: #6d7788; --line: #e1e6ee; --accent: #5967d9; --accent-soft: #eaecff; --success: #2d9b72; --shadow: 0 18px 45px rgba(35, 45, 70, .08); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #11141a; --surface: #1c2028; --surface-soft: #282d38; --text: #f4f6fb; --muted: #aeb7c8; --line: #353c49; --accent: #9aa4ff; --accent-soft: #343a64; --success: #66d6a8; --shadow: 0 18px 45px rgba(0, 0, 0, .22); }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
:root { --studio-finance: #71dbad; --studio-media: #a9a6ff; --studio-film: #80c5ff; }
.studio-finance, [data-studio="finance"] { --studio-secondary: var(--studio-finance); --studio-ink: #176341; --studio-tint: #e5f5ed; }
.studio-media, [data-studio="media"] { --studio-secondary: var(--studio-media); --studio-ink: #5145a0; --studio-tint: #eeecff; }
.studio-film, [data-studio="film"] { --studio-secondary: var(--studio-film); --studio-ink: #235e91; --studio-tint: #e6f2fc; }
:root[data-theme="dark"] .studio-finance { --studio-ink: var(--studio-finance); --studio-tint: #1d4a3b; }
:root[data-theme="dark"] .studio-media { --studio-ink: var(--studio-media); --studio-tint: #302e62; }
:root[data-theme="dark"] .studio-film { --studio-ink: var(--studio-film); --studio-tint: #203d5a; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.app-shell { width: min(1360px, calc(100% - 48px)); min-height: 100vh; margin-inline: auto; display: grid; grid-template-columns: 222px minmax(0, 1fr); }
.sidebar { background: var(--surface); border-inline: 1px solid var(--line); padding: 28px 14px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 12px 42px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: var(--accent); }
.nav-list, .sidebar-bottom { display: grid; gap: 6px; }
.sidebar-bottom { margin-top: auto; }
.nav-item, .mobile-nav-item { border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.nav-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 11px 12px; border-radius: 11px; text-align: left; }
.nav-item:hover, .nav-item.is-active { background: var(--accent-soft); color: var(--accent); }
.nav-item.is-active { font-weight: 650; }
.nav-count, .badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 650; color: var(--accent); background: var(--accent-soft); }
.version-label { padding: 14px 12px 0; color: var(--muted); font-size: 11px; }
.main-content { width: 100%; max-width: 1120px; margin-inline: auto; padding: 34px clamp(22px, 3vw, 42px) 48px; }
.topbar, .hero-row, .panel-heading, .card-heading, .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar { margin-bottom: 36px; }
.preview-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin: -15px 0 28px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--accent-soft); color: var(--text); font-size: 12px; line-height: 1.5; }
.preview-banner strong { color: var(--accent); }
.topbar h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.04; letter-spacing: -.05em; }
h3 { font-size: 16px; letter-spacing: -.015em; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.topbar .eyebrow { margin-bottom: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.icon-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.avatar { color: var(--accent); background: var(--accent-soft); font-weight: 750; }
.hero-row { align-items: flex-end; margin-bottom: 34px; }
.hero-row > div { max-width: 710px; }
.hero-row .eyebrow, .page-heading .eyebrow { margin-bottom: 10px; }
.intro { max-width: 680px; margin-top: 14px; color: var(--muted); line-height: 1.6; }
.primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; }
.primary-button { padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--accent); font-weight: 700; white-space: nowrap; }
:root[data-theme="dark"] .primary-button { color: #11141a; }
.secondary-button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); }
.text-button { padding: 4px 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.summary-card, .panel, .tool-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.summary-card { padding: 18px; }
.summary-card strong { display: block; margin: 14px 0 5px; font-size: 26px; letter-spacing: -.04em; }
.summary-card p, small { color: var(--muted); }
.card-heading { color: var(--muted); font-size: 12px; font-weight: 650; }
.card-icon { color: var(--accent); font-size: 17px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.content-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-bottom: 14px; }
.panel { padding: 22px; }
.panel-heading { align-items: flex-start; margin-bottom: 18px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.tool-list, .task-list, .activity-list { display: grid; gap: 7px; }
.tool-row, .task-row { border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.tool-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px; }
a.tool-row { text-decoration: none; }
.tool-row-featured { border-color: var(--accent-soft); background: var(--accent-soft); }
.tool-row:hover, .task-row:hover { border-color: var(--line); background: var(--surface-soft); }
.tool-row strong, .task-row strong, .activity-row strong { display: block; font-size: 13px; }
.tool-row small, .task-row small, .activity-row small { display: block; margin-top: 3px; font-size: 11px; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 750; }
.tool-purple { color: #a9a6ff; background: #302e62; }.tool-blue { color: #80c5ff; background: #203d5a; }.tool-green { color: #71dbad; background: #1d4a3b; }.tool-orange { color: #f8b66b; background: #573c28; }
.row-arrow { color: var(--muted); font-size: 18px; }
.task-row { display: grid; grid-template-columns: 19px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; }
.task-check { width: 16px; height: 16px; border: 1px solid var(--muted); border-radius: 50%; }
.expand-button { margin-top: 13px; width: 100%; }
.expandable { padding: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.activity-panel { padding-bottom: 12px; }.activity-list { gap: 0; }.activity-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }.activity-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }.activity-state { color: var(--muted); font-size: 11px; }.view.is-hidden { display: none; }.page-heading { margin-bottom: 28px; }.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.tool-card { min-height: 236px; padding: 26px; display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }.tool-card[href]:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 22px 48px rgba(35, 45, 70, .13); }.tool-card-featured { grid-column: span 2; min-height: 242px; border-color: color-mix(in srgb, var(--success) 42%, var(--line)); background: color-mix(in srgb, var(--surface) 90%, var(--success)); }.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.tool-card .tool-icon { width: 64px; height: 64px; border-radius: 18px; }.tool-card .tool-icon .icon { width: 34px; height: 34px; }.tool-card h3 { margin: 22px 0 9px; font-size: 22px; letter-spacing: -.035em; }.tool-card-featured h3 { font-size: 26px; }.tool-card p { max-width: 650px; color: var(--muted); line-height: 1.55; }.tool-card-add { border-style: dashed; box-shadow: none; }.add-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px dashed var(--muted); border-radius: 18px; color: var(--muted); font-size: 28px; }.badge-muted { color: var(--muted); background: var(--surface-soft); }.task-list-large .task-row { padding: 16px 8px; }.settings-list { display: grid; gap: 0; }.setting-row { padding: 18px 0; border-top: 1px solid var(--line); }.setting-row:first-child { padding-top: 0; border-top: 0; }.setting-row strong { display: block; font-size: 13px; }.setting-row small { display: block; margin-top: 4px; }.status-text { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: 12px; font-weight: 650; }.mobile-nav { display: none; }.toast { position: fixed; right: 24px; bottom: 24px; max-width: 320px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }
.tool-card-link { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 22px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.tool-card[href]:hover .tool-card-link, .tool-page-back:hover { text-decoration: underline; }
.tool-page-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.tool-intro { max-width: 960px; padding: clamp(22px, 4vw, 36px); }
.tool-intro-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.tool-intro-header .tool-icon { width: 44px; height: 44px; border-radius: 13px; }
.tool-intro .eyebrow { margin-bottom: 10px; }
.tool-intro .intro { margin-top: 14px; }
.tool-version-note { margin-top: 18px; color: var(--muted); font-size: 11px; }
@media (max-width: 850px) { .app-shell { width: 100%; display: block; }.sidebar { display: none; }.main-content { padding: 24px 18px 110px; }.topbar { margin-bottom: 28px; }.hero-row { display: block; }.hero-row .primary-button { margin-top: 20px; }.content-grid { grid-template-columns: 1fr; }.tool-cards { grid-template-columns: 1fr 1fr; }.mobile-nav { position: fixed; z-index: 5; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); }.mobile-nav-item { display: grid; gap: 3px; place-items: center; min-height: 44px; padding: 6px; border-radius: 9px; font-size: 11px; }.mobile-nav-item.is-active { color: var(--accent); background: var(--accent-soft); } }
.tool-mobile-nav { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .main-content { padding-inline: 14px; }.topbar h1 { font-size: 24px; }.topbar-actions { gap: 8px; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-card:last-child { grid-column: span 2; }.summary-card { padding: 14px; }.summary-card strong { font-size: 22px; }.panel { padding: 17px; }.tool-cards { grid-template-columns: 1fr; }.tool-card-featured { grid-column: auto; }.activity-state { display: none; }.setting-row { align-items: flex-start; flex-direction: column; }.toast { right: 14px; bottom: calc(90px + env(safe-area-inset-bottom)); left: 14px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .tool-card { transition: none; }.tool-card[href]:hover { transform: none; } }
.tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { min-height: 166px; padding: 20px 16px; align-items: center; justify-content: center; gap: 14px; box-shadow: none; border-top: 3px solid var(--studio-secondary); }
.tool-card .tool-icon, .studio-identity .tool-icon { width: 76px; height: 76px; border-radius: 22px; color: var(--studio-ink); background: var(--studio-tint); }
.tool-card .tool-icon .icon, .studio-identity .icon { width: 52px; height: 52px; }
.tool-card h3 { margin: 0; font-size: 17px; text-align: center; }
.tool-card[href]:hover { border-color: var(--studio-secondary); }
.studio-identity { display: inline-block; }
.sidebar .version-label { margin-top: auto; padding-top: 28px; }
.main-content { min-width: 0; }
@media (min-width: 851px) {
  :root[data-studio] .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .app-shell > [data-sidebar] { padding-inline: 14px 0; overflow: hidden; align-items: flex-start; }
  .app-shell > [data-sidebar] .brand { flex: none; width: 192px; margin-inline: 12px 0; gap: 18px; white-space: nowrap; }
  .app-shell > [data-sidebar] .nav-list { flex: none; width: 192px; }
  .app-shell > [data-sidebar] .nav-item { display: grid; grid-template-columns: 20px 1fr; gap: 30px; width: 192px; min-height: 46px; padding: 12px; white-space: nowrap; }
  :root[data-studio] [data-sidebar] .nav-item span { clip-path: none; position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; }
  :root[data-studio] [data-sidebar] .version-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 850px) {
  html { scrollbar-width: none; scrollbar-gutter: auto; }
  html::-webkit-scrollbar { width: 0; height: 0; }
  .mobile-nav { left: 10px; right: 10px; padding: 6px 2px; }
  .mobile-nav-item { min-width: 0; padding-inline: 2px; font-size: 10px; }
  .tool-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-card { min-height: 154px; padding: 16px 8px; } .tool-card h3 { font-size: 15px; } }

/* Viewport shell: only the workspace scrolls; navigation keeps its own height. */
html:has(.app-shell) { height:100%; overflow:hidden; scrollbar-gutter:auto; }
body:has(.app-shell) { height:100%; overflow:hidden; }
body .app-shell { height:100vh; height:100dvh; min-height:0; overflow:hidden; }
.app-shell > .main-content { height:100%; min-height:0; overflow:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; }
.app-shell > [data-sidebar] { height:100%; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; }
.app-shell > [data-sidebar] .nav-list { min-height:0; flex:0 1 auto; overflow-y:auto; overflow-x:clip; overscroll-behavior-y:contain; scrollbar-width:none; }
.app-shell > .cookbook-local-nav { height:100%; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; }
.main-content > .topbar { flex-wrap:wrap; }
.studio-version { flex:0 0 100%; color:var(--muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
@media (min-width:851px) {
  html[data-studio] .app-shell > .main-content :is(.finance-local-nav, .disc-local-nav) { position:sticky; top:0; align-self:start; height:100vh; height:100dvh; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; }
}
@media (max-width:850px) {
  html .app-shell > .main-content, html[data-studio] .app-shell > .main-content { scrollbar-gutter:auto; scrollbar-width:none; padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
  .app-shell > .main-content::-webkit-scrollbar { width:0; height:0; }
  html[data-studio] .main-content :is(.cookbook-mobile-nav, .disc-mobile-navigation, .finance-mobile-navigation) { position:sticky; top:0; z-index:4; margin-top:0; padding:8px 0; background:var(--bg); }
  html[data-studio="finance"] .finance-surface .finance-topbar { position:sticky; top:0; z-index:4; background:var(--bg); }
}
