@charset "UTF-8";
:root {
  --bg:#f6f5f1;
  --surface:#fff;
  --ink:#242722;
  --muted:#8a8c82;
  --line:#e8e8e0;
  --accent:#e96643;
  --accent-soft:#fbede6;
  --sage:#e9eee4;
  --sidebar:240px;
  --radius:22px;
  --shadow:0 12px 45px #24272209;
  color-scheme:light;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button {
  color:inherit;
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.4
}
button {
  border:0;
  background:none
}
a {
  color:inherit;
  text-decoration:none
}
svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.sprite {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.wheel:focus-visible {
  outline:3px solid var(--focus-ring);
  outline-offset:3px
}
[hidden] {
  display:none!important
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(32px,3vw,45px);
  letter-spacing:-1.9px;
  line-height:1.15;
  font-weight:650
}
h1>span {
  color:var(--accent)
}
h2 {
  font-size:20px;
  letter-spacing:-.6px;
  font-weight:650
}
h3 {
  font-size:17px;
  letter-spacing:-.35px
}
p {
  line-height:1.65
}
.muted,.field-hint {
  color:var(--muted)
}
.field-hint {
  font-size:12px;
  line-height:1.65
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
  color:var(--muted)
}
.small-label {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted)
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  padding:13px 19px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
  min-height:46px;
  transition:background .2s,transform .2s,box-shadow .2s;
  white-space:nowrap
}
.button:hover {
  transform:translateY(-2px)
}
.button:active {
  transform:scale(.98)
}
.button.primary {
  color:#fff;
  background:var(--accent);
  box-shadow:0 5px 16px var(--accent-shadow)
}
.button.primary:hover {
  background:var(--accent-hover);
  box-shadow:0 7px 20px var(--accent-shadow)
}
.button.subtle {
  background:var(--surface);
  border:1px solid var(--line)
}
.full {
  width:100%
}
.text-button {
  font-size:12px;
  font-weight:600;
  color:var(--accent);
  padding:6px 0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-align:left
}
.text-button:hover {
  text-decoration:underline
}
.danger {
  color:#c65545!important
}
.icon-button {
  width:40px;
  height:40px;
  border-radius:50%;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  transition:background .2s
}
.icon-button:hover {
  background:var(--line)
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.sidebar {
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  width:var(--sidebar);
  background:var(--surface);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  padding:34px 20px 20px;
  z-index:20
}
.brand {
  display:flex;
  align-items:center;
  font-size:26px;
  letter-spacing:-1px;
  font-weight:750;
  padding:0 11px;
  gap:11px
}
.brand-dot {
  margin-left:-10px;
  color:var(--accent)
}
.brand-mark {
  display:inline-flex;
  width:38px;
  height:38px;
  background:var(--accent);
  color:#fff;
  border-radius:13px;
  align-items:center;
  justify-content:center;
  flex-shrink:0
}
.brand-mark svg {
  width:26px;
  height:26px
}
.brand-mark.small {
  width:32px;
  height:32px;
  border-radius:11px
}
.brand-mark.small svg {
  width:22px;
  height:22px
}
.sidebar-label {
  font-size:9px;
  color:var(--muted);
  letter-spacing:1.6px;
  margin:49px 14px 18px
}
nav {
  display:flex;
  flex-direction:column;
  gap:7px
}
.nav-item {
  display:flex;
  gap:13px;
  padding:14px 17px;
  border-radius:13px;
  font-weight:550;
  font-size:13px;
  align-items:center;
  text-align:left;
  color:#82877c;
  transition:background .2s,color .2s
}
.nav-item:hover {
  background:var(--bg)
}
.nav-item.active {
  background:var(--accent-soft);
  color:var(--accent)
}
.nav-item.active:after {
  content:"";
  width:5px;
  height:5px;
  background:var(--accent);
  border-radius:50%;
  margin-left:auto
}
.sidebar-bottom {
  margin:auto 15px 24px;
  padding-top:50px
}
.sidebar-bottom p {
  font-size:12px;
  color:var(--muted);
  margin:11px 0 16px
}
.sidebar-bottom strong {
  color:#5e6658;
  font-weight:500
}
.little-orbit {
  font-size:48px;
  color:#bdc8ad;
  line-height:1
}
.zone-label {
  font-size:10px;
  letter-spacing:.3px;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:6px
}
.zone-label:before {
  content:"";
  width:5px;
  height:5px;
  background:#9aaa89;
  border-radius:50%
}
.profile {
  display:flex;
  gap:10px;
  align-items:center;
  padding:18px 5px 0;
  border-top:1px solid var(--line)
}
.avatar {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--sage);
  color:#6e7c5c;
  font-weight:700
}
.profile strong {
  display:block;
  font-size:12px;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.profile div>span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:2px
}
.online-dot {
  height:7px;
  width:7px;
  border:2px solid #e8efdd;
  background:#8a9e72;
  border-radius:50%;
  margin-left:auto
}
.app main {
  margin-left:var(--sidebar);
  padding:0 40px;
  max-width:1600px
}
.topbar {
  height:91px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:var(--muted);
  gap:10px
}
.topbar-right {
  display:flex;
  align-items:center;
  gap:9px
}
.status-dot {
  width:6px;
  height:6px;
  background:#99a983;
  border-radius:50%
}
.topbar .icon-button {
  width:30px;
  height:30px
}
.topbar .icon-button svg {
  width:17px;
  height:17px
}
.demo-badge {
  background:var(--accent-soft);
  color:var(--accent);
  font-size:9px;
  font-weight:600;
  border-radius:6px;
  padding:5px 8px
}
.mobile-brand {
  display:none
}
.view {
  padding-top:38px;
  animation:enter .35s ease both
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:32px
}
.page-heading .eyebrow {
  margin-bottom:13px
}
.page-heading p {
  color:var(--muted);
  font-size:12px;
  margin-top:12px
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);
  gap:27px
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.next-event {
  min-height:224px;
  border-radius:var(--radius);
  background:var(--hero-bg);
  color:#fff;
  position:relative;
  padding:29px 30px;
  overflow:hidden;
  isolation:isolate
}
.next-event:before,.next-event:after {
  content:"";
  position:absolute;
  z-index:-1;
  width:260px;
  height:260px;
  right:-80px;
  top:-22px;
  border-radius:50%;
  border:1px solid #ffffff20;
  box-shadow:0 0 0 36px #ffffff09,0 0 0 72px #ffffff08,0 0 0 108px #ffffff05;
  pointer-events:none
}
.next-event:after {
  width:110px;
  height:110px;
  right:-5px;
  top:50px;
  background:#ffffff05;
  box-shadow:none
}
.hero-eyebrow {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  letter-spacing:1.8px;
  opacity:.8
}
.hero-eyebrow svg {
  width:15px;
  height:15px
}
.next-event h2 {
  font-size:27px;
  line-height:1.25;
  letter-spacing:-1px;
  max-width:85%;
  margin:16px 0 8px;
  overflow-wrap:anywhere
}
.hero-datetime {
  font-size:12px;
  opacity:.8
}
.hero-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:26px;
  gap:10px
}
.hero-countdown {
  font-size:11px;
  background:#ffffff22;
  border:1px solid #ffffff25;
  padding:6px 11px;
  border-radius:8px
}
.hero-open {
  display:flex;
  align-items:center;
  gap:8px;
  color:white;
  font-size:11px;
  font-weight:600
}
.hero-open svg {
  width:18px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:29px 0 18px;
  gap:10px
}
.section-heading h2 {
  display:flex;
  gap:10px;
  align-items:center
}
.count-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e9e9e1;
  color:#818878;
  font-size:10px;
  padding:2px 7px;
  border-radius:7px;
  font-weight:600;
  letter-spacing:0
}
.agenda-tools {
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-bottom:18px;
  align-items:center
}
.segmented {
  display:flex;
  background:#eaeae4;
  padding:4px;
  border-radius:10px;
  gap:2px
}
.segmented button {
  font-size:10px;
  border-radius:7px;
  padding:6px 10px;
  color:var(--muted)
}
.segmented button.selected {
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 2px 4px #00000005
}
.search {
  display:flex;
  align-items:center;
  gap:5px;
  max-width:165px
}
.search svg {
  width:16px;
  height:16px;
  color:#9b9f92
}
.search input {
  border:none!important;
  background:transparent!important;
  width:100%;
  font-size:11px;
  padding:4px!important;
  box-shadow:none!important
}
.event-list {
  display:flex;
  flex-direction:column;
  gap:9px
}
.event-card {
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:17px 18px;
  border-radius:15px;
  text-align:left;
  width:100%;
  transition:transform .2s,border-color .2s,box-shadow .2s;
  animation:enter .3s ease both
}
.event-card:hover {
  transform:translateX(3px);
  border-color:#d7dacd;
  box-shadow:var(--shadow)
}
.event-icon {
  width:43px;
  height:43px;
  border-radius:13px;
  background:var(--sage);
  color:#7a8d68;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.event-card:nth-child(3n+2) .event-icon {
  background:#f3e9df;
  color:#b9986f
}
.event-card:nth-child(3n+3) .event-icon {
  background:#e9eaf3;
  color:#9295b7
}
.event-info {
  flex:1;
  min-width:0
}
.event-info strong {
  display:block;
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.event-meta {
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  font-size:10px;
  color:var(--muted);
  margin-top:5px
}
.event-meta svg {
  width:12px;
  height:12px
}
.event-time {
  font-size:14px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
  font-weight:600
}
.event-card>.chevron {
  width:14px;
  color:#c2c4ba
}
.group-label {
  font-size:10px;
  color:var(--muted);
  margin:11px 1px 3px;
  font-weight:600
}
.empty-state {
  text-align:center;
  padding:35px 20px;
  color:var(--muted);
  border:1px dashed #dcded3;
  border-radius:18px
}
.empty-state svg {
  width:32px;
  height:32px;
  margin-bottom:9px;
  color:#acb69e
}
.empty-state strong {
  display:block;
  color:var(--ink);
  font-size:14px;
  margin-bottom:5px
}
.empty-state p {
  font-size:12px;
  max-width:240px;
  margin:auto
}
.calendar-column {
  display:flex;
  flex-direction:column;
  gap:20px
}
.mini-calendar-card {
  padding:23px 20px 15px
}
.calendar-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin:12px 0 17px
}
.calendar-header h3 {
  font-size:17px;
  text-transform:capitalize
}
.calendar-header .year {
  color:var(--muted);
  font-weight:400;
  margin-left:5px
}
.calendar-controls {
  display:flex;
  gap:3px
}
.calendar-controls button {
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:8px
}
.calendar-controls button:hover {
  background:var(--bg)
}
.calendar-controls svg {
  width:16px;
  height:16px
}
.prev svg {
  transform:rotate(180deg)
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px
}
.weekday {
  text-align:center;
  color:#a0a395;
  font-size:10px;
  padding:0 0 7px
}
.day {
  aspect-ratio:1;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:10px;
  font-size:11px;
  font-variant-numeric:tabular-nums;
  transition:background .16s,transform .16s;
  min-width:0
}
.day:hover:not(:disabled) {
  background:var(--accent-soft);
  transform:scale(1.06)
}
.day:disabled {
  opacity:.28
}
.day.today {
  box-shadow:inset 0 0 0 1px var(--accent-border);
  color:var(--accent)
}
.day.selected {
  background:var(--accent)!important;
  color:#fff;
  box-shadow:0 4px 10px var(--accent-shadow)
}
.day.has-event:after {
  content:"";
  position:absolute;
  bottom:5px;
  left:calc(50% - 1.5px);
  width:3px;
  height:3px;
  background:#9ba889;
  border-radius:50%
}
.day.selected:after {
  background:#fff
}
.calendar-legend {
  border-top:1px solid var(--line);
  margin-top:15px;
  padding-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px;
  font-size:9px;
  color:var(--muted)
}
.calendar-legend>span {
  display:flex;
  align-items:center;
  gap:5px
}
.legend-dot {
  width:4px;
  height:4px;
  background:#9ba889;
  border-radius:50%
}
.calendar-legend .text-button {
  font-size:9px
}
.quiet-card {
  background:#eceee5;
  border:1px solid #e3e6d9;
  border-radius:var(--radius);
  padding:25px;
  position:relative;
  overflow:hidden
}
.quiet-icon {
  width:34px;
  height:34px;
  background:#dde3d2;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#859674;
  margin-bottom:15px
}
.quiet-icon svg {
  width:18px;
  height:18px
}
.quiet-card h3 {
  font-size:19px;
  margin-bottom:8px
}
.quiet-card p {
  font-size:12px;
  color:#8b937f
}
.quiet-card .text-button {
  color:#778666;
  margin-top:17px;
  font-size:11px;
  justify-content:space-between;
  width:100%
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  color:#a1a597;
  padding:34px 0 24px;
  border-top:1px solid var(--line);
  margin-top:40px
}
.calendar-page-grid {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);
  gap:28px
}
.full-calendar {
  padding:25px
}
.full-calendar .calendar-header {
  margin-top:0
}
.full-calendar .day {
  font-size:14px;
  border-radius:13px
}
.full-calendar .day.has-event:after {
  width:5px;
  height:5px;
  bottom:10px
}
.calendar-page-grid .section-heading {
  margin-top:0
}
.calendar-page-grid .button.full {
  margin-top:15px
}
.settings-grid {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);
  gap:27px
}
.settings-fields {
  display:flex;
  flex-direction:column;
  gap:18px
}
.settings-card {
  padding:24px
}
.settings-card>h2 {
  margin-bottom:8px
}
.card-title {
  display:flex;
  align-items:center;
  gap:13px;
  margin-bottom:23px
}
.card-title h2 {
  font-size:17px
}
.card-title p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}
.step-number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  font-size:11px;
  letter-spacing:1px;
  color:#9aa18e;
  border-radius:10px;
  background:#f0f2ea;
  margin-bottom:0;
  flex-shrink:0
}
.chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.chip {
  border:1px solid var(--line);
  border-radius:9px;
  font-size:11px;
  padding:9px 12px;
  background:var(--surface);
  transition:all .17s
}
.chip.selected {
  border-color:var(--accent-border);
  background:var(--accent-soft);
  color:var(--accent)
}
.chip.selected:before {
  content:"✓";
  margin-right:5px;
  font-weight:700
}
.custom-offset {
  display:flex;
  gap:7px;
  align-items:center;
  margin-top:13px
}
.custom-offset input {
  width:110px;
  font-size:11px
}
.custom-offset button {
  font-size:11px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:8px
}
.custom-offset .text-button {
  border:0;
  margin-left:auto
}
.style-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.style-options button {
  border:1px solid var(--line);
  border-radius:12px;
  padding:15px 9px;
  text-align:left;
  transition:all .2s
}
.style-options button strong {
  display:block;
  font-size:12px;
  font-weight:600
}
.style-options button span {
  display:block;
  font-size:9px;
  margin-top:4px;
  color:var(--muted)
}
.style-options button.selected {
  background:var(--accent-soft);
  border-color:var(--accent-border)
}
.style-options button.selected strong {
  color:var(--accent)
}
.setting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.setting-row:last-child {
  border-bottom:0;
  padding-bottom:0
}
.setting-row:first-of-type {
  padding-top:0
}
.setting-row strong {
  font-size:12px;
  font-weight:550
}
.setting-row p {
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}
.setting-row select {
  max-width:175px;
  font-size:11px;
  background:var(--bg);
  border:none;
  padding:8px;
  border-radius:7px;
  color:var(--ink)
}
.switch {
  display:inline-block;
  position:relative;
  width:37px;
  height:22px;
  flex-shrink:0;
  cursor:pointer
}
.switch input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer
}
.switch>span:not(.sr-only) {
  display:block;
  width:37px;
  height:22px;
  background:#dfe2d7;
  border-radius:20px;
  transition:background .2s;
  pointer-events:none
}
.switch>span:not(.sr-only):before {
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px #0001;
  transition:transform .2s
}
.switch input:checked+span {
  background:var(--accent)
}
.switch input:checked+span:before {
  transform:translateX(15px)
}
.switch input:focus-visible+span {
  outline:3px solid var(--focus-ring);
  outline-offset:3px
}
.preview-column {
  position:sticky;
  top:24px;
  align-self:start
}
.preview-column>.eyebrow {
  margin:5px 0 18px
}
.phone-preview {
  border-radius:22px;
  background:#e7eae1;
  padding:20px 17px 16px;
  border:1px solid #dfe3d5;
  box-shadow:0 10px 40px #454d3510;
  margin-bottom:13px
}
.preview-app {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:10px;
  margin-bottom:16px
}
.preview-app strong {
  display:block;
  font-size:12px
}
.preview-app div>span {
  color:#8b9580;
  display:block;
  font-size:9px
}
.preview-app>span:last-child {
  margin-left:auto;
  color:#9da491;
  font-size:9px
}
.message-bubble {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--surface);
  padding:16px;
  border-radius:4px 16px 16px 16px;
  font-size:12px;
  line-height:1.75;
  min-height:150px;
  box-shadow:0 2px 5px #00000004
}
.preview-footer {
  text-align:center;
  color:#9da491;
  font-size:9px;
  margin-top:15px
}
.preview-column>.field-hint {
  padding:12px 4px
}
.unsaved {
  font-size:11px;
  color:var(--accent);
  padding:10px;
  border-radius:8px;
  background:var(--accent-soft)
}
input:not([type=checkbox]),textarea {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--ink);
  padding:12px 13px;
  min-width:0
}
textarea {
  resize:vertical;
  line-height:1.7;
  width:100%;
  font-size:12px
}
.field-label {
  display:block;
  font-size:11px;
  font-weight:600;
  margin:17px 0 9px
}
.template-variables {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin:9px 0
}
.template-variables button {
  font:10px ui-monospace,monospace;
  padding:5px 7px;
  background:var(--bg);
  border-radius:6px;
  color:var(--accent)
}
.admin-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);
  gap:27px
}
.admin-grid>aside {
  display:flex;
  flex-direction:column;
  gap:18px
}
.admin-grid .muted {
  font-size:12px
}
.admin-grid .field-hint {
  margin-top:12px
}
.admin-grid input {
  width:100%
}
.input-action {
  display:flex;
  gap:9px
}
.admin-grid .settings-card>form>.button {
  margin-top:13px
}
.admin-grid .step-number {
  margin-bottom:15px
}
.admin-badge {
  background:var(--sage);
  color:#7f8f6c;
  padding:9px 13px;
  border-radius:10px;
  font-size:11px;
  display:flex;
  gap:7px;
  align-items:center
}
.admin-badge svg {
  width:17px
}
.users-list {
  display:flex;
  flex-direction:column;
  gap:8px
}
.user-card {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:15px;
  background:var(--surface)
}
.user-card .avatar {
  width:35px;
  height:35px;
  font-size:12px
}
.user-card>div {
  flex:1;
  min-width:0
}
.user-card strong {
  font-size:12px;
  display:block;
  overflow-wrap:anywhere
}
.user-card small {
  font-size:10px;
  color:var(--muted)
}
.user-card button {
  font-size:10px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:7px 9px
}
.user-role {
  color:#899875;
  font-size:10px
}
.id-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:15px
}
.id-tags span {
  font:10px ui-monospace,monospace;
  background:#e0e5d5;
  color:#788568;
  padding:5px 7px;
  border-radius:5px
}
.large-icon {
  width:28px;
  height:28px;
  color:#95a185;
  margin-bottom:14px
}
.gate {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:30px;
  background:radial-gradient(ellipse at 25% 15%,#f8e9df,transparent 55%),var(--bg)
}
.gate-card {
  max-width:420px;
  text-align:center;
  animation:enter .5s ease both
}
.gate .brand-mark {
  width:64px;
  height:64px;
  border-radius:22px;
  margin-bottom:35px;
  box-shadow:0 10px 40px var(--accent-shadow)
}
.gate .brand-mark svg {
  width:40px;
  height:40px
}
.gate h1 {
  font-size:55px;
  line-height:1.1;
  letter-spacing:-3px
}
.gate p {
  margin:24px 0;
  font-size:14px;
  color:var(--muted);
  white-space:pre-line
}
.gate-actions {
  display:flex;
  flex-direction:column;
  gap:10px
}
.gate .button {
  margin:5px
}
.gate small {
  font-size:11px;
  color:var(--muted);
  display:block;
  margin-top:12px
}
.error-banner {
  padding:13px 17px;
  background:#f8e6df;
  color:#b54d35;
  border:1px solid #efd1c6;
  border-radius:12px;
  margin-top:15px;
  font-size:12px
}
.form-error {
  padding:10px 12px;
  background:var(--accent-soft);
  color:#c65545;
  border-radius:9px;
  font-size:12px;
  margin-top:16px
}
.toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  opacity:0;
  pointer-events:none;
  z-index:100;
  background:#2e352b;
  color:#fff;
  border:1px solid #ffffff10;
  border-radius:12px;
  padding:13px 20px;
  font-size:12px;
  box-shadow:0 8px 30px #1c281d22;
  transition:opacity .2s,transform .2s;
  max-width:90vw;
  text-align:center
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
dialog {
  border:0;
  color:var(--ink);
  background:var(--surface);
  padding:0;
  box-shadow:0 20px 100px #1c281d30
}
dialog::backdrop {
  background:#252c285c;
  backdrop-filter:blur(5px)
}
dialog[open] {
  animation:sheet-in .25s ease both
}
.sheet {
  width:min(520px,calc(100% - 32px));
  max-height:calc(100dvh - 48px);
  border-radius:24px
}
.sheet form {
  display:flex;
  flex-direction:column;
  max-height:inherit
}
.sheet-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:23px 25px 16px;
  gap:10px
}
.sheet-header h2 {
  font-size:24px;
  margin-top:5px;
  letter-spacing:-.9px
}
.sheet-body {
  overflow-y:auto;
  padding:0 25px 18px;
  overscroll-behavior:contain;
  scrollbar-width:thin
}
.sheet-body>.field-label:first-child {
  margin-top:5px
}
.title-input {
  width:100%;
  font-size:14px
}
.sheet-footer {
  display:flex;
  gap:10px;
  padding:16px 25px 23px;
  border-top:1px solid var(--line);
  background:var(--surface)
}
.sheet-handle {
  display:none
}
.editor-date-heading,.time-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:9px
}
.editor-date-heading>span {
  font-size:11px;
  color:var(--accent)
}
.editor-calendar {
  border:1px solid var(--line);
  border-radius:14px;
  padding:4px 13px 11px
}
.editor-calendar .calendar-header {
  margin:7px 0 13px
}
.editor-calendar .calendar-header h3 {
  font-size:14px
}
.editor-calendar .day {
  aspect-ratio:auto;
  height:34px;
  font-size:11px
}
.editor-calendar .day.has-event:after {
  bottom:3px
}
.time-heading {
  margin:8px 0 0
}
.time-picker {
  position:relative;
  width:250px;
  height:190px;
  display:flex;
  margin:0 auto 10px;
  justify-content:center;
  gap:22px;
  isolation:isolate
}
.wheel {
  height:168px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  width:82px;
  padding:63px 0;
  touch-action:pan-y;
  mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);
  cursor:grab
}
.wheel::-webkit-scrollbar {
  display:none
}
.wheel-option {
  height:42px;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  scroll-snap-align:center;
  font-size:25px;
  font-weight:500;
  color:#b8baaf;
  font-variant-numeric:tabular-nums;
  transition:color .12s,transform .12s;
  user-select:none
}
.wheel-option[aria-selected=true] {
  color:var(--ink);
  font-size:32px;
  letter-spacing:-1px;
  font-weight:600
}
.wheel-highlight {
  position:absolute;
  left:0;
  right:0;
  top:63px;
  height:42px;
  border-radius:11px;
  background:var(--bg);
  z-index:-1
}
.time-colon {
  position:absolute;
  top:64px;
  font-size:25px;
  line-height:40px;
  color:var(--muted)
}
.time-captions {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:70px;
  font-size:9px;
  color:var(--muted);
  pointer-events:none
}
.time-shortcuts {
  display:flex;
  justify-content:center;
  gap:7px
}
.time-shortcuts button {
  font-size:10px;
  background:var(--bg);
  border:1px solid var(--line);
  padding:7px 10px;
  border-radius:7px
}
.time-shortcuts button:hover {
  border-color:var(--accent-border);
  color:var(--accent)
}
.exact-time {
  margin-top:12px;
  font-size:10px;
  color:var(--muted)
}
.exact-time summary {
  cursor:pointer;
  text-align:center
}
.exact-time label {
  display:flex;
  justify-content:center;
  gap:10px;
  align-items:center;
  margin-top:8px
}
.exact-time input {
  padding:5px 10px;
  font-size:12px
}
.section-heading.small {
  margin:22px 0 12px
}
.section-heading.small h3 {
  font-size:12px
}
.section-heading.small .field-hint {
  font-size:9px
}
.confirm-dialog {
  width:min(380px,calc(100% - 36px));
  border-radius:23px;
  padding:28px;
  text-align:center
}
.confirm-icon {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  margin:0 auto 18px
}
.confirm-dialog h2 {
  font-size:22px
}
.confirm-dialog p {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 22px;
  white-space:pre-line
}
.confirm-actions {
  display:flex;
  gap:8px
}
.confirm-actions>button {
  flex:1
}
.busy {
  opacity:.55;
  pointer-events:none
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(9px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@keyframes sheet-in {
  from {
    opacity:0;
    transform:translateY(30px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@media(min-width:1600px) {
  .app main {
    margin-right:auto;
    padding:0 60px
  }
  .dashboard-grid {
    gap:36px
  }
  .next-event {
    min-height:245px;
    padding:35px
  }
  .calendar-column {
    max-width:440px
  }
  .page-heading {
    margin-bottom:38px
  }
}
@media(max-width:1150px) {
  :root {
    --sidebar:200px
  }
  .sidebar {
    padding:29px 12px 16px
  }
  .brand {
    font-size:23px;
    gap:8px
  }
  .brand-mark {
    width:33px;
    height:33px;
    border-radius:11px
  }
  .brand-dot {
    margin-left:-7px
  }
  .app main {
    padding:0 25px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:20px
  }
  .page-heading>.button span {
    display:none
  }
  .page-heading>.button {
    padding:12px
  }
  .small-label {
    display:none
  }
  .agenda-tools {
    flex-wrap:wrap
  }
  .search {
    max-width:130px
  }
  .settings-grid {
    grid-template-columns:minmax(0,1fr) 255px;
    gap:18px
  }
  .settings-card {
    padding:20px
  }
  .style-options {
    gap:5px
  }
  .style-options button {
    padding:12px 8px
  }
  .style-options button span {
    font-size:8px
  }
  .admin-grid {
    grid-template-columns:minmax(0,1fr) 260px;
    gap:18px
  }
  .input-action {
    flex-wrap:wrap
  }
  .input-action input {
    flex:1;
    min-width:130px
  }
  .calendar-page-grid {
    grid-template-columns:minmax(0,1fr);
    gap:24px
  }
}
@media(max-width:900px) {
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .calendar-column {
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .next-event {
    min-height:220px
  }
  .settings-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .preview-column {
    position:static;
    max-width:400px
  }
  .admin-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .admin-grid>aside {
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .page-heading {
    align-items:flex-end
  }
  .topbar-status {
    display:none
  }
  .style-options button span {
    font-size:10px
  }
  .style-options button {
    padding:15px 12px
  }
}
@media(max-width:640px) {
  :root {
    --sidebar:0px;
    --radius:19px
  }
  body {
    font-size:13px
  }
  .sidebar {
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:auto;
    height:calc(69px + env(safe-area-inset-bottom));
    padding:7px 12px calc(6px + env(safe-area-inset-bottom));
    background:#fffef9ed;
    border:0;
    border-top:1px solid var(--line);
    backdrop-filter:blur(20px)
  }
  .sidebar>.brand,.sidebar-label,.sidebar-bottom,.profile {
    display:none
  }
  nav {
    flex-direction:row;
    justify-content:space-around;
    gap:4px;
    height:100%
  }
  .nav-item {
    flex-direction:column;
    justify-content:center;
    gap:4px;
    font-size:9px;
    padding:7px 12px;
    border-radius:11px;
    flex:1;
    max-width:105px
  }
  .nav-item svg {
    width:21px;
    height:21px
  }
  .nav-item.active:after {
    display:none
  }
  .app main {
    margin:0;
    padding:0 19px 70px
  }
  .topbar {
    height:73px;
    padding-top:env(safe-area-inset-top)
  }
  .mobile-brand {
    display:block;
    font-size:24px;
    font-weight:750;
    letter-spacing:-1px;
    color:var(--ink)
  }
  .mobile-brand span {
    color:var(--accent)
  }
  #today-label {
    display:none
  }
  .topbar-right {
    gap:6px
  }
  .topbar .status-dot {
    display:none
  }
  .demo-badge {
    font-size:8px;
    padding:4px 6px
  }
  .view {
    padding-top:26px
  }
  .page-heading {
    gap:12px;
    margin-bottom:24px
  }
  .page-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.4px;
    margin-bottom:9px
  }
  h1 {
    font-size:34px;
    letter-spacing:-1.7px
  }
  .page-heading p {
    font-size:11px;
    max-width:260px;
    margin-top:10px
  }
  .page-heading>.button {
    width:43px;
    height:43px;
    min-height:43px;
    padding:10px;
    border-radius:14px;
    flex-shrink:0;
    font-size:0;
    gap:0
  }
  .page-heading>.button svg {
    width:23px;
    height:23px
  }
  .page-heading>.button span {
    display:none
  }
  .next-event {
    min-height:209px;
    padding:25px
  }
  .next-event h2 {
    font-size:27px;
    max-width:92%;
    margin-top:17px
  }
  .hero-bottom {
    margin-top:24px
  }
  .hero-countdown {
    font-size:10px
  }
  .hero-open {
    font-size:10px
  }
  .dashboard-grid {
    gap:24px
  }
  .agenda-tools {
    flex-wrap:nowrap;
    gap:8px
  }
  .search {
    max-width:130px
  }
  .search input {
    font-size:10px
  }
  .segmented button {
    padding:6px 9px;
    font-size:9px
  }
  .event-card {
    padding:15px 13px;
    gap:11px
  }
  .event-icon {
    width:39px;
    height:39px;
    border-radius:12px
  }
  .event-info strong {
    font-size:12px
  }
  .event-time {
    font-size:13px
  }
  .event-meta {
    font-size:9px;
    gap:6px
  }
  .calendar-column {
    display:flex;
    gap:16px
  }
  .mini-calendar-card {
    padding:20px
  }
  .calendar-header h3 {
    font-size:18px
  }
  .day {
    font-size:12px
  }
  .quiet-card {
    padding:22px
  }
  .quiet-card .text-button {
    width:auto;
    gap:15px
  }
  .section-heading h2 {
    font-size:19px
  }
  .calendar-legend {
    font-size:10px
  }
  .calendar-legend .text-button {
    font-size:10px
  }
  .page-footer {
    margin-top:27px;
    padding:23px 0 24px;
    font-size:9px;
    flex-wrap:wrap
  }
  .full-calendar {
    padding:17px
  }
  .full-calendar .day {
    font-size:13px;
    min-height:39px
  }
  .settings-card {
    padding:20px
  }
  .settings-grid {
    gap:26px
  }
  .preview-column {
    max-width:none
  }
  .phone-preview {
    padding:20px
  }
  .card-title {
    gap:10px;
    margin-bottom:19px
  }
  .card-title h2 {
    font-size:16px
  }
  .card-title p {
    font-size:10px
  }
  .chip {
    font-size:10px;
    padding:8px 10px
  }
  .style-options button {
    padding:13px 9px
  }
  .style-options button span {
    font-size:8px
  }
  .setting-row select {
    max-width:143px;
    font-size:10px
  }
  .setting-row strong {
    font-size:11px
  }
  .setting-row p {
    font-size:9px
  }
  .admin-grid>aside {
    display:flex
  }
  .admin-badge {
    display:none
  }
  .input-action {
    flex-direction:column
  }
  .input-action input {
    min-width:0
  }
  .sheet {
    width:100%;
    max-width:100%;
    margin:auto 0 0;
    max-height:calc(100dvh - env(safe-area-inset-top) - 12px);
    border-radius:24px 24px 0 0
  }
  .sheet-handle {
    display:block;
    width:34px;
    height:4px;
    background:#dcded4;
    border-radius:10px;
    flex-shrink:0;
    margin:10px auto 0
  }
  .sheet-header {
    padding:16px 21px 15px
  }
  .sheet-header h2 {
    font-size:23px
  }
  .sheet-body {
    padding:0 21px 18px
  }
  .sheet-footer {
    padding:13px 21px calc(15px + env(safe-area-inset-bottom))
  }
  .title-input {
    font-size:16px
  }
  .toast {
    bottom:calc(86px + env(safe-area-inset-bottom));
    font-size:11px;
    width:max-content
  }
  .calendar-page-grid {
    gap:20px
  }
  .time-shortcuts button {
    font-size:9px
  }
  .gate h1 {
    font-size:48px
  }
  .gate .brand-mark {
    width:57px;
    height:57px
  }
  .error-banner {
    font-size:11px
  }
  .custom-offset input {
    font-size:12px
  }
  input:not([type=checkbox]),textarea,select {
    font-size:16px
  }
  .setting-row select {
    font-size:12px
  }
  .style-options {
    gap:6px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.event-card>.event-icon {
  padding:11px
}
#gate-actions {
  display:flex;
  flex-direction:column;
  gap:10px
}
:root {
  --accent-raw:#e96643;
  --accent-night:#f0987a;
  --focus-ring:#e9664380;
  --accent-shadow:#e9664320;
  --accent-border:#edb59e;
  --accent-hover:#d95936;
  --hero-bg:#e96643
}
:root[data-accent=blue] {
  --accent-raw:#3974bb;
  --accent-night:#88b6ef
}
:root[data-accent=green] {
  --accent-raw:#438260;
  --accent-night:#8fc8a5
}
:root[data-accent=purple] {
  --accent-raw:#8260b8;
  --accent-night:#b9a0e7
}
:root[data-accent=gold] {
  --accent-raw:#a67825;
  --accent-night:#dfbc70
}
:root[data-accent] {
  --accent:var(--accent-raw);
  --accent-soft:color-mix(in srgb,var(--accent) 12%,var(--surface));
  --focus-ring:color-mix(in srgb,var(--accent) 50%,transparent);
  --accent-shadow:color-mix(in srgb,var(--accent) 16%,transparent);
  --accent-border:color-mix(in srgb,var(--accent) 45%,var(--line));
  --accent-hover:color-mix(in srgb,var(--accent-raw) 88%,#000);
  --hero-bg:var(--accent-raw)
}
:root[data-theme=light] {
  color-scheme:light
}
:root[data-theme=dark] {
  --bg:#1b1e1a;
  --surface:#242923;
  --ink:#e8ebe3;
  --muted:#a3ab9b;
  --line:#394132;
  --sage:#303b29;
  --accent:var(--accent-night);
  --hero-bg:color-mix(in srgb,var(--accent-raw) 80%,#151b13);
  color-scheme:dark
}
.button.primary {
  background:var(--accent-raw);
  color:#fff
}
.button.primary:hover {
  background:var(--accent-hover)
}
.day.selected {
  background:var(--accent-raw)!important;
  color:#fff
}
.switch input:checked+span {
  background:var(--accent-raw)
}
.brand-mark {
  background:var(--accent-raw)
}
.next-event {
  background:var(--hero-bg)
}
:root[data-theme=dark] .sidebar {
  background:var(--surface)
}
:root[data-theme=dark] .quiet-card,:root[data-theme=dark] .phone-preview {
  background:#2b3426;
  border-color:#3a4432
}
:root[data-theme=dark] .message-bubble {
  background:var(--surface)
}
:root[data-theme=dark] .segmented,:root[data-theme=dark] .step-number,:root[data-theme=dark] .count-pill {
  background:#30392a
}
:root[data-theme=dark] .event-card .event-icon {
  background:#303b29;
  color:#a2b58b
}
:root[data-theme=dark] .event-card:nth-child(3n+2) .event-icon {
  background:#3a3226;
  color:#c6ad86
}
:root[data-theme=dark] .event-card:nth-child(3n+3) .event-icon {
  background:#2e2f41;
  color:#b4aed5
}
:root[data-theme=dark] .gate {
  background:radial-gradient(ellipse at 25% 15%,var(--accent-soft),transparent 55%),var(--bg)
}
:root[data-theme=dark] .id-tags span {
  background:#39442f;
  color:#b0bca0
}
:root[data-theme=dark] .switch>span:not(.sr-only) {
  background:#4a5343
}
.theme-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.theme-options button {
  padding:11px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:11px;
  min-height:42px
}
.theme-options button.selected {
  border-color:var(--accent-border);
  color:var(--accent);
  background:var(--accent-soft)
}
.accent-options {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin:13px 0
}
.accent-choice {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  padding:10px 3px;
  border:1px solid transparent;
  border-radius:12px;
  font-size:10px
}
.accent-choice.selected {
  border-color:var(--accent-border);
  background:var(--accent-soft)
}
.color-swatch {
  width:30px;
  height:30px;
  background:var(--swatch);
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:50%;
  font-size:17px;
  box-shadow:inset 0 0 0 1px #ffffff16
}
.message-kind {
  width:100%;
  background:var(--bg);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px;
  font-size:12px;
  margin-bottom:14px
}
#messages-card {
  scroll-margin-top:20px
}
#message-template {
  font-size:14px;
  min-height:170px;
  line-height:1.8
}
#template-status {
  margin:8px 0;
  color:var(--accent)
}
#message-preview {
  cursor:text;
  border:1px solid transparent;
  transition:border-color .2s
}
#message-preview:hover {
  border-color:var(--accent-border)
}
.preview-column>.button {
  margin-bottom:9px
}
.preview-footer {
  line-height:1.5;
  white-space:normal
}
.calendar-grid {
  column-gap:3px;
  row-gap:5px;
  align-items:center
}
.day {
  width:100%;
  height:34px;
  aspect-ratio:auto;
  line-height:1;
  font-size:12px
}
.calendar-blank {
  height:34px;
  pointer-events:none
}
.weekday {
  font-size:10px;
  padding:4px 0 7px;
  line-height:1.4
}
.calendar-header {
  margin:12px 0 14px;
  gap:6px
}
.calendar-header h3 {
  display:flex;
  gap:5px;
  align-items:baseline;
  font-size:17px;
  white-space:nowrap
}
.calendar-header .year {
  margin:0
}
.calendar-controls {
  flex-shrink:0
}
.calendar-controls button {
  width:32px;
  height:32px
}
.calendar-legend {
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  align-items:center;
  margin-top:15px;
  padding-top:13px;
  font-size:10px;
  line-height:1.5
}
.calendar-legend .text-button {
  font-size:10px;
  white-space:normal;
  line-height:1.5
}
.full-calendar .day,.full-calendar .calendar-blank {
  height:52px
}
.editor-calendar .calendar-blank {
  height:34px
}
.mini-calendar-card {
  min-width:0
}
.calendar-column {
  min-width:0
}
.calendar-header h3 {
  letter-spacing:-.4px
}
@media(max-width:640px) {
  .theme-options button {
    font-size:10px;
    padding:10px 5px
  }
  .accent-choice {
    font-size:9px
  }
  .color-swatch {
    width:29px;
    height:29px
  }
  #message-template {
    font-size:16px
  }
  .day {
    height:38px
  }
  .calendar-blank {
    height:38px
  }
  .editor-calendar .day,.editor-calendar .calendar-blank {
    height:34px
  }
  .full-calendar .day,.full-calendar .calendar-blank {
    height:45px
  }
  .calendar-legend {
    gap:6px 14px
  }
  .calendar-header h3 {
    font-size:18px
  }
}
.gate {
  background:radial-gradient(ellipse at 25% 15%,var(--accent-soft),transparent 55%),var(--bg)
}
.event-description-section {
  margin:15px 0 20px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--bg)
}
.description-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px
}
.description-heading .field-label {
  margin:0 0 10px;
  font-size:11px
}
.optional-label {
  display:block;
  font-size:9px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px
}
.description-heading>.field-hint {
  font-size:10px;
  align-self:flex-start;
  white-space:nowrap
}
#event-description {
  font-size:13px;
  min-height:95px;
  line-height:1.7
}
.image-upload-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:10px 0
}
.image-upload-button {
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:9px 12px;
  border:1px dashed var(--accent-border);
  border-radius:9px;
  color:var(--accent);
  background:var(--surface);
  font-size:11px;
  cursor:pointer
}
.image-upload-button:hover {
  background:var(--accent-soft)
}
#event-images:focus-visible+.field-hint {
  outline:2px solid var(--accent)
}
.attachment-gallery {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:8px 0
}
.attachment-gallery:empty {
  display:none
}
.attachment-tile {
  position:relative;
  aspect-ratio:1;
  min-width:0;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface)
}
.attachment-tile>button:first-child {
  display:grid;
  place-items:center;
  padding:0;
  width:100%;
  height:100%
}
.attachment-tile img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
.attachment-placeholder {
  font-size:10px;
  color:var(--muted)
}
.attachment-remove {
  position:absolute;
  right:4px;
  top:4px;
  border-radius:50%;
  background:#20251cbb;
  color:#fff;
  width:24px;
  height:24px;
  padding:0;
  font-size:19px;
  line-height:24px;
  display:grid;
  place-items:center
}
.image-dialog {
  width:min(900px,calc(100vw - 24px));
  max-height:90dvh;
  background:var(--surface);
  border-radius:15px;
  padding:40px 10px 10px
}
.image-dialog>.icon-button {
  position:absolute;
  right:5px;
  top:0;
  width:36px;
  height:36px
}
.image-dialog img {
  display:block;
  max-width:100%;
  max-height:calc(90dvh - 55px);
  margin:auto;
  object-fit:contain
}
@media(max-width:640px) {
  #event-description {
    font-size:16px
  }
  .event-description-section {
    padding:12px
  }
  .attachment-gallery {
    gap:6px
  }
  .description-heading .field-label {
    font-size:10px
  }
}
/* Календарь всегда занимает ширину колонки, в том числе в мобильном flex-макете. */
.calendar-column {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:20px
}
.calendar-column>.mini-calendar-card {
  width:100%;
  min-width:0;
  align-self:stretch
}
.mini-calendar-card .calendar-header {
  gap:10px;
  margin-bottom:17px
}
.mini-calendar-card .calendar-header h3 {
  gap:8px;
  font-size:18px;
  letter-spacing:-.4px;
  line-height:1.4
}
.mini-calendar-card .calendar-header .year {
  font-size:16px;
  font-weight:400
}
.mini-calendar-card .calendar-grid {
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px 4px;
  justify-items:stretch
}
.mini-calendar-card .day,.mini-calendar-card .calendar-blank {
  width:100%;
  height:38px;
  min-height:38px;
  aspect-ratio:auto;
  border-radius:10px
}
.mini-calendar-card .weekday {
  font-size:11px;
  line-height:1.4;
  padding-bottom:7px;
  text-align:center
}
.mini-calendar-card .calendar-legend {
  gap:8px 14px;
  padding-top:15px;
  margin-top:15px
}
.color-swatch svg {
  width:16px;
  height:16px;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:5px
}
.chip.selected:before {
  content:none
}
.chip svg {
  width:12px;
  height:12px;
  stroke-width:1.7
}
.accent-choice {
  border-color:transparent!important;
  background:transparent!important
}
.accent-choice .color-swatch {
  outline:1px solid transparent;
  outline-offset:4px;
  transition:outline-color .18s
}
.accent-choice.selected .color-swatch {
  outline-color:var(--swatch)
}
.accent-choice.selected>span:last-child {
  color:var(--accent)
}
/* Собственная стрелка сохраняет одинаковый отступ в Telegram на разных платформах. */
.message-kind,.setting-row select {
  appearance:none;
  -webkit-appearance:none;
  padding-right:36px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%237f8878' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:14px 14px
}
:root[data-theme=dark] .message-kind,:root[data-theme=dark] .setting-row select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23b2bba9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}
.settings-grid {
  display:block;
  max-width:860px
}
.settings-savebar {
  position:fixed;
  left:calc(var(--sidebar) + (100% - var(--sidebar))/2);
  bottom:24px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:min(580px,calc(100% - var(--sidebar) - 48px));
  padding:12px 14px 12px 20px;
  background:var(--surface);
  border:1px solid var(--accent-border);
  border-radius:17px;
  box-shadow:0 8px 32px #0002;
  z-index:30;
  animation:savebar-in .22s ease both
}
.settings-savebar p {
  font-size:12px;
  font-weight:600;
  line-height:1.4
}
.settings-savebar p span {
  display:block;
  font-size:10px;
  color:var(--muted);
  font-weight:400;
  margin-top:3px
}
.settings-savebar .button {
  min-width:160px;
  gap:8px
}
.settings-savebar .button svg {
  width:17px;
  height:17px;
  stroke-width:1.7
}
body.settings-unsaved main {
  padding-bottom:108px
}
@keyframes savebar-in {
  from {
    opacity:0;
    translate:0 10px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@media(max-width:640px) {
  .settings-savebar {
    left:50%;
    bottom:calc(81px + env(safe-area-inset-bottom));
    width:calc(100% - 32px);
    gap:12px;
    padding:11px 12px 11px 15px;
    border-radius:15px
  }
  .settings-savebar p {
    font-size:11px
  }
  .settings-savebar p span {
    font-size:9px
  }
  .settings-savebar .button {
    min-width:133px;
    min-height:42px;
    padding:10px 15px;
    font-size:12px
  }
  body.settings-unsaved main {
    padding-bottom:180px
  }
  .mini-calendar-card .calendar-controls button {
    width:34px;
    height:34px
  }
}
.custom-select {
  display:inline-flex;
  min-width:0;
  max-width:100%;
  position:relative
}
.message-select {
  display:flex;
  width:100%;
  margin-bottom:14px
}
.select-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  width:100%;
  min-height:42px;
  padding:11px 14px;
  border-radius:11px;
  background:var(--bg);
  border:1px solid var(--line);
  text-align:left;
  font-size:12px;
  color:var(--ink);
  transition:border-color .18s,background .18s
}
.select-trigger:hover,.select-trigger[aria-expanded=true] {
  border-color:var(--accent-border);
  background:var(--accent-soft)
}
.select-value {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.select-trigger svg {
  width:15px;
  height:15px;
  color:var(--muted);
  transition:rotate .18s
}
.select-trigger[aria-expanded=true] svg {
  rotate:180deg
}
.select-dialog {
  position:fixed;
  margin:0;
  padding:6px;
  background:var(--surface);
  border:1px solid var(--accent-border);
  border-radius:14px;
  box-shadow:0 14px 42px #0003;
  max-width:calc(100vw - 28px);
  overflow:auto;
  animation:enter .13s ease
}
.select-dialog::backdrop {
  background:#00000013;
  backdrop-filter:none
}
.select-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:12px;
  border-radius:9px;
  width:100%;
  text-align:left;
  font-size:12px;
  min-height:43px
}
.select-option svg {
  height:15px;
  width:15px;
  color:var(--accent);
  stroke-width:1.7
}
.select-option:hover,.select-option:focus-visible {
  background:var(--bg);
  outline:none
}
.select-option[aria-selected=true] {
  background:var(--accent-soft);
  color:var(--accent)
}
.setting-row>.custom-select {
  max-width:180px;
  flex-shrink:0
}
.setting-row .select-trigger {
  font-size:11px;
  min-height:37px;
  padding:9px 12px
}
.schedule-layout {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);
  gap:24px
}
.schedule-layout .section-heading {
  margin-top:0
}
.schedule-layout input[type=date] {
  max-width:165px;
  font-size:12px
}
#schedule-day-events {
  margin:17px 0
}
.schedule-day-card {
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:15px;
  padding:15px
}
.schedule-day-open {
  flex:1;
  min-width:0;
  text-align:left;
  padding:0
}
.schedule-day-open strong,.schedule-day-open>.field-hint {
  display:block;
  overflow-wrap:anywhere
}
.schedule-time {
  display:block;
  font-size:12px;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
  margin-bottom:5px
}
.schedule-day-open strong {
  font-size:13px;
  font-weight:600
}
.schedule-notify {
  color:var(--muted);
  background:var(--bg);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:10px;
  flex-shrink:0
}
.schedule-notify.enabled {
  color:var(--accent);
  background:var(--accent-soft)
}
.schedule-notify svg {
  width:18px;
  height:18px
}
.schedule-card {
  padding:20px
}
.schedule-card>h3 {
  overflow-wrap:anywhere
}
.schedule-card .field-hint {
  margin-top:6px
}
.schedule-card-actions {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:15px
}
.schedule-card-actions .button {
  min-height:37px;
  padding:9px 12px;
  font-size:11px
}
.schedule-help {
  margin-top:18px
}
.schedule-sheet {
  width:min(620px,calc(100% - 24px))
}
#schedule-title {
  width:100%
}
.weekday-tabs {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px;
  margin:18px 0
}
.weekday-tabs>button {
  height:38px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--bg);
  font-size:11px;
  position:relative
}
.weekday-tabs>button.selected {
  background:var(--accent-soft);
  border-color:var(--accent-border);
  color:var(--accent)
}
.weekday-tabs i {
  position:absolute;
  bottom:4px;
  left:calc(50% - 1px);
  width:2px;
  height:2px;
  border-radius:50%;
  background:var(--accent)
}
.schedule-item {
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:14px;
  padding:15px;
  margin-bottom:13px
}
.schedule-item-heading {
  display:flex;
  gap:7px;
  align-items:center
}
.schedule-item-heading input {
  width:100%;
  font-size:13px
}
.schedule-times {
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0
}
.schedule-times label {
  font-size:10px;
  color:var(--muted);
  flex:1;
  min-width:0
}
.schedule-times input {
  display:block;
  width:100%;
  font-size:15px;
  margin-top:5px;
  font-variant-numeric:tabular-nums
}
.schedule-item .setting-row {
  font-size:11px;
  padding:11px 0
}
.schedule-item .field-label input {
  display:block;
  width:100%;
  margin-top:7px;
  font-size:12px
}
.muted-options {
  opacity:.45
}
.copy-day-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:16px 0
}
.apply-dialog {
  text-align:left;
  max-height:85dvh;
  overflow:auto
}
.apply-dialog input {
  width:100%;
  font-size:13px
}
.apply-dialog .confirm-actions {
  margin-top:20px
}
.apply-dialog .field-hint {
  font-size:11px
}
.apply-dialog>form>p {
  margin:12px 0
}
#event-end {
  width:100%;
  font-size:14px
}
@media(max-width:850px) {
  .schedule-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .schedule-layout aside {
    margin-top:10px
  }
}
@media(max-width:640px) {
  .nav-item {
    padding:7px 4px;
    font-size:8px
  }
  .schedule-sheet {
    width:100%;
    margin:auto 0 0
  }
  .schedule-item {
    padding:12px
  }
  .schedule-item input {
    font-size:16px
  }
  .schedule-times {
    gap:8px
  }
  .schedule-times input {
    padding:10px
  }
  .schedule-card-actions .button {
    font-size:10px
  }
  .select-trigger {
    font-size:12px
  }
  .setting-row>.custom-select {
    max-width:154px
  }
  .setting-row .select-trigger {
    font-size:11px
  }
  .select-option {
    font-size:13px;
    min-height:47px
  }
}
/* Более спокойные поверхности и короткие, ненавязчивые переходы. */
:root {
  --line:rgba(40,48,35,.075);
  --shadow:0 7px 28px rgba(30,38,24,.025);
  --ease-soft:cubic-bezier(.22,.68,.25,1)
}
:root[data-accent] {
  --accent-soft:color-mix(in srgb,var(--accent) 8%,var(--surface));
  --accent-border:color-mix(in srgb,var(--accent) 23%,var(--line));
  --focus-ring:color-mix(in srgb,var(--accent) 40%,transparent);
  --accent-shadow:color-mix(in srgb,var(--accent) 10%,transparent)
}
:root[data-theme=dark] {
  --line:rgba(220,232,209,.065);
  --shadow:0 7px 28px rgba(0,0,0,.08)
}
.card,.event-card,.schedule-day-card,.schedule-item,.user-card,.editor-calendar,.event-description-section {
  border-color:transparent
}
.card,.event-card,.schedule-day-card,.user-card {
  box-shadow:var(--shadow)
}
.quiet-card,:root[data-theme=dark] .quiet-card {
  border-color:transparent;
  box-shadow:none
}
.event-description-section,.schedule-item {
  background:color-mix(in srgb,var(--surface) 58%,var(--bg))
}
.style-options button,.theme-options button,.weekday-tabs>button,.chip {
  border-color:var(--line);
  transition:background .26s var(--ease-soft),border-color .26s,color .26s,box-shadow .26s
}
.style-options button.selected,.theme-options button.selected,.weekday-tabs>button.selected,.chip.selected {
  border-color:transparent;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 12%,transparent)
}
.select-trigger {
  border-color:transparent;
  box-shadow:inset 0 0 0 1px var(--line);
  transition:background .26s var(--ease-soft),box-shadow .26s,border-color .26s
}
.select-trigger:hover,.select-trigger[aria-expanded=true] {
  border-color:transparent;
  box-shadow:inset 0 0 0 1px var(--accent-border)
}
input:not([type=checkbox]),textarea {
  border-color:var(--line);
  transition:border-color .26s,box-shadow .26s,background .26s
}
:is(button,a,input,textarea,select,.wheel):focus-visible {
  outline-width:2px;
  outline-offset:3px
}
.button,.icon-button,.nav-item,.event-card,.schedule-notify,.select-option,.time-shortcuts button {
  transition:background .26s var(--ease-soft),color .26s,border-color .26s,box-shadow .26s,transform .26s var(--ease-soft)
}
.button:hover {
  transform:translateY(-1px)
}
.button:active {
  transform:scale(.985)
}
.event-card:hover {
  transform:translateX(1px);
  border-color:transparent;
  box-shadow:0 5px 20px rgba(30,38,24,.045)
}
.button.primary {
  box-shadow:0 3px 12px var(--accent-shadow)
}
.button.primary:hover {
  box-shadow:0 5px 18px var(--accent-shadow)
}
.nav-item.active {
  background:color-mix(in srgb,var(--accent) 7%,var(--surface))
}
.day {
  transition:background .24s var(--ease-soft),color .24s,box-shadow .24s,transform .24s var(--ease-soft)
}
.day:hover:not(:disabled) {
  transform:scale(1.025)
}
.day.selected {
  box-shadow:0 3px 10px var(--accent-shadow)
}
.accent-choice .color-swatch {
  outline-color:transparent;
  transition:transform .25s var(--ease-soft),outline-color .25s,box-shadow .25s
}
.accent-choice:hover .color-swatch {
  transform:translateY(-1px)
}
.accent-choice.selected .color-swatch {
  outline-color:color-mix(in srgb,var(--swatch) 35%,transparent)
}
.color-swatch svg {
  animation:check-appear .2s var(--ease-soft)
}
.switch>span:not(.sr-only) {
  transition:background .28s var(--ease-soft)
}
.switch>span:not(.sr-only):before {
  transition:transform .28s var(--ease-soft),box-shadow .28s
}
.view {
  animation:view-appear .36s var(--ease-soft) both
}
.event-card {
  animation:row-appear .3s var(--ease-soft) both
}
.event-card:nth-child(2) {
  animation-delay:25ms
}
.event-card:nth-child(3) {
  animation-delay:50ms
}
.event-card:nth-child(4) {
  animation-delay:75ms
}
.select-dialog {
  border-color:var(--line);
  box-shadow:0 12px 38px rgba(0,0,0,.14);
  animation:menu-appear .2s var(--ease-soft) both
}
dialog.sheet[open],dialog.confirm-dialog[open] {
  animation:sheet-soft .3s var(--ease-soft) both
}
dialog::backdrop {
  background:rgba(25,32,25,.28);
  backdrop-filter:blur(4px)
}
.settings-savebar {
  border-color:var(--line);
  box-shadow:0 8px 30px rgba(0,0,0,.1);
  animation:savebar-in .3s var(--ease-soft) both
}
.toast {
  transition:opacity .28s var(--ease-soft),transform .28s var(--ease-soft)
}
* {
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--muted) 25%,transparent) transparent
}
.wheel {
  scrollbar-width:none
}
@keyframes view-appear {
  from {
    opacity:0;
    translate:0 5px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@keyframes row-appear {
  from {
    opacity:0;
    translate:0 4px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@keyframes menu-appear {
  from {
    opacity:0;
    translate:0 -4px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@keyframes sheet-soft {
  from {
    opacity:0;
    translate:0 16px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@keyframes check-appear {
  from {
    opacity:0;
    transform:scale(.8)
  }
  to {
    opacity:1;
    transform:scale(1)
  }
}
