:root {
  --ink:#152d3b;
  --muted:#526775;
  --blue:#176d89;
  --blue-hover:#11546b;
  --line:#dce5ea;
  --bg:#f5f8fa;
  --pale:#e9f5f9;
  --green:#176245;
  --red:#a3293a;
  --surface:#fff;
  --hover:#edf3f6;
  --input-border:#bacbd5;
  --placeholder:#748692;
  --primary-ink:#fff;
  --danger-bg:#fff4f5;
  --danger-border:#edc9ce;
  --invalid-bg:#fffafb;
  --danger-hover:#fbe7ea;
  --bar-bg:#ffffffed;
  --join-border:#cbe4ed;
  --success-bg:#e7f5ed;
  --success-ink:#176245;
  --tentative-bg:#fff3d6;
  --tentative-ink:#805a05;
  --neutral-bg:#f0f3f5;
  --neutral-ink:#576977;
  --best-bg:#edf8f1;
  --my-row-bg:#edf6fc;
  --you-bg:#deeff8;
  --totals-bg:#f8fafb;
  --preview-gradient:linear-gradient(135deg,#dceff6,#e8eeff);
  --details-accent:#5b4592;
  --radius:16px;
  color-scheme:light;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.6;
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --ink:#e8edf3;
  --muted:#aebdcc;
  --blue:#73cce9;
  --blue-hover:#9eddf1;
  --line:#303b47;
  --bg:#0d1117;
  --surface:#161c24;
  --hover:#222d39;
  --pale:#192f3c;
  --green:#7ed9ab;
  --red:#ff9daa;
  --input-border:#48596b;
  --placeholder:#99aabb;
  --primary-ink:#0b2430;
  --danger-bg:#3b2029;
  --danger-border:#7d4350;
  --invalid-bg:#301c24;
  --danger-hover:#4a2531;
  --bar-bg:#161c24f2;
  --join-border:#365b6b;
  --success-bg:#193b2b;
  --success-ink:#97e8b9;
  --tentative-bg:#3c311b;
  --tentative-ink:#f5d58b;
  --neutral-bg:#252f3a;
  --neutral-ink:#c6d2df;
  --best-bg:#183025;
  --my-row-bg:#192e40;
  --you-bg:#23465b;
  --totals-bg:#1b232d;
  --preview-gradient:linear-gradient(135deg,#153643,#23263f);
  --details-accent:#c3aff5;
}

* {
  box-sizing:border-box;
}
body {
  margin:0;
}
a {
  color:var(--blue);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input {
  font:inherit;
}
button,a,input {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:wait;
  opacity:.65;
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #259dc2;
  outline-offset:4px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.035em;
}
h1 {
  font-size:clamp(2rem,4vw,3rem);
  margin-bottom:16px;
}
h2 {
  font-size:1.3rem;
}
p {
  color:var(--muted);
}
.shell {
  width:min(1160px,calc(100% - 48px));
  margin-inline:auto;
}
.site-header {
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.nav {
  flex-wrap:wrap;
  padding-block:12px;
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand {
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  font-size:1.6rem;
  letter-spacing:-.055em;
  font-weight:800;
  color:var(--ink);
}
.brand:hover {
  text-decoration:none;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:var(--blue);
  color:var(--primary-ink);
  border-radius:10px;
  margin-right:10px;
  font-size:1.65rem;
}
.brand-accent {
  color:var(--blue);
}
.nav-links,.actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.nav-links {
  min-width:0;
  max-width:100%;
  gap:24px;
  font-size:.9rem;
  font-weight:600;
}
.language-selector {
  margin:0;
}
.language-selector select {
  width:auto;
  min-width:6.5rem;
  min-height:44px;
  padding:.5rem;
  font:inherit;
  color:inherit;
  background:var(--surface);
  border:1px solid var(--input-border);
  border-radius:8px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  border-radius:9px;
  font-weight:650;
  font-size:.9rem;
  text-decoration:none;
  line-height:1.5;
  max-width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
}
.button:hover {
  background:var(--hover);
  text-decoration:none;
}
.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:var(--primary-ink);
}
.primary:hover {
  background:var(--blue-hover);
}
.quiet {
  background:transparent;
  border-color:transparent;
}
.danger {
  background:var(--danger-bg);
  border-color:var(--danger-border);
  color:var(--red);
}
.large {
  padding:14px 24px;
  min-height:52px;
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:750;
  color:var(--blue);
  margin-bottom:20px;
}
.help {
  color:var(--muted);
  font-size:.875rem;
}
.help {
  margin:8px 0 0;
}
.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:70px;
  padding:92px 0 80px;
}
.hero h1 {
  font-size:clamp(2.8rem,5.1vw,4.6rem);
  line-height:1.06;
  max-width:600px;
}
.hero-copy>p:not(.eyebrow) {
  font-size:1.1rem;
  max-width:460px;
  margin-bottom:30px;
}
.hero-note {
  margin-top:20px!important;
  font-size:.85rem!important;
}
.preview-wrap {
  position:relative;
  padding:24px 0;
}
.preview-wrap:before {
  content:"";
  position:absolute;
  inset:0 -20px;
  background:var(--preview-gradient);
  border-radius:48% 52% 40% 40%;
  z-index:-1;
}
.preview {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:0 18px 55px #17364a0d;
  transform:rotate(-2deg);
}
.preview-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
  font-weight:750;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.75rem;
  padding:4px 9px;
  border-radius:6px;
  background:var(--pale);
  color:var(--blue);
  font-weight:650;
}
.mini-grid {
  display:grid;
  grid-template-columns:1fr repeat(3,1fr);
  gap:7px;
  text-align:center;
  font-size:.8rem;
}
.mini-grid>span {
  padding:10px 3px;
  border-radius:7px;
}
.mini-grid .mini-name {
  text-align:left;
  font-weight:600;
}
.available {
  background:var(--success-bg);
  color:var(--success-ink);
}
.tentative {
  background:var(--tentative-bg);
  color:var(--tentative-ink);
}
.unavailable {
  background:var(--neutral-bg);
  color:var(--neutral-ink);
}
.preview-result {
  margin:20px 0 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:.85rem;
  color:var(--green);
}
.steps {
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  padding:36px 0 56px;
}
.step-icon {
  font-size:1.3rem;
  color:var(--blue);
  display:block;
  margin-bottom:14px;
}
.steps h2 {
  font-size:1.05rem;
  margin-bottom:8px;
}
.steps p {
  font-size:.9rem;
  margin:0;
}
.site-footer {
  border-top:1px solid var(--line);
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:.8rem;
  color:var(--muted);
  margin-top:32px;
}
.site-footer>div {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}
.page {
  padding-top:44px;
  padding-bottom:40px;
  min-height:70vh;
}
.page-heading {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:32px;
}
.page-heading > div {
  min-width:0;
  max-width:100%;
}
.page-heading h1 {
  overflow-wrap:anywhere;
}
.page-heading .eyebrow {
  margin-bottom:12px;
}
.page-heading p {
  margin-bottom:0;
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
}
.editor-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}
.panel-title {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.panel-intro {
  font-size:.9rem;
  margin-bottom:26px;
}
.field {
  margin-bottom:24px;
}
label,.field-label {
  display:block;
  font-size:.9rem;
  font-weight:650;
  margin-bottom:8px;
}
input[type=text],input[type=email],input[type=number],input[type=date],input[type=time] {
  width:100%;
  min-width:0;
  border:1px solid var(--input-border);
  border-radius:8px;
  padding:11px 12px;
  background:var(--surface);
  color:var(--ink);
  font-size:1rem;
  min-height:46px;
}
input::placeholder {
  color:var(--placeholder);
}
.field-error {
  display:block;
  color:var(--red);
  font-size:.8rem;
  min-height:0;
  margin-top:6px;
}
.invalid {
  border-color:var(--red)!important;
  background:var(--invalid-bg)!important;
}
.timezone-note {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:.85rem;
}
.editor-actions {
  position:sticky;
  bottom:0;
  z-index:5;
  background:var(--bar-bg);
  backdrop-filter:blur(12px);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 20px -12px rgb(21 45 59 / 28%);
  margin-top:28px;
  padding:18px 10px;
}
.editor-action-controls {
  display:grid;
  grid-template-columns:minmax(0,auto) minmax(0,1fr) minmax(0,auto);
  align-items:center;
  gap:20px;
}
.editor-actions .retention-note {
  justify-self:center;
  margin:0;
  padding:10px 14px;
  border-radius:8px;
  background:var(--bg);
  color:var(--muted);
  font-size:.85rem;
  text-align:center;
}
@media(max-width:640px) {
  .editor-action-controls {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:12px;
  }
  .editor-actions .retention-note {
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
  }
  .editor-actions .button {
    grid-row:2;
    padding-inline:12px;
  }
}
.form-status {
  color:var(--red);
  font-size:.9rem;
  margin-top:16px;
}
.ql-toolbar.ql-snow {
  border-color:var(--input-border)!important;
  border-radius:8px 8px 0 0;
}
.ql-container.ql-snow {
  border-color:var(--input-border)!important;
  border-radius:0 0 8px 8px;
  font:inherit!important;
}
.ql-editor {
  min-height:220px;
  font-size:1rem;
  line-height:1.7;
}
.ql-editor p {
  color:inherit;
}
.event-description .ql-editor {
  min-height:0;
  padding:0;
}
.event-description {
  margin-bottom:24px;
  overflow-wrap:anywhere;
}
.event-description pre {
  white-space:pre-wrap;
}
.event-heading {
  align-items:start;
}
.event-heading h1 {
  font-size:2rem;
}
.join-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
  background:var(--pale);
  border-color:var(--join-border);
}
.join-panel h2 {
  font-size:1.1rem;
  margin-bottom:6px;
}
.join-panel p {
  margin:0;
  font-size:.85rem;
}
.join-controls {
  display:flex;
  min-width:0;
  gap:8px;
  max-width:460px;
  width:100%;
  align-items:end;
}
.join-controls>div {
  flex:1;
  min-width:0;
}
.join-controls label {
  font-size:.8rem;
}
.grid-heading {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:start;
  margin:32px 0 16px;
}
.grid-heading h2 {
  margin-bottom:8px;
}
.grid-heading p {
  font-size:.85rem;
  margin:0;
}
.save-status {
  font-size:.85rem;
  color:var(--green);
  text-align:right;
  max-width:350px;
}
.save-status.error {
  color:var(--red);
}
.table-scroll {
  overflow:auto;
  max-height:65vh;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.availability-table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  text-align:center;
  font-size:.9rem;
}
.availability-table th,.availability-table td {
  padding:18px 16px;
  border-bottom:1px solid var(--line);
  min-width:150px;
}
.availability-table thead th {
  background:var(--bg);
  position:sticky;
  top:0;
  z-index:2;
  font-weight:600;
}
.availability-table th:first-child,.availability-table td:first-child {
  position:sticky;
  left:0;
  z-index:1;
  background:var(--surface);
  text-align:left;
  min-width:190px;
  max-width:240px;
  overflow-wrap:anywhere;
  box-shadow:1px 0 0 var(--line);
}
.availability-table thead th:first-child {
  z-index:3;
  background:var(--bg);
}
.slot-time {
  display:flex;
  flex-direction:column;
  gap:3px;
}
.slot-hour {
  font-size:1rem;
  font-weight:750;
}
.slot-date {
  font-size:.8rem;
  color:var(--muted);
}
.best-label {
  display:none;
  color:var(--green);
  font-size:.75rem;
  margin-top:8px;
}
.best-slot .best-label {
  display:block;
}
.availability-table .best-slot {
  background:var(--best-bg);
}
.availability-table .my-row td:first-child {
  background:var(--my-row-bg);
}
.participant-name {
  font-weight:650;
}
.you-label {
  font-size:.7rem;
  background:var(--you-bg);
  color:var(--blue);
  border-radius:4px;
  padding:3px 6px;
  margin-left:6px;
}
.last-edit {
  display:block;
  color:var(--muted);
  font-size:.75rem;
  margin-top:6px;
  font-weight:400;
}
.state-btn {
  min-width:116px;
  min-height:42px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:.875rem;
  font-weight:650;
  padding:8px 10px;
  background:var(--neutral-bg);
  color:var(--neutral-ink);
}
.state-btn[data-state=available] {
  background:var(--success-bg);
  color:var(--success-ink);
}
.state-btn[data-state=tentative] {
  background:var(--tentative-bg);
  color:var(--tentative-ink);
}
.state-btn[data-state=unavailable] {
  background:var(--neutral-bg);
  color:var(--neutral-ink);
}
.state-btn[data-state=available]:before {
  content:"✓ ";
}
.state-btn[data-state=tentative]:before {
  content:"? ";
}
.state-btn[data-state=unavailable]:before {
  content:"− ";
}
.state-btn:disabled {
  cursor:default;
  opacity:1;
}
.state-btn:not(:disabled):hover {
  border-color:currentColor;
}
.availability-table tfoot td {
  border-bottom:0;
  font-weight:700;
  font-size:.85rem;
  background:var(--totals-bg);
}
.scroll-hint {
  font-size:.8rem;
  margin:12px 0;
  color:var(--muted);
}
.event-menu,.card-menu {
  position:relative;
}
.event-menu summary,.card-menu summary {
  list-style:none;
}
.event-menu summary::-webkit-details-marker,.card-menu summary::-webkit-details-marker {
  display:none;
}
.menu-content {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:max-content;
  min-width:min(210px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 10px 30px #152d3b15;
  z-index:8;
}
.menu-content .button {
  display:flex;
  width:100%;
  justify-content:start;
  text-align:left;
}
.event-menu:not([open]) > .menu-content,
.card-menu:not([open]) > .menu-content {
  display:none;
}
.calendar-list {
  display:grid;
  gap:14px;
}
.calendar-card {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.calendar-card > div {
  min-width:0;
  max-width:100%;
}
.calendar-card > div:first-child {
  flex:1 1 16rem;
}
.calendar-card h2 {
  font-size:1.1rem;
  margin:0 0 8px;
}
.calendar-card p {
  margin:0 0 10px;
  font-size:.9rem;
  overflow-wrap:anywhere;
}
.calendar-card .metadata {
  font-size:.8rem;
  margin:0;
}
.calendar-card .actions {
  flex-shrink:0;
}
.empty-state {
  text-align:center;
  padding:64px 24px;
}
.empty-symbol {
  display:grid;
  place-items:center;
  margin:0 auto 22px;
  width:64px;
  height:64px;
  background:var(--pale);
  color:var(--blue);
  font-size:2rem;
  border-radius:18px;
}
.empty-state h2 {
  font-size:1.6rem;
}
.dialog {
  border:1px solid var(--line);
  border-radius:18px;
  width:min(460px,calc(100% - 32px));
  padding:32px;
  color:var(--ink);
  box-shadow:0 20px 80px #152d3b30;
  max-height:90vh;
  overflow:auto;
}
.dialog::backdrop {
  background:#132d3d70;
  backdrop-filter:blur(4px);
}
.dialog h2 {
  font-size:1.65rem;
  margin-bottom:12px;
}
.dialog .close-dialog {
  position:absolute;
  right:12px;
  top:12px;
  border:0;
  background:transparent;
  font-size:1.5rem;
  color:var(--muted);
  width:36px;
  height:36px;
}
.dialog form {
  margin-top:24px;
}
.dialog .primary {
  width:100%;
}
.captcha-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--bg);
  padding:14px;
  border-radius:8px;
  margin-bottom:20px;
}
.captcha-row label {
  min-width:0;
  margin:0;
  font-weight:400;
  font-size:.9rem;
}
.captcha-row input {
  flex:0 0 78px;
  width:78px;
}
.status-line {
  font-size:.875rem;
  margin:16px 0 0;
  min-height:24px;
}
.status-line.error {
  color:var(--red);
}
.status-line.success {
  color:var(--green);
}
.toast {
  position:fixed;
  bottom:24px;
  right:24px;
  max-width:calc(100% - 48px);
  padding:14px 20px;
  background:var(--ink);
  color:var(--primary-ink);
  border-radius:10px;
  box-shadow:0 8px 30px #152d3b20;
  z-index:20;
}
.toast.error {
  background:var(--red);
}
.hidden {
  display:none!important;
}
.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  z-index:100;
  background:var(--surface);
  padding:12px;
}
.skip-link:focus {
  top:12px;
}
@media(max-width:800px) {
  .hero {
    gap:30px;
    padding:56px 0;
    grid-template-columns:1fr;
  }
  .hero-copy {
    max-width:620px;
  }
  .preview-wrap {
    max-width:520px;
    width:100%;
    margin:auto;
  }
  .preview {
    transform:none;
  }
  .editor-layout {
    grid-template-columns:1fr;
  }
  .page-heading {
    align-items:start;
  }
  .join-panel {
    align-items:stretch;
    flex-direction:column;
  }
  .join-controls {
    max-width:none;
  }
  .steps {
    gap:24px;
  }
  .panel {
    padding:22px;
  }
  .calendar-card {
    align-items:start;
  }
  .calendar-card .actions {
    gap:6px;
  }
  .nav {
    min-height:72px;
  }
}
@media(max-width:520px) {
  .shell {
    width:calc(100% - 32px);
  }
  .nav {
    gap:8px;
  }
  .nav-links {
    width:100%;
    justify-content:flex-start;
    gap:8px;
    font-size:.8rem;
  }
  .language-selector {
    flex-basis:100%;
  }
  .nav-links .theme-toggle {
    margin-left:auto;
    flex-shrink:0;
  }
  .nav-links .button {
    padding:8px;
    font-size:.8rem;
  }
  .brand {
    font-size:1.35rem;
  }
  .brand-mark {
    width:30px;
    height:30px;
    margin-right:6px;
  }
  .hero h1 {
    font-size:2.8rem;
  }
  .hero {
    padding-top:40px;
  }
  .hero .actions {
    align-items:stretch;
    flex-direction:column;
  }
  .preview {
    padding:18px;
  }
  .steps {
    grid-template-columns:1fr;
    gap:28px;
  }
  .steps>div {
    padding-left:38px;
    position:relative;
  }
  .step-icon {
    position:absolute;
    left:0;
    top:0;
  }
  .site-footer {
    flex-direction:column;
  }
  .page {
    padding-top:28px;
  }
  .page-heading {
    flex-direction:column;
    gap:20px;
  }
  .page-heading h1 {
    font-size:2rem;
  }
  .panel {
    padding:18px;
  }
  .join-controls {
    flex-direction:column;
    align-items:stretch;
  }
  .availability-table th:first-child,.availability-table td:first-child {
    min-width:130px;
    max-width:150px;
  }
  .availability-table th,.availability-table td {
    padding:14px 10px;
    min-width:140px;
  }
  .calendar-card {
    flex-direction:column;
    gap:16px;
  }
  .calendar-card > div:first-child {
    flex-basis:auto;
  }
  .calendar-card .actions {
    width:100%;
  }
  .calendar-card .actions>a {
    flex:1;
  }
  .grid-heading {
    flex-direction:column;
  }
  .save-status {
    text-align:left;
  }
  .dialog {
    padding:28px 22px;
  }
  .ql-toolbar.ql-snow {
    padding:8px 4px!important;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .button {
    transition:background .15s,border-color .15s;
  }
  .hero-copy,.preview {
    animation:appear .4s ease-out;
  }
  @keyframes appear {
    from {
      opacity:0;
      translate:0 10px;
    }
    to {
      opacity:1;
      translate:0 0;
    }
  }
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.stat-card h2 {
  font-size:.9rem;
  letter-spacing:0;
  color:var(--muted);
  font-weight:600;
}
.stat-card>strong {
  font-size:2.5rem;
  color:var(--blue);
  letter-spacing:-.05em;
}
.stat-card p {
  font-size:.85rem;
  margin:12px 0 0;
}
@media(max-width:800px) {
  .stats-grid {
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:520px) {
  .stats-grid {
    grid-template-columns:1fr;
  }
}
body:has(dialog[open]) {
  overflow:hidden;
}
.event-description .ql-editor h1,.event-description .ql-editor h2,.event-description .ql-editor h3 {
  letter-spacing:-.025em;
}
.hero-copy .hero-tagline {
  font-size:1.4rem;
  font-weight:650;
  color:var(--ink);
  margin-bottom:18px;
}
.dialog h3 {
  font-size:1rem;
  margin:24px 0 8px;
}
.dialog p {
  font-size:.95rem;
}

.form-status.success {
  color: var(--green);
}

/* Keep the initial event form compact without constraining page scrolling. */
.create-event-page .page {
  min-height:0;
  padding-top:20px;
  padding-bottom:0;
}
.create-event-page .page-heading {
  margin-bottom:20px;
}
.create-event-page .page-heading h1 {
  font-size:2rem;
  margin-bottom:6px;
}
.create-event-page .page-heading .eyebrow {
  margin-bottom:4px;
}
.create-event-page .panel {
  padding:20px;
}
.create-event-page .panel-intro {
  margin-bottom:14px;
}
.organizer-fields {
  margin-bottom:14px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:16px;
}
.create-event-page .field {
  margin-bottom:14px;
}
.organizer-fields .field {
  margin-bottom:0;
}
.create-event-page .organizer-help {
  margin:6px 0 0;
}
.create-event-page .field:last-child {
  margin-bottom:0;
}
.create-event-page .field-error:empty,
.create-event-page .form-status:empty {
  display:none;
}
.create-event-page .ql-editor {
  min-height:90px;
  max-height:180px;
  overflow-y:auto;
}
.create-event-page .editor-actions {
  margin-top:16px;
  padding-block:12px;
}
.create-event-page .site-footer {
  margin-top:12px;
  padding-block:14px;
}
@media(min-width:801px) {
  .create-event-page .nav {
    min-height:64px;
  }
  .create-event-page .panel-intro {
    display:none;
  }
  .create-event-page .panel-title {
    margin-bottom:14px;
  }
}
@media(max-width:520px) {
  .organizer-fields {
    grid-template-columns:1fr;
    gap:14px;
  }
  .create-event-page .page-heading {
    gap:12px;
  }
}

.editor-header-tools {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:16px;
}
.browser-clock {
  color:var(--ink);
  font-size:.875rem;
  font-variant-numeric:tabular-nums;
}
@media(max-width:800px) {
  .create-event-page .page-heading {
    flex-wrap:wrap;
  }
  .editor-header-tools {
    justify-content:flex-start;
  }
}

/* Distinct heading accents help separate the event editor sections. */
.create-event-page .page-heading h1 {
  color:var(--blue);
}
.create-event-page #details-heading {
  color:var(--green);
}
.create-event-page #times-heading {
  color:var(--green);
}

.optional-label {
  color:var(--muted);
  font-size:.8rem;
  font-weight:400;
}

[data-theme="dark"] .theme-toggle {
  background:var(--pale);
  border-color:var(--blue);
}
.dialog {
  background:var(--surface);
}
/* Quill's toolbar and floating menus also follow the selected theme. */
[data-theme="dark"] .ql-snow .ql-stroke {
  stroke:var(--ink);
}
[data-theme="dark"] .ql-snow .ql-fill {
  fill:var(--ink);
}
[data-theme="dark"] .ql-snow .ql-picker {
  color:var(--ink);
}
[data-theme="dark"] .ql-snow .ql-picker-options,
[data-theme="dark"] .ql-snow .ql-tooltip {
  background:var(--surface);
  color:var(--ink);
  border-color:var(--line);
}
[data-theme="dark"] .ql-editor.ql-blank::before {
  color:var(--placeholder);
}
.toast {
  background:#152d3b;
  color:#fff;
}
.toast.error {
  background:#a3293a;
}

.theme-toggle {
  width:44px;
  padding:8px;
  flex-shrink:0;
}
.theme-toggle [data-theme-icon] {
  font-size:1.5rem;
  line-height:1;
}

.editor-actions .form-status {
  margin:0 0 12px;
  padding:10px 14px;
  border-left:3px solid var(--red);
  border-radius:6px;
  background:var(--invalid-bg);
  color:var(--red);
}
.editor-actions .form-status.success {
  border-color:var(--green);
  background:var(--success-bg);
  color:var(--green);
}

.save-status:empty {
  display:none;
}
.calendar-timezone-help {
  margin:-16px 0 24px;
}
.event-heading .timezone-note {
  flex-wrap:wrap;
}

.remove-participant {
  display:block;
  min-height:32px;
  margin-top:8px;
  padding:2px 0;
  border:0;
  background:transparent;
  color:var(--red);
  font-size:.8rem;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Decorative button icons persist when action labels change. */
[data-icon]::before {
  content:"";
  display:inline-block;
  width:1em;
  height:1em;
  flex-shrink:0;
  vertical-align:-.125em;
  background:currentColor;
  -webkit-mask:var(--button-icon) center / contain no-repeat;
  mask:var(--button-icon) center / contain no-repeat;
}
.remove-participant[data-icon]::before {
  margin-right:6px;
}
[data-icon="plus"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="calendar"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="import"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="export"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2015V3m-5%205%205-5%205%205M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="link"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%2013%204-4m-6%206-1%201a4%204%200%200%201-6-6l5-5a4%204%200%200%201%206%200m0%204%201-1a4%204%200%200%201%206%206l-5%205a4%204%200%200%201-6%200%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="join"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a7%207%200%200%201%2014%200v2m3-13v8m-4-4h8%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="mail"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%206%209%207%209-7%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="logout"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v16h5m5-12%204%204-4%204m-6-4h14%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="open"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203h7v7m0-7L10%2014m0-10H3v17h17v-7%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="back"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%205-7%207%207%207M3%2012h18%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="check"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L19%206%22%2F%3E%3C%2Fsvg%3E");
}
[data-icon="delete"] {
  --button-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7m4-7v7%22%2F%3E%3C%2Fsvg%3E");
}

/* Calendar-style event scheduling, below the event details. */
.editor-layout.calendar-editor-layout {
  grid-template-columns:minmax(0,1fr);
}
.proposed-heading {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:20px;
  margin-bottom:24px;
}
.proposed-heading .panel-intro { margin-bottom:0; }
.proposed-heading .timezone-note { flex-shrink:0; margin-top:8px; }
.schedule-workspace { display:grid; }
.calendar-navigation {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:20px;
}
.calendar-navigation h3 { font-size:1rem; margin:0; }
.calendar-navigation .button { min-width:36px; padding:4px 12px; font-size:1.25rem; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; text-align:center; }
.calendar-weekdays { color:var(--muted); font-size:.75rem; margin-bottom:10px; }
.calendar-day {
  position:relative;
  min-height:42px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  cursor:pointer;
}
.calendar-day:hover { background:var(--hover); border-color:var(--input-border); }
.calendar-day[aria-current=date] { border-color:var(--blue); font-weight:700; }
.calendar-day[aria-pressed=true] { background:var(--blue); color:var(--primary-ink); font-weight:650; }
.calendar-day:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.options-title { font-size:1rem; margin:0; }
.schedule-options > .help { margin:4px 0 18px; }
@media(max-width:800px) {
  .proposed-heading { flex-direction:column; gap:8px; }
  .proposed-heading .timezone-note { margin:0; }
}

.picker-step { margin:0 0 16px; font-size:.95rem; }
.time-picker > .help { margin:-8px 0 18px; font-size:.8rem; }
.hour-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; margin-bottom:18px; }
.hour-grid button,.minute-presets button {
  border:1px solid var(--input-border);
  background:var(--surface);
  color:var(--ink);
  border-radius:7px;
  min-height:38px;
  padding:4px;
  font:inherit;
  font-size:.85rem;
  cursor:pointer;
  font-variant-numeric:tabular-nums;
}
.hour-grid button:hover,.minute-presets button:hover { background:var(--hover); }
.hour-grid button[aria-pressed=true],.minute-presets button[aria-pressed=true] { background:var(--blue); border-color:var(--blue); color:var(--primary-ink); }
.minute-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-bottom:8px; }
.time-picker select { width:100%; min-height:40px; border:1px solid var(--input-border); background:var(--surface); color:var(--ink); border-radius:7px; padding:6px 10px; font:inherit; }
.selection-preview { display:flex; flex-direction:column; padding:14px 0; margin-top:8px; color:var(--muted); font-size:.85rem; }
.selection-preview strong { color:var(--ink); font-size:1.8rem; line-height:1.3; font-variant-numeric:tabular-nums; }
.calendar-day.has-options::after { content:''; position:absolute; width:4px; height:4px; border-radius:50%; background:var(--blue); bottom:3px; left:calc(50% - 2px); }
.schedule-options { min-width:0; }

