:root {
  color-scheme: light;
  --page: #ffffff;
  --sidebar: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-tint: #f0efff;
  --ink: #111427;
  --muted: #667085;
  --muted-light: #98a1b3;
  --line: #e7eaf1;
  --line-strong: #dce0ea;
  --accent: #6558f5;
  --accent-strong: #7d3ee7;
  --accent-soft: #efedff;
  --accent-ring: rgba(101, 88, 245, .16);
  --success: #12b981;
  --warning: #f59e0b;
  --pink: #ef5da8;
  --blue: #4d7cfe;
  --cyan: #11a9d8;
  --shadow-card: 0 2px 8px rgba(29, 35, 58, .045);
  --shadow-hover: 0 12px 28px rgba(83, 69, 175, .10);
  --shadow-button: 0 8px 20px rgba(101, 88, 245, .28);
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1120;
  --sidebar: #151727;
  --surface: #191b2e;
  --surface-soft: #202338;
  --surface-tint: #292549;
  --ink: #f6f7ff;
  --muted: #a6acc0;
  --muted-light: #747b92;
  --line: #2b2f45;
  --line-strong: #3a405b;
  --accent: #9185ff;
  --accent-strong: #aa6af3;
  --accent-soft: #2a2752;
  --accent-ring: rgba(145, 133, 255, .2);
  --success: #44d4a3;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, .16);
  --shadow-hover: 0 14px 30px rgba(0, 0, 0, .24);
  --shadow-button: 0 8px 24px rgba(85, 65, 220, .30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  border-radius: 8px;
  background: var(--ink);
  color: var(--page);
  padding: 8px 12px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; display: flex; align-items: flex-start; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 260px;
  height: 100vh;
  flex: 0 0 260px;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  padding: 20px 16px 16px;
  scrollbar-width: thin;
}

.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b63f5, #7d3ee7);
  color: white;
  box-shadow: 0 7px 16px rgba(101, 88, 245, .24);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.brand-copy small { margin-top: 5px; color: var(--muted-light); font-size: 10px; font-weight: 600; white-space: nowrap; }
.sidebar-close { display: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; background: var(--surface-soft); }
.sidebar-close svg { width: 17px; }

.tool-search {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 11px;
  color: var(--muted-light);
  box-shadow: var(--shadow-card);
}
.tool-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tool-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.tool-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.tool-search input::placeholder { color: var(--muted-light); }
.tool-search kbd { border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); padding: 2px 5px; color: var(--muted-light); font-family: inherit; font-size: 9px; white-space: nowrap; }

.tool-nav, .category-nav { display: grid; gap: 3px; }
.tool-nav { margin-top: 14px; }
.nav-item, .category-item {
  width: 100%;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.nav-item { min-height: 40px; gap: 11px; padding: 0 11px; font-size: 12px; font-weight: 700; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover, .nav-item.is-active { background: var(--accent-soft); color: var(--accent); }
.nav-count { display: grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); font-size: 9px; }
.sidebar-divider { height: 1px; margin: 14px 8px 15px; background: var(--line); }
.sidebar-label { margin: 0 11px 8px; color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.category-item { min-height: 34px; gap: 9px; padding: 0 10px; font-size: 11.5px; font-weight: 600; }
.category-item:hover, .category-item.is-active { background: color-mix(in srgb, var(--accent-soft) 72%, transparent); color: var(--ink); }
.category-item.is-active { font-weight: 800; }
.category-icon { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; color: var(--muted); }
.category-icon svg { width: 15px; height: 15px; }
.category-icon.flame { color: #fb6b35; }
.category-icon.purple, .category-icon.violet { color: var(--accent); }
.category-icon.blue { color: var(--blue); }
.category-icon.pink { color: var(--pink); }
.category-icon.cyan { color: var(--cyan); }
.category-icon.green { color: var(--success); }
.category-icon.amber { color: var(--warning); }

.sidebar-note { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line)); border-radius: 14px; background: linear-gradient(145deg, var(--surface), var(--accent-soft)); padding: 13px; }
.note-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--pink) 13%, transparent); color: var(--pink); }
.note-icon svg { width: 15px; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note p { margin: 3px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }

.sidebar-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(10, 12, 24, .46); backdrop-filter: blur(3px); }
.workspace { min-width: 0; flex: 1; }
.workspace-main { position: relative; width: 100%; padding: 22px 42px 80px; }
.utility-bar { height: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.mobile-header { display: none; }

.theme-switch {
  width: 58px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 0 8px;
  color: var(--muted-light);
}
.theme-switch > svg { width: 13px; height: 13px; }
.theme-thumb { position: absolute; left: 3px; top: 3px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #657087; color: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform 180ms ease, background 180ms ease; }
.theme-thumb svg { width: 11px; height: 11px; }
[data-theme="dark"] .theme-thumb { background: var(--accent); transform: translateX(30px); }
.share-button, .generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #5b60f3, #7d3ee7);
  color: white;
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-button);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.share-button { height: 36px; padding: 0 15px; }
.share-button:hover, .generate-button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(101, 88, 245, .34); }
.share-button svg, .generate-button svg { width: 14px; height: 14px; }

