:root {
  color-scheme: light;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-soft: #f3f5fa;
  --text: #202839;
  --muted: #657086;
  --border: #e4e8f0;
  --input-border: #d9dfeb;
  --accent: #4a5de2;
  --accent-hover: #384ac7;
  --accent-soft: #eef0ff;
  --mint: #e8f6ef;
  --mint-ink: #27795c;
  --peach: #fff1e8;
  --peach-ink: #aa6239;
  --danger: #ba344b;
  --shadow: 0 4px 24px #28366304;
  --focus: #7f8bff;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #10131c;
  --surface: #191e2b;
  --surface-soft: #202636;
  --text: #edf0f8;
  --muted: #a0acc2;
  --border: #2c3447;
  --input-border: #3a445a;
  --accent: #a1aaff;
  --accent-hover: #bbc2ff;
  --accent-soft: #282e50;
  --mint: #1b3933;
  --mint-ink: #87d5b3;
  --peach: #3c302b;
  --peach-ink: #edb28e;
  --danger: #ff9aaa;
  --shadow: 0 4px 24px #0000000a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 13px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .16s, border-color .16s; }
[data-theme='dark'] button, [data-theme='dark'] .button { color: #151a33; }
button:hover:not(:disabled), .button:hover { background: var(--accent-hover); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary, .button.secondary { background: var(--surface); border-color: var(--input-border); color: var(--text); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-soft); border-color: var(--muted); }
button.quiet { background: var(--surface-soft); color: var(--muted); }
button.quiet:hover { background: var(--border); }
button.danger { color: var(--danger); background: transparent; border-color: var(--border); font-size: 12px; }
button.danger:hover { color: var(--surface); background: var(--danger); }
button.small, .button.small { font-size: 12px; padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--input-border); border-radius: 9px; padding: 13px 14px; color: var(--text); background: var(--surface); line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
textarea { display: block; resize: vertical; min-height: 136px; }
select { cursor: pointer; }
label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.5px; }
h3 { font-size: 16px; letter-spacing: -.3px; }
p { line-height: 1.7; }
.icon { flex-shrink: 0; vertical-align: middle; }
button .icon, .button .icon { width: 17px; height: 17px; }
.hidden { display: none !important; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { max-width: 1184px; margin: auto; padding: 19px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; background: var(--accent); color: white; border-radius: 9px; }
[data-theme='dark'] .brand-mark { color: #151a33; }
.brand-mark .icon { width: 25px; height: 25px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
button.theme-toggle { background: transparent; color: var(--muted); width: 36px; height: 36px; padding: 8px; border-radius: 50%; }
button.theme-toggle:hover { background: var(--surface-soft); color: var(--text); }
.theme-sun { display: none; }
[data-theme='dark'] .theme-sun { display: block; }
[data-theme='dark'] .theme-moon { display: none; }
main { max-width: 1184px; margin: auto; padding: 0 32px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; color: var(--accent); line-height: 1.6; }
.panel, .card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 28px; box-shadow: var(--shadow); }
.heading { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.heading > div { min-width: 0; }
.heading h2 { margin: 0 0 3px; }
.heading p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.6; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; border: 1px solid transparent; border-radius: 11px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.tool-icon.mint { background: var(--mint); color: var(--mint-ink); }
.tool-icon.peach { background: var(--peach); color: var(--peach-ink); }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.inputrow, .search { display: flex; align-items: center; gap: 10px; }
.inputrow input, .search input { flex: 1; }
.inputrow button, .search button { flex-shrink: 0; }
.status { color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.panel-footnote { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.panel-footnote .icon { width: 14px; height: 14px; }
footer { max-width: 1120px; margin: auto; padding: 24px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.footer-brand { font-size: 14px; color: var(--text); letter-spacing: -.4px; gap: 5px; }
.footer-brand .icon { width: 17px; height: 17px; }
.footer-portal { color: var(--accent); text-decoration: none; }
.footer-portal:hover { text-decoration: underline; }
.auth-dialog { width: min(92vw, 460px); max-height: 90vh; padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px #00000040; }
.auth-dialog::backdrop { background: #10152499; backdrop-filter: blur(5px); }
.auth-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.auth-dialog h2 { margin: 10px 0; font-size: 27px; letter-spacing: -.8px; }
.auth-lead { color: var(--muted); margin-bottom: 24px; }
button.icon-button { width: 32px; height: 32px; padding: 0; background: var(--surface-soft); color: var(--muted); font-size: 24px; }
button.icon-button:hover { background: var(--border); }
.auth-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 24px 0 0; text-align: center; }
#authError { color: var(--danger); font-size: 12px; overflow-wrap: anywhere; }
#authError:empty { display: none; }
hanko-auth { --background-color: var(--surface); --foreground-color: var(--text); --color: var(--text); --brand-color: var(--accent); --border-color: var(--input-border); --border-radius: 9px; --font-family: 'Inter', sans-serif; --font-size: 14px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 10; background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; padding: 12px; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  main { padding-left: 24px; padding-right: 24px; }
  footer { margin-left: 24px; margin-right: 24px; }
  .panel, .card { padding: 24px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 16px 20px; flex-wrap: wrap; gap: 14px; }
  .brand { font-size: 18px; }
  .header-actions { gap: 8px; }
  main { padding: 0 18px 40px; }
  .panel, .card { padding: 22px 18px; border-radius: 12px; }
  .heading { gap: 10px; margin-bottom: 23px; }
  .heading h2 { font-size: 17px; }
  footer { margin: 0 20px; padding: 22px 0; flex-wrap: wrap; justify-content: center; text-align: center; }
  footer > :last-child { flex-basis: 100%; }
  .inputrow, .search { flex-wrap: wrap; }
  .inputrow > input, .search > input { flex-basis: 100%; }
  .auth-dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
nav { display: flex; gap: 28px; font-size: 12px; font-weight: 500; color: var(--muted); }
nav a { padding: 8px 0; }
nav a:hover, nav .nav-active { color: var(--accent); }
.hero { text-align: center; padding: 64px 0 56px; }
.hero .eyebrow { padding: 6px 12px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); font-size: 10px; letter-spacing: .25px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; background: var(--mint-ink); border-radius: 50%; }
h1 { font-size: clamp(40px, 5.2vw, 65px); font-weight: 650; line-height: 1.12; letter-spacing: -3.4px; margin: 23px 0 20px; }
h1 span { color: var(--accent); }
.hero > p { color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 24px; }
.hero-notes { display: flex; justify-content: center; gap: 23px; color: var(--muted); font-size: 10px; }
.hero-notes span { display: flex; align-items: center; gap: 5px; }
.hero-notes .icon { color: var(--mint-ink); width: 13px; height: 13px; }
.workspace-label { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--muted); font-size: 10px; }
.workspace-label > :first-child { font-weight: 600; letter-spacing: 1.4px; }
.writer-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.writer-panel { padding: 30px; }
.tag { align-self: flex-start; margin-left: auto; background: var(--accent-soft); color: var(--accent); padding: 5px 9px; border-radius: 5px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.url-row input { font-size: 12px; }
.url-row button { padding-left: 16px; padding-right: 16px; font-size: 12px; }
.field-hint { font-size: 10px; margin: 9px 0 25px; }
.generation-options { display: flex; gap: 20px; align-items: end; justify-content: space-between; }
.generation-options > div { flex: 1; max-width: 240px; }
.generation-options select { font-size: 12px; }
.generation-options button { font-size: 12px; white-space: nowrap; }
.writer-panel > .panel-footnote { margin-top: 26px; }
.article { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; padding: 18px; margin: 0 0 24px; overflow-wrap: anywhere; }
.article h3 { margin: 9px 0; }
.article p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.guide-card { background: var(--accent-soft); border: 1px solid var(--border); padding: 28px; border-radius: 15px; }
.guide-card .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
.guide-card h2 { font-size: 27px; letter-spacing: -.9px; line-height: 1.25; margin: 15px 0 12px; }
.guide-card > p { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 19px; }
.steps li { display: flex; gap: 11px; }
.steps li > span { flex-shrink: 0; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--input-border); border-radius: 50%; color: var(--accent); font-size: 10px; font-weight: 600; }
.steps strong { display: block; font-size: 11px; font-weight: 600; margin: 2px 0 3px; }
.steps p { font-size: 10px; color: var(--muted); margin: 0; }
.guide-footer { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--input-border); padding-top: 19px; margin-top: 24px; font-size: 9px; color: var(--muted); }
.guide-footer .icon { width: 14px; height: 14px; color: var(--accent); }
.section-label { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 46px 0 19px; }
.section-label .eyebrow { font-size: 9px; letter-spacing: 1.3px; color: var(--muted); }
.section-label h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.65px; }
.section-label > .hint { font-size: 10px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.columns textarea { font-size: 12px; }
.tool-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tool-actions .hint { font-size: 10px; }
.tool-actions button { font-size: 11px; }
.cards { display: grid; gap: 14px; }
.cards:empty { display: none; }
.cards:not(:empty) { margin-top: 24px; }
.post { border: 1px solid var(--border); padding: 18px; background: var(--surface-soft); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.post p { white-space: pre-wrap; line-height: 1.75; margin-bottom: 12px; }
.post small { color: var(--muted); font-size: 11px; }
.post-actions { display: flex; gap: 8px; margin-top: 14px; }
.post-actions button { font-size: 11px; padding: 8px 12px; }
#shareResult:not(:empty) { display: grid; gap: 10px; margin-top: 20px; }
#shareResult input { font-size: 12px; }
#shareResult button { justify-self: start; font-size: 12px; }
.account-panel { margin-top: 28px; background: linear-gradient(115deg, var(--surface), var(--accent-soft)); }
.account-panel .heading { margin-bottom: 22px; }
.account-summary { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
.account-summary p { margin: 0 0 4px; overflow-wrap: anywhere; }
#accountDetails { font-weight: 600; font-size: 18px; }
#hankoIdentity { max-width: 360px; }
.campaign-form { max-width: 600px; }
.campaign-form label { margin-top: 16px; }
.campaign-form button { margin-top: 18px; }
.danger-zone { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
@media (max-width: 1000px) { .writer-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }.writer-panel { padding: 24px; }.guide-card { padding: 24px; }.url-row { flex-wrap: wrap; }.url-row input { flex-basis: 100%; }.generation-options { flex-wrap: wrap; }.guide-card h2 { font-size: 25px; } }
@media (max-width: 800px) { .writer-layout { grid-template-columns: 1fr; }.guide-card { display: none; }.url-row { flex-wrap: nowrap; }.url-row input { flex-basis: auto; }.generation-options { flex-wrap: nowrap; }.header-inner { flex-wrap: wrap; }.header-inner nav { gap: 18px; }.columns { grid-template-columns: 1fr; }.account-summary { align-items: start; flex-direction: column; } }
@media (max-width: 600px) {
  .header-inner nav { order: 3; flex-basis: 100%; justify-content: center; padding-top: 8px; border-top: 1px solid var(--border); gap: 34px; }
  .header-actions .button { font-size: 11px; padding: 8px 10px; }.header-actions .button .icon { display: none; }
  .hero { padding: 42px 0 36px; }h1 { letter-spacing: -2px; font-size: 42px; }.hero > p { font-size: 13px; }.hero .eyebrow { font-size: 9px; }.hero-notes { gap: 12px; font-size: 9px; }.desktop-break { display: none; }
  .workspace-label > :last-child { display: none; }.workspace-label { font-size: 9px; }.tag { font-size: 8px; padding: 5px 6px; }
  .url-row { flex-wrap: wrap; }.url-row input { flex-basis: 100%; }.url-row button { width: 100%; }
  .generation-options { flex-direction: column; align-items: stretch; gap: 16px; }.generation-options > div { max-width: none; }
  .section-label { margin-top: 34px; }.section-label h2 { font-size: 20px; }.section-label > .hint { display: none; }
  .tool-actions { flex-wrap: wrap; }
}
