/* dijitul meet — mobile-first */
:root {
  --brand: #e7362e;
  --brand-dark: #b50400;
  --ink: #111111;
  --ink-2: #4a4f56;
  --muted: #686e77;
  --line: #e4e6ea;
  --bg: #f5f5f5;
  --card: #ffffff;
  --ok: #1a8f4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17,17,17,.06), 0 8px 24px -12px rgba(17,17,17,.18);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .35em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
button { font: inherit; }
[hidden] { display: none !important; }

.top { padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top__brand { display: inline-flex; align-items: center; font-weight: 700; color: var(--ink); text-decoration: none; }
.top__brand img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
.foot { padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: .85rem; }
.foot a { color: inherit; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.notice { border-left: 4px solid var(--brand); }

/* hero */
.hero { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.hero__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 60% 25%; flex: none; border: 3px solid var(--card); box-shadow: var(--shadow); }
.hero__intro { color: var(--ink-2); margin: 0; }

/* layout */
.book { display: grid; gap: 20px; }
.book__side { display: none; }
@media (min-width: 900px) {
  .book { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .book__side { display: block; position: sticky; top: 20px; }
  h1 { font-size: 1.9rem; }
}

/* steps */
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; margin-bottom: 16px; scroll-margin-top: 12px; }
@media (min-width: 600px) { .step { padding: 24px; } }
.step__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; flex: none; }

/* meeting type cards */
.types { display: grid; gap: 10px; }
@media (min-width: 600px) { .types { grid-template-columns: 1fr 1fr; } }
.type { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; min-height: 76px; }
.type:hover { border-color: #c9ccd2; }
.type:focus-visible { outline: 3px solid rgba(231,54,46,.35); outline-offset: 2px; }
.type[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,54,46,.12); }
.type__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg) center/24px no-repeat; flex: none; }
.type__icon--video { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='13' height='12' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3C/svg%3E"); }
.type__icon--pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.5 7-12a7 7 0 1 0-14 0c0 5.5 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.type[aria-pressed="true"] .type__icon { background-color: rgba(231,54,46,.1); }
.type__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.type__label { font-weight: 600; }
.type__meta { color: var(--muted); font-size: .875rem; }
.type__check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.type[aria-pressed="true"] .type__check { background: var(--brand); border-color: var(--brand); }
.type[aria-pressed="true"] .type__check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* picker */
.picker { display: grid; gap: 18px; }
@media (min-width: 700px) { .picker { grid-template-columns: minmax(0, 1.25fr) minmax(200px, 1fr); } }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__month { font-size: 1.05rem; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal__day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: transparent; color: #b6bac0; font-weight: 500; cursor: default; position: relative; }
.cal__day.is-avail { background: rgba(231,54,46,.08); color: var(--brand-dark); font-weight: 600; cursor: pointer; }
.cal__day.is-avail:hover { background: rgba(231,54,46,.16); }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.cal__day[aria-pressed="true"] { background: var(--brand); color: #fff; }
.cal__day:focus-visible { outline: 3px solid rgba(231,54,46,.35); }
.cal__status { margin: 10px 0 0; min-height: 1.2em; font-size: .875rem; }

.times__head { margin-bottom: 8px; }
.times__day { display: block; font-size: 1rem; }
.times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; padding: 2px; }
@media (min-width: 700px) { .times__list { grid-template-columns: 1fr; max-height: 380px; overflow-y: auto; } }
.slot { padding: 11px 8px; border: 2px solid rgba(231,54,46,.35); border-radius: 10px; background: var(--card); color: var(--brand-dark); font-weight: 600; cursor: pointer; transition: all .12s; }
.slot:hover { border-color: var(--brand); }
.slot[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot:focus-visible { outline: 3px solid rgba(231,54,46,.35); outline-offset: 2px; }

.tz { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.tz__select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); max-width: 100%; }

/* form */
.chosen { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; background: var(--bg); padding: 10px 12px; border-radius: 10px; margin: -4px 0 16px; font-size: .95rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
.form__row { display: grid; gap: 12px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { font-weight: 500; font-size: .925rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfd3d9; border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,54,46,.15); }
.loc-choice { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.loc-choice label { display: flex; gap: 8px; align-items: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { background: #fdecea; color: #8a1c14; padding: 10px 12px; border-radius: 10px; font-size: .925rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 0; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid #cfd3d9; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--big { width: 100%; padding: 15px 20px; font-size: 1.05rem; margin: 4px 0 10px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.is-busy .btn__label::after { content: "…"; }
.btn:focus-visible { outline: 3px solid rgba(231,54,46,.35); outline-offset: 2px; }

/* done */
.done { text-align: center; padding: 32px 20px; }
.done__tick { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; }
.done__when { font-weight: 600; }

/* summary sidebar */
.summary__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.summary__list { margin: 0; }
.summary__list > div { padding: 8px 0; border-top: 1px solid var(--line); }
.summary__list > div:first-child { border-top: 0; padding-top: 0; }
.summary__list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.summary__list dd { margin: 2px 0 0; font-weight: 500; }
.summary__hint { margin: 12px 0 0; }

/* request/decide pages */
.detail { display: grid; gap: 10px; margin: 16px 0; }
.detail > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.detail dt { color: var(--muted); font-size: .875rem; }
.detail dd { margin: 0; word-break: break-word; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--bg); color: var(--ink-2); }
.status--pending { background: #fff4e0; color: #8a5a00; }
.status--accepted { background: #e4f5ea; color: #146c37; }
.status--declined, .status--cancelled, .status--expired { background: #f0f1f3; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: #e4f5ea; color: #146c37; }
.flash--bad { background: #fdecea; color: #8a1c14; }
details.decline { margin-top: 12px; }
details.decline summary { cursor: pointer; color: var(--ink-2); }
.narrow { max-width: 620px; margin: 0 auto; }
