:root {
  color-scheme: light;
  --ink: #20221f;
  --muted: #7d807b;
  --line: #e4e5e0;
  --background: #f7f7f5;
  --accent: #426a54;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.app { max-width: 560px; min-height: 100vh; margin: 0 auto; padding: max(26px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brand, .header-note, .eyebrow, .section-index, footer { font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--accent); font-size: 13px; }
.header-note { color: var(--muted); font-size: 9px; white-space: nowrap; }
.section-index { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.compose { margin-top: 28px; padding: 24px; background: #fff; border: 1px solid #ebede8; border-radius: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-index { margin-bottom: 7px; font-size: 9px; }
h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.035em; }
.section-symbol { display: grid; place-items: center; height: 34px; width: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 22px; font-weight: 300; }
form { margin-top: 26px; }
label { display: block; margin-bottom: 8px; color: #555b55; font-size: 12px; font-weight: 600; }
input { width: 100%; min-width: 0; height: 49px; padding: 0 13px; border: 1px solid #e4e7e1; border-radius: 8px; background: #fbfbfa; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
input::placeholder { color: #aaada8; }
input:focus-visible { border-color: #789681; box-shadow: 0 0 0 3px #426a541c; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 17px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.timezone { margin: 0; color: var(--muted); font-size: 11px; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 45px; padding: 0 15px; border: 0; border-radius: 8px; background: #263e30; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.primary span { font-size: 17px; font-weight: 400; }
.primary:hover { background: #385843; }
button:focus-visible { outline: 3px solid #90ae99; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
.events { padding-top: 42px; }
.events-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #dfe3dc; border-radius: 50%; color: #606960; font-size: 12px; }
.status { margin: 17px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status:empty { display: none; }
.status.error { color: #ae4941; }
.event { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event > div { min-width: 0; }
.event-title { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.event-date { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.delete { flex-shrink: 0; padding: 8px 0 8px 8px; border: 0; background: transparent; color: #8a8e88; font: inherit; font-size: 12px; cursor: pointer; }
.delete:hover { color: #a33f39; }
footer { display: flex; justify-content: space-between; margin-top: 68px; padding-top: 17px; border-top: 1px solid var(--line); color: #acafa9; font-size: 9px; }
footer span:last-child { color: #9db3a1; }
@media (max-width: 340px) { .app { padding-left: 16px; padding-right: 16px; } .compose { padding: 18px; } .form-bottom { align-items: flex-start; flex-direction: column; } .primary { width: 100%; } }

.recipient-field { margin-top: 17px; }
.optional { color: var(--muted); font-weight: 400; }
.event-recipient { margin-top: 5px; color: #555b55; font-size: 12px; overflow-wrap: anywhere; }

.groups { margin-top: 28px; padding: 22px 24px; background: #fff; border: 1px solid #ebede8; border-radius: 16px; }
.groups > label { margin-top: 20px; }
select { width: 100%; height: 49px; padding: 0 13px; border: 1px solid #e4e7e1; border-radius: 8px; background: #fbfbfa; color: var(--ink); font: inherit; font-size: 14px; }
select:focus-visible { outline: 3px solid #426a541c; }
.group-form { margin-top: 17px; }
.group-controls { display: flex; gap: 8px; }
.group-controls input { flex: 1; }
.group-create { border: 0; border-radius: 8px; padding: 0 14px; background: #263e30; color: white; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.invite { margin-top: 16px; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.group-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.groups summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.groups summary::-webkit-details-marker { display: none; }
.groups summary span { font-size: 20px; color: var(--muted); }
.groups[open] summary span { transform: rotate(180deg); }
.scope-field { margin-bottom: 17px; }
.event-group { display: inline-block; margin-top: 9px; padding: 4px 7px; border-radius: 5px; background: #eef2ed; color: var(--accent); font-size: 11px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav { position: relative; flex-shrink: 0; }
.nav summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 12px; border: 1px solid #e2e5df; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary:focus-visible { outline: 3px solid #90ae99; outline-offset: 3px; }
.nav-chevron { width: 7px; height: 7px; border-right: 1.5px solid #777e77; border-bottom: 1.5px solid #777e77; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav[open] .nav-chevron { transform: rotate(225deg) translate(-2px, -1px); }
.nav-panel { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 196px; padding: 5px; border: 1px solid #e7eae4; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #1c2d2020; }
.nav-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #555c55; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.nav-option:hover, .nav-option:focus-visible { background: #f3f6f2; }
.nav-option.is-active { background: #eef3ed; color: #355c43; font-weight: 600; }
.nav-check { visibility: hidden; color: #50745a; }
.nav-option.is-active .nav-check { visibility: visible; }
.groups-intro { padding: 38px 0 24px; }
.groups-intro h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.groups-intro > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; }
.groups-card { padding: 22px; background: #fff; border: 1px solid #ebede8; border-radius: 16px; }
.group-list-section { padding-top: 35px; }
.group-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.group-title { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.group-meta { margin: 7px 0 14px; color: var(--muted); font-size: 12px; }
.group-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.group-actions button { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 9px 11px; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.group-actions button.danger { color: #a34a43; }
.rename-form { display: flex; gap: 8px; margin-top: 14px; }
.rename-form input { flex: 1; }

.field-label { display: block; margin-bottom: 8px; color: #555b55; font-size: 12px; font-weight: 600; }
.scope-menu summary { min-height: 49px; padding: 0 13px; border-radius: 8px; background: #fbfbfa; font-size: 14px; font-weight: 400; }
.scope-menu summary > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-menu .nav-panel { left: 0; right: 0; width: auto; max-height: 240px; overflow-y: auto; }
.scope-menu .nav-option span:first-child { overflow-wrap: anywhere; }
