:root { --navy:#0a2948; --gold:#b78b35; --cream:#fbf7ed; --line:#d8ccb1; }
body { background:#f6f1e3; color:#1c2732; min-height:100vh; display:flex; flex-direction:column; }
.irs-prep-shell { width:min(1160px,calc(100% - 32px)); margin:26px auto 44px; flex:1; }
.back-link { color:var(--navy); font-weight:700; text-decoration:none; }
.prep-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
#form-meta { margin:0; color:#5b6570; }
.prep-card { background:#fff; border:1px solid #d9dee4; border-radius:10px; box-shadow:0 3px 12px rgba(10,41,72,.06); margin:16px 0; padding:20px; }
.prep-card h2,.field-section h3 { color:var(--navy); }
.hint { color:#5b6570; }
.field-list,.review-list { display:grid; gap:9px; }
.field-row { display:grid; grid-template-columns:minmax(220px,1.7fr) minmax(180px,1fr) minmax(110px,auto); gap:10px; align-items:center; border-top:1px solid #e7e1d5; padding:9px 0; }
.field-label { font-size:.9rem; }
.field-label small { display:block; color:#68737e; }
.field-row input,.field-row select { width:100%; box-sizing:border-box; padding:8px; border:1px solid #aeb8c2; border-radius:5px; }
.field-row .source { color:#765817; font-size:.78rem; }
.field-section { margin:20px 0; }
.field-section h3 { background:var(--cream); border-bottom:2px solid var(--gold); padding:9px; }
.na-control { display:inline-flex; align-items:center; gap:6px; white-space:normal; font-size:.82rem; }
.field-row .na-control input { width:auto; min-width:0; padding:0; }
.btn-primary,.btn-secondary,.btn-link,.btn-blue-bright,.btn-neutral,.btn-gold { min-height:30px; box-sizing:border-box; border-radius:8px; padding:5px 10px; font-size:13px; line-height:1; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.btn-primary { background:var(--gold); color:#071425; border:1px solid #9f7628; }
.btn-secondary { background:#fff; color:var(--navy); border:1px solid var(--navy); }
.btn-link { background:var(--navy); color:#fff; border:1px solid var(--navy); }
.btn-blue-bright { background:#1f6fd1; color:#fff; border:1px solid #1554a5; }
.btn-neutral { background:#fff; color:#3f4650; border:1px solid #7b838c; }
.btn-gold { background:#edbd43; color:#071425; border:1px solid #b98518; }
.btn-primary:hover,.btn-primary:focus-visible { background:#d7aa46; }
.btn-blue-bright:hover,.btn-blue-bright:focus-visible { background:#1554a5; }
.btn-neutral:hover,.btn-neutral:focus-visible { background:#f4f6f8; }
.btn-gold:hover,.btn-gold:focus-visible { background:#f6cc6d; }
.prep-alert { background:#fff4f2; color:#8f241c; border-left:4px solid #a62d24; padding:12px; margin:16px 0; }
.actions { display:flex; justify-content:flex-end; gap:10px; margin-top:15px; }
.editor-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.editor-hint { margin:0 0 12px; color:#4f5f70; font-weight:650; }
.pdf-editor-workspace { background:#dce1e6; border:1px solid #bcc5ce; border-radius:10px; padding:16px; overflow:auto; }
.pdf-pages { display:grid; justify-content:center; gap:18px; }
.pdf-page { position:relative; background:#fff; box-shadow:0 3px 12px rgba(7,20,37,.18); overflow:hidden; }
.pdf-page canvas { position:absolute; inset:0; display:block; }
.pdf-field { position:absolute; z-index:2; box-sizing:border-box; margin:0; border:1px solid rgba(18,61,115,.34); border-radius:1px; background:rgba(255,255,255,.88); color:#071425; font-family:Arial,sans-serif; font-size:clamp(7px,.76vw,11px); line-height:1.05; padding:1px 2px; }
.pdf-field:focus { outline:2px solid #1f6fd1; outline-offset:0; background:#fff; }
textarea.pdf-field { resize:none; overflow:auto; }
input.pdf-field-btn { appearance:auto; padding:0; background:transparent; border:0; accent-color:#071425; }
.pdf-print-frame { position:fixed; width:1px; height:1px; right:0; bottom:0; border:0; opacity:.01; pointer-events:none; }
.review-item { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; border-bottom:1px solid #e1e5e9; padding:7px 0; font-size:.88rem; }
.tt-footer { background:#071425; color:#fff; padding:18px 20px; font-size:.84rem; }
.tt-footer-inner { width:min(1160px,calc(100% - 32px)); margin:0 auto; }
@media(max-width:720px){.field-row,.review-item{grid-template-columns:1fr}.actions{justify-content:stretch;flex-direction:column}.prep-toolbar{align-items:flex-start;flex-direction:column}.editor-actions{justify-content:flex-start}.pdf-editor-workspace{padding:8px}}
@media print { .tt-header,.tt-footer,.no-print,.prep-alert,#loading-card { display:none !important; } body,.irs-prep-shell,.pdf-editor-workspace { background:#fff; margin:0; padding:0; width:100%; border:0; } .pdf-pages { gap:0; } .pdf-page { box-shadow:none; break-after:page; } }
