@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --paper: #f8f8f3;
  --ink: #273d33;
  --muted: #81877d;
  --forest: #2d543f;
  --line: #e3e6dc;
  --accent: #eac6a8;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #edf0e7;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button.primary {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
button.primary:hover {
  background: #1d3f2d;
}
a {
  color: var(--forest);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
}
h1 {
  font-size: 38px;
  letter-spacing: -1.7px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
small {
  display: block;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  border-right: 1px solid var(--line);
  padding: 34px 20px;
  background: #f0f2e9;
  display: flex;
  flex-direction: column;
}
.brand {
  font-family: var(--display);
  font-size: 31px;
  letter-spacing: -2px;
  text-decoration: none;
  font-weight: 800;
  margin-left: 13px;
}
.brand-flower {
  color: #708563;
  display: inline-block;
  font-size: 30px;
  vertical-align: -2px;
  letter-spacing: -4px;
}
.brand-dot {
  color: #b38c65;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.65px;
  margin: 35px 14px 15px;
  color: #8c9384;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-size: 13px;
  padding: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.nav-item > span {
  font-size: 20px;
  width: 20px;
}
.nav-item.active {
  background: #dfe7d5;
  color: #244b34;
  font-weight: 700;
}
.nav-item b {
  margin-left: auto;
  background: #fff8eb;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
}
.sidebar-note {
  margin: auto 12px 35px;
  padding-top: 30px;
}
.plant {
  font-size: 78px;
  color: #9daa8b;
  line-height: 1.2;
}
.sidebar-note h3 {
  font-weight: 500;
  line-height: 1.5;
  font-size: 20px;
  letter-spacing: -0.6px;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 4px 0;
}
.avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dddcca;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.account strong {
  font-size: 11px;
}
.account small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
main {
  margin-left: 228px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.topbar > div {
  letter-spacing: 0;
  font-size: 11px;
  color: var(--muted);
}
.demo-dot {
  display: inline-block;
  background: #a7b893;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.content {
  padding: 36px 38px 16px;
  min-height: calc(100vh - 127px);
  animation: appear 0.35s ease;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 31px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #819071;
  font-weight: 700;
  margin-bottom: 13px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-nav h2 {
  font-size: 17px;
  margin: 0 10px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.small {
  font-size: 11px;
  padding: 8px 11px;
}
.icon-button {
  padding: 6px;
  width: 32px;
  height: 32px;
  font-size: 21px;
  font-weight: 400;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  background: #f0f1eb;
  padding: 3px;
  border-radius: 8px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 15px;
  font-size: 11px;
}
.segmented .selected,
.selected {
  background: #e0e9d8;
  border-color: #9db391;
}
.calendar-shell {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: #fffefa;
}
.calendar-days {
  display: grid;
  grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  height: 77px;
}
.timezone {
  font-size: 8px;
  align-self: end;
  text-align: center;
  padding: 0 4px 10px;
  color: #8b9285;
  overflow-wrap: anywhere;
}
.day-label {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  padding: 10px;
}
.day-label span {
  display: block;
  font-size: 10px;
  color: #8a9083;
  font-weight: 400;
}
.day-label strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 19px;
  font-weight: 500;
  margin-top: 5px;
}
.day-label.today strong {
  background: var(--forest);
  color: white;
  border-radius: 50%;
}
.calendar-scroll {
  height: 530px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #dce1d3 transparent;
}
.time-grid {
  display: grid;
  grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr));
  height: 1536px;
  position: relative;
}
.time-axis {
  position: relative;
}
.time-axis span {
  position: absolute;
  right: 11px;
  font-size: 9px;
  color: #969b91;
  transform: translateY(5px);
}
.day-column {
  position: relative;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 63px,
    #eceee6 63px,
    #eceee6 64px
  );
}
.today-column {
  background-color: #f7f9f0;
}
.event {
  position: absolute;
  left: 4px;
  width: calc(100% - 8px);
  padding: 7px 8px;
  border-radius: 6px;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #dce3c9;
  border-left: 3px solid #91a16d;
  background: #eaf0dc;
  box-shadow: none;
  min-height: 30px;
}
.event:hover {
  filter: brightness(0.97);
  background: #eaf0dc;
}
.event strong {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}
.event-time {
  font-size: 9px;
  white-space: nowrap;
  opacity: 0.8;
}
.event-meta {
  font-size: 8px;
  opacity: 0.7;
  margin-top: auto;
}
.color-1 {
  background: #f3e9dd;
  border-color: #ddc6af;
}
.color-2 {
  background: #e0e9eb;
  border-color: #a1b8bd;
}
.color-3 {
  background: #ece6db;
  border-color: #cbb79b;
}
.event.personal {
  background: repeating-linear-gradient(
    135deg,
    #edf0e7,
    #edf0e7 5px,
    #e7ebe0 5px,
    #e7ebe0 6px
  );
  border-color: #bbc4ab;
  color: #6a775b;
}
.tentative {
  border: 2px dotted #9ba782 !important;
  background-color: #f6f5eb;
}
.event.proposed {
  background: #fbe9df;
  border: 2px dashed #c18360;
  z-index: 5;
}
.legend {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  padding: 18px 2px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 3px;
}
.solid {
  background: #b2bf95;
}
.dotted {
  border: 1px dotted #7f9265;
}
.secret {
  background: repeating-linear-gradient(
    135deg,
    #c3cdb7,
    #c3cdb7 1px,
    transparent 1px,
    transparent 3px
  );
}
.legend-note {
  margin-left: auto;
  font-size: 9px;
}
footer {
  margin: 0 38px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #989e92;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.request-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.request-list {
  display: grid;
  gap: 16px;
}
.request-card {
  padding: 24px;
  text-align: left;
  border-radius: 13px;
  background: #fffefa;
}
.card-kicker {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
}
.card-kicker small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.coral {
  background: #f0d8c7;
}
.arrow {
  margin-left: auto;
  font-size: 24px;
  color: #9d997d;
}
.request-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.request-card p {
  font-size: 12px;
  color: var(--muted);
}
blockquote {
  font-weight: 400;
  margin: 15px 0 20px;
  font-size: 13px;
  color: #6f786b;
  line-height: 1.6;
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eff1e7;
  color: #788163;
  font-size: 10px;
  font-weight: 500;
}
.request-intro {
  padding: 50px;
  background: radial-gradient(ellipse at 50% 40%, #e8eddd, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.large-mark {
  font-size: 70px;
  color: #a4b491;
}
.request-intro h2 {
  font-size: 30px;
  font-weight: 400;
}
.request-intro p,
.mini-legend {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.mini-legend {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  background: #edf0e4;
  border: 1px solid #dde4cf;
  border-radius: 9px;
  padding: 15px 18px;
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 320px;
}
.provider-logo {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #edf1e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}
.provider-card h2 {
  font-size: 18px;
  margin: 20px 0 12px;
}
.provider-card p {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
.provider-card .pill {
  align-self: end;
  margin-top: -54px;
}
.connection-notes {
  margin-top: 24px;
}
.connection-notes p {
  font-size: 13px;
  color: var(--muted);
}
.wide {
  width: 100%;
  text-align: center;
}
.sharing-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 35px;
}
.profile-card {
  text-align: center;
}
.large {
  width: 65px;
  height: 65px;
  font-size: 20px;
  margin-bottom: 19px;
}
.profile-card h2 {
  font-size: 21px;
}
.profile-card p {
  color: var(--muted);
  font-size: 12px;
}
.facts {
  display: flex;
  justify-content: center;
  gap: 9px;
  font-size: 9px;
  color: #77816c;
}
.facts span {
  background: #f0f2e8;
  border-radius: 5px;
  padding: 7px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.section-title {
  font-size: 19px;
  margin-top: 8px;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.link-list {
  display: grid;
  gap: 12px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fffefa;
  padding: 18px;
  border-radius: 10px;
}
.link-card > div {
  flex: 1;
}
.link-card strong {
  font-size: 13px;
}
.link-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed #d3dac8;
  border-radius: 12px;
  color: #7a8670;
}
.empty h3 {
  font-size: 17px;
}
.empty p {
  font-size: 12px;
}
.poll-card {
  margin-bottom: 16px;
  min-width: 0;
  padding: 20px;
}
.poll-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.poll-heading h2 {
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}
.poll-options {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  margin: 12px 0;
}
.poll-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.poll-option-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.poll-option-heading strong:first-child { font-size: 16px; }
.poll-option-heading p { margin: 4px 0 0; font-size: 15px; }
.poll-available { color: var(--success, #347b61); font-size: 15px; white-space: nowrap; }
.poll-proposer { margin: 12px 0 0; }
.poll-option > p {
  font-size: 12px;
  color: var(--muted);
}
.votes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  align-items: start;
}
.votes span {
  background: #f0f3e8;
  border-radius: 4px;
  padding: 5px;
}
.response-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.text-button {
  border: 0;
  background: none;
  padding: 12px 0 0;
  font-size: 11px;
  display: block;
}
.danger {
  color: #a45e49;
}
.poll-option .danger {
  font-size: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffefa;
  color: var(--ink);
  width: 540px;
  max-width: 95vw;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 28px;
  box-shadow: 0 25px 90px #273d332b;
}
dialog:has(.request-detail) {
  width: 930px;
}
dialog::backdrop {
  background: #23332960;
  backdrop-filter: blur(4px);
}
.modal-top {
  display: flex;
  justify-content: end;
  margin-bottom: 8px;
}
.close {
  border: 0;
  background: #f1f2eb;
}
.request-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.request-detail .calendar-scroll {
  height: 410px;
}
.request-detail p {
  font-size: 13px;
}
.request-detail h2 {
  font-size: 28px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 17px 0;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #dce1d4;
  border-radius: 8px;
  padding: 12px;
  margin-top: 7px;
  background: #fffefa;
  color: var(--ink);
  font-size: 13px;
  min-height: 44px;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row label {
  flex: 1;
  min-width: 0;
}
.form-error {
  font-size: 12px;
  color: #b04531;
}
.requirements {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.requirements li {
  margin: 12px 0;
}
.availability-list {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.availability-item {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: 12px;
}
.availability-item small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.guest-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin: 10px 0;
}
.guest-list > div > span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 14px 22px;
  background: #294834;
  color: white;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: all 0.2s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .content {
    max-width: 1550px;
    margin: auto;
  }
  .calendar-scroll {
    height: 620px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 185px;
    padding: 25px 12px;
  }
  main {
    margin-left: 185px;
  }
  .brand {
    font-size: 27px;
  }
  .content {
    padding: 25px 22px;
  }
  .heading {
    align-items: start;
  }
  h1 {
    font-size: 31px;
  }
  .heading-actions {
    flex-direction: column;
  }
  .legend {
    gap: 12px;
  }
  .legend-note {
    display: none !important;
  }
  .provider-grid {
    gap: 10px;
  }
  .provider-card {
    padding: 18px;
  }
  .sharing-layout {
    grid-template-columns: 270px 1fr;
    gap: 20px;
  }
  .topbar {
    padding: 0 22px;
  }
  .request-intro {
    padding: 25px;
  }
  footer {
    margin: 0 22px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #f0f2e9;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .nav-item {
    flex-direction: column;
    gap: 2px;
    padding: 6px 5px;
    font-size: 10px;
    width: 100%;
    margin: 0;
    position: relative;
    min-width: 0;
    min-height: 56px;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .nav-item > span {
    font-size: 20px;
  }
  .nav-item b {
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 8px;
  }
  .brand,
  .sidebar-caption,
  .sidebar-note,
  .account {
    display: none;
  }
  main {
    margin: 0 0 calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .topbar {
    height: 52px;
    padding: 0 18px;
    font-size: 8px;
  }
  .topbar > div {
    font-size: 9px;
  }
  .content {
    padding: 26px 16px 10px;
  }
  .heading {
    display: block;
    margin-bottom: 25px;
  }
  h1 {
    font-size: 32px;
  }
  .heading-actions {
    flex-direction: row;
    margin-top: 20px;
  }
  .heading-actions button {
    flex: 1;
  }
  .date-nav {
    gap: 5px;
  }
  .date-nav h2 {
    font-size: 13px;
    margin: 0 3px;
  }
  .date-nav .small {
    display: none;
  }
  .segmented button {
    padding: 7px 10px;
  }
  .calendar-scroll {
    height: 490px;
  }
  .calendar-shell:has(.calendar-days[style="--days:7"]) {
    overflow-x: auto;
  }
  .calendar-days[style="--days:7"],
  .time-grid[style="--days:7"] {
    min-width: 680px;
  }
  .calendar-shell:has(.calendar-days[style="--days:7"]) .calendar-scroll {
    min-width: 680px;
  }
  .legend {
    font-size: 8px;
    gap: 12px;
    flex-wrap: wrap;
  }
  footer {
    margin: 0 16px;
    font-size: 8px;
  }
  footer span {
    display: none;
  }
  .request-layout,
  .sharing-layout,
  .request-detail {
    grid-template-columns: 1fr;
  }
  .request-intro {
    display: none;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .provider-card {
    min-height: 240px;
  }
  .provider-card h2 {
    margin-top: 20px;
  }
  .poll-heading {
    display: block;
  }
  .poll-options {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 22px;
  }
  .request-detail .calendar-scroll {
    height: 280px;
  }
  dialog {
    padding: 20px;
  }
  .availability-item {
    grid-template-columns: 110px 1fr;
  }
  .event strong {
    font-size: 12px;
  }
  .event-meta {
    font-size: 9px;
  }
  .event-time {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.check-label input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--forest);
}

/* Shared availability highlights candidate starts, not whole free intervals. */
dialog:has(.availability-planner) {
  width: 1100px;
  max-width: 96vw;
  padding: 24px 28px;
}
dialog:has(.availability-planner) .modal-top {
  position: absolute;
  right: 20px;
  top: 16px;
}
dialog:has(.availability-planner) > h2 {
  font-size: 29px;
  margin-bottom: 6px;
}
.availability-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.availability-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f0f3ea;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
}
.availability-controls label {
  margin: 0;
  flex: 0 0 170px;
  font-size: 11px;
}
.availability-controls .custom-duration {
  flex-basis: 85px;
}
.availability-controls select,
.availability-controls input {
  padding: 8px 10px;
  margin-top: 5px;
  min-height: 38px;
}
.availability-controls p {
  margin: 10px 0 0 auto;
  font-size: 12px;
  max-width: 340px;
  color: #64725f;
  line-height: 1.6;
}
#poll-option-calendar .availability-controls p {
  margin: 0;
  max-width: none;
}
.availability-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 17px 0 12px;
}
.availability-toolbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.availability-toolbar > div > button {
  padding: 5px 11px;
  font-size: 20px;
}
.availability-toolbar strong {
  font-size: 15px;
  margin-left: 7px;
  white-space: nowrap;
}
.availability-toolbar input {
  width: 140px;
  font-size: 11px;
  min-height: 34px;
  margin: 0;
  padding: 6px;
}
.availability-key {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 13px;
  font-size: 10px;
}
.availability-key > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.availability-key i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.fit-dot {
  background: #d9eddd;
  border: 1px solid #81af8b;
}
.busy-dot {
  background: #f5d9d4;
  border: 1px solid #ce9187;
}
.maybe-dot {
  background: #f6e2dc;
  border: 2px dotted #b98171;
}
.availability-key small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.availability-calendar {
  border: 1px solid #d6dfd2;
  border-radius: 10px;
  overflow: hidden;
}
.availability-scroll {
  height: 380px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfccb5 #f8faf4;
}
.availability-canvas {
  min-width: calc(64px + var(--availability-days) * 105px);
}
.availability-dayheads {
  display: grid;
  grid-template-columns: 64px repeat(var(--availability-days), minmax(0, 1fr));
  height: 63px;
  position: sticky;
  top: 0;
  z-index: 7;
  background: #fffefa;
  border-bottom: 1px solid #d6dfd2;
}
.availability-dayheads > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
  gap: 3px;
}
.availability-dayheads span {
  font-size: 10px;
  color: #71806a;
}
.availability-dayheads strong {
  font-size: 20px;
  font-weight: 500;
}
.availability-dayheads .is-today strong {
  border-radius: 50%;
  background: var(--forest);
  color: white;
  width: 28px;
  height: 28px;
  text-align: center;
}
.availability-zone {
  font-size: 8px !important;
  align-self: end;
  overflow-wrap: anywhere;
  padding: 6px;
  text-align: center;
}
.availability-hours {
  display: grid;
  grid-template-columns: 64px repeat(var(--availability-days), minmax(0, 1fr));
  height: 1536px;
}
.availability-axis {
  position: relative;
  background: #fffefa;
}
.availability-axis > span {
  position: absolute;
  right: 9px;
  font-size: 9px;
  transform: translateY(3px);
  color: #7f8877;
}
.availability-column {
  position: relative;
  border-left: 1px solid #d6dfd2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 63px,
    #bfd0bc 63px,
    #bfd0bc 64px
  );
}
.availability-slot {
  position: absolute;
  left: 0;
  width: 100%;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  transition: background 0.1s;
}
.availability-slot:nth-of-type(4n + 1) {
  border-top: 1px solid #bacdb680;
}
.slot-free {
  background: #e6f2e5;
}
.slot-free:hover,
.slot-free:focus-visible {
  background: #c0dfbe;
}
.slot-busy {
  background: #f7dfdb;
}
.slot-busy:hover,
.slot-busy:focus-visible {
  background: #eabcb4;
}
.slot-tentative {
  background: #f6e5df;
  border-bottom: 1px dotted #bc8f81;
}
.slot-tentative:hover,
.slot-tentative:focus-visible {
  background: #eacbbf;
}
.availability-slot:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: -2px;
  z-index: 5;
}
.availability-slot span {
  display: none;
  position: relative;
  z-index: 4;
  font-size: 9px;
  padding-left: 3px;
  color: #324e31;
}
.availability-slot:hover span,
.availability-slot:focus-visible span {
  display: block;
}
.availability-slot:disabled {
  background: #eef0eb;
  opacity: 1;
  cursor: not-allowed;
}
.availability-commitment {
  position: absolute;
  left: 9%;
  right: 4px;
  pointer-events: none;
  z-index: 2;
  background: #c782743d;
  border-left: 3px solid #b27364;
  border-radius: 4px;
  padding: 4px 6px;
  overflow: hidden;
}
.availability-commitment strong {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: #74483d;
}
.availability-commitment small {
  font-size: 8px;
  color: #855b51;
  margin-top: 3px;
}
.commitment-tentative {
  background: #ead7c540;
  border: 2px dotted #b28d72;
  padding: 3px 5px;
}
.availability-selection {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 4;
  border: 2px solid #367743;
  border-radius: 5px;
  background: #d8f0d9cc;
  pointer-events: none;
  overflow: hidden;
  padding: 5px 6px;
  box-shadow: 0 2px 7px #31553318;
}
.availability-selection strong {
  display: block;
  font-size: 10px;
}
.availability-selection span {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.selection-busy {
  background: #f4c9bfdf;
  border-color: #a45f4c;
  color: #743e31;
}
.selection-tentative {
  background: #f4ddd1df;
  border: 2px dotted #9b7761;
}
.out-of-bounds {
  background: #eff0ec;
}
.availability-choice {
  margin-top: 15px;
  border: 1px solid var(--line);
  background: #fafbf6;
  border-radius: 10px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.availability-choice strong {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.availability-choice p {
  font-size: 11px;
  color: #798171;
  margin: 5px 0 0;
}
.choice-status {
  font-size: 10px;
  font-weight: 600;
}
.status-free {
  color: #397442;
}
.status-busy {
  color: #a35a47;
}
.status-tentative {
  color: #967346;
}
.availability-proposal {
  display: flex;
  align-items: end;
  gap: 8px;
}
.availability-proposal label {
  margin: 0;
  font-size: 10px;
}
.availability-proposal input {
  margin-top: 5px;
  min-height: 39px;
  padding: 9px;
  font-size: 12px;
  max-width: 190px;
}
.availability-proposal button {
  white-space: nowrap;
  font-size: 11px;
}
.availability-disclaimer {
  font-size: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}
@media (max-width: 800px) {
  dialog:has(.availability-planner) {
    padding: 22px 16px;
    max-width: 98vw;
  }
  .availability-controls {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
  }
  .availability-controls label {
    flex: 1;
  }
  .availability-controls .custom-duration {
    flex: 0 0 75px;
  }
  .availability-controls p {
    margin: 0;
    max-width: none;
    flex-basis: 100%;
    font-size: 11px;
  }
  .availability-toolbar {
    flex-wrap: wrap;
  }
  .availability-toolbar > div:last-child {
    margin-left: auto;
  }
  .availability-key {
    gap: 12px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .availability-key small {
    margin-left: 0;
    font-size: 9px;
  }
  .availability-scroll {
    height: 350px;
  }
  .availability-choice {
    display: block;
    padding: 12px;
  }
  .availability-proposal {
    margin-top: 12px;
  }
  .availability-proposal label {
    flex: 1;
  }
  .availability-proposal input {
    width: 100%;
    max-width: none;
  }
  .availability-toolbar strong {
    font-size: 13px;
  }
  .availability-toolbar input {
    width: 126px;
  }
  .availability-selection strong {
    font-size: 12px;
  }
  .availability-commitment strong {
    font-size: 12px;
  }
}
#content .day-column {
  cursor: crosshair;
}
#content .day-column:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: -2px;
}
.availability-toolbar > div > button {
  min-width: 40px;
  min-height: 40px;
}
.availability-scope {
  font-size: 11px;
  color: #6d7964;
  line-height: 1.5;
  margin: 0 0 12px;
}
.event.proposed {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.event.proposed.dragging {
  cursor: grabbing;
  box-shadow: 0 5px 15px #8a583630;
}
.request-day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.request-day-nav button {
  min-width: 40px;
  min-height: 40px;
  font-size: 22px;
  padding: 3px 8px;
}
.request-day-nav strong {
  font-size: 14px;
}
#counter-form button {
  margin-bottom: 8px;
}
.link-card {
  flex-wrap: wrap;
}
.link-card > div {
  min-width: 180px;
}
.link-open-status {
  color: #617954 !important;
}
.public-share {
  margin: 0 auto;
  max-width: 1150px;
  padding: 30px 24px;
}
.public-share #shared-status {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
#content .day-column {
  touch-action: pan-y;
  user-select: none;
}
#content .day-column:has(.calendar-draft-selection) {
  touch-action: none;
}
.calendar-draft-selection {
  position: absolute;
  left: 3px;
  right: 3px;
  border: 2px solid #417451;
  background: #d1e8cbd9;
  color: #284a32;
  border-radius: 5px;
  padding: 5px;
  font-size: 11px;
  z-index: 8;
  pointer-events: none;
}
.external-save {
  margin-top: 18px;
}
#export-form button {
  margin-top: 20px;
}
.time-picker {
  position: relative;
  margin-top: 7px;
  min-width: 0;
}
.time-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: #f5f7ef;
  border: 1px solid #cfdac6;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.time-trigger:hover,
.time-trigger[aria-expanded="true"] {
  background: #eaf0e1;
  border-color: #93ab84;
}
.time-trigger:focus-visible {
  outline: 2px solid #608253;
  outline-offset: 2px;
}
.time-chevron {
  font-size: 17px;
  color: #758a68;
}
.time-options {
  position: fixed;
  top: 0;
  left: 0;
  max-height: 230px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: #fffefa;
  border: 1px solid #cdd9c0;
  border-radius: 11px;
  box-shadow: 0 12px 30px #2b432327;
  padding: 5px;
  z-index: 25;
  scrollbar-width: thin;
  scrollbar-color: #b8c9ab transparent;
}
.time-options[hidden] {
  display: none;
}
.time-options button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  min-height: 44px;
}
.time-options button:hover,
.time-options button:focus,
.time-options button.is-active {
  background: #eef3e6;
  outline: 2px solid #608253;
  outline-offset: -2px;
}
.time-options button[aria-selected="true"] {
  background: #dfeace;
  color: #274831;
  font-weight: 700;
}
.time-options button[aria-selected="true"]::after {
  content: "✓";
  float: right;
  color: #436c39;
}
.composer-mode {
  padding: 14px;
  border: 1px solid #d5dfc8;
  border-radius: 9px;
  background: #eef3e6;
}
#composer-poll-fields {
  padding: 0 14px 4px;
  background: #f5f7ef;
  border-radius: 8px;
}
#composer-poll-fields[hidden] {
  display: none;
}

