:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --ink: #13213c;
  --ink-soft: #41526f;
  --muted: #6b7a94;
  --line: #dfe6f1;
  --line-strong: #c8d4e4;
  --blue: #17458f;
  --blue-deep: #0d2b5c;
  --blue-bright: #2f6bd8;
  --blue-soft: #e8effa;
  --green: #0e7a58;
  --green-soft: #e5f4ee;
  --amber: #a9761f;
  --amber-soft: #fbf3e3;
  --danger: #a94a3f;
  --danger-soft: #f8eae7;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --serif: var(--sans);
  --shadow: 0 1px 2px rgba(13, 32, 66, .05), 0 18px 40px -26px rgba(13, 32, 66, .35);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

:focus-visible { outline: 3px solid rgba(23, 69, 143, .32); outline-offset: 2px; }

/* ---------- Top bar（含轮播注意事项） ---------- */
.topbar {
  background: var(--blue-deep);
  color: rgba(224, 235, 250, .88);
  font-size: 12px;
  letter-spacing: .02em;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-brand { flex: 0 0 auto; }

.notice-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 187, 92, .16);
  border: 1px solid rgba(255, 187, 92, .38);
  color: #ffcf8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.notice-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 18px;
  overflow: hidden;
}

.notice-item {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #ffd9a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .35s ease, transform .35s ease;
}

.notice-item.is-active { opacity: 1; transform: none; }