.hero { position: relative; max-width: 820px; padding-top: 12px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 5px 11px; font-size: 10px; font-weight: 800; }
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
h1, h2 { margin: 0; font-family: "Manrope", "DM Sans", sans-serif; letter-spacing: -.045em; }
h1 { margin-top: 9px; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; line-height: 1.1; }
h1 span { background: linear-gradient(120deg, var(--accent), var(--accent-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero > p { max-width: 700px; margin: 7px 0 0; color: var(--muted); font-size: clamp(13px, 1.35vw, 16px); line-height: 1.55; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 14px; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; border-radius: 50%; background: var(--success); color: white; padding: 3px; stroke-width: 3; }
.hero-doodle { position: absolute; top: 8px; left: min(78vw, 790px); width: 140px; display: grid; justify-items: center; color: var(--muted); transform: rotate(-3deg); pointer-events: none; }
.hero-doodle span { font-family: "Caveat", cursive; font-size: 16px; font-weight: 600; line-height: 1.15; text-align: center; }
.hero-doodle svg { width: 50px; height: 50px; margin-top: 2px; stroke-width: 1.4; transform: rotate(10deg); }

.input-section { margin-top: 20px; }
.input-shell { height: 58px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); padding: 7px 9px 7px 15px; box-shadow: 0 5px 20px rgba(35, 40, 74, .065); transition: border-color 150ms ease, box-shadow 150ms ease; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), 0 8px 24px rgba(35, 40, 74, .08); }
.input-sparkle { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); }
.input-shell input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 600; }
.input-shell input::placeholder { color: var(--muted-light); font-weight: 500; }
#character-count { flex: 0 0 auto; color: var(--muted-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.clear-input { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted-light); }
.clear-input:hover { background: var(--surface-soft); color: var(--ink); }
.clear-input svg { width: 15px; height: 15px; }
.generate-button { height: 42px; flex: 0 0 auto; padding: 0 18px; border-radius: 10px; }

.results-section { scroll-margin-top: 24px; padding-top: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title-wrap { display: flex; align-items: center; gap: 9px; }
.section-title-wrap > svg { width: 19px; height: 19px; color: var(--accent); }
.section-title-wrap h2 { font-size: 18px; font-weight: 800; line-height: 1.15; }
.section-title-wrap span { display: block; margin-top: 2px; color: var(--muted-light); font-size: 9px; }
.section-actions { display: flex; align-items: center; gap: 14px; }
.text-action, .view-all-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-size: 10.5px; font-weight: 800; }
.text-action { color: var(--muted); }
.view-all-button { color: var(--accent); }
.text-action:hover, .view-all-button:hover { color: var(--accent-strong); }
.text-action svg, .view-all-button svg { width: 14px; height: 14px; }

