:root {
  color-scheme: dark;
  --ink: #e3e8e2;
  --muted: #9aa69f;
  --paper: #121815;
  --line: #2c3833;
  --accent: #d9f185;
  /* Text on accent and other light fills; the page ink is too light there. */
  --on-accent: #1a2a13;
  --green: #2f6b52;
  --card: #1a221e;
  --live: #15803d;
  /* Fills for secondary controls, so no button sits bare on the card. */
  --soft: #25302b;
  --soft-hover: #2f3c36;
  --soft-line: #3a4842;
  --danger-soft: #3a211d;
  --danger-soft-hover: #4a2a24;
  --red: #f0907f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

button, input, select, textarea {
  font: inherit;
}

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 12px 19px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  min-height: 45px;
}

button:hover, .button:hover {
  filter: brightness(1.1);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #8dba58;
  outline-offset: 3px;
}

.secondary {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--soft-line);
}

.secondary:hover {
  background: var(--soft-hover);
  filter: none;
}

.small {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
}

.full {
  width: 100%;
}

.topbar {
  max-width: 1320px;
  margin: auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  font-size: 28px;
  letter-spacing: -1.4px;
  font-weight: 750;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--accent);
  font-size: 26px;
  text-align: center;
  border-radius: 9px;
  line-height: 32px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(40px,5.4vw,68px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -2.5px;
  margin: 16px 0 25px;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.7px;
  margin: 9px 0 24px;
  font-weight: 600;
}

.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--muted);
}

.muted, p {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 24px;
}