.options-count { margin:0 0 14px; color:var(--blue); font-size:.85rem; font-weight:650; }
.option-date-card { padding:14px 16px; margin-bottom:12px; border:1px solid var(--line); border-left:3px solid var(--blue); border-radius:10px; background:var(--surface); }
.option-date-card h4 { margin:0 0 10px; font-size:.9rem; line-height:1.5; }
.option-time-chips { display:flex; flex-wrap:wrap; gap:8px; }
.option-time-chip { padding:8px 14px; min-height:40px; border:1px solid var(--input-border); border-radius:8px; background:var(--pale); color:var(--ink); font:inherit; font-size:1rem; font-weight:650; font-variant-numeric:tabular-nums; cursor:pointer; }
.option-time-chip:hover { border-color:var(--blue); background:var(--hover); }
.options-empty { padding:24px 18px; border:1px dashed var(--input-border); border-radius:10px; font-size:.9rem; color:var(--muted); }
/* Separate choosing a time from reviewing the proposed options. */
.schedule-workspace {
  grid-template-columns:minmax(440px,1.7fr) 136px minmax(240px,1fr);
  gap:12px;
  align-items:stretch;
}
.schedule-composer {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:16px;
  align-content:start;
  align-items:start;
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
}
.composer-heading { grid-column:1 / -1; padding-bottom:16px; border-bottom:1px solid var(--line); }
.composer-heading h3 { margin:0 0 4px; font-size:1.05rem; }
.composer-heading p { margin:0; color:var(--muted); font-size:.85rem; }
.schedule-composer .date-calendar,.schedule-composer .time-picker {
  min-width:0;
  width:100%;
  max-width:none;
  padding:12px;
  border:1px solid var(--line);
  border-top:3px solid var(--blue);
  border-radius:12px;
  background:var(--surface);
  align-self:stretch;
}
.schedule-composer .time-picker { grid-column:auto; }
.picker-step,.schedule-options .options-title { display:flex; align-items:center; gap:9px; }
.step-badge { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--pale); color:var(--blue); font-size:.8rem; font-weight:750; }
.selection-action { align-self:center; min-width:0; padding:14px 10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); text-align:center; }
.selection-action > .button { display:flex; justify-content:center; width:100%; min-height:40px; margin-top:12px; padding:10px 8px; gap:6px; font-size:.85rem; font-weight:650; }
.selection-action .selection-preview {
  display:grid;
  min-width:0;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:6px 16px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
}
.selection-caption { grid-column:1 / -1; font-size:.68rem; font-weight:650; text-transform:uppercase; letter-spacing:.05em; }
.selection-preview #selectedDayLabel { overflow-wrap:anywhere; color:var(--ink); font-size:.9rem; font-weight:650; }
.selection-action #pickerStatus { margin:10px 0 0; }
.selection-action #pickerStatus:empty { display:none; }
.schedule-workspace > .schedule-options {
  grid-column:auto;
  grid-row:auto;
  padding:16px;
  border:2px solid var(--input-border);
  border-top:4px solid var(--blue);
  border-radius:16px;
  background:var(--bg);
}
.schedule-options .step-badge { background:var(--blue); color:var(--primary-ink); }
.schedule-options > .help { margin-top:12px; }
.schedule-options .options-empty { background:var(--surface); padding:28px 18px; line-height:1.7; }
@media(max-width:1000px) {
  .schedule-workspace { grid-template-columns:minmax(0,1fr); gap:16px; }
  .schedule-composer { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .selection-action { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 20px; padding:14px 18px; text-align:left; }
  .selection-action > .button { width:auto; margin:0; padding-inline:20px; }
  .selection-action .selection-preview { grid-template-columns:minmax(0,1fr) auto; }
  .selection-action #pickerStatus { grid-column:1 / -1; margin:0; }
}
@media(max-width:600px) {
  .schedule-composer { grid-template-columns:minmax(0,1fr); padding:16px; }
  .schedule-workspace > .schedule-options { padding:18px; }
  .selection-action { padding:14px; grid-template-columns:minmax(0,1fr); }
  .selection-action > .button { width:100%; }
  .selection-action .selection-preview { gap:6px 12px; }
}

.option-time-chip { display:inline-flex; align-items:center; gap:10px; cursor:default; padding:5px 6px 5px 12px; }
.remove-option-chip { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:1.2rem; cursor:pointer; }
.remove-option-chip:hover { background:var(--danger-hover); color:var(--red); }

/* Consistent control sizes within the compact scheduling workspace. */
.schedule-composer .calendar-navigation { margin-bottom:12px; }
.schedule-composer .calendar-navigation .button { width:32px; min-width:32px; min-height:32px; height:32px; padding:0; justify-content:center; border-radius:7px; }
.schedule-composer .calendar-navigation h3 { font-size:.9rem; }
.schedule-composer .picker-step { font-size:.85rem; gap:7px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.schedule-composer .step-badge { width:24px; height:24px; }
.schedule-composer .calendar-day { min-height:36px; padding:4px 0; font-size:.85rem; border-radius:7px; }
.schedule-composer .calendar-days,.schedule-composer .calendar-weekdays { gap:3px; }
.schedule-composer .calendar-weekdays { font-size:.68rem; }
.schedule-composer .hour-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-bottom:14px; }
.schedule-composer .hour-grid button,.schedule-composer .minute-presets button { min-height:36px; padding:4px 2px; font-size:.8rem; border-radius:6px; }
.schedule-composer .time-picker select { min-height:36px; font-size:.85rem; }
.schedule-composer .time-picker > .help { font-size:.75rem; margin-bottom:14px; }
.selection-action .selection-preview strong { font-size:1.55rem; }
.schedule-options .option-date-card { padding:12px; margin-bottom:10px; }
.schedule-options .option-time-chips { gap:6px; }
.schedule-options .option-time-chip { font-size:.9rem; min-height:36px; padding:3px 4px 3px 10px; gap:6px; }
.schedule-options .options-empty { padding:18px 14px; font-size:.85rem; }
.schedule-options .remove-option-chip { width:28px; height:28px; }
@media(max-width:1000px) {
  .selection-action > .button { min-height:44px; }
}
@media(max-width:600px) {
  .schedule-composer .calendar-day,.schedule-composer .hour-grid button,.schedule-composer .minute-presets button { min-height:44px; }
  .schedule-composer .time-picker select { min-height:44px; }
}

.schedule-options > .help {
  text-align:center;
}

@media(min-width:601px) and (max-width:1000px) {
  .schedule-composer .hour-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .schedule-composer .hour-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .schedule-composer .date-calendar,.schedule-composer .time-picker { padding:14px; }
}

/* Event details use the same card treatment as the date and time pickers. */
.event-details-grid {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);
  gap:16px;
  align-items:stretch;
}
.event-detail-card {
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-top:3px solid var(--blue);
  border-radius:12px;
  background:var(--bg);
}
.detail-card-heading {
  margin:0 0 16px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  font-size:.95rem;
  font-weight:650;
  color:var(--ink);
}
.event-details-panel .organizer-fields { grid-template-columns:minmax(0,1fr); gap:14px; margin:0; }
.create-event-page .event-details-grid > .field { margin:0; }
.event-details-panel .organizer-fields label { font-size:.85rem; margin-bottom:6px; }
.event-details-panel input[type=text],.event-details-panel input[type=email] { min-height:42px; padding:9px 12px; font-size:.9rem; }
.event-details-panel .organizer-help { font-size:.78rem; line-height:1.5; }
.event-details-panel .ql-toolbar { background:var(--bg); }
.event-details-panel .ql-editor { min-height:130px; }
.event-details-panel #editor[contenteditable=true] { border:1px solid var(--input-border); border-radius:8px; }
@media(max-width:700px) {
  .event-details-grid { grid-template-columns:minmax(0,1fr); }
  .event-detail-card { padding:14px; }
  .event-details-panel input[type=text],.event-details-panel input[type=email] { min-height:44px; }
}

