:root {
  color-scheme: light;
  --blue-950: #07385e;
  --blue-900: #0b4778;
  --blue-800: #0d568e;
  --blue-700: #1b70ad;
  --blue-500: #4b9bd1;
  --blue-100: #eaf4fb;
  --yellow: #ffb600;
  --orange: #ed723c;
  --brown: #5c3327;
  --green: #176c45;
  --green-soft: #eaf7f0;
  --amber: #9d6508;
  --amber-soft: #fff6dc;
  --red: #9f4134;
  --red-soft: #fff0ed;
  --ink: #172b3a;
  --text: #294052;
  --muted: #687b8c;
  --line: #d8e3eb;
  --paper: rgba(255, 255, 255, .96);
  --shadow-lg: 0 28px 80px rgba(7, 56, 94, .17);
  --shadow-md: 0 14px 34px rgba(7, 56, 94, .11);
  --shadow-sm: 0 8px 20px rgba(7, 56, 94, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 8%, rgba(237, 114, 60, .15), transparent 24rem),
    radial-gradient(circle at 94% 4%, rgba(255, 182, 0, .18), transparent 22rem),
    radial-gradient(circle at 72% 84%, rgba(13, 79, 134, .14), transparent 28rem),
    linear-gradient(135deg, #f3f8fc 0%, #fffaf2 58%, #f9f5f2 100%);
  font-family: "Noto Sans TC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(13, 79, 134, .11) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 78%);
}
.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-a {
  width: 320px;
  height: 320px;
  left: -130px;
  top: 100px;
  background: radial-gradient(circle, rgba(237, 114, 60, .27), transparent 70%);
}
.ambient-b {
  width: 400px;
  height: 400px;
  right: -150px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(75, 155, 209, .23), transparent 70%);
}

.assessmentCenter {
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto 48px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 134, .14);
  border-top: 9px solid var(--yellow);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.heroCopy {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 5vw, 62px);
}
.brandLine {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}
.brandLine img {
  width: 112px;
  height: auto;
}
.brandLine div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.brandLine span,
.brandLine strong { display: block; }
.brandLine span {
  color: var(--blue-800);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.brandLine strong {
  margin-top: 4px;
  color: var(--blue-950);
  font-size: 1rem;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
}
h1, h2, h3 {
  margin: 0;
  color: var(--blue-950);
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .98;
}
h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}
.heroLead {
  max-width: 690px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.85;
}
.heroFacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}
.heroFacts div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 16px 18px;
}
.heroFacts div + div { border-left: 1px solid var(--line); }
.heroFacts strong {
  color: var(--blue-800);
  font-size: 1.65rem;
}
.heroFacts span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.heroVisual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--blue-950);
}
.heroVisual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.1) 35%, rgba(7,56,94,.08) 100%);
}
.heroVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
  filter: saturate(.92) contrast(1.04);
}
.heroVisual > span {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-5deg);
}

.statusBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 20px 0 30px;
  padding: 16px 20px;
  border: 1px solid rgba(13, 79, 134, .14);
  border-radius: 19px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}