.style-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.style-card { min-width: 0; height: 108px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 12px 13px; box-shadow: var(--shadow-card); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.style-card:hover { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.style-card.colorful-card { position: relative; isolation: isolate; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 14%, var(--line)); }
.style-card.colorful-card::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 18% 120%, rgba(255, 114, 154, .09), transparent 43%), radial-gradient(circle at 96% -14%, rgba(91, 86, 255, .10), transparent 45%); content: ""; pointer-events: none; }
.style-card.colorful-card:hover { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); }
.card-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 4px; }
.card-action { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }
.card-action:hover { background: var(--accent-soft); color: var(--accent); }
.card-action svg { width: 13px; height: 13px; }
.favorite-button.is-favorite { background: color-mix(in srgb, var(--warning) 13%, var(--surface)); color: var(--warning); }
.favorite-button.is-favorite svg { fill: currentColor; }
.copy-button.copied { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.style-preview { min-width: 0; flex: 1; display: flex; align-items: center; overflow: hidden; color: var(--ink); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.style-preview.is-colorful { gap: 5px; overflow: hidden; padding-top: 4px; }
.color-glyph { display: inline-grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 900; line-height: 1; }
.color-glyph.is-space { width: 5px; flex-basis: 5px; }
.emoji-glyph { border-radius: 7px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 4px 9px rgba(41, 45, 90, .12); text-shadow: 0 1px 1px rgba(0,0,0,.14); transform: rotate(-2deg); }
.emoji-glyph:nth-child(2n) { border-radius: 50%; transform: rotate(2deg); }
.rainbow-glyph { width: auto; min-width: 15px; height: auto; flex-basis: auto; font-size: 21px; text-shadow: 0 3px 10px currentColor; }
.candy-glyph { border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 50%; background: color-mix(in srgb, currentColor 10%, var(--surface)); font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 10px rgba(42, 44, 84, .08); }
.neon-glyph { border: 1px solid currentColor; border-radius: 6px; background: #17162a; font-size: 13px; box-shadow: 0 0 9px color-mix(in srgb, currentColor 55%, transparent), inset 0 0 8px color-mix(in srgb, currentColor 22%, transparent); text-shadow: 0 0 6px currentColor; }
.tone-0 { color: #6b5cff; }
.tone-1 { color: #2f9cf4; }
.tone-2 { color: #ff4f8b; }
.tone-3 { color: #23b986; }
.tone-4 { color: #f4a62a; }
.tone-5 { color: #a74ee9; }
.emoji-glyph.tone-0 { background: linear-gradient(145deg, #8272ff, #5a45e8); }
.emoji-glyph.tone-1 { background: linear-gradient(145deg, #49b8ff, #267ae7); }
.emoji-glyph.tone-2 { background: linear-gradient(145deg, #ff759d, #ef366e); }
.emoji-glyph.tone-3 { background: linear-gradient(145deg, #42d5a4, #17a36f); }
.emoji-glyph.tone-4 { background: linear-gradient(145deg, #ffc260, #f08d21); }
.emoji-glyph.tone-5 { background: linear-gradient(145deg, #c66cf0, #8e3bd3); }
.emoji-glyph.tone-0, .emoji-glyph.tone-1, .emoji-glyph.tone-2, .emoji-glyph.tone-3, .emoji-glyph.tone-4, .emoji-glyph.tone-5 { color: #fff; }
.style-card[data-category="small"] .style-preview { font-size: 15px; letter-spacing: .04em; }
.style-card[data-category="effects"] .style-preview { font-size: 17px; }
.style-card[data-category="symbols"] .style-preview { font-size: 15px; }

.empty-state { min-height: 220px; place-items: center; align-content: center; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
.empty-state:not([hidden]) { display: grid; }
.empty-state svg { width: 28px; height: 28px; color: var(--accent); }
.empty-state strong { margin-top: 8px; color: var(--ink); }
.empty-state p { margin: 3px 0 0; font-size: 11px; }
.load-more-button { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); padding: 0 20px; font-size: 11px; font-weight: 800; box-shadow: var(--shadow-card); }
.load-more-button:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent); }
.load-more-button svg { width: 14px; height: 14px; }

.information-band { scroll-margin-top: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); margin-top: 80px; border-block: 1px solid var(--line); padding: 54px 0; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.information-band h2, .faq-section h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.information-copy { color: var(--muted); font-size: 14px; line-height: 1.7; }
.information-copy p { margin: 0; }
.information-copy p + p { margin-top: 14px; }
.faq-section { scroll-margin-top: 28px; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 110px); padding-top: 74px; }
.faq-intro { align-self: start; position: sticky; top: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-family: "DM Sans", sans-serif; font-size: 18px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 700px; margin: -2px 44px 22px 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.footer-brand > span:last-child { display: grid; }
.footer-brand strong { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 12px; }
.footer-brand small { margin-top: 2px; color: var(--muted-light); font-size: 8px; }
.footer-meta { display: grid; justify-items: end; gap: 8px; }
.footer-meta p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 700; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.legal-page { min-height: 100vh; }
.legal-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 72px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-back { color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.legal-back:hover { color: var(--accent-strong); }
.legal-content { padding-top: 48px; }
.legal-content h1 { margin: 0; font-size: clamp(36px, 7vw, 54px); }
.legal-updated { margin: 10px 0 30px; color: var(--muted-light); font-size: 12px; }
.legal-content h2 { margin-top: 34px; font-size: 20px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--accent); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; min-height: 46px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--ink); color: var(--page); padding: 7px 14px 7px 8px; box-shadow: 0 18px 40px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 170ms ease, transform 170ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--success); color: white; }
.toast svg { width: 15px; height: 15px; stroke-width: 3; }
.toast strong { font-size: 11px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 2px; }
.input-shell input:focus-visible, .tool-search input:focus-visible { outline: none; }

@media (max-width: 1180px) {
  .workspace-main { padding-inline: 30px; }
  .hero-doodle { display: none; }
  .style-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); box-shadow: 18px 0 45px rgba(0,0,0,.18); transition: transform 200ms ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .mobile-header { position: sticky; top: 0; z-index: 20; height: 64px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 90%, transparent); padding: 0 20px; backdrop-filter: blur(14px); }
  .mobile-menu, .icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
  .mobile-menu svg, .icon-button svg { width: 18px; height: 18px; }
  .mobile-brand { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font-family: "Manrope", sans-serif; text-decoration: none; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 16px; }
  .mobile-brand strong { font-size: 14px; }
  .utility-bar { display: none; }
  .workspace-main { padding: 24px 30px 70px; }
  .hero { padding-top: 0; }
  .style-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-preview { font-size: 18px; }
}

@media (max-width: 620px) {
  .workspace-main { padding: 20px 16px 60px; }
  .mobile-header { padding-inline: 14px; }
  h1 { font-size: clamp(35px, 10vw, 44px); }
  .hero > p { font-size: 13px; }
  .trust-row { gap: 10px 15px; margin-top: 13px; }
  .input-section { margin-top: 18px; }
  .input-shell { height: auto; min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 7px; }
  .input-sparkle { margin-left: 6px; }
  .input-shell input { min-height: 42px; }
  #character-count { grid-column: 3; grid-row: 1; }
  .clear-input { grid-column: 4; grid-row: 1; }
  .clear-input:not([hidden]) + .generate-button { grid-column: 1 / -1; }
  .generate-button { grid-column: 1 / -1; height: 40px; }
  .results-section { padding-top: 24px; }
  .section-heading { align-items: flex-end; }
  .section-actions .text-action { display: none; }
  .style-list { grid-template-columns: 1fr; gap: 11px; }
  .style-card { height: 104px; }
  .style-preview { font-size: 19px; }
  .information-band, .faq-section { grid-template-columns: 1fr; gap: 26px; }
  .information-band { margin-top: 64px; padding-block: 44px; }
  .faq-section { padding-top: 60px; }
  .faq-intro { position: static; }
  footer { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; }
  footer p { margin: 0; }
  .footer-meta { justify-items: start; }
  .legal-shell { width: min(100% - 32px, 760px); padding-top: 20px; }
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-content { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