/* Treat the rich-text toolbar and writing area as one input. */
.description-card { display:flex; flex-direction:column; }
.description-card > .detail-card-heading { flex-shrink:0; }
.description-editor {
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  border:1px solid var(--input-border);
  border-radius:8px;
  background:var(--surface);
  transition:border-color .15s,box-shadow .15s;
}
.description-editor:focus-within { border-color:var(--blue); box-shadow:0 0 0 2px var(--pale); }
.description-editor .ql-toolbar.ql-snow {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 8px;
  padding:8px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:8px 8px 0 0;
}
.description-editor .ql-toolbar.ql-snow .ql-formats { display:inline-flex; align-items:center; margin:0; }
.description-editor .ql-toolbar.ql-snow button { width:30px; height:30px; padding:5px; border-radius:5px; }
.description-editor .ql-toolbar.ql-snow button:hover { background:var(--hover); }
.description-editor .ql-toolbar.ql-snow button.ql-active { background:var(--pale); }
.description-editor .ql-container.ql-snow { flex:1; border:0; min-height:140px; }
.create-event-page .description-editor .ql-editor { padding:12px 14px; min-height:140px; font-size:.95rem; line-height:1.6; overflow-wrap:anywhere; }
.description-editor .ql-editor.ql-blank::before { left:14px; right:14px; font-style:normal; color:var(--placeholder); }
.event-details-panel .description-editor #editor[contenteditable=true] { border:0; border-radius:8px; }
@media(max-width:600px) {
  .description-editor .ql-toolbar.ql-snow button { width:34px; height:34px; }
}

