:root {
  color-scheme:light;
  --accent:#ff0097;
  --accent-ink:#a70063;
  --accent-soft:oklch(97% .018 350);
  --ink:oklch(24% .015 335);
  --muted:oklch(47% .012 335);
  --ground:oklch(98% .002 335);
  --surface:#fff;
  --line:oklch(89% .006 335);
  --control-line:oklch(62% .01 335);
  --success:oklch(38% .065 166);
  --error:oklch(43% .16 22);
  --focus:oklch(43% .18 345);
  --z-sticky:10;
  --z-overlay:20;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  font-size:16px;
  line-height:1.6;
  color:var(--ink);
  background:var(--ground);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,textarea,select {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
a {
  color:var(--accent-ink);
  text-underline-offset:4px
}
button {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  text-wrap:balance
}
p {
  text-wrap:pretty;
  max-width:70ch
}
h1 {
  font-size:2rem;
  letter-spacing:.015em;
  line-height:1.4;
  font-weight:650
}
h2 {
  font-size:1.5rem;
  line-height:1.4
}
h3 {
  font-size:1.05rem
}
a:hover {
  text-decoration-thickness:2px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  padding:12px;
  background:white;
  z-index:var(--z-overlay)
}
.skip-link:focus {
  top:12px
}
.site-header {
  height:88px;
  padding:0 4.4%;
  display:flex;
  align-items:center;
  gap:36px;
  border-bottom:1px solid var(--line);
  background:var(--surface)
}
.wordmark {
  display:inline-flex;
  align-items:baseline;
  text-decoration:none;
  color:var(--ink);
  font-size:22px;
  font-weight:400;
  letter-spacing:-.7px;
  white-space:nowrap
}
.brand-heavy {
  font-weight:800
}
.brand-dot {
  color:var(--accent);
  font-weight:800;
  font-size:32px;
  line-height:1
}
.header-title {
  font-size:13px;
  border-left:1px solid var(--line);
  padding-left:28px;
  color:var(--muted)
}
.header-title span {
  font-size:11px;
  display:block
}
.help-link {
  margin-left:auto;
  font-size:13px;
  color:var(--ink);
  text-decoration:none;
  padding:10px 0
}
.help-link span {
  margin-left:9px;
  color:var(--accent-ink)
}
.layout {
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:58px;
  padding:40px 28px 64px
}
.sidebar {
  min-width:0
}
.student-card {
  padding-bottom:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:23px
}
.country-tag {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  font-weight:600
}
.country-code {
  display:grid;
  place-items:center;
  width:32px;
  height:26px;
  border:1px solid var(--line);
  border-radius:4px;
  background:white;
  font-size:11px;
  letter-spacing:1px
}
.student-name {
  font-size:20px;
  font-weight:600;
  margin-top:16px
}
.student-name span {
  font-size:12px;
  font-weight:400;
  color:var(--muted);
  margin-left:10px
}
.program {
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}
.overall {
  margin-bottom:22px
}
.overall-row {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:8px
}
.overall-row strong {
  font-variant-numeric:tabular-nums;
  font-weight:600
}
.progress-track {
  height:4px;
  background:var(--line);
  border-radius:3px;
  overflow:hidden
}
.progress-fill {
  height:100%;
  background:var(--accent);
  transition:width 200ms ease-out
}
.nav-group-title {
  font-size:11px;
  color:var(--muted);
  margin:20px 12px 8px
}
.section-nav {
  display:flex;
  flex-direction:column;
  gap:3px
}
.step-button {
  position:relative;
  display:flex;
  align-items:center;
  text-align:left;
  gap:11px;
  width:100%;
  padding:9px 11px;
  border:0;
  border-radius:6px;
  background:transparent;
  font-size:13px;
  min-height:44px
}
.step-button:hover {
  background:oklch(95% .005 335)
}
.step-button[aria-current="step"] {
  background:var(--accent-soft);
  color:var(--accent-ink);
  font-weight:650
}
.step-number {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:21px;
  height:21px;
  border:1px solid var(--control-line);
  border-radius:50%;
  font-size:10px;
  font-weight:500;
  font-variant-numeric:tabular-nums
}
.step-button[aria-current="step"] .step-number {
  background:var(--accent-ink);
  border-color:var(--accent-ink);
  color:white
}
.step-number.complete {
  background:var(--success);
  border-color:var(--success);
  color:white
}
.step-count {
  font-size:10px;
  color:var(--muted);
  margin-left:auto;
  font-variant-numeric:tabular-nums
}
.sidebar-help {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding:19px 11px 0;
  font-size:12px;
  color:var(--muted)
}
.sidebar-help a {
  display:block;
  margin-top:5px
}
.workspace {
  min-width:0;
  padding-top:1px
}
.workspace-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:28px
}
.save-status {
  color:var(--success);
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px
}
.save-status::before {
  content:'✓';
  font-weight:700
}
.save-status[data-state="pending"] {
  color:var(--muted)
}
.save-status[data-state="pending"]::before {
  content:'·'
}
.save-status[data-state="error"] {
  color:var(--error)
}
.save-status[data-state="error"]::before {
  content:'!'
}
.section-heading {
  margin-bottom:28px
}
.heading-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}
.section-en {
  font-size:13px;
  color:var(--muted);
  margin-top:6px
}
.section-description {
  font-size:14px;
  color:var(--muted);
  margin-top:19px;
  line-height:1.85
}
.section-counter {
  font-size:13px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.section-counter strong {
  font-size:20px;
  font-weight:400;
  color:var(--ink)
}
.form-surface {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:30px 32px
}
.form-note {
  font-size:12px;
  padding-bottom:22px;
  margin-bottom:25px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  display:flex;
  gap:8px
}
.required-star {
  color:var(--accent-ink)
}
.fields-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:24px;
  row-gap:27px
}
.field {
  min-width:0
}
.field-wide {
  grid-column:1/-1
}
.field-label {
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:9px;
  line-height:1.65
}
.field-label .en,.option .en {
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-left:7px;
  display:inline;
  overflow-wrap:anywhere
}
.optional {
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  margin-left:7px
}
.field-help {
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.65
}
.field-error {
  font-size:12px;
  color:var(--error);
  margin-top:7px
}
.field-error:empty {
  display:none
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea {
  display:block;
  background:white;
  border:1px solid var(--control-line);
  border-radius:5px;
  width:100%;
  min-height:48px;
  padding:11px 13px;
  color:var(--ink);
  transition:border-color 150ms ease-out,background-color 150ms ease-out;
  min-width:0
}
input::placeholder,textarea::placeholder {
  color:var(--muted)
}
input:hover,textarea:hover,select:hover {
  border-color:var(--ink)
}
textarea {
  resize:vertical;
  line-height:1.7
}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"] {
  border-color:var(--error);
  background:oklch(99% .005 22)
}
fieldset {
  margin:0;
  padding:0;
  border:0;
  min-width:0
}
legend.field-label {
  padding:0
}
.options {
  display:flex;
  flex-wrap:wrap;
  gap:10px
}
.option {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--control-line);
  border-radius:5px;
  min-height:48px;
  padding:10px 13px;
  font-size:13px;
  cursor:pointer;
  flex:1 1 auto
}
.option:has(input:checked) {
  border-color:var(--accent-ink);
  background:var(--accent-soft)
}
input[type="radio"],input[type="checkbox"] {
  width:18px;
  height:18px;
  flex:0 0 18px;
  accent-color:var(--accent-ink);
  margin:0
}
.option .en {
  margin-left:4px
}
.field-checkbox .option {
  flex:1 1 42%
}
.consent-option {
  align-items:flex-start;
  padding:15px
}
.consent-option input {
  margin-top:4px
}
.upload-box {
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px;
  border:1px dashed var(--control-line);
  border-radius:6px;
  background:var(--ground)
}
.upload-icon {
  font-size:24px;
  color:var(--accent-ink)
}
.upload-box input {
  width:100%;
  font-size:12px;
  min-width:0
}
input[type="file"]::file-selector-button {
  border:1px solid var(--control-line);
  border-radius:4px;
  padding:9px 12px;
  background:white;
  font:inherit;
  margin-right:10px;
  cursor:pointer
}
.file-status {
  font-size:12px;
  margin-top:10px;
  overflow-wrap:anywhere
}
.text-button {
  border:0;
  background:transparent;
  padding:8px;
  color:var(--accent-ink);
  text-decoration:underline;
  text-underline-offset:3px;
  min-height:44px
}
.repeat-item {
  border-top:1px solid var(--line);
  padding:20px 0
}
.repeat-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px
}
.repeat-empty {
  font-size:13px;
  color:var(--muted);
  padding:10px 0 15px
}
.actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:28px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  min-height:48px;
  padding:12px 22px;
  border:1px solid var(--control-line);
  background:white;
  border-radius:6px;
  font-weight:600;
  font-size:14px;
  text-decoration:none
}
.button:hover {
  background:oklch(95% .005 335)
}
.button.primary {
  background:var(--accent);
  color:oklch(17% .02 335);
  border-color:transparent
}
.button.primary:hover {
  background:oklch(69% .27 350)
}
.button.primary:active {
  transform:translateY(1px)
}
.button.quiet {
  border-color:transparent;
  background:transparent;
  padding-left:0;
  font-weight:400;
  color:var(--muted)
}
.action-hint {
  font-size:11px;
  color:var(--muted);
  text-align:right;
  margin-top:12px
}
.section-footnote {
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:22px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8
}
.mobile-steps {
  display:none
}
.site-footer {
  max-width:1180px;
  margin:0 auto;
  padding:23px 28px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:11px;
  color:var(--muted)
}
.footer-brand {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px
}
.site-footer .wordmark {
  font-size:14px
}
.site-footer .brand-dot {
  font-size:20px
}
.site-footer a {
  color:var(--muted)
}
.footer-separator {
  margin:0 8px;
  color:var(--accent-ink)
}
.state-page {
  max-width:600px;
  min-height:65vh;
  margin:0 auto;
  padding:88px 24px
}
.state-page h1 {
  margin:24px 0 15px
}
.state-page p {
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin-bottom:22px
}
.state-symbol {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:14px;
  background:var(--accent-soft);
  color:var(--accent-ink);
  font-size:32px
}
.state-page .receipt {
  padding:20px 0;
  border-top:1px solid var(--line);
  margin:25px 0;
  font-size:14px;
  line-height:2
}
.skeleton {
  height:48px;
  background:var(--line);
  border-radius:5px;
  margin-top:15px;
  animation:pulse 1s ease-in-out infinite alternate
}
.skeleton.short {
  width:65%
}
@keyframes pulse {
  to {
    opacity:.45
  }
}
.notice {
  padding:16px;
  background:var(--accent-soft);
  font-size:13px;
  color:var(--ink);
  border-radius:6px;
  margin-bottom:24px
}
.notice.error {
  background:oklch(97% .014 22);
  color:var(--error)
}
.review-section {
  padding:22px 0;
  border-bottom:1px solid var(--line)
}
.review-section:first-of-type {
  padding-top:0
}
.review-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.review-heading h3 {
  font-weight:600
}
.review-heading span {
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  margin-left:7px
}
.missing-list {
  padding-left:20px;
  margin:10px 0 0
}
.missing-list li {
  font-size:13px;
  padding:3px 0
}
.missing-list button {
  text-align:left
}
.review-answers {
  margin:8px 0 0;
  display:grid;
  grid-template-columns:minmax(100px,1fr) 1.5fr;
  gap:8px;
  font-size:12px
}
.review-answers dt {
  color:var(--muted)
}
.review-answers dd {
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.review-details {
  margin-top:12px
}
.review-details summary {
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  min-height:34px;
  padding:5px 0
}
.review-summary {
  font-size:14px;
  line-height:1.8;
  margin-bottom:25px
}
.error-banner {
  margin:0 0 20px
}
.retry-button {
  border:0;
  background:transparent;
  color:var(--error);
  text-decoration:underline;
  padding:10px;
  min-height:44px
}
dialog {
  max-width:460px;
  width:calc(100% - 40px);
  padding:30px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--ink)
}
dialog::backdrop {
  background:rgb(25 18 24 / .35)
}
dialog p {
  margin:18px 0;
  color:var(--muted);
  font-size:14px
}
.icon-button {
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  font-size:25px
}
.close-dialog {
  float:right;
  margin:-15px -15px 0 0
}
.privacy-page h2 {
  font-size:19px;
  margin:25px 0 12px
}
.privacy-page {
  padding-top:55px
}
.privacy-page ul {
  padding-left:22px;
  font-size:14px;
  color:var(--muted)
}
@media(min-width:1000px) {
  .sidebar-inner {
    position:sticky;
    top:24px
  }
}
@media(max-width:999px) and (min-width:761px) {
  .layout {
    grid-template-columns:215px minmax(0,1fr);
    gap:28px
  }
  .form-surface {
    padding:24px
  }
  .fields-grid {
    grid-template-columns:1fr
  }
  .field-wide {
    grid-column:auto
  }
  .student-name span {
    display:block;
    margin:3px 0 0
  }
  .header-title {
    display:none
  }
}
@media(max-width:760px) {
  .site-header {
    height:72px;
    padding:0 22px;
    gap:12px
  }
  .wordmark {
    font-size:20px
  }
  .header-title {
    display:none
  }
  .help-link {
    font-size:12px
  }
  .layout {
    display:block;
    padding:23px 20px 40px
  }
  .sidebar-inner {
    display:contents
  }
  .student-card {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 0 19px;
    margin-bottom:18px
  }
  .student-name {
    font-size:14px;
    margin:0;
    text-align:right
  }
  .student-name span {
    display:none
  }
  .program {
    font-size:10px;
    margin-top:2px;
    text-align:right
  }
  .country-tag {
    font-size:12px;
    gap:7px
  }
  .country-code {
    width:28px;
    height:24px;
    font-size:10px
  }
  .overall {
    margin-bottom:17px
  }
  .overall-row {
    font-size:11px
  }
  .sidebar nav,.sidebar-help {
    display:none
  }
  .mobile-steps {
    display:block;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0 0 26px;
    padding:0 0 15px;
    overscroll-behavior-x:contain;
    border-bottom:1px solid var(--line);
    overflow:auto;
    scrollbar-width:thin
  }
  .mobile-step-list {
    display:flex;
    gap:8px;
    width:max-content;
    padding:3px
  }
  .mobile-step-list .step-button {
    width:auto;
    white-space:nowrap;
    border:1px solid var(--line);
    padding:8px 12px;
    font-size:12px;
    background:white
  }
  .mobile-step-list .step-button[aria-current="step"] {
    border-color:var(--accent-ink);
    background:var(--accent-soft)
  }
  .mobile-step-list .step-count {
    margin-left:4px
  }
  .workspace-meta {
    margin-bottom:20px;
    font-size:11px
  }
  .save-status {
    font-size:11px
  }
  .section-heading {
    margin-bottom:22px
  }
  h1 {
    font-size:1.65rem
  }
  .section-en {
    font-size:12px
  }
  .section-description {
    font-size:13px;
    margin-top:15px
  }
  .section-counter {
    font-size:11px
  }
  .section-counter strong {
    font-size:16px
  }
  .form-surface {
    padding:24px 19px;
    border-radius:9px
  }
  .form-note {
    font-size:11px;
    line-height:1.7;
    margin-bottom:24px;
    padding-bottom:19px
  }
  .fields-grid {
    grid-template-columns:1fr;
    row-gap:24px
  }
  .field-wide {
    grid-column:auto
  }
  .field-label {
    font-size:14px
  }
  .field-label .en {
    font-size:11px
  }
  .field-help {
    font-size:11px
  }
  .options {
    gap:8px
  }
  .option {
    padding:10px;
    gap:7px;
    font-size:12px
  }
  .option .en {
    font-size:10px
  }
  .actions {
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-top:23px
  }
  .actions .primary {
    order:1;
    width:100%
  }
  .actions .quiet {
    order:2;
    align-self:center;
    padding:12px 16px
  }
  .actions .action-hint {
    margin:0;
    text-align:left
  }
  .button {
    padding:12px 16px;
    gap:14px;
    font-size:13px
  }
  .action-hint {
    font-size:10px
  }
  .section-footnote {
    font-size:11px
  }
  .site-footer {
    margin:0 20px;
    padding:22px 0;
    font-size:10px
  }
  .footer-separator {
    margin:0 5px
  }
  .state-page {
    padding:60px 24px;
    min-height:70vh
  }
  .state-page h1 {
    font-size:25px
  }
  .upload-box {
    padding:16px 12px;
    gap:10px
  }
  .upload-icon {
    display:none
  }
  .review-answers {
    grid-template-columns:1fr;
    gap:4px
  }
  .review-answers dd {
    margin-bottom:8px
  }
  .review-heading h3 {
    font-size:14px
  }
  .review-heading span {
    display:block;
    margin:2px 0 0
  }
  .review-section {
    padding:20px 0
  }
  .form-surface.review-surface {
    padding:22px 18px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
[hidden] {
  display:none!important
}
@media(max-width:359px) {
  .site-header {
    padding:0 16px
  }
  .wordmark {
    font-size:17px
  }
  .help-link {
    font-size:11px
  }
  .layout {
    padding-left:16px;
    padding-right:16px
  }
  .form-surface {
    padding-left:15px;
    padding-right:15px
  }
  .country-tag {
    font-size:11px
  }
  .student-name {
    font-size:12px
  }
}

/* Real PassportAbroad mark (stacked wordmark with the person in the O's), per Sean 2026-09-09 */
.wordmark-img{display:block;height:40px;width:auto}
.wordmark-img-small{height:24px}
.wordmark{display:inline-flex;align-items:center;line-height:0}
