:root {
  color-scheme: light;
  --ink: #152925;
  --muted: #65736f;
  --line: #dcded8;
  --paper: #fff;
  --wash: #f3f1eb;
  --green: #17584d;
  --green-2: #28776a;
  --cream: #f8f6f0;
  --amber: #d79c45;
  --danger: #9d403c;
  font-family: var(--bb-font-sans, "Avenir Next", Avenir, "Helvetica Neue", "Noto Sans Arabic", Tahoma, Arial, sans-serif);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--wash); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(40,119,106,.25); outline-offset: 2px; }
.desk-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 clamp(20px,4vw,58px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { display: grid; }
.brand strong { font-size: .98rem; }
.brand small { color: var(--muted); font-size: .7rem; margin-top: 1px; }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.topbar nav a, .topbar nav button { border: 0; background: transparent; color: #344843; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .82rem; }
.topbar nav a:hover, .topbar nav button:hover { background: #eef1ed; }
.topbar svg, button svg, a svg { width: 17px; height: 17px; }
.access-gate { max-width: 1180px; min-height: calc(100vh - 76px); margin: 0 auto; padding: clamp(48px,8vw,108px) clamp(22px,5vw,70px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.7fr); gap: clamp(40px,8vw,110px); align-items: center; }
.access-gate h1 { margin: 10px 0 18px; max-width: 700px; font-family: var(--bb-font-sans, "Avenir Next", Avenir, "Helvetica Neue", "Noto Sans Arabic", Tahoma, Arial, sans-serif); font-size: clamp(2.5rem,5vw,5rem); line-height: .98; letter-spacing: -.055em; }
.access-gate > div > p:last-of-type { color: var(--muted); max-width: 660px; line-height: 1.7; font-size: 1.04rem; }
.eyebrow { margin: 0; color: var(--green-2); text-transform: uppercase; letter-spacing: .14em; font-size: .67rem; font-weight: 900; }
.gate-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.gate-points span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: .78rem; }
.gate-points b { font: inherit; }
.gate-points svg { width: 15px; }
.gate-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 20px 60px rgba(20,46,40,.09); display: grid; gap: 13px; }
.gate-card h2 { margin: 2px 0 8px; font-size: 1.6rem; }
.gate-card label, .field-grid label { display: grid; gap: 7px; color: #44554f; font-weight: 800; font-size: .76rem; }
.account-help-link { width: fit-content; color: var(--green); font-size: .72rem; font-weight: 800; text-decoration: none; }
.gate-card input, .field-grid input, .field-grid select { width: 100%; border: 1px solid #cfd5d0; border-radius: 10px; padding: 12px; background: #fbfcfa; color: var(--ink); }
.gate-icon, .link-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #e8f2ee; color: var(--green); }
.primary-button, .secondary-button, .record-button { border-radius: 10px; min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 850; font-size: .8rem; }
.primary-button { border: 1px solid var(--green); background: var(--green); color: white; }
.secondary-button { border: 1px solid #cfd5d0; background: white; color: var(--ink); }
.record-button { border: 1px solid #8d3530; background: #a5433e; color: white; }
.form-error { color: var(--danger); font-weight: 750; font-size: .78rem; }
.workspace { max-width: 1480px; margin: 0 auto; padding: 34px clamp(18px,4vw,56px) 70px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero h1 { margin: 8px 0 8px; font-family: var(--bb-font-sans, "Avenir Next", Avenir, "Helvetica Neue", "Noto Sans Arabic", Tahoma, Arial, sans-serif); font-size: clamp(2.4rem,4vw,4.3rem); line-height: 1; letter-spacing: -.05em; }
.hero > div > p:last-child { margin: 0; color: var(--muted); max-width: 780px; }
.hero-actions, .link-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-line { display: block; margin: 16px 0; min-height: 20px; color: var(--muted); font-size: .78rem; }
.status-line.is-error { color: var(--danger); }
.booking-link-card { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; background: #e9f2ee; border: 1px solid #ccddd7; border-radius: 16px; padding: 18px; }
.booking-link-card div:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.booking-link-card strong { font-size: 1rem; }
.booking-link-card span { color: #567069; font-size: .76rem; overflow-wrap: anywhere; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 7px; }
.metric-card span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { font-family: var(--bb-font-sans, "Avenir Next", Avenir, "Helvetica Neue", "Noto Sans Arabic", Tahoma, Arial, sans-serif); font-size: 2.2rem; line-height: 1; }
.metric-card small { color: var(--muted); }
.demographics-panel { margin: 16px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; display: grid; gap: 16px; }
.demographics-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.demographics-heading h2 { margin: 4px 0 5px; font-size: 1.2rem; }
.demographics-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: .76rem; }
.coverage-pill { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; background: #e8f2ee; color: var(--green); font-size: .7rem; font-weight: 850; }
.gender-split-bar { min-height: 18px; border-radius: 999px; background: #eef1ed; display: flex; overflow: hidden; }
.gender-split-bar > i { display: block; min-width: 2px; background: var(--split-color); }
.gender-split-bar > span { width: 100%; align-self: center; color: var(--muted); font-size: .68rem; text-align: center; }
.gender-split-legend { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 8px; }
.gender-split-legend > div { min-width: 0; display: grid; grid-template-columns: 9px minmax(0,1fr) auto auto; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid #e2e5df; border-radius: 10px; background: #fafbf9; }
.gender-split-legend > div > i { width: 9px; height: 9px; border-radius: 50%; background: var(--split-color); }
.gender-split-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #43534e; font-size: .7rem; font-weight: 750; }
.gender-split-legend strong { font-size: .76rem; }
.gender-split-legend small { color: var(--muted); font-size: .66rem; }
.gender-split-legend > p { margin: 0; color: var(--muted); font-size: .75rem; }
.age-coverage { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.age-coverage > span { display: inline-flex; align-items: center; gap: 7px; color: #43534e; font-size: .74rem; font-weight: 850; }
.age-coverage > span svg { width: 16px; height: 16px; color: var(--green-2); }
.age-coverage strong { grid-column: 2; grid-row: 1 / span 2; font-family: var(--bb-font-sans, "Avenir Next", Avenir, "Helvetica Neue", "Noto Sans Arabic", Tahoma, Arial, sans-serif); font-size: 1.55rem; }
.age-coverage small { color: var(--muted); font-size: .68rem; }
.worker-ownership-panel { margin: 16px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; display: grid; grid-template-columns: minmax(240px,1.15fr) minmax(280px,1fr) auto; align-items: center; gap: 22px; }
.worker-ownership-copy h2 { margin: 4px 0 5px; font-size: 1.2rem; }
.worker-ownership-copy > p:last-child { margin: 0; max-width: 610px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.worker-ownership-summary { min-width: 0; display: grid; gap: 8px; }
.worker-ownership-summary > strong { font-size: .75rem; color: #43534e; }
.worker-summary-list { display: flex; gap: 6px; flex-wrap: wrap; }
.worker-summary-list > span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #dbe5e0; border-radius: 999px; background: #f6f9f7; }
.worker-summary-list strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.worker-summary-list small { color: var(--green-2); font-size: .64rem; font-weight: 850; }
.worker-summary-empty { border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: transparent !important; color: var(--muted); font-size: .7rem; }
.worker-ownership-panel > button { white-space: nowrap; }
.calendar-scope-panel { margin: 16px 0; padding: 18px 20px; border: 1px solid #cfded8; border-radius: 16px; background: #f5f9f7; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.calendar-scope-panel > div { min-width: 0; display: grid; gap: 4px; }
.calendar-scope-panel h2 { margin: 0; font-size: 1.12rem; }
.calendar-scope-panel p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.calendar-scope-panel > label { min-width: 230px; display: grid; gap: 7px; color: #43534e; font-size: .7rem; font-weight: 850; }
.calendar-scope-panel select, .moderator-assignment-control select { width: 100%; min-height: 40px; border: 1px solid #c6d4ce; border-radius: 9px; padding: 8px 34px 8px 10px; background: white; color: var(--ink); font: inherit; }
.shared-calendar-notice { margin-top: 9px; padding: 11px 12px; border: 1px solid #d5bd85; border-radius: 10px; background: #fff8e8; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #6c5424; }
.shared-calendar-notice span { font-size: .72rem; line-height: 1.4; }
.shared-calendar-notice button { flex: 0 0 auto; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(330px,.7fr); gap: 14px; }
.calendar-panel, .agenda-panel { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel-heading { min-height: 76px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 4px 0 0; font-size: 1.15rem; }
.month-controls { display: flex; align-items: center; gap: 6px; }
.month-controls button { border: 1px solid var(--line); background: white; min-height: 34px; border-radius: 8px; padding: 0 10px; font-weight: 750; color: var(--ink); }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekday-row { border-bottom: 1px solid var(--line); background: #fafaf7; }
.weekday-row span { padding: 9px 8px; color: var(--muted); font-size: .66rem; font-weight: 900; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.calendar-day { position: relative; min-height: 114px; padding: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; text-align: left; color: inherit; }
html[dir="rtl"] .calendar-day { text-align: right; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-outside { background: #fafaf7; color: #a2aaa6; }
.calendar-day.is-today .day-number { background: var(--green); color: white; }
.calendar-day.is-selected { box-shadow: inset 0 0 0 2px var(--green-2); z-index: 1; }
.day-number { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 850; }
.day-events { display: grid; gap: 4px; margin-top: 7px; }
.day-event { display: grid; gap: 3px; border-left: 3px solid var(--green-2); border-radius: 4px; padding: 4px 5px; background: #edf5f2; font-size: .63rem; overflow: hidden; }
html[dir="rtl"] .day-event { border-left: 0; border-right: 3px solid var(--green-2); }
.day-event > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-event .moderator-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-self: start; }
.day-event.is-attention { border-color: var(--amber); background: #fff6e7; }
.day-more { color: var(--muted); font-size: .62rem; padding-left: 7px; }
.agenda-panel { min-height: 590px; }
.agenda-panel .panel-heading > span { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: #e8f2ee; color: var(--green); font-weight: 900; }
.agenda-list { max-height: 660px; overflow: auto; }
.agenda-item { padding: 15px 17px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
.agenda-time { color: var(--green); font-weight: 900; font-size: .78rem; }
.agenda-copy { display: grid; gap: 4px; min-width: 0; }
.agenda-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-copy span { color: var(--muted); font-size: .72rem; }
.status-chip { width: fit-content; padding: 4px 7px; border-radius: 999px; background: #eef1ed; color: #52635e; font-size: .6rem !important; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.agenda-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.moderator-badge { width: fit-content; min-height: 20px; display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #cbded7; border-radius: 999px; background: #edf5f2; color: #315f54 !important; font-size: .59rem !important; font-weight: 900; line-height: 1; letter-spacing: .035em; }
.moderator-badge.is-unassigned { border-color: #dec99e; background: #fff7e7; color: #775c27 !important; }
.moderator-assignment-control { margin-top: 5px; display: grid; gap: 5px; color: #43534e; font-size: .64rem; font-weight: 850; }
.moderator-assignment-control select { min-height: 36px; font-size: .7rem; }
.empty { padding: 28px; color: var(--muted); text-align: center; line-height: 1.6; }
dialog { width: min(650px,calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 30px 100px rgba(19,42,37,.25); }
dialog::backdrop { background: rgba(14,28,25,.48); backdrop-filter: blur(4px); }
dialog form > header { padding: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
dialog h2 { margin: 4px 0; }
dialog header span { color: var(--muted); font-size: .78rem; }
.icon-button { border: 1px solid var(--line); background: white; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.field-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-grid .full { grid-column: 1 / -1; }
.field-grid .consent { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; }
.field-grid .consent input { width: 18px; margin-top: 1px; }
.recording-suggestion { display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #cbded7; border-radius: 10px; padding: 10px 12px; color: #4d6d63; background: #eef6f2; font-size: .73rem; line-height: 1.4; }
.recording-suggestion.is-loading { color: #5e6f88; background: #f0f5ff; border-color: #cbd8ee; }
.recording-suggestion.is-warning { color: #835f27; background: #fff7e8; border-color: #ecd6a9; }
.recording-suggestion svg { width: 17px; height: 17px; flex: 0 0 auto; }
.recording-participant-fields { display: grid; gap: 10px; }
.recording-participant-row { display: grid; grid-template-columns: minmax(180px,1.25fr) minmax(145px,.8fr) minmax(90px,.45fr); gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.recording-participant-row > strong { grid-column: 1 / -1; color: var(--green); font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
.recording-participant-row label { min-width: 0; }
.recording-participant-row input, .recording-participant-row select { min-height: 42px; }
.agenda-item { grid-template-columns: 54px minmax(0,1fr) auto; }
.agenda-start { align-self: center; border: 1px solid #c9d9d2; border-radius: 8px; padding: 7px 9px; color: var(--green); background: #f4f9f6; font-size: .67rem; font-weight: 850; white-space: nowrap; }
.agenda-start:hover { background: #e8f2ee; }
.privacy { margin: 0 20px; padding: 11px; border-radius: 9px; background: #f0f5f2; color: #48635b; display: flex; gap: 8px; font-size: .74rem; }
.privacy svg { flex: 0 0 auto; width: 17px; }
dialog .form-error { margin: 12px 20px 0; }
dialog footer { padding: 17px 20px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.worker-assignment-dialog { width: min(980px,calc(100vw - 28px)); max-height: min(850px,calc(100vh - 28px)); }
.worker-assignment-dialog form { display: flex; flex-direction: column; max-height: min(850px,calc(100vh - 28px)); }
.worker-assignment-controls { padding: 18px 20px; display: grid; grid-template-columns: minmax(190px,.8fr) minmax(260px,1.4fr) minmax(170px,.7fr); gap: 12px; border-bottom: 1px solid var(--line); }
.worker-assignment-controls label { min-width: 0; display: grid; gap: 7px; color: #44554f; font-size: .72rem; font-weight: 850; }
.worker-assignment-controls select, .worker-assignment-controls input { width: 100%; min-height: 42px; border: 1px solid #cfd5d0; border-radius: 10px; padding: 10px 12px; background: #fbfcfa; color: var(--ink); }
.search-input-wrap { position: relative; display: block; }
.search-input-wrap svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-input-wrap input { padding-left: 35px; }
html[dir="rtl"] .search-input-wrap svg { left: auto; right: 11px; }
html[dir="rtl"] .search-input-wrap input { padding-left: 10px; padding-right: 35px; }
.worker-assignment-selection { padding: 11px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: #fafbf9; }
.worker-assignment-selection label { display: inline-flex; align-items: center; gap: 8px; color: #43534e; font-size: .72rem; font-weight: 800; }
.worker-assignment-selection input, .worker-assignment-row > input { width: 18px; height: 18px; accent-color: var(--green); }
.worker-assignment-selection strong { color: var(--green); font-size: .72rem; }
.worker-assignment-list { min-height: 150px; max-height: 46vh; overflow: auto; }
.worker-assignment-row { min-height: 72px; padding: 12px 20px; display: grid; grid-template-columns: auto minmax(190px,1.05fr) minmax(160px,.85fr) minmax(180px,1fr); align-items: center; gap: 14px; border-bottom: 1px solid #e5e7e2; cursor: pointer; }
.worker-assignment-row:hover { background: #f7faf8; }
.worker-id-copy, .worker-owner-copy, .worker-id-meta { min-width: 0; display: grid; gap: 3px; }
.worker-assignment-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.worker-assignment-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .66rem; }
.worker-owner-copy small { color: var(--green-2); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.worker-assignment-empty { margin: 0; padding: 28px 20px; color: var(--muted); text-align: center; font-size: .76rem; }
.worker-assignment-note { margin: 14px 20px 0; padding: 11px 12px; display: flex; align-items: flex-start; gap: 8px; border-radius: 10px; background: #eef6f2; color: #4d6d63; font-size: .7rem; line-height: 1.45; }
.worker-assignment-note svg { width: 17px; height: 17px; flex: 0 0 auto; }
[hidden] { display: none !important; }

/* Scheduling is the primary task; secondary operational panels stay collapsed. */
.workspace { max-width: 1440px; margin-inline: auto; }
.workspace { padding-top: 26px; }
.workspace .hero { margin-bottom: 12px; }
.workspace .hero h1 { font-size: clamp(1.8rem,3vw,2.5rem); letter-spacing: -.035em; }
.workspace .hero > div > p:last-child { max-width: 650px; }
.workspace .booking-link-card { padding: 14px 18px; }
.workspace h1, .workspace h2, .workspace strong, .workspace button { font-weight: 600; }
.schedule-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 22px 0 14px; }
.schedule-toolbar > span { color: var(--muted); font-size: .78rem; }
#scheduleTimeZone { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.schedule-tabs { display: inline-flex; padding: 4px; gap: 3px; background: #e8edeb; border-radius: 12px; }
.schedule-tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 9px; color: var(--ink); min-height: 42px; }
.schedule-tabs button[aria-pressed="true"] { background: white; box-shadow: 0 1px 4px #18342a20; }
.schedule-layout { grid-template-columns: minmax(0,1fr); }
.calendar-day { min-height: 90px; text-align: center; }
.day-number { margin-inline: auto; font-weight: 600; }
.day-more { padding: 0; font-size: .78rem; }
.agenda-panel { min-height: 0; }
.agenda-list { max-height: none; overflow: visible; }
.agenda-item { grid-template-columns: 90px minmax(0,1fr) auto; padding: 20px 24px; align-items: start; }
.agenda-time { font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-time small { display: block; color: var(--muted); font-size: .7rem; margin-top: 7px; font-weight: 400; }
.agenda-copy { gap: 7px; }
.agenda-copy strong { font-size: 1rem; font-weight: 600; }
.agenda-actions { display: grid; gap: 10px; }
.agenda-start { min-height: 40px; }
.moderator-assignment-control { max-width: 240px; }
.agenda-pagination { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.agenda-pagination span { color: var(--muted); font-size: .8rem; }
.schedule-extras { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: white; }
.schedule-extras > summary { cursor: pointer; font-weight: 500; }
#appointmentDialog { max-height: calc(100dvh - 32px); overflow: auto; }
#appointmentDialog input, #appointmentDialog textarea, #appointmentDialog label { font: inherit; font-size: .88rem; font-weight: 400; }
#appointmentDialog label { display: grid; gap: 8px; }
#appointmentDialog textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.appointment-contacts { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.appointment-contacts legend { font-size: .85rem; padding-inline: 5px; }
.appointment-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.appointment-contact label:last-child { grid-column: 1 / -1; }
.editor-hint { font-size: .78rem; font-weight: 400; color: var(--muted); line-height: 1.5; margin: 0 20px; }
.field-grid .editor-hint { margin: 0; }
.editor-feedback { margin: 16px 20px 0; color: var(--green); line-height: 1.5; font-size: .84rem; }
#appointmentDialog footer { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--line); margin-top: 18px; }
@media (max-width: 680px) {
  .agenda-item { grid-template-columns: 60px minmax(0,1fr); padding: 16px; }
  .agenda-actions { grid-column: 2; display: flex; flex-wrap: wrap; }
  .agenda-actions > button { min-height: 44px; }
  .appointment-contact { grid-template-columns: minmax(0,1fr); }
  .schedule-tabs { width: 100%; }
  .schedule-tabs button { flex: 1; }
  .schedule-toolbar > span { width: 100%; }
  #scheduleTimeZone { margin-inline-start: 0; }
}

@media (max-width: 980px) {
  .access-gate, .schedule-layout { grid-template-columns: 1fr; }
  .access-gate { min-height: auto; }
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .worker-ownership-panel { grid-template-columns: minmax(0,1fr) auto; }
  .worker-ownership-summary { grid-column: 1; }
  .worker-ownership-panel > button { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 680px) {
  .topbar nav a { display: none; }
  .topbar { height: 66px; padding: 0 16px; }
  .access-gate { padding: 38px 18px; gap: 28px; }
  .access-gate h1 { font-size: 2.7rem; }
  .workspace { padding: 25px 12px 50px; }
  .hero, .booking-link-card { align-items: stretch; grid-template-columns: 1fr; display: grid; }
  .hero-actions, .link-actions { width: 100%; }
  .hero-actions > *, .link-actions > * { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demographics-heading { display: grid; gap: 10px; }
  .coverage-pill { width: fit-content; }
  .gender-split-legend { grid-template-columns: 1fr; }
  .worker-ownership-panel { grid-template-columns: 1fr; gap: 14px; }
  .worker-ownership-summary, .worker-ownership-panel > button { grid-column: auto; grid-row: auto; }
  .worker-ownership-panel > button { width: 100%; }
  .calendar-scope-panel { align-items: stretch; display: grid; gap: 14px; }
  .calendar-scope-panel > label { min-width: 0; }
  .shared-calendar-notice { align-items: stretch; display: grid; }
  .shared-calendar-notice button { width: 100%; }
  .calendar-day { min-height: 78px; padding: 5px; }
  .day-events { margin-top: 4px; }
  .day-event { padding: 3px; font-size: .55rem; }
  .weekday-row span { font-size: .56rem; padding: 8px 2px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .full { grid-column: auto; }
  .recording-participant-row { grid-template-columns: 1fr; }
  .recording-participant-row > strong { grid-column: auto; }
  .agenda-item { grid-template-columns: 48px minmax(0,1fr); }
  .agenda-start { grid-column: 2; justify-self: start; }
  .worker-assignment-controls { grid-template-columns: 1fr; }
  .worker-assignment-row { grid-template-columns: auto minmax(0,1fr); gap: 8px 12px; }
  .worker-owner-copy, .worker-id-meta { grid-column: 2; }
  .worker-assignment-list { max-height: 42vh; }
  .worker-assignment-dialog footer { display: grid; grid-template-columns: 1fr 1fr; }
}
