
:root {
  color-scheme:light;
  --bg:#f6f6f0;
  --paper:#fffffc;
  --ink:#173a35;
  --muted:#536b64;
  --line:#dce2d8;
  --teal:#116455;
  --dark:#104d43;
  --pale:#e4f2e7;
  --soft:#eef1e9;
  --amber:#f9e9bd;
  --red:#924d42;
  --sans:"DM Sans","Avenir Next",Avenir,system-ui,sans-serif;
  --serif:"Instrument Serif","Iowan Old Style",Baskerville,Georgia,serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.5 var(--sans);
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #428c79;
  outline-offset:3px;
}
button,select,input,textarea {
  color:var(--ink);
}
a {
  color:var(--teal);
}
[hidden] {
  display:none!important;
}
header {
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.bar,main {
  width:min(1080px,calc(100% - 80px));
  margin:auto;
}
.bar {
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand {
  display:flex;
  white-space:nowrap;
  align-items:center;
  gap:11px;
  font-weight:700;
  letter-spacing:-1.4px;
  font-size:26px;
}
.mark {
  width:35px;
  height:34px;
  position:relative;
  display:inline-block;
  flex:none;
}
.mark:before,.mark:after {
  content:"";
  position:absolute;
  width:19px;
  height:24px;
  border:2.5px solid var(--teal);
  border-radius:5px;
  transform:rotate(-9deg);
  top:3px;
  left:1px;
}
.mark:after {
  transform:rotate(9deg);
  top:7px;
  left:12px;
  background:rgba(30,129,99,.14);
}
.bar-right,.inline,.btns {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
main {
  padding:40px 0 56px;
}
.hero {
  margin:0 0 26px;
}
.hero p,.minor,.hint,.place,.foot {
  color:var(--muted);
}
h1,h2,h3,p {
  margin:0;
}
.hero h1 {
  font:500 clamp(37px,5.3vw,61px)/1.05 var(--serif);
  letter-spacing:-.048em;
  overflow-wrap:anywhere;
}
.hero p {
  margin-top:10px;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(285px,1fr);
  align-items:start;
  gap:22px;
}
.card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:17px;
  padding:23px 25px;
}
.card+.card {
  margin-top:18px;
}
.card h2,.section-title {
  font:500 27px/1.2 var(--serif);
  letter-spacing:-.035em;
}
.rowhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.divider {
  height:1px;
  background:var(--line);
  margin:22px 0;
}
.details {
  margin:18px 0 0;
}
.fields {
  display:grid;
  grid-template-columns:minmax(0,1fr) 145px;
  gap:14px;
}
label,.lbl {
  font-weight:600;
  font-size:13px;
  display:block;
}
input,select,textarea {
  display:block;
  width:100%;
  min-height:43px;
  background:#fffefa;
  border:1px solid #bdcbbf;
  border-radius:8px;
  padding:9px 11px;
  margin-top:5px;
}
input::placeholder,textarea::placeholder {
  color:#738279;
}
input[type=date],input[type=time] {
  min-width:0;
}
textarea {
  resize:vertical;
}
.note {
  margin-top:12px;
}
.note summary {
  cursor:pointer;
  font-size:13px;
  color:var(--teal);
  width:fit-content;
}
.minor,.hint,.place,.foot {
  font-size:13px;
}
.hint {
  margin:5px 0 12px;
}
.place {
  display:flex;
  align-items:center;
  gap:7px;
}
.place svg {
  flex:none;
}
.monthbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:15px 0 6px;
}
.monthbar strong {
  font-size:15px;
}
.arrows {
  display:flex;
  gap:6px;
}
.icon,.trash {
  background:transparent;
  border:1px solid var(--line);
  width:33px;
  height:33px;
  border-radius:7px;
  display:inline-grid;
  place-items:center;
  font-size:20px;
  line-height:1;
  color:var(--teal);
}
.icon:hover,.trash:hover {
  background:var(--soft);
}
.cal {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:3px;
}
.weekday,.day {
  display:grid;
  place-items:center;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.weekday {
  font-size:11px;
  color:var(--muted);
  padding:4px;
  font-weight:600;
}
.day {
  border:1px solid transparent;
  background:transparent;
  min-height:34px;
  font-size:14px;
  border-radius:7px;
}
.day:not(:disabled):hover {
  border-color:#81ad98;
  background:#f2f8ef;
}
.day.today {
  font-weight:750;
  text-decoration:underline;
  text-underline-offset:4px;
}
.day[aria-pressed=true],.day[aria-pressed=true]:hover {
  background:var(--teal);
  color:white;
  border-color:var(--teal);
}
.day:disabled {
  color:#849084;
}
.pickline {
  margin:13px 0 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.timebar {
  display:flex;
  gap:10px;
  align-items:end;
  flex-wrap:wrap;
}
.timebar label {
  flex:1;
  min-width:110px;
}
.primary,.secondary,.textbtn,.vote-btn {
  border-radius:8px;
  font-weight:600;
  line-height:1.3;
}
.primary,.secondary {
  padding:12px 16px;
  min-height:43px;
}
.primary {
  background:var(--teal);
  color:#fff;
  border:1px solid var(--teal);
}
.primary:hover {
  background:var(--dark);
}
.primary.wide {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.secondary {
  background:var(--paper);
  color:var(--teal);
  border:1px solid #acc3af;
}
.secondary:hover,.textbtn:hover {
  background:var(--soft);
}
.textbtn {
  background:none;
  border:0;
  padding:5px;
  color:var(--teal);
  font-size:13px;
}
.rail {
  position:sticky;
  top:16px;
}
.rail .card {
  border-top:4px solid var(--teal);
}
.count {
  background:var(--soft);
  font-size:12px;
  font-weight:650;
  border-radius:20px;
  padding:3px 10px;
}
.empty {
  padding:23px 14px;
  margin:18px 0;
  background:repeating-linear-gradient(-45deg,#f4f6ee,#f4f6ee 6px,#f6f8f1 6px,#f6f8f1 12px);
  border:1px dashed #b8c9b8;
  border-radius:10px;
  text-align:center;
}
.empty .calicon {
  display:block;
  margin:0 auto 8px;
  color:var(--teal);
}
.empty p {
  font-size:14px;
}
.empty .minor {
  font-size:12px;
  margin-top:3px;
}
.proposed {
  list-style:none;
  padding:0;
  margin:12px 0 18px;
}
.proposed li,.resultline {
  display:flex;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:11px 0;
}
.tile {
  background:var(--soft);
  border-radius:7px;
  min-width:43px;
  text-align:center;
  padding:5px;
  line-height:1.05;
}
.tile small {
  display:block;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.tile b {
  display:block;
  font-size:18px;
  margin-top:3px;
}
.time-info {
  flex:1;
  min-width:0;
}
.time-info strong {
  display:block;
  font-size:14px;
}
.time-info small {
  color:var(--muted);
  font-size:12px;
}
.trash {
  border:0;
  flex:none;
  font-size:17px;
}
.foot {
  font-size:12px;
  margin-top:10px;
  line-height:1.45;
}
.auth {
  margin:14px 0;
}
.auth .hint {
  margin:6px 0 0;
  font-size:12px;
}
.notice {
  margin:0 0 17px;
  border:1px solid #c1d7c5;
  border-radius:9px;
  background:var(--pale);
  padding:10px 14px;
  font-size:14px;
  white-space:pre-line;
  overflow-wrap:anywhere;
}
.notice.error {
  background:#fff0e8;
  border-color:#e2b4a1;
  color:#773b30;
}
.tight {
  margin-top:12px;
}
.share input {
  font-size:13px;
}
.share .rowhead {
  align-items:end;
}
.share .rowhead label {
  flex:1;
  min-width:0;
}
.pill {
  border-radius:20px;
  font-size:12px;
  background:var(--pale);
  color:var(--dark);
  padding:4px 10px;
  font-weight:650;
  display:inline-flex;
  align-items:center;
}
.votelist {
  list-style:none;
  padding:0;
  margin:15px 0;
}
.voterow {
  padding:13px 0;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.seg {
  display:inline-flex;
  gap:3px;
  flex-wrap:wrap;
}
.vote-btn {
  background:#fcfcf7;
  border:1px solid #cad5ca;
  color:#40574e;
  font-size:13px;
  padding:8px 10px;
}
.vote-btn[aria-pressed=true] {
  color:white;
  background:var(--teal);
  border-color:var(--teal);
}
.vote-btn.maybe[aria-pressed=true] {
  background:var(--amber);
  border-color:#bdaa63;
  color:#594817;
}
.vote-btn.no[aria-pressed=true] {
  background:#6c554e;
  border-color:#6c554e;
}
.resultline:last-child {
  border-bottom:0;
}
.counts {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}
.counts b {
  color:var(--ink);
}
.ribbon {
  display:flex;
  gap:2px;
  height:5px;
  border-radius:5px;
  overflow:hidden;
  background:var(--soft);
  margin:6px 0;
  max-width:240px;
}
.ribbon i {
  display:block;
}
.ribbon .yes {
  background:#428871;
}
.ribbon .maybe {
  background:#d2b76c;
}
.ribbon .no {
  background:#cabfb4;
}
.match {
  font-size:11px;
  color:var(--teal);
  font-weight:700;
}
.tablewrap {
  max-width:100%;
  overflow-x:auto;
  margin-top:14px;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
}
th,td {
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
th {
  color:var(--muted);
  font-weight:600;
}
th small {
  display:block;
}
.response-name {
  max-width:240px;
  white-space:normal;
  overflow-wrap:anywhere;
  color:var(--ink);
}
td.yes {
  color:var(--teal);
}
td.maybe {
  color:#76601e;
}
td.no {
  color:#7b564b;
}
.full {
  margin-top:18px;
}
.finalcard {
  background:var(--pale);
  margin-bottom:20px;
}
.finalcard h2 {
  margin-top:6px;
}
.finalcard .btns {
  margin-top:12px;
}
.credentials {
  max-width:500px;
}
.loading {
  color:var(--muted);
}
.readnote {
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.sr {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media(max-width:800px) {
  .bar,main {
    width:calc(100% - 36px);
  }
  main {
    padding-top:28px;
  }
  .grid {
    grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);
    gap:14px;
  }
  .card {
    padding:19px;
  }
  .fields {
    grid-template-columns:1fr;
  }
  .brand {
    font-size:24px;
  }
  .voterow .seg {
    width:100%;
  }
}
@media(max-width:650px) {
  .bar,main {
    width:calc(100% - 28px);
  }
  .bar {
    min-height:59px;
  }
  .grid {
    grid-template-columns:1fr;
  }
  .rail {
    position:static;
  }
  .fields {
    grid-template-columns:minmax(0,1fr) 108px;
  }
  .card {
    padding:18px 16px;
  }
  .hero {
    margin-bottom:18px;
  }
  .day {
    min-height:38px;
  }
  .voterow .seg {
    width:auto;
  }
  .bar-right {
    gap:5px;
  }
  .bar-right .textbtn {
    font-size:12px;
  }
  .hero h1 {
    font-size:42px;
  }
  .resultline {
    flex-wrap:wrap;
  }
}
@media(max-width:360px) {
  .fields {
    grid-template-columns:1fr;
  }
  .bar-right {
    justify-content:flex-end;
  }
  .brand {
    font-size:21px;
  }
  .seg {
    margin-left:0;
  }
  .bar,main {
    width:calc(100% - 20px);
  }
}
.bar-right {
  justify-content:flex-end;
}
@media(max-width:500px) {
  .bar-right {
    gap:2px;
  }
}
.times{border:0;padding:0;margin:12px 0 0;min-width:0}
.proposed-date{margin:16px 0}
.proposed-date h3{font-size:14px;font-weight:650}
.proposed-date .proposed{margin:2px 0 10px}
.proposed-date li{padding:3px 0}
.times legend{font-size:13px;font-weight:600;padding:0}
.time-entry{display:flex;align-items:center;gap:8px}
.time-entry input{flex:1}
.time-entry+.time-entry{margin-top:4px}
.times .rowhead{flex-wrap:wrap}
.proposed-date .proposed {
  margin: 6px 0 0;
}
.proposed-date .slot-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px 0;
}
.slot-row input {
  margin: 0;
  min-height: 36px;
  padding: 4px 6px;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.slot-detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.slot-row input[aria-invalid="true"] { border-color: #9f4d40; }
.slot-detail.invalid { color: #853c30; }
.slot-add, .slot-remove { flex-shrink: 0; }
.slot-add { background: var(--soft); }
.bulk-time { text-align: left; margin-top: 6px; }
@media(max-width:800px) and (min-width:651px) {
  .proposed-date .slot-row { grid-template-columns: minmax(0, 1fr) auto; }
  .slot-row .slot-detail { grid-column: 1; grid-row: 2; }
  .slot-row .slot-remove { grid-column: 2; grid-row: 1; }
}
.availability { border: 1px solid var(--line); background: #f6faf5; border-radius: 9px; margin: 12px 0 18px; }
.availability summary { color: var(--teal); font-weight: 650; cursor: pointer; padding: 10px 14px; }
.availability summary:focus-visible { border-radius: 8px; }
.availability-body { padding: 0 14px 14px; }
.availability .btns { gap: 7px; }
.availability .secondary { padding: 7px 12px; min-height: 36px; }
.availability #provider-options, .calendar-search { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.availability #provider-options label, .availability #prune { margin-top: 8px; }
#calendar-name { overflow-wrap: anywhere; }
.availability .hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 320px; margin: 6px 0 12px; }
#availability-status:not(:empty) { margin-top: 10px; }
.calendar-error { color: var(--red); }

.sentence-builder {
  padding: clamp(20px, 3.5vw, 38px);
  margin-bottom: 22px;
  border: 1px solid #ccdbcf;
  border-radius: 17px;
  background: #eef5ed;
}
.schedule-sentence {
  max-width: 52ch;
  font: 500 clamp(23px, 3vw, 35px)/1.75 var(--serif);
  letter-spacing: -.025em;
}
.schedule-sentence input, .schedule-sentence select,
.calendar-token, .calendar-add {
  display: inline-block;
  vertical-align: baseline;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid #a9c4b2;
  border-radius: 6px;
  background: var(--paper);
  color: var(--teal);
  font: 600 clamp(15px, 1.6vw, 18px)/1.3 var(--sans);
  letter-spacing: -.025em;
}
.schedule-sentence input, .schedule-sentence select { min-height: 35px; }
.schedule-sentence input[type=number] { width: 3.6em; }
.sentence-stop { white-space: nowrap; }
.calendar-sentence { margin: 10px 0 18px; line-height: 2.45; }
.calendar-token, .calendar-add { font-size: 14px; overflow-wrap: anywhere; }
.calendar-add { background: transparent; border-style: dashed; }
.calendar-token:hover, .calendar-add:hover { background: var(--soft); }
.sentence-actions { display: flex; gap: 10px 18px; align-items: flex-start; flex-wrap: wrap; }
.schedule-sentence .sentence-time { width: 7em; font-variant-numeric: tabular-nums; }
.clock-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--teal);
  font: 600 13px/1.3 var(--sans);
  letter-spacing: normal;
  cursor: pointer;
}
.clock-switch input[type=checkbox] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  cursor: pointer;
}
.sentence-result { color: var(--muted); font-size: 14px; }
.sentence-result:has(#sentence-status:not(:empty)) { margin-top: 13px; }
#sentence-calendar-panel .availability { background: var(--paper); margin: 16px 0 0; }
#sentence-calendar-panel #prune, #sentence-calendar-panel .calendar-search,
#sentence-calendar-panel #calendar-undo { display: none; }

.manual-shortcut { margin-left: auto; padding: 11px 0; font-size: 13px; }
.sentence-result a { margin: 0 5px; }
@media (max-width: 650px) {
  .manual-shortcut { margin-left: 0; }
}

.sponsor-banner {
  box-sizing:border-box;
  max-width:728px;
  margin:16px auto;
  padding:10px 20px;
  background:var(--paper);
  border-block:1px solid var(--line);
  text-align:center;
  overflow-wrap:anywhere;
}
.sponsor-banner small {
  display:block;
  color:var(--muted);
  font-size:12px;
}
