:root {
  --background: #212c3d;
  --paper: #2b384a;
  --ink: #f8f8f6;
  --muted: #bcc6d0;
  --line: #455266;
  --rose: #8c3b27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background) url('neurosphere-background.png') center top / cover fixed no-repeat; color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page-shell { max-width: 1440px; min-height: 100vh; margin: auto; padding: 0 5.5%; display: flex; flex-direction: column; }
.site-header { height: 102px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: Georgia, 'Times New Roman', serif; font-size: 25px; letter-spacing: -.06em; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #cfa292; color: #212c3d; font-family: Arial, sans-serif; font-size: 22px; line-height: 1; }
.header-note, .eyebrow, .card-topline, .intro-detail, .section-label, .tool-number, .site-footer { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.header-note { color: #aebdcb; text-transform: uppercase; }
main { flex: 1; }

.welcome-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 75px 0 100px; }
.intro { align-self: start; padding-top: 75px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: #cfa292; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfa292; }
.intro h1 { margin: 34px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(49px, 5.5vw, 84px); font-weight: 400; line-height: 1.02; letter-spacing: -.075em; }
.intro-signature { display: block; margin: -13px 0 27px; color: #cfa292; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-style: italic; letter-spacing: .01em; }
.title-period { color: #cfa292; }
.intro-subtitle { max-width: 620px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.intro-description { max-width: 470px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.intro-detail { display: flex; align-items: center; gap: 16px; margin-top: 90px; color: #aebdcb; }
.detail-line { width: 43px; height: 1px; background: #cfa292; }

.form-card { padding: clamp(28px, 3.5vw, 48px); border: 1px solid #4a586a; border-radius: 25px; background: var(--paper); box-shadow: 0 18px 65px rgba(8, 14, 24, .2); }
.card-topline, .section-label { display: flex; justify-content: space-between; color: #aebdcb; }
.form-card h2 { margin: 33px 0 9px; font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 400; letter-spacing: -.045em; }
.form-hint { margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.required-mark { color: #cfa292; }
.field input, .field textarea { width: 100%; border: 1px solid #536175; border-radius: 9px; outline: none; background: #243143; color: var(--ink); font-size: 13px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 66px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: #cfa292; box-shadow: 0 0 0 3px rgba(207, 162, 146, .22); }
.field input::placeholder, .field textarea::placeholder { color: #aebdcb; }
.primary-button { width: 100%; min-height: 53px; margin-top: 5px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; background: #cfa292; color: #212c3d; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.primary-button:hover { background: #e1b9aa; transform: translateY(-2px); }
.primary-button span { font-size: 19px; font-weight: 400; }
.privacy-note { margin: 15px 0 0; text-align: center; color: #aebdcb; font-size: 11px; }

.dashboard-screen { padding: 84px 0 110px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.dashboard-heading h1 { max-width: 850px; margin: 28px 0 17px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.dashboard-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.edit-button { flex-shrink: 0; margin-top: 7px; padding: 12px 17px; border: 1px solid #647386; border-radius: 10px; background: transparent; color: #f8f8f6; font-size: 13px; transition: background .2s; }
.edit-button:hover { background: #354458; }
.section-label { margin: 72px 0 18px; padding-bottom: 15px; border-bottom: 1px solid #536175; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tool-card { position: relative; min-height: 245px; padding: 28px; display: flex; flex-direction: column; align-items: start; text-align: left; border: 1px solid #4a586a; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 30px rgba(8, 14, 24, .14); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-4px); border-color: #cfa292; box-shadow: 0 16px 36px rgba(8, 14, 24, .25); }
.tool-card:focus-visible, .edit-button:focus-visible, .primary-button:focus-visible { outline: 3px solid #cfa292; outline-offset: 3px; }
.tool-symbol { width: 47px; height: 47px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 13px; }
.tool-symbol svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.blush { background: #8c3b27; color: #ffffff; }.sand { background: #cfa292; color: #212c3d; }.sage { background: #565c66; color: #ffffff; }.lilac { background: #7c90a6; color: #212c3d; }.peach { background: #8c3b27; color: #ffffff; }.stone { background: #212c3d; color: #ffffff; }
.tool-number { margin-bottom: 8px; color: #aebdcb; font-size: 9px; }
.tool-card strong { margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 400; letter-spacing: -.035em; }
.tool-description { max-width: 245px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.tool-arrow { position: absolute; right: 26px; bottom: 26px; color: #cfa292; font-size: 20px; }

.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #aebdcb; font-size: 9px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 48px)); padding: 17px 22px; border-radius: 12px; background: #cfa292; color: #212c3d; box-shadow: 0 16px 40px rgba(8, 14, 24, .3); font-size: 14px; line-height: 1.45; z-index: 10; }

/* Экран «Контент» использует ту же палитру и типографику, что и главная. */
.content-screen { padding: 76px 0 110px; }
.content-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.content-heading h1 { margin: 27px 0 13px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(52px, 6vw, 82px); font-weight: 400; letter-spacing: -.075em; line-height: 1; }
.content-heading p { max-width: 650px; margin: 0; color: var(--muted); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.25; letter-spacing: -.035em; }
.content-heading .edit-button { margin-top: 3px; }
.content-screen .section-label { margin-top: 64px; }
.start-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.start-option { position: relative; min-height: 160px; padding: 24px; display: flex; flex-direction: column; align-items: start; text-align: left; border: 1px solid #4a586a; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 30px rgba(8, 14, 24, .14); transition: border-color .2s, transform .2s, background .2s; }
.start-option:hover { transform: translateY(-3px); border-color: #cfa292; }
.start-option[aria-pressed="true"] { border-color: #cfa292; background: #344154; }
.option-index, .panel-step, .analysis-card > span { color: #cfa292; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.start-option strong { margin-top: 24px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.start-option > span:nth-last-child(2) { margin-top: 7px; padding-right: 20px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.option-arrow { position: absolute; right: 23px; top: 22px; color: #cfa292; font-size: 19px; }
.content-panel { margin-top: 22px; padding: clamp(25px, 4vw, 42px); border: 1px solid #4a586a; border-radius: 22px; background: var(--paper); box-shadow: 0 18px 65px rgba(8, 14, 24, .18); }
.panel-heading h2, .result-card h2 { margin: 10px 0 24px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 3vw, 39px); font-weight: 400; letter-spacing: -.04em; }
.thought-label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 700; line-height: 1.5; }
#thought-input { width: 100%; min-height: 230px; padding: 19px 21px; border: 1px solid #536175; border-radius: 12px; outline: none; resize: vertical; background: #243143; color: var(--ink); font-size: 15px; line-height: 1.7; }
#thought-input::placeholder { color: #aebdcb; }
#thought-input:focus { border-color: #cfa292; box-shadow: 0 0 0 3px rgba(207, 162, 146, .22); }
.panel-actions, .result-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.content-hint { color: var(--muted); font-size: 13px; line-height: 1.55; }
.content-action { min-height: 49px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; border: 0; border-radius: 10px; background: #cfa292; color: #212c3d; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.content-action:hover:not(:disabled) { background: #e1b9aa; transform: translateY(-2px); }
.content-action:disabled { opacity: .45; cursor: not-allowed; }
.content-action span { font-size: 19px; font-weight: 400; }
.goal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 22px; }
.goal-list button { padding: 15px 18px; border: 1px solid #536175; border-radius: 10px; background: #243143; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.4; }
.goal-list button:hover, .goal-list button[aria-pressed="true"] { border-color: #cfa292; background: #394558; }
.goal-feedback { margin: 21px 0 0; color: #cfa292; font-size: 13px; line-height: 1.5; }
.material-message { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.content-progress .panel-heading { margin-top: 26px; }
.content-progress .panel-heading h2 { margin-bottom: 8px; }
.content-progress .panel-heading p, .result-card > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.analysis-card { min-height: 195px; padding: 26px; border: 1px solid #4a586a; border-radius: 16px; background: var(--paper); }
.analysis-card h3 { margin: 19px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 400; letter-spacing: -.03em; }
.analysis-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.format-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.format-card { min-height: 130px; padding: 20px; display: flex; flex-direction: column; align-items: start; justify-content: space-between; border: 1px solid #4a586a; border-radius: 15px; background: var(--paper); color: var(--ink); text-align: left; transition: border-color .2s, transform .2s, background .2s; }
.format-card:hover, .format-card[aria-pressed="true"] { transform: translateY(-3px); border-color: #cfa292; background: #344154; }
.format-card svg { width: 32px; height: 32px; fill: none; stroke: #cfa292; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.format-card span { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; }
.result-card { padding: clamp(26px, 4vw, 44px); border: 1px solid #6d6870; border-radius: 22px; background: #344154; box-shadow: 0 18px 65px rgba(8, 14, 24, .2); }
.result-card h2 { margin-bottom: 10px; }
.result-card ol { margin: 22px 0 0; padding: 0 0 0 25px; }
.result-card li { padding: 0 0 13px 7px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.result-card li::marker { color: #cfa292; }
.result-actions { justify-content: flex-end; }
.result-actions .edit-button { margin-top: 0; }
.start-option:focus-visible, .goal-list button:focus-visible, .format-card:focus-visible, .content-action:focus-visible, #thought-input:focus-visible { outline: 3px solid #cfa292; outline-offset: 3px; }

/* Дополнения к разделу «Контент». Главная страница остаётся без изменений. */
.content-heading-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.content-heading-actions .edit-button { margin-top: 3px; }
.start-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.start-option { min-height: 176px; }
.start-option svg { width: 31px; height: 31px; fill: none; stroke: #cfa292; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.start-option strong { margin-top: 20px; font-size: 21px; line-height: 1.15; }
.content-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.content-nav .edit-button { margin-top: 0; }
.text-button { padding: 9px 0; border: 0; background: transparent; color: #cfa292; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.extra-label { margin-top: 25px; }
.optional-label { margin-left: 7px; color: var(--muted); font-weight: 400; font-size: 12px; }
.content-input, #material-input, #remix-input { width: 100%; padding: 16px 18px; border: 1px solid #536175; border-radius: 10px; outline: none; background: #243143; color: var(--ink); font-size: 14px; line-height: 1.6; }
#material-input, #remix-input { min-height: 220px; resize: vertical; }
.content-input::placeholder, #material-input::placeholder, #remix-input::placeholder { color: #aebdcb; }
.content-input:focus, #material-input:focus, #remix-input:focus { border-color: #cfa292; box-shadow: 0 0 0 3px rgba(207, 162, 146, .22); }
.idea-results { margin-top: 38px; padding-top: 27px; border-top: 1px solid #536175; }
.idea-results h3, .result-tools h3, .series-tool h3, .remix-question { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.idea-card { padding: 22px; border: 1px solid #536175; border-radius: 14px; background: #243143; }
.idea-card > span { color: #cfa292; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.idea-card h4 { margin: 16px 0 7px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; }
.idea-card p { min-height: 43px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.idea-card button, .draft-button { padding: 0; border: 0; background: transparent; color: #cfa292; font-size: 13px; font-weight: 700; text-align: left; }
.material-choices { display: flex; gap: 9px; margin-bottom: 24px; }
.material-choices button, .remix-actions button, .refine-actions button { padding: 12px 16px; border: 1px solid #536175; border-radius: 9px; background: #243143; color: var(--ink); font-size: 13px; line-height: 1.4; }
.material-choices button[aria-pressed="true"], .material-choices button:hover, .remix-actions button:hover:not(:disabled), .refine-actions button:hover { border-color: #cfa292; background: #394558; }
.upload-area { min-height: 180px; padding: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #7c90a6; border-radius: 13px; background: #243143; text-align: center; cursor: pointer; }
.upload-area:hover { border-color: #cfa292; }
.upload-symbol { color: #cfa292; font-size: 28px; }
.upload-area strong { font-size: 15px; }
.upload-area > span:last-child { color: var(--muted); font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.material-message { display: none; }
.remix-question { margin: 27px 0 15px; }
.remix-actions, .refine-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.remix-actions button:disabled { opacity: .45; cursor: not-allowed; }
.result-card .draft-button { margin-top: 16px; }
.result-tools { margin-top: 20px; padding: 27px; border: 1px solid #4a586a; border-radius: 17px; background: var(--paper); }
.result-tools h3 { margin-bottom: 18px; }
.series-tool { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; padding: 25px 27px; border: 1px solid #4a586a; border-radius: 17px; background: var(--paper); }
.series-tool h3 { margin-bottom: 5px; }
.series-tool p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.series-tool .edit-button { margin-top: 0; }
.series-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.series-flow > div { position: relative; min-height: 115px; padding: 17px; border: 1px solid #536175; border-radius: 12px; background: #243143; }
.series-flow > div:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 17px; z-index: 1; color: #cfa292; }
.series-flow strong { display: block; margin-bottom: 10px; color: #cfa292; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 400; }
.series-flow span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.content-screen button:focus-visible, .upload-area:focus-within { outline: 3px solid #cfa292; outline-offset: 3px; }
.analysis-error { margin: 17px 0 0; padding: 13px 16px; border: 1px solid #cfa292; border-radius: 9px; background: #3b3440; color: #f5d2c6; font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .welcome-screen { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }
  .intro { padding-top: 0; }
  .intro-detail { margin-top: 35px; }
  .form-card { max-width: 650px; width: 100%; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-option { min-height: 116px; }
  .start-option strong { margin-top: 12px; }
  .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-flow > div::after { display: none; }
}
@media (max-width: 600px) {
  .page-shell { padding: 0 20px; }
  .site-header { height: 76px; }
  .brand { font-size: 23px; }
  .header-note { display: none; }
  .welcome-screen { padding: 46px 0 64px; gap: 33px; }
  .intro h1 { margin: 24px 0 17px; font-size: clamp(43px, 10.5vw, 62px); }
  .intro-subtitle { font-size: 27px; }
  .intro-description { margin-top: 23px; font-size: 14px; }
  .intro-detail { display: none; }
  .form-card { padding: 25px 20px; border-radius: 18px; }
  .form-card h2 { margin-top: 25px; font-size: 29px; }
  .dashboard-screen { padding: 52px 0 70px; }
  .dashboard-heading { flex-direction: column; gap: 22px; }
  .dashboard-heading h1 { font-size: 43px; }
  .dashboard-heading p { font-size: 14px; }
  .section-label { margin-top: 54px; }
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { min-height: 205px; padding: 23px; }
  .tool-symbol { margin-bottom: 19px; }
  .site-footer span:last-child { display: none; }
  .content-screen { padding: 50px 0 75px; }
  .content-heading { flex-direction: column; gap: 20px; }
  .content-heading h1 { font-size: 52px; }
  .content-heading p { font-size: 24px; }
  .content-screen .section-label { margin-top: 46px; }
  .content-panel { padding: 23px 20px; }
  .panel-actions, .result-actions { align-items: stretch; flex-direction: column; }
  .content-action { justify-content: space-between; }
  .goal-list, .analysis-grid { grid-template-columns: 1fr; }
  .analysis-card { min-height: 0; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-card { min-height: 115px; }
  .content-heading-actions { justify-content: flex-start; }
  .start-options, .idea-grid, .series-flow { grid-template-columns: 1fr; }
  .start-option { min-height: 155px; }
  .content-nav { align-items: flex-start; flex-direction: column; }
  .material-choices, .series-tool { align-items: stretch; flex-direction: column; }
  .series-flow > div { min-height: 0; }
}
