@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', sans-serif;
  color: #183638;
  background: #f7fbfa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #183638;
  --muted: #718384;
  --line: #e4edeb;
  --paper: #fff;
  --canvas: #f7fbfa;
  --teal: #087e78;
  --teal-dark: #05635f;
  --mint: #e6f5f1;
  --coral: #df745e;
  --coral-pale: #fff0ec;
  --yellow: #f2c85b;
  --shadow: 0 12px 36px rgba(27, 73, 70, .07);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8, 126, 120, .3); outline-offset: 2px; }
a { color: inherit; }
.shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 clamp(18px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.brand-icon { width: 42px; height: 46px; flex: 0 0 auto; overflow: visible; }
.pin-shape { fill: #173f78; }
.pin-dot { fill: #f2c544; stroke: #fff; stroke-width: 1.5; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-name { display: flex; font: 800 19px/1 Manrope, sans-serif; letter-spacing: 0; }
.brand-name span:first-child { color: #173f78; }
.brand-name span:last-child { color: #a92c3b; }
.brand-tagline { display: flex; align-items: center; gap: 5px; color: #929ba4; font: 600 7px/1.3 'DM Sans', sans-serif; letter-spacing: .18em; white-space: nowrap; }
.brand-tagline i { width: 11px; height: 2px; display: inline-block; background: #14876b; }
.auth-brand { margin-bottom: 30px; gap: 15px; }
.auth-brand .brand-icon { width: 72px; height: 78px; }
.auth-brand .brand-name { font-size: 30px; }
.auth-brand .brand-tagline { font-size: 9px; letter-spacing: .2em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.privacy-note { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #45a78b; }
.app-layout { max-width: 1440px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 60px) 60px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(24px, 4vw, 58px); }
.side-nav { display: flex; flex-direction: column; gap: 7px; position: sticky; top: 106px; align-self: start; }
.nav-label { color: #9aa9a8; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; padding: 3px 14px 10px; }
.nav-link { border: 0; background: transparent; text-align: left; color: #667b7a; min-height: 45px; padding: 0 14px; border-radius: 9px; font-weight: 600; display: flex; align-items: center; gap: 12px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover { color: var(--teal); background: #f0f7f5; transform: translateX(2px); }
.nav-link.active { background: var(--mint); color: var(--teal-dark); }
.nav-symbol { width: 21px; text-align: center; font-size: 16px; }
.nav-bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.main { min-width: 0; animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--teal); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: 0; }
h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; margin-bottom: 10px; }
h2 { font-size: 20px; margin-bottom: 6px; }
h3 { font-size: 15px; margin-bottom: 7px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 9px 0 25px; }
.page-head p, .subtle { color: var(--muted); margin-bottom: 0; font-size: 14px; line-height: 1.6; }
.welcome { min-height: 196px; padding: clamp(22px, 4vw, 38px); border-radius: 12px; color: #fff; background: linear-gradient(110deg, #087e78 0%, #15988b 57%, #42ab91 100%); position: relative; overflow: hidden; display: flex; align-items: center; }
.welcome::after { content: ''; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; position: absolute; right: -45px; top: -105px; box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 65px rgba(255,255,255,.035); }
.welcome-content { position: relative; z-index: 1; max-width: 570px; }
.welcome .eyebrow { color: #c5eee5; }
.welcome h1 { margin: 11px 0 8px; }
.welcome p { margin: 0; color: #d7f0e9; line-height: 1.6; max-width: 470px; }
.welcome .button { margin-top: 22px; color: var(--teal-dark); background: #fff; }
.welcome .button:hover { background: #eaf8f4; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 30px; }
.stat { background: var(--paper); padding: 19px 20px; border: 1px solid var(--line); border-radius: 9px; min-height: 105px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font: 800 24px Manrope, sans-serif; margin: 9px 0 0; }
.stat-foot { color: #388a73; font-size: 11px; margin-top: 4px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 27px 0 13px; }
.text-link { border: 0; background: transparent; color: var(--teal); font-weight: 700; font-size: 13px; padding: 8px 0; }
.text-link:hover { color: var(--teal-dark); text-decoration: underline; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 21px; }
.panel-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.panel-title p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.schedule-list { display: flex; flex-direction: column; }
.schedule-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #edf2f1; }
.schedule-item:first-child { border-top: 0; padding-top: 0; }
.date-chip { min-height: 57px; border-radius: 8px; display: grid; place-content: center; text-align: center; background: var(--mint); color: var(--teal-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.date-chip strong { font: 800 20px Manrope, sans-serif; line-height: 1.1; }
.schedule-item h3 { margin: 0 0 4px; }
.schedule-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; background: #f1f6f4; color: #52716d; border-radius: 5px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tag.coral { background: var(--coral-pale); color: #b95441; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: #fff; text-align: left; display: flex; gap: 13px; align-items: center; transition: border .18s, background .18s, transform .18s; }
.quick-action:hover { border-color: #a6d5ca; background: #fbfefd; transform: translateY(-1px); }
.action-icon { width: 38px; height: 38px; border-radius: 8px; background: #e8f5f1; color: var(--teal); display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.quick-action:nth-child(2) .action-icon { background: #fff1eb; color: #d06c54; }
.quick-action:nth-child(3) .action-icon { background: #fff7dc; color: #9e781b; }
.quick-action strong { display: block; font-size: 13px; }
.quick-action small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.button { min-height: 45px; padding: 0 18px; border: 1px solid transparent; border-radius: 7px; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s, transform .18s; }
.button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.button.secondary { background: white; color: var(--teal-dark); border-color: #c8ded9; }
.button.secondary:hover { background: #f4faf8; }
.button.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.button.ghost:hover { color: var(--ink); background: #f4f7f6; }
.button.danger { color: #a94438; background: #fff; border-color: #efd2cd; }
.button.full { width: 100%; }
.form-wrap { max-width: 760px; }
.form-card { padding: clamp(20px, 4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.language-control { width: min(100%, 280px); margin-bottom: 18px; }
.field.span-2 { grid-column: span 2; }
.field label { color: #465e5d; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid #d9e5e2; border-radius: 6px; color: var(--ink); background: #fff; padding: 0 12px; }
.field textarea { padding: 12px; min-height: 94px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a5b2b0; }
.field select:disabled { background: #f4f7f6; color: #98a7a5; cursor: not-allowed; }
.helper { color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 23px; }
.account-actions { max-width: 760px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-note { margin: 17px 0 0; padding: 12px 14px; background: #f2f8f6; border-left: 3px solid #74bba4; border-radius: 0 6px 6px 0; color: #58716e; font-size: 12px; line-height: 1.6; }
.form-note.warning { border-color: #e9bb4d; background: #fff9e9; color: #74612b; }
.confirmation { display: none; margin: 0 0 18px; padding: 15px 17px; border-radius: 7px; border: 1px solid #b8dfd2; color: #246953; background: #eef9f4; font-size: 13px; line-height: 1.6; }
.confirmation.visible { display: block; animation: enter .25s ease both; }
.confirmation strong { display: block; margin-bottom: 3px; }
.loading-line { color: var(--muted); font-size: 12px; }
.empty-state { padding: 26px 18px; color: var(--muted); background: #f7faf9; border-radius: 7px; font-size: 13px; line-height: 1.6; text-align: center; }
.source-line { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 12px; }
.auth-screen { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0,1fr) minmax(350px, .8fr); }
.auth-aside { background: #eaf5f1; padding: clamp(35px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after { content: '+'; position: absolute; right: 7%; bottom: -105px; color: rgba(8,126,120,.08); font: 800 370px Manrope,sans-serif; line-height: 1; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h1 { max-width: 540px; font-size: clamp(32px,4.3vw,54px); margin: 18px 0; }
.auth-aside p { max-width: 460px; color: #627b77; line-height: 1.7; }
.auth-benefits { display: grid; gap: 12px; margin-top: 29px; color: #47635f; font-size: 13px; }
.auth-benefits span::before { content: '✓'; color: var(--teal); font-weight: 800; margin-right: 10px; }
.auth-box { padding: 42px clamp(22px,5vw,72px); display: flex; flex-direction: column; justify-content: center; background: white; }
.auth-box .form-card { border: 0; padding: 0; }
.auth-mobile-brand { display: none; }
.auth-box h2 { font-size: 25px; margin: 0 0 6px; }
.auth-box > p { color: var(--muted); font-size: 13px; margin-bottom: 23px; }
.auth-box .form-grid { grid-template-columns: 1fr; }
.auth-box .field.span-2 { grid-column: auto; }
.auth-switch { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }
.auth-switch button { padding: 0; border: 0; background: none; color: var(--teal); font-weight: 700; }
.auth-feedback { margin-top: 20px; padding: 16px; border: 1px solid #d8e8e3; border-radius: 8px; background: #f8fcfa; }
.auth-feedback[hidden] { display: none; }
.auth-progress-heading { margin-bottom: 11px; color: #45625e; font-size: 13px; font-weight: 700; }
.auth-progress-row { display: flex; align-items: center; gap: 11px; }
.auth-progress-track { height: 10px; flex: 1; overflow: hidden; border-radius: 999px; background: #e4efeb; }
.auth-progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087e78, #2fa67e); transition: width .12s linear; }
.auth-progress-percent { min-width: 38px; color: var(--teal-dark); font: 700 12px Manrope, sans-serif; text-align: right; }
.auth-success { display: flex; align-items: center; gap: 12px; color: #226b53; }
.auth-success > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #dff3e9; font-size: 18px; font-weight: 800; }
.auth-success strong { font-size: 14px; }
.auth-success p { margin: 3px 0 0; color: #607b73; font-size: 12px; }
.profile-summary { display: flex; align-items: center; gap: 15px; padding: 18px 20px; background: #f6faf9; border-radius: 8px; margin-bottom: 20px; }
.avatar { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: #d8eee8; color: var(--teal-dark); font: 800 17px Manrope,sans-serif; }
.profile-summary p { color: var(--muted); margin: 3px 0 0; font-size: 12px; }
.footer-note { margin-top: 28px; text-align: center; color: #95a3a1; font-size: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 10; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 7px; color: white; background: #1c4f4b; box-shadow: var(--shadow); font-size: 13px; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.orientation-prompt { display: none; }
.orientation-icon { display: block; margin-bottom: 12px; color: var(--teal); font: 700 42px Manrope, sans-serif; }
.orientation-prompt strong { display: block; color: var(--ink); font: 700 18px Manrope, sans-serif; }
.orientation-prompt p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
@media (orientation: landscape) and (max-height: 600px) {
  .orientation-prompt { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(247,251,250,.98); text-align: center; }
  .orientation-prompt > div { max-width: 320px; }
}
@media (max-width: 920px) {
  .app-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .nav-label { display: none; }
  .nav-bottom { display: flex; flex: 0 0 auto; gap: 4px; margin: 0; padding: 0; border: 0; }
  .nav-link { white-space: nowrap; min-height: 41px; padding: 0 12px; }
}
@media (max-width: 640px) {
  .topbar { height: 64px; padding: 0 10px; gap: 6px; }
  .brand-lockup { gap: 5px; }
  .brand-icon { width: 30px; height: 34px; }
  .brand-name { font-size: 14px; }
  .brand-tagline { font-size: 5px; letter-spacing: .1em; }
  .top-actions { gap: 5px; }
  .top-actions .button { min-height: 38px; padding: 0 9px; font-size: 11px; }
  .privacy-note { display: none; }
  .app-layout { padding: 14px 14px 30px; gap: 14px; }
  .side-nav { margin: 0 -14px; padding: 0 14px 9px; }
  .nav-link { padding: 0 10px; font-size: 11px; gap: 6px; }
  .nav-symbol { width: auto; }
  .welcome { min-height: 205px; padding: 24px 20px; }
  .welcome::after { right: -190px; }
  .stats { gap: 8px; margin: 13px 0 24px; }
  .stat { padding: 13px 11px; min-height: 90px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 19px; }
  .stat-foot { font-size: 9px; }
  .page-head { align-items: start; flex-direction: column; margin: 5px 0 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field.span-2 { grid-column: auto; }
  .schedule-item { grid-template-columns: 50px minmax(0,1fr); gap: 10px; }
  .schedule-item > .tag { grid-column: 2; justify-self: start; }
  .panel { padding: 17px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-box { min-height: calc(100vh - 64px); padding: 28px 22px; }
  .auth-mobile-brand { display: block; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}