* { box-sizing: border-box; }
i18n-text { display:contents; }
@media(max-width:480px) {
  .topbar {flex-wrap:wrap;gap:8px;}
  .topbar>.locale-switch {margin-left:auto;}
  .topbar>.portal-nav {order:3;width:100%;justify-content:flex-end;}
}
[data-locale-pending] body { visibility:hidden; }
.locale-switch { display:flex;align-items:center;gap:4px;flex-shrink:0; }
.locale-switch button { border:0;background:transparent;padding:6px;min-height:44px;cursor:pointer; }
.locale-switch button[aria-pressed=true] { font-weight:700;text-decoration:underline; }
body { margin: 0; color: var(--color-ink); background: var(--color-bg); font: 14px/22px var(--font-sans); -webkit-font-smoothing: antialiased;
  --bg: var(--color-bg); --panel: var(--color-surface); --ink: var(--color-ink); --muted: var(--color-muted); --line: var(--color-line); --accent: var(--color-accent); --accent-ink: var(--color-accent-ink); --accent-soft: var(--color-accent-soft); --danger: var(--color-danger); --ok: var(--color-success); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--color-ai); outline-offset: 3px; }
[hidden], .hidden { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 32px; line-height: 38px; margin-bottom: 12px; }
h2 { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
small, .hint { font-size: 12px; line-height: 18px; }
.muted, .hint { color: var(--muted); }
.sub { font-size: 16px; line-height: 26px; color: var(--muted); max-width: 720px; }
.eyebrow { font-size: 11px; line-height: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 12px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.stack { display: grid; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.hero { padding: 16px 0 28px; }
.topbar { min-height: 72px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; line-height: 18px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.brand-icon { border-radius: 8px; display: grid; place-items: center; width: 30px; height: 32px; background: var(--accent); color: #fff; font-size: 26px; }
.portal-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.portal-nav>a:not(.btn) { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 40px 64px; min-width: 0; }
.has-workspace .app-frame { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: calc(100dvh - 130px); }
.workspace-nav { background: #fff; border-right: 1px solid var(--line); padding: 28px 16px; }
.workspace-nav .eyebrow { padding-left: 12px; }
.workspace-nav>a { color: var(--muted); display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 6px; margin-bottom: 4px; font-size: 13px; }
.workspace-nav>a[aria-current=page] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.sidebar-note { margin: 64px 8px 0; padding: 16px; background: var(--bg); border-radius: 8px; font-size: 12px; }
.sidebar-note p { margin: 8px 0 16px; color: var(--muted); }
.sidebar-note small { font-size: 10px; line-height: 16px; color: var(--muted); }
.portal-footer { padding: 20px 32px; display: flex; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; background: #fff; }
.portal-footer>span { margin-right: auto; }
.portal-footer a { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; text-align: center; }
.btn:hover { background: var(--color-accent-hover); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--color-line-strong); }
.btn.ghost:hover { background: var(--color-surface-2); }
.btn.small { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.google-signin { width: 100%; min-height: 48px; margin: 24px 0 12px; font-size: 15px; }
.auth-email-options { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-email-options>summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; }
@media(max-width:480px) { .auth-form .btn.small { min-height: 44px; } }
label { display: block; font-size: 13px; font-weight: 500; margin-top: 18px; }
input:not([type=checkbox]):not([type=range]), select, textarea { width: 100%; min-width: 0; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--color-line-strong); border-radius: 6px; background: #fff; }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: middle; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 12px; }
.check-label input { flex-shrink: 0; }
.enhance-option { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 0; }
.enhance-head { display: flex; gap: 8px; align-items: center; padding: 0; font-weight: 600; font-size: 13px; }
.enhance-toggle { margin-top: 6px; }
.enhance-features { margin: 8px 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 20px; }
.check-label#rights-field { margin-top: 16px; }
.notice { padding: 14px 16px; margin-top: 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: var(--color-danger-soft); color: var(--danger); }
.notice.info { background: var(--color-ai-soft); color: var(--color-ai); }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); padding: 2px 8px; font-size: 11px; line-height: 18px; color: var(--muted); }
.pill[data-stage=editable] { background: var(--accent-soft); color: var(--accent-ink); border-color: #f3d8c8; }
.pill[data-stage=completed] { background: var(--color-success-soft); color: var(--ok); }
.pill[data-stage=failed] { background: var(--color-danger-soft); color: var(--danger); }
.pill[data-stage=cancelled] { color: var(--muted); }
.stat { font-size: 30px; line-height: 40px; font-weight: 600; margin: 8px 0; }
.price { font-size: 44px; line-height: 52px; font-weight: 600; margin: 20px 0; letter-spacing: -.03em; }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pricecard .btn { width: 100%; margin-top: 20px; }
.pricecard.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
td { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
code, .mono { font: 12px/20px var(--font-mono); overflow-wrap: anywhere; }
.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: center; max-width: 980px; margin: 36px auto; }
.auth-story h1 { font-size: 44px; line-height: 48px; margin: 24px 0; }
.auth-story .sub { max-width: 390px; }
.auth-art { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.auth-art .step { display: flex; gap: 16px; padding: 12px 0; font-size: 13px; }
.auth-art .step span { font: 12px var(--font-mono); color: var(--accent); }
.auth-tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 8px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; }
.auth-form .btn[type=submit] { margin-top: 24px; width: 100%; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.landing-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 64px 0 80px; }
.landing-hero h1 { font-size: 60px; line-height: 62px; letter-spacing: -.04em; margin: 24px 0; }
.landing-hero .row { margin: 28px 0 16px; }
.landing-hero .btn { min-height: 44px; }
.demo-frame { background: var(--stage-bg); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-3); color: var(--stage-ink); }
.demo-label { font: 10px/18px var(--font-mono); letter-spacing: .05em; color: var(--stage-muted); }
.demo-scene { position: relative; min-height: 260px; display: grid; place-items: center; background: linear-gradient(155deg,#233b45,#10222e); margin: 18px 0; border-radius: 8px; overflow: hidden; }
.demo-scene::before { content: 'N3'; font-size: 108px; color: #d9e2cf; font-weight: 750; opacity: .9; }
.demo-captions { position: absolute; bottom: 20px; left: 20px; right: 20px; text-align: center; font-weight: 600; text-shadow: 0 2px 4px #000; }
.demo-captions small { display: block; font-weight: 400; color: #e4e7ed; }
.marketing-section { padding: 44px 0; border-top: 1px solid var(--line); }
.marketing-section>.sub { margin-bottom: 28px; }
.feature-step { color: var(--accent); font: 12px var(--font-mono); margin-bottom: 18px; }
.feature-list { list-style: none; padding: 0; color: var(--muted); font-size: 13px; line-height: 30px; }
.feature-list li::before { content: '✓'; color: var(--ok); margin-right: 10px; }
.marketing-section details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.marketing-section summary { cursor: pointer; font-weight: 500; }
.marketing-section details p { margin-top: 14px; color: var(--muted); }
.cta-band { border-radius: 12px; background: var(--accent-soft); padding: 36px; margin: 32px 0; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 12px; }
.empty .btn { margin-top: 20px; }
.project-list { display: grid; gap: 12px; margin-top: 20px; }
.project-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.project-row h3 { font: 13px/20px var(--font-mono); margin-bottom: 6px; }
.project-row p { font-size: 12px; color: var(--muted); }
.project-row.has-dashboard-export { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.dashboard-export-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dashboard-export-action small { max-width: 260px; color: var(--muted); }
@media(max-width:1100px) {
  .project-row.has-dashboard-export { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-export-action { grid-column: 1/-1; justify-self: end; }
}
.filter-bar { display: flex; gap: 12px; margin-top: 28px; }
.filter-bar input { flex: 1; margin-top: 0 !important; }
.filter-bar select { max-width: 200px; margin-top: 0; }
.progress-list { list-style: none; padding: 0; margin: 24px 0; }
.progress-list li { padding: 16px; border-left: 2px solid var(--line); color: var(--muted); margin-left: 8px; }
.progress-list li.current { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.progress-list li.done { border-color: var(--ok); }
.asset-list { list-style: none; padding: 0; }
.asset-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.network-banner { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 100; background: #8A5A00; color: #fff; border-radius: 8px; padding: 12px 20px; width: min(600px,calc(100vw - 24px)); font-size: 12px; }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-shadow: var(--shadow-3); }
dialog::backdrop { background: #0f111578; }
dialog p { margin: 16px 0; }
dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.skip-link { position: fixed; top: -80px; left: 12px; background: #fff; padding: 12px; z-index: 200; }
.skip-link:focus { top: 8px; }
@media(max-width:1100px) { .landing-hero { gap: 32px; } .landing-hero h1 { font-size: 44px; line-height: 48px; } .auth-layout { gap: 32px; grid-template-columns: 1fr 420px; } .wrap { padding-left: 24px; padding-right: 24px; } .has-workspace .app-frame { grid-template-columns: 200px minmax(0,1fr); } }
@media(max-width:800px) { .has-workspace .app-frame { display: block; } .workspace-nav { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); } .workspace-nav>a { flex-shrink: 0; margin: 0; padding: 8px; font-size: 12px; } .workspace-nav .eyebrow,.sidebar-note { display: none; } .auth-layout { display: block; max-width: 460px; } .auth-story { display: none; } .landing-hero { grid-template-columns: 1fr; padding-top: 32px; } .two-col { grid-template-columns: 1fr; } .portal-nav { gap: 14px; } .topbar { padding: 12px 20px; } .project-row { gap: 12px; grid-template-columns: 1fr auto; } .project-row>.pill { grid-column: 2; grid-row: 1; } .project-row>.btn { grid-column: 1/-1; } }
@media(max-width:480px) { .wrap { padding: 24px 16px 48px; } .topbar { padding: 12px 16px; gap: 12px; } .brand { font-size: 13px; gap: 7px; } .brand-icon { width: 26px; height: 28px; } .portal-nav { gap: 10px; font-size: 12px; } .portal-nav>a[href$='/help'],.portal-nav>a[href$='#pricing'],.portal-nav>a[href$='/billing'] { display: none; } .portal-nav .btn { padding: 6px 9px; } .btn { min-height: 44px; } .btn.small { min-height: 40px; } .panel { padding: 20px; } .landing-hero h1 { font-size: 38px; line-height: 42px; } .landing-hero .row { align-items: stretch; } .demo-frame { padding: 16px; } .demo-scene { min-height: 200px; } .portal-footer { gap: 12px; padding: 20px 16px; } .portal-footer>span { width: 100%; } .filter-bar { flex-wrap: wrap; } .filter-bar select { max-width: none; } .auth-layout { margin-top: 12px; } .cta-band { padding: 24px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }

.feedback-dialog { border: 0; border-radius: 12px; padding: 24px; width: min(480px, calc(100vw - 32px)); background: var(--surface, #fff); color: inherit; }
.feedback-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.feedback-dialog textarea, .feedback-dialog select { width: 100%; }
.fb-drop { border: 1px dashed currentColor; border-radius: 8px; padding: 14px; font-size: 13px; opacity: .8; cursor: pointer; }
.fb-drop.over, .fb-drop:focus-visible { opacity: 1; outline: 2px solid var(--accent, #4f46e5); }
.fb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fb-thumb { position: relative; display: inline-block; }
.fb-thumb img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.fb-thumb button { position: absolute; top: 2px; right: 2px; min-height: 0; padding: 0 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.fb-item { padding: 12px 0; border-top: 1px solid rgba(128, 128, 128, .25); }
.fb-item p { margin: 6px 0 0; overflow-wrap: anywhere; }
.fb-reply-form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.fb-reply-form textarea { flex: 1 1 240px; }
