:root {
  --sidebar-width: 212px;
  --ink: #11192e;
  --muted: #7f89a1;
  --quiet: #8e97ac;
  --line: #edf1f7;
  --accent: #1876ff;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
body { background: #f8fbff; }
button { font-weight: 400; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: #2c80ff; }
input:focus, textarea:focus { border-color: #7fb2ff; box-shadow: 0 0 0 3px #1c7cff0b; }
.sidebar { width: var(--sidebar-width); padding: 13px 8px 60px; border-right: 1px solid #edf1f7; background: linear-gradient(115deg, #fff 25%, #fcfdff 100%); }
.brand { margin: 0 19px 25px; gap: 13px; height: 49px; }
.brand-mark { width: 40px; height: 49px; }
.brand-mark img { width: 82px; height: 82px; top: -8px; left: -21px; }
.brand-wordmark { font-size: 30px; font-weight: 750; letter-spacing: .2px; color: #080f22; }
nav { gap: 11px; }
.nav-item { min-height: 45px; padding: 10px 24px; border-radius: 10px; color: #171f37; font-size: 15px; gap: 19px; position: relative; }
.nav-item .icon { width: 23px; height: 23px; color: #455b8f; stroke-width: 1.7; }
.nav-item:hover { background: #f4f8ff; }
.nav-item.active { color: #0769ff; background: #eaf3ff; font-weight: 600; }
.nav-item.active::before { position: absolute; content: ""; width: 3px; height: 30px; border-radius: 2px; background: #2479ff; left: 1px; top: calc(50% - 15px); }
.nav-item.active .icon { color: #3682f6; }
.nav-item.active .home-icon { fill: #5698ff; stroke: #5698ff; }
.sidebar-bottom { padding: 0 8px; margin-top: auto; }
.upgrade-card { position: relative; overflow: hidden; padding: 17px 16px 14px; height: 140px; border-radius: 15px; background: linear-gradient(115deg, #fff5da, #fff8e7); margin-bottom: 27px; }
.upgrade-card::before, .upgrade-card::after { content: ""; position: absolute; transform: rotate(42deg); width: 23px; height: 140px; background: linear-gradient(#ffe19b80, #fff0c721); right: 4px; top: 20px; pointer-events: none; }
.upgrade-card::after { right: 39px; top: 20px; width: 9px; opacity: .7; }
.upgrade-title { display: flex; align-items: center; gap: 12px; }
.upgrade-title .icon { width: 25px; height: 25px; color: #f5aa0a; fill: #ffc44b; stroke-width: 1.4; }
.upgrade-title strong { font-size: 14px; font-weight: 650; color: #252328; }
.upgrade-card p { margin: -1px 0 12px 38px; font-size: 12px; line-height: 1.75; color: #8a7c5c; }
.upgrade-card button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; border: 0; border-radius: 25px; background: linear-gradient(110deg, #f9cc71, #ffc850); color: #825618; font-size: 12px; font-weight: 600; gap: 9px; }
.upgrade-card button .icon { width: 15px; height: 15px; }
.account-entry { display: flex; align-items: center; gap: 11px; width: 100%; padding: 0 10px; border: 0; background: transparent; text-align: left; color: #16223c; }
.account-portrait { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: #dbe9fc url('/assets/reference-sheet.png') -26px -980px / 1448px 1086px; border: 1px solid #e5eaf1; }
.account-info { min-width: 0; }
.account-info strong { display: block; font-size: 13px; font-weight: 600; max-width: 83px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-info small { display: block; color: #8790a7; font-size: 11px; margin-top: 1px; }
.account-entry > .icon { width: 16px; height: 16px; margin-left: auto; color: #455778; }
main { background: radial-gradient(ellipse at 65% 0%, #fff 20%, #f9fcff 75%); }
.studio-topbar { height: 55px; display: flex; align-items: center; justify-content: flex-end; padding: 0 29px; border-bottom: 1px solid #f0f3f8; background: #ffffffb8; }
.topbar-account { display: flex; align-items: center; height: 100%; gap: 20px; }
.notification-button { position: relative; color: #16233e; }
.notification-button .icon { width: 23px; height: 23px; }
.notification-button i { position: absolute; right: 7px; top: 5px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #fff; background: #ef3f4c; }
.topbar-divider { width: 1px; height: 24px; background: #edf0f6; }
.top-account { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: #152039; }
.top-avatar { display: grid; place-items: center; height: 35px; width: 35px; border-radius: 50%; background: linear-gradient(140deg, #80c0ff, #0963fb 80%); color: #fff; font-size: 18px; box-shadow: inset 0 1px 2px #ffffff90; }
.top-account strong { font-weight: 600; font-size: 13px; }
.top-account .icon { width: 15px; height: 15px; }
.mobile-menu { display: none; }
.studio-view { max-width: none; padding: 0 20px 27px 18px; }
.studio-hero { height: 165px; position: relative; margin: 0 -20px 0 -18px; padding: 26px 36px 0; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { color: #a8b8d3; font-size: 11px; letter-spacing: 4.4px; font-weight: 550; line-height: 18px; }
.studio-hero h1 { color: #070e22; font-size: clamp(29px, 2.9vw, 42px); line-height: 1.43; letter-spacing: -.1px; margin-top: 9px; font-weight: 750; white-space: nowrap; }
.studio-hero h1 em { color: #1680ff; font-style: normal; font-size: 1.2em; line-height: 0; letter-spacing: -.3px; margin-inline: 2px; }
.studio-hero h1 > span { color: #0769ff; }
.studio-hero .hero-copy > p { font-size: 18.5px; color: #7b86a0; margin-top: 0; letter-spacing: .1px; line-height: 1.8; }
.hero-art { position: absolute; width: 630px; height: 165px; top: 0; right: 0; background: url('/assets/reference-sheet.png') -818px -55px / 1448px 1086px; pointer-events: none; }
.hero-art > * { display: none; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 14px; align-items: start; }
.studio-main { min-width: 0; }
.studio-card { border: 1px solid #edf1f7; border-radius: 13px; background: #ffffffed; box-shadow: 0 3px 18px #6689ba04; }
.input-grid { display: grid; grid-template-columns: minmax(0, 1.51fr) minmax(0, 1fr); gap: 12px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 23px; }
.panel-heading h2, .recommendations-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 650; color: #11182b; white-space: nowrap; line-height: 1.5; }
.panel-heading h2 > .icon { width: 23px; height: 23px; color: #3d8bff; }
.panel-heading h2 small { font-size: 11px; font-weight: 400; color: #929bb0; margin-left: -6px; }
.panel-heading .blue-file { fill: #5ca1ff; stroke: #fff; background: linear-gradient(130deg, #74b4ff, #217cff); border-radius: 4px; padding: 2px; }
.upload-jd-icon { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border: 0; padding: 0; background: transparent; }
.upload-jd-icon .icon { width: 23px; height: 23px; }
.jd-panel.drag-active { border-color: #69a5ff; background: #f6faff; }
.panel-heading .blue-user { fill: #76b2ff; stroke: #5798ef; width: 21px; height: 21px; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; padding: 0; background: transparent; font-size: 11px; color: #8995af; white-space: nowrap; }
.quiet-button:hover { color: #1977ff; }
.quiet-button .icon { width: 14px; height: 14px; }
.jd-panel { padding: 17px 17px 22px; height: 330px; }
#generate-form { padding: 0; }
.jd-editor { position: relative; margin-top: 13px; border: 1px solid #e6edf8; border-radius: 9px; height: 251px; overflow: hidden; box-shadow: inset 0 1px 3px #728caf03; }
#jd-text { border: 0; border-radius: 0; box-shadow: none; padding: 9px 12px 31px; background: transparent; height: 100%; min-height: 0; max-height: none; width: 100%; display: block; resize: none; font-size: 14px; color: #30364a; line-height: 1.58; letter-spacing: -.1px; scrollbar-width: thin; scrollbar-color: #d5dce8 #f9faff; }
#jd-text:focus { outline: none; }
.jd-editor:focus-within { border-color: #93baff; box-shadow: 0 0 0 2px #3086ff08; }
.jd-counter { position: absolute; bottom: 3px; right: 6px; padding: 1px 5px 0 12px; background: linear-gradient(90deg, #ffffff00, #fff 13%); color: #8997b1; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.keywords-panel { padding: 17px 16px 13px; height: 330px; display: flex; flex-direction: column; align-items: flex-start; }
.keywords-panel .panel-heading { width: 100%; }
.keywords-panel .panel-heading h2 { gap: 9px; font-size: 15px; }
.recommend-keywords { color: #829bd2; font-size: 10px; gap: 5px; }
.recommend-keywords .icon { color: #1f6bef; width: 16px; height: 16px; }
.keywords-description { color: #8c96ad; font-size: 12px; margin: 14px 0 11px; line-height: 1.7; white-space: nowrap; }
.keyword-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px 6px; max-height: 144px; overflow: auto; scrollbar-width: thin; }
.keyword-chip { display: inline-flex; align-items: center; gap: 9px; color: #314873; background: #edf4ff; padding: 6px 13px 6px 16px; height: 33px; border-radius: 25px; font-size: 13px; white-space: nowrap; }
.keyword-chip button { padding: 0; width: 14px; height: 18px; display: grid; place-items: center; border: 0; background: transparent; color: #6b8ac0; }
.keyword-chip .icon { width: 12px; height: 12px; }
.add-keyword { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 6px 13px; height: 35px; color: #4a5a7e; border: 1px dashed #91b0e4; border-radius: 22px; background: #fff; font-size: 12px; }
.add-keyword:hover { background: #f4f8ff; }
.add-keyword .icon { width: 14px; height: 14px; color: #7189af; }
.keyword-tip { align-self: stretch; margin-top: auto; padding: 7px 10px; border-radius: 9px; background: linear-gradient(100deg, #eef6ff, #f3f7ff); }
.keyword-tip strong { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #28558d; font-weight: 600; }
.keyword-tip .icon { width: 15px; height: 15px; fill: #ffbd35; color: #ffbd35; }
.keyword-tip p { font-size: 10px; color: #7b8fb6; margin-top: 4px; white-space: nowrap; letter-spacing: -.4px; }
.generation-options { display: grid; grid-template-columns: 1.3fr 1.02fr 210px; align-items: center; gap: 20px; margin-top: 10px; height: 99px; padding: 14px 17px; }
.generation-options h3 { display: flex; align-items: center; gap: 9px; color: #1c2845; font-size: 12px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.generation-options h3 .icon { width: 15px; height: 15px; color: #263952; }
.length-option { border-left: 1px solid #edf1f7; padding-left: 20px; }
.pill-options { display: flex; gap: 7px; }
.pill-options button { display: inline-flex; justify-content: center; align-items: center; flex: 1; min-width: 0; padding: 5px 12px; height: 33px; border: 1px solid #edf1f7; border-radius: 22px; background: #f8fafc; color: #7b86a0; font-size: 12px; white-space: nowrap; }
.pill-options button.selected { border-color: #237fff; background: #f5faff; box-shadow: inset 0 0 0 2px #fff; color: #0871ff; font-weight: 600; }
.pill-options button:hover { background: #eff6ff; }
.generate-button { display: flex; justify-content: center; align-items: center; border: 0; gap: 12px; width: 100%; height: 57px; border-radius: 20px; color: #fff; background: linear-gradient(180deg, #65a6ff 0%, #1268ff 48%, #078dff 100%); box-shadow: 0 7px 13px #2081ff26, inset 0 1px 1px #ffffff80; font-size: 20px; font-weight: 650; letter-spacing: .3px; padding: 0 15px; }
.generate-button:hover { background: linear-gradient(180deg, #539cff, #0764fc 50%, #0582fb); box-shadow: 0 9px 17px #2081ff3b; }
.generate-button .icon { width: 24px; height: 24px; }
.generate-button .icon:first-child { fill: #fff; stroke: #fff; }
.generate-button .icon:last-child { width: 21px; height: 21px; }
.recommendations { padding: 14px 15px 12px; margin-top: 12px; }
.recommendations-heading { display: flex; align-items: center; gap: 12px; min-height: 29px; margin-bottom: 12px; }
.recommendations-heading h2 { gap: 11px; font-size: 16px; flex-shrink: 0; }
.recommendations-heading h2 .icon { width: 28px; height: 28px; fill: #438eff; color: #0a70ff; }
.recommendations-heading > p { color: #8b96ae; font-size: 11px; line-height: 1.6; letter-spacing: -.15px; }
.sample-label { color: #adb7c9; font-size: 9px; margin-left: auto; white-space: nowrap; }
#regenerate { margin-left: auto; width: 24px; height: 24px; }
#regenerate .icon { width: 15px; height: 15px; color: #7e96bc; }
.greeting-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 11px; }
.greeting-grid:has(> .greeting-card:only-child) { grid-template-columns: 1fr; }
.greeting-card { display: flex; flex-direction: column; min-width: 0; height: 318px; border: 1px solid #e8effa; border-radius: 12px; padding: 10px 11px 10px; background: linear-gradient(145deg, #fff, #fdfefe); }
.greeting-card.recommended { border-color: #287fff; box-shadow: 0 0 0 1px #dfefff; }
.greeting-card-heading { display: flex; align-items: center; gap: 8px; min-height: 27px; margin-bottom: 8px; white-space: nowrap; }
.greeting-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(135deg, #dfeeff, #f7fbff); color: #1776ff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.greeting-card-heading h3 { color: #233d70; font-size: 12px; font-weight: 600; letter-spacing: -.25px; }
.recommended .greeting-card-heading h3 { color: #076bff; }
.recommend-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #ffae00; font-size: 11px; font-weight: 600; }
.recommend-badge .icon { width: 15px; height: 15px; fill: #ffbf20; stroke: #ffab00; }
.greeting-text, #greeting-text { flex: 1; min-height: 0; max-height: none; width: 100%; padding: 0 5px 1px; border: 0; background: transparent; box-shadow: none; resize: none; border-radius: 3px; font-size: 13.5px; color: #333a4a; line-height: 1.45; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dfe9fa transparent; }
.greeting-text:focus, #greeting-text:focus { box-shadow: none; border-color: transparent; }
.greeting-text:not([readonly]) { background: #f4f8ff; outline: 1px solid #c4d9fc; }
.greeting-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; }
.greeting-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 0; flex: 1; padding: 6px 7px; border: 1px solid #e8edf5; border-radius: 9px; background: #fff; color: #425478; font-size: 11px; white-space: nowrap; }
.greeting-actions button:hover { background: #f1f7ff; border-color: #b5d3ff; }
.greeting-actions .icon { width: 15px; height: 15px; }
.greeting-actions .copy-action { color: #1674ff; }
.greeting-actions .favorite-action.selected { color: #eea513; background: #fff9eb; }
.greeting-actions .favorite-action.selected .icon { fill: #ffd775; }
.insights-rail { display: grid; gap: 12px; min-width: 0; }
.highlights-panel { padding: 16px 15px 14px; min-width: 0; }
.highlights-panel .panel-heading h2, .recent-panel .panel-heading h2 { font-size: 16px; gap: 12px; }
.highlights-panel .panel-heading h2 > .target-icon { width: 24px; height: 24px; color: #ffa500; stroke-width: 2.1; }
.jd-highlights { display: grid; gap: 9px; margin-top: 17px; }
.highlight-item { display: flex; align-items: flex-start; gap: 11px; min-height: 82px; padding: 11px 10px 9px; border-radius: 12px; background: linear-gradient(110deg, #f5f7fa, #f7f9fc); }
.highlight-number { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; margin-top: 8px; background: linear-gradient(145deg, #ffd432, #ffac00); border: 1px solid #ffc421; border-radius: 50%; color: #fff; font-size: 13px; }
.highlight-item h3 { font-size: 13px; font-weight: 650; line-height: 1.6; color: #182137; }
.highlight-item > div { min-width: 0; }
.highlight-item p { font-size: 11px; line-height: 1.8; color: #7e88a0; margin-top: 2px; }
.recent-panel { min-height: 394px; min-width: 0; padding: 16px 15px 18px; }
.panel-heading .recent-icon { color: #377ff0; width: 24px; height: 24px; }
.recent-list { display: grid; gap: 9px; margin-top: 18px; }
.recent-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; min-width: 0; max-width: 100%; height: 89px; border: 1px solid #eaf0f7; background: linear-gradient(120deg, #fcfdff, #fbfcfe); border-radius: 12px; padding: 11px 10px; text-align: left; }
.recent-item:hover { border-color: #b8d4fa; background: #f7faff; }
.recent-item-icon { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 36px; border-radius: 50%; background: #eef6ff; color: #2584ff; margin-top: 5px; }
.recent-item-icon .icon { width: 17px; height: 17px; }
.recent-item-text { min-width: 0; }
.recent-item h3 { font-size: 12px; font-weight: 600; color: #29334b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.7; }
.recent-item p { color: #8c96ae; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.recent-item time { display: block; font-size: 11px; color: #8a96b0; margin-top: 7px; }
.recent-empty { color: #939fb5; font-size: 12px; text-align: center; padding: 38px 10px; }
.primary-button { background: #1978ff; }
.primary-button:hover { background: #0869ec; }
.card, dialog { border-color: #e8eef7; box-shadow: 0 5px 20px #5283b705; }
.secondary-view { padding-top: 38px; padding-bottom: 36px; }
.secondary-view .page-heading h1 { color: #122141; }
.history-total, .eyebrow { color: #879abc; }
.green-pill { background: #edf5ff; color: #3377ce; }
.toast { color: #38577e; border-color: #e2ecfc; box-shadow: 0 8px 35px #4580c91a; z-index: 100; }
.toast.error { color: #b84242; border-color: #f3d9d9; }
.template-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.template-card { padding: 23px; border: 1px solid #e5edf9; background: #fff; border-radius: 15px; }
.template-card > .icon { width: 28px; height: 28px; color: #438cff; margin-bottom: 16px; }
.template-card h2 { color: #1e3861; font-size: 16px; }
.template-card p { color: #8995ac; font-size: 12px; margin: 12px 0 22px; line-height: 1.9; }
.favorites-meta { color: #8795af; margin-top: 5px; font-size: 11px; }
.history-actions { flex-wrap: wrap; }
.list-empty-state { padding: 20px 12px; color: #8795ac; font-size: 12px; line-height: 1.8; }
.notification-list { max-height: min(420px, 60dvh); overflow-y: auto; margin: 18px 0; }
.notification-item { position: relative; padding: 15px 13px; border-bottom: 1px solid #edf1f7; }
.notification-item.unread { background: #f5f9ff; border-radius: 8px; }
.notification-item h3 { font-size: 13px; font-weight: 600; color: #263b5e; }
.notification-item p { margin-top: 6px; font-size: 12px; color: #73829c; line-height: 1.8; }
.notification-item time { display: block; margin-top: 8px; font-size: 10px; color: #97a1b1; }
.sidebar-collapsed { --sidebar-width: 0px; }
.sidebar-collapsed .mobile-menu { display: inline-flex; margin-right: auto; }

@media (min-width: 1700px) {
  .studio-view { max-width: 1570px; margin-inline: auto; }
  .studio-hero { height: 180px; }
  .studio-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .jd-panel, .keywords-panel { height: 360px; }
  .jd-editor { height: 280px; }
  .greeting-card { height: 345px; }
}
@media (max-width: 1360px) and (min-width: 1051px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 12px; }
  .studio-view { padding-left: 15px; padding-right: 15px; }
  .studio-hero { margin-left: -15px; margin-right: -15px; padding-left: 30px; }
  .input-grid { grid-template-columns: 1.35fr 1fr; }
  .jd-panel { padding-left: 13px; padding-right: 13px; }
  .keywords-panel { padding-left: 12px; padding-right: 12px; }
  .keywords-panel .panel-heading h2 { font-size: 13px; gap: 5px; }
  .keywords-panel .panel-heading h2 small { display: none; }
  .recommend-keywords { font-size: 9px; }
  .keywords-description { white-space: normal; font-size: 11px; margin-top: 12px; }
  .keyword-chip { font-size: 11px; height: 30px; padding: 5px 8px 5px 11px; gap: 6px; }
  .keyword-tip p { white-space: normal; }
  .generation-options { grid-template-columns: 1.2fr .95fr 166px; gap: 13px; padding-inline: 13px; }
  .length-option { padding-left: 13px; }
  .pill-options { gap: 5px; }
  .pill-options button { font-size: 11px; padding-inline: 8px; }
  .generate-button { font-size: 18px; gap: 8px; }
  .generate-button .icon { width: 21px; height: 21px; }
  .recommendations-heading { gap: 8px; }
  .recommendations-heading h2 { font-size: 14px; gap: 6px; }
  .recommendations-heading > p { font-size: 10px; }
  .greeting-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .greeting-card { padding-inline: 8px; }
  .greeting-card-heading { gap: 5px; }
  .greeting-card-heading h3 { font-size: 10px; letter-spacing: -.5px; }
  .greeting-number { width: 23px; height: 23px; font-size: 11px; }
  .recommend-badge { font-size: 9px; gap: 2px; }
  .recommend-badge .icon { width: 12px; height: 12px; }
  .greeting-actions { gap: 4px; }
  .greeting-actions button { font-size: 10px; padding-inline: 4px; gap: 3px; }
  .greeting-actions .icon { width: 13px; height: 13px; }
}
@media (max-width: 1050px) {
  :root { --sidebar-width: 190px; }
  .brand { margin-left: 14px; gap: 9px; }
  .brand-wordmark { font-size: 27px; }
  .nav-item { padding-left: 19px; gap: 16px; font-size: 14px; }
  .account-entry { padding-inline: 4px; gap: 8px; }
  .studio-hero { padding-left: 26px; height: 155px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 3px; }
  .studio-hero h1 { font-size: 30px; }
  .studio-hero .hero-copy > p { font-size: 14px; }
  .hero-art { opacity: .65; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .insights-rail { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .recent-panel { min-height: 0; }
  .generation-options { grid-template-columns: 1.2fr .95fr 180px; gap: 13px; }
  .length-option { padding-left: 13px; }
  .pill-options button { font-size: 11px; padding-inline: 9px; }
  .generate-button { font-size: 18px; gap: 9px; }
  .keywords-panel .panel-heading h2 { font-size: 13px; gap: 6px; }
  .keywords-panel .panel-heading h2 small { display: none; }
  .keywords-description { font-size: 11px; white-space: normal; }
  .keyword-chip { font-size: 11px; padding-inline: 10px; gap: 6px; }
  .keyword-tip p { white-space: normal; }
  .recommendations-heading > p { font-size: 10px; }
  .greeting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .greeting-card { padding-inline: 9px; height: 335px; }
  .greeting-card-heading h3 { font-size: 10px; letter-spacing: -.5px; }
  .greeting-card-heading { gap: 5px; }
  .recommend-badge { font-size: 9px; }
  .recommend-badge .icon { width: 12px; height: 12px; }
  .greeting-actions { gap: 4px; }
  .greeting-actions button { font-size: 10px; gap: 3px; padding-inline: 4px; }
  .greeting-actions .icon { width: 13px; height: 13px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 170px; }
  .sidebar { padding-inline: 6px; }
  .brand { margin-left: 9px; gap: 6px; }
  .brand-wordmark { font-size: 24px; }
  .nav-item { font-size: 13px; gap: 13px; padding-left: 17px; }
  .nav-item .icon { width: 21px; height: 21px; }
  .sidebar-bottom { padding-inline: 4px; }
  .upgrade-card { padding-inline: 12px; }
  .upgrade-title { gap: 6px; }
  .upgrade-title strong { font-size: 13px; }
  .upgrade-card p { margin-left: 31px; }
  .account-info strong { font-size: 12px; }
  .account-entry { gap: 6px; }
  .studio-view { padding-inline: 14px; }
  .studio-hero { margin-inline: -14px; padding: 24px 22px 0; height: 144px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 1.8px; }
  .studio-hero h1 { font-size: 25px; letter-spacing: -.9px; margin-top: 8px; }
  .studio-hero .hero-copy > p { font-size: 12px; max-width: 390px; margin-top: 5px; }
  .hero-art { right: -140px; opacity: .4; }
  .input-grid { grid-template-columns: 1fr; }
  .jd-panel { height: 310px; }
  .jd-editor { height: 231px; }
  .keywords-panel { height: auto; min-height: 240px; }
  .keywords-panel .panel-heading h2 { font-size: 15px; }
  .keywords-panel .panel-heading h2 small { display: inline; }
  .keyword-list { max-height: 120px; }
  .keyword-tip { margin-top: 15px; }
  .generation-options { grid-template-columns: 1.2fr 1fr; height: auto; gap: 15px; padding: 17px; }
  .generate-button { grid-column: 1 / -1; height: 48px; border-radius: 14px; }
  .greeting-grid { grid-template-columns: 1fr; gap: 12px; }
  .greeting-card { height: 310px; }
  .greeting-card-heading h3 { font-size: 12px; letter-spacing: 0; }
  .recommend-badge { font-size: 11px; }
  .greeting-actions button { font-size: 12px; }
  .recommendations-heading { flex-wrap: wrap; }
  .recommendations-heading > p { order: 4; width: 100%; }
  .insights-rail { grid-template-columns: 1fr; }
  .template-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --sidebar-width: 0px; }
  .sidebar { position: relative; width: 100%; padding: 13px 12px 10px; border-bottom: 1px solid #eaf0f8; }
  .brand { margin: 0 6px 12px; height: 38px; gap: 8px; }
  .brand-mark { width: 30px; height: 38px; }
  .brand-mark img { width: 62px; height: 62px; left: -16px; top: -6px; }
  .brand-wordmark { font-size: 24px; }
  nav { gap: 4px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .nav-item { flex: 0 0 auto; width: auto; min-height: 34px; padding: 7px 10px; font-size: 11px; gap: 6px; }
  .nav-item .icon { width: 16px; height: 16px; }
  .nav-item.active::before { display: none; }
  .sidebar-bottom { display: none; }
  .studio-topbar { height: 45px; padding-inline: 17px; }
  .topbar-account { gap: 11px; }
  .top-avatar { height: 26px; width: 26px; font-size: 14px; }
  .top-account { gap: 7px; }
  .top-account strong { font-size: 11px; }
  .notification-button .icon { width: 19px; height: 19px; }
  .notification-button i { width: 6px; height: 6px; right: 8px; top: 7px; }
  .studio-hero { height: auto; min-height: 139px; padding-top: 22px; padding-bottom: 22px; }
  .studio-hero h1 { font-size: clamp(23px, 5.9vw, 32px); white-space: normal; }
  .studio-hero .hero-copy > p { font-size: 12px; max-width: 480px; }
  .hero-art { right: -170px; opacity: .42; }
  .studio-card { border-radius: 12px; }
  .studio-view { padding-bottom: 22px; }
  .jd-panel { padding: 16px; height: 320px; }
  .jd-editor { height: 244px; margin-top: 12px; }
  #jd-text { font-size: 13px; }
  .panel-heading h2 { font-size: 15px; }
  .keywords-panel { min-height: 236px; padding: 16px; }
  .keyword-chip { font-size: 12px; height: 31px; }
  .generation-options { grid-template-columns: 1.15fr 1fr; gap: 14px 12px; padding: 17px 14px; }
  .length-option { padding-left: 12px; }
  .pill-options { gap: 4px; }
  .pill-options button { padding-inline: 8px; font-size: 11px; }
  .generation-options h3 { gap: 6px; font-size: 11px; }
  .generation-options h3 .icon { width: 13px; height: 13px; }
  .greeting-card { height: 310px; padding: 12px; }
  .greeting-text, #greeting-text { font-size: 13px; line-height: 1.7; }
  .secondary-view { padding-top: 23px; }
}
.settings-section-title { margin-top: 23px; font-size: 13px; font-weight: 600; }
#premium-dialog { width: min(650px, calc(100% - 32px)); overflow-wrap: anywhere; }
#premium-dialog .eyebrow { color: #a47727; letter-spacing: 2px; }
#premium-dialog h2 { font-size: clamp(19px, 4vw, 24px); }
.membership-status { padding: 12px 14px; border-radius: 10px; background: #f5f7fb; color: #61718d; font-size: 12px; line-height: 1.7; }
.membership-status.is-pro { background: #fff8e6; color: #91671d; }
.membership-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.membership-plan { padding: 18px 15px; border: 1px solid #e7edf5; border-radius: 13px; background: linear-gradient(160deg, #fff, #f8faff); }
.membership-plan > span { color: #7a89a2; font-size: 10px; }
.membership-plan h3 { margin: 8px 0 12px; font-size: 14px; font-weight: 600; }
.membership-plan > strong { font-size: 30px; color: #223955; font-weight: 600; letter-spacing: -1px; }
.membership-plan small { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.membership-plan p { font-size: 11px; color: #8390a6; margin-top: 7px; }
.membership-benefits { display: grid; gap: 10px; list-style: none; padding: 0; margin: 20px 0 24px; }
.membership-benefits li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #526782; }
.membership-benefits .icon { width: 16px; height: 16px; flex-shrink: 0; color: #337dcc; }
.redeem-input-row { display: flex; gap: 8px; align-items: stretch; }
.redeem-input-row input { min-width: 0; flex: 1; margin: 0; font-size: 12px; }
.redeem-input-row button { flex-shrink: 0; }
#redeem-help { margin: 10px 0 0; font-size: 11px; line-height: 1.8; }
.redeem-success { padding: 12px; margin: 12px 0 0; color: #29704f; background: #eef8f2; border-radius: 9px; font-size: 12px; line-height: 1.8; }
.membership-note { font-size: 11px; color: #8792a4; margin-top: 14px; line-height: 1.8; }
.redemption-details { margin: 19px 0; border-top: 1px solid #edf1f7; padding-top: 16px; }
.redemption-details summary { cursor: pointer; font-size: 12px; color: #526782; }
#redemption-count { margin-left: 5px; color: #9aa5b6; }
#redemption-list { max-height: 180px; overflow-y: auto; }
.redemption-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid #f0f3f7; font-size: 11px; color: #8390a6; }
.redemption-row strong { font-weight: 500; color: #526782; }
.history-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pro-template { position: relative; }
.pro-badge { position: absolute; right: 20px; top: 24px; color: #a47727; background: #fff5dc; border: 1px solid #f6e8c8; font-size: 10px; padding: 3px 7px; border-radius: 5px; }
.selected-template { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #f1f6ff; color: #526f9a; font-size: 12px; }
.selected-template > .icon { width: 16px; height: 16px; flex-shrink: 0; }
.selected-template button { margin-left: auto; white-space: nowrap; }
.upgrade-card p#upgrade-card-description { font-size: 11px; margin-top: 3px; min-height: 36px; }
@media (max-width: 480px) {
  .membership-plan { padding: 13px 10px; }
  .membership-plan > strong { font-size: 26px; }
  .membership-plans { gap: 7px; }
  .membership-plan p { font-size: 10px; }
  .redeem-input-row { flex-direction: column; }
  .redeem-input-row button { justify-content: center; }
  .selected-template { flex-wrap: wrap; }
}
#settings-form > .dialog-description { margin-top: 7px; }
.settings-legal { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.settings-legal .settings-section-title { margin: 0; }
.settings-section-description { margin: 7px 0 13px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.settings-legal-links { display: grid; gap: 3px; }
.settings-legal-link { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: left; }
.settings-legal-link:hover { background: var(--soft); }
.settings-legal-link > .icon { width: 17px; height: 17px; color: var(--muted); }
.settings-legal-link > .legal-chevron { margin-left: auto; width: 14px; height: 14px; }
.settings-legal-link:focus-visible, #legal-dialog button:focus-visible { outline: 2px solid #3979d6; outline-offset: 2px; }
#legal-dialog { width: min(660px, calc(100% - 32px)); overflow-wrap: anywhere; }
.legal-heading { position: sticky; top: -29px; margin: -1px -1px 0; padding: 1px 1px 14px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
#legal-heading:focus { outline: none; }
.legal-version { margin: 16px 0 12px; color: var(--quiet); font-size: 11px; line-height: 1.8; }
.legal-intro { padding: 13px 15px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.9; }
.legal-body section { margin-top: 22px; }
.legal-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.legal-body p { color: var(--muted); font-size: 12px; line-height: 2; }
.legal-footer { display: flex; justify-content: flex-end; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 1150px) { .legal-heading { top: -23px; } }
@media (max-width: 370px) {
  .hero-eyebrow { font-size: 7px; letter-spacing: 1px; }
  .studio-hero h1 { font-size: 22px; }
  .studio-view { padding-inline: 11px; }
  .studio-hero { margin-inline: -11px; padding-inline: 17px; }
  .pill-options button { padding-inline: 5px; font-size: 10px; }
  .keywords-panel .panel-heading h2 { font-size: 13px; }
  .recommendations-heading h2 { font-size: 15px; }
}
