:root {
  /* Just a Scheduler brand: dark charcoal, hot pink, lime green.
     (The --blue names are kept so the rest of the stylesheet is unchanged; they now hold the hot pink.) */
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --navy: #1f1f1f;
  --text: #3d3d3d;
  --strong: #1f1f1f;
  --muted: #6e6e6e;
  --bg: #ffffff;
  --panel: #f7f7f5;
  --line: #e2e2de;
  --shadow: rgba(31, 31, 31, 0.07) 0px 1px 6px 0px;
  --blue: #d81b6a;
  --blue-border: #b0125a;
  --blue-soft: #fde8f1;
  --lime: #b8e62e;
  --lime-soft: #f3fbd9;
  --red: #c62828;
  --radius: 6px;
  --radius-button: 5px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--blue-border); }
h1, h2, h3 { color: var(--strong); margin: 0; }
h1 { font-size: 30px; letter-spacing: -0.01em; }
h2 { font-size: 18px; }
h3 { font-size: 18px; }
.section > h2 { font-size: 26px; letter-spacing: -0.01em; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 20px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--strong); min-width: 0; }
.g-logo { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; flex: none; }
.g-mark { width: 38px; height: 38px; display: block; }
.g-word { font: 800 24px/1 "Arial Rounded MT Bold", "Nunito", "Varela Round", var(--font); color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.g-sub { display: none; }
.topbar { border-bottom-color: var(--lime) !important; border-bottom-width: 3px !important; }
.brand-divider { width: 1px; height: 36px; background: var(--line); flex: none; }
.brand-app { font: 700 18px var(--font); color: var(--muted); }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--strong); min-width: 0; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .sep { width: 1px; height: 18px; background: var(--line); }
.who .btn-link { font-size: 14px; }

