:root {
  --paper: #f6f5ef;
  --surface: #fffefa;
  --green: #284d43;
  --sage: #497c72;
  --ink: #253c34;
  --muted: #788078;
  --line: #e4e7de;
  --peach: #bc785c;
  --radius: 18px;
  --shadow: 0 18px 70px #23392c14;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #d0a56e;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8aa999;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -0.04em;
}
p {
  line-height: 1.65;
}
h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 9px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
}
small {
  line-height: 1.7;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.7;
}
.primary,
.secondary,
.subtle-btn {
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #366353;
}
.secondary {
  background: #e9eee5;
  color: var(--green);
}
.subtle-btn {
  border: 1px solid var(--line);
  padding: 7px 12px;
  min-height: 32px;
  background: var(--surface);
}
.text-btn {
  font-size: 12px;
  padding: 8px 0;
  color: var(--green);
  font-weight: 550;
  text-align: left;
}
.icon-btn {
  min-width: 34px;
  min-height: 36px;
  font-size: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}
.icon-btn:hover {
  background: #ebeee5;
}
.danger {
  color: #a0473c;
}
.wide {
  width: 100%;
  justify-content: space-between;
}
.muted {
  color: var(--muted);
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 37px 23px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  z-index: 10;
}
.brand {
  font-size: 35px;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
}
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1;
  font-size: 46px;
  color: var(--green);
  width: 34px;
  height: 40px;
  border: 1px solid var(--green);
  border-radius: 55% 45% 50% 40%;
  transform: rotate(-12deg);
  padding: 0 6px 6px 0;
}
.workspace-label {
  font-size: 9px;
  color: #8b9186;
  letter-spacing: 0.13em;
  margin: 49px 10px 14px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  border-radius: 9px;
  color: #687569;
  width: 100%;
}
.nav-item > span {
  font-size: 21px;
  line-height: 18px;
}
.nav-item.active {
  color: var(--green);
  background: #e5eade;
  font-weight: 600;
}
.sidebar-note {
  margin: auto 9px 38px;
  padding-top: 40px;
}
.flower {
  font-size: 48px;
  color: #bcc6ac;
  display: block;
  margin-bottom: 16px;
}
.sidebar-note h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.settings-nav {
  margin-bottom: 20px;
}
.profile {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e1e7d9;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 9px;
}
.profile .icon-btn {
  margin-left: auto;
  font-size: 18px;
}
.main {
  margin-left: 224px;
  padding: 40px 42px 20px;
  max-width: 1800px;
  width: calc(100% - 224px);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.topbar .eyebrow {
  margin-bottom: 9px;
}
.topbar p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.overview {
  display: flex;
  min-height: 154px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: #eaf0e3;
  border: 1px solid #e0e8d7;
  margin-bottom: 28px;
  gap: 24px;
  align-items: center;
}
.overview-date {
  width: 84px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid #d3decb;
  padding-right: 24px;
}
.overview-date strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 400;
}
.overview-date > span:last-child {
  font-size: 11px;
  color: #6c806c;
}
.next-event {
  flex: 1;
}
.next-event .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.next-event h2 {
  font-size: 18px;
  margin-bottom: 7px;
  letter-spacing: -0.03em;
}
.next-event p {
  font-size: 11px;
  color: #6f7f6d;
  margin-bottom: 0;
}
.next-event .text-btn {
  padding-bottom: 0;
  font-size: 11px;
}
.common-preview {
  border-left: 1px solid #d3decb;
  padding-left: 24px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 300px;
}
.common-icon {
  font-size: 25px;
}
.common-preview strong {
  font-size: 12px;
  font-weight: 550;
}
.common-preview p {
  font-size: 11px;
  color: #6f7f6d;
  margin: 6px 0 2px;
}
.common-preview .text-btn {
  font-size: 10px;
}
.calendar-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-toolbar {
  padding: 24px 24px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.month-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.month-control h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 16px 0 0;
  min-width: 180px;
  text-transform: capitalize;
}
.month-control .icon-btn {
  font-size: 23px;
  min-width: 27px;
}
.month-control .subtle-btn {
  margin-left: 8px;
}
.view-switch {
  padding: 4px;
  background: #f0f1eb;
  border-radius: 9px;
  display: flex;
}
.view-switch button {
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 6px;
  color: var(--muted);
  min-height: 32px;
}
.view-switch button.selected {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 4px #26332212;
}
.filters {
  padding: 0 24px 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 7px;
}
.filter-chip {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  min-height: 31px;
}
.filter-chip.active {
  background: #f0f3eb;
  border-color: #b4c3a6;
  color: var(--green);
}
.dot,
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.filters select {
  border: 0;
  background: transparent;
  padding: 6px 20px 6px 8px;
  max-width: 210px;
  font-size: 11px;
  color: var(--muted);
  min-height: 32px;
}
.filters > .text-btn {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekday {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  color: #8c9388;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.day {
  min-height: 116px;
  border-right: 1px solid #eaece4;
  border-bottom: 1px solid #eaece4;
  position: relative;
  padding: 9px 7px 19px;
  cursor: pointer;
  outline-offset: -3px;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day:hover {
  background: #f9faf5;
}
.day.outside {
  background: #f8f8f2;
}
.day.outside .day-number {
  color: #b6bcb1;
}
.day-number {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 11px;
  margin: 0 0 5px 4px;
  border-radius: 50%;
}
.day.is-today .day-number {
  background: var(--green);
  color: white;
}
.day.is-today {
  background: #fbfcf6;
}
.event-pill {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 7px;
  border-radius: 5px;
  background: #eaf0e6;
  border-left: 2px solid var(--sage);
  margin-bottom: 4px;
  color: #355b50;
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
}
.event-pill:hover {
  filter: brightness(0.97);
}
.event-pill time {
  display: block;
  font-size: 9px;
  opacity: 0.7;
  margin-bottom: 1px;
}
.event-pill strong {
  font-weight: 550;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-pill.joint {
  background: #edf0e3;
  border-left-color: #93a66c;
  color: #566142;
}
.event-pill.has-conflict {
  border-left-color: #b75c49;
  background: #fbede4;
  color: #9d4f38;
}
.joint-symbol {
  font-size: 9px;
  opacity: 0.8;
}
.availability-dots {
  position: absolute;
  bottom: 7px;
  left: 12px;
  display: flex;
  gap: 4px;
}
.availability-dots i {
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #d7dbd1;
}
.availability-dots i.free {
  background: var(--person-color, var(--sage));
}
.more-events {
  font-size: 9px;
  color: var(--muted);
  padding: 2px 6px;
}
.calendar-foot {
  padding: 15px 23px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 9px;
  color: #8d9588;
  line-height: 1.5;
}
.calendar-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tiny-dot.available {
  background: #9aa888;
}
.tiny-dot.conflict {
  background: #c57a5e;
}
.calendar-hint {
  margin-left: auto;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  color: #92998e;
  font-size: 10px;
  padding: 20px 0;
}
.mobile-nav {
  display: none;
}
.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow: auto;
}
.section-tabs button {
  padding: 10px 15px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  border-radius: 8px;
}
.section-tabs .selected {
  background: #e5eade;
  color: var(--green);
}
.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 10px;
}
.card p {
  font-size: 12px;
  color: var(--muted);
}
.card .eyebrow {
  margin-bottom: 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-grid,
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.place-card {
  position: relative;
  padding-top: 32px;
}
.place-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  right: 25px;
  height: 4px;
  background: var(--place-color);
  border-radius: 0 0 3px 3px;
}
.place-card .place-icon {
  font-size: 35px;
  display: block;
  margin-bottom: 20px;
  color: var(--place-color);
}
.place-card .text-btn {
  margin-top: 14px;
}
.common-controls {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.common-controls label {
  max-width: 250px;
  margin: 0;
}
.common-days {
  display: grid;
  gap: 14px;
}
.common-day {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.common-day h3 {
  width: 110px;
  flex-shrink: 0;
  margin: 0;
  text-transform: capitalize;
  font-size: 13px;
}
.slot-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.slot-button {
  background: #e8f0e2;
  color: var(--green);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11px;
  min-height: 36px;
}
.common-day p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.weekly-day {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.weekly-day > strong {
  width: 90px;
  font-size: 12px;
  padding-top: 12px;
  flex-shrink: 0;
}
.weekly-slots {
  display: grid;
  gap: 8px;
  flex: 1;
}
.weekly-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weekly-slot input {
  max-width: 145px;
}
.weekly-day .text-btn {
  padding: 10px;
  font-size: 11px;
}
.weekly-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 15px;
}
.exception-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.exception-row p {
  margin: 5px 0;
  font-size: 12px;
}
.exception-row strong {
  font-size: 13px;
}
.agenda-list {
  min-height: 350px;
  padding: 8px 24px 25px;
}
.agenda-day {
  padding: 20px 0 12px;
  border-top: 1px solid var(--line);
}
.agenda-day h3 {
  font-size: 12px;
  font-weight: 550;
  text-transform: capitalize;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 16px;
}
.agenda-event {
  width: 100%;
  display: flex;
  gap: 20px;
  text-align: left;
  align-items: center;
  margin: 6px 0;
  padding: 16px;
  background: #f2f5ec;
  border-radius: 10px;
  border-left: 3px solid var(--person-color, var(--sage));
}
.agenda-event time {
  font-size: 11px;
  color: var(--muted);
  width: 70px;
  flex-shrink: 0;
}
.agenda-event strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.agenda-event small {
  font-size: 10px;
}
.agenda-event .joint-symbol {
  margin-left: auto;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 12px;
}
.empty-state span {
  font-size: 45px;
  display: block;
  color: #b1bda4;
  margin-bottom: 15px;
}
.week-scroll {
  overflow: auto;
  max-height: 650px;
}
.week-grid {
  display: grid;
  grid-template-columns: 50px repeat(7, minmax(95px, 1fr));
  min-width: 730px;
}
.week-head {
  z-index: 2;
  padding: 12px 5px;
  text-align: center;
  background: #f8f9f3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  position: sticky;
  top: 0;
}
.week-head b {
  font-size: 17px;
  display: block;
  font-weight: 450;
  margin-top: 6px;
}
.week-head.is-today b {
  color: var(--sage);
  font-weight: 700;
}
.week-time {
  font-size: 9px;
  color: var(--muted);
  padding: 7px 4px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}
.week-cell {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 58px;
  padding: 3px;
  cursor: pointer;
  position: relative;
}
.week-cell:hover {
  background: #f0f3e9;
}
.week-cell .event-pill {
  position: relative;
  z-index: 1;
}
.week-cell .availability-dots {
  bottom: 3px;
  left: 4px;
}
.login-page {
  display: flex;
  min-height: 100dvh;
}
.login-art {
  width: 50%;
  padding: 48px 70px;
  background: #e6ecd9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 500px;
  height: 500px;
  border: 1px solid #bdcaaa;
  border-radius: 50%;
  position: absolute;
  right: -280px;
  top: 200px;
  pointer-events: none;
}
.login-art h1 {
  font-size: 76px;
  line-height: 1.05;
  margin: 20px 0 30px;
}
.login-art p {
  font-size: 15px;
  color: #6b7d64;
}
.art-footer {
  font-size: 11px;
  color: #6b7d64;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.art-footer > span {
  font-size: 40px;
}
.login-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.login-content form {
  width: 100%;
  max-width: 340px;
}
.login-content h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  margin: 16px 0;
}
.login-content p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-content .primary {
  margin: 10px 0 24px;
}
.login-content small {
  font-size: 10px;
  display: block;
  text-align: center;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 17px 0;
  color: var(--ink);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe4d8;
  background: var(--surface);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
  margin-top: 8px;
}
textarea {
  resize: vertical;
}
input[type="color"] {
  width: 60px;
  padding: 4px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--green);
  display: inline-block;
  margin: 0;
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.two-col label {
  min-width: 0;
}
.two-col input {
  min-width: 0;
}
dialog {
  width: min(540px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 28px;
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #182d255e;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  margin: 7px 0 0;
}
.dialog-heading .eyebrow {
  font-size: 9px;
}
.dialog-heading .icon-btn {
  margin-top: -8px;
  margin-right: -10px;
  color: var(--muted);
  font-size: 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dialog-actions > .danger {
  margin-right: auto;
}
.participant-picker {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.participant-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 12px;
}
.participant-picker label:has(input:checked) {
  background: #e9eee3;
  border-color: #9eaf8f;
}
.participant-picker input {
  width: 14px;
  height: 14px;
  min-height: 14px;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 17px;
}
summary {
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
  padding: 5px 0;
}
summary > span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 12px;
}
.export-links {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.export-links .secondary {
  font-size: 11px;
}
.form-error {
  color: #a0473c;
  font-size: 12px;
  line-height: 1.6;
  margin: 15px 0;
}
.form-error:empty {
  display: none;
}
.warning {
  background: #fbecdf;
  color: #94543c;
  padding: 14px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 23px;
  background: var(--green);
  color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 12px;
  max-width: calc(100% - 35px);
  line-height: 1.5;
}
.connection {
  position: sticky;
  top: 0;
  background: #a84f3b;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  z-index: 200;
}
.install-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  background: #edf2e6;
  border-radius: 13px;
  padding: 28px;
  margin-bottom: 22px;
}
.install-illustration .brand-symbol {
  transform: scale(1.25) rotate(-12deg);
}
.phone-symbol {
  font-size: 75px;
  line-height: 1;
  color: #718967;
}
#install-instructions p,
#install-instructions li {
  font-size: 13px;
  line-height: 1.8;
}
#install-dialog > .text-btn {
  margin-top: 15px;
}
#affected-list .card {
  margin: 10px 0;
  padding: 15px;
}
#affected-list h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
#affected-list p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.weekly-rule-select {
  margin-bottom: 22px;
}
.common-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 25px;
  font-size: 11px;
  color: var(--muted);
}
.common-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.individual-availability {
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
@media (min-width: 1500px) {
  .day {
    min-height: 145px;
  }
  .main {
    padding: 45px 55px;
  }
  .overview {
    margin-bottom: 32px;
  }
  .calendar-panel {
    max-width: 1500px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding: 30px 16px 18px;
  }
  .main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 30px 24px;
  }
  .common-preview {
    display: none;
  }
  .overview-date {
    width: 80px;
  }
  .month-control h2 {
    min-width: 150px;
    font-size: 23px;
  }
  .calendar-toolbar {
    padding: 18px 16px;
  }
  .filters {
    padding: 0 16px 15px;
  }
  .view-switch button {
    padding: 7px 10px;
  }
  .day {
    min-height: 110px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .calendar-foot {
    padding: 13px 16px;
    gap: 13px;
  }
  .calendar-hint {
    display: none;
  }
  .topbar h1 {
    font-size: 36px;
  }
  .topbar .primary {
    padding: 10px 13px;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 26px 17px 100px;
  }
  .topbar {
    margin-bottom: 23px;
    align-items: flex-start;
    gap: 8px;
  }
  .topbar .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .topbar h1 {
    font-size: 32px;
    white-space: nowrap;
  }
  .topbar p {
    font-size: 11px;
    max-width: 235px;
  }
  .topbar .primary {
    font-size: 0;
    padding: 0;
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 50%;
    margin-top: 22px;
  }
  .topbar .primary span {
    font-size: 25px;
  }
  .overview {
    padding: 18px 16px;
    min-height: 137px;
    gap: 16px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .overview-date {
    width: 64px;
    padding-right: 16px;
  }
  .overview-date strong {
    font-size: 44px;
  }
  .overview-date .eyebrow {
    font-size: 8px;
  }
  .overview-date > span:last-child {
    font-size: 10px;
  }
  .next-event .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
  }
  .next-event h2 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
  }
  .next-event p {
    font-size: 10px;
  }
  .next-event .text-btn {
    font-size: 10px;
  }
  .calendar-panel {
    border-radius: 13px;
  }
  .calendar-toolbar {
    padding: 17px 12px 13px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .month-control {
    width: 100%;
    gap: 2px;
  }
  .month-control h2 {
    font-size: 23px;
    min-width: 0;
    flex: 1;
    margin: 0 8px 0 0;
  }
  .month-control .icon-btn {
    min-height: 32px;
    min-width: 29px;
  }
  .month-control .subtle-btn {
    font-size: 10px;
    min-height: 28px;
    padding: 5px 10px;
    margin-left: 7px;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
    min-height: 33px;
    font-size: 11px;
  }
  .filters {
    padding: 0 12px 12px;
    gap: 7px;
  }
  .chips {
    gap: 5px;
  }
  .filter-chip {
    font-size: 10px;
    padding: 7px 9px;
  }
  .filters select {
    font-size: 10px;
    max-width: 140px;
    padding-left: 0;
    margin-left: auto;
  }
  .filters > .text-btn {
    width: 100%;
    margin-left: 0;
    font-size: 10px;
    text-align: right;
    padding: 5px 0;
  }
  .weekday {
    font-size: 8px;
    padding: 10px 0;
    text-align: center;
    letter-spacing: 0;
  }
  .day {
    min-height: 99px;
    padding: 5px 2px 17px;
  }
  .day-number {
    font-size: 10px;
    width: 22px;
    height: 22px;
    margin: 0 0 3px 3px;
  }
  .event-pill {
    padding: 4px 3px;
    border-left-width: 2px;
    font-size: 8px;
    min-height: 29px;
    margin-bottom: 3px;
  }
  .event-pill time {
    font-size: 8px;
  }
  .event-pill strong {
    font-size: 8px;
  }
  .joint-symbol {
    font-size: 8px;
  }
  .availability-dots {
    left: 6px;
    bottom: 6px;
    gap: 3px;
  }
  .availability-dots i {
    width: 10px;
    height: 3px;
  }
  .more-events {
    font-size: 8px;
    padding: 1px 3px;
  }
  .calendar-foot {
    padding: 12px 10px;
    font-size: 8px;
    gap: 12px;
    justify-content: space-between;
  }
  .tiny-dot {
    width: 5px;
    height: 5px;
  }
  .bottom-note {
    font-size: 8px;
    gap: 10px;
    padding: 16px 0;
    line-height: 1.7;
  }
  .bottom-note span:last-child {
    max-width: 140px;
    text-align: right;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
    padding: 10px 10px max(12px, env(safe-area-inset-bottom));
    background: #f9faf4f5;
    backdrop-filter: blur(14px);
    z-index: 15;
    justify-content: space-around;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #90988b;
    font-size: 22px;
    min-width: 67px;
    min-height: 42px;
  }
  .mobile-nav button span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .mobile-nav button.active {
    color: var(--green);
  }
  .toast {
    bottom: 90px;
    font-size: 12px;
    width: max-content;
    text-align: center;
  }
  .section-tabs {
    gap: 3px;
    margin-bottom: 20px;
  }
  .section-tabs button {
    padding: 10px 9px;
    font-size: 10px;
  }
  .settings-grid,
  .places-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .card {
    padding: 21px;
  }
  .card h2 {
    font-size: 24px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading p {
    font-size: 11px;
  }
  .section-heading .secondary {
    font-size: 11px;
    padding: 10px;
  }
  .common-controls {
    gap: 10px;
  }
  .common-controls label {
    font-size: 11px;
  }
  .common-day {
    padding: 16px 13px;
    display: block;
  }
  .common-day h3 {
    margin-bottom: 12px;
    width: 100%;
  }
  .common-day p {
    font-size: 11px;
  }
  .slot-button {
    font-size: 11px;
  }
  .weekly-day {
    gap: 6px;
    flex-wrap: wrap;
  }
  .weekly-day > strong {
    width: 100%;
    padding: 0;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .weekly-slot {
    gap: 6px;
  }
  .weekly-slot input {
    padding: 8px;
    max-width: 125px;
    min-height: 40px;
    font-size: 16px;
  }
  .weekly-day > .text-btn {
    padding: 10px 5px;
    font-size: 10px;
  }
  .weekly-actions {
    flex-wrap: wrap;
  }
  .agenda-list {
    padding: 5px 12px 18px;
    min-height: 300px;
  }
  .agenda-event {
    padding: 12px;
    gap: 10px;
  }
  .agenda-event time {
    font-size: 10px;
    width: 52px;
  }
  .agenda-event strong {
    font-size: 12px;
  }
  .agenda-event small {
    font-size: 9px;
  }
  .login-page {
    display: block;
  }
  .login-art {
    width: 100%;
    min-height: 275px;
    padding: 27px 28px;
  }
  .login-art .brand {
    font-size: 29px;
  }
  .login-art .brand-symbol {
    width: 27px;
    height: 32px;
    font-size: 36px;
  }
  .login-art h1 {
    font-size: 42px;
    margin: 18px 0 12px;
    line-height: 1.03;
  }
  .login-art h1 br:last-child {
    display: none;
  }
  .login-art > .brand {
    margin-bottom: 27px;
  }
  .login-art > div > .eyebrow {
    font-size: 8px;
  }
  .login-art p,
  .art-footer {
    display: none;
  }
  .login-art:after {
    width: 280px;
    height: 280px;
    right: -120px;
    top: 60px;
  }
  .login-content {
    padding: 36px 28px;
  }
  .login-content form {
    max-width: 420px;
  }
  .login-content h2 {
    font-size: 30px;
  }
  .login-content .eyebrow {
    font-size: 9px;
  }
  .login-content p {
    margin-bottom: 25px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  dialog {
    padding: 23px 20px;
    width: calc(100% - 20px);
    border-radius: 19px;
    max-height: calc(100dvh - 30px);
  }
  .dialog-heading h2 {
    font-size: 26px;
  }
  .two-col {
    gap: 10px;
  }
  .two-col label {
    font-size: 11px;
  }
  .two-col input {
    padding: 9px 6px;
    font-size: 13px;
    min-height: 44px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions .primary,
  .dialog-actions .secondary {
    font-size: 11px;
    padding: 12px;
  }
  .dialog-heading {
    margin-bottom: 18px;
  }
  .export-links {
    flex-direction: column;
  }
  .participant-picker label {
    font-size: 11px;
  }
  .exception-row {
    align-items: flex-start;
  }
  .exception-row p {
    font-size: 11px;
  }
  .connection {
    font-size: 11px;
    padding: 8px;
  }
  .common-legend {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: enter 0.18s ease-out;
  }
  .toast {
    animation: enter 0.2s ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0;
      margin-top: 15px;
    }
    to {
      opacity: 1;
    }
  }
}

@media (max-width: 1150px) {
  .calendar-foot .calendar-hint {
    display: none;
  }
}