.statusLegend,
.statusActions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.statusLegend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.open { background: #28a66c; }
.dot.scheduled { background: var(--yellow); }
.dot.closed { background: #a5b2bd; }
.statusActions span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.statusActions button {
  min-height: 38px;
  border: 1px solid #c9d9e5;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--blue-800);
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}
.statusActions button:hover,
.statusActions button:focus-visible {
  border-color: var(--blue-700);
  outline: 3px solid rgba(27,112,173,.12);
}
.statusActions button:disabled {
  opacity: .55;
  cursor: wait;
}

.systemNotice {
  margin: 0 0 30px;
  border: 1px solid #e4b8ae;
  border-left: 7px solid var(--red);
  border-radius: 18px;
  padding: 18px 22px;
  color: var(--red);
  background: var(--red-soft);
}
.systemNotice strong { font-size: 1rem; }
.systemNotice p { margin: 5px 0 0; line-height: 1.7; }
.hidden { display: none !important; }

.assessmentGroup {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(13, 79, 134, .13);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.sectionHeading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.sectionHeading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
}
.assessmentGrid {
  display: grid;
  gap: 18px;
}
.formativeGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.milestoneGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finalGrid { grid-template-columns: minmax(0, 1fr); }

.assessmentCard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 338px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid #a8bac8;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, #f8fbfd);
  box-shadow: 0 7px 18px rgba(7,56,94,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.assessmentCard.is-open {
  border-color: #b5ddc8;
  border-top-color: #28a66c;
  background: linear-gradient(145deg, #fff, #f1fbf6);
}
.assessmentCard.is-scheduled {
  border-top-color: var(--yellow);
  background: linear-gradient(145deg, #fff, #fffbef);
}
.assessmentCard.is-closed { border-top-color: #91a3b1; }
.assessmentCard.is-preparing,
.assessmentCard.is-unavailable,
.assessmentCard.is-checking { border-top-color: #b3bfc8; }
.assessmentCard.is-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(7,56,94,.13);
}
.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sequenceBadge {
  color: var(--blue-700);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.stateBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #657683;
  background: #edf2f5;
  font-size: .72rem;
}
.stateBadge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.assessmentCard.is-open .stateBadge {
  color: var(--green);
  background: var(--green-soft);
}
.assessmentCard.is-scheduled .stateBadge {
  color: var(--amber);
  background: var(--amber-soft);
}
.assessmentCard.is-closed .stateBadge {
  color: #667784;
  background: #edf2f5;
}
.assessmentCard h3 { min-height: 2.7em; }
.cardSubtitle {
  min-height: 3.3em;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}
.cardFacts {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  margin: 0 0 18px;
  border: 1px solid #e0e9ef;
  border-radius: 13px;
  background: rgba(255,255,255,.8);
}
.cardFacts div {
  min-width: 0;
  padding: 10px 9px;
}
.cardFacts div + div { border-left: 1px solid #e0e9ef; }
.cardFacts dt {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
}
.cardFacts dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--blue-950);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.4;
  text-overflow: ellipsis;
}
.availabilityMessage {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 13px;
  color: #60717e;
  background: #eef3f6;
}
.availabilityMessage strong,
.availabilityMessage span { display: block; }
.availabilityMessage strong {
  font-size: .83rem;
  line-height: 1.45;
}
.availabilityMessage span {
  margin-top: 3px;
  font-size: .72rem;
  line-height: 1.5;
}
.assessmentCard.is-open .availabilityMessage {
  color: var(--green);
  background: var(--green-soft);
}
.assessmentCard.is-scheduled .availabilityMessage {
  color: #755713;
  background: var(--amber-soft);
}
.assessmentAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 13px;
  padding: 10px 15px;
  color: #7a8994;
  background: #e8eef2;
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
  cursor: not-allowed;
}
.assessmentAction[aria-disabled="false"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  cursor: pointer;
}
.assessmentAction[aria-disabled="false"]:hover,
.assessmentAction[aria-disabled="false"]:focus-visible {
  outline: 4px solid rgba(27,112,173,.15);
  filter: brightness(1.05);
}
.assessmentAction b { font-size: 1.15rem; }

.milestoneGroup { border-top: 7px solid var(--orange); }
.milestoneGroup .assessmentCard { min-height: 320px; }
.milestoneGroup .sequenceBadge { color: var(--orange); }
.finalGroup { border-top: 7px solid var(--blue-700); }
.finalGroup .assessmentCard {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(250px, .85fr);
  column-gap: 24px;
  align-items: center;
}
.finalGroup .cardTop,
.finalGroup h3,
.finalGroup .cardSubtitle,
.finalGroup .cardFacts {
  grid-column: 1;
}
.finalGroup .availabilityMessage,
.finalGroup .assessmentAction {
  grid-column: 2;
}
.finalGroup .availabilityMessage {
  align-self: end;
  margin-top: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 18px 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.65;
}
footer strong { color: var(--blue-800); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .heroVisual {
    position: absolute;
    inset: 0 0 0 55%;
    opacity: .28;
  }
  .heroVisual::after { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.4) 100%); }
  .heroCopy { max-width: 780px; }
  .formativeGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .assessmentCenter {
    width: min(100% - 20px, 1220px);
    margin: 10px auto 28px;
  }
  .hero {
    min-height: auto;
    border-radius: 24px;
  }
  .heroCopy { padding: 26px 22px 30px; }
  .brandLine { margin-bottom: 30px; }
  .brandLine img { width: 92px; }
  .brandLine div { padding-left: 13px; }
  .heroVisual { display: none; }
  .heroLead { margin: 18px 0 22px; }
  .heroFacts { grid-template-columns: 1fr; }
  .heroFacts div { padding: 11px 15px; }
  .heroFacts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .statusBar,
  .statusLegend,
  .statusActions,
  .sectionHeading,
  footer {
    align-items: stretch;
    flex-direction: column;
  }
  .statusBar { gap: 13px; }
  .statusLegend { justify-content: space-between; }
  .statusActions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .assessmentGroup {
    margin-top: 18px;
    padding: 22px 16px;
    border-radius: 22px;
  }
  .sectionHeading {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .sectionHeading > p { text-align: left; }
  .formativeGrid,
  .milestoneGrid,
  .finalGrid { grid-template-columns: 1fr; }
  .assessmentCard { min-height: auto; }
  .finalGroup .assessmentCard {
    display: flex;
  }
  .finalGroup .availabilityMessage { margin-top: auto; }
  footer { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.learnerHistoryEntry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0;
  padding: 22px 24px;
  border: 1px solid rgba(13, 79, 134, .18);
  border-left: 7px solid var(--orange);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(234,244,251,.94));
  box-shadow: var(--shadow-sm);
}
.learnerHistoryCopy { display: flex; align-items: center; gap: 18px; min-width: 0; }
.learnerHistoryCopy .eyebrow { margin-bottom: 3px; }
.learnerHistoryCopy h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.learnerHistoryCopy p:last-child { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.learnerHistoryBadge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.learnerHistoryAction {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 244px;
  min-height: 52px;
  border-radius: 15px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 86, 142, .18);
}
.learnerHistoryAction:hover,
.learnerHistoryAction:focus-visible { outline: 4px solid rgba(27,112,173,.16); filter: brightness(1.05); }
.learnerHistoryAction b { font-size: 1.2rem; }
@media (max-width: 700px) {
  .learnerHistoryEntry,
  .learnerHistoryCopy { align-items: stretch; flex-direction: column; }
  .learnerHistoryEntry { gap: 18px; padding: 20px 18px; }
  .learnerHistoryCopy { gap: 12px; }
  .learnerHistoryBadge { align-self: flex-start; }
  .learnerHistoryAction { width: 100%; min-width: 0; }
}
