:root {
  --ink: #172a39;
  --muted: #596d7b;
  --teal: #107d81;
  --teal-dark: #08656a;
  --line: #e1ebed;
  --blue: #e1eff9;
  --mint: #e2f1eb;
  --sand: #f4eee6;
  --shadow: 0 5px 19px #234f5b0c, 0 1px 2px #234f5b0a;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  background: #f0f7f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #37979b; outline-offset: 4px;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -80px; left: 16px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { background: #fbfdfe; border-bottom: 1px solid #dce9ed; }
.header-inner { max-width: 1400px; margin: auto; min-height: 83px; padding: 12px 36px; display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 27px; font-weight: 750; letter-spacing: -.7px; color: #122633; }
.brand .icon { color: var(--teal); width: 36px; height: 36px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 10px 13px; border-radius: 12px; font-size: 14px; font-weight: 550; min-height: 44px; white-space: nowrap; }
nav a:hover { background: #eef5f6; }
nav a[aria-current="page"] { background: #d7eeeb; color: #125b61; }
nav .icon { width: 21px; height: 21px; }
.portal-name { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; font-weight: 650; text-align: right; }
.avatar { border-radius: 50%; width: 36px; height: 36px; background: #e5f0f4; display: grid; place-items: center; font-size: 12px; letter-spacing: .3px; }
main { max-width: 1400px; margin: auto; padding: 28px 36px 0; outline: none; min-height: calc(100vh - 170px); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.7vw, 35px); line-height: 1.25; letter-spacing: -.7px; font-weight: 720; margin-bottom: 0; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.35px; font-weight: 700; margin-bottom: 0; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.25px; margin-bottom: 12px; font-weight: 650; }
p { margin-bottom: 12px; }
.welcome { display: flex; align-items: center; gap: 23px; min-height: 127px; background: #e0f1f1; border: 1px solid #d0e8e8; border-radius: 21px; padding: 28px 34px; margin-bottom: 25px; }
.welcome > .icon { color: #80b7b8; width: 66px; height: 66px; stroke-width: 1.4; }
.primary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.secondary-grid { display: grid; grid-template-columns: 1.06fr 1fr 1.05fr; gap: 22px; margin-top: 24px; }
.card { background: #fff; border: 1px solid #d7e5e9; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.card-header { min-height: 65px; padding: 17px 25px; display: flex; align-items: center; gap: 13px; background: #e3f0f6; }
.card-header .icon { color: #166e74; width: 26px; height: 26px; }
.card-header.mint { background: var(--mint); }
.card-header.blue { background: var(--blue); }
.card-header.sand { background: var(--sand); }
.card-body { padding: 23px 25px; }
.card-body.compact { padding: 17px 23px 21px; }
.session-body { display: flex; gap: 24px; align-items: flex-start; }
.date-tile { display: flex; flex: 0 0 104px; flex-direction: column; align-items: center; justify-content: center; padding: 12px; min-height: 116px; background: #e4f3f4; border-radius: 17px; color: #18717a; }
.date-tile span:first-child { text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .7px; }
.date-tile strong { color: #173440; font-size: 39px; line-height: 1.2; letter-spacing: -1px; font-weight: 750; }
.date-tile span:last-child { font-size: 14px; }
.session-copy { flex: 1; min-width: 0; }
.session-copy h3 { margin-bottom: 8px; }
.detail-line { display: flex; gap: 9px; align-items: center; margin-bottom: 7px; font-size: 14px; }
.detail-line .icon { color: #287d81; width: 20px; height: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--teal); color: #fff; text-decoration: none; font-size: 14px; line-height: 1.4; font-weight: 600; }
.button:hover { background: var(--teal-dark); }
.button.secondary { color: #34515e; background: #fff; border-color: #cbd9de; }
.button.secondary:hover { background: #f3f8f9; }
.button.soft { background: #e9f3f5; color: #244551; width: 100%; }
.button.soft:hover { background: #daecef; }
.button.soft.sand { background: #f2ece3; }
.button.soft.mint { background: #e2ede2; }
.button.soft.blue { background: #dfeef8; }
.button .icon { width: 17px; height: 17px; }
.title-line { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.title-line h3 { font-size: 20px; }
.badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 20px; padding: 4px 12px; background: #edf2f4; color: #536671; font-size: 12px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.badge.booked, .badge.active, .badge.complete, .badge.delivered { background: #e4f3de; color: #366a39; }
.badge.processing { background: #e0f0fe; color: #2d6794; }
.badge.not-started { background: #e9eff3; color: #526877; }
.check-list { list-style: none; margin: 1px 0 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list .icon { color: #31926b; width: 21px; height: 21px; }
.section-intro { color: var(--muted); font-size: 13px; margin-bottom: 12px; line-height: 1.55; }
.row-list { margin: 0 0 17px; padding: 0; list-style: none; }
.list-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; color: var(--ink); border: 0; border-top: 1px solid var(--line); background: transparent; text-decoration: none; text-align: left; font-size: 14px; min-height: 60px; }
.row-list li:last-child .list-link { border-bottom: 1px solid var(--line); }
.list-link:hover .list-title { color: var(--teal); }
.list-link .icon { width: 17px; height: 17px; color: #42717d; }
.list-title { flex: 1; min-width: 0; }
.list-title strong { font-size: 14px; display: block; font-weight: 650; }
.list-title small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.form-row .list-title { max-width: 195px; }
.order-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.next-steps { margin-top: 24px; padding: 24px 29px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #fafdfe; }
.next-heading { display: flex; gap: 12px; align-items: center; }
.next-heading .icon { color: var(--teal); width: 28px; height: 28px; }
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.step { text-align: center; position: relative; min-width: 0; padding: 0 7px; }
.step::before { position: absolute; content: ''; top: 15px; height: 2px; background: #d9e3e7; left: -50%; width: 100%; }
.step:first-child::before { display: none; }
.step:nth-child(2)::before { background: #409695; }
.step-dot { display: grid; place-items: center; position: relative; z-index: 1; width: 32px; height: 32px; background: #fff; border: 2px solid #c9d5db; border-radius: 50%; margin: 0 auto 11px; }
.step.done .step-dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.step.current .step-dot { border-color: #439e83; box-shadow: 0 0 0 5px #e4f1ed; }
.step.current .step-dot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #439e83; }
.step strong { display: block; font-size: 13px; font-weight: 600; }
.step small { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1400px; margin: auto; padding: 24px 39px; color: #607782; font-size: 12px; }
.site-footer > span:first-child { font-weight: 600; }
.page-heading { margin: 5px 0 25px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading p { color: var(--muted); margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--teal); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.back-link .icon { transform: rotate(180deg); width: 16px; }
.page-stack { display: grid; gap: 24px; }
.two-column { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 24px; }
.appointment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.appointment { border: 1px solid var(--line); border-radius: 13px; padding: 20px; }
.appointment .detail-line { color: var(--muted); }
.appointment h3 { font-size: 18px; }
.appointment > p { color: var(--muted); font-size: 14px; margin-top: 13px; }
.questionnaire-card { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.questionnaire-card h3 { margin-bottom: 6px; }
.questionnaire-card p { color: var(--muted); margin: 0; }
.questionnaire-card .actions { flex-shrink: 0; margin-top: 0; align-items: center; }
.form-card { max-width: 790px; }
.form-heading { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.form-fields { display: grid; gap: 22px; }
label { font-weight: 600; display: block; margin-bottom: 8px; font-size: 14px; }
input, textarea, select { display: block; width: 100%; border: 1px solid #cbdade; border-radius: 9px; padding: 11px 12px; color: var(--ink); background: #fbfdfe; font-size: 15px; }
textarea { min-height: 105px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #81929b; }
.form-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.error { color: #a23e36; margin: 14px 0 0; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th { color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.order-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-table th:first-child, .order-table td:first-child { padding-left: 0; }
.order-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.order-table .button { white-space: nowrap; }
.empty { padding: 35px; color: var(--muted); text-align: center; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #edf4f5; color: #335765; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 25px; border: 1px solid #dae7ea; border-radius: 20px; color: var(--ink); box-shadow: 0 16px 80px #173b5030; }
dialog::backdrop { background: #1f39444d; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-header h2 { font-size: 23px; }
.detail-grid { display: grid; gap: 15px; margin: 0; }
.detail-grid dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.detail-grid dd { margin: 0; }
.order-lines { padding: 0; list-style: none; margin: 22px 0 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-lines small { color: var(--muted); display: block; }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; font-weight: 700; margin-bottom: 18px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: #224e55; color: white; border-radius: 12px; padding: 0; font-size: 14px; z-index: 10; box-shadow: var(--shadow); }
#toast:not(:empty) { padding: 13px 21px; }
@media (min-width: 1450px) { main { padding-top: 32px; } .welcome { min-height: 140px; } }
@media (max-width: 1120px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 14px 28px 10px; }
  nav { order: 3; justify-content: center; width: 100%; }
  .secondary-grid { grid-template-columns: 1fr 1fr; }
  .secondary-grid .card:last-child { grid-column: 1 / -1; }
  .secondary-grid .card:last-child .row-list { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .next-steps { grid-template-columns: 165px 1fr; gap: 14px; padding: 24px 20px; }
  .session-body { gap: 16px; }
  .date-tile { flex-basis: 86px; }
  .appointment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { padding: 13px 18px 9px; gap: 15px; }
  .brand { font-size: 24px; gap: 9px; }
  .brand .icon { width: 30px; height: 30px; }
  .portal-name { font-size: 12px; max-width: 170px; gap: 8px; }
  .avatar { width: 32px; height: 32px; flex-shrink: 0; }
  nav { justify-content: space-between; gap: 2px; }
  nav a { flex: 1; padding: 8px 5px; flex-direction: column; gap: 5px; font-size: 11px; border-radius: 10px; }
  nav .icon { width: 20px; height: 20px; }
  main { padding: 20px 18px 0; }
  .welcome { min-height: 113px; padding: 22px; gap: 16px; margin-bottom: 20px; border-radius: 17px; }
  .welcome > .icon { width: 45px; height: 45px; }
  .welcome h1 { font-size: 25px; }
  .primary-grid, .secondary-grid, .two-column { grid-template-columns: 1fr; gap: 18px; }
  .secondary-grid { margin-top: 18px; }
  .secondary-grid .card:last-child { grid-column: auto; }
  .secondary-grid .card:last-child .row-list { display: block; }
  .card { border-radius: 16px; }
  .card-header { padding: 16px 20px; min-height: 60px; gap: 11px; }
  .card-header h2 { font-size: 19px; }
  .card-body, .card-body.compact { padding: 20px; }
  .date-tile { flex-basis: 78px; min-height: 104px; }
  .date-tile strong { font-size: 34px; }
  .session-copy h3 { font-size: 18px; }
  .session-body { gap: 15px; }
  .session-copy .actions { margin-left: -93px; margin-top: 20px; }
  .session-copy .button { flex: 1; }
  .title-line h3 { font-size: 18px; }
  .next-steps { margin-top: 18px; padding: 23px 18px; grid-template-columns: 1fr; gap: 22px; }
  .next-heading h2 { font-size: 19px; }
  .step-list { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .step:nth-child(3)::before { display: none; }
  .step strong { font-size: 13px; }
  .site-footer { padding: 23px 20px; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .page-heading { margin-top: 3px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 28px; }
  .questionnaire-card { align-items: stretch; flex-direction: column; gap: 17px; }
  .questionnaire-card .actions { justify-content: space-between; }
  .questionnaire-card h3 { font-size: 19px; }
  .form-heading { align-items: flex-start; }
  .form-heading h2 { font-size: 19px; }
  .order-table, .order-table tbody { display: block; }
  .order-table thead { display: none; }
  .order-table tr { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
  .order-table tr:last-child { border-bottom: 0; }
  .order-table td { display: block; padding: 0; border: 0; }
  .order-table td:nth-child(2) { display: none; }
  .order-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .order-table td:nth-child(4) { grid-column: 1; }
  .order-table td:last-child { grid-column: 2; text-align: right; }
  .form-card .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, nav a { transition: background-color .15s ease; }
}
.login-main { display: grid; place-items: start center; padding-top: clamp(35px, 9vh, 90px); }
.login-card { width: 100%; max-width: 460px; }
.login-card h1 { font-size: 26px; }
.login-card .card-body { padding: 28px; }
.login-card .actions .button { flex: 1; }
.login-card #code { font-size: 25px; letter-spacing: .3em; }
#login-message { color: #24616a; font-size: 14px; margin: 18px 0 0; }
.text-button { background: transparent; border: 0; color: var(--teal-dark); text-decoration: underline; padding: 12px 0; }
.logout-button { background: #edf5f5; border: 1px solid #d5e5e7; border-radius: 9px; color: var(--teal-dark); padding: 8px 10px; font-size: 12px; }
.button:disabled { opacity: .65; }
.questionnaire-fields .question-choice {border:0;padding:0;margin:0;min-width:0;}
.questionnaire-fields legend {font-weight:600;margin-bottom:10px;}
.questionnaire-fields .choice-option {display:flex;align-items:center;gap:10px;font-weight:400;margin:9px 0;}
.questionnaire-fields .choice-option input {width:18px;height:18px;flex:none;margin:0;}
.questionnaire-fields :disabled {opacity:1;color:var(--ink,#183a53);background:#f6fafb;-webkit-text-fill-color:currentColor;}
.questionnaire-fields .question-description {white-space:pre-line;}
.project-selection { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.project-selection select { max-width: 340px; }
@media (max-width: 760px) {
  .portal-name { flex: 1; min-width: 0; }
  .login-card .card-body { padding: 22px; }
  .login-page .header-inner { flex-wrap: nowrap; }
}