.workspace {
  max-width: 1200px;
  padding: 46px 40px;
  margin: auto;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.page-heading h1 {
  font-size: 51px;
}

.link-banner {
  background: #1f2823;
  border: 1px solid var(--line);
  padding: 25px 30px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-banner a {
  display: block;
  font-size: 20px;
  text-decoration: none;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.status {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.link-banner.live {
  background: var(--live);
  border-color: var(--live);
  color: white;
}

.link-banner.live a,
.link-banner.live .status {
  color: white;
}

.section-nav {
  display: flex;
  gap: 26px;
  margin: 28px 0;
  font-size: 13px;
}

.section-nav a {
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 19px;
}

input:not([type=checkbox]), select, textarea {
  width: 100%;
  border: 1px solid #3a4842;
  background: #111714;
  color: var(--ink);
  border-radius: 6px;
  padding: 11px 12px;
  margin-top: 7px;
  min-height: 43px;
  min-width: 0;
}

input::placeholder, textarea::placeholder {
  color: #6c7a72;
}

select {
  font-size: 13px;
}

textarea {
  resize: vertical;
}

.reason {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.hint {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
}

.optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.day-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-options label {
  margin: 0;
  cursor: pointer;
}

.day-options input {
  position: absolute;
  opacity: 0;
}

.day-options span {
  display: block;
  background: var(--soft);
  border: 1px solid var(--soft-line);
  padding: 10px 11px;
  border-radius: 5px;
  font-size: 11px;
}

.day-options input:checked+span {
  background: var(--accent);
  border-color: #bdcf87;
  color: var(--on-accent);
}

.day-options input:focus-visible+span {
  outline: 3px solid #8dba58;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.check-row input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.calendar-list {
  margin-top: 24px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-row form {
  flex-shrink: 0;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.type-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.type-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.type-row small,
.type-row a {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.type-row small {
  color: var(--muted);
}

.type-row .type-name {
  display: inline;
  font-size: inherit;
  margin-top: 0;
}

.type-row > .reorder {
  flex: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reorder .text-button {
  width: 28px;
  min-height: 22px;
  padding: 0;
}

.type-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.type-list small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.narrow-workspace {
  max-width: 760px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-button:hover {
  background: var(--soft-hover);
  filter: none;
}

.danger, .sync-error {
  color: #f0907f;
}

.text-button.danger {
  background: var(--danger-soft);
}

.text-button.danger:hover {
  background: var(--danger-soft-hover);
}

/* A form button drawn as a switch: the knob sits on the side it is on now, and
   pressing it submits the opposite. */
.switch {
  justify-content: flex-start;
  gap: 8px;
  min-width: 72px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}

.switch::before {
  content: "";
  flex: 0 0 38px;
  height: 22px;
  border: 1px solid var(--soft-line);
  border-radius: 11px;
  background: radial-gradient(circle at 11px 50%, var(--muted) 7px, transparent 8px) var(--soft);
}

.switch[aria-checked="true"] {
  color: var(--accent);
}

.switch[aria-checked="true"]::before {
  border-color: var(--accent);
  background: radial-gradient(circle at 27px 50%, var(--on-accent) 7px, transparent 8px) var(--accent);
}

.switch:hover {
  filter: brightness(1.15);
}

.location-picks {
  margin-left: 26px;
}

/* Without :has() support the picks simply stay visible. */
.location-mode:has(input[value="all"]:checked) .location-picks {
  display: none;
}

.danger-zone {
  border-color: var(--red);
}

.danger-zone h2 {
  color: var(--red);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--red);
  border-color: var(--red);
}

.danger-button:hover {
  background: var(--red);
  color: var(--on-accent);
  filter: none;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.inline-form label {
  margin: 0;
}

.location-form {
  margin: 16px 0 12px;
}

.subheading {
  margin-top: 30px;
}

.grow {
  flex: 1;
}

.inline-form button {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 12px;
}

/* Two date inputs leave no room for the button in the narrow sidebar. */
.range-form {
  flex-wrap: wrap;
}

.range-form button {
  flex-basis: 100%;
}

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: #1f2d1c;
  border: 1px solid #33492c;
  border-radius: 7px;
  padding: 14px 18px;
  color: #c5e0a5;
  font-size: 13px;
  margin-bottom: 24px;
}

.alert-close {
  background: none;
  border: 0;
  padding: 0 2px;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: .7;
}

.alert-close:hover {
  opacity: 1;
  filter: none;
}

.alert.error {
  background: #3a211b;
  border-color: #5a3024;
  color: #f4b39f;
}

.toasts {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  display: grid;
  gap: 8px;
  z-index: 20;
}

.toasts .alert {
  margin: 0;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  animation: toast-in .2s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Grows slowly while a page loads; snaps back once it has faded out. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--live);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform 0s .3s;
  z-index: 30;
}

.progress.active {
  opacity: 1;
  transform: scaleX(.9);
  transition: transform 6s cubic-bezier(.1, .8, .2, 1);
}

form[aria-busy="true"] button {
  cursor: progress;
  opacity: .6;
}

main:focus {
  outline: none;
}

dialog.confirm {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: min(400px, calc(100% - 32px));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
}

dialog.confirm::backdrop {
  background: rgb(0 0 0 / 55%);
}

dialog.confirm p {
  margin: 0;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .15s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .toasts .alert {
    animation: none;
  }
}

.empty {
  text-align: center;
  padding: 42px 10px;
}

.empty p {
  font-size: 13px;
  margin-bottom: 0;
}

.compact {
  padding: 22px 4px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}

th {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  max-width: 240px;
  overflow-wrap: anywhere;
  margin-top: 4px;
}

td .sync-error {
  color: #f0907f;
}

.pill {
  display: inline-block;
  background: #26312c;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 10px;
}

.actions {
  display: flex;
  gap: 14px;
}

.auth-card {
  padding: 34px;
}

.auth-card h1 {
  font-size: 44px;
}

.auth-switch {
  font-size: 12px;
  text-align: center;
  margin: 20px 0 0;
}

.public-layout {
  max-width: 1100px;
  margin: 64px auto;
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.5fr);
  gap: 60px;
  padding: 0 35px;
}

.host-intro h1 {
  font-size: 56px;
  overflow-wrap: anywhere;
}

.meeting-detail {
  display: flex;
  gap: 16px;
  margin: 21px 0;
}

.meeting-detail>span {
  font-size: 22px;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
}

.meeting-detail strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.meeting-detail small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.booking-card {
  align-self: start;
  padding: 32px;
}

.slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.slot {
  display: flex;
  justify-content: space-between;
  background: var(--soft);
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 13px 16px;
  text-decoration: none;
  font-size: 13px;
  transition: background .15s;
}

.slot:hover {
  background: var(--accent);
  border-color: #afc674;
  color: var(--on-accent);
}

.slot span {
  color: var(--muted);
}

.slot:hover span {
  color: var(--on-accent);
}

.timezone-form {
  margin-top: 28px;
}

.scheduler {
  display: grid;
  gap: 28px;
  margin-top: 20px;
}

.scheduler.with-times {
  grid-template-columns: minmax(0,1fr) 170px;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.month-nav a,
.month-nav span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
}

.month-nav a {
  background: var(--soft);
}

.month-nav a:hover {
  background: var(--soft-hover);
}

.month-nav span {
  color: var(--line);
}

table.month {
  table-layout: fixed;
  text-align: center;
}

.month th,
.month td {
  border: 0;
  padding: 3px 0;
}

.month th {
  letter-spacing: 0;
}

.day {
  width: 40px;
  height: 40px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  color: #56635c;
}

a.day {
  color: var(--accent);
  background: #2b3620;
  font-weight: 600;
  text-decoration: none;
}

a.day:hover {
  background: #3a4a26;
}

a.day.selected {
  background: var(--accent);
  color: var(--on-accent);
}

.day-times .slots {
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
}

.day-times .slot {
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.back-link {
  display: block;
  font-size: 12px;
  margin: 0 0 25px;
  text-decoration: none;
}

.selected-time {
  background: #212b26;
  border: 1px solid #33413a;
  border-radius: 7px;
  padding: 19px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-wrap: anywhere;
}

.selected-time strong {
  font-size: 15px;
}

.selected-time span {
  font-size: 12px;
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.narrow {
  max-width: 620px;
  margin: 65px auto;
  padding: 0 25px;
}

.manage-card {
  padding: 40px;
}

.manage-card h1 {
  font-size: 49px;
}

.manage-card p {
  font-size: 13px;
}

.manage-card .full {
  margin-bottom: 16px;
}

.manage-card form {
  margin-top: 15px;
}

.confirmation-mark {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  line-height: 52px;
  text-align: center;
  font-size: 25px;
  margin: 28px 0;
}

.confirmation-mark.pending {
  background: #3d3b22;
  color: var(--ink);
}

.landing {
  max-width: 1150px;
  margin: 65px auto;
  padding: 0 45px;
}

.landing h1 {
  font-size: 85px;
  margin-top: 26px;
}

.landing p {
  line-height: 1.9;
}

footer {
  max-width: 1320px;
  margin: 40px auto 0;
  padding: 26px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .3px;
}

@media(max-width:850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .public-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .host-intro h1 {
    font-size: 44px;
  }
  .landing h1 {
    font-size: 65px;
  }
}

@media(max-width:640px) {
  .topbar {
    padding: 20px;
  }
  .workspace {
    padding: 28px 18px;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .link-banner {
    padding: 20px;
  }
  .link-banner a {
    font-size: 15px;
  }
  .section-nav {
    gap: 20px;
    font-size: 12px;
  }
  .card {
    padding: 23px;
  }
  .public-layout {
    grid-template-columns: 1fr;
    margin: 30px auto;
    gap: 25px;
    padding: 0 20px;
  }
  .auth-card {
    margin: 0;
  }
  .public-layout {
    gap: 15px;
  }
  .host-intro h1 {
    font-size: 43px;
  }
  .meeting-detail {
    margin: 13px 0;
  }
  .form-grid {
    gap: 0 12px;
  }
  .day-options {
    gap: 5px;
  }
  .day-options span {
    padding: 9px 10px;
  }
  .manage-card h1 {
    font-size: 40px;
  }
  .narrow {
    margin: 35px auto;
    padding: 0 18px;
  }
  .landing {
    margin: 35px auto;
    padding: 0 25px;
  }
  .landing h1 {
    font-size: 64px;
  }
  footer {
    padding: 22px 20px;
    margin-top: 25px;
    font-size: 9px;
  }
  .scheduler.with-times {
    grid-template-columns: 1fr;
  }
  .day {
    width: 36px;
    height: 36px;
  }
  .day-times .slots {
    max-height: none;
  }
}