.topbar-right { flex: 0 0 auto; color: rgba(224, 235, 250, .6); font-size: 11.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(13, 32, 66, .02);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(145deg, #1b4d9c 0%, #0d2b5c 100%);
  box-shadow: 0 6px 14px -8px rgba(13, 43, 92, .8);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy strong { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.brand-copy small { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }

.main-nav { display: flex; gap: 2px; }
.nav-link {
  border: 0;
  background: transparent;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { color: var(--blue); background: rgba(23, 69, 143, .06); }
.nav-link.is-active { color: var(--blue); background: var(--blue-soft); font-weight: 600; }

.account-slot { margin-left: auto; display: flex; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(13, 43, 92, .95);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-1px); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
.btn-ghost:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: rgba(23, 69, 143, .04); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.account-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.chip-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.chip-copy strong { font-size: 12.5px; font-weight: 600; }
.chip-copy small { font-size: 10.5px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 340px at 88% -16%, rgba(96, 154, 242, .26), transparent 62%),
    radial-gradient(520px 300px at 2% 8%, rgba(47, 107, 216, .22), transparent 60%),
    linear-gradient(128deg, #0b2348 0%, #123a75 52%, #17488f 100%);
  border-bottom: 1px solid #0a2044;
  padding: 58px 0 52px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(118deg, rgba(0, 0, 0, .6), transparent 70%);
  mask-image: linear-gradient(118deg, rgba(0, 0, 0, .6), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "2027";
  position: absolute;
  right: 3%;
  bottom: -52px;
  font-family: var(--sans);
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero .eyebrow { color: #9dc2f0; }

.eyebrow-rule { width: 26px; height: 1px; background: currentColor; opacity: .55; }

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.hero h1 span { color: #bcd6f8; }

.hero-lead {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(224, 236, 252, .84);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 12.5px;
  color: rgba(203, 221, 245, .72);
  letter-spacing: .02em;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(203, 221, 245, .5); }

.progress-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  padding: 26px 26px 18px;
  box-shadow: 0 24px 50px -24px rgba(4, 18, 42, .65);
}

.progress-card::after {
  content: "2027";
  position: absolute;
  right: -6px;
  top: -30px;
  font-family: var(--sans);
  font-size: 104px;
  font-weight: 800;
  color: rgba(23, 69, 143, .055);
  pointer-events: none;
  letter-spacing: -.04em;
}

.progress-top { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }

.ring-box { position: relative; width: 96px; height: 96px; flex: none; }
.ring-box svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e6edf7; stroke-width: 7; }
.ring-value {
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1);
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}

.progress-copy { display: flex; flex-direction: column; gap: 1px; }
.progress-label { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.progress-copy strong { font-family: var(--sans); font-size: 27px; font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.progress-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.next-node {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.next-eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.next-node strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.next-count { font-size: 12px; font-weight: 600; color: var(--amber); margin-top: 3px; }

/* ---------- Schedule toolbar ---------- */
.schedule-body { padding-top: 30px; padding-bottom: 56px; }

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.role-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #e7edf7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.role-btn {
  border: 0;
  background: transparent;
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.role-btn:hover { color: var(--blue); }
.role-btn[aria-selected="true"] {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 6px 14px -10px rgba(13, 43, 92, .9);
}

.toolbar-note { margin: 0; font-size: 12px; color: var(--muted); }

.quick-access {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -12px 0 26px;
  padding: 14px 18px;
  background: linear-gradient(120deg, #0d2b5c 0%, #17458f 100%);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px -18px rgba(13, 43, 92, .9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quick-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -16px rgba(13, 43, 92, .85);
}
.quick-access-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #dbe8ff;
}
.quick-access-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quick-access-copy strong { font-size: 14px; font-weight: 600; }
.quick-access-copy small { font-size: 12px; color: rgba(255, 255, 255, .72); }
.quick-access-remind {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px;
  border: 1px dashed rgba(255, 210, 120, .5);
  border-radius: 8px;
  background: rgba(255, 210, 120, .12);
  color: #ffe2ad;
  font-size: 12px;
  white-space: nowrap;
}
.quick-access-remind b { color: #fff; font-weight: 600; }
.quick-access-arrow { margin-left: 0; font-size: 16px; color: #dbe8ff; }
.quick-access:focus-visible { outline: 3px solid rgba(23, 69, 143, .45); outline-offset: 2px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 22px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 186px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, #b9c9de, var(--line));
}

.timeline-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.milestone {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 44px;
  position: relative;
}

.milestone::before {
  content: "";
  position: absolute;
  left: 181px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b9c9de;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px #b9c9de;
  transition: background .2s ease, box-shadow .2s ease;
  z-index: 1;
}

.milestone[data-status="active"]::before { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 107, 216, .16); }
.milestone[data-complete="true"]::before { background: var(--green); box-shadow: 0 0 0 4px rgba(14, 122, 88, .16); }
.milestone[data-status="closed"]::before { background: #a9b6ca; box-shadow: 0 0 0 1px #a9b6ca; }

.m-date {
  padding: 17px 22px 0 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.m-index { font-size: 10px; letter-spacing: .18em; color: #9aa8bd; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.m-date-label { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.m-rel { font-size: 11.5px; color: var(--muted); }
.milestone[data-status="active"] .m-rel { color: var(--amber); font-weight: 600; }
.milestone[data-status="closed"] .m-date-label { color: #7e8ca3; }

.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.milestone[data-status="active"] .m-card {
  border-color: #c3d5ef;
  box-shadow: inset 3px 0 0 var(--blue-bright), var(--shadow);
}
.milestone[data-complete="true"] .m-card { background: linear-gradient(180deg, #f8fcfa 0%, var(--surface) 62%); border-color: #cfe6db; }

.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.m-head h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: .005em; margin: 0; line-height: 1.4; color: var(--ink); }
.m-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pill-active { background: var(--blue-soft); color: var(--blue); }
.pill-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); }
.pill-upcoming { background: #eef1f7; color: var(--muted); }
.pill-closed { background: var(--danger-soft); color: var(--danger); }
.pill-open { background: var(--amber-soft); color: #8a6320; }
.pill-done { background: var(--green); color: #fff; }

.m-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

.m-note {
  display: flex;
  gap: 9px;
  margin: 12px 0 0;
  padding: 9px 12px;
  background: #eef4fd;
  border: 1px solid #d7e4f7;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #3d5b86;
}
.m-note b { flex: none; font-weight: 600; color: var(--blue); }

.m-materials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--ink-soft);
}
.chip.req { border-color: #c8d9f2; background: #f0f5fd; color: #2b4f86; }
.chip.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.chip i { font-style: normal; font-size: 10px; opacity: .65; border-left: 1px solid currentColor; padding-left: 6px; }

.m-files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s ease;
}
.file-row:hover { background: var(--surface-soft); }

.file-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  flex: none;
}
.fb-pdf { background: #fbe9e6; color: #a0412f; }
.fb-doc { background: #e6eefb; color: #1f4f96; }
.fb-xls { background: #e4f4ec; color: #1f6b4c; }
.fb-ppt { background: #fcefe2; color: #a25a24; }
.fb-img { background: #ece9fa; color: #52419a; }
.fb-zip { background: #eef0f6; color: #5b6784; }
.fb-other { background: #eceff4; color: #62708a; }

.file-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.file-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.file-name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.overdue { font-style: normal; color: var(--danger); background: var(--danger-soft); padding: 0 6px; border-radius: 4px; font-size: 10.5px; }

.icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); border-color: #ecd5d0; }

.m-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.m-progress { font-size: 12px; color: var(--muted); }
.m-progress strong { color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot-hint { font-size: 11.5px; color: var(--muted); }

.source-note {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Views ---------- */
.view-wrap { padding-top: 54px; padding-bottom: 80px; }

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.view-head h1,
.account-intro h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.15;
}
.view-lead { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.view-head .eyebrow, .account-intro .eyebrow { margin-bottom: 12px; }

.files-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.sum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 20px;
  min-width: 148px;
}
.sum-card small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum-card strong { font-family: var(--sans); font-size: 23px; font-weight: 700; color: var(--blue-deep); line-height: 1.3; }
.sum-card strong em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 2px; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.file-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.file-table th {
  text-align: left;
  padding: 13px 20px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.file-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.file-table tr:last-child td { border-bottom: 0; }
.file-table tbody tr:hover { background: #f7faff; }
.file-table .cell-file { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-table .cell-file .file-main { min-width: 0; }
.file-table .cell-title { display: flex; flex-direction: column; gap: 1px; }
.file-table .cell-title strong { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.file-table .cell-title small { color: var(--muted); font-size: 11px; }
.file-table .cell-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-table .cell-actions { text-align: right; }
.cell-actions .icon-btn:hover { background: var(--danger-soft); }

.empty-card {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}
.empty-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.empty-card h3 { font-family: var(--sans); font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.empty-card p { margin: 0 auto 20px; max-width: 360px; color: var(--muted); font-size: 13px; }

/* ---------- Account ---------- */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 64px;
  align-items: start;
  padding-bottom: 20px;
}

.account-intro { padding-top: 18px; }
.account-intro p { max-width: 400px; margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

.intro-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.intro-list li { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-soft); }
.intro-list span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid #cfdcf0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--blue-soft);
}

.account-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  background: #eef2f9;
  border-radius: 9px;
  margin-bottom: 22px;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 9px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.auth-tab.is-active { background: var(--surface); color: var(--blue); box-shadow: 0 1px 4px rgba(13, 32, 66, .12); }

.login-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 4px;
}
.login-mode {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.login-mode:hover { color: var(--blue); }
.login-mode.is-active { background: var(--surface); color: var(--blue); box-shadow: 0 1px 4px rgba(13, 32, 66, .12); }
.login-mode:focus-visible { outline: 3px solid rgba(23, 69, 143, .32); outline-offset: 1px; }

#loginPasswordPane, #loginEmailPane { display: flex; flex-direction: column; gap: 14px; }
#loginPasswordPane label, #loginEmailPane label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.reset-lead { margin: 0 0 4px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.form-hint-row { text-align: right; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input:not([type]) {
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.auth-form input::placeholder, .textarea::placeholder { color: #9fadc2; }
.auth-form input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(47, 107, 216, .14);
}

.code-row { display: flex; align-items: center; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .code-btn { height: 44px; flex: none; white-space: nowrap; }

.role-pick { display: flex; align-items: center; gap: 8px; }
.role-pick-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-right: 4px; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option span {
  display: inline-flex;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .16s ease;
}
.role-option input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.role-option input:focus-visible + span { outline: 3px solid rgba(23, 69, 143, .32); outline-offset: 2px; }

.student-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px dashed #c8d6e9;
  border-radius: 10px;
  background: var(--surface-soft);
}
.student-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }

.form-hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  flex: none;
  border: 1px solid #cfdcf0;
}
.profile-head h2 { font-family: var(--sans); font-size: 21px; margin: 0; font-weight: 700; }
.profile-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.profile-stats div { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.profile-stats dt { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.profile-stats dd {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.profile-details div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  min-width: 0;
}
.profile-details dt { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.profile-details dd {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #d5dfee; background: #e9eef7; padding: 34px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--blue-deep); }
.site-footer p { margin: 0; font-size: 11.5px; color: var(--muted); max-width: 520px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); text-align: right; }
.footer-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dialog ---------- */
.dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(6, 20, 44, .6);
  color: var(--ink);
}
.dialog::backdrop { background: rgba(8, 22, 46, .55); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.dialog-inner { padding: 26px 28px 22px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-head .eyebrow { margin-bottom: 6px; font-size: 9.5px; }
.dialog-head h2 { font-family: var(--sans); font-size: 21px; margin: 0; font-weight: 700; }
.dialog-sub { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.dialog-close { margin-top: -4px; }
.dialog-close:hover { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }

.dialog-body { margin-top: 20px; display: flex; flex-direction: column; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .03em; }
.select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select { height: 42px; padding: 0 12px; margin-bottom: 16px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7a94' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { padding: 10px 12px; resize: vertical; min-height: 58px; margin-bottom: 14px; }

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue-bright); background: #f1f6fe; }
.drop-icon { color: var(--blue); margin-bottom: 4px; }
.dropzone p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.dropzone p strong { color: var(--blue); font-weight: 600; }
.dropzone small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }

.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.file-preview .file-badge { width: 36px; height: 36px; }

.upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.upload-progress .bar { flex: 1; height: 6px; border-radius: 99px; background: #e6edf7; overflow: hidden; }
.upload-progress .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--blue-bright); transition: width .2s ease; }
.upload-progress span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: var(--blue-deep);
  color: #eef4fc;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 18px 40px -18px rgba(6, 20, 44, .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 100;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #7d2f27; }

/* ---------- Groups ---------- */
.upload-visibility { margin: 10px 0 14px; text-align: left; font-size: 11.5px; }

.group-create {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.group-create-row { display: flex; gap: 10px; }

.text-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.text-input::placeholder { color: #9fadc2; }
.text-input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(47, 107, 216, .14); }

.group-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.group-head h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 0; }
.group-meta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.group-count {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

.member-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.member-label { flex: none; font-size: 12px; color: var(--muted); padding-top: 5px; }
.member-list { display: flex; flex-wrap: wrap; gap: 7px; }
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.member-chip small { color: var(--muted); font-size: 11px; }
.member-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}
.member-remove:hover { background: var(--danger-soft); color: var(--danger); }

.group-add-form { display: flex; gap: 8px; margin-top: 12px; max-width: 360px; }
.group-add-form .text-input { height: 38px; }
.group-table { margin-top: 18px; box-shadow: none; }
.group-empty { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.member-list .group-empty { margin: 4px 0 0; }

.ver-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .progress-card { max-width: 460px; }
  .timeline::before { display: none; }
  .milestone { grid-template-columns: 1fr; gap: 8px; }
  .milestone::before { display: none; }
  .m-date { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px; text-align: left; padding: 0 2px; }
  .m-date-label { font-size: 13px; }
  .m-index { display: none; }
  .m-rel { order: 2; }
  .m-rel::before { content: "·"; margin-right: 8px; color: var(--line-strong); }
  .account-grid { grid-template-columns: 1fr; gap: 32px; }
  .account-panel { justify-self: start; max-width: 520px; }
  .account-intro { padding-top: 0; }
}

@media (max-width: 760px) {
  .wrap, .header-inner, .topbar-inner { padding-left: 20px; padding-right: 20px; }
  .topbar { font-size: 11px; }
  .topbar-right, .notice-tag { display: none; }
  .header-inner { height: 64px; gap: 16px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14.5px; }
  .brand-mark { width: 38px; height: 38px; font-size: 10.5px; }
  .main-nav { margin-left: auto; gap: 0; }
  .nav-link { padding: 7px 10px; font-size: 12.5px; }
  .nav-link[data-view="account"] { display: none; }
  .account-slot .account-chip { padding: 4px; border: 0; background: transparent; }
  .account-slot .chip-copy { display: none; }
  .hero { padding: 40px 0 34px; }
  .hero::after { font-size: 150px; bottom: -34px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-lead { font-size: 14px; }
  .hero-meta { margin-top: 20px; gap: 9px; font-size: 11.5px; }
  .progress-card { padding: 20px; }
  .progress-card::after { font-size: 80px; }
  .schedule-body { padding-top: 22px; }
  .role-switch { width: 100%; }
  .role-btn { flex: 1; padding: 9px 10px; }
  .toolbar-note { font-size: 11px; }
  .quick-access { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .quick-access-arrow { margin-left: auto; }
  .quick-access-remind { order: 3; width: 100%; margin-left: 0; justify-content: center; gap: 10px; white-space: normal; }
  .m-card { padding: 18px 16px 15px; }
  .m-head { flex-direction: column; gap: 8px; }
  .m-pills { justify-content: flex-start; }
  .m-desc { font-size: 13.5px; }
  .m-note { font-size: 12px; }
  .view-wrap { padding-top: 34px; padding-bottom: 56px; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .file-table { display: block; }
  .file-table thead { display: none; }
  .file-table tbody, .file-table tr, .file-table td { display: block; width: 100%; }
  .file-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .file-table tr:last-child { border-bottom: 0; }
  .file-table td { padding: 3px 0; border: 0; }
  .file-table .cell-actions { text-align: left; padding-top: 8px; }
  .file-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 70px;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: .06em;
  }
  .file-table td.cell-doc::before { display: none; }
  .account-panel { padding: 22px 18px; }
  .group-create { padding: 16px; }
  .group-create-row { flex-direction: column; }
  .group-card { padding: 18px 16px; }
  .group-add-form { max-width: none; }
  .group-head h2 { font-size: 16.5px; }
  .dialog-inner { padding: 22px 20px 18px; }
  .footer-grid { flex-direction: column; gap: 18px; }
  .footer-links { text-align: left; }
}

@media (max-width: 480px) {
  .brand-copy { display: none; }
  .hero h1 { font-size: 29px; }
  .progress-top { gap: 16px; }
  .ring-box, .ring-box svg { width: 82px; height: 82px; }
  .progress-copy strong { font-size: 23px; }
  .m-materials .chip { font-size: 11.5px; }
  .m-foot .btn { width: 100%; }
  .files-summary { display: grid; grid-template-columns: 1fr 1fr; }
  .sum-card { min-width: 0; padding: 11px 14px; }
  .profile-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .topbar, .site-header, .site-footer, .progress-card, .role-switch, .toolbar-note, .quick-access,
  .m-foot, .m-files, .source-note, .schedule-toolbar .role-switch, .view-head .btn { display: none !important; }
  .hero { background: #fff; border-bottom: 1px solid #ccc; padding: 0 0 14px; }
  .hero::before, .hero::after { display: none; }
  .hero-grid { display: block; }
  .hero h1 { font-size: 24px; color: #111; }
  .hero h1 span { color: #111; }
  .hero .eyebrow { color: #444; }
  .hero-lead, .hero-meta { display: none; }
  .schedule-body { padding-top: 12px; }
  .timeline { gap: 10px; }
  .milestone { grid-template-columns: 150px 1fr; gap: 20px; break-inside: avoid; }
  .m-card { border: 0; border-bottom: 1px solid #ddd; border-radius: 0; padding: 8px 0; box-shadow: none; background: #fff !important; }
  .m-desc { font-size: 11px; }
  .m-note { background: #fff; border: 0; padding: 2px 0; font-size: 10.5px; color: #333; }
  .m-head h3 { font-size: 14px; }
  .m-date-label { font-size: 12px; }
  .m-date { padding-top: 10px; }
  .pill { border: 1px solid #bbb; background: #fff !important; color: #333 !important; }
}