/* Shared shell; Friends components use these same theme tokens separately. */
:root {
  --surface: #fffefa;
  --sage: #dfe7d5;
  --focus: #608253;
}
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
main,
.content,
.heading > div,
.request-layout > *,
.sharing-layout > *,
.request-detail > * {
  min-width: 0;
}
.heading h1,
.panel h2,
.link-card strong,
.guest-list > div {
  overflow-wrap: anywhere;
}
.topbar {
  gap: 12px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.settings-button {
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.settings-button.active,
.settings-button[aria-current="page"] {
  background: var(--sage);
  border-color: #9db391;
}
.plans-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.plans-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f0f2e9;
  margin-bottom: 16px;
}
.plans-toolbar .plans-tabs {
  margin-bottom: 0;
}
.plans-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
}
.plans-tabs button:hover {
  background: #e8edde;
}
.plans-tabs button:is(.active, .selected, [aria-selected="true"], [aria-pressed="true"]) {
  background: var(--sage);
  border-color: #aabb9b;
  color: #244b34;
}
.plans-tabs button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #fffefa;
  font-size: 10px;
  flex-shrink: 0;
}
.plans-list {
  display: grid;
  gap: 10px;
  align-content: start;
}
.plan-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  overflow-wrap: anywhere;
}
.plan-card {
  min-width: 0;
}
.plan-summary > :first-child,
.plan-copy {
  display: block;
  flex: 1 1 220px;
  min-width: 0;
}
.plan-summary > :first-child > strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.plan-summary h2,
.plan-summary h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0 0 5px;
}
.plan-meta {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #65715f;
  font-weight: 400;
  margin: 4px 0 0;
}
.plan-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #edf1e5;
  color: #53654a;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 100%;
}
.plan-action {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}
button.plan-action,
a.plan-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
}
.plans-list .empty {
  padding: 28px 18px;
}
dialog:has(.poll-card, .poll-detail) {
  width: 760px;
}
dialog .poll-card:last-child {
  margin-bottom: 0;
}
dialog .poll-card {
  padding: 16px;
}
.poll-option .response-actions {
  margin-top: 12px;
}
.poll-card .notice:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .topbar {
    min-height: 60px;
    height: auto;
    padding: 6px 16px;
  }
  .topbar > span {
    min-width: 0;
    line-height: 1.6;
  }
  .topbar > div {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px 6px;
  }
  .settings-button {
    font-size: 11px;
    padding-inline: 9px;
  }
  .heading-actions,
  .calendar-toolbar,
  .date-nav {
    flex-wrap: wrap;
  }
  .calendar-toolbar {
    gap: 10px;
  }
  .plans-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .plans-tabs button {
    min-width: 0;
    padding: 10px 7px;
    overflow-wrap: anywhere;
  }
  .plan-summary {
    padding: 14px;
    gap: 9px;
  }
  .plan-summary > :first-child {
    flex-basis: 100%;
  }
  .plan-summary h2,
  .plan-summary h3 {
    font-size: 15px;
  }
  .plan-meta {
    font-size: 12px;
  }
  .poll-card,
  dialog .poll-card {
    padding: 14px;
  }
  .poll-heading > button {
    margin-top: 4px;
  }
  .response-actions button {
    flex: 1 1 auto;
  }
  button:not(.event, .availability-slot),
  .availability-controls input,
  .availability-controls select,
  .availability-toolbar input,
  .availability-proposal input {
    min-height: 44px;
  }
  .icon-button,
  .request-day-nav button,
  .availability-toolbar > div > button {
    min-width: 44px;
  }
  .check-label {
    min-height: 44px;
  }
  .link-card > div {
    min-width: 0;
    flex-basis: 100%;
    overflow-wrap: anywhere;
  }
  #toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
