:root {
  --ink: #16313a;
  --muted: #60777d;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --navy: #173f4f;
  --navy-2: #0d303d;
  --teal: #2f8f83;
  --gold: #f5c977;
  --line: #d9e3e0;
  --shadow: 0 22px 50px rgba(20, 53, 62, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 "Segoe UI", Arial, sans-serif; }
button, select, input { font: inherit; }
button, select { min-height: 48px; }
button { cursor: pointer; }
.skip-link { position: fixed; top: 0; left: 16px; z-index: 100; background: white; color: var(--ink); padding: 10px 16px; transform: translateY(-160%); opacity: 0; pointer-events: none; }
.skip-link:focus { top: 16px; transform: translateY(0); opacity: 1; pointer-events: auto; }
.site-header { min-height: 78px; padding: 14px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .13em; font-size: 14px; }
.brand small { color: #bed0d3; font-size: 12px; }
.header-note { font-size: 13px; color: #d7e3e5; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245,201,119,.16); }
.screen { display: none; min-height: calc(100vh - 148px); }
.screen.active { display: block; }
#welcome { padding: clamp(52px, 8vw, 100px) clamp(22px, 6vw, 96px) 44px; background: radial-gradient(circle at 15% 5%, rgba(245,201,119,.22), transparent 27%), linear-gradient(180deg, #f7faf8, var(--paper)); }
.welcome-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: 12px; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
.intro h1 { font: 700 clamp(42px, 6vw, 78px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.035em; max-width: 800px; margin-bottom: 28px; }
.lead { max-width: 710px; font-size: clamp(18px, 2vw, 22px); color: #4a666d; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.facts b { color: var(--ink); }
.start-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px 6px 24px 6px; padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.start-card h2 { font: 700 30px/1.1 Georgia, serif; margin-bottom: 10px; }
.start-card p { color: var(--muted); }
.step-label { color: var(--teal); font-weight: 750; font-size: 13px; }
label { display: grid; gap: 8px; font-weight: 650; }
select { width: 100%; border: 1px solid #b9c9c7; border-radius: 10px; background: white; padding: 0 14px; color: var(--ink); }
.check-row { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; color: #476168; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.primary, .secondary { border-radius: 10px; padding: 0 20px; border: 1px solid transparent; font-weight: 700; transition: .18s ease; }
.primary { background: var(--navy); color: white; }
.primary:hover:not(:disabled) { background: var(--navy-2); transform: translateY(-1px); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: transparent; border-color: #b9c9c7; color: var(--ink); }
.secondary:hover { background: white; }
.demo-warning { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; margin-bottom: 0; }
.principles { max-width: 1240px; margin: 72px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles article { position: relative; padding: 28px 34px 10px 0; }
.principles article + article { border-left: 1px solid var(--line); padding-left: 34px; }
.principles span { color: var(--teal); font: 700 13px Georgia, serif; }
.principles h3 { margin: 12px 0 8px; font-size: 18px; }
.principles p { color: var(--muted); font-size: 14px; }
.methodology-preview { max-width: 1240px; margin: 62px auto 0; padding: clamp(28px, 4vw, 44px); background: white; border: 1px solid var(--line); border-radius: 18px 4px 18px 4px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 42px; }
.methodology-preview h2 { font: 700 32px Georgia, serif; }
.methodology-preview > div > p:last-child { color: var(--muted); }
.level-guide { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.level-guide li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; }
.level-guide b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eaf4f1; color: var(--teal); }
.sources-panel { max-width: 1240px; margin: 18px auto 0; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); }
.sources-panel summary, details summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.sources-panel ul { columns: 2; padding-left: 20px; }
.sources-panel li { margin: 8px 24px 8px 0; break-inside: avoid; }
.sources-panel a { color: var(--teal); }
#assessment { padding: clamp(30px, 5vw, 70px) clamp(20px, 5vw, 80px); background: linear-gradient(105deg, var(--navy) 0 31%, #eef3f1 31%); }
.assessment-shell { max-width: 1180px; min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 32% 68%; background: white; box-shadow: var(--shadow); border-radius: 20px 4px 20px 4px; overflow: hidden; }
.test-aside { background: var(--navy); color: white; padding: 58px 42px; display: flex; flex-direction: column; }
.test-aside h2 { font: 700 34px/1.08 Georgia, serif; }
.test-aside > p:not(.eyebrow) { color: #c6d7da; }
.method-instruction { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.aside-tip { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); color: #c6d7da; font-size: 14px; }
.aside-tip span { display: block; color: var(--gold); font-weight: 750; margin-bottom: 6px; }
.question-panel { padding: clamp(38px, 6vw, 72px); display: flex; flex-direction: column; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-track { height: 4px; border-radius: 4px; background: #e5ecea; margin: 12px 0 56px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--teal); transition: width .3s ease; }
.dimension-name { color: var(--teal); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.question-panel h1 { font: 700 clamp(28px, 4vw, 43px)/1.12 Georgia, serif; max-width: 780px; }
.answer-options { display: grid; gap: 10px; border: 0; padding: 0; margin: 24px 0 36px; }
.answer-option { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .15s ease; }
.answer-option:hover { border-color: var(--teal); background: #f4faf8; }
.answer-option:has(input:checked) { border-color: var(--teal); background: #eaf6f2; box-shadow: inset 4px 0 var(--teal); }
.answer-option input { accent-color: var(--teal); width: 18px; height: 18px; }
.answer-option kbd { border: 1px solid var(--line); background: white; border-radius: 5px; padding: 1px 7px; color: var(--muted); font-size: 12px; }
.question-actions { margin-top: auto; display: flex; justify-content: space-between; gap: 14px; }
#results { padding: clamp(40px, 7vw, 86px) clamp(20px, 6vw, 92px); }
.results-head { max-width: 1240px; margin: 0 auto 24px; display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.results-head h1 { font: 700 clamp(38px, 5vw, 62px)/1 Georgia, serif; margin-bottom: 18px; }
.results-head p { color: var(--muted); max-width: 720px; }
.result-actions { display: flex; gap: 10px; flex-shrink: 0; }
.demo-banner { max-width: 1240px; margin: 0 auto 30px; padding: 14px 18px; border-left: 4px solid var(--gold); background: #fff7e6; color: #6f5b32; }
.result-overview { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.radar-card, .summary-card { background: white; border: 1px solid var(--line); border-radius: 16px 4px 16px 4px; padding: clamp(24px, 4vw, 38px); }
.results-scale { max-width: 1240px; margin: 0 auto; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; }
.card-title h2 { font: 700 26px Georgia, serif; }
.card-title span { color: var(--muted); font-size: 13px; }
.profile-bars { display: grid; gap: 14px; margin-top: 20px; }
.profile-row { display: grid; grid-template-columns: 170px 1fr 30px; gap: 12px; align-items: center; font-size: 14px; }
.profile-line { height: 9px; background: #e5ecea; border-radius: 10px; overflow: hidden; }
.profile-line span { display: block; height: 100%; border-radius: inherit; }
.profile-row strong { text-align: right; }
.scale-caption { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.summary-card { background: var(--navy); color: white; }
.summary-card .step-label { color: var(--gold); }
.summary-card h2 { font: 700 34px/1.1 Georgia, serif; margin-top: 16px; }
.summary-card p { color: #c7d8db; }
.summary-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; margin-top: 30px; }
.summary-meta div { display: grid; gap: 2px; }
.summary-meta dt { color: #a8c0c5; font-size: 12px; }
.summary-meta dd { margin: 0; font-weight: 700; }
.result-section { max-width: 1240px; margin: 70px auto 0; }
.section-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font: 700 34px Georgia, serif; }
.section-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.section-icon.resource { background: #e7f4f0; color: var(--teal); }
.section-icon.growth { background: #fff0df; color: #bd6d2f; }
.section-icon.details { background: #e8eef7; color: #3977a8; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight-card { background: white; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 4px 4px 14px 14px; padding: 26px; }
.insight-card .score { color: var(--accent); font-size: 13px; font-weight: 800; }
.insight-card h3 { margin: 10px 0; font-size: 21px; }
.insight-card p { color: var(--muted); font-size: 14px; }
.insight-card .action { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; color: var(--ink); }
.empty-insight { grid-column: 1 / -1; background: white; border: 1px dashed #b9c9c7; border-radius: 12px; padding: 26px; }
.empty-insight h3 { margin-bottom: 8px; }
.empty-insight p { margin-bottom: 0; color: var(--muted); }
.quality-details { display: grid; gap: 18px; }
.detail-card { --accent: var(--teal); display: grid; grid-template-columns: 94px 1fr; gap: 24px; background: white; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 4px 14px 14px 4px; padding: clamp(22px, 4vw, 34px); }
.detail-score { width: 78px; height: 78px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #eef5f3; color: var(--accent); }
.detail-score strong { font: 700 34px/1 Georgia, serif; }
.detail-score span { font-size: 11px; }
.detail-card h3 { margin: 4px 0 12px; font: 700 27px Georgia, serif; }
.detail-card p { color: var(--muted); }
.detail-card .level-explain { color: var(--ink); background: #f4f7f5; padding: 14px 16px; border-radius: 8px; }
.detail-card details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.detail-card details p { margin: 12px 0 0; font-size: 13px; }
.subscale-list { display: grid; gap: 9px; margin: 20px 0; }
.subscale-list > div { display: grid; grid-template-columns: 180px 1fr 24px; gap: 10px; align-items: center; font-size: 12px; }
.final-summary { max-width: 1240px; margin: 70px auto 0; }
.validity-note { max-width: 1240px; margin: 0 auto 24px; padding: 14px 18px; border-left: 4px solid #c95770; background: #fff0f3; color: #723346; }
.support-note { max-width: 1240px; margin: 70px auto 0; background: #e8f1ef; padding: 24px 28px; display: flex; gap: 18px; align-items: baseline; border-radius: 12px; }
.support-note span { color: var(--muted); }
footer { min-height: 70px; padding: 18px clamp(22px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--navy-2); color: #b9ccd0; font-size: 13px; }
.admin-entry { color: var(--gold); text-decoration: none; }
.admin-entry:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px) {
  .welcome-grid, .result-overview, .assessment-shell, .methodology-preview { grid-template-columns: 1fr; }
  .principles, .insight-grid { grid-template-columns: 1fr; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  #assessment { background: #eef3f1; padding: 20px; }
  .test-aside { padding: 30px; }
  .aside-tip { margin-top: 24px; }
  .question-panel { min-height: 600px; }
  .results-head { align-items: stretch; flex-direction: column; }
  .result-actions { flex-wrap: wrap; }
  .sources-panel ul { columns: 1; }
}
@media (max-width: 560px) {
  .header-note { display: none; }
  #welcome { padding-top: 44px; }
  .intro h1 { font-size: 36px; overflow-wrap: normal; hyphens: auto; }
  .facts { display: grid; }
  .start-card { border-radius: 16px 4px; }
  .test-aside { padding: 26px 22px; }
  .test-aside .eyebrow { margin-bottom: 8px; }
  .test-aside h2 { font-size: 30px; margin-bottom: 12px; }
  .test-aside > p:not(.eyebrow) { font-size: 14px; margin-bottom: 8px; }
  .method-instruction { margin-top: 8px; padding-top: 12px; }
  .aside-tip { margin-top: 8px; padding-top: 12px; }
  .question-panel { padding: 30px 20px; }
  .progress-track { margin-bottom: 36px; }
  .answer-option { grid-template-columns: 28px 1fr; }
  .answer-option kbd { display: none; }
  .question-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-row { grid-template-columns: 110px 1fr 24px; font-size: 12px; }
  .level-guide { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-score { width: 66px; height: 66px; }
  .subscale-list > div { grid-template-columns: 120px 1fr 20px; }
  .result-actions button { flex: 1 1 150px; }
  .support-note, footer { align-items: flex-start; flex-direction: column; }
}
@media print {
  .site-header, footer, .result-actions, .demo-banner { display: none !important; }
  body, #results { background: white; }
  #results { padding: 20px; }
  .screen { display: none !important; }
  #results.active { display: block !important; }
  .result-section { break-inside: avoid; margin-top: 36px; }
  .insight-card, .radar-card, .summary-card { break-inside: avoid; }
}

/* Оболочка сайта психологической службы */
.service-site { min-height: 100vh; display: flex; flex-direction: column; }
.service-header { flex: 0 0 auto; }
.service-main { flex: 1; display: grid; padding: clamp(22px, 4vw, 62px); background: radial-gradient(circle at 12% 8%, rgba(245,201,119,.18), transparent 27%), #eef3f1; }
.service-hero { width: min(1420px, 100%); min-width: 0; min-height: calc(100vh - 202px); margin: auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .65fr); box-shadow: var(--shadow); }
.service-identity { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 120px); color: white; background: radial-gradient(circle at 82% 22%, rgba(245,201,119,.18), transparent 26%), linear-gradient(145deg, var(--navy), var(--navy-2)); border-radius: 24px 0 0 6px; }
.service-identity::after { content: "Л"; position: absolute; right: -30px; bottom: -120px; color: rgba(255,255,255,.035); font: 700 clamp(300px, 34vw, 520px)/1 Georgia, serif; pointer-events: none; }
.service-identity .eyebrow { color: var(--gold); position: relative; z-index: 1; }
.service-identity h1 { position: relative; z-index: 1; max-width: 850px; margin: 12px 0 32px; font: 700 clamp(54px, 7vw, 104px)/.94 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.service-lead { position: relative; z-index: 1; max-width: 650px; color: #d0dfe1; font-size: clamp(18px, 2vw, 24px); }
.service-status { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; margin-top: 46px; color: #bdd0d3; font-size: 13px; overflow-wrap: anywhere; }
.service-navigation { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 72px); background: white; border: 1px solid var(--line); border-left: 0; border-radius: 0 6px 24px 0; }
.service-navigation h2 { margin-bottom: 34px; font: 700 34px Georgia, serif; }
.service-nav-list { display: grid; gap: 10px; }
.service-nav-list a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 74px; padding: 12px 16px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; transition: .18s ease; }
.service-nav-list a:hover, .service-nav-list a:focus-visible { color: white; background: var(--navy); border-color: var(--navy); transform: translateX(4px); }
.service-nav-list span { color: var(--teal); font-size: 12px; font-weight: 800; }
.service-nav-list a:hover span, .service-nav-list a:focus-visible span { color: var(--gold); }
.service-nav-list strong { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.service-nav-list i { font-style: normal; font-size: 22px; }
.home-link { color: #d7e3e5; text-decoration: none; font-size: 14px; }
.home-link:hover { color: white; }

.section-shell { flex: 1; width: min(1240px, calc(100% - 44px)); margin: clamp(28px, 6vw, 74px) auto; display: grid; grid-template-columns: 280px 1fr; min-height: 610px; background: white; border: 1px solid var(--line); border-radius: 20px 4px 20px 4px; box-shadow: var(--shadow); overflow: hidden; }
.section-nav { padding: 46px 30px; color: white; background: var(--navy); }
.section-nav .eyebrow { color: var(--gold); }
.section-nav nav { display: grid; gap: 8px; margin-top: 28px; }
.section-nav a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 13px 14px; color: #c7d8db; text-decoration: none; border: 1px solid transparent; border-radius: 8px; }
.section-nav a span { color: var(--gold); font-size: 11px; font-weight: 800; }
.section-nav a b { overflow-wrap: anywhere; }
.section-nav a:hover { color: white; border-color: rgba(255,255,255,.2); }
.section-nav a.active { color: var(--navy); background: var(--gold); font-weight: 800; }
.section-nav a.active span { color: var(--navy); }
.section-placeholder { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 9vw, 120px); background: radial-gradient(circle at 90% 12%, rgba(47,143,131,.1), transparent 28%); }
.section-placeholder h1 { margin: 10px 0 22px; font: 700 clamp(48px, 7vw, 86px)/1 Georgia, serif; }
.section-placeholder > p:not(.eyebrow) { max-width: 650px; margin-bottom: 10px; color: var(--muted); font-size: 21px; overflow-wrap: anywhere; }
.section-placeholder > span { color: #829398; }
.empty-action-grid { width: min(680px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.empty-action-grid button { position: relative; min-height: 76px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(20,53,62,.05); cursor: default; }
.empty-action-grid button::after { content: ""; position: absolute; right: 18px; top: 50%; width: 24px; height: 1px; background: var(--teal); opacity: .35; }
.empty-action-grid .filled-action { min-height: 158px; padding: 22px; border: 1px solid rgba(23,63,79,.18); border-radius: 20px; background: linear-gradient(145deg,#fff,#eef6f3); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; box-shadow: 0 14px 34px rgba(23,63,79,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.empty-action-grid .filled-action:hover, .empty-action-grid .filled-action:focus-visible { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 18px 40px rgba(23,63,79,.14); }
.filled-action small { color: var(--muted); }
.filled-action b { font-size: 1.08rem; line-height: 1.25; }
.filled-action span { color: var(--teal); font-weight: 700; }
.qr-warning { margin-top: 24px; }
.sources-panel li + li { margin-top: 10px; }
.sources-panel em { color: #8c542e; }
.curator-welcome-grid { grid-template-columns: minmax(300px,.72fr) minmax(520px,1.28fr); align-items: start; }
.curator-start-card { gap: 18px; }
.method-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { min-height: 0; padding: 4px 0; border: 0; background: transparent; color: var(--teal); font-weight: 750; }
.method-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 410px; overflow: auto; padding: 2px 6px 2px 2px; }
.method-choice { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.method-choice:has(input:checked) { border-color: var(--teal); background: #edf7f4; box-shadow: inset 0 0 0 1px var(--teal); }
.method-choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.method-choice span { display: grid; gap: 5px; }
.method-choice b { font-size: 14px; line-height: 1.25; }
.method-choice small { color: var(--muted); font-weight: 400; line-height: 1.25; }
.form-error { margin: -6px 0 0; color: #a33d43 !important; font-weight: 700; font-size: 13px; }
.admin-page { min-height: 100vh; display: flex; flex-direction: column; }
.admin-shell { flex: 1; width: min(1120px,calc(100% - 40px)); margin: clamp(28px,5vw,64px) auto; }
.admin-login { width: min(520px,100%); margin: 8vh auto; padding: clamp(28px,5vw,52px); background: white; border: 1px solid var(--line); border-radius: 20px 4px; box-shadow: var(--shadow); }
.admin-login h1, .admin-heading h1 { font: 700 clamp(38px,5vw,62px)/1 Georgia,serif; }
.admin-login > p { color: var(--muted); }
.admin-login form { display: grid; gap: 16px; margin-top: 28px; }
.admin-login input, .admin-fields input, .admin-fields textarea, .pin-settings input { width: 100%; border: 1px solid #b9c9c7; border-radius: 10px; background: white; padding: 12px 14px; color: var(--ink); }
.admin-hint { margin: 20px 0 0; font-size: 13px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.admin-heading > div > p:last-child { color: var(--muted); }
.admin-top-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-link { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.admin-notice { margin-bottom: 24px; padding: 16px 18px; border-left: 4px solid var(--gold); background: #fff7e6; color: #6f5b32; }
#content-form { padding: clamp(24px,4vw,42px); background: white; border: 1px solid var(--line); border-radius: 18px 4px; box-shadow: var(--shadow); }
.admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.admin-fields h2 { grid-column: 1/-1; margin: 28px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 700 25px Georgia,serif; }
.admin-fields h2:first-child { margin-top: 0; }
.admin-fields textarea { min-height: 96px; resize: vertical; font: inherit; }
.admin-actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.import-button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.danger-button { min-height: 48px; padding: 0 20px; border: 1px solid #c66b70; border-radius: 10px; color: #96383e; background: white; }
.save-status { min-height: 24px; margin: 16px 0 0; color: var(--teal); font-weight: 700; }
.pin-settings { margin-top: 22px; padding: 20px 24px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.pin-settings form { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 14px; align-items: end; margin-top: 18px; }
.pin-settings .save-status { grid-column: 1/-1; margin: 0; }

@media (max-width: 900px) {
  .service-main { padding: 20px; }
  .service-hero { min-height: auto; grid-template-columns: 1fr; }
  .service-identity { min-height: 520px; border-radius: 20px 4px 0 0; }
  .service-navigation { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 4px; }
  .section-shell { grid-template-columns: minmax(0, 1fr); }
  .section-nav { min-width: 0; overflow: hidden; padding: 24px; }
  .section-nav nav { width: 100%; max-width: 100%; grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .section-nav a { grid-template-columns: 24px 1fr; text-align: left; white-space: normal; }
  .curator-welcome-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .service-main { width: 100%; min-width: 0; padding: 12px; overflow-x: hidden; }
  .service-hero, .service-identity, .service-navigation { width: 100%; max-width: 100%; min-width: 0; }
  .service-hero { overflow: hidden; }
  .service-identity { min-height: 430px; padding: 38px 24px; }
  .service-identity h1 { font-size: 34px; overflow-wrap: anywhere; hyphens: auto; }
  .service-identity .eyebrow, .service-lead, .service-status { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .service-lead { font-size: 17px; }
  .service-status { margin-top: 28px; }
  .service-navigation { padding: 32px 22px; }
  .service-navigation h2 { margin-bottom: 24px; font-size: 29px; }
  .service-nav-list a { min-height: 64px; }
  .home-link { font-size: 12px; }
  .section-shell { width: calc(100% - 24px); margin: 12px auto 28px; }
  .section-nav nav { grid-template-columns: repeat(7, 140px); }
  .section-placeholder { min-height: 430px; padding: 38px 24px; }
  .section-placeholder h1 { font-size: 44px; }
  .empty-action-grid { grid-template-columns: 1fr; }
  .method-picker { grid-template-columns: 1fr; max-height: none; }
  .admin-heading { flex-direction: column; }
  .admin-fields { grid-template-columns: 1fr; }
  .admin-fields h2 { grid-column: 1; }
  .pin-settings form { grid-template-columns: 1fr; }
}
