/* ——— 网页内申请：整页表单 ——— */
.apply-sheet { border: 0; padding: 0; width: 100%; max-width: 680px; height: 100%; max-height: none; margin: 0 auto;
  background: var(--mist); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.apply-sheet[open] { animation: sheet-in .56s var(--settle); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.apply-sheet::backdrop { background: color-mix(in srgb, var(--mist) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.apply-sheet__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px; background: color-mix(in srgb, var(--mist) 92%, transparent); }
.apply-sheet__bar h2 { font-size: 22px; }
.apply-sheet form { padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); }
.apply-sheet__intro { margin: 4px 0 8px; color: var(--ink-soft); font-size: 14px; }
.apply-sheet__group { margin-top: 30px; }
.apply-sheet__group h3 { font-size: 15px; letter-spacing: .3em; color: var(--ink-soft); margin-bottom: 6px; }
.q { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; transition: background-color .4s; }
.q legend { float: left; width: 100%; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.q legend em { margin-left: 8px; font-style: normal; font-weight: 400; font-size: 12px; color: var(--accent); }
.q__note { clear: both; margin: 2px 0 0; padding-top: 2px; font-size: 13px; color: var(--ink-soft); }
.q.is-missing legend { color: var(--accent); }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 3px 10px var(--shade);
  transition: background-color .3s var(--settle), color .3s var(--settle), transform .16s var(--settle); }
.chip input:checked + span { background: var(--ink); color: var(--mist); border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.q input:not([type]), .q textarea { clear: both; display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 3px var(--shade); }
.q textarea { resize: vertical; min-height: 110px; }
.q input:focus, .q textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.apply-sheet__send { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 18px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: linear-gradient(transparent, var(--mist) 35%); }
.apply-sheet__send .btn { width: 100%; }
.apply-sheet__send .btn:disabled { opacity: .45; cursor: default; }
.apply-sheet__stop { margin: 0; font-size: 14px; color: var(--accent); }
.apply-sheet__done { display: grid; justify-items: center; gap: 14px; padding: 18vh var(--gutter) 40px; text-align: center; }
.apply-sheet__done[hidden] { display: none; }
.apply-sheet__done h3 { font-size: 26px; }
.apply-sheet__done p { margin: 0; color: var(--ink-soft); max-width: 360px; }