.page { max-width: 820px; margin: 0 auto; padding: 32px 20px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--text); font-size: 15px; }
.section-sub { margin: 4px 0 16px; color: var(--text); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border: 1px solid #cccccc; border-radius: var(--radius-button);
  background: #f5f5f5; color: var(--strong); font: 700 13px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #eeeeee; border-color: #bbbbbb; }
.btn-primary { background: var(--blue); border-color: var(--blue-border); color: #fff; }
.btn-primary:hover { background: var(--blue-border); border-color: #014a70; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }
.btn-big { height: 40px; padding: 0 22px; font-size: 15px; }
.btn-link { background: none; border: none; color: var(--blue-border); padding: 0; height: auto; font-weight: 400; }
a.btn-link { text-decoration: none; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-danger { color: var(--red); }

/* Schedule cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius);
  background: var(--bg); border-top: 4px solid var(--lime); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 0; min-width: 0;
}
.card.off { opacity: .6; }
.meta, .card .meta { color: var(--muted); font-size: 13px; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.icon-tile { width: 52px; height: 52px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile.small { width: 28px; height: 28px; border-radius: 5px; }
.icon-tile.small svg { width: 16px; height: 16px; }
.card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.card h3 .dot { margin: 0; }
.card .line { color: var(--strong); font-size: 14px; line-height: 1.5; }
.card .stats { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.card .stats b { color: var(--text); }
.card .stats div:last-child { color: var(--muted); }
.card .link-row { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: 12px; }
.card .link-row input { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; font: 13px var(--font); color: var(--strong); background: #f1f2f4; }
.card .actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; position: relative; }
.card .actions .sep { width: 1px; height: 16px; background: var(--line); }
.card .actions .more { margin-left: auto; width: 30px; height: 26px; border: none; background: none; border-radius: 4px; cursor: pointer; font: 700 18px/1 var(--font); color: var(--strong); letter-spacing: 1px; }
.card .actions .more:hover { background: var(--panel); }
.more-menu { position: absolute; right: 0; bottom: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 6px 0; z-index: 4; min-width: 150px; display: flex; flex-direction: column; }
.more-menu[hidden] { display: none; }
.more-menu button { background: none; border: none; text-align: left; padding: 8px 14px; font: 14px var(--font); color: var(--strong); cursor: pointer; }
.more-menu button:hover { background: var(--panel); }
.more-menu .btn-danger { color: var(--red); }
.empty { border: 1px dashed #cccccc; border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }

.section { margin-top: 34px; }
.section > h2 { margin-bottom: 4px; }

/* Bookings table */
.bookings { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.bookings th, .bookings td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; color: var(--strong); }
.bookings th { font-size: 14px; font-weight: 400; color: var(--text); }
.bookings td.when b { font-weight: 700; }
.bookings td.act { text-align: right; vertical-align: middle; }
.bookings td.act .btn-link { font-size: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tabs { display: flex; gap: 6px; margin: 14px 0 8px; }
.tab { border: 1px solid transparent; background: none; padding: 7px 16px; border-radius: var(--radius); cursor: pointer; font: 15px var(--font); color: var(--strong); }
.tab[aria-selected="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.footnote { margin-top: 22px; font-size: 13px; color: var(--text); }

/* Editor dialog */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-start; justify-content: center; padding: 30px 10px; overflow-y: auto; z-index: 10; }
.overlay[hidden] { display: none; }
.dialog { width: 600px; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 30px rgba(0,0,0,.2); }
.dialog-head { padding: 20px 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dialog-body { padding: 20px 25px; display: flex; flex-direction: column; gap: 16px; }
.dialog-foot { padding: 16px 25px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close { background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }

.field label, .field .label { display: block; font-weight: 700; color: var(--strong); margin-bottom: 4px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.field input[type=text], .field input[type=number], .field select, .field textarea, .booking-form input, .booking-form textarea {
  width: 100%; height: 32px; border: 1px solid #bbbbbb; border-radius: var(--radius); padding: 4px 8px;
  font: 14px var(--font); color: var(--strong); background: #fff;
}
.field textarea, .booking-form textarea { height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .booking-form input:focus, .booking-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.colors { display: flex; gap: 8px; }
.colors label { margin: 0; }
.colors input { position: absolute; opacity: 0; width: 0; height: 0; }
.colors span { display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; }
.colors input:checked + span { box-shadow: 0 0 0 2px var(--strong); }
.colors input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.hours { border: 1px solid var(--line); border-radius: var(--radius); }
.hours-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.hours-row .times { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.hours-row input[type=time] { height: 30px; border: 1px solid #bbbbbb; border-radius: var(--radius); padding: 2px 6px; font: 13px var(--font); color: var(--strong); }
.hours-row .unavailable { color: var(--muted); font-style: italic; }
.form-error { color: var(--red); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 18px; border-radius: var(--radius); font-size: 13px; z-index: 20; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Public booking page */
.book-wrap { max-width: 960px; margin: 30px auto 60px; padding: 0 20px; }
.book-card { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); background: var(--bg); min-height: 460px; }
.book-info { padding: 25px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.book-info .host { color: var(--muted); font-weight: 700; }
.book-info .detail { display: flex; gap: 8px; color: var(--text); }
.book-info .detail i { font-style: normal; width: 18px; text-align: center; color: var(--muted); }
.book-main { padding: 25px; min-width: 0; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 25px; }
.picker.no-day { grid-template-columns: minmax(0, 1fr); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.cal-head button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; color: var(--strong); }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dow { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal button { aspect-ratio: 1 / 1; max-height: 44px; border: none; border-radius: 50%; background: none; font: 14px var(--font); color: #bbb; cursor: default; }
.cal button.open { background: var(--blue-soft); color: var(--blue-border); font-weight: 700; cursor: pointer; }
.cal button.open:hover { background: #fbd3e4; }
.cal button.sel { background: var(--blue); color: #fff; }
.cal button.today { text-decoration: underline; }
.slots { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 2px; }
.slots h3 { margin: 10px 0 4px; font-size: 14px; }
.slot { height: 40px; border: 1px solid var(--blue); border-radius: var(--radius-button); background: #fff; color: var(--blue-border); font: 700 14px var(--font); cursor: pointer; flex: none; }
.slot:hover { background: var(--blue-soft); }
.slot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: none; }
.slot-pair .slot { background: #555; border-color: #555; color: #fff; }
.slot-pair .btn-primary { height: 40px; }
.tz { font-size: 12px; color: var(--muted); margin-top: 12px; }
.booking-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.booking-form label { font-weight: 700; color: var(--strong); display: block; margin-bottom: 4px; }
.done { text-align: center; padding: 30px 10px; }
.done .done-mark { width: 56px; height: 56px; border-radius: 50%; background: #3aa757; color: #fff; font-size: 30px; line-height: 56px; margin: 0 auto 16px; }
.notice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--muted); font-size: 13px; }

/* Your calendars */
.cal-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.source { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.source p { margin: 8px 0 12px; }
.source-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.source-head h3 { font-size: 17px; margin: 4px 0 4px; }
.source-head .sub { font-size: 13px; color: var(--text); line-height: 1.5; }
.source-head > div { flex: 1; min-width: 0; }
.source .tip { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.gcal-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; background: #fff; border: 2px solid #4787f4; border-top-width: 6px; color: #1e5fb4; font: 700 10px var(--font); flex: none; }
.gcal-icon.small { width: 18px; height: 18px; border-top-width: 5px; font-size: 8px; }
.file-icon { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 5px; border-radius: 4px; background: #eeeeee; color: var(--muted); font: 700 10px var(--font); }
.pill { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 8px; margin-left: auto; }
.pill.ok { background: #e6f4ea; color: #1e7e34; }
.pill.warn { background: #fef7e0; color: #a15c00; }
.inline-form { display: flex; gap: 6px; margin-bottom: 8px; }
.inline-form input { flex: 1; min-width: 0; height: 32px; border: 1px solid #bbbbbb; border-radius: var(--radius); padding: 0 8px; font: 13px var(--font); }
.steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
.steps li { margin-bottom: 5px; }
.steps code { background: var(--panel); border: 1px solid var(--line); padding: 1px 4px; border-radius: 3px; word-break: break-all; }
.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-list { list-style: none; margin: 0 0 14px; padding: 0; }
.cal-list li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal-list .grow { flex: 1; min-width: 0; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }

/* Schedule editor */
.editor .back { display: inline-block; margin-bottom: 10px; }
.panel { border: 1px solid #dadce0; border-radius: 8px; background: #fff; margin-bottom: 20px; }
.panel-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: none; border: none; border-bottom: 1px solid #dadce0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.panel-head[aria-expanded="false"] { border-bottom: none; }
.panel-head[aria-expanded="false"] .chev { transform: rotate(180deg); }
.panel-head h2 { flex: 1; font-size: 16px; }
.picon { width: 20px; text-align: center; color: var(--muted); }
.chev { color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.panel-body { padding: 25px 45px 10px; }
.panel-body hr { border: none; border-top: 1px solid #dadce0; margin: 8px 0 22px; }
.erow { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; margin-bottom: 22px; }
.erow.full { grid-template-columns: minmax(0, 1fr); }
.efield { min-width: 0; }
.elabel, .efield > .elabel label { display: block; font-weight: 700; color: var(--strong); margin-bottom: 8px; }
.help { font-size: 12px; line-height: 1.6; color: var(--muted); padding-top: 26px; }
.help .btn-link { font-size: 12px; }
.in { height: 40px; border: 1px solid #dde3ea; border-radius: var(--radius); background: #f5f8fb; padding: 0 10px; font: 14px var(--font); color: var(--strong); max-width: 100%; vertical-align: middle; }
textarea.in { height: auto; padding: 10px; line-height: 1.4; resize: vertical; width: 100%; }
.in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #fff; }
.in:disabled { opacity: .55; }
.w-lg { width: 420px; } .w-md { width: 385px; } .w-sm { width: 260px; } .w-xs { width: 120px; }
.num { width: 64px; }
.in.t { width: 128px; padding: 0 6px; }
.sample { font-size: 12px; color: var(--muted); margin-top: 6px; }
.select-dot { position: relative; display: inline-block; max-width: 100%; }
.select-dot .dot { position: absolute; left: 12px; top: 15px; margin: 0; }
.select-dot select { padding-left: 28px; }
.radios { display: flex; flex-direction: column; gap: 12px; }
.radio, .check { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.radio input[type=radio], .check input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.check.inline { margin-right: 6px; }
.efield > .check.inline + .num { margin-right: 4px; }

.avail-box { border: 1px solid #dadce0; border-radius: 8px; padding: 25px 25px 10px; margin-bottom: 25px; }
.avail-box .erow { grid-template-columns: minmax(0, 1fr) 220px; }
.dropdown { position: relative; display: inline-block; }
.drop-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.drop-btn .caret { margin-left: auto; color: var(--blue); }
.drop-menu { position: absolute; z-index: 5; top: 44px; left: 0; min-width: 300px; background: #fff; border: 1px solid #dadce0; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #dadce0; padding-bottom: 8px; }
.week-head .elabel { margin: 0; }
.seg { display: inline-flex; background: #f1f3f4; border: 1px solid #dadce0; border-radius: 6px; padding: 2px; }
.seg button { border: none; background: none; padding: 7px 12px; border-radius: 4px; font: 14px var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--strong); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.week-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 35px; margin-bottom: 20px; }
.week-main { min-width: 0; }
.day-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 14px 0; border-bottom: 1px solid #e8eaed; }
.day-row .day { padding-top: 10px; }
.ranges { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash { color: var(--strong); }
.unavail { color: #9aa0a6; padding-top: 10px; display: inline-block; }
.day-acts { display: flex; gap: 2px; padding-top: 4px; }
.icon-btn { width: 32px; height: 32px; border: none; background: none; border-radius: 50%; cursor: pointer; color: #9aa0a6; font-size: 17px; }
.icon-btn:hover { background: #f1f3f4; }
.icon-btn.plus { color: var(--blue); font-size: 24px; line-height: 1; }
.icon-btn.tiny { width: 18px; height: 16px; font-size: 9px; border-radius: 3px; color: var(--muted); padding: 0; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.x { width: 22px; height: 22px; border-radius: 50%; border: none; background: #bdc1c6; color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; flex: none; }
.x:hover { background: #80868b; }
.copy-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: #f8f9fa; border-bottom: 1px solid #e8eaed; }
.week-side .elabel { padding-top: 14px; }
.ov-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid #e8eaed; }
.ov-form { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.ov-form .elabel { margin: 0; }
.ov-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-text { word-break: break-all; color: var(--strong); }
.q-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-move { display: flex; flex-direction: column; gap: 2px; }
.q-text { width: 300px; max-width: 100%; }
.btn-link.add { font-size: 15px; color: var(--blue); margin-top: 4px; }
.editor-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.editor-title h1 { margin: 0; flex: 1; }
.savebar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 0 0; }
.savebar .form-error { flex: 1; text-align: right; }
.savebar #save-state { margin-right: auto; }

/* Emails */
.pill.bad { background: #fce8ea; color: var(--red); }
.relay-form { margin: 0 0 14px; }
.relay-form .inline-form input[type=password] { flex: 0 1 220px; }
@media (max-width: 560px) { .relay-form .inline-form { flex-wrap: wrap; } .relay-form .inline-form input { flex: 1 1 100%; } }
.email-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.email-grid .elabel { margin-bottom: 6px; }
.email-grid .check { display: flex; margin-bottom: 6px; font-size: 14px; }
.previews { margin-top: 4px; font-size: 13px; color: var(--muted); }
.previews .btn-link { font-size: 13px; }
.mails td { font-size: 13px; }
.mails td b { font-size: 14px; font-weight: 700; word-break: break-word; }
.mails td.kind { width: 1%; white-space: nowrap; }
.mails .pill { margin-left: 0; }
.preview-dialog { width: 680px; }
.preview-dialog .dialog-head h2 { font-size: 15px; word-break: break-word; }
#preview-frame { display: block; width: 100%; height: 70vh; border: none; border-top: 1px solid var(--line); background: #f4f6f8; }
.book-info .notice { margin-bottom: 4px; }
@media (max-width: 800px) { .email-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .email-grid { grid-template-columns: minmax(0, 1fr); } }

/* Meeting confirmed / cancel meeting cards */
.confirm-wrap { max-width: 640px; margin: 0 auto; }
.confirm-card { border: 1px solid #d6dbe1; border-radius: 10px; background: #fff; padding: 32px 32px 26px; box-shadow: var(--shadow); }
.confirm-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.confirm-head h1 { font-size: 24px; color: var(--strong); }
.confirm-check { width: 40px; height: 40px; border-radius: 50%; background: var(--lime-soft); color: #4f7a00; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.confirm-check svg { width: 22px; height: 22px; }
.confirm-check.grey { background: #e7eaee; color: var(--muted); }
.confirm-body { font-size: 16px; color: var(--strong); line-height: 1.5; }
.confirm-body p { margin: 0 0 18px; }
.confirm-what b { font-weight: 700; }
.confirm-links a { color: var(--blue); text-decoration: none; }
.confirm-links a:hover { text-decoration: underline; }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 10px; color: #8a939e; font: 700 20px var(--font); }
.powered img { width: 24px; height: 24px; filter: grayscale(1); opacity: .65; }
.powered em { font-style: normal; font-weight: 400; color: #a3abb4; border-left: 1px solid var(--line); padding-left: 10px; font-size: 17px; }
.cancel-card h1 { font-size: 21px; margin-bottom: 6px; }
.cx-sub { margin: 0 0 22px; color: var(--strong); }
.cx-sub a { color: var(--blue); text-decoration: none; }
.cx-rows { display: flex; flex-direction: column; gap: 22px; }
.cx-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--strong); line-height: 1.55; }
.cx-icon { width: 22px; height: 22px; color: #6b7280; margin-top: 1px; }
.cx-break { word-break: break-all; }
.cx-row textarea { width: 100%; min-height: 40px; border: none; background: #f1f3f4; border-radius: 3px; padding: 10px 8px; font: italic 15px var(--font); color: var(--strong); resize: vertical; }
.cx-row textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.cx-actions { display: flex; justify-content: flex-end; gap: 18px; margin-top: 24px; }
.cx-never { height: 40px; background: #f1f3f4; border-color: #f1f3f4; font-weight: 400; font-size: 15px; }
.cx-cancel { height: 40px; background: #e8220f; border-color: #e8220f; color: #fff; font-weight: 400; font-size: 15px; }
.cx-cancel:hover { background: #c81c0c; border-color: #c81c0c; }
@media (max-width: 560px) {
  .confirm-card { padding: 22px 16px; }
  .confirm-head h1 { font-size: 20px; }
  .cx-actions { justify-content: stretch; }
  .cx-actions .btn { flex: 1; }
}

/* Booking page extras */
.tz-pick { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tz-pick select { height: 32px; max-width: 100%; border: 1px solid #bbbbbb; border-radius: var(--radius); font: 13px var(--font); color: var(--strong); padding: 0 6px; }
.sync-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

@media (max-width: 900px) {
  .erow, .avail-box .erow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .help { padding-top: 0; }
  .week-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .panel-body { padding: 20px 20px 6px; }
  .w-lg, .w-md { width: 100%; }
}
@media (max-width: 800px) {
  .cal-sources { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .book-card { grid-template-columns: minmax(0, 1fr); }
  .book-info { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .picker { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .hours-row { grid-template-columns: minmax(0, 1fr); }
  .bookings thead { display: none; }
  .bookings tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .bookings td { display: block; border: none; padding: 3px 0; }
  .topbar { padding: 8px 12px; }
  .who .email { max-width: 110px; }
  .brand { gap: 10px; }
  .brand-app { font-size: 15px; }
  .g-word { font-size: 17px; }
  .g-sub { display: none; }
  .g-mark { width: 30px; height: 30px; }
  h1 { font-size: 25px; }
  .section > h2 { font-size: 22px; }
  .bookings td.act { text-align: left; }
  .avail-box { padding: 16px 12px 6px; }
  .panel-body { padding: 16px 14px 6px; }
  .day-row { grid-template-columns: 62px minmax(0, 1fr); }
  .day-acts { grid-column: 2; padding-top: 0; }
  .in.t { width: 112px; }
  .w-sm { width: 100%; }
  .q-row { flex-wrap: wrap; }
  .q-text { width: calc(100% - 30px); }
  .drop-menu { min-width: 240px; }
}

/* "Add to my calendar" on the confirmation page */
.addcal { margin: 0 0 18px; padding: 14px 16px; background: var(--lime-soft); border-radius: var(--radius); }
.addcal-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--strong); }
.addcal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.addcal .meta { margin-top: 8px; }

/* Privacy policy and terms pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; font-size: 15px; line-height: 1.65; color: var(--text); }
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-border); }
.legal h3 { font-size: 16px; margin: 20px 0 6px; }
.legal ol { margin: 0 0 12px; }
.legal code { background: var(--panel); border: 1px solid var(--line); padding: 1px 4px; border-radius: 3px; }

/* "Your links start with …/book/<username>/" on the schedules page */
.handle-line { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.handle-line b { color: var(--strong); }
.handle-line .in { height: 32px; width: 200px; }
.handle-line .btn { height: 32px; padding: 0 12px; }

/* The administrator's email list: a filter bar over a scrolling box */
.mail-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 8px; }
.mail-filter .in { height: 36px; }
.mail-filter #mail-q { flex: 1 1 240px; min-width: 0; }
.mail-scroll { max-height: 440px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.mail-scroll .mails { margin: 0; }