.schedule-options .options-title {
  margin-bottom:18px;
}

@keyframes add-option-pulse {
  0%,70%,100% { box-shadow:0 0 0 0 transparent; }
  35% { box-shadow:0 0 0 6px color-mix(in srgb,var(--blue) 28%,transparent); }
}
@media(prefers-reduced-motion:no-preference) {
  #addSelectedTime {
    animation:add-option-pulse 3s ease-in-out infinite;
  }
  #addSelectedTime:hover,
  #addSelectedTime:focus-visible,
  #addSelectedTime:active {
    animation:none;
  }
}

/* Outline picker controls keep the selection visible without filled backgrounds. */
.schedule-composer .calendar-day,
.schedule-composer .hour-grid button,
.schedule-composer .minute-presets button,
.schedule-composer .time-picker select,
#addSelectedTime {
  background:transparent;
  color:var(--ink);
  border:2px solid var(--input-border);
}
.schedule-composer .calendar-day[aria-pressed=true],
.schedule-composer .hour-grid button[aria-pressed=true],
.schedule-composer .minute-presets button[aria-pressed=true] {
  background:transparent;
  color:var(--blue);
  border-color:var(--blue);
  box-shadow:inset 0 0 0 1px var(--blue);
  font-weight:750;
}
.schedule-composer .calendar-day:hover,
.schedule-composer .hour-grid button:hover,
.schedule-composer .minute-presets button:hover,
.schedule-composer .calendar-day[aria-pressed=true]:hover,
.schedule-composer .hour-grid button[aria-pressed=true]:hover,
.schedule-composer .minute-presets button[aria-pressed=true]:hover,
#addSelectedTime:hover {
  background:transparent;
  color:var(--blue);
  border-color:var(--blue);
}
#addSelectedTime { color:var(--blue); border-color:var(--blue); }

/* A discreet tint adds depth to the outlined controls. */
.schedule-composer .calendar-day,
.schedule-composer .hour-grid button,
.schedule-composer .minute-presets button,
.schedule-composer .time-picker select,
#addSelectedTime {
  background:color-mix(in srgb,var(--blue) 3%,var(--surface));
}
.schedule-composer .calendar-day[aria-pressed=true],
.schedule-composer .hour-grid button[aria-pressed=true],
.schedule-composer .minute-presets button[aria-pressed=true],
.schedule-composer .calendar-day:hover,
.schedule-composer .hour-grid button:hover,
.schedule-composer .minute-presets button:hover,
.schedule-composer .calendar-day[aria-pressed=true]:hover,
.schedule-composer .hour-grid button[aria-pressed=true]:hover,
.schedule-composer .minute-presets button[aria-pressed=true]:hover,
#addSelectedTime:hover {
  background:color-mix(in srgb,var(--blue) 7%,var(--surface));
}
