:root {
  color-scheme: light;
  --bg: #f1f6f6;
  --panel: #fff;
  --line: #dbe6e6;
  --ink: #122b32;
  --muted: #526970;
  --lime: #087565;
  --rail: 218px;
}
body { min-height: 100dvh; padding-left: var(--rail); font-family: "Segoe UI", system-ui, sans-serif; }
h1,h2,h3 { overflow-wrap: anywhere; }
h2 { font-size: clamp(23px, 2.7vw, 29px); }
.app-shell { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: #fff; border: 0; border-right: 1px solid var(--line); z-index: 3; }
.app-shell .bar { margin: 0; padding: 25px 15px 18px; width: 100%; height: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; padding-left: 7px; }
.brand span { color: var(--ink); }
.brand .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #0c7868; color: #fff; }
.brand svg { width: 26px; height: 26px; }
nav { display: grid; gap: 7px; }
nav button { display: flex; align-items: center; gap: 12px; text-align: left; color: var(--muted); border-color: transparent; padding: 11px; }
nav svg { width: 22px; height: 22px; flex: none; }
nav button[aria-current=true] { background: #e2f3ef; border-color: transparent; color: #086554; }
.shell-caption { margin: auto 0 0 10px; color: var(--muted); font-size: 14px; }
.screen-header { background: #fff; border-bottom: 1px solid var(--line); }
.screen-header span { display: block; width: min(1120px,calc(100% - 48px)); margin: auto; padding: 19px 0; font-weight: 750; }
main { width: min(1120px,calc(100% - 48px)); padding: 24px 0 44px; }
.hero { background: radial-gradient(ellipse at 78% 42%,#23594f 0%,#123b3c 40%,#102b32 76%); border: 0; border-radius: 25px; min-height: 285px; grid-template-columns: 1fr minmax(220px,36%); }
.hero-copy { padding: 34px clamp(23px,4vw,47px); }
.hero h1 { color: #fff; font-size: clamp(34px,5vw,59px); line-height: 1.02; letter-spacing: -.055em; margin: 8px 0 12px; }
.eyebrow { color: #a0e6ce; letter-spacing: .06em; text-transform: none; }
.hero p { color: #d7ebe7; }
.hero button.primary { background: #b5f1da; color: #103c33; }
.hero canvas { transform: rotate(-12deg) scale(1.12); }
.card,.box { border-radius: 19px; box-shadow: 0 4px 14px #193d4510; }
.event-card { gap: 11px; }
.event-card h3 { font-size: 22px; }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.event-top .row { justify-content: flex-end; gap: 5px; }
.date-tile { min-width: 60px; padding: 6px 8px; border-radius: 11px; text-align: center; background: #e5f4f0; color: #0a6457; line-height: 1.16; }
.date-tile strong,.date-tile span { display: block; }
.date-tile strong { font-size: 25px; }
.date-tile span { font-size: 14px; }
.tag { border: 1px solid #d7e9e7; border-radius: 100px; padding: 3px 9px; color: #175b53; background: #eef7f5; }
.fill { background: #e2eeed; height: 6px; }
.segments { display: flex; gap: 3px; padding: 4px; background: #e4eded; border-radius: 12px; }
.segments button { min-width: 61px; padding: 6px 11px; border-color: transparent; background: transparent; font-size: 14px; }
.segments button[aria-pressed=true] { background: #fff; box-shadow: 0 1px 4px #18343b1c; color: #086554; }
button { border-radius: 10px; }
button.primary { background: #087565; color: white; }
button:focus-visible,summary:focus-visible,a:focus-visible { outline: 2px solid #087565; outline-offset: 3px; }
input,select,textarea { background-color: #f7fafa; border-radius: 9px; }
label { color: #365159; font-weight: 600; }
dialog { border-radius: 21px; box-shadow: 0 20px 65px #122b3260; overscroll-behavior: contain; }
dialog::backdrop { background: #102b328c; }
.avatar { background: #edf5f5; }
.profile-layout { grid-template-columns: minmax(240px,.85fr) minmax(290px,1.15fr); }
.profile-overview { display: grid; justify-items: center; gap: 11px; padding: 24px; text-align: center; }
.profile-overview h1 { font-size: 31px; letter-spacing: -.045em; margin: 0; line-height: 1.13; }
.profile-overview .avatar,.profile-placeholder { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.profile-placeholder { display: grid; place-items: center; background: #ddf2eb; color: #136858; font-weight: 750; font-size: 32px; }
.profile-placeholder svg { width: 40px; height: 40px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; margin: 4px 0; padding: 12px 2px; border-radius: 14px; background: #0d6c5e; color: #fff; }
.profile-stats div + div { border-left: 1px solid #ffffff50; }
.profile-stats strong,.profile-stats span { display: block; }
.profile-stats strong { font-size: 24px; line-height: 1.18; }
.profile-stats span { font-size: 14px; color: #e3f6f1; }
.profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-settings summary { cursor: pointer; font-weight: 700; }
.profile-settings form { margin-top: 15px; }
#toast { color: #fff; background: #15594f; border-color: #15594f; }
@media (min-width: 761px) and (max-width: 1050px) {
  :root { --rail: 170px; }
  .app-shell .bar { padding-inline: 9px; }
}
@media (max-width: 930px) { .profile-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  body { padding-left: 0; padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .app-shell { inset: auto 0 0; width: 100%; border: 0; border-top: 1px solid var(--line); }
  .app-shell .bar { height: auto; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .app-shell .brand,.shell-caption { display: none; }
  nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
  nav button { min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 3px 1px; text-align: center; font-size: 13px; }
  .screen-header span { width: calc(100% - 32px); padding: 13px 0; }
  .screen-header span::before { content: 'Dart Ligi'; color: #0b7363; border-right: 1px solid var(--line); padding-right: 10px; margin-right: 10px; }
  main { width: calc(100% - 32px); padding-top: 16px; padding-bottom: 23px; }
  .hero { grid-template-columns: 1fr; min-height: 219px; position: relative; }
  .hero-copy { max-width: 500px; padding: 23px; position: relative; z-index: 1; }
  .hero canvas { position: absolute; right: -58px; bottom: -68px; width: 260px; opacity: .36; }
  .hero h1 { max-width: 12ch; }
  .hero button { margin-top: 15px; }
  .section { margin-top: 22px; }
  .card,.box { padding: 15px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  dialog { max-height: 88dvh; padding: 17px; }
}
[hidden] { display: none !important; }
.account-layout { padding: 0; }
.account-layout main { width: min(900px,calc(100% - 32px)); padding-top: clamp(24px,8vh,86px); }
.account-screen { margin: auto; }
.account-narrow { max-width: 520px; }
.account-intro { text-align: center; margin-bottom: 22px; }
.account-intro h1 { font-size: clamp(38px,7vw,62px); margin: 12px 0; }
.account-intro p { color: var(--muted); }
.account-mark { display: grid; place-items: center; margin: auto; width: 58px; height: 58px; border-radius: 17px; background: #087565; color: #fff; font-size: 42px; line-height: 1; }
.account-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 14px; }
.account-choices article { grid-template-rows: auto 1fr auto; }
.account-choices button { justify-self: start; }
.account-narrow .heading { margin-bottom: 0; }
.account-narrow .heading button { padding: 6px 9px; font-size: 14px; }
.panel-title { font-size: 30px; margin: 0; line-height: 1.12; }
.screen-toolbar { width: min(1120px,calc(100% - 48px)); margin: auto; min-height: 64px; display: flex; align-items: center; gap: 12px; }
.screen-toolbar #screen-title { width: auto; margin: 0 auto 0 0; padding: 0; }
.screen-toolbar #account-label { width: auto; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.screen-toolbar button { white-space: nowrap; font-size: 14px; }
@media(max-width:760px) {
  nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .screen-toolbar { width: calc(100% - 32px); }
  .screen-toolbar #account-label { display: none; }
  .screen-toolbar #screen-title::before { content: none; }
}
.location-fields { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.location-fields legend { padding: 0 5px; font-weight: 700; }
.location-fields p { font-size: 14px; }
dialog:has(.group-board) { width: min(920px,calc(100% - 28px)); }
.group-board { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: 10px; align-items: start; }
.group-column { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #f1f6f6; }
.group-column.drop-active { border-color: #087565; background: #e4f5ef; outline: 2px solid #087565; outline-offset: -2px; }
.group-column-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 8px; }
.group-column-title span { padding: 1px 8px; border-radius: 20px; background: #dcece9; color: #166257; font-size: 14px; }
.group-drop { display: grid; gap: 7px; }
.group-person { display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; }
.group-person.dragging { opacity: .52; cursor: grabbing; }
.group-person-name { display: flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.group-grip { display: grid; place-items: center; flex: 0 0 25px; min-height: 28px; color: #52756f; touch-action: none; user-select: none; }
.group-person select { font-size: 14px; padding-block: 4px; }
.group-empty { min-height: 54px; display: grid; place-items: center; padding: 5px; border: 1px dashed #a4bfba; border-radius: 8px; color: var(--muted); text-align: center; font-size: 14px; }
.group-drop:has(.group-person) .group-empty,.group-move-status:empty { display: none; }
@media(max-width:570px) { .group-board { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; } .group-column { padding: 6px; } .group-person { padding: 5px; } }
.group-board { align-items: stretch; }
.group-column { display: flex; flex-direction: column; min-height: 145px; }
.group-drop { flex: 1; align-content: start; }
.group-tools { margin-bottom: 3px; }
.group-tools [aria-hidden] { font-size: 22px; vertical-align: middle; line-height: 1; }
.cancelled-tag { color: #872829; background: #fff1f0; border-color: #f0cac7; }
.cancellation-reason { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-tabs button { width: 100%; min-height: 40px; }
