:root {
  --navy: #102b3f;
  --navy-2: #183f56;
  --ink: #17242c;
  --slate: #667783;
  --line: #d9ddd9;
  --paper: #f4efe5;
  --white: #fffdfa;
  --gold: #d5a928;
  --gold-soft: #f1dfaa;
  --mint: #d7e8df;
  --red: #a84b3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; }
a { color: inherit; }
.card-link { color: var(--navy); font-weight: 800; text-decoration-color: rgba(16,43,63,.35); text-underline-offset: 3px; }
.card-link:hover { text-decoration-color: var(--gold); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 22px; padding: 12px clamp(18px, 4vw, 64px); border-bottom: 1px solid rgba(16,43,63,.14); background: rgba(244,239,229,.94); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: .02em; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--navy); }
.brand span { line-height: 1.05; }
.brand small { display: block; margin-top: 5px; color: var(--slate); font-size: 11px; font-weight: 650; letter-spacing: .16em; }
nav { display: flex; align-items: center; justify-content: center; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.nav-link { padding: 10px 11px; border-radius: 99px; color: #455864; text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--paper); background: var(--navy); }
.user-bar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.role-pill { padding: 6px 9px; border: 1px solid var(--navy); border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.inline-form { display: inline-flex; }
.text-button { border: 0; background: transparent; color: var(--slate); cursor: pointer; }

main { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) 80px; }
.hero { min-height: 520px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 9vw; padding: 110px 0 66px; border-bottom: 1px solid var(--navy); }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--slate); font-size: 11px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .page-title h1 { margin-bottom: 26px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(52px, 8vw, 112px); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.hero p { max-width: 690px; margin-bottom: 0; color: #52636c; font-size: 18px; line-height: 1.8; }
.hero-index { display: grid; border-top: 1px solid var(--navy); }
.hero-index span { padding: 14px 0; border-bottom: 1px solid rgba(16,43,63,.22); color: var(--navy); font-size: clamp(14px, 1.4vw, 18px); font-weight: 720; }

.section-block { padding: 50px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading > div { display: flex; align-items: baseline; gap: 18px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 3vw, 46px); font-weight: 500; }
.section-heading a { color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.index { color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.compact-card { min-height: 240px; display: grid; grid-template-columns: 1fr .85fr; gap: 30px; padding: 28px; border: 1px solid rgba(16,43,63,.22); border-radius: 2px; background: rgba(255,253,250,.55); }
.compact-card h3 { margin: 16px 0 9px; font-size: 24px; }
.compact-card p, .record p { color: #596a73; line-height: 1.65; }
dl { margin: 0; }
dt { margin-bottom: 3px; color: var(--slate); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
dd { margin: 0 0 18px; line-height: 1.5; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 84px); }
.signal-list { margin: 0; padding: 0; list-style: none; }
.signal-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 13px 0; border-top: 1px solid var(--line); }
.signal-list li:last-child { border-bottom: 1px solid var(--line); }
.signal-list li > span:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 12px; }
.signal-list strong { font-size: 16px; }
.signal-list small { grid-column: 2; color: var(--slate); }
.signal-list .owner { color: var(--slate); font-size: 13px; text-align: right; }
.signal-list li.bare { display: block; border: 0; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person-card { display: flex; gap: 18px; min-height: 150px; padding: 22px; border-top: 3px solid var(--navy); background: var(--white); }
.person-card h3 { margin-bottom: 7px; font-size: 21px; }
.person-card p { margin-bottom: 10px; color: var(--slate); line-height: 1.5; }
.person-card small { font-weight: 750; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--navy); font-family: Georgia, serif; font-size: 21px; }
.avatar.large { width: 72px; height: 72px; font-size: 30px; }
.lower-grid { gap: 0; margin-top: 50px; }
.lower-grid .section-block { padding: 42px; border: 0; }
.accent-panel { background: var(--gold-soft); }
.dark-panel { color: var(--paper); background: var(--navy); }
.dark-panel .section-heading a, .dark-panel .eyebrow, .dark-panel p { color: #c4d1d6; }
.date-block { display: flex; align-items: center; gap: 20px; }
.date-block strong { font-family: Georgia, serif; font-size: 26px; }

.badge { display: inline-flex; width: max-content; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 850; }
.badge.ok { color: #1b563d; background: var(--mint); }
.badge.warn { color: #75491a; background: var(--gold-soft); }
.badge.neutral { color: #53636c; background: #e4e8e8; }
.demo-badge { display: inline-flex; align-items: center; margin-left: 5px; padding: 3px 7px; border: 1px solid #9a7320; border-radius: 99px; color: #73520f; background: #fff0b8; font-size: 10px; font-weight: 900; letter-spacing: .08em; vertical-align: middle; }
.empty-state { width: 100%; padding: 30px; border: 1px dashed #aeb7b4; background: rgba(255,255,255,.35); }
.empty-state h3 { margin: 8px 0 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: 24px; font-weight: 500; }
.empty-state p { color: var(--slate); }
.empty-kicker { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.muted { color: var(--slate); font-size: 13px; }

.page-title { max-width: 1050px; padding: 100px 0 58px; }
.page-title h1 { margin-bottom: 22px; }
.page-title p { max-width: 760px; color: var(--slate); font-size: 18px; line-height: 1.75; }
.records { padding-top: 0; }
.view-actions { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.project-record { margin-bottom: 18px; border: 1px solid rgba(16,43,63,.24); background: rgba(255,253,250,.62); }
.project-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; cursor: pointer; list-style: none; }
.project-record > summary::-webkit-details-marker { display: none; }
.project-record > summary > span:first-child { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; }
.project-record > summary strong { grid-column: 1 / -1; margin-top: 7px; font-family: Georgia,"Noto Serif TC",serif; font-size: clamp(26px,3vw,40px); font-weight: 500; }
.project-record > summary small { grid-column: 1 / -1; color: var(--slate); font-size: 14px; line-height: 1.5; }
.system-badge { display: inline-flex; width: max-content; padding: 4px 7px; border: 1px solid var(--navy); color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.system-note { margin: 12px 0 0; color: var(--slate); font-size: 12px; }
.project-meta { display: grid; grid-template-columns: minmax(260px,.8fr) 1.2fr; gap: 28px; padding: 0 28px 24px; border-bottom: 1px solid var(--line); }
.project-meta dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; }
.project-meta dd { margin-bottom: 9px; }
.relation-label { display: block; margin-bottom: 8px; color: var(--slate); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.relation-links { display: flex; flex-wrap: wrap; gap: 7px; }
.relation-links .card-link { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(16,43,63,.22); background: var(--white); font-size: 12px; text-decoration: none; }
.project-tasks { padding: 24px 28px 28px; }
.project-tasks > h3, .task-view-section > h2 { margin-bottom: 15px; font-family: Georgia,"Noto Serif TC",serif; font-size: 28px; font-weight: 500; }
.task-row { display: grid; grid-template-columns: 1fr minmax(180px,.35fr); gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.task-row h4 { margin: 9px 0 7px; font-size: 20px; }
.task-row p { margin-bottom: 0; color: var(--slate); }
.task-row dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; }
.task-row dd { margin-bottom: 8px; }
.empty-inline { padding: 18px; border: 1px dashed #aeb7b4; color: var(--slate); }
.relation-list { margin: 0; padding: 0; list-style: none; }
.relation-list li { margin-bottom: 8px; }
.relation-list small { display: block; margin-top: 2px; color: var(--slate); }
.task-view-section { margin-bottom: 50px; }
.my-task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.my-task-list li { padding: 16px; border: 1px solid var(--line); background: var(--white); }
.my-task-list small { display: block; margin-top: 5px; color: var(--slate); }
.linked-record:target, .project-record:target { scroll-margin-top: 150px; box-shadow: 0 0 0 4px rgba(213,169,40,.38); }
.record { display: grid; grid-template-columns: 1fr minmax(220px, .42fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.record:last-child { border-bottom: 1px solid var(--line); }
.record h2 { margin: 10px 0; font-size: clamp(25px, 3vw, 38px); }
.record-main { min-width: 0; }
.record dl { display: grid; grid-template-columns: 105px 1fr; gap: 6px 14px; }
.record dd { margin-bottom: 13px; overflow-wrap: anywhere; }
.member-record { grid-template-columns: auto 1fr minmax(220px, .42fr); }
.preserve-lines { white-space: pre-line; }
.status-form, .assignment-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 20px; }
.assignment-form label { min-width: 170px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 18px; border: 1px solid var(--navy); border-radius: 2px; color: var(--paper); background: var(--navy); font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--navy); background: var(--gold); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button-wide { width: 100%; justify-content: space-between; padding: 14px 18px; }
label { display: grid; gap: 7px; color: #43545d; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8c0bd; border-radius: 2px; color: var(--ink); background: var(--white); }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(213,169,40,.55); outline-offset: 2px; }

.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.intake-card { padding: 28px; border: 1px solid rgba(16,43,63,.22); background: rgba(255,253,250,.65); }
.intake-card h2 { margin: 7px 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.intake-card > p { min-height: 50px; color: var(--slate); line-height: 1.55; }
.data-form { display: grid; gap: 14px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contribution { max-width: 820px; margin: 30px auto 0; padding: 32px; border: 1px solid rgba(16,43,63,.24); background: var(--white); }
.contribution h2 { font-family: Georgia, "Noto Serif TC", serif; font-size: 30px; font-weight: 500; }

.board-body { min-height: 100vh; color: #f7f1e7; background: #071b28; }
.board-body .site-header { color: #f7f1e7; border-bottom-color: rgba(255,255,255,.15); background: rgba(7,27,40,.96); }
.board-body .brand small, .board-body .text-button { color: #b7c8cf; }
.board-body .nav-link { color: #c9d5d9; }
.board-body .nav-link:hover, .board-body .nav-link.active { color: #102b3f; background: var(--gold); }
.board-body .card-link { color: var(--gold-soft); text-decoration-color: rgba(241,223,170,.4); }
.board-body .role-pill { border-color: #d5a928; }
.board-body main { width: min(1800px,100%); }
.board-hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 54px 0 32px; border-bottom: 1px solid rgba(255,255,255,.2); }
.board-hero .eyebrow { color: var(--gold); }
.board-hero h1 { margin: 0 0 12px; font-family: Georgia,"Noto Serif TC",serif; font-size: clamp(52px,6vw,96px); font-weight: 500; line-height: .95; }
.board-hero p { margin: 0; color: #bac8ce; font-size: 19px; }
.board-hero > time { color: var(--gold); font: 700 clamp(26px,3vw,46px)/1 ui-monospace,SFMono-Regular,monospace; white-space: nowrap; }
.board-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; padding: 22px 0 60px; }
.board-panel { padding: 26px; border: 1px solid rgba(255,255,255,.16); background: #0d2635; }
.board-panel h2 { margin-bottom: 22px; color: var(--gold); font-size: clamp(22px,2vw,34px); }
.people-panel { grid-row: span 2; }
.board-people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.board-person { min-height: 180px; padding: 20px; background: #153345; }
.board-person > div { display: grid; grid-template-columns: auto 1fr; gap: 0 13px; align-items: center; }
.board-person h3 { margin: 0; font-size: 21px; }
.board-person p { grid-column: 2; margin: 3px 0 12px; color: #bdd0d8; }
.board-person ul, .board-cards, .board-calendar { margin: 0; padding: 0; list-style: none; }
.board-person li { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.12); font-weight: 700; }
.board-person small, .board-machine small, .board-cards small, .board-calendar small { display: block; margin-top: 3px; color: #aabdc5; font-size: 12px; font-weight: 500; }
.board-machine-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.board-machine { padding: 16px; border-left: 3px solid var(--gold); background: #153345; }
.board-machine h3 { margin: 11px 0 5px; }
.board-machine p { margin-bottom: 4px; font-size: 18px; font-weight: 800; }
.board-calendar li, .board-cards li { display: grid; grid-template-columns: 60px 1fr; gap: 15px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); }
.board-calendar time { color: var(--gold); font: 800 17px/1.2 ui-monospace,SFMono-Regular,monospace; }
.board-cards li { grid-template-columns: 1fr; }
.board-body .empty-state { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.board-body footer { color: #9fb2bb; background: #061722; }

.notice { margin-top: 22px; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.admin-section { margin-bottom: 28px; padding: 30px; border: 1px solid rgba(16,43,63,.22); background: rgba(255,253,250,.7); }
.admin-section > h2 { margin-bottom: 22px; font-family: Georgia,"Noto Serif TC",serif; font-size: clamp(30px,3vw,44px); font-weight: 500; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.danger-button { min-height: 40px; padding: 9px 15px; border: 1px solid #8d3028; border-radius: 2px; color: #fff; background: var(--red); font-weight: 800; cursor: pointer; }
.danger-form { margin-top: 8px; }
.admin-stack, .wording-list { display: grid; gap: 10px; margin-top: 20px; }
.admin-entity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.admin-entity { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.admin-entity h3 { font-family: ui-monospace,SFMono-Regular,monospace; font-size: 15px; }
.admin-record-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.admin-record-form textarea { min-height: 70px; }
.admin-existing { display: grid; gap: 7px; margin-top: 16px; }
.admin-row { padding: 10px; border: 1px solid var(--line); }
.admin-row summary { cursor: pointer; font-weight: 800; }
.admin-row .admin-record-form { margin-top: 10px; padding: 0; border: 0; }
.wording-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.wording-row label { grid-template-columns: 230px 1fr; align-items: center; }
.wording-row label input { grid-column: 2; grid-row: 1 / span 2; }
.wording-row small { color: var(--slate); }

.login-body { min-height: 100vh; background: var(--navy); }
.login-body main { width: 100%; max-width: none; padding: 0; }
.login-shell { min-height: calc(100vh - 50px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); }
.login-identity { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 720px; padding: clamp(42px, 7vw, 100px); color: var(--paper); background: var(--navy); }
.login-identity::after { content: ""; position: absolute; top: -15vw; left: -10vw; width: 58vw; height: 58vw; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(255,255,255,.025), 0 0 0 15vw rgba(255,255,255,.018); }
.login-identity img { position: absolute; z-index: 1; top: clamp(35px, 6vw, 90px); right: clamp(35px, 8vw, 130px); width: clamp(210px, 30vw, 430px); border-radius: 50%; border: 7px solid var(--gold); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.login-identity > * { position: relative; z-index: 2; }
.login-identity .eyebrow { color: var(--gold); }
.login-identity h1 { margin: 0 0 24px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(48px, 7vw, 105px); font-weight: 500; line-height: .93; letter-spacing: -.045em; }
.login-identity h1 em { color: var(--gold); font-weight: 500; font-style: normal; }
.login-identity p { max-width: 670px; margin: 0; color: #c5d1d5; font-size: 17px; line-height: 1.8; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 86px); background: var(--paper); }
.login-panel h2 { margin: 14px 0 8px; font-family: Georgia, "Noto Serif TC", serif; font-size: 38px; font-weight: 500; }
.login-panel > p { margin-bottom: 30px; color: var(--slate); line-height: 1.65; }
.login-panel form { display: grid; gap: 18px; }
.login-panel small { margin-top: 20px; color: var(--slate); text-align: center; }
.login-error { padding: 12px; border-left: 3px solid var(--red); color: var(--red)!important; background: #f4ded8; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 17px clamp(18px, 4vw, 64px); color: var(--slate); background: #e9e3d8; font-size: 11px; }
.login-body footer { color: #b9c8ce; background: #0b2232; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 80px; }
  .hero-index { grid-template-columns: 1fr 1fr; }
  .hero-index span { padding-right: 20px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-identity { min-height: 690px; }
  .login-panel { min-height: 560px; }
  .board-grid, .admin-entity-grid { grid-template-columns: 1fr; }
  .people-panel { grid-row: auto; }
  .admin-record-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .site-header { position: static; grid-template-columns: 1fr; gap: 12px; }
  .user-bar { position: absolute; top: 20px; right: 18px; }
  .role-pill { display: none; }
  .brand { padding-right: 160px; }
  .site-header nav { width: calc(100vw - 36px); }
  .hero { min-height: auto; padding: 64px 0 44px; }
  .hero h1, .page-title h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-index { grid-template-columns: 1fr; }
  .project-grid, .split-grid, .people-grid, .intake-grid { grid-template-columns: 1fr; }
  .compact-card { grid-template-columns: 1fr; }
  .lower-grid .section-block { padding: 30px 24px; }
  .section-heading { align-items: flex-start; }
  .section-heading > div { gap: 11px; }
  .section-heading a { max-width: 80px; text-align: right; }
  .record, .member-record { grid-template-columns: 1fr; gap: 20px; }
  .project-record > summary { align-items: flex-start; flex-direction: column; padding: 20px; }
  .project-meta, .task-row { grid-template-columns: 1fr; }
  .project-meta, .project-tasks { padding-left: 20px; padding-right: 20px; }
  .record dl { grid-template-columns: 90px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .my-task-list { grid-template-columns: 1fr; }
  .login-identity { min-height: 640px; padding: 32px 24px 46px; }
  .login-identity img { top: 35px; right: 24px; width: 210px; }
  .login-identity h1 { font-size: 52px; }
  .login-panel { min-height: 530px; padding: 45px 24px; }
  .board-hero { align-items: flex-start; flex-direction: column; }
  .board-people-grid, .board-machine-grid { grid-template-columns: 1fr; }
  .admin-section { padding: 20px 14px; }
  .admin-record-form, .wording-row, .wording-row label { grid-template-columns: 1fr; }
  .wording-row label input { grid-column: 1; grid-row: auto; }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* NK 2026-08-18：標題兩行——LAB 名稱在上、工作儀表板在下 */
.login-identity h1 .login-sub{display:block;font-size:.62em;font-weight:500;letter-spacing:.04em;margin-top:.15em;opacity:.92}
