:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #14283e;
  background: #f1f4f7;
  --muted: #596e82;
  --line: #dce5ed;
  --blue: #135f9d;
  --navy: #102b46;
  --mint: #73e2c1;
  font-synthesis: none;
  scroll-padding-top: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; font-size: 1rem; }
a { color: var(--blue); text-underline-offset: .21em; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #297bc2;
  outline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1320px; min-height: 70px; margin: auto; padding: 0 2.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #14283e; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 1.02rem; letter-spacing: .07em; }
.brand small { color: var(--muted); font-size: .82rem; }
.brand-mark { width: 37px; height: 37px; background: #153b59; border-radius: 9px; display: grid; place-items: center; }
.brand-mark::before {
  content: ""; width: 20px; height: 20px; border-radius: 3px;
  background: radial-gradient(circle, #83edcd 33%, transparent 37%) 0 0 / 7px 7px;
}
nav { display: flex; gap: clamp(.75rem, 3vw, 2.6rem); }
nav a, .quiet-link { font-size: .9rem; color: #344d65; text-decoration: none; white-space: nowrap; }
nav a:hover, .quiet-link:hover { color: var(--blue); text-decoration: underline; }
main { max-width: 1320px; margin: auto; padding: 0 2.25rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 2rem 0 1.5rem; }
.eyebrow { color: #3b627d; font-size: .78rem; font-weight: 750; letter-spacing: .13em; display: flex; align-items: center; gap: .65rem; }
.eyebrow span { height: 1px; width: 16px; background: #8199ad; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.045em; line-height: 1.18; margin-top: .45rem; }
.page-status { text-align: right; display: grid; gap: .3rem; }
.page-status time { font-weight: 720; font-size: .96rem; }
#snapshot-time { color: var(--muted); font-size: .8rem; }
#snapshot-time.past-snapshot { color: #84500b; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.1rem; align-items: stretch; }
.panel { border-radius: 19px; padding: 1.35rem; min-width: 0; display: flex; flex-direction: column; }
.progress-panel {
  color: #f5fbff;
  background: radial-gradient(ellipse at 100% 0%, #234f6d 0%, transparent 58%), var(--navy);
  box-shadow: 0 12px 23px #102b4617;
}
.schedule-panel { background: #fff; border: 1px solid var(--line); box-shadow: 0 9px 20px #163c5908; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.heading-label { display: flex; gap: .65rem; align-items: center; }
h2 { font-size: 1.22rem; line-height: 1.3; }
.icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; position: relative; }
.signal::before {
  content: ""; position: absolute; inset: 1px 0; background: var(--mint);
  clip-path: polygon(0 70%, 22% 70%, 22% 100%, 0 100%, 0 70%, 39% 37%, 61% 37%, 61% 100%, 39% 100%, 39% 37%, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 0);
}
.calendar, .book { border: 1.7px solid #286796; border-radius: 4px; }
.calendar::before, .book::before { content: ""; position: absolute; background: #286796; }
.calendar::before { height: 1.5px; left: 0; right: 0; top: 4px; }
.book::before { width: 1.4px; top: 0; bottom: 0; left: 5px; }
select {
  appearance: none;
  padding: .51rem 1.75rem .51rem .66rem;
  font-size: .87rem;
  color: #17416a;
  border: 1px solid #cfdeeb;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 51%) calc(100% - 13px) 52% / 4px 4px no-repeat,
    linear-gradient(135deg, currentColor 49%, transparent 50%) calc(100% - 9px) 52% / 4px 4px no-repeat,
    #f9fbfd;
}
.progress-panel select { color: #e7f5fd; border-color: #557289; background-color: #25475f; }
.progress-panel option { color: #132e46; background: #fff; }
.batch-status { color: var(--mint); font-size: .83rem; font-weight: 700; margin-top: 1rem; }
.batch-primary { font-size: clamp(1.43rem, 2.5vw, 1.9rem); font-weight: 750; margin-top: .25rem; line-height: 1.25; }
.batch-range { color: #c1d6e5; font-size: .89rem; letter-spacing: .035em; margin-top: .35rem; overflow-wrap: anywhere; }
#stage-list { margin-top: 1rem; }
.stage-header { display: flex; justify-content: space-between; gap: .5rem; padding: 0 0 .42rem; color: #c5d8e6; font-size: .77rem; border-bottom: 1px solid #ffffff29; }
.stage-row { display: grid; grid-template-columns: minmax(108px, max-content) minmax(30px, 1fr) 52px; align-items: center; gap: .6rem; min-height: 26px; }
.stage-name { font-size: .875rem; color: #e8f3f9; }
.stage-value { text-align: right; color: #e3f1fb; font-size: .84rem; font-variant-numeric: tabular-nums; }
.stage-meter { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 6px; background: #66859d5e; overflow: hidden; }
.stage-meter::-webkit-progress-bar { background: #66859d5e; }
.stage-meter::-webkit-progress-value { background: var(--mint); border-radius: 6px; }
.stage-meter::-moz-progress-bar { background: var(--mint); border-radius: 6px; }
.subheading { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; margin: .7rem 0 .58rem; }
.subheading span { font-size: .75rem; font-weight: 450; color: #c5d8e6; }
.receipt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.receipt { background: #ffffff0a; border: 1px solid #ffffff24; border-radius: 9px; padding: .48rem .64rem; }
.receipt-label { font-size: .8rem; color: #d5e7f4; }
.receipt-count { font-size: 1.44rem; font-weight: 780; line-height: 1.38; }
.receipt-count span { font-size: .79rem; color: #c0d5e7; font-weight: 450; white-space: nowrap; }
.receipt-meta { color: #c5d8e6; font-size: .74rem; line-height: 1.35; overflow-wrap: anywhere; }
.panel-foot {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: space-between;
  color: var(--muted); font-size: .8rem; padding-top: 1rem; margin-top: auto;
}
.progress-panel .panel-foot, .progress-panel .panel-foot a { color: #c2d9e9; }
.plain-button {
  color: #205486; background: #edf5fc; border: 1px solid #d9e9f5;
  border-radius: 8px; padding: .45rem .63rem; font-size: .85rem; white-space: nowrap;
}
.plain-button:hover:not(:disabled) { background: #e0effb; }
.plain-button:disabled { opacity: .55; }
.week-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; gap: .5rem; }
.week-heading > div:first-child { display: flex; align-items: baseline; gap: .55rem; }
.week-heading h3 { font-size: 1.35rem; }
#week-range { color: var(--muted); font-size: .86rem; }
.week-buttons { display: flex; gap: .45rem; }
.square-button {
  min-width: 46px; min-height: 38px; padding-inline: .35rem; font-size: .82rem; background: #fff; color: #3a5d7c;
  border: 1px solid #d6e1ea; border-radius: 8px; display: grid; place-items: center;
}
.square-button:hover:not(:disabled) { background: #edf5fc; }
.square-button:disabled { opacity: .38; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin-top: .64rem; }
.date-button {
  min-width: 0; min-height: 56px; display: grid; align-content: center; justify-items: center; gap: .08rem;
  color: #24465f; border: 1px solid transparent; background: #f0f5f9; border-radius: 9px; padding: .23rem .12rem;
}
.date-button small { font-size: .78rem; }
.date-button strong { font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.date-button:hover:not(:disabled) { border-color: #4685b6; }
.date-button.is-today { border-color: #255d89; }
.date-button[aria-pressed="true"] { color: #fff; background: #174e7a; }
.date-button:disabled { opacity: .42; }
.day-heading {
  display: flex; align-items: center; justify-content: space-between; gap: .55rem;
  border-bottom: 1px solid var(--line); padding: 1.15rem 0 .55rem;
}
.day-heading h3 { font-size: 1.06rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.today-marker { border-radius: 5px; color: #146044; background: #e2f5eb; font-size: .75rem; padding: .15rem .34rem; }
.day-count { color: var(--muted); font-size: .8rem; font-weight: 450; }
.task-row {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  border-bottom: 1px solid #e7eef4; min-height: 57px; padding: .64rem 0;
}
.task-info { min-width: 0; border-left: 2px solid #8fb5d4; padding-left: .65rem; }
.task-info h4 { font-size: .97rem; line-height: 1.28; }
.task-info p { margin-top: .19rem; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.assignment {
  flex-shrink: 0; max-width: 39%; overflow-wrap: anywhere; color: #255486;
  background: #eef5fc; border-radius: 6px; padding: .23rem .45rem;
  font-size: .82rem; font-weight: 700;
}
.empty { padding: 1.35rem 0; color: var(--muted); line-height: 1.5; }
.progress-panel .empty { color: #c5d8e6; }
.schedule-note, .notice { padding: .65rem .75rem; margin-top: .6rem; background: #fff3d8; color: #684504; border-radius: 8px; font-size: .88rem; line-height: 1.55; }
.reference { margin-top: 1.65rem; scroll-margin-top: .8rem; }
.section-heading { flex-wrap: wrap; margin-bottom: .8rem; }
.search input {
  min-height: 40px; max-width: 100%; width: 260px; border: 1px solid #d0deea; border-radius: 9px;
  padding: .49rem .72rem; color: #173c59; background: #fff; font-size: .88rem;
}
.search input::placeholder { color: #62788c; }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.reference-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.reference-card summary {
  cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) 15px; align-items: center;
  gap: .65rem; padding: .82rem; list-style: none;
}
.reference-card summary:hover { background: #f9fbfd; border-radius: 13px; }
.reference-card summary::-webkit-details-marker { display: none; }
.ref-icon { width: 36px; height: 36px; border-radius: 8px; background: #e8f3fc; position: relative; }
.ref-icon::before, .ref-icon::after { content: ""; position: absolute; }
.bottle::before { width: 12px; height: 14px; border: 1.5px solid #286796; border-radius: 3px; inset: 12px auto auto 12px; }
.bottle::after { width: 8px; height: 4px; background: #286796; inset: 8px auto auto 14px; border-radius: 1px; }
.flask::before { width: 17px; height: 14px; background: #2b6d9d; inset: 12px auto auto 10px; clip-path: polygon(35% 0,65% 0,65% 26%,100% 88%,92% 100%,8% 100%,0 88%,35% 26%); }
.island::before { width: 16px; height: 16px; border: 1px solid #286796; border-radius: 3px; inset: 10px; background: radial-gradient(circle, #286796 31%, transparent 37%) 1px 1px / 6px 6px; }
.route::before { width: 17px; height: 13px; border-left: 2px solid #286796; border-bottom: 2px solid #286796; inset: 10px auto auto 10px; border-radius: 4px; }
.route::after { width: 5px; height: 5px; background: #286796; border-radius: 50%; inset: 20px auto auto 24px; }
.reference-card h3 { font-size: 1rem; line-height: 1.25; }
.reference-card-title p { color: var(--muted); font-size: .84rem; line-height: 1.42; margin-top: .26rem; }
.expand-mark { position: relative; width: 14px; height: 14px; }
.expand-mark::before, .expand-mark::after { content: ""; position: absolute; background: #47708e; inset: 6px 1px; }
.expand-mark::after { transform: rotate(90deg); }
.reference-card[open] .expand-mark::after { display: none; }
.reference-content { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.55; }
.reference-content dl { margin: 0; }
.reference-content p + dl { margin-top: .6rem; }
.reference-content dl > div { display: grid; grid-template-columns: minmax(5.5rem, .34fr) minmax(0, 1fr); gap: .5rem; padding: .46rem 0; border-bottom: 1px solid #eaf0f5; }
.reference-content dt { font-weight: 710; }
.reference-content dd { margin: 0; }
.reference-content a { display: inline-block; margin-top: .65rem; }
.reference-source { color: var(--muted); margin-top: .65rem; font-size: .82rem; }
footer { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.1rem 0 1.7rem; margin-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
footer summary { cursor: pointer; }
#source-info p { margin: .54rem 0 0; line-height: 1.5; }
footer > span { letter-spacing: .07em; white-space: nowrap; font-size: .74rem; }
@media (max-width: 860px) {
  .header-inner, main { padding-inline: 1.15rem; }
  .panel { padding: 1.05rem; }
  .dashboard-grid { gap: .75rem; }
}
@media (max-width: 700px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-panel { grid-row: 1; }
  .header-inner { min-height: 60px; }
  .source-link { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; padding-block: 1.3rem 1rem; gap: .65rem; }
  .page-status { text-align: left; gap: .25rem; }
  .page-status time { font-size: .9rem; }
  .reference-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .header-inner, main { padding-inline: .75rem; }
  .panel { padding-inline: .8rem; }
  nav { gap: .65rem; }
  nav a { font-size: .8rem; }
  .stage-row { grid-template-columns: 94px minmax(20px, 1fr) 44px; gap: .4rem; }
  .receipt { padding-inline: .35rem; }
  footer { display: block; }
  footer > span { display: block; margin-top: .7rem; }
}
