:root {
  --navy: #0d3154;
  --blue: #15598d;
  --blue-2: #2276ad;
  --blue-soft: #eaf5fb;
  --red: #d9362b;
  --red-dark: #b92520;
  --red-soft: #fff1ef;
  --ink: #183149;
  --muted: #667a8d;
  --line: #dce8f0;
  --surface: #ffffff;
  --page: #f2f8fc;
  --success: #14805e;
  --warning: #b36b00;
  --danger: #c42d2d;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(20, 62, 92, .11), 0 3px 12px rgba(20, 62, 92, .06);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; color: var(--ink); font-family: var(--font); background: linear-gradient(145deg, #f8fcff 0%, #eef7fc 48%, #f9fcfe 100%); line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .38; background-image: radial-gradient(circle at 12% 22%, rgba(34,118,173,.13) 0 2px, transparent 3px), radial-gradient(circle at 88% 64%, rgba(217,54,43,.11) 0 2px, transparent 3px), radial-gradient(circle at 70% 18%, rgba(34,118,173,.08) 0 1px, transparent 2px); background-size: 110px 110px, 145px 145px, 75px 75px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
.ambient { position: fixed; border-radius: 50%; filter: blur(10px); pointer-events: none; z-index: -1; }
.ambient-one { width: 390px; height: 390px; top: 12%; left: -240px; border: 1px solid rgba(34,118,173,.13); box-shadow: 0 0 0 45px rgba(34,118,173,.025), 0 0 0 95px rgba(34,118,173,.02); }
.ambient-two { width: 300px; height: 300px; right: -190px; top: 55%; border: 1px solid rgba(217,54,43,.08); box-shadow: 0 0 0 36px rgba(217,54,43,.02), 0 0 0 82px rgba(34,118,173,.018); }

.brand-bar { height: 78px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(13,49,84,.08); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brand img { width: 126px; height: 46px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 32px; background: var(--line); }
.acc-wordmark { display: flex; flex-direction: column; line-height: 1.05; color: var(--navy); }
.acc-wordmark strong { font-size: 19px; letter-spacing: .08em; }
.acc-wordmark small { margin-top: 5px; font-size: 10px; letter-spacing: .02em; color: var(--muted); }
.text-link { font-weight: 700; font-size: 14px; text-decoration: none; padding: 9px 14px; border-radius: 999px; }
.text-link:hover { background: var(--blue-soft); }

.application-header { gap: 18px; }
.application-feedback-button { min-height: 44px; padding: 10px 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; background: #d98a8a; border: 1px solid rgba(151, 72, 72, .14); border-radius: 12px; box-shadow: 0 5px 14px rgba(154, 76, 76, .13); white-space: nowrap; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.application-feedback-button:hover { color: #fff; background: #cf7777; box-shadow: 0 7px 17px rgba(145, 65, 65, .17); transform: translateY(-1px); }
.application-feedback-button:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(145, 65, 65, .13); }
.application-feedback-button:focus-visible { outline: 3px solid rgba(207, 119, 119, .3); outline-offset: 3px; }

.page-shell { width: min(960px, calc(100% - 36px)); margin: 42px auto 72px; position: relative; }
.hero { position: relative; border-radius: 24px 24px 0 0; min-height: 270px; color: white; overflow: hidden; background: linear-gradient(120deg, #0d3154 0%, #15598d 70%, #2d84b5 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(255,255,255,.16) 0 2px, transparent 3px), radial-gradient(circle at 75% 62%, rgba(255,255,255,.13) 0 1px, transparent 2px); background-size: 80px 80px, 55px 55px; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -110px; top: -160px; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.02); }
.hero-copy { position: relative; z-index: 2; width: 62%; padding: 42px 52px; }
.eyebrow { display: inline-block; color: #bfe3f5; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 10px 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.24; letter-spacing: -.03em; }
.hero p { margin: 0; color: #d9ebf5; font-size: 15px; }
.trust-row { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.trust-row span { font-size: 12px; color: #e8f4fa; }
.trust-row span::before { content: "✓"; margin-right: 5px; color: #72d7bb; font-weight: 900; }
.hero-product { position: absolute; z-index: 1; width: 44%; max-height: 310px; object-fit: cover; object-position: center; right: 0; bottom: -30px; mix-blend-mode: screen; opacity: .86; }

.application-hero { min-height: 310px; background: radial-gradient(ellipse 70% 145% at 16% 50%, #285f84 0%, #285f84 64%, rgba(55,121,158,.88) 76%, rgba(132,190,214,.45) 90%, transparent 100%), linear-gradient(118deg, #f9fdff 0%, #eaf5fb 52%, #d9edf6 78%, #ffffff 100%); }
.application-hero::before { background: radial-gradient(circle at 84% 22%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.2) 18%, transparent 42%), radial-gradient(circle at 72% 82%, rgba(70,156,196,.13) 0%, transparent 38%), linear-gradient(132deg, transparent 68%, rgba(38,119,160,.07) 68.2%, transparent 68.6%), linear-gradient(48deg, transparent 74%, rgba(255,255,255,.22) 74.2%, transparent 74.6%); background-size: 100% 100%; background-repeat: no-repeat; opacity: .9; }
.application-hero::after { width: 260px; height: 260px; right: 32px; top: -82px; border-color: rgba(47,125,164,.12); background: radial-gradient(circle at 44% 58%, rgba(255,255,255,.14), transparent 64%); box-shadow: 0 0 0 38px rgba(74,151,187,.028), 0 0 0 78px rgba(74,151,187,.018), 0 18px 58px rgba(91,163,196,.08); opacity: .8; }
.application-hero-copy { width: 64%; padding: 40px 44px; }
.application-hero .hero-title-line { display: block; white-space: nowrap; }
.application-hero .hero-company { margin: 0 0 4px; color: #b9d8e9; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.application-hero .hero-subtitle { color: #e0eef6; }
.application-hero .hero-product { display: block; width: auto; height: 82%; max-height: none; object-fit: contain; object-position: center bottom; right: 42px; bottom: 20px; border: 0; background: transparent; mix-blend-mode: normal; opacity: 1; filter: drop-shadow(0 12px 15px rgba(27, 71, 96, .18)); }

.form-card { background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 42px 52px 36px; }
.intro { color: #4e657a; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.intro p { margin: 7px 0; }
.intro .salutation { color: var(--ink); font-size: 16px; font-weight: 800; }
.privacy-inline { padding-left: 13px; border-left: 3px solid #9acbe3; }
.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; padding: 30px 8px 12px; }
.stepper i { height: 1px; background: var(--line); min-width: 18px; }
.step { border: 0; background: transparent; padding: 0; color: #91a1af; display: flex; align-items: center; gap: 8px; text-align: left; }
button.step { cursor: pointer; }
.step span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 1px solid #cfdce5; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; }
.step b { font-size: 12px; white-space: nowrap; }
.step.is-active, .step.is-complete { color: var(--navy); }
.step.is-active span { color: white; background: var(--red); border-color: var(--red); box-shadow: 0 5px 14px rgba(217,54,43,.23); }
.step.is-complete span { color: white; background: var(--blue); border-color: var(--blue); }
.progress-track { height: 3px; margin: 0 8px 34px; overflow: hidden; border-radius: 999px; background: #eef3f6; }
.progress-track span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--blue), var(--red)); transition: width .28s ease; }

.form-step { display: none; animation: fadeUp .26s ease; }
.form-step.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 24px; color: var(--navy); }
.section-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.section-heading em, .field em, legend em { color: var(--red); font-style: normal; }
.section-no { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid.four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full, .full { grid-column: 1 / -1; }
.field > span, .field > legend, .field > .field-label, .choice-field > legend { margin-bottom: 8px; color: #29465f; font-size: 13px; font-weight: 800; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); background: #fbfdfe; border: 1px solid #cfdee8; border-radius: 10px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #9baab6; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(34,118,173,.12); }
input[readonly] { color: #49677d; background: #f1f7fa; cursor: default; }
.field.has-error input, .field.has-error textarea, .field.has-error select, .choice-field.has-error .choice-grid, .confirmations.has-error { border-color: var(--danger); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.field-error { min-height: 18px; margin-top: 4px; color: var(--danger); font-size: 12px; line-height: 1.4; }
.subsection-title { display: flex; align-items: baseline; gap: 12px; margin: 32px 0 17px; padding-top: 25px; border-top: 1px dashed var(--line); }
.subsection-title h3 { margin: 0; color: var(--navy); font-size: 17px; }
.subsection-title span { color: var(--muted); font-size: 12px; }
.inline-check { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--blue); font-size: 12px; cursor: pointer; }
.inline-check { min-width: 0; overflow-wrap: anywhere; }
.recipient-address-choice { padding-top: 2px; }
.address-match { width: fit-content; max-width: 100%; margin-top: 0; padding: 12px 14px; border: 1px solid #cfe0ea; border-radius: 10px; background: #f4fafd; color: var(--navy); font-size: 13px; font-weight: 800; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }
.choice-field { margin: 0 0 28px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 1px; border: 1px solid transparent; border-radius: 12px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border: 1px solid #d8e4ec; border-radius: 10px; background: #fbfdfe; transition: .18s; }
.choice-card:hover { border-color: #93bdd5; background: #f5fbfe; }
.choice-card:has(input:checked) { color: var(--navy); border-color: var(--blue-2); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(34,118,173,.08); }
.choice-card span { min-width: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.choice-card span b, .choice-card span small { display: block; }
.choice-card span small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.compact-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-radio label { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.conditional { display: none; margin-top: 12px; }
.conditional.is-visible { display: flex; }
.form-grid.conditional.is-visible { display: grid; }
.standard-trial-note { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 28px; padding: 16px 18px; border: 1px solid #c9dfec; border-left: 4px solid var(--blue-2); border-radius: 12px; background: #f4fafd; color: #49677d; }
.standard-trial-note strong { flex: 0 0 auto; color: var(--navy); font-size: 13px; }
.standard-trial-note span { min-width: 0; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }

.agreement { border: 1px solid #cfe0ea; border-radius: 14px; overflow: hidden; background: #fbfdfe; }
.agreement summary { list-style: none; min-height: 72px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; background: linear-gradient(90deg, var(--blue-soft), #fbfdfe); }
.agreement summary::-webkit-details-marker { display: none; }
.agreement summary span { display: flex; flex-direction: column; }
.agreement summary b { color: var(--navy); font-size: 15px; }
.agreement summary small { margin-top: 3px; color: var(--muted); }
.agreement summary i { font-style: normal; font-size: 24px; color: var(--blue); transition: transform .2s; }
.agreement[open] summary i { transform: rotate(180deg); }
.agreement-body { max-height: 500px; padding: 24px 24px 30px; overflow: auto; border-top: 1px solid var(--line); color: #526a7d; font-size: 13px; }
.agreement-body > p:first-child { margin-top: 0; padding: 14px 16px; border-left: 3px solid var(--red); background: var(--red-soft); color: #4f4650; }
.agreement-body article { margin-top: 25px; }
.agreement-body h3 { margin: 0 0 6px; color: var(--navy); font-size: 15px; }
.agreement-body p { margin: 6px 0; }
.confirmations { display: grid; gap: 10px; margin: 25px 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.confirmations legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
.confirmations label { display: flex; align-items: flex-start; gap: 10px; padding: 8px; cursor: pointer; font-size: 13px; }
.confirmations label span { min-width: 0; overflow-wrap: anywhere; }
.confirmations input { margin-top: 3px; }
.confirmations .field-error { margin-left: 8px; }
.form-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.button { min-height: 48px; padding: 11px 24px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .14s, box-shadow .14s, background .14s; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button.primary { color: white; background: var(--red); box-shadow: 0 7px 18px rgba(217,54,43,.18); }
.button.primary:hover:not(:disabled) { background: var(--red-dark); box-shadow: 0 9px 22px rgba(217,54,43,.26); }
.button.secondary { color: var(--navy); background: white; border-color: #c7d7e1; }
.button.secondary:hover:not(:disabled) { background: var(--blue-soft); border-color: #a8c9dc; }
.draft-status { justify-self: center; color: #8a9aa7; font-size: 12px; }
.submit-button { display: none; }
.submit-button.is-visible { display: inline-flex; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { width: min(960px, calc(100% - 36px)); margin: 0 auto 42px; text-align: center; color: #718697; font-size: 12px; }
.site-footer p { margin: 8px 0; }
.modal { width: min(460px, calc(100% - 30px)); padding: 30px; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 25px 90px rgba(10,36,58,.25); text-align: center; }
.modal::backdrop { background: rgba(13,31,46,.48); backdrop-filter: blur(3px); }
.modal-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 24px; }
.modal h2 { margin: 4px 0 8px; font-size: 20px; }
.modal p { color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal-actions .button { flex: 1; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; color: white; background: #28465f; border-radius: 10px; box-shadow: 0 10px 35px rgba(0,0,0,.2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .22s; font-size: 14px; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast[data-type="error"] { background: var(--danger); }
.toast[data-type="success"] { background: var(--success); }

/* Success */
.result-card { max-width: 680px; margin: 70px auto; padding: 54px; text-align: center; background: white; border-radius: 22px; box-shadow: var(--shadow); }
.success-mark { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 34px; box-shadow: 0 12px 30px rgba(20,128,94,.2); }
.result-card h1 { margin: 0; color: var(--navy); font-size: 30px; }
.result-card .lead { color: var(--muted); }
.application-number { margin: 28px 0; padding: 22px; border: 1px solid #c9dfeb; border-radius: 14px; background: var(--blue-soft); }
.application-number small, .application-number strong { display: block; }
.application-number strong { margin-top: 6px; color: var(--navy); font-size: 25px; letter-spacing: .04em; }
.result-actions { display: flex; justify-content: center; gap: 12px; }
.result-card .success-feedback-button { color: #8f342f; background: #f9d8d5; border-color: #efb9b4; box-shadow: 0 5px 14px rgba(185,37,32,.09); }
.result-card .success-feedback-button:hover { color: #7c2925; background: #f3c5c1; border-color: #e9a9a3; box-shadow: 0 7px 17px rgba(185,37,32,.13); transform: translateY(-1px); }
.result-card .success-feedback-button:focus-visible { outline: 3px solid rgba(217,54,43,.2); outline-offset: 3px; }

/* Feedback */
.simple-hero { text-align: center; padding: 28px 0 32px; }
.simple-hero .eyebrow { color: var(--blue); }
.simple-hero h1 { margin: 8px 0; color: var(--navy); font-size: 34px; }
.simple-hero p { margin: 0; color: var(--muted); }
.standalone-card { padding: 42px 52px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.rating-group { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rating-group input { position: absolute; opacity: 0; }
.rating-group label { color: #d5dde3; cursor: pointer; font-size: 34px; line-height: 1; transition: color .15s; }
.rating-group label:hover, .rating-group label:hover ~ label, .rating-group input:checked ~ label { color: #f5ae22; }
.upload-box { padding: 24px; border: 1px dashed #9fc2d6; border-radius: 14px; background: #f8fcfe; text-align: center; }
.upload-box input { width: 100%; }
.file-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.file-item { padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin */
.admin-body { background: #eef4f7; }
.admin-shell { width: min(1360px, calc(100% - 32px)); margin: 30px auto 60px; }
.login-card { width: min(430px, calc(100% - 32px)); margin: 90px auto; padding: 38px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.login-card h1 { margin: 20px 0 4px; color: var(--navy); font-size: 25px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); }
.login-card .field { margin-bottom: 16px; }
.login-card .button { width: 100%; }
.admin-dashboard { display: none; }
.admin-dashboard.is-visible { display: block; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-topline h1 { margin: 0; color: var(--navy); }
.admin-actions { display: flex; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat-card { padding: 20px; border: 1px solid #dbe7ed; border-radius: 14px; background: white; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 4px; color: var(--navy); font-size: 27px; }
.filter-panel { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; margin: 16px 0; padding: 16px; border-radius: 14px; background: white; }
.filter-panel input, .filter-panel select { min-width: 0; }
.table-card { border-radius: 14px; overflow: hidden; background: white; box-shadow: 0 6px 22px rgba(20,62,92,.05); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf2f5; text-align: left; white-space: nowrap; }
th { color: #62778a; background: #f8fafb; font-size: 12px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f5fafc; }
.status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.status-pill[data-status="暂不处理"] { color: var(--danger); background: #ffeded; }
.status-pill[data-status="已联系"], .status-pill[data-status="已完成"] { color: var(--success); background: #e9f7f2; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px; }
.detail-drawer { width: min(720px, 100%); height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 18px 0 0 18px; }
.detail-drawer::backdrop { background: rgba(17,36,51,.45); }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: white; }
.drawer-header h2 { margin: 0; color: var(--navy); font-size: 20px; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: #eff4f7; font-size: 20px; }
.drawer-body { padding: 24px; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.detail-item small, .detail-item strong { display: block; }
.detail-item small { color: var(--muted); }
.detail-item strong { font-size: 13px; word-break: break-word; white-space: pre-wrap; }
.admin-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; border-radius: 12px; background: #f6f9fb; }
.admin-editor .full { grid-column: 1/-1; }

/* Local preview navigation */
.preview-body { min-height: 100vh; background: linear-gradient(145deg, #f8fcff 0%, #edf7fc 55%, #f8fbfd 100%); }
.preview-env { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--success); background: #eaf8f2; border: 1px solid #cceadf; border-radius: 999px; font-size: 12px; font-weight: 800; }
.preview-env i { width: 8px; height: 8px; border-radius: 50%; background: #26a77b; box-shadow: 0 0 0 4px rgba(38,167,123,.12); }
.preview-shell { width: min(1080px, calc(100% - 36px)); margin: 44px auto 70px; }
.preview-hero { position: relative; padding: 44px 46px; overflow: hidden; color: white; border-radius: 22px; background: linear-gradient(125deg, var(--navy) 0%, var(--blue) 76%, #277bae 100%); box-shadow: var(--shadow); }
.preview-hero::after { content: ""; position: absolute; width: 310px; height: 310px; right: -130px; top: -185px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 105px rgba(255,255,255,.025); }
.preview-hero h1 { position: relative; z-index: 1; max-width: 720px; margin: 9px 0 5px; font-size: clamp(28px, 4vw, 43px); line-height: 1.28; }
.preview-hero p { position: relative; z-index: 1; margin: 0; color: #cfe6f3; font-size: 17px; letter-spacing: .08em; }
.preview-line { width: 64px; height: 4px; margin-top: 22px; border-radius: 99px; background: var(--red); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.preview-card { min-height: 250px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #dbe8ef; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 12px 40px rgba(20,62,92,.075); transition: transform .18s, box-shadow .18s, border-color .18s; }
.preview-card:hover { transform: translateY(-3px); border-color: #b8d3e2; box-shadow: 0 17px 45px rgba(20,62,92,.11); }
.preview-number { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--red); border: 1px solid #f0c5c1; border-radius: 12px; background: var(--red-soft); font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.preview-card-copy { flex: 1; }
.preview-card h2 { margin: 17px 0 7px; color: var(--navy); font-size: 21px; }
.preview-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.preview-card .button { min-width: 155px; }
.preview-local-note { margin-top: 22px; padding: 17px 20px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #4c687d; border: 1px solid #cde2ed; border-radius: 14px; background: rgba(234,245,251,.82); text-align: center; }
.preview-local-note span { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font: 800 13px Georgia, serif; }
.preview-local-note p { margin: 0; font-size: 13px; }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 24px, 700px); margin-top: 18px; }
  .brand-bar { height: 68px; padding: 0 14px; }
  .brand img { width: 105px; height: 38px; }
  .brand-divider, .acc-wordmark small { display: none; }
  .acc-wordmark strong { font-size: 15px; }
  .hero { min-height: 230px; }
  .hero-copy { width: 70%; padding: 32px 30px; }
  .hero-product { width: 52%; right: -12%; }
  .application-header { gap: 12px; }
  .application-hero { min-height: 275px; }
  .application-hero::after { width: 220px; height: 220px; right: -36px; top: -72px; }
  .application-hero-copy { width: 68%; padding: 32px 30px; }
  .application-hero h1 { font-size: clamp(25px, 4.1vw, 33px); letter-spacing: -.035em; }
  .application-hero .hero-product { width: auto; height: 73%; right: 24px; bottom: 18px; }
  .form-card, .standalone-card { padding: 30px 24px; }
  .step b { display: none; }
  .stepper { grid-template-columns: auto 1fr auto 1fr auto 1fr auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .filter-panel > :first-child { grid-column: 1/-1; }
  .preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { line-height: 1.6; }
  .text-link { font-size: 12px; padding: 8px; }
  .application-header { gap: 9px; }
  .application-header .brand { gap: 10px; }
  .application-feedback-button { min-height: 44px; padding: 9px 13px; border-radius: 10px; font-size: 12px; box-shadow: 0 4px 12px rgba(154, 76, 76, .13); }
  .page-shell { width: 100%; margin: 0 auto 40px; }
  .hero { min-height: 225px; border-radius: 0; }
  .hero-copy { width: 75%; padding: 29px 20px; }
  .hero h1 { font-size: 29px; }
  .hero p { max-width: 260px; font-size: 13px; }
  .trust-row { gap: 9px; margin-top: 17px; }
  .trust-row span { font-size: 10px; }
  .hero-product { width: 58%; right: -22%; bottom: -5px; opacity: .7; }
  .application-hero { min-height: 300px; }
  .application-hero::before { opacity: .72; }
  .application-hero::after { width: 190px; height: 190px; right: -82px; top: -56px; }
  .application-hero-copy { width: 100%; padding: 27px 18px 24px; }
  .application-hero h1 { margin: 9px 0 13px; font-size: clamp(23px, 7.25vw, 28px); line-height: 1.28; letter-spacing: -.04em; }
  .application-hero .hero-support { max-width: calc(100% - 150px); }
  .application-hero .hero-company { margin-bottom: 5px; font-size: 11px; line-height: 1.55; letter-spacing: 0; }
  .application-hero .hero-subtitle { max-width: none; font-size: 12px; line-height: 1.65; }
  .application-hero .hero-product { width: auto; height: 44%; right: 12px; bottom: 14px; opacity: 1; filter: drop-shadow(0 8px 10px rgba(27, 71, 96, .16)); }
  .form-card, .standalone-card { padding: 26px 18px; border-radius: 0 0 18px 18px; box-shadow: none; }
  .intro { font-size: 13px; }
  .stepper { padding: 24px 0 10px; }
  .step span { width: 30px; height: 30px; flex-basis: 30px; }
  .progress-track { margin: 0 0 28px; }
  .section-heading { align-items: center; margin-bottom: 22px; }
  .section-heading h2 { font-size: 20px; }
  .form-grid, .form-grid.four-col { grid-template-columns: 1fr; gap: 16px; }
  .field.full, .full { grid-column: auto; }
  .choice-grid, .choice-grid.two { grid-template-columns: 1fr; gap: 8px; }
  .choice-card { min-height: 50px; }
  .address-match { width: 100%; }
  .standard-trial-note { flex-direction: column; gap: 4px; }
  .agreement summary { padding: 14px; }
  .agreement-body { padding: 18px 15px 24px; max-height: 420px; }
  .confirmations { padding: 13px; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .draft-status { grid-column: 1/-1; grid-row: 1; }
  .button { width: 100%; padding-inline: 14px; }
  .site-footer { width: calc(100% - 32px); }
  .result-card { margin: 30px 12px; padding: 38px 20px; }
  .result-card h1 { font-size: 26px; }
  .application-number strong { font-size: 19px; }
  .result-actions, .modal-actions { flex-direction: column; }
  .simple-hero { padding: 28px 18px; }
  .simple-hero h1 { font-size: 27px; }
  .file-list { grid-template-columns: 1fr; }
  .admin-shell { width: calc(100% - 20px); margin-top: 16px; }
  .admin-topline { align-items: flex-start; gap: 12px; }
  .admin-topline h1 { font-size: 22px; }
  .admin-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 15px; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-panel > :first-child { grid-column: auto; }
  .detail-drawer { border-radius: 0; }
  .detail-grid, .admin-editor { grid-template-columns: 1fr; }
  .admin-editor .full { grid-column: auto; }
  .preview-env { padding: 6px 9px; font-size: 10px; }
  .preview-shell { width: 100%; margin: 0 auto 38px; }
  .preview-hero { padding: 34px 20px; border-radius: 0; }
  .preview-hero h1 { font-size: 28px; }
  .preview-grid { gap: 12px; margin: 14px 12px 0; }
  .preview-card { min-height: 230px; padding: 23px 20px; }
  .preview-card .button { width: 100%; }
  .preview-local-note { align-items: flex-start; margin: 14px 12px 0; text-align: left; }
}
