:root {
  color-scheme: light;
  --ink: #201d1d;
  --black: #171515;
  --muted: #625b57;
  --red: #a9202d;
  --dark-red: #881724;
  --gold: #a37232;
  --line: #e4ded6;
  --paper: #f7f4ef;
  --white: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1,h2,h3,p,dl,dd { margin: 0; }
h1,h2,h3 { line-height: 1.35; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); letter-spacing: -.045em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
p + p { margin-top: .65rem; }
a { color: var(--dark-red); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #bf812c; outline-offset: 3px; }
.bar { background: var(--black); color: #fff; border-bottom: 2px solid #ba8a4e; }
.bar-inner { max-width: 1264px; margin: auto; padding: .8rem clamp(1rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: .85rem; color: #fff; text-decoration: none; }
.brand b { font-size: 1.48rem; font-style: italic; font-weight: 900; letter-spacing: -.06em; }
.brand b span { color: #e4565e; }
.brand small { color: #e0c69d; font-size: .67rem; font-weight: 750; letter-spacing: .14em; }
.bar-actions, .tools { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.bar .quiet { color: #fff; background: #272222; border-color: #675c58; }
.environment { color: #ffefce; background: #413127; padding: .25rem .55rem; border: 1px solid #7c6143; border-radius: 6px; font-size: .72rem; white-space: nowrap; }
.admin-shell { max-width: 1264px; margin: auto; padding: 0 clamp(1rem, 4vw, 2rem) 3rem; min-height: 70vh; }
.dashboard-hero { padding: 2.25rem 0 1.35rem; }
.hero-line { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.hero-line > button { flex-shrink: 0; }
.hero-line p { margin-top: .5rem; color: var(--muted); }
.eyebrow { font-size: .69rem; font-weight: 800; letter-spacing: .17em; color: #805623; margin-bottom: .4rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.login-panel { max-width: 460px; margin: clamp(2rem, 10vh, 6rem) auto 1rem; padding: clamp(1.25rem, 6vw, 2.25rem); box-shadow: 0 12px 45px #3421190a; }
.login-panel h1 { font-size: clamp(1.45rem, 6vw, 2rem); margin-bottom: .65rem; }
.login-panel form, .stack { display: grid; gap: 1rem; margin: 1rem 0; }
.login-panel .note { margin-top: 1rem; }
button, .link-button { min-height: 42px; font: inherit; font-size: .83rem; font-weight: 720; border-radius: 8px; padding: .5rem .85rem; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
.link-button { display: inline-flex; align-items: center; justify-content: center; }
.primary { border: 1px solid var(--red); background: var(--red); color: #fff; }
.primary:hover { background: var(--dark-red); }
.quiet { border: 1px solid #dcd3c9; background: #fff; color: var(--ink); }
.quiet:hover { background: #f4eee6; color: var(--ink); }
label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 690; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 43px; padding: .55rem .7rem; border: 1px solid #cfc5b9; border-radius: 7px; font: inherit; font-size: 1rem; font-weight: 430; color: var(--ink); background: #fff; }
textarea { min-height: 93px; resize: vertical; }
input[readonly] { background: #f3efe9; color: #4a3930; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.stat { display: grid; align-content: start; gap: .18rem; text-align: left; padding: .85rem 1rem; border: 1px solid var(--line); border-top: 3px solid #c1a77e; background: #fff; color: var(--ink); }
.stat[aria-pressed="true"] { border-top-color: var(--red); background: #fff9f6; }
.stat span { font-size: .76rem; }
.stat strong { font-size: 1.65rem; line-height: 1.15; }
.workspace { display: grid; grid-template-columns: minmax(17rem, .85fr) minmax(0, 1.35fr); gap: 1rem; align-items: start; }
.inbox,.detail { padding: clamp(.9rem, 2.4vw, 1.4rem); min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: start; gap: .65rem; }
.filters { margin: 1rem 0 .65rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, auto) auto; gap: .4rem; }
.filters input, .filters select { font-size: .82rem; padding-inline: .5rem; }
.applicant-list { display: grid; gap: .38rem; }
.applicant { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; align-items: center; text-align: left; padding: .65rem .75rem; color: var(--ink); }
.applicant:hover, .applicant[aria-pressed="true"] { background: #fff5f3; border-color: #ca8790; }
.applicant strong { overflow-wrap: anywhere; }
.row-meta { display: block; font-size: .75rem; font-weight: 450; color: var(--muted); overflow-wrap: anywhere; }
.row-flag { grid-column: 1/-1; color: var(--dark-red); font-size: .73rem; }
.badge { display: inline-block; padding: .19rem .48rem; border-radius: 5px; background: #f1eeea; color: #544a45; font-size: .7rem; font-weight: 740; white-space: nowrap; }
.badge-slots,.badge-review,.badge-queued { background: #f6ebd7; color: #694717; }
.badge-confirmed,.badge-sent,.badge-simulated,.badge-completed { background: #e8f0e9; color: #315641; }
.badge-withdrawn,.badge-failed { background: #fae6e7; color: #8b222a; }
.pager { margin-top: .85rem; display: flex; gap: .65rem; align-items: center; justify-content: center; font-size: .78rem; }
.empty { text-align: center; color: var(--muted); padding: 2.7rem .5rem 3.5rem; }
.empty span { display: block; color: var(--gold); font-size: 1.55rem; margin-bottom: .3rem; }
.empty p { margin-top: .45rem; font-size: .85rem; }
.list-empty { color: var(--muted); padding: .75rem 0; }
.tools { margin: .85rem 0; }
.contact-state { color: var(--muted); font-size: .82rem; font-weight: 700; }
.detail-section { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.detail-section h3 { margin-bottom: .65rem; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.info > div { background: #f8f5f0; border-radius: 7px; padding: .55rem .65rem; overflow-wrap: anywhere; }
.info dt { color: var(--muted); font-size: .72rem; }
.info dd { font-size: .86rem; white-space: pre-wrap; }
.candidate-list { padding-left: 1.4rem; margin: .5rem 0 1rem; font-size: .9rem; }
.candidate-list li { margin: .25rem 0; }
.candidate-list button { margin-left: .45rem; }
.history-item { border-bottom: 1px solid var(--line); padding: .46rem 0; }
.history-item summary { cursor: pointer; font-size: .85rem; }
.history-item summary .badge { margin-left: .55rem; }
.history-item p { margin-top: .3rem; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: .6rem; background: #f7f4ef; font-size: .82rem; border-radius: 6px; }
.audit-list { font-size: .78rem; color: var(--muted); padding-left: 1.2rem; }
.muted { color: var(--muted); font-size: .88rem; }
.error,.notice,.note { border-radius: 8px; padding: .65rem .85rem; overflow-wrap: anywhere; font-size: .87rem; }
.error { margin: .8rem 0; background: #fbe6e6; border: 1px solid #e3afb3; color: #7a1621; }
.notice { margin-bottom: 1rem; background: #e8f0e9; border: 1px solid #cadacb; color: #294c39; }
.note { background: #f7f1e6; border: 1px solid #e4d6c0; }
.foot { text-align: center; color: var(--muted); font-size: .7rem; padding: 1rem; letter-spacing: .08em; }
.apply-shell { min-height: 74vh; }
.apply-page { --red: #ac182a; --dark-red: #851221; --line: #e6e0df; background: #f8f6f6; }
.apply-page :focus-visible { outline-color: #b82037; }
.apply-page .bar { background: #151416; border-bottom: 1px solid #ffffff20; }
.apply-page .bar-inner { max-width: 680px; min-height: 56px; padding: .55rem 1rem; }
.apply-page .brand small { color: #f0e9ea; font-size: .67rem; letter-spacing: .07em; }
.apply-page .environment { color: #f5dadd; border-color: #795059; background: #43232b; }
.apply-hero {
  color: #fff;
  background:
    linear-gradient(122deg, transparent 64%, #ffffff0d 64%, #ffffff0d 71%, transparent 71%),
    linear-gradient(122deg, #171518 28%, #401a24 72%, #881828);
  border-bottom: 2px solid var(--red);
}
.apply-hero-inner { max-width: 680px; margin: 0 auto; padding: 1.25rem 1rem 1.55rem; }
.apply-page .eyebrow { color: var(--dark-red); }
.apply-hero .eyebrow { color: #ffc5cb; }
.apply-hero h1 { font-size: clamp(1.8rem, 6.9vw, 2.9rem); margin: .3rem 0 .45rem; }
.apply-hero p:last-child { color: #f2e6e9; font-size: .85rem; }
.apply-wrap { max-width: 680px; padding: 0 1rem 2rem; margin: 0 auto; }
.privacy-wrap { margin-top: 2rem; }
.steps { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
.steps li { display: flex; justify-content: center; align-items: center; gap: .3rem; border-bottom: 2px solid #e0d7da; color: var(--muted); font-size: .7rem; font-weight: 700; padding: .4rem .1rem .55rem; }
.steps span { font-size: .66rem; font-variant-numeric: tabular-nums; }
.steps li[aria-current="step"] { color: var(--dark-red); border-color: var(--red); }
.form-panel { padding: clamp(1rem, 5vw, 1.65rem); }
.apply-page .form-panel { box-shadow: 0 8px 28px #2f162408; scroll-margin-top: .6rem; }
.form-panel h2 + p, .form-panel > p { margin-top: .45rem; }
.form-panel form { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.apply-page .stack { gap: .85rem; }
.apply-page .stack > button { min-height: 48px; font-size: .91rem; }
.apply-page :is(input, select, textarea) { min-height: 46px; border-color: #d8cfd1; border-radius: 8px; }
.apply-page input[readonly] { background: #f6f1f2; color: var(--ink); }
.profile-dates { grid-template-columns: minmax(0, 1fr) minmax(6rem, .52fr); }
.profile-optional { border-block: 1px solid var(--line); }
.profile-optional summary { padding: .7rem 0; cursor: pointer; font-size: .85rem; font-weight: 700; }
.profile-optional-fields { display: grid; gap: .8rem; padding-bottom: .85rem; }
.apply-page .note { background: #faf5f6; border-color: #e9dce0; }
.profile-consent > p { margin: .25rem 0 .4rem; }
.checkbox { display: flex; gap: .55rem; align-items: start; margin-top: .65rem; }
.apply-page .checkbox { min-height: 44px; align-items: center; margin-top: .55rem; padding: .4rem 0; }
.apply-page .checkbox input { flex: 0 0 1.25rem; width: 1.25rem; min-height: 1.25rem; margin: 0; accent-color: var(--red); }
.profile-summary > div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.profile-summary dt { font-size: .75rem; color: var(--muted); }
.profile-summary dd { font-size: .91rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.intake-thanks span { display: inline-block; }
.stop-panel { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.stop-panel .quiet { color: var(--dark-red); }
.apply-options { margin-top: .45rem; padding: 0 .3rem; }
.apply-options summary { width: fit-content; min-height: 44px; padding: .65rem 0; color: var(--muted); font-size: .79rem; cursor: pointer; }
.apply-options .stop-panel { margin-top: 0; }
.meeting-time { font-weight: 800; font-size: 1.22rem; margin-bottom: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 810px) {
  .workspace { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero-line { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .brand { gap: .45rem; }
  .brand small { font-size: .54rem; }
  .stat { padding: .6rem .5rem; }
  .bar-actions { justify-content: end; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto) auto; }
}

.calendar { background: #faf6f7; border: 1px solid var(--line); border-radius: 12px; padding: clamp(.5rem, 2.5vw, 1rem); }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.calendar-nav button { min-width: 44px; padding: .2rem; font-size: 1.35rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; text-align: center; }
.calendar-weekday { padding: .25rem 0; color: var(--muted); font-size: .77rem; }
.calendar-day { min-height: 44px; padding: .15rem; border: 1px solid transparent; background: #fff; color: var(--ink); }
.calendar-day[aria-current="date"] { border-color: #b56b79; }
.calendar-day:hover:not(:disabled) { border-color: var(--red); }
.calendar-day[aria-pressed="true"] { background: var(--red); color: #fff; }
.calendar-day:disabled { background: transparent; opacity: .4; }
.calendar-time { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end; }
.calendar-chosen { border-block-start: 1px solid var(--line); padding-top: .85rem; }
.calendar-chosen p { margin-top: .25rem; }
.calendar-chosen li { padding: .2rem 0; }
.calendar-chosen li span { display: inline-block; min-width: 9.4rem; }
.calendar-chosen .candidate-list { list-style: none; padding-left: 0; }
