:root {
  color-scheme: light;
  --ink: #203c36; --muted: #536a61; --paper: #f6f5f0; --surface: #fffefa;
  --line: #d8e0d8; --brand: #245c50; --soft: #e9efe7; --accent: #a86412;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none; line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button, .primary-link { border: 1px solid var(--brand); border-radius: .75rem; padding: .8rem 1.15rem; background: var(--brand); color: #fff; cursor: pointer; min-height: 3rem; font-weight: 650; }
button:hover:not(:disabled), .primary-link:hover { background: #17483d; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .75rem; background: var(--surface); z-index: 2; }
.skip-link:focus { top: .5rem; }
.site-header, .site-footer { max-width: 76rem; margin: auto; padding: 1.25rem clamp(1rem, 4vw, 3rem); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { letter-spacing: .2em; font-size: .95rem; font-weight: 750; text-decoration: none; }
.brand-note { color: var(--muted); font-size: .85rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
main { max-width: 76rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 5rem; min-height: 65vh; }
h1 { margin: .4rem 0 1rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.25; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.45; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; line-height: 1.55; }
p { overflow-wrap: anywhere; }
.event-page { max-width: 64rem; margin: auto; }
.event-page h3 { margin-top: 0; overflow-wrap: anywhere; }
.page-intro { margin-bottom: 1.5rem; }
.eyebrow, .role-label { color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.page-subtitle, .help { color: var(--muted); line-height: 1.8; }
.page-subtitle { max-width: 42rem; margin: 0; }
.event-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin: 1.25rem 0 2rem; }
.notice { padding: .9rem 1rem; background: var(--soft); border-radius: .75rem; border-left: 3px solid var(--brand); line-height: 1.75; margin: 0; flex: 1; }
.page-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.secondary-button { background: transparent; color: var(--brand); border-color: var(--line); }
.secondary-button:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.event-summary, .login-card, .preparation-card, .next-action, .event-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.1rem, 3vw, 2rem); margin: 1rem 0; }
.event-summary { background: #e9eee3; border: 0; padding: clamp(1.5rem, 4vw, 2.75rem); }
.event-summary h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); max-width: 42rem; margin: .5rem 0 1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; color: var(--muted); margin: .5rem 0; }
.event-progress { padding: 1rem 0 0; border-top: 1px solid #cbd5c6; margin-top: 1.5rem; }
.next-action { border-color: #aec2b1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.next-action h2 { margin: .3rem 0; }
.next-action p { margin: .3rem 0; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 2.5rem; }
.section-heading h2 { margin-bottom: .3rem; }
.preparation-list { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.preparation-card { margin: 0; scroll-margin-top: 1.5rem; }
.preparation-card:target { outline: 3px solid var(--brand); outline-offset: 4px; }
.preparation-card h3 { margin: .6rem 0; }
.item-state { display: inline-block; font-size: .8rem; font-weight: 650; padding: .25rem .65rem; border-radius: 2rem; background: var(--soft); color: var(--brand); margin: 0; }
.item-due { font-size: .85rem; color: var(--muted); }
.check-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.check-column { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1rem; background: var(--paper); border-radius: .75rem; }
.customer-check { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.customer-check button { min-width: 10rem; }
.partner-status { color: var(--muted); font-size: .85rem; margin-bottom: 0; }
.event-detail-panel { border-top: 1px solid var(--line); padding: 1.25rem 0; margin-top: 1rem; }
.event-detail-panel summary { cursor: pointer; font-weight: 650; padding: .5rem 0; min-height: 2.75rem; }
.event-details { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .65rem 1rem; line-height: 1.7; }
.event-details dt { font-weight: 600; color: var(--muted); }
.event-details dd { margin: 0; overflow-wrap: anywhere; }
.event-empty { text-align: center; padding: 2.5rem 1.5rem; }
.login-card { max-width: 32rem; }
.login-card label, .login-card input { display: block; }
.login-card label { margin-top: 1rem; font-weight: 600; }
.login-card input, .login-card select, .login-card textarea { max-width: 100%; border: 1px solid #84988b; border-radius: .6rem; padding: .8rem; margin: .4rem 0 1rem; background: var(--surface); color: var(--ink); }
.login-card input, .login-card textarea { width: 100%; }
.login-card fieldset { margin: 1rem 0; border: 1px solid var(--line); border-radius: .6rem; }
.login-card input[type="checkbox"] { display: inline-block; width: auto; margin: .5rem .3rem; }
.policy-notice { white-space: pre-wrap; line-height: 1.8; }
@media (max-width: 42rem) {
  .brand-note { display: none; }
  .event-toolbar { flex-direction: column; gap: .75rem; }
  .event-toolbar .notice { width: 100%; }
  .next-action { grid-template-columns: 1fr; gap: .75rem; }
  .next-action .primary-link { width: 100%; }
  .check-columns { grid-template-columns: 1fr; }
  .customer-check { align-items: stretch; flex-direction: column; }
  .customer-check button { width: 100%; }
  .section-heading { display: block; }
  .event-meta { flex-direction: column; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
/* Customer journey: one continuous form, optional details stay secondary. */
.customer-journey { max-width: 56rem; }
.journey-steps { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style-position: inside; padding: 0; margin: 1.5rem 0 2rem; color: var(--muted); font-size: .85rem; }
.journey-steps li { padding: .45rem .7rem; border-bottom: 2px solid var(--line); }
.journey-steps li[aria-current="step"] { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.journey-form { max-width: none; }
.journey-form h2 { margin-top: .3rem; }
.form-section + .form-section { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.form-grid > div { min-width: 0; }
.journey-form select { width: 100%; }
.journey-form .form-primary { margin-top: 1rem; }
.service-options { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem; }
.service-options legend { padding: 0 .3rem; }
.service-options label { margin: 0; font-weight: 500; padding: .35rem 0; min-height: 2.75rem; }
.consent-label { line-height: 1.9; }
.receipt-panel:empty, .account-panel:empty { display: none; }
.receipt-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.25rem; background: var(--soft); margin-top: 1.5rem; }
.receipt-panel h2 { margin-top: .3rem; }
.receipt-reference { font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }
.journey-secondary { margin-top: 1.5rem; font-size: .9rem; }
.account-panel { border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.25rem; margin: 1rem 0; background: var(--surface); }
.join-primary { margin: 1.5rem 0; }
.join-primary .help { margin-top: .75rem; }
@media (max-width: 42rem) {
  .form-grid { grid-template-columns: 1fr; }
  .journey-form .form-primary, .join-primary button { width: 100%; }
  .journey-steps { gap: .35rem; font-size: .8rem; }
  .journey-steps li { padding: .35rem .4rem; }
}

.field-error { color: #8a2525; font-size: .9rem; margin: .25rem 0 .75rem; }
[aria-invalid="true"] { border-color: #8a2525; }

/* Long event names must wrap within narrow customer cards. */
.event-summary h2, .next-action h2 { overflow-wrap: anywhere; }
.next-action > * { min-width: 0; }

/* Screenshot review: scoped customer entry, compact filters and team controls. */
.home-page { max-width: 64rem; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 1.25rem; }
.home-action { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.home-action h2 { margin: .4rem 0; }
.home-action > .primary-link { margin-top: auto; }
.team-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.team-links a { padding: .5rem 0; min-height: 2.75rem; }
.customer-journey h1, .home-page h1 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.event-toolbar.event-filters { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; gap: .4rem; }
.event-filters button { flex: 0 1 auto; min-width: 0; }
.event-filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.event-filters button[aria-pressed="false"] { background: transparent; color: var(--brand); border-color: var(--line); }
.assignment-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: 1.25rem 0 1.5rem; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; }
.filter-field select { min-height: 3rem; max-width: 100%; border: 1px solid #84988b; border-radius: .6rem; padding: .65rem .9rem; background: var(--surface); color: var(--ink); }
@media (max-width: 42rem) {
  .home-actions { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .home-action > .primary-link { width: 100%; }
  .event-filters button { flex: 1 1 0; padding-inline: .55rem; }
  .inquiry-intake .journey-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 1.1rem 0 1.5rem; }
  .inquiry-intake .journey-steps li { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
  .inquiry-intake .form-section + .form-section { margin-top: 1.5rem; padding-top: 1.25rem; }
  .inquiry-intake .journey-form label { margin-top: .75rem; }
  .inquiry-intake .service-options label { margin-top: 0; }
  .assignment-toolbar .filter-field { flex: 1 1 10rem; }
}
