/* Full-width first record and a vector guide. Draft storage/POST behavior stays separate. */
.first-record { margin: 0 auto 34px; border: 1px solid #c9d7f8; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 14px 36px #16326a08; }
.first-record [hidden] { display: none !important; }
.first-record-write { padding: 30px 36px 24px; min-width: 0; }
.first-record-kicker { margin: 0 0 8px; color: #295bea; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.first-record-question { margin: 0 0 8px; color: #172238; font-size: clamp(25px, 3vw, 36px); line-height: 1.5; }
.first-record-question-word { display: inline-block; min-width: 3em; color: #295bea; }
.first-record-question-word[data-changing] { animation: first-record-word-in .22s ease-out; }
.first-record-write > p:not(.first-record-kicker) { margin: 0 0 18px; color: #5e6c82; font-size: 14px; }
.first-record-compose-row { display: grid; grid-template-columns: minmax(0,1fr) 184px; align-items: stretch; gap: 14px; }
.first-record[data-ready] .first-record-compose-row { grid-template-columns: minmax(0,1fr); }
.first-record-field { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 96px; resize: vertical; border: 1px solid #bdccea; border-radius: 12px; padding: 16px 18px; background: #fbfcff; color: #172238; font: inherit; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; color-scheme: light; }
.first-record-field::placeholder { color: #72809a; opacity: 1; }
.first-record-field:focus { background: #fff; border-color: #295bea; }
.first-record-field[aria-invalid="true"] { border-color: #a53d2a; }
.first-record .first-record-save { align-self: center; display: flex; justify-content: center; gap: 16px; border-radius: 12px; min-height: 56px; padding: 12px 16px; font-size: 15px; }
.first-record-save > span:last-child { font-size: 22px; font-weight: 400; }
.first-record-input-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 8px; color: #66758e; font-size: 11px; line-height: 1.65; }
.first-record-input-meta p { margin: 0; }
.first-record-count { flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.first-record-error { margin: 12px 0 0; color: #973524; font-size: 13px; }
.first-record-save-row { margin-top: 9px; }
.first-record-local-status { color: #5e6c82; font-size: 12px; line-height: 1.6; margin: 0; }
.first-record-local-status[data-error] { color: #973524; }
.first-record-draft-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; }
.first-record-draft-tools:has(button:not([hidden])) { min-height: 36px; }
.first-record-draft-tools button { min-height: 36px; padding: 3px 0; background: none; border: 0; color: #526987; font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.first-record-draft-tools button:hover { color: #295bea; }
.first-record-ready { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; margin-top: 18px; padding: 18px 20px; border: 1px solid #d5e0fb; border-radius: 12px; background: #f0f4ff; }
.first-record-ready h3 { font-size: 17px; margin: 0 0 5px; }
.first-record-ready p { color: #51627e; font-size: 13px; line-height: 1.75; margin: 0; }
.first-record-ready .button { min-height: 48px; padding: 12px 18px; font-size: 14px; gap: 12px; }
.first-record-noscript { margin: 14px 0 0; color: #5e6c82; font-size: 12px; }
.first-record-demo { min-width: 0; padding: 25px 36px 22px; background: #f3f6fd; border-top: 1px solid #dce4f3; }
.first-record-demo-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; max-width: 920px; margin: 0 auto; }
.first-record-demo-eyebrow { margin: 0 0 5px; color: #667993; font-size: 11px; letter-spacing: .02em; }
.first-record-demo-title { margin: 0; color: #172238; font-size: 23px; line-height: 1.5; font-weight: 700; }
.first-record-example-label { display: inline-block; vertical-align: middle; margin-left: 7px; padding: 3px 7px; border: 1px solid #d3def4; border-radius: 5px; background: #edf2fc; color: #5d6f91; font-size: 10px; font-weight: 500; white-space: nowrap; }
.first-record-infographic { position: relative; max-width: 920px; height: 430px; margin: 16px auto 0; isolation: isolate; }
.first-record-flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
.first-record-orbit { fill: none; stroke: #e0e8f8; stroke-width: 1; }
.first-record-flow-line { fill: none; stroke: #c0d0ee; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.first-record-ai-link { fill: none; stroke: #c9d8f4; stroke-width: 1.6; stroke-dasharray: 3 6; }
.first-record-flow-dots { fill: none; stroke: #295bea; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 12; opacity: 0; }
.first-record[data-active-step="0"] .first-record-flow-dots-record,.first-record[data-active-step="1"] .first-record-flow-dots-calendar,.first-record[data-active-step="2"] .first-record-flow-dots-document { opacity: .85; }
.first-record[data-motion="running"] .first-record-flow-dots { animation: first-record-flow-dots 3.6s linear infinite; }
.first-record-ai-hub { position: absolute; left: 50%; top: 58.1%; transform: translate(-50%,-50%); width: 88px; height: 88px; border: 1px solid #b6caf2; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #295bea; background: #fff; box-shadow: 0 4px 12px #264d9908; }
.first-record-ai-hub > svg { width: 17px; height: 17px; margin-bottom: 3px; fill: #e1eaff; stroke: #295bea; stroke-width: 1.5; }
.first-record-ai-hub strong { font-size: 16px; line-height: 1.5; font-weight: 700; }
.first-record-ai-hub small { color: #7484a0; font-size: 9px; }
.first-record-ai-ring { position: absolute; inset: -10px; border: 1px solid #d7e2f6; border-radius: 50%; }
.first-record-ai-ring::after { content: ''; position: absolute; top: -3px; left: calc(50% - 3px); width: 6px; height: 6px; background: #89a9ec; border: 1px solid #f3f6fd; border-radius: 50%; }
.first-record[data-motion="running"] .first-record-ai-ring { animation: first-record-ai-orbit 10.8s linear infinite; }
.first-record-demo-steps { list-style: none; padding: 0; margin: 0; }
.first-record-step { position: absolute; display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 14px; align-items: start; width: 32%; min-height: 154px; padding: 22px 20px; border: 1px solid #d8e2f4; border-radius: 16px; background: #fff; color: #172238; box-shadow: 0 5px 16px #24457706; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.first-record-step-record { top: 2.3%; left: 34%; }
.first-record-step-calendar { top: 53.5%; right: 3%; }
.first-record-step-document { top: 53.5%; left: 3%; }
.first-record-step-icon { display: block; width: 50px; height: 56px; margin-top: 11px; color: #7995c7; }
.first-record-step-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.first-record-icon-soft { stroke: #b3c4e5; }
.first-record-step-icon .first-record-icon-fill { fill: #e4ecfd; stroke: #92ade2; }
.first-record-step-icon .first-record-icon-spark { fill: #eaf0ff; stroke: #8da8dd; stroke-width: 1.5; }
.first-record-step-copy { min-width: 0; }
.first-record-step-number { display: block; margin: 0 0 6px; color: #6d82a9; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .05em; }
.first-record-step h4 { margin: 0 0 9px; color: #172238; font-size: 17px; line-height: 1.45; font-weight: 700; letter-spacing: -.035em; }
.first-record-step p { margin: 0; color: #65748c; font-size: 12px; line-height: 1.8; }
.first-record-step[data-active="true"] { border-color: #8baaf0; box-shadow: 0 6px 22px #295bea0e; }
.first-record-step[data-active="true"] .first-record-step-number,.first-record-step[data-active="true"] .first-record-step-icon { color: #295bea; }
.first-record[data-motion="running"] .first-record-step[data-active="true"] .first-record-step-icon { animation: first-record-icon-lift 3.6s ease-in-out infinite; }
.first-record-step-progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; overflow: hidden; }
.first-record-step-progress::after { content: ''; display: block; width: 100%; height: 100%; background: #295bea; transform: scaleX(0); transform-origin: left; }
.first-record[data-motion="running"] .first-record-step[data-active="true"] .first-record-step-progress::after { animation: first-record-progress 3.6s linear both; }
.first-record-demo-caption { max-width: 920px; margin: 0 auto; text-align: center; color: #6a7890; font-size: 11px; line-height: 1.7; }
.first-record[data-motion="paused"] *, .first-record[data-motion="paused"] *::before, .first-record[data-motion="paused"] *::after { animation-play-state: paused !important; }
@keyframes first-record-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes first-record-word-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes first-record-flow-dots { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -36; } }
@keyframes first-record-ai-orbit { to { transform: rotate(360deg); } }
@keyframes first-record-icon-lift { 0%,65%,100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@media (max-width: 1080px) { .first-record-write { padding-inline: 28px; } .first-record-demo { padding-inline: 26px; } .first-record-step { padding: 20px 15px; grid-template-columns: 43px minmax(0,1fr); gap: 11px; } .first-record-step-icon { width: 43px; height: 50px; } .first-record-step h4 { font-size: 16px; } .first-record-step p { font-size: 11px; } }
@media (max-width: 960px) {
 .first-record-infographic { height: auto; max-width: 650px; margin-top: 24px; padding-left: 28px; }
 .first-record-flow-lines,.first-record-ai-hub { display: none; }
 .first-record-demo-steps { position: relative; display: grid; gap: 20px; }
 .first-record-demo-steps::before { content: ''; position: absolute; top: 36px; bottom: 36px; left: -20px; width: 1px; background: #c7d6f2; }
 .first-record-step { position: relative; inset: auto; width: 100%; min-height: 124px; padding: 20px 24px; grid-template-columns: 56px minmax(0,1fr); gap: 20px; overflow: visible; }
 .first-record-step::before { content: ''; position: absolute; top: 47px; left: -25px; width: 10px; height: 10px; border: 2px solid #c7d6f2; border-radius: 50%; background: #f3f6fd; }
 .first-record-step:not(:last-child)::after { content: '↓'; position: absolute; left: -27px; bottom: -19px; color: #7995c7; font-size: 14px; line-height: 20px; background: #f3f6fd; }
 .first-record-step[data-active="true"]::before { border-color: #295bea; background: #295bea; }
 .first-record-step-icon { width: 56px; height: 60px; margin-top: 7px; }
 .first-record-step h4 { font-size: 18px; margin-bottom: 7px; }
 .first-record-step p { font-size: 13px; }
 .first-record-step p br { display: none; }
 .first-record-step-progress { border-radius: 0 0 16px 16px; }
 .first-record-demo-caption { margin-top: 22px; }
}
@media (max-width: 720px) {
 .first-record { border-radius: 15px; margin-bottom: 26px; }
 .first-record-write { padding: 24px; }
 .first-record-question { font-size: 28px; }
 .first-record-compose-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
 .first-record-field { min-height: 96px; font-size: 16px; }
 .first-record .first-record-save { min-height: 49px; padding: 12px 18px; border-radius: 9px; font-size: 14px; }
 .first-record-save-row { margin-top: 10px; }
 .first-record-ready { grid-template-columns: minmax(0,1fr); gap: 13px; padding: 17px 18px; }
 .first-record-ready .button { width: 100%; }
 .first-record-demo { padding: 23px 24px; }
 .first-record-demo-title { font-size: 21px; }
 .first-record-demo-top { align-items: flex-start; gap: 12px; }
 .first-record-example-label { margin-left: 0; margin-top: 4px; }
 .first-record-demo-eyebrow { font-size: 10px; }
}
@media (max-width: 420px) {
 .first-record-write { padding: 21px 18px; }
 .first-record-question { font-size: 23px; }
 .first-record-write > p:not(.first-record-kicker) { font-size: 13px; }
 .first-record-field { padding: 14px; }
 .first-record-input-meta { font-size: 10px; gap: 8px; }
 .first-record-local-status { font-size: 11px; }
 .first-record-demo { padding: 21px 17px; }
 .first-record-demo-title { font-size: 20px; }
 .first-record-demo-title .first-record-example-label { display: block; width: fit-content; }
 .first-record-infographic { padding-left: 22px; margin-top: 20px; }
 .first-record-demo-steps { gap: 18px; }
 .first-record-demo-steps::before { left: -16px; }
 .first-record-step { min-height: 125px; padding: 18px 14px; grid-template-columns: 45px minmax(0,1fr); gap: 13px; }
 .first-record-step::before { left: -21px; }
 .first-record-step:not(:last-child)::after { left: -23px; bottom: -18px; }
 .first-record-step-icon { width: 45px; height: 52px; }
 .first-record-step h4 { font-size: 16px; }
 .first-record-step p { font-size: 12px; }
 .first-record-demo-caption { font-size: 10px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
 .first-record *, .first-record *::before, .first-record *::after { animation: none !important; transition: none !important; }
}
@media print { .first-record-save,.first-record-ready,.first-record-draft-tools { display: none !important; } .first-record { box-shadow: none; } }
