:root {
  --blue: #4488dd;
  --blue-dark: #2f6fbe;
  --blue-deep: #1e5fae;
  --blue-soft: #edf6ff;
  --blue-panel: #dceeff;
  --blue-header: #bcd7ff;
  --blue-border: #9fc4ed;
  --line: #cbdff2;
  --text: #18324f;
  --muted: #61758c;
  --bg: #f4f9ff;
  --card: #ffffff;
  --danger: #c43b3b;
  --danger-soft: #fff1f1;
  --ok: #237a53;
  --unknown: #8a6a12;
  --shadow: 0 5px 18px rgba(45, 98, 155, 0.10);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; background: var(--bg); }
h1, h2, h3, strong, b { font-weight: normal; }
a { color: var(--blue-deep); }
button, input, textarea { font: inherit; }
button, a.button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.site-header {
  min-height: 82px;
  background: var(--blue-header);
  border-bottom: 1px solid #8fb9ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(48, 100, 158, .10);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 3px 8px 3px 0;
  border-radius: 8px;
}
.brand img { display: block; width: min(250px, 52vw); height: auto; }
.account-area { min-width: 0; }
.account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(72, 126, 185, .25);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.account-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #8eb8e6;
}
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #24496f; }
.link-button {
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  padding: 7px 5px;
  cursor: pointer;
  border-radius: 7px;
}
.link-button:hover { background: rgba(255,255,255,.68); }

.page-shell {
  width: min(920px, calc(100% - 28px));
  margin: 22px auto 42px;
  display: grid;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 13px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.hero {
  background: var(--blue-panel);
  border-color: #96bfea;
  border-left: 6px solid var(--blue);
  box-shadow: none;
}
.hero h1, .schedule-summary h1, .card h2 { margin: 0 0 10px; letter-spacing: .01em; }
.hero h1 { color: #174e86; }
.hero p, .card p { margin: 0; line-height: 1.75; color: var(--muted); }
.eyebrow { display: block; color: var(--blue-deep); font-size: .82rem; margin-bottom: 5px; }
.section-heading, .schedule-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 5px solid var(--blue);
}
.schedule-summary h1 {
  padding-left: 11px;
  border-left: 6px solid var(--blue);
  color: #174e86;
}
.auth-card, .result-card { background: #f7fbff; }
.required { color: var(--danger); font-size: .78rem; font-weight: normal; }
.subtle, .hint { color: var(--muted); font-size: .92rem; }
.schedule-memo { white-space: pre-wrap; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, .slot-entry label > span { font-size: .92rem; color: #355b82; }
input[type="text"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  border: 1px solid #9fc4ed;
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(50, 87, 126, .04);
}
input:hover, select:hover, textarea:hover { border-color: #78ace4; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(68, 136, 221, .14);
}
textarea { resize: vertical; line-height: 1.55; }

.slot-fieldset {
  border: 1px solid #99c1ea;
  border-radius: 10px;
  margin: 0 0 20px;
  padding: 18px;
  background: #eef7ff;
}
.slot-fieldset legend {
  padding: 3px 9px;
  color: #285f98;
  background: #eef7ff;
  border-radius: 6px;
}
.slot-entry {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(110px, .8fr) minmax(110px, .8fr) auto;
  gap: 10px;
  align-items: end;
}
.slot-entry label { display: grid; gap: 6px; }
.slot-list { display: grid; gap: 8px; margin-top: 14px; }
.slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #a9c9e9;
  border-radius: 8px;
  background: #fff;
}
.slot-text { font-variant-numeric: tabular-nums; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: #244e78; }
.icon-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 7px;
}
.icon-button:hover { background: var(--danger-soft); }
.empty-state { color: var(--muted); padding: 13px 0 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .05s ease, border-color .15s ease, background .15s ease;
  user-select: none;
}
.button:active { transform: translateY(1px); }
.button.primary {
  background: var(--blue-deep);
  color: white;
  border-color: #174f91;
  box-shadow: 0 2px 5px rgba(31, 88, 151, .18);
}
.button.primary:hover { background: #174f91; }
.button.secondary {
  background: #eef6ff;
  color: #275f99;
  border-color: #9bc2e9;
}
.button.secondary:hover { border-color: #6fa5dc; background: #e2f0ff; }
.button.danger { background: var(--danger-soft); color: var(--danger); border-color: #efb8b8; }
.button.wide { width: 100%; }
.login-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.button.provider {
  min-width: 180px;
  background: white;
  color: #294f76;
  border-color: #9fc4ed;
  box-shadow: 0 2px 5px rgba(48, 96, 145, .07);
}
.button.provider:hover { background: #f2f8ff; border-color: #78ace4; }


.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; }
.result-card { border-color: #90bce8; }
.recent-list {
  display: grid;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #c2daf1;
  border-radius: 9px;
  background: #f4faff;
}
.recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 12px 2px;
  border-top: 1px solid #cbdff2;
}
.recent-item:first-child { border-top: 0; }
.recent-item a { font-size: 1.03rem; text-decoration: none; overflow-wrap: anywhere; color: #235f9f; }
.recent-item a:hover { text-decoration: underline; }
.recent-meta { color: var(--muted); font-size: .86rem; }

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #466985;
  font-size: .9rem;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef7ff;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.table-wrap {
  overflow: auto;
  max-height: min(72vh, 860px);
  border: 1px solid #9fc4ed;
  border-radius: 9px;
  margin-top: 14px;
  background: white;
}
.response-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.response-table th, .response-table td {
  border-right: 1px solid #cbdff2;
  border-bottom: 1px solid #cbdff2;
  padding: 10px;
  text-align: center;
  background: white;
  vertical-align: middle;
}
.response-table tr:last-child td, .response-table tr:last-child th { border-bottom: 0; }
.response-table th:last-child, .response-table td:last-child { border-right: 0; }
.response-table thead th { background: #dceeff; color: #275a8f; position: sticky; top: 0; z-index: 4; }
.response-table tbody tr:nth-child(even) td { background: #fbfdff; }
.response-table .slot-cell {
  min-width: 182px;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #e8f4ff !important;
  color: #275a8f;
}
.response-table .slot-header-cell {
  z-index: 5;
  top: 0;
  left: 0;
  background: #d7ebff !important;
}
.response-table .participant-head { min-width: 108px; }
.participant-name { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto; }
.participant-memo { display: block; margin-top: 3px; font-size: .75rem; color: var(--muted); max-width: 140px; white-space: normal; }
.slot-date-line,
.slot-time-line,
.slot-count-line {
  display: block;
}
.slot-date-line { font-size: 1rem; font-weight: 500; line-height: 1.25; }
.slot-date-text { color: #1f568a; }
.slot-weekday { margin-left: 2px; }
.slot-weekday.weekday-0 { color: #c43b3b; }
.slot-weekday.weekday-6 { color: #1767bd; }
.slot-time-line { margin-top: 4px; color: #174f91; font-weight: 500; line-height: 1.35; }
.slot-count-line {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.count-item { display: inline-flex; align-items: center; gap: 2px; }
.count-attend { color: #1767bd; }
.count-absent { color: var(--danger); }
.count-maybe { color: var(--unknown); }
.status {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  border: 1px solid transparent;
}
.status-0 { color: #1767bd; background: #e5f2ff; border-color: #b6d5f2; }
.status-1 { color: var(--danger); background: var(--danger-soft); border-color: #efc1c1; }
.status-2 { color: var(--unknown); background: #fff8da; border-color: #eadb9e; }
.status-button {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
}
.status-button:hover { background: #e8f4ff; }
.status-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.counts { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.dialog-card {
  width: min(480px, calc(100% - 28px));
  border: 1px solid #90bce8;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 22px 70px rgba(18, 52, 88, .24);
  background: #fff;
  color: var(--text);
}
.dialog-card::backdrop { background: rgba(25, 55, 88, .38); }
.dialog-card h2 { color: #225d98; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.qr-dialog { text-align: center; }
.qr-dialog img { width: min(320px, 90%); height: auto; margin: 10px auto 18px; display: block; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 16px);
  background: #244f7a;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 100;
  max-width: min(90vw, 560px);
  box-shadow: 0 5px 16px rgba(30, 75, 120, .20);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #9f1d1d; }
.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 4px 18px 30px;
  color: #6b8197;
  font-size: .86rem;
}
.error-card { text-align: center; }

/* Admin differential ZIP deploy: the header button itself is the drop target. */
.admin-update-button {
  color: #8a4b08;
  border: 1px dashed transparent;
  transition: background .12s ease, border-color .12s ease, transform .08s ease, opacity .12s ease;
}
.admin-update-button.dragover {
  background: #fff1cf;
  border-color: #d69a24;
  transform: scale(1.06);
}
.admin-update-button.updating {
  opacity: .58;
  cursor: wait;
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 8px 12px; }
  .brand img { width: min(185px, 50vw); }
  .account-chip { padding: 4px 5px; gap: 5px; }
  .account-name { display: none; }
  .page-shell { width: min(100% - 16px, 920px); margin-top: 10px; gap: 10px; }
  .card { border-radius: 10px; padding: 16px; }
  .table-wrap { max-height: min(64vh, 720px); }
  .hero { border-left-width: 5px; }
  .slot-fieldset { padding: 14px; }
  .slot-entry { grid-template-columns: 1fr 1fr; }
  .slot-entry label:first-child { grid-column: 1 / -1; }
  .slot-entry .button { grid-column: 1 / -1; }
  .section-heading, .schedule-toolbar { display: block; }
  .legend { margin-top: 10px; }
  .copy-row { grid-template-columns: 1fr; }
  .login-buttons { display: grid; }
  .button.provider { width: 100%; }
  .actions-row { display: grid; grid-template-columns: 1fr 1fr; }
  .actions-row .button { width: 100%; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .site-header { gap: 6px; }
  .brand img { width: min(152px, 46vw); }
  .account-chip img { width: 32px; height: 32px; }
  .link-button { padding: 7px 4px; font-size: .88rem; }
  .hero h1, .schedule-summary h1 { font-size: 1.35rem; }
  .card h2 { font-size: 1.18rem; }
  .actions-row { grid-template-columns: 1fr; }
}

/* v7: provider identity, compact login chooser and always-visible calendar planner */
.account-provider-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #a8c8e9;
  border-radius: 8px;
  background: #fff;
  color: #111;
  line-height: 1;
  font-size: .94rem;
}
.account-provider-icon img {
  width: 20px !important;
  height: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain;
}

.account-name { max-width: 210px; }

.provider-login-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 96px));
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.provider-login-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 6px 10px;
  border: 1px solid #aacbec;
  border-radius: 12px;
  background: #fff;
  color: #294f76;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(48, 96, 145, .06);
  transition: transform .08s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.provider-login-item:hover,
.provider-login-item:focus-visible {
  background: #f3f9ff;
  border-color: #72a9df;
  box-shadow: 0 5px 13px rgba(48, 96, 145, .10);
  transform: translateY(-1px);
  outline: none;
}
.provider-login-item > span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: .78rem;
}
.provider-login-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #d3e2f1;
  border-radius: 50%;
  background: #fff;
  line-height: 1;
}
.provider-login-icon img { width: 28px; height: 28px; object-fit: contain; }


.provider-login-item.yahoo { color: #ba1230; border-color: #e7bdc5; }
.provider-login-item.yahoo:hover,
.provider-login-item.yahoo:focus-visible { border-color: #d98595; background: #fff8f9; }


.slot-fieldset { padding: 18px; }
.slot-planner {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(430px, 1.28fr);
  gap: 16px;
  align-items: start;
}
.slot-time-panel,
.calendar-panel {
  border: 1px solid #b0cfea;
  border-radius: 11px;
  background: #fff;
  padding: 16px;
}
.slot-time-panel { background: #e8f4ff; }
.slot-time-panel h3,
.calendar-panel h3,
.selected-slots-head h3 { margin: 3px 0 12px; color: #245c94; font-size: 1.03rem; }
.planner-kicker {
  color: #5d7d9e;
  font-size: .72rem;
  letter-spacing: .08em;
}
.slot-time-grid {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: nowrap;
}
.slot-time-field,
.slot-time-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}
.slot-time-grid label > span { color: #355b82; font-size: .9rem; white-space: nowrap; }
.slot-time-grid select,
.slot-time-grid input[type="time"] {
  width: 100%;
  min-width: 0;
}
.slot-time-sep {
  flex: 0 0 auto;
  align-self: end;
  display: grid;
  place-items: center;
  padding-bottom: 14px;
  color: #2d649e;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  user-select: none;
}
.slot-time-panel .hint { margin-top: 12px; line-height: 1.6; }

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.calendar-nav { display: flex; align-items: center; gap: 5px; }
.calendar-nav-button,
.calendar-today-button {
  min-width: 34px;
  height: 32px;
  border: 1px solid #aecbea;
  border-radius: 7px;
  background: #f6fbff;
  color: #275f99;
  cursor: pointer;
}
.calendar-nav-button { font-size: 1.35rem; line-height: 1; }
.calendar-today-button { padding: 0 9px; font-size: .76rem; }
.calendar-nav-button:hover,
.calendar-today-button:hover { background: #e8f4ff; border-color: #77a9da; }
.calendar-title {
  margin: 4px 0 10px;
  text-align: center;
  color: #1f578f;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekdays { margin-bottom: 4px; }
.calendar-weekdays span {
  padding: 4px 0;
  text-align: center;
  color: #587590;
  font-size: .76rem;
}
.calendar-weekdays .sun { color: #b74a4a; }
.calendar-weekdays .sat { color: #316ba8; }
.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 50px;
  border: 1px solid #d1e1ef;
  border-radius: 8px;
  background: #fff;
  color: #294f76;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background .12s ease, border-color .12s ease, transform .05s ease, box-shadow .12s ease;
}
.calendar-day:hover:not(:disabled) {
  background: #edf7ff;
  border-color: #7eafe0;
  box-shadow: inset 0 0 0 1px #b9d6ef;
}
.calendar-day:active:not(:disabled) { transform: translateY(1px); }
.calendar-day:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.calendar-day.outside-month { background: #f8fbfe; color: #8ca0b3; }
.calendar-day.sunday { color: #b44c4c; }
.calendar-day.saturday { color: #2e69a6; }
.calendar-day.past { cursor: default; opacity: .34; background: #f5f7f9; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #77aee4; }
.calendar-day.has-slots {
  border-color: #3f83c8;
  background: #dceeff;
  color: #174f88;
}
.calendar-day-number { position: relative; z-index: 1; }
.calendar-day-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 9px;
  background: #2872bc;
  color: #fff;
  font-size: .66rem;
  line-height: 1;
}
.calendar-hint { margin-top: 10px; line-height: 1.55; }
.selected-slots-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 2px 0;
  border-top: 1px solid #bed8ef;
}
.selected-slots-head h3 { margin-bottom: 0; }
.slot-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid #a9cae8;
  border-radius: 999px;
  background: #fff;
  color: #326a9f;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .account-name { display: block; max-width: 118px; font-size: .86rem; }
  .slot-planner { grid-template-columns: 1fr; }
  .calendar-day { min-height: 46px; }
}

@media (max-width: 520px) {
  .provider-login-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .provider-login-item { padding: 10px 3px 8px; border-radius: 10px; }
  .provider-login-icon { width: 42px; height: 42px; }
  .provider-login-icon img { width: 25px; height: 25px; }
  .slot-fieldset { padding: 12px; }
  .slot-time-panel, .calendar-panel { padding: 12px; }
  .calendar-head { display: block; }
  .calendar-nav { justify-content: flex-end; margin-top: -34px; }
  .calendar-title { margin-top: 9px; }
  .calendar-weekdays, .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 42px; border-radius: 7px; font-size: .88rem; }
  .calendar-day-count { right: 2px; bottom: 2px; min-width: 15px; height: 15px; font-size: .6rem; }
  .account-provider-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .account-provider-icon img { width: 18px !important; height: 18px !important; }
  .account-name { max-width: 82px; font-size: .78rem; }
  .logout-button { font-size: .76rem; padding-left: 2px; padding-right: 2px; }
}

@media (max-width: 380px) {
  .brand img { width: min(118px, 35vw); }
  .account-name { max-width: 66px; }
  .provider-login-item > span:last-child { font-size: .7rem; }
  .calendar-day { min-height: 39px; }
}


/* v8: colored weekdays and per-candidate time editor */
.slot-item-editable { padding: 9px 10px 9px 12px; }
.slot-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}
.slot-date-line {
  display: inline-flex;
  align-items: baseline;
  min-width: 92px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #244e78;
}
.slot-date-text {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .96rem;
}
.slot-weekday { margin-left: 1px; color: #496b8c; font-size: .9rem; }
.slot-weekday.saturday { color: #2469ba; }
.slot-weekday.sunday { color: #d33a3a; }
.slot-time-button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #9dc4e9;
  border-radius: 8px;
  background: #f4faff;
  color: #205f9c;
  cursor: pointer;
  font: inherit;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.slot-time-button:hover {
  background: #e4f2ff;
  border-color: #69a5dd;
  box-shadow: 0 2px 8px rgba(45, 111, 173, .12);
}
.slot-time-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.slot-time-separator { color: #6e8ead; }
.slot-time-edit-mark {
  margin-left: 4px;
  padding-left: 7px;
  border-left: 1px solid #c3d9ed;
  color: #5f82a4;
  font-family: inherit;
  font-size: .68rem;
}
.slot-remove-button { flex: 0 0 auto; }
.slot-time-dialog { width: min(430px, calc(100% - 28px)); }
.slot-time-dialog .hint { margin-top: -3px; }
.slot-time-dialog-grid { margin: 17px 0 18px; }

@media (max-width: 520px) {
  .slot-item-editable { align-items: center; }
  .slot-item-main { gap: 8px; }
  .slot-date-line { min-width: 78px; }
  .slot-date-text { font-size: .88rem; }
  .slot-weekday { font-size: .82rem; }
  .slot-time-button { padding: 7px 7px; gap: 3px; font-size: .82rem; }
  .slot-time-edit-mark { display: none; }
  .slot-remove-button { padding-left: 4px; padding-right: 4px; }
}

@media (max-width: 380px) {
  .slot-item-main { align-items: flex-start; flex-direction: column; gap: 5px; }
  .slot-date-line { min-width: 0; }
}

/* v9: calendar dates remain repeatable; badge is only a count, not a selected/locked state */


/* v13: RSSW-like vivid blue theme */
:root {
  --blue: #1d8fff;
  --blue-dark: #187dde;
  --blue-deep: #0f63bf;
  --blue-soft: #f1f8ff;
  --blue-panel: #dff0ff;
  --blue-header: #9ec8f6;
  --blue-border: #8ec0f0;
  --line: #c7ddf4;
  --text: #163a62;
  --muted: #4f6f92;
  --bg: #eaf4ff;
  --card: #ffffff;
  --shadow: 0 10px 24px rgba(30, 98, 170, .14);
}
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
}
.site-header {
  min-height: 86px;
  background: var(--blue-header);
  border-bottom: 3px solid #5d9fe4;
  box-shadow: 0 8px 20px rgba(31, 92, 160, .18);
}
.brand {
  padding: 4px 10px 4px 0;
}
.account-chip {
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(54, 111, 176, .28);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 14px rgba(52, 107, 171, .10);
}
.account-provider-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d0e2f5;
  box-shadow: 0 2px 6px rgba(43, 95, 155, .12);
}
.account-name {
  color: #174875;
  font-size: .94rem;
}
.link-button {
  padding: 8px 9px;
  border-radius: 9px;
}
.link-button:hover {
  background: rgba(255,255,255,.88);
}
.page-shell {
  width: min(940px, calc(100% - 28px));
  margin: 24px auto 46px;
  gap: 18px;
}
.card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--blue-border);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.hero,
.auth-card,
.result-card,
.create-card,
.schedule-summary {
  overflow: hidden;
}
.hero {
  background: #dff0ff;
  border-color: #86bdf2;
  border-left: 9px solid var(--blue);
  box-shadow: var(--shadow);
}
.hero::after,
.auth-card::after,
.result-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: rgba(29, 143, 255, .08);
  transform: rotate(12deg);
  pointer-events: none;
}
.hero h1,
.schedule-summary h1,
.card h2 {
  margin: 0 0 10px;
  letter-spacing: .01em;
  color: #134b83;
}
.hero h1 {
  font-size: clamp(1.5rem, 3vw, 1.82rem);
}
.hero p,
.card p {
  color: var(--muted);
}
.section-heading,
.schedule-toolbar {
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 8px solid var(--blue);
}
.auth-card,
.result-card {
  background: #f4faff;
  border-color: #93c1ee;
}
.button,
a.button {
  border-radius: 11px;
  border-width: 1px;
  box-shadow: 0 4px 10px rgba(39, 96, 157, .08);
}
.button.primary {
  background: #1679e4;
  border-color: #0f62bb;
  box-shadow: 0 6px 14px rgba(18, 97, 183, .18);
}
.button.primary:hover { background: #0f68c5; }
.button.secondary {
  background: #edf6ff;
  border-color: #8ebeee;
}
.provider-login-grid {
  grid-template-columns: repeat(4, minmax(0, 106px));
  gap: 14px;
  margin-top: 22px;
}
.provider-login-item {
  position: relative;
  gap: 8px;
  padding: 15px 8px 12px;
  border: 2px solid #9ec7ee;
  border-radius: 16px;
  background: #fff;
  color: #1f4f82;
  box-shadow: 0 8px 18px rgba(41, 97, 156, .10);
  transition: transform .12s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.provider-login-item::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 9px;
  height: 4px;
  border-radius: 999px;
  background: #6da9ea;
}
.provider-login-item:hover,
.provider-login-item:focus-visible {
  background: #fbfdff;
  border-color: #5a9ae2;
  box-shadow: 0 14px 24px rgba(37, 94, 153, .16);
  transform: translateY(-3px);
}
.provider-login-item > span:last-child {
  font-size: .8rem;
  color: currentColor;
}
.provider-login-icon {
  width: 58px;
  height: 58px;
  border: 2px solid #d4e4f5;
  box-shadow: 0 4px 12px rgba(40, 96, 152, .10);
}
.provider-login-icon img {
  width: 30px;
  height: 30px;
}
.provider-login-item.google::before { background: #4285f4; }
.provider-login-item.line::before { background: #06c755; }
.provider-login-item.x::before { background: #000; }
.provider-login-item.yahoo::before { background: #ff0033; }
.provider-login-item.google:hover,
.provider-login-item.google:focus-visible { border-color: #7ab0f1; }
.provider-login-item.line:hover,
.provider-login-item.line:focus-visible { border-color: #64cd93; }
.provider-login-item.x:hover,
.provider-login-item.x:focus-visible { border-color: #8f9aab; }
.provider-login-item.yahoo { color: #c81d34; border-color: #efb5bf; }
.provider-login-item.yahoo:hover,
.provider-login-item.yahoo:focus-visible { border-color: #e27d8f; }
.provider-login-item.yahoo .provider-login-icon { border-color: #f0c6cf; }
.copy-row,
.recent-list,
.slot-list,
.join-box,
.calendar-shell,
.calendar-wrap {
  border-radius: 14px;
}
.footer {
  color: #56779a;
}
.footer a {
  font-weight: 500;
}
@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding: 9px 14px;
  }
  .page-shell {
    width: min(100% - 20px, 920px);
    margin-top: 16px;
    gap: 14px;
  }
  .card {
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(31, 90, 150, .13);
  }
  .provider-login-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .provider-login-item {
    padding: 13px 6px 10px;
    border-radius: 14px;
  }
  .provider-login-icon {
    width: 52px;
    height: 52px;
  }
  .provider-login-icon img {
    width: 28px;
    height: 28px;
  }
}

/* v14: vivid logged-in UI + compact account menu */
.site-header {
  background: #8fc3f7;
  border-bottom-color: #287ed4;
  box-shadow: 0 8px 22px rgba(21, 85, 154, .24);
}
.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}
.header-update-button {
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid #0e62b7;
  border-radius: 11px;
  background: #126fcf;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(12, 86, 160, .24);
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.header-update-button:hover,
.header-update-button:focus-visible {
  background: #0c5ead;
  border-color: #084f98;
  box-shadow: 0 8px 16px rgba(8, 76, 145, .30);
  transform: translateY(-1px);
  outline: none;
}
.header-update-button.dragover {
  background: #07519b;
  border-color: #fff;
  color: #fff;
  transform: scale(1.05);
}
.header-update-button.updating {
  opacity: .62;
  cursor: wait;
}
.account-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}
.account-icon-button {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #4e93d8;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(25, 86, 148, .20);
  transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-icon-button:hover,
.account-icon-button:focus-visible,
.account-icon-button[aria-expanded="true"] {
  border-color: #0f67bd;
  box-shadow: 0 8px 16px rgba(17, 78, 139, .28);
  transform: translateY(-1px);
  outline: none;
}
.account-button-provider-icon,
.account-popover-provider-icon {
  display: grid;
  place-items: center;
  background: #fff;
}
.account-button-provider-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.account-button-provider-icon img {
  width: 25px !important;
  height: 25px !important;
  display: block;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(290px, calc(100vw - 24px));
  padding: 12px;
  border: 2px solid #6fa8df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(21, 72, 126, .28);
}
.account-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 2px solid #6fa8df;
  border-top: 2px solid #6fa8df;
  transform: rotate(45deg);
}
.account-popover-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 7px 12px;
  border-bottom: 1px solid #cee2f5;
}
.account-popover-provider-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #d3e4f5;
  border-radius: 50%;
}
.account-popover-provider-icon img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
}
.account-popover-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.account-popover-provider {
  color: #6683a0;
  font-size: .74rem;
}
.account-popover-name {
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #174b7c;
  font-size: .96rem;
}
.account-popover-logout {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2a9a9;
  border-radius: 10px;
  background: #fff1f1;
  color: #b83232;
  cursor: pointer;
  text-align: center;
}
.account-popover-logout:hover,
.account-popover-logout:focus-visible {
  background: #ffe4e4;
  border-color: #d47f7f;
  outline: none;
}

/* Logged-in pages: stronger RSSW-like accenting without gradients */
#create-card,
#response-card,
#join-card,
#schedule-login,
.schedule-summary,
#recent-card,
#created-card {
  border-width: 2px;
  border-color: #75afe6;
  box-shadow: 0 12px 26px rgba(24, 88, 153, .16);
}
#create-card::before,
#response-card::before,
#join-card::before,
#schedule-login::before,
.schedule-summary::before,
#recent-card::before,
#created-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: #1587f1;
  pointer-events: none;
}
#create-card,
#response-card,
#recent-card,
#created-card {
  background: #fbfdff;
}
.schedule-summary {
  background: #e8f4ff;
  border-left: 8px solid #1587f1;
}
.schedule-summary .eyebrow,
.section-heading .eyebrow,
.schedule-toolbar .eyebrow {
  color: #0f69c1;
}
.slot-fieldset {
  border: 2px solid #83b7e8;
  border-radius: 16px;
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.slot-fieldset legend {
  padding: 0 8px;
  color: #17578f;
  background: #fbfdff;
}
.slot-time-panel,
.calendar-panel {
  border: 2px solid #9bc7ef;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(34, 96, 158, .10);
}
.slot-time-panel {
  background: #dff0ff;
}
.calendar-panel {
  background: #fff;
}
.planner-kicker {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #167bd9;
  color: #fff;
  letter-spacing: .04em;
}
.calendar-nav-button,
.calendar-today-button {
  border-width: 2px;
  border-color: #82b6e7;
  background: #f3f9ff;
  box-shadow: 0 3px 8px rgba(37, 96, 155, .08);
}
.calendar-day {
  border-width: 2px;
  border-color: #d1e3f3;
  box-shadow: 0 2px 5px rgba(39, 89, 139, .04);
}
.calendar-day:hover:not(:disabled) {
  background: #e2f1ff;
  border-color: #4f9ae1;
  box-shadow: 0 5px 12px rgba(41, 100, 161, .14);
  transform: translateY(-1px);
}
.calendar-day.today {
  border-color: #1177d4;
  box-shadow: inset 0 0 0 1px #1177d4, 0 4px 10px rgba(17, 119, 212, .13);
}
.calendar-day.has-slots {
  background: #cfe8ff;
  border-color: #1678d2;
  color: #104f89;
}
.calendar-day-count {
  background: #0e69c2;
  box-shadow: 0 2px 5px rgba(13, 89, 165, .20);
}
.slot-list {
  border: 2px solid #a1c9ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(42, 95, 151, .08);
}
.slot-time-button {
  border-width: 2px;
  border-color: #82b9e9;
  background: #eaf5ff;
  box-shadow: 0 3px 8px rgba(38, 98, 157, .08);
}
.slot-time-button:hover {
  background: #d9edff;
  border-color: #3f93dd;
}
.response-table {
  border-radius: 10px;
}
.table-wrap {
  border-width: 2px;
  border-color: #78afe3;
  box-shadow: 0 8px 18px rgba(35, 89, 145, .10);
}
.response-table thead th {
  background: #cfe8ff;
  color: #124e85;
}
.response-table .slot-header-cell {
  background: #b9dcff !important;
}
.response-table .slot-cell {
  background: #e3f2ff !important;
}
.status {
  box-shadow: 0 3px 8px rgba(32, 81, 129, .10);
}
.status-0 {
  color: #0b68c8;
  background: #dceeff;
  border-color: #7db7ed;
}
.status-1 {
  background: #ffe7e7;
  border-color: #eaa0a0;
}
.status-2 {
  background: #fff1c9;
  border-color: #e2c568;
}
.actions-row .button {
  min-height: 42px;
  border-width: 2px;
}
.dialog-card {
  border-width: 2px;
  border-color: #70abe3;
  box-shadow: 0 24px 60px rgba(18, 65, 115, .30);
}
.recent-list {
  border-width: 2px;
  border-color: #9bc3e8;
  background: #edf7ff;
}

@media (max-width: 640px) {
  .header-controls { gap: 7px; }
  .header-update-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: .84rem;
  }
  .account-icon-button {
    width: 39px;
    height: 39px;
  }
  .account-button-provider-icon {
    width: 28px;
    height: 28px;
  }
  .account-button-provider-icon img {
    width: 23px !important;
    height: 23px !important;
  }
  .account-popover {
    right: -2px;
    width: min(270px, calc(100vw - 20px));
  }
  #create-card,
  #response-card,
  #join-card,
  #schedule-login,
  .schedule-summary,
  #recent-card,
  #created-card {
    box-shadow: 0 9px 19px rgba(24, 83, 142, .14);
  }
}


/* v15: compact sticky schedule table, vector status icons, notification dialog */
.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  /* v16: allow the wheel/touch scroll to continue to the page at table boundaries. */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.response-table {
  min-width: max-content;
}
.response-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 2px 0 #78afe3;
}
.response-table .slot-cell {
  left: 0;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  padding: 9px 8px;
  z-index: 7;
  box-shadow: 2px 0 0 #94bfe8;
}
.response-table .slot-header-cell {
  top: 0;
  left: 0;
  z-index: 12;
}
.response-table .participant-head {
  min-width: 104px;
  max-width: 124px;
}
.response-table .participant-head-me,
.response-table .participant-cell-me {
  background: #d9efff !important;
}
.slot-date-line { font-size: .91rem; line-height: 1.2; white-space: nowrap; }
.slot-date-text { font-size: .91rem; }
.slot-weekday { font-size: .82rem; }
.slot-time-line {
  margin-top: 4px;
  font-size: .84rem;
  line-height: 1.22;
  white-space: nowrap;
}
.slot-count-line {
  margin-top: 5px;
  gap: 5px;
  flex-wrap: nowrap;
}
.count-item {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: .69rem;
  color: #52718f;
}
.status {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.status img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin: auto;
}
.status-small {
  width: 16px;
  height: 16px;
  border-width: 1px;
  box-shadow: none;
}
.status-small img {
  width: 12px;
  height: 12px;
}
.status-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 4px;
}
.notify-dialog { width: min(520px, calc(100% - 24px)); }
.notify-member-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  max-height: min(50vh, 420px);
  overflow: auto;
}
.notify-member-row {
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #b8d5ee;
  border-radius: 11px;
  background: #f6fbff;
}
.notify-member-row:has(input:checked) {
  border-color: #4598e2;
  background: #e9f5ff;
}
.notify-member-row input { width: 18px; height: 18px; }
.notify-provider-icon { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: #fff; }
.notify-member-main { min-width: 0; display: grid; gap: 2px; }
.notify-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #164c7f; }
.notify-channel-status { font-size: .76rem; color: #657f99; }
.notify-route-row {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  font-size: .82rem;
  line-height: 1.45;
}
.notify-route-label {
  color: #68819a;
  white-space: nowrap;
}
.notify-route-value {
  min-width: 0;
  color: #164c7f;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.notify-route-destination .notify-route-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.notify-note { margin-top: 4px; }
@media (max-width: 640px) {
  .table-wrap { max-height: calc(100vh - 165px); }
  .response-table .slot-cell {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    padding: 8px 6px;
  }
  .response-table .participant-head { min-width: 96px; max-width: 112px; }
  .slot-date-line, .slot-date-text { font-size: .84rem; }
  .slot-weekday { font-size: .76rem; }
  .slot-time-line { font-size: .78rem; }
}


/* v16: restore normal page scrolling while keeping the response table sticky/scrollable. */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}
.page-shell, #schedule-root, #response-card {
  min-height: 0;
}
.table-wrap {
  scrollbar-gutter: stable;
}
@media (max-width: 640px) {
  .table-wrap {
    overscroll-behavior-y: auto;
  }
}


/* v17: mobile fixed header, reliable two-axis table touch scrolling and contained actions */
:root {
  --site-header-height: 86px;
}
html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body {
  min-height: 100%;
  padding-top: var(--site-header-height);
  overflow-x: hidden;
  overflow-y: visible;
}
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
}
.page-shell,
#schedule-root,
#response-card,
.table-wrap,
.actions-row {
  min-width: 0;
  max-width: 100%;
}
#schedule-root,
#response-card {
  width: 100%;
}
.actions-row {
  width: 100%;
}
.actions-row .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 640px) {
  :root {
    --site-header-height: 68px;
  }
  body {
    padding-top: calc(var(--site-header-height) + env(safe-area-inset-top));
  }
  .site-header {
    height: calc(var(--site-header-height) + env(safe-area-inset-top));
    min-height: calc(var(--site-header-height) + env(safe-area-inset-top));
    padding-top: calc(7px + env(safe-area-inset-top));
    padding-bottom: 7px;
  }
  .page-shell {
    width: calc(100% - 16px);
    max-width: 100%;
    margin: 10px auto 28px;
    padding: 0;
    overflow: visible;
  }
  #schedule-root {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  #response-card {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow: visible;
  }
  .table-wrap {
    width: 100%;
    max-width: 100%;
    height: min(54vh, 460px);
    height: min(54dvh, 460px);
    min-height: 290px;
    max-height: none;
    overflow-x: scroll;
    overflow-y: scroll;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    scrollbar-gutter: auto;
    contain: layout paint;
  }
  .response-table {
    min-width: max-content;
  }
  .response-table thead th {
    top: 0;
  }
  .response-table .slot-header-cell {
    top: 0;
    left: 0;
  }
  .actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
  .actions-row .button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 7px;
    font-size: .82rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
  .schedule-toolbar,
  .legend,
  .hint {
    max-width: 100%;
  }
}

@media (max-width: 350px) {
  .actions-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v19: keep the start/end time controls inside the mobile planner */
.slot-time-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
}
.slot-time-grid > label {
  min-width: 0;
  max-width: 100%;
}
.slot-time-grid input[type="time"] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .slot-time-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .slot-time-grid > label {
    width: 100%;
    min-width: 0;
  }
  .slot-time-grid input[type="time"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 6px;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
  }
  .slot-time-grid input[type="time"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .slot-time-grid {
    gap: 6px;
  }
  .slot-time-grid input[type="time"] {
    padding-left: 4px;
    padding-right: 4px;
    font-size: .94rem;
  }
}


@media (max-width: 520px) {
  .slot-time-grid {
    column-gap: 9px;
  }
  .slot-time-grid label > span {
    font-size: .88rem;
  }
  .slot-time-grid input[type="time"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  .slot-time-sep {
    padding-bottom: 12px;
    font-size: 1.12rem;
  }
}



/* v21: on small screens, show 開始〜終了 on a single line */
@media (max-width: 520px) {
  .slot-time-grid {
    grid-template-columns: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 0;
    align-items: center;
  }
  .slot-time-field {
    display: contents;
  }
  .slot-time-grid label > span {
    align-self: center;
    white-space: nowrap;
    font-size: .85rem;
    line-height: 1.1;
  }
  .slot-time-grid input[type="time"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  .slot-time-sep {
    align-self: center;
    padding-bottom: 0;
    margin: 0 2px;
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .slot-time-grid {
    column-gap: 6px;
  }
  .slot-time-grid label > span {
    font-size: .8rem;
  }
  .slot-time-grid input[type="time"] {
    padding-left: 6px;
    padding-right: 6px;
    font-size: .96rem;
  }
}


/* v23: mobile header space optimization and hamburger menu */
.mobile-more-wrap { display: none; }
.mobile-more-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #0e62b7;
  border-radius: 11px;
  background: #126fcf;
  box-shadow: 0 5px 12px rgba(12, 86, 160, .24);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.mobile-more-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.mobile-more-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 95;
  width: min(290px, calc(100vw - 20px));
  padding: 8px;
  border: 2px solid #69a7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(21, 72, 126, .28);
}
.mobile-more-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #174b7c;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.mobile-more-item:hover,
.mobile-more-item:focus-visible {
  background: #eaf5ff;
  outline: none;
}
.mobile-more-item.danger {
  color: #b83232;
}
.mobile-more-item.danger:hover,
.mobile-more-item.danger:focus-visible {
  background: #fff0f0;
}
.mobile-more-update {
  color: #0f63bf;
}
.mobile-more-divider {
  height: 1px;
  margin: 5px 3px;
  background: #d4e4f3;
}
.mobile-more-link { box-sizing: border-box; }

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 7px 10px;
  }
  .brand img {
    width: min(162px, 46vw);
  }
  .header-controls {
    gap: 7px;
  }
  .header-update-button {
    display: none;
  }
  .account-icon-button {
    width: 40px;
    height: 40px;
  }
  .account-button-provider-icon {
    width: 29px;
    height: 29px;
  }
  .mobile-more-wrap {
    position: relative;
    display: block;
    flex: 0 0 auto;
  }
  .mobile-more-button {
    display: grid;
  }
  .actions-row {
    display: none;
  }
  .site-footer {
    padding-top: 0;
  }
}


/* v24: use select controls with true 5-minute options and keep start~end on one row */
@media (max-width: 520px) {
  .slot-time-grid {
    gap: 8px !important;
    flex-wrap: nowrap;
    align-items: end;
  }
  .slot-time-field,
  .slot-time-grid label {
    flex: 1 1 0;
    min-width: 0;
  }
  .slot-time-grid label > span {
    font-size: .84rem !important;
    line-height: 1.1;
    white-space: nowrap;
  }
  .slot-time-grid select,
  .slot-time-grid input[type="time"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: .98rem;
  }
  .slot-time-sep {
    margin: 0 2px;
    padding-bottom: 12px !important;
    font-size: 1.05rem !important;
  }
}
@media (max-width: 360px) {
  .slot-time-grid {
    gap: 6px !important;
  }
  .slot-time-grid label > span {
    font-size: .8rem !important;
  }
  .slot-time-grid select,
  .slot-time-grid input[type="time"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: .94rem;
  }
}


/* v26: mobile keep 開始〜終了 in one row and emphasize :00 / :30 */
.slot-time-grid select.time-select-emphasis,
.slot-time-dialog-grid select.time-select-emphasis {
  color: #163a62;
  font-weight: 700;
}
.slot-time-grid select,
.slot-time-dialog-grid select {
  color: #56779a;
}
@media (max-width: 520px) {
  .slot-time-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .slot-time-field > span {
    flex: 0 0 auto;
    margin: 0;
  }
  .slot-time-field > select,
  .slot-time-field > input[type="time"] {
    flex: 1 1 0;
    min-width: 0;
  }
  .slot-time-sep {
    align-self: center;
    padding-bottom: 0 !important;
  }
}


/* v28: stronger, more vivid blue theme */
:root {
  --blue: #1f88f5;
  --blue-dark: #166fce;
  --blue-deep: #0f5fb9;
  --blue-soft: #e7f3ff;
  --blue-panel: #cfe8ff;
  --blue-header: #8fc3f7;
  --blue-border: #6aa9e7;
  --line: #a8cbed;
  --text: #123a64;
  --muted: #4d6f95;
  --bg: #eaf4ff;
  --shadow: 0 10px 24px rgba(22, 91, 164, .16);
}
body {
  background: linear-gradient(180deg, #d7ebff 0%, #edf6ff 120px, var(--bg) 340px);
}
.site-header {
  background: linear-gradient(180deg, #278df3 0%, #0f68c5 100%);
  border-bottom: 3px solid #0f5fb9;
  box-shadow: 0 8px 20px rgba(16, 96, 183, .22);
}
.account-chip {
  background: rgba(255,255,255,.88);
  border-color: rgba(42, 106, 174, .34);
  box-shadow: 0 6px 16px rgba(33, 91, 151, .10);
}
.card {
  border-width: 2px;
  border-color: #75b0ea;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(30, 94, 160, .13);
}
.hero,
.auth-card,
.result-card,
.schedule-summary,
.slot-planner,
.slot-time-panel,
.calendar-panel,
.table-wrap,
.slot-entry {
  border-color: #6faeea !important;
}
.hero,
.auth-card,
.result-card {
  background: #eef7ff;
}
.hero {
  border-left-width: 8px;
  box-shadow: 0 8px 18px rgba(27, 94, 164, .10);
}
.section-heading,
.schedule-toolbar {
  border-left-width: 7px;
}
.schedule-summary h1,
.card h2,
.hero h1,
.field > span,
.slot-entry label > span,
.slot-time-grid label > span,
.slot-planner h3,
.calendar-head,
.calendar-weekdays,
.schedule-meta,
.account-name {
  color: #144a82;
}
input[type="text"], input[type="date"], input[type="time"], select, textarea {
  border-width: 2px;
  border-color: #86b8eb;
  box-shadow: inset 0 1px 2px rgba(50, 87, 126, .05), 0 1px 0 rgba(255,255,255,.7);
}
input:hover, select:hover, textarea:hover {
  border-color: #4c98e3;
}
input:focus, select:focus, textarea:focus {
  border-color: #1f88f5;
  box-shadow: 0 0 0 4px rgba(31, 136, 245, .16);
}
.button,
a.button {
  border-width: 2px;
  border-radius: 12px;
}
.button.primary {
  background: linear-gradient(180deg, #278df3 0%, #0f68c5 100%);
  border-color: #0f5fb9;
  box-shadow: 0 8px 16px rgba(16, 96, 183, .22);
}
.button.primary:hover {
  background: linear-gradient(180deg, #3797f7 0%, #166fce 100%);
}
.button.secondary {
  background: #eef7ff;
  color: #1d5f9f;
  border-color: #81b4e9;
}
.provider-login-item {
  border-width: 2px;
  border-color: #85b8ea;
  box-shadow: 0 8px 18px rgba(41, 97, 156, .10);
}
.provider-login-item:hover,
.provider-login-item:focus-visible {
  border-color: #4c98e3;
  box-shadow: 0 12px 22px rgba(37, 94, 153, .16);
}
.provider-login-icon {
  border-width: 2px;
  border-color: #bdd8f2;
}
.table-wrap {
  border-width: 2px;
  box-shadow: 0 8px 18px rgba(36, 95, 154, .09);
}
.response-table thead th {
  background: #cfe8ff;
  color: #1e5e9d;
}
.response-table .slot-cell {
  background: #e2f1ff !important;
  color: #1d5d9d;
}
.response-table .slot-header-cell {
  background: #c7e4ff !important;
}
.status-legend,
.answer-toolbar,
.schedule-actions,
.legend-strip {
  background: #eef7ff;
  border: 2px solid #8ab9ea;
  border-radius: 14px;
}
@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #d8edff 0%, #edf6ff 90px, var(--bg) 280px);
  }
  .site-header {
    border-bottom-width: 2px;
    box-shadow: 0 6px 14px rgba(16, 96, 183, .20);
  }
  .card {
    border-radius: 14px;
  }
}


/* v30: stronger time option emphasis and faint disabled choices */
.slot-time-grid select.time-select-emphasis,
.slot-time-dialog-grid select.time-select-emphasis {
  color: #0f2f53;
  font-weight: 900;
}
.slot-time-grid select option:disabled,
.slot-time-dialog-grid select option:disabled {
  color: #d7e1ec;
}


/* v33: center SNS login icons when fewer providers are shown */
.provider-login-grid {
  grid-template-columns: repeat(auto-fit, 106px) !important;
  justify-content: center !important;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .provider-login-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 96px)) !important;
  }
}


/* v34: show participant count clearly in recent event history */
.recent-item .recent-meta {
  grid-column: 1 / -1;
}


/* v36: admin-only XREA mail delivery test */
.admin-mail-test-area {
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #8ab9ea;
  border-radius: 10px;
  background: #eef7ff;
  color: #245b91;
  font-size: .84rem;
}
.admin-mail-test-area .button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  font-size: .8rem;
}
@media (max-width: 520px) {
  .admin-mail-test-area {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-mail-test-area .button { width: 100%; }
}


/* v37: notification details, complete PC header background, and response tendency row colors */
.notify-member-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #174e86;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

/* Windows PC: do not reserve a permanent white scrollbar gutter beside the sticky name header. */
.table-wrap {
  scrollbar-gutter: auto !important;
}
.response-table thead,
.response-table thead tr {
  background: #cfe8ff;
}

/* Highlight candidates whose most common response is ○ or △. */
.response-table tbody tr.slot-row-attend > td,
.response-table tbody tr.slot-row-attend > th.slot-cell {
  background: #e2f7f2 !important;
}
.response-table tbody tr.slot-row-attend > td.participant-cell-me {
  background: #d5f1ec !important;
}
.response-table tbody tr.slot-row-maybe > td,
.response-table tbody tr.slot-row-maybe > th.slot-cell {
  background: #fff4cf !important;
}
.response-table tbody tr.slot-row-maybe > td.participant-cell-me {
  background: #f9edc2 !important;
}
.response-table tbody tr.slot-row-attend-maybe > td,
.response-table tbody tr.slot-row-attend-maybe > th.slot-cell {
  background: #edf5d9 !important;
}
.response-table tbody tr.slot-row-attend-maybe > td.participant-cell-me {
  background: #e2efd0 !important;
}


/* v38: per-recipient notification result */
.notify-result {
  margin: 12px 0;
  padding: 11px;
  border: 2px solid #89b9e7;
  border-radius: 12px;
  background: #f5faff;
}
.notify-result-title {
  margin-bottom: 8px;
  color: #164f85;
  font-size: .86rem;
}
.notify-result-list { display: grid; gap: 7px; }
.notify-result-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #c2d9ee;
  border-radius: 9px;
  background: #fff;
}
.notify-result-row.notify-result-sent {
  border-color: #85cbb9;
  background: #eefaf6;
}
.notify-result-row.notify-result-failed,
.notify-result-row.notify-result-unavailable {
  border-color: #d5dce4;
  background: #f7f9fb;
}
.notify-result-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcecf8;
  color: #1b5a8e;
}
.notify-result-sent .notify-result-mark {
  background: #d4f2e8;
  color: #176c54;
}
.notify-result-failed .notify-result-mark,
.notify-result-unavailable .notify-result-mark {
  background: #edf1f5;
  color: #8796a5;
}
.notify-result-body { min-width: 0; display: grid; gap: 2px; }
.notify-result-name { color: #164c7f; }
.notify-result-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #617d98;
  font-size: .76rem;
}


/* v39: participant name tap tooltip */
.participant-name-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 5px;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
  border-radius: 7px;
}
.participant-name-button:hover,
.participant-name-button[aria-expanded="true"] {
  background: rgba(31, 136, 245, .12);
}
.participant-name-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.participant-tooltip {
  position: fixed;
  z-index: 250;
  width: min(300px, calc(100vw - 20px));
  padding: 11px 13px;
  border: 2px solid #4f9de7;
  border-radius: 11px;
  background: #ffffff;
  color: #143f6c;
  box-shadow: 0 12px 30px rgba(18, 72, 128, .24);
  text-align: left;
  pointer-events: auto;
}
.participant-tooltip-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.participant-tooltip-row + .participant-tooltip-row {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #c8def2;
}
.participant-tooltip-label {
  color: #4f7195;
  font-size: .78rem;
  white-space: nowrap;
}
.participant-tooltip-value {
  min-width: 0;
  color: #123a64;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.participant-tooltip-memo {
  line-height: 1.45;
}
@media (max-width: 640px) {
  .participant-name-button {
    min-height: 32px;
    padding: 5px 7px;
  }
  .participant-tooltip {
    width: min(290px, calc(100vw - 16px));
  }
}


/* v40: compact answer heading and remove decorative top bars */
.schedule-summary::before,
#response-card::before {
  content: none !important;
  display: none !important;
}

#response-card .schedule-toolbar {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
#response-card .schedule-toolbar > div:first-child {
  min-width: 0;
  flex: 0 1 auto;
}
#response-card .schedule-toolbar h2 {
  margin-bottom: 0;
  white-space: nowrap;
}
#response-card .legend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0 0 1px auto !important;
  padding: 5px 8px;
  white-space: nowrap;
}
#response-card .legend span {
  gap: 4px;
  white-space: nowrap;
}
#response-card .legend .status {
  width: 30px;
  height: 30px;
}
#response-card .legend .status img {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  #response-card .schedule-toolbar {
    display: flex !important;
    align-items: flex-end;
    gap: 7px;
  }
  #response-card .schedule-toolbar .eyebrow {
    margin-bottom: 2px;
  }
  #response-card .legend {
    gap: 4px;
    padding: 4px 6px;
    font-size: .76rem;
    border-radius: 9px;
  }
  #response-card .legend span {
    gap: 3px;
  }
  #response-card .legend .status {
    width: 25px;
    height: 25px;
  }
  #response-card .legend .status img {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 390px) {
  #response-card .schedule-toolbar {
    gap: 5px;
  }
  #response-card .legend {
    gap: 3px;
    padding: 3px 5px;
    font-size: .72rem;
  }
  #response-card .legend .status {
    width: 23px;
    height: 23px;
  }
  #response-card .legend .status img {
    width: 14px;
    height: 14px;
  }
}


/* v41: Google Material Symbols picker + event/user icons */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}
.material-icon-field { align-items: start; }
.material-icon-select-button {
  width: fit-content;
  min-width: 190px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 2px solid #6da9e4;
  border-radius: 12px;
  background: #f4faff;
  color: #174f86;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(31, 91, 151, .08);
}
.material-icon-select-button:hover { background: #e9f5ff; border-color: #2f88df; }
.material-icon-select-button.compact { min-width: 165px; min-height: 42px; }
.material-icon-preview { font-size: 29px; color: #0f68c5; }
.material-icon-picker-dialog { width: min(620px, calc(100vw - 24px)); max-height: min(82vh, 720px); padding: 18px; }
.material-icon-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.material-icon-picker-head h2 { margin: 0; }
.material-picker-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #e7f3ff; color: #125995; font-size: 1.5rem; cursor: pointer; }
.material-icon-search { margin-bottom: 12px; }
.material-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; max-height: min(58vh, 480px); overflow: auto; padding: 2px; }
.material-icon-choice { min-height: 76px; display: grid; place-items: center; gap: 4px; padding: 8px 4px; border: 2px solid #a6caed; border-radius: 12px; background: #fff; color: #1d5d98; cursor: pointer; }
.material-icon-choice .material-symbols-rounded { font-size: 30px; }
.material-icon-choice small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #557596; }
.material-icon-choice:hover, .material-icon-choice.selected { border-color: #1884ee; background: #e9f5ff; box-shadow: 0 0 0 2px rgba(24,132,238,.10); }
.schedule-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.schedule-title-row h1 { min-width: 0; margin-bottom: 0; }
.schedule-material-icon { flex: 0 0 auto; font-size: 32px; color: #0f68c5; }
.account-material-icon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 10px 12px; border: 2px solid #a2c9ed; border-radius: 12px; background: #f5faff; }

/* v41: the entire recent panel is clickable */
.recent-item-link { color: inherit; text-decoration: none; cursor: pointer; border-radius: 9px; transition: background .12s ease, transform .08s ease; }
.recent-item-link:hover, .recent-item-link:focus-visible { background: #e4f2ff; text-decoration: none; outline: 2px solid #55a1e7; outline-offset: -2px; }
.recent-item-link:active { transform: scale(.995); }
.recent-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: #185f9d; font-size: 1.03rem; }
.recent-material-icon { flex: 0 0 auto; font-size: 22px; color: #0f72cf; }

/* v41: account icon and animated memo signal in participant header */
.participant-material-icon { display: block; margin: 0 auto 2px; font-size: 25px; color: #155f9f; }
.participant-memo-signal { display: block; width: fit-content; margin: 0 auto 2px; font-size: 17px; color: #ef8c20; transform-origin: 50% 85%; animation: participant-memo-wiggle 2.8s ease-in-out infinite; }
@keyframes participant-memo-wiggle {
  0%, 72%, 100% { transform: rotate(0deg) translateY(0); }
  77% { transform: rotate(-10deg) translateY(-1px); }
  82% { transform: rotate(10deg) translateY(-1px); }
  87% { transform: rotate(-7deg); }
  92% { transform: rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { .participant-memo-signal { animation: none; } }
@media (max-width: 640px) {
  .material-icon-select-button { min-width: 0; width: 100%; justify-content: flex-start; }
  .account-material-icon-row { align-items: stretch; flex-direction: column; }
  .material-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .material-icon-choice { min-height: 70px; }
  .material-icon-choice small { font-size: .68rem; }
  .schedule-material-icon { font-size: 29px; }
  .participant-material-icon { font-size: 22px; }
}


/* v42: participant header tap target + clearer memo bubble + larger icon catalog */
.participant-head-tappable {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: rgba(31, 136, 245, .12);
}
.participant-head-tappable:hover,
.participant-head-tappable[aria-expanded="true"] {
  background: #d8edff !important;
}
.participant-head-tappable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}
.participant-head-tappable .participant-name {
  display: block;
  margin: 1px auto 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-head-tappable .participant-memo {
  display: none !important;
}
.participant-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 30px;
  margin: 0 auto 2px;
}
.participant-icon-row .participant-material-icon {
  display: block;
  margin: 0;
  font-size: 26px;
  color: #125b99;
  flex: 0 0 auto;
}
.participant-memo-signal {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 23px;
  margin: 0;
  border: 2px solid #d56d00;
  border-radius: 50%;
  background: #ff931f;
  color: #fff;
  box-shadow: 0 2px 6px rgba(185, 86, 0, .22);
  transform-origin: 50% 85%;
  animation: participant-memo-wiggle-v42 3s ease-in-out infinite;
}
.participant-memo-signal .participant-memo-signal-icon {
  display: block;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 20;
}
@keyframes participant-memo-wiggle-v42 {
  0%, 74%, 100% { transform: rotate(0deg) translateY(0); }
  79% { transform: rotate(-9deg) translateY(-1px); }
  84% { transform: rotate(9deg) translateY(-1px); }
  89% { transform: rotate(-5deg); }
  94% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .participant-memo-signal { animation: none; }
}
.material-icon-picker-dialog {
  width: min(720px, calc(100vw - 24px));
}
.material-icon-grid {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  max-height: min(62vh, 560px);
}
@media (max-width: 640px) {
  .participant-icon-row { gap: 7px; min-height: 27px; }
  .participant-icon-row .participant-material-icon { font-size: 23px; }
  .participant-memo-signal { width: 21px; height: 21px; flex-basis: 21px; }
  .participant-memo-signal .participant-memo-signal-icon { font-size: 13px; }
  .material-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* v43: notification recipients and optional message */
.notify-message-field {
  margin: 14px 0 12px;
}
.notify-message-field > span {
  color: #164c7f;
}
.notify-message-field small {
  margin-left: 4px;
  color: #7089a2;
  font-size: .76rem;
}
.notify-message-field textarea {
  min-height: 82px;
  resize: vertical;
}


/* v44: compact event creation layout */
.event-title-field { margin-bottom: 14px; }
.event-title-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}
.event-title-row > input {
  min-width: 0;
  flex: 1 1 auto;
}
.event-icon-button {
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #6da9e4;
  border-radius: 12px;
  background: #eef7ff;
  color: #0f68c5;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(31, 91, 151, .08);
}
.event-icon-button:hover,
.event-icon-button:focus-visible {
  background: #dff0ff;
  border-color: #2087e9;
  outline: none;
}
.event-icon-button .material-icon-preview { font-size: 30px; }
.compact-slot-planner {
  display: block;
}
.integrated-calendar-panel {
  width: 100%;
  padding: 14px 16px 16px;
}
.calendar-time-row {
  display: grid;
  grid-template-columns: auto minmax(320px, 460px);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #a7caea;
}
.calendar-time-label {
  display: grid;
  gap: 2px;
  color: #174f86;
  white-space: nowrap;
}
.calendar-time-label > span:last-child {
  font-size: .98rem;
}
.compact-time-grid {
  max-width: 460px;
  margin-left: auto;
  align-items: center;
}
.compact-time-grid .slot-time-field {
  display: flex;
  align-items: center;
  gap: 7px;
}
.compact-time-grid .slot-time-field > span {
  flex: 0 0 auto;
}
.compact-time-grid .slot-time-field > select {
  min-width: 105px;
}
.compact-time-grid .slot-time-sep {
  align-self: center;
  padding-bottom: 0;
}
.calendar-heading-copy {
  display: grid;
  gap: 1px;
}
.calendar-heading-copy h3 {
  margin: 0;
}
.integrated-calendar-panel .calendar-head {
  align-items: center;
}
@media (max-width: 640px) {
  .event-title-field { margin-bottom: 12px; }
  .event-title-row { gap: 7px; }
  .event-icon-button {
    flex-basis: 44px;
    width: 44px;
    min-height: 44px;
    border-radius: 10px;
  }
  .event-icon-button .material-icon-preview { font-size: 27px; }
  .integrated-calendar-panel { padding: 11px 10px 12px; }
  .calendar-time-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 9px;
    margin-bottom: 9px;
  }
  .calendar-time-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }
  .compact-time-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 7px !important;
  }
  .compact-time-grid .slot-time-field {
    flex: 1 1 0;
    gap: 5px;
  }
  .compact-time-grid .slot-time-field > select {
    min-width: 0;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
  .integrated-calendar-panel .calendar-head {
    display: flex;
    align-items: center;
  }
  .integrated-calendar-panel .calendar-nav {
    margin-top: 0;
  }
  .integrated-calendar-panel .calendar-title {
    margin-top: 5px;
  }
  .integrated-calendar-panel .calendar-hint {
    margin-top: 7px;
    font-size: .82rem;
  }
}


/* v45: STEP chips use the same compact size */
.planner-kicker {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  align-self: start;
  flex: 0 0 auto;
}
.calendar-heading-copy .planner-kicker {
  width: max-content;
  justify-self: start;
}


/* v47: profile dialog action ratio and leave button row */
.profile-dialog-actions {
  grid-template-columns: 3fr 2fr;
}
.profile-leave-button {
  margin-top: 8px;
}


/* v49: memo indicator as an unmistakable speech bubble */
.participant-icon-row {
  gap: 10px;
}
.participant-memo-signal {
  position: relative;
  width: 30px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  margin: 0 0 2px 1px;
  border: 2px solid #cc6500;
  border-radius: 9px 9px 9px 4px;
  background: #ff8a00;
  color: #fff;
  box-shadow: 0 2px 6px rgba(185, 86, 0, .24);
  transform-origin: 15% 90%;
  animation: participant-memo-bubble-nudge 3.2s ease-in-out infinite;
  overflow: visible;
}
.participant-memo-signal::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #ff8a00;
  border-left: 2px solid #cc6500;
  border-bottom: 2px solid #cc6500;
  transform: skew(-22deg) rotate(-13deg);
  border-bottom-left-radius: 2px;
  z-index: -1;
}
.participant-memo-dots {
  display: block;
  margin-top: -4px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px rgba(120, 52, 0, .18);
}
.participant-memo-signal .participant-memo-signal-icon {
  display: none !important;
}
@keyframes participant-memo-bubble-nudge {
  0%, 72%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  78% { transform: translateY(-2px) rotate(-5deg) scale(1.06); }
  84% { transform: translateY(-1px) rotate(5deg) scale(1.06); }
  90% { transform: translateY(0) rotate(-3deg) scale(1.03); }
  96% { transform: translateY(0) rotate(2deg) scale(1); }
}
@media (max-width: 640px) {
  .participant-icon-row { gap: 8px; }
  .participant-memo-signal {
    width: 28px;
    height: 21px;
    flex-basis: 28px;
  }
  .participant-memo-dots { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .participant-memo-signal { animation: none; }
}


/* v51: separate logged-in home and event creation pages */
.home-actions {
  display: grid;
}
.home-create-button {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.18rem;
  text-decoration: none;
  border-radius: 16px;
}
.home-create-button .material-symbols-rounded {
  font-size: 1.75rem;
}
.create-page-footer-actions {
  display: grid;
  margin-top: 2px;
}
.return-home-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.return-home-dialog {
  width: min(440px, calc(100vw - 28px));
}
.return-home-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 9px;
}
@media (max-width: 520px) {
  .home-create-button {
    min-height: 60px;
    font-size: 1.05rem;
  }
  .home-hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .return-home-dialog-actions {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}


/* v52: stable create button + 5-item paged/animated history */
.home-create-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.home-create-icon::before,
.home-create-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.home-create-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.home-create-button {
  contain: layout paint;
}
.recent-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.recent-item-enter {
  opacity: 0;
  transform: translateY(-10px);
  animation: recent-item-drop .28s ease-out forwards;
  animation-delay: 0ms;
}
@keyframes recent-item-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.recent-pagination {
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.recent-page-button {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #6faeea;
  border-radius: 10px;
  background: #f4faff;
  color: #1267b7;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.recent-page-button:hover:not(:disabled) {
  background: #e6f3ff;
  border-color: #2f88df;
}
.recent-page-button:disabled {
  opacity: .28;
  cursor: default;
}
.recent-page-status {
  min-width: 54px;
  text-align: center;
  color: #315f8c;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.recent-page-loading .recent-list {
  pointer-events: none;
}
@media (max-width: 520px) {
  .home-create-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .recent-pagination {
    margin-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recent-item-enter {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* v54: compact selected candidate rows */
.slot-list {
  gap: 5px;
}
.slot-item.slot-item-editable {
  min-height: 38px;
  padding: 4px 8px 4px 10px;
  gap: 7px;
}
.slot-item-editable .slot-item-main {
  gap: 8px;
}
.slot-item-editable .slot-time-button {
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 7px;
}
.slot-item-editable .slot-remove-button {
  min-height: 30px;
  padding-top: 2px;
  padding-bottom: 2px;
}
@media (max-width: 520px) {
  .slot-list {
    gap: 4px;
  }
  .slot-item.slot-item-editable {
    min-height: 36px;
    padding: 3px 7px 3px 9px;
  }
  .slot-item-editable .slot-item-main {
    gap: 6px;
  }
  .slot-item-editable .slot-time-button {
    min-height: 28px;
    padding: 2px 6px;
    font-size: .8rem;
  }
  .slot-item-editable .slot-remove-button {
    min-height: 28px;
    padding: 1px 3px;
  }
}


/* v55: mobile hamburger is also the admin differential-ZIP drop target */
.mobile-more-button.dragover {
  background: #07519b;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 8px 18px rgba(8,76,145,.34);
  transform: scale(1.08);
}
.mobile-more-button.updating {
  opacity: .62;
  cursor: wait;
}


/* v56: reserve the history panel shell immediately on the logged-in home page */
#recent-card.recent-card-awaiting {
  min-height: 138px;
  overflow: hidden;
}
#recent-card.recent-card-awaiting .recent-card-body {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
#recent-card .recent-card-body {
  visibility: visible;
  opacity: 1;
  transition: opacity .14s ease-out;
}
@media (max-width: 520px) {
  #recent-card.recent-card-awaiting {
    min-height: 124px;
  }
}


/* v57: keep the history header visible while recent events are loading */
#recent-card.recent-card-awaiting .recent-card-body {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#recent-card.recent-card-awaiting .recent-list,
#recent-card.recent-card-awaiting .recent-pagination {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
#recent-card.recent-card-awaiting .recent-list {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
}

/* v60: animated "about this application" dialog */
.app-about-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  border: 2px solid #4a9ce6;
  border-radius: 24px;
  background: #f7fbff;
  color: #174b7c;
  box-shadow: 0 24px 70px rgba(11, 73, 137, .34);
  overflow: hidden;
}
.app-about-dialog::backdrop {
  background: rgba(4, 31, 61, .58);
  backdrop-filter: blur(4px);
}
.app-about-stage {
  position: relative;
  max-height: min(754px, calc(100dvh - 34px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px 24px 20px;
  background: #f7fbff;
}
.app-about-stage::before,
.app-about-stage::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(37, 137, 226, .18);
  border-radius: 999px;
  pointer-events: none;
}
.app-about-stage::before {
  width: 150px;
  height: 150px;
  top: -78px;
  left: -62px;
  animation: app-about-ring-drift 7s ease-in-out infinite;
}
.app-about-stage::after {
  width: 210px;
  height: 210px;
  right: -112px;
  bottom: -118px;
  animation: app-about-ring-drift 9s ease-in-out -2s infinite reverse;
}
.app-about-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 38px;
  height: 38px;
  margin: -8px -6px 0 0;
  padding: 0 0 2px;
  border: 1px solid #8fc3ef;
  border-radius: 12px;
  background: #fff;
  color: #1767ad;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(21, 92, 153, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-about-close:hover,
.app-about-close:focus-visible {
  transform: rotate(8deg) scale(1.05);
  box-shadow: 0 7px 18px rgba(21, 92, 153, .24);
  outline: 2px solid #8bc5f3;
  outline-offset: 2px;
}
.app-about-hero {
  clear: both;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2px 18px 18px;
}
.app-about-logo-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 2px auto 12px;
  display: grid;
  place-items: center;
}
.app-about-logo-orbit::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 2px dashed #55a5e8;
  border-radius: 50%;
  animation: app-about-spin 12s linear infinite;
}
.app-about-logo-orbit::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  top: 5px;
  left: 47px;
  border-radius: 50%;
  background: #1c8be8;
  box-shadow: 0 0 0 6px rgba(28, 139, 232, .13), 0 0 18px rgba(28, 139, 232, .5);
  animation: app-about-dot-pulse 1.8s ease-in-out infinite;
}
.app-about-logo-disc {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 2px solid #1781dc;
  border-radius: 24px;
  background: #1178d4;
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 120, 212, .3);
  animation: app-about-logo-float 3.2s ease-in-out infinite;
}
.app-about-logo-disc .material-symbols-rounded {
  font-size: 42px;
  line-height: 1;
}
.app-about-kicker {
  margin: 0 0 5px;
  color: #1680d8;
  font-size: .82rem;
  letter-spacing: .12em;
}
.app-about-hero h2 {
  margin: 0;
  color: #0c5ea8;
  font-size: clamp(1.5rem, 5vw, 2.05rem);
  line-height: 1.35;
}
.app-about-lead {
  max-width: 500px;
  margin: 12px auto 0;
  color: #416a8d;
  font-size: .96rem;
  line-height: 1.8;
}
.app-about-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.app-about-feature {
  min-width: 0;
  padding: 15px 13px;
  border: 1px solid #a9d2f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 16px rgba(35, 105, 165, .1);
  animation: app-about-card-in .5s ease both;
}
.app-about-feature:nth-child(2) { animation-delay: .08s; }
.app-about-feature:nth-child(3) { animation-delay: .16s; }
.app-about-feature > .material-symbols-rounded {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 12px;
  background: #e7f4ff;
  color: #1178d4;
  font-size: 24px;
  animation: app-about-icon-pop 2.8s ease-in-out infinite;
}
.app-about-feature:nth-child(2) > .material-symbols-rounded { animation-delay: .45s; }
.app-about-feature:nth-child(3) > .material-symbols-rounded { animation-delay: .9s; }
.app-about-feature h3 {
  margin: 0 0 6px;
  color: #195f99;
  font-size: 1.08rem;
}
.app-about-feature p {
  margin: 0;
  color: #587a98;
  font-size: .82rem;
  line-height: 1.65;
}
.app-about-message {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid #6fb2e9;
  border-radius: 14px;
  background: #eaf6ff;
  color: #155e9f;
  box-shadow: 0 0 0 0 rgba(34, 139, 230, .18);
  animation: app-about-message-pulse 3.5s ease-in-out infinite;
}
.app-about-message .material-symbols-rounded {
  font-size: 22px;
  animation: app-about-sparkle 1.9s ease-in-out infinite;
}
.app-about-message p { margin: 0; }
.app-about-signature {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  text-align: center;
  color: #7b9ab5;
  font-size: .76rem;
  letter-spacing: .18em;
}
.app-about-spark {
  position: absolute;
  z-index: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39a2ef;
  box-shadow: 0 0 14px rgba(57, 162, 239, .65);
  pointer-events: none;
  animation: app-about-spark-float 4.2s ease-in-out infinite;
}
.app-about-spark.spark-1 { top: 82px; left: 9%; }
.app-about-spark.spark-2 { top: 145px; right: 10%; animation-delay: -1.3s; transform: scale(.7); }
.app-about-spark.spark-3 { top: 44%; left: 4%; animation-delay: -2.4s; transform: scale(.55); }
.mobile-more-about { color: #0d67b7; }

@keyframes app-about-spin { to { transform: rotate(360deg); } }
@keyframes app-about-logo-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes app-about-dot-pulse {
  0%, 100% { transform: scale(.85); opacity: .65; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes app-about-ring-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, 8px, 0) scale(1.06); }
}
@keyframes app-about-card-in {
  from { opacity: 0; transform: translateY(15px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes app-about-icon-pop {
  0%, 80%, 100% { transform: translateY(0) scale(1); }
  88% { transform: translateY(-4px) scale(1.08); }
  94% { transform: translateY(0) scale(.98); }
}
@keyframes app-about-message-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 139, 230, .12); }
  50% { box-shadow: 0 0 0 7px rgba(34, 139, 230, 0); }
}
@keyframes app-about-sparkle {
  0%, 100% { transform: rotate(-8deg) scale(.94); opacity: .7; }
  50% { transform: rotate(10deg) scale(1.15); opacity: 1; }
}
@keyframes app-about-spark-float {
  0%, 100% { translate: 0 0; opacity: .35; }
  50% { translate: 7px -13px; opacity: 1; }
}

@media (max-width: 640px) {
  .app-about-dialog {
    width: min(94vw, 520px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }
  .app-about-stage {
    max-height: calc(100dvh - 26px);
    padding: 18px 15px 16px;
  }
  .app-about-hero { padding: 0 5px 14px; }
  .app-about-logo-orbit { width: 88px; height: 88px; margin-bottom: 8px; }
  .app-about-logo-disc { width: 64px; height: 64px; border-radius: 20px; }
  .app-about-logo-disc .material-symbols-rounded { font-size: 36px; }
  .app-about-logo-orbit::after { left: 39px; }
  .app-about-features { grid-template-columns: 1fr; gap: 8px; }
  .app-about-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
  }
  .app-about-feature > .material-symbols-rounded { flex: 0 0 auto; margin: 0; }
  .app-about-feature h3 { margin-bottom: 3px; }
  .app-about-lead { font-size: .9rem; line-height: 1.68; }
  .app-about-message { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .app-about-stage::before,
  .app-about-stage::after,
  .app-about-logo-orbit::before,
  .app-about-logo-orbit::after,
  .app-about-logo-disc,
  .app-about-feature,
  .app-about-feature > .material-symbols-rounded,
  .app-about-message,
  .app-about-message .material-symbols-rounded,
  .app-about-spark {
    animation: none !important;
  }
}

/* v61: enlarge the mobile admin ZIP drop hit-area without changing the icon size */
.mobile-more-wrap.mobile-deploy-drop-zone {
  padding: 6px;
  margin: -6px;
}
.mobile-more-wrap.mobile-deploy-drop-zone.dragover .mobile-more-button {
  background: #07519b;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 8px 18px rgba(8,76,145,.34);
  transform: scale(1.08);
}


/* v62: about dialog uses provided logo and fits on mobile without vertical scrolling */
.app-about-dialog {
  max-height: min(730px, calc(100dvh - 20px));
}
.app-about-stage {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(724px, calc(100dvh - 26px));
  overflow: hidden;
}
.app-about-close {
  position: absolute;
  top: 16px;
  right: 16px;
  float: none;
  margin: 0;
}
.app-about-hero {
  padding-top: 2px;
}
.app-about-logo-disc-image {
  background: radial-gradient(circle at 35% 30%, #f4fbff 0, #dcefff 25%, #1279d4 26%, #1178d4 100%);
}
.app-about-logo-image {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(14, 82, 145, .14));
}
.app-about-feature {
  padding: 13px 12px;
}
.app-about-feature p {
  line-height: 1.55;
}
.app-about-message {
  margin-top: 12px;
}
.app-about-signature {
  margin-top: 9px;
}

@media (max-width: 640px) {
  .app-about-dialog {
    width: min(94vw, 510px);
    height: min(92dvh, 700px);
    max-height: min(92dvh, 700px);
    border-radius: 20px;
  }
  .app-about-stage {
    height: 100%;
    max-height: none;
    padding: 14px 14px 12px;
    overflow: hidden;
  }
  .app-about-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 24px;
  }
  .app-about-hero {
    padding: 0 22px 10px;
    flex: 0 0 auto;
  }
  .app-about-logo-orbit {
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
  }
  .app-about-logo-orbit::before {
    inset: 2px;
  }
  .app-about-logo-orbit::after {
    width: 8px;
    height: 8px;
    top: 4px;
    left: 34px;
    box-shadow: 0 0 0 5px rgba(28, 139, 232, .11), 0 0 14px rgba(28, 139, 232, .42);
  }
  .app-about-logo-disc {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .app-about-logo-image {
    width: 42px;
    height: 42px;
  }
  .app-about-kicker {
    margin-bottom: 3px;
    font-size: .74rem;
    letter-spacing: .08em;
  }
  .app-about-hero h2 {
    font-size: clamp(1.05rem, 6vw, 1.8rem);
    line-height: 1.28;
  }
  .app-about-lead {
    margin-top: 8px;
    font-size: .82rem;
    line-height: 1.55;
  }
  .app-about-features {
    gap: 7px;
    flex: 1 1 auto;
    align-content: start;
  }
  .app-about-feature {
    padding: 9px 10px;
    border-radius: 14px;
    gap: 9px;
  }
  .app-about-feature > .material-symbols-rounded {
    width: 34px;
    height: 34px;
    font-size: 21px;
    border-radius: 10px;
  }
  .app-about-feature h3 {
    margin-bottom: 3px;
    font-size: 1.05rem;
    line-height: 1.25;
  }
  .app-about-feature p {
    font-size: .77rem;
    line-height: 1.45;
  }
  .app-about-message {
    margin-top: 9px;
    padding: 9px 12px;
    gap: 6px;
    border-radius: 12px;
    font-size: .8rem;
    line-height: 1.35;
    flex: 0 0 auto;
  }
  .app-about-message .material-symbols-rounded {
    font-size: 18px;
  }
  .app-about-signature {
    margin-top: 7px;
    font-size: .7rem;
    letter-spacing: .14em;
    flex: 0 0 auto;
  }
  .app-about-spark.spark-1 { top: 66px; left: 8%; }
  .app-about-spark.spark-2 { top: 126px; right: 8%; }
  .app-about-spark.spark-3 { top: 48%; left: 3%; }
}

/* v63: about logo stands on its own; remove the cushion and orbit decoration */
.app-about-logo-orbit::before,
.app-about-logo-orbit::after {
  display: none;
}
.app-about-logo-disc-image {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.app-about-logo-image {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 5px 10px rgba(18, 83, 139, .16));
}
@media (max-width: 640px) {
  .app-about-logo-orbit {
    width: 72px;
    height: 72px;
  }
  .app-about-logo-disc-image,
  .app-about-logo-image {
    width: 62px;
    height: 62px;
  }
}


/* v64: show a centered spinner while the initial history batch is loading */
#recent-card .recent-card-body {
  position: relative;
}
#recent-card .recent-loading-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(24, 125, 211, .18);
  border-top-color: #1785df;
  border-right-color: #40a7ef;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 133, 223, .04);
  pointer-events: none;
  animation: recent-history-spinner .72s linear infinite;
}
#recent-card.recent-card-awaiting .recent-loading-spinner {
  display: block;
}
@keyframes recent-history-spinner {
  to { transform: rotate(360deg); }
}
@media (max-width: 520px) {
  #recent-card .recent-loading-spinner {
    top: 60%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #recent-card .recent-loading-spinner {
    animation-duration: 1.35s;
  }
}


/* v65: balance the About screen across the full mobile canvas */
.app-about-stage {
  justify-content: space-between;
}
.app-about-features {
  flex: 1 1 auto;
  align-content: stretch;
}
.app-about-feature {
  height: 100%;
}
.app-about-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: #8aa0b3;
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: .045em;
  opacity: .82;
}
.app-about-meta-separator {
  opacity: .58;
}

@media (max-width: 640px) {
  .app-about-stage {
    gap: 9px;
  }
  .app-about-hero {
    padding-bottom: 4px;
  }
  .app-about-features {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
  }
  .app-about-feature {
    align-items: center;
    min-height: 0;
    padding: 10px 12px;
  }
  .app-about-feature > div {
    min-width: 0;
  }
  .app-about-message {
    margin-top: 0;
  }
  .app-about-meta {
    margin-top: -1px;
    font-size: .64rem;
  }
  .app-about-signature {
    margin-top: -2px;
  }
}


/* v67: About screen contact link */
.app-about-contact {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 5px;
  margin-top: 2px;
  color: #4f82aa;
  font-size: .74rem;
  line-height: 1.2;
  text-decoration: none;
  opacity: .9;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.app-about-contact .material-symbols-rounded {
  font-size: 16px;
}
.app-about-contact:hover,
.app-about-contact:focus-visible {
  color: #0f73c6;
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  .app-about-contact {
    margin-top: -2px;
    font-size: .7rem;
  }
  .app-about-contact .material-symbols-rounded {
    font-size: 15px;
  }
  .app-about-meta {
    margin-top: -3px;
  }
}


/* v71: 00分を第1階層、05〜55分をその下の階層として表示 */
.slot-time-grid select option.time-hour-root,
.slot-time-dialog-grid select option.time-hour-root {
  color: #174f82;
  font-weight: 900;
}
.slot-time-grid select option.time-hour-child,
.slot-time-dialog-grid select option.time-hour-child {
  color: #557493;
  font-weight: 500;
}


/* v72: 折りたたみ式2階層の時刻プルダウン */
.time-tree-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.time-tree-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.time-tree-trigger {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #b7cde1;
  border-radius: 10px;
  background: #fff;
  color: #355b7d;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.time-tree-trigger::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #5d7e9e;
  border-bottom: 2px solid #5d7e9e;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .16s ease;
}
.time-tree-select.is-open .time-tree-trigger::after {
  transform: translateY(-30%) rotate(225deg);
}
.time-tree-trigger.time-select-emphasis {
  color: #0f2f53;
  font-weight: 900;
}
.time-tree-trigger:focus-visible {
  outline: 2px solid #55a5e8;
  outline-offset: 2px;
}
.time-tree-menu {
  position: absolute;
  z-index: 1200;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: min(360px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #9fc5e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 75, 127, .24);
}
.time-tree-hour + .time-tree-hour {
  border-top: 1px solid #edf3f8;
}
.time-tree-root,
.time-tree-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #365f83;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}
.time-tree-root {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px 7px 11px;
  border-radius: 8px;
  color: #174f82;
  font-weight: 900;
}
.time-tree-root:hover,
.time-tree-root:focus-visible,
.time-tree-option:hover,
.time-tree-option:focus-visible {
  background: #edf7ff;
  outline: none;
}
.time-tree-root.is-selected,
.time-tree-option.is-selected {
  background: #dff0ff;
  color: #0b64ad;
}
.time-tree-root.is-root-disabled {
  color: #a9b8c6;
}
.time-tree-root:disabled {
  color: #ccd6df;
  cursor: default;
  background: transparent;
}
.time-tree-chevron {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
  color: #6c91b1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.time-tree-hour.is-expanded .time-tree-chevron {
  transform: rotate(90deg);
}
.time-tree-children {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 2px 8px 8px 28px;
}
.time-tree-option {
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 8px;
  text-align: center;
  color: #557493;
  font-weight: 500;
}
.time-tree-option[data-value$=":30"] {
  color: #0f2f53;
  font-weight: 900;
}
.time-tree-option:disabled {
  color: #d2dce5;
  cursor: default;
  background: transparent;
}
.time-tree-menu.hidden,
.time-tree-children.hidden {
  display: none;
}
.slot-time-dialog-grid .time-tree-menu {
  z-index: 1400;
}
@media (max-width: 640px) {
  .time-tree-trigger {
    height: 40px;
    padding-left: 10px;
  }
  .time-tree-menu {
    max-height: min(330px, 46dvh);
  }
  .time-tree-root {
    min-height: 38px;
  }
  .time-tree-children {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 22px;
  }
}


/* v73: mobile time tree dropdown is wider than the compact trigger */
@media (max-width: 640px) {
  .time-tree-menu {
    width: min(270px, calc(100vw - 24px));
    min-width: min(270px, calc(100vw - 24px));
    right: auto;
  }

  /* Start-time controls grow to the right. */
  .compact-time-grid > .slot-time-field:first-child .time-tree-menu,
  .slot-time-dialog-grid > label:first-child .time-tree-menu {
    left: 0;
    right: auto;
  }

  /* End-time controls grow to the left, keeping the menu inside the viewport. */
  .compact-time-grid > .slot-time-field:last-child .time-tree-menu,
  .slot-time-dialog-grid > label:last-child .time-tree-menu {
    left: auto;
    right: 0;
  }

  .time-tree-children {
    gap: 6px;
    padding: 4px 10px 10px 24px;
  }
  .time-tree-option {
    min-height: 38px;
    padding: 7px 8px;
    font-size: .94rem;
  }
}

/* v74: administrator event list */
.mobile-more-admin {
  color: #075cac;
  font-weight: 700;
}
.admin-events-page {
  width: min(980px, 100%);
  margin: 0 auto;
}
.admin-events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid #9bc9ef;
  border-radius: 18px;
  background: #f7fbff;
  box-shadow: 0 8px 20px rgba(28, 91, 147, .09);
}
.admin-events-kicker {
  margin: 0 0 2px;
  color: #0e75cb;
  font-size: .72rem;
  letter-spacing: .18em;
}
.admin-events-head h1 {
  margin: 0;
  color: #0d5d9f;
  font-size: 1.65rem;
}
.admin-events-lead {
  margin: 5px 0 0;
  color: #5b7891;
  font-size: .9rem;
}
.admin-events-home {
  flex: 0 0 auto;
  text-decoration: none;
}
.admin-events-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #acd3f3;
  border-radius: 12px;
  background: #edf7ff;
  color: #155f9f;
}
.admin-events-summary .material-symbols-rounded { font-size: 22px; }
.admin-events-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
}
.admin-events-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #cce6fa;
  border-top-color: #1682dc;
  border-radius: 50%;
  animation: admin-events-spin .8s linear infinite;
}
@keyframes admin-events-spin { to { transform: rotate(360deg); } }
.admin-events-list {
  display: grid;
  gap: 10px;
}
.admin-event-card {
  padding: 14px 15px;
  border: 1px solid #a9d0ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 17px rgba(27, 89, 144, .08);
}
.admin-event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-event-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-event-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e8f5ff;
  color: #1479ce;
  font-size: 24px;
}
.admin-event-title-wrap h2 {
  margin: 0;
  color: #155d98;
  font-size: 1.05rem;
  line-height: 1.35;
}
.admin-event-meta {
  margin: 3px 0 0;
  color: #6b8296;
  font-size: .78rem;
  line-height: 1.45;
}
.admin-event-open {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid #79b7e9;
  border-radius: 9px;
  background: #f1f9ff;
  color: #0c68b5;
  text-align: center;
  text-decoration: none;
  font-size: .84rem;
}
.admin-participant-head {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2edf6;
  color: #356d9c;
  font-size: .82rem;
}
.admin-participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.admin-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #bddcf4;
  border-radius: 999px;
  background: #f5fbff;
  color: #315f86;
  font-size: .8rem;
}
.admin-participant-chip .material-symbols-rounded { font-size: 16px; }
.admin-participant-none,
.admin-events-empty {
  color: #7a8f9f;
  font-size: .86rem;
}
.admin-events-empty {
  padding: 40px 10px;
  text-align: center;
}
@media (max-width: 640px) {
  .admin-events-page { width: 100%; }
  .admin-events-head {
    align-items: stretch;
    padding: 14px;
    border-radius: 15px;
  }
  .admin-events-head h1 { font-size: 1.35rem; }
  .admin-events-home { display: none; }
  .admin-event-card { padding: 12px; }
  .admin-event-card-top { align-items: flex-start; }
  .admin-event-title-wrap { align-items: flex-start; }
  .admin-event-icon { width: 34px; height: 34px; font-size: 21px; }
  .admin-event-title-wrap h2 { font-size: .98rem; }
  .admin-event-meta { font-size: .73rem; }
  .admin-participant-chip { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-events-spinner { animation-duration: 1.6s; }
}

/* v75: SNS profile image / Material Icon account icon chooser */
.account-icon-choice-panel {
  align-items: center;
}
.account-icon-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 390px);
}
.account-icon-mode-button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 2px solid #9dc6eb;
  border-radius: 12px;
  background: #f7fbff;
  color: #225b8e;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .08s ease;
}
.account-icon-mode-button:hover,
.account-icon-mode-button:focus-visible {
  border-color: #438fda;
  background: #edf7ff;
  outline: none;
}
.account-icon-mode-button[aria-pressed="true"] {
  border-color: #1485ed;
  background: #e4f3ff;
  box-shadow: 0 0 0 3px rgba(20,133,237,.12);
}
.account-icon-mode-button:active { transform: scale(.985); }
.account-icon-choice-preview {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7f3ff;
  color: #126bc0;
}
.account-icon-choice-preview .account-icon-choice-image {
  width: 100%;
  height: 100%;
}
.account-icon-choice-image.material-symbols-rounded {
  display: grid;
  place-items: center;
  font-size: 27px;
}
.account-icon-choice-image.sns-profile-icon {
  object-fit: cover;
  border-radius: 50%;
}
.account-icon-help {
  display: block;
  margin-top: 7px;
  color: #6c88a3;
  font-size: .76rem;
  line-height: 1.5;
}
.participant-user-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  margin: 0;
  color: #125b99;
}
.participant-user-icon.material-symbols-rounded {
  font-size: 26px;
}
.participant-user-icon.sns-profile-icon {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(18,91,153,.22);
  background: #e8f3fd;
  box-shadow: 0 1px 4px rgba(18,91,153,.14);
}
@media (max-width: 640px) {
  .account-icon-choice-panel {
    align-items: stretch;
  }
  .account-icon-choice-row {
    width: 100%;
    gap: 7px;
  }
  .account-icon-mode-button {
    min-height: 54px;
    padding: 7px 9px;
    gap: 7px;
    font-size: .82rem;
  }
  .account-icon-choice-preview {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .account-icon-choice-image.material-symbols-rounded { font-size: 24px; }
  .participant-user-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
  .participant-user-icon.material-symbols-rounded { font-size: 23px; }
}


/* v76: larger participant icon in info chip + tap-to-enlarge preview */
.participant-tooltip {
  width: min(340px, calc(100vw - 20px));
}
.participant-tooltip-content {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.participant-tooltip-details {
  min-width: 0;
}
.participant-tooltip-avatar-button {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #9bc9ee;
  border-radius: 50%;
  background: #edf7ff;
  color: #1266aa;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(18, 91, 153, .14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.participant-tooltip-avatar-button:hover,
.participant-tooltip-avatar-button:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 5px 14px rgba(18, 91, 153, .22);
}
.participant-tooltip-avatar-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.participant-tooltip-avatar-image {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #125b99;
}
.participant-tooltip-avatar-image.sns-profile-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.participant-tooltip-avatar-image.material-symbols-rounded {
  font-size: 50px;
  line-height: 1;
}
.participant-avatar-dialog {
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.participant-avatar-dialog::backdrop {
  background: rgba(4, 25, 48, .72);
  backdrop-filter: blur(3px);
}
.participant-avatar-dialog-card {
  position: relative;
  min-width: min(330px, calc(100vw - 32px));
  padding: 28px 26px 20px;
  border: 2px solid #54a6ea;
  border-radius: 22px;
  background: #f7fbff;
  box-shadow: 0 24px 64px rgba(3, 38, 76, .42);
  text-align: center;
}
.participant-avatar-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  border: 1px solid #9bc9ee;
  border-radius: 11px;
  background: #fff;
  color: #1266aa;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.participant-avatar-preview {
  width: min(260px, 68vw);
  height: min(260px, 68vw);
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: #edf7ff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(18, 91, 153, .14), 0 10px 28px rgba(18, 91, 153, .18);
}
.participant-avatar-preview-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #125b99;
}
.participant-avatar-preview-image.sns-profile-icon {
  object-fit: cover;
  border-radius: 50%;
}
.participant-avatar-preview-image.material-symbols-rounded {
  font-size: min(150px, 40vw);
  line-height: 1;
}
.participant-avatar-name {
  color: #174b7c;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .participant-tooltip {
    width: min(330px, calc(100vw - 16px));
    padding: 10px 11px;
  }
  .participant-tooltip-content {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }
  .participant-tooltip-avatar-button {
    width: 58px;
    height: 58px;
  }
  .participant-tooltip-avatar-image {
    width: 52px;
    height: 52px;
  }
  .participant-tooltip-avatar-image.material-symbols-rounded {
    font-size: 45px;
  }
  .participant-avatar-dialog-card {
    min-width: min(318px, calc(100vw - 28px));
    padding: 26px 18px 18px;
  }
}


/* v78: create page is hidden inline from the server-rendered body tag; layout remains measurable while hidden */
.create-page-body {
  min-height: 100dvh;
}
@media (prefers-reduced-motion: reduce) {
  .create-page-body {
    transition: none;
  }
}


/* v79: creation page first-paint cover; critical copy also lives inline in create.html */
#create-boot-cover {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #f4f9ff;
  opacity: 1;
  pointer-events: all;
}
#create-boot-cover.is-releasing {
  opacity: 0;
  transition: opacity .34s ease;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #create-boot-cover.is-releasing { transition-duration: .01ms; }
}


/* v80: smooth home -> create page transition */
body {
  opacity: 1;
}
body.page-transition-leaving {
  opacity: 0;
  transition: opacity .26s ease;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body.page-transition-leaving {
    transition-duration: .01ms;
  }
}


/* v81: show schedule action buttons directly below the response panel on mobile. */
@media (max-width: 640px) {
  #response-card .actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  #response-card .actions-row .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: .84rem;
    line-height: 1.25;
    text-align: center;
  }
  #response-card .actions-row .button.hidden {
    display: none;
  }
}
@media (max-width: 350px) {
  #response-card .actions-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v83: standalone app pull-to-refresh */
.pull-refresh-indicator {
  position: fixed;
  z-index: 2147482500;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(83, 156, 218, .72);
  border-radius: 999px;
  background: rgba(247, 251, 255, .96);
  color: #1767ad;
  box-shadow: 0 7px 20px rgba(12, 76, 132, .20);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -52px);
  transition: opacity .14s ease, transform .14s ease;
  font-size: .78rem;
  white-space: nowrap;
}
.pull-refresh-indicator.visible {
  opacity: 1;
}
.pull-refresh-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform .16s ease;
}
.pull-refresh-indicator.ready .pull-refresh-arrow {
  transform: rotate(180deg);
}
.pull-refresh-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 103, 173, .22);
  border-top-color: #1767ad;
  border-radius: 50%;
}
.pull-refresh-indicator.refreshing .pull-refresh-arrow {
  display: none;
}
.pull-refresh-indicator.refreshing .pull-refresh-spinner {
  display: inline-block;
  animation: pull-refresh-spin .72s linear infinite;
}
@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pull-refresh-indicator,
  .pull-refresh-arrow { transition: none; }
  .pull-refresh-indicator.refreshing .pull-refresh-spinner { animation-duration: 1.2s; }
}


/* v84: prevent the page behind a modal window from scrolling on mobile. */
@media (max-width: 760px) {
  html.mobile-modal-open,
  body.mobile-modal-open {
    overscroll-behavior: none;
  }

  body.mobile-modal-open dialog[open] {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
}


/* v87: highlight the candidate row(s) with the highest number of ○ responses. */
.response-table tbody tr.slot-row-attend-best > td,
.response-table tbody tr.slot-row-attend-best > th.slot-cell {
  background: #c9f2e6 !important;
}
.response-table tbody tr.slot-row-attend-best > td.participant-cell-me {
  background: #bce9dc !important;
}
.response-table tbody tr.slot-row-attend-best > th.slot-cell {
  box-shadow: inset 4px 0 0 #2f9f82;
}


/* v88: only the candidate row(s) with the most ○ responses are colored. */
.response-table tbody tr:not(.slot-row-attend-best) > td,
.response-table tbody tr:not(.slot-row-attend-best) > th.slot-cell {
  background: #fff !important;
}
.response-table tbody tr:not(.slot-row-attend-best) > td.participant-cell-me {
  background: #fff !important;
}

/* v90: memo presence is shown by gently wiggling the participant's own icon. */
.participant-icon-has-memo {
  transform-origin: 50% 65%;
  animation: participant-icon-memo-wiggle 3.2s ease-in-out infinite;
  will-change: transform;
}
@keyframes participant-icon-memo-wiggle {
  0%, 72%, 100% { transform: rotate(0deg) translateY(0); }
  77% { transform: rotate(-9deg) translateY(-1px); }
  82% { transform: rotate(9deg) translateY(-1px); }
  87% { transform: rotate(-6deg); }
  92% { transform: rotate(5deg); }
  96% { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .participant-icon-has-memo { animation: none; }
}

/* v90: mobile table combines all answers into one compact cell per candidate. */
@media (max-width: 640px) {
  .table-wrap {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .response-table.mobile-response-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .response-table.mobile-response-table .slot-cell {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    padding: 8px 6px;
  }

  .response-table.mobile-response-table .slot-date-line,
  .response-table.mobile-response-table .slot-time-line {
    white-space: nowrap;
  }

  .response-table.mobile-response-table .slot-date-text {
    font-size: .84rem;
  }

  .response-table.mobile-response-table .slot-weekday {
    font-size: .72rem;
  }

  .response-table.mobile-response-table .slot-time-line {
    margin-top: 3px;
    font-size: .72rem;
  }

  .response-table.mobile-response-table .slot-count-line {
    gap: 3px;
    margin-top: 4px;
  }

  .response-table.mobile-response-table .count-item {
    font-size: .61rem;
  }

  .response-table.mobile-response-table .count-item .status-small {
    width: 15px;
    height: 15px;
  }

  .response-table.mobile-response-table .count-item .status-small img {
    width: 10px;
    height: 10px;
  }

  .mobile-answer-head {
    min-width: 0;
    width: auto;
    padding: 0;
    overflow: hidden;
  }

  .mobile-answer-head-grid,
  .mobile-answer-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 100%;
    min-width: 0;
  }

  .mobile-answer-head-grid {
    min-height: 66px;
  }

  .mobile-self-head,
  .mobile-others-head {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #075c9d;
  }

  .mobile-self-head {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 6px;
    border-right: 1px solid #9ac7eb;
    font: inherit;
  }

  .mobile-self-head.participant-head-tappable:hover,
  .mobile-self-head.participant-head-tappable[aria-expanded="true"] {
    background: #d8edff !important;
  }

  .mobile-self-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .mobile-self-icon.material-symbols-rounded {
    font-size: 26px;
  }

  .mobile-self-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 600;
  }

  .mobile-others-head {
    display: grid;
    place-items: center;
    padding: 7px 5px;
    font-size: .76rem;
    font-weight: 600;
  }

  .mobile-answer-cell {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 !important;
    overflow: hidden;
  }

  .mobile-answer-grid {
    min-height: 72px;
  }

  .mobile-self-answer {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 6px 4px;
    border-right: 1px solid #b7d5eb;
    background: rgba(225, 242, 255, .34);
  }

  .mobile-self-answer .status-button {
    min-width: 0;
    padding: 0;
  }

  .mobile-self-answer .status {
    width: 48px;
    height: 48px;
    box-shadow: 0 3px 8px rgba(33, 92, 145, .13);
  }

  .mobile-self-answer .status img {
    width: 29px;
    height: 29px;
  }

  .mobile-other-members {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 2px 3px;
    min-width: 0;
    padding: 4px;
  }

  .mobile-member-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    padding: 2px 3px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #0b5f9d;
    font: inherit;
    text-align: left;
  }

  .mobile-member-answer:hover,
  .mobile-member-answer[aria-expanded="true"] {
    background: #dff0ff !important;
  }

  .mobile-member-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .61rem;
    line-height: 1.1;
  }

  .mobile-member-status {
    width: 24px;
    height: 24px;
  }

  .mobile-member-status img {
    width: 15px;
    height: 15px;
  }

  .mobile-member-empty {
    grid-column: 1 / -1;
    align-self: center;
    color: #7890a8;
    font-size: .68rem;
    text-align: center;
  }

  .response-table.mobile-response-table tbody tr.slot-row-attend-best > .mobile-answer-cell {
    background: #c9f2e6 !important;
  }

  .response-table.mobile-response-table tbody tr:not(.slot-row-attend-best) > .mobile-answer-cell {
    background: #fff !important;
  }

  .response-table.mobile-response-table tbody tr.slot-row-attend-best .mobile-self-answer {
    background: rgba(172, 231, 214, .48);
  }

  .response-table.mobile-response-table tbody tr:not(.slot-row-attend-best) .mobile-self-answer {
    background: rgba(225, 242, 255, .34);
  }
}

@media (max-width: 390px) {
  .response-table.mobile-response-table .slot-cell {
    width: 102px;
    min-width: 102px;
    max-width: 102px;
  }
  .mobile-answer-head-grid,
  .mobile-answer-grid {
    grid-template-columns: 30% 70%;
  }
  .mobile-other-members {
    grid-template-columns: 1fr;
  }
  .mobile-member-answer {
    min-height: 26px;
  }
  .mobile-self-answer .status {
    width: 44px;
    height: 44px;
  }
}

/* v91: subtle ambient motion for the logged-in home and event creation pages. */
body.yotei-ambient-page {
  position: relative;
  isolation: isolate;
}
body.yotei-ambient-page .page-shell {
  position: relative;
  z-index: 1;
}
.yotei-ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.yotei-ambient-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(54, 137, 222, .065);
  border: 1px solid rgba(64, 143, 224, .07);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.yotei-ambient-orb:nth-child(1) {
  width: 190px;
  height: 190px;
  left: -70px;
  top: 12vh;
  animation: yotei-ambient-a 29s ease-in-out infinite alternate;
}
.yotei-ambient-orb:nth-child(2) {
  width: 270px;
  height: 270px;
  right: -118px;
  top: 31vh;
  background: rgba(75, 190, 218, .055);
  border-color: rgba(75, 190, 218, .065);
  animation: yotei-ambient-b 35s ease-in-out infinite alternate;
}
.yotei-ambient-orb:nth-child(3) {
  width: 138px;
  height: 138px;
  left: 23vw;
  bottom: -50px;
  background: rgba(91, 147, 222, .05);
  animation: yotei-ambient-c 32s ease-in-out infinite alternate;
}
.yotei-ambient-orb:nth-child(4) {
  width: 110px;
  height: 110px;
  right: 21vw;
  top: 9vh;
  background: rgba(91, 147, 222, .045);
  animation: yotei-ambient-d 26s ease-in-out infinite alternate;
}
.yotei-ambient-orb:nth-child(5) {
  width: 84px;
  height: 84px;
  left: 58vw;
  top: 64vh;
  background: rgba(75, 190, 218, .05);
  animation: yotei-ambient-e 37s ease-in-out infinite alternate;
}
body.yotei-ambient-create .yotei-ambient-orb {
  opacity: .62;
}
body.yotei-ambient-create .yotei-ambient-orb:nth-child(4),
body.yotei-ambient-create .yotei-ambient-orb:nth-child(5) {
  display: none;
}
@keyframes yotei-ambient-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 46px, 0) scale(1.05); }
}
@keyframes yotei-ambient-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-44px, -32px, 0) scale(1.04); }
}
@keyframes yotei-ambient-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(50px, -38px, 0) scale(.96); }
}
@keyframes yotei-ambient-d {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 34px, 0) scale(1.07); }
}
@keyframes yotei-ambient-e {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -42px, 0) scale(1.05); }
}
@media (max-width: 640px) {
  .yotei-ambient-orb:nth-child(1) { width: 145px; height: 145px; }
  .yotei-ambient-orb:nth-child(2) { width: 205px; height: 205px; }
  .yotei-ambient-orb:nth-child(3) { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .yotei-ambient-orb {
    animation: none !important;
    transform: none !important;
  }
}


/* v92: maximize header logo and improve mobile member-name readability. */
.brand {
  flex: 1 1 auto;
  overflow: hidden;
}
.brand img {
  width: min(280px, 54vw);
  max-width: 100%;
}

@media (max-width: 640px) {
  .site-header {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    padding: 0;
  }
  .brand img {
    width: min(240px, calc(100vw - 124px));
    max-width: 100%;
  }
  .account-area,
  .header-controls {
    flex: 0 0 auto;
  }
  .mobile-others-head {
    font-size: .90rem;
  }
  .mobile-member-name {
    font-size: .72rem;
    line-height: 1.16;
  }
}

@media (max-width: 440px) {
  .mobile-member-name {
    font-size: .75rem;
  }
}

@media (max-width: 390px) {
  .mobile-member-name {
    font-size: .79rem;
  }
}

/* v93: make the mobile hamburger a robust admin ZIP drop target. */
@media (max-width: 640px) {
  .mobile-more-wrap.mobile-deploy-drop-zone {
    position: relative;
    isolation: isolate;
  }
  .mobile-more-wrap.mobile-deploy-drop-zone.deploy-drag-active {
    padding: 10px;
    margin: -10px;
  }
  .mobile-more-wrap.mobile-deploy-drop-zone.deploy-drag-active .mobile-more-button,
  .mobile-more-wrap.mobile-deploy-drop-zone.dragover .mobile-more-button {
    background: #07519b;
    border-color: #fff;
    box-shadow: 0 0 0 5px rgba(255,255,255,.30), 0 9px 20px rgba(8,76,145,.38);
    transform: scale(1.10);
  }
}



/* v94: decision assistance, true unanswered state, candidate impact and pre-confirm check. */
.status-unanswered {
  color: #61778a;
  background: #f2f5f8;
  border-color: #aebdca;
}
.status-unanswered > span {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 700;
}

.status-unanswered.status-small > span {
  font-size: .72rem;
}


.confirmed-slot-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #79b9a6;
  border-radius: 12px;
  background: #eaf8f3;
  color: #17644f;
}
.confirmed-slot-banner > .material-symbols-rounded {
  font-size: 25px;
}
.confirmed-slot-banner > div {
  display: grid;
  gap: 2px;
}
.confirmed-slot-label {
  font-size: .72rem;
  color: #4d7d70;
}
#confirmed-slot-text {
  font-size: .94rem;
  font-weight: 600;
}

.decision-assist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid #8ec1eb;
  border-radius: 12px;
  background: #eef8ff;
}
.decision-assist-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.decision-assist-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0c67ae;
  font-size: .77rem;
  font-weight: 600;
}
.decision-assist-title .material-symbols-rounded {
  font-size: 17px;
}
.decision-assist-message {
  color: #244f73;
  font-size: .86rem;
  line-height: 1.45;
}
#remind-unanswered {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 11px;
  font-size: .78rem;
}

.candidate-row-selectable > .slot-cell {
  cursor: pointer;
}
.candidate-row-selectable > .slot-cell:focus-visible {
  outline: 2px solid #1676c7;
  outline-offset: -3px;
}
.response-table tbody tr.candidate-row-selected > th.slot-cell {
  box-shadow: inset 5px 0 0 #1875c2, 2px 0 0 #94bfe8;
}
.response-table tbody tr.candidate-row-selected > td {
  box-shadow: inset 0 -2px 0 rgba(24, 117, 194, .35), inset 0 2px 0 rgba(24, 117, 194, .35);
}
.response-table tbody tr.candidate-row-confirmed > th.slot-cell::after {
  content: '確定';
  display: inline-block;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid #63a891;
  border-radius: 999px;
  background: #e4f6f0;
  color: #17634f;
  font-size: .62rem;
  line-height: 1.1;
}

.candidate-impact {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #84b9e5;
  border-radius: 13px;
  background: #f4faff;
  box-shadow: 0 7px 15px rgba(31, 86, 136, .08);
}
.candidate-impact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.candidate-impact-head > div {
  display: grid;
  gap: 2px;
}
.candidate-impact-eyebrow {
  color: #5e809c;
  font-size: .7rem;
}
#candidate-impact-title {
  color: #124f83;
  font-size: .94rem;
}
.candidate-impact-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #e6f1fa;
  color: #416d91;
  font-size: 1.15rem;
  line-height: 1;
}
.candidate-impact-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.candidate-impact-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 7px;
  border: 1px solid #b6cee3;
  border-radius: 999px;
  background: #fff;
  color: #54718a;
  font-size: .74rem;
}
.candidate-impact-count strong {
  color: #224e73;
  font-size: .86rem;
}
.impact-attend { border-color: #83b8e8; background: #edf7ff; }
.impact-absent { border-color: #e8b4b4; background: #fff2f2; }
.impact-maybe { border-color: #dfc779; background: #fff8df; }
.impact-unanswered { border-color: #bcc7d0; background: #f5f7f9; }
.candidate-impact-detail {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  color: #48677f;
  font-size: .78rem;
  line-height: 1.42;
}
.candidate-impact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.notify-unanswered-count {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid #b8c6d2;
  border-radius: 999px;
  background: #f3f6f8;
  color: #61778a;
  font-size: .68rem;
}

.confirmation-check-dialog {
  width: min(520px, calc(100% - 24px));
}
.confirmation-check-slot {
  margin: 4px 0 10px;
  color: #134f82;
  font-size: 1rem;
  font-weight: 600;
}
.confirmation-check-summary {
  padding: 9px 10px;
  border: 1px solid #b4d2eb;
  border-radius: 10px;
  background: #f2f9ff;
  color: #325f84;
  font-size: .82rem;
}
.confirmation-check-warnings {
  display: grid;
  gap: 7px;
  margin: 11px 0 2px;
}
.confirmation-check-warning,
.confirmation-check-ok {
  padding: 8px 9px;
  border-radius: 9px;
  font-size: .79rem;
  line-height: 1.42;
}
.confirmation-check-warning {
  border: 1px solid #e3c27b;
  background: #fff8e7;
  color: #765c23;
}
.confirmation-check-ok {
  border: 1px solid #91c5b2;
  background: #edf9f4;
  color: #2f6f5b;
}

@media (max-width: 640px) {
  #response-card .legend {
    row-gap: 4px;
  }
  .decision-assist {
    align-items: stretch;
    flex-direction: column;
  }
  #remind-unanswered {
    align-self: flex-start;
  }
  .candidate-impact {
    padding: 10px;
  }
  .candidate-impact-counts {
    gap: 4px;
  }
  .candidate-impact-count {
    padding: 3px 6px;
    font-size: .68rem;
  }
  .candidate-impact-count strong {
    font-size: .78rem;
  }
  .response-table.mobile-response-table .count-item {
    gap: 0;
  }
  .response-table.mobile-response-table .status-unanswered.status-small > span {
    font-size: .58rem;
  }
  .mobile-member-status.status-unanswered > span {
    font-size: .82rem;
  }
}

/* v96: candidate impact participant names are individual rounded chips. */
.candidate-impact-person-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.candidate-impact-person-label {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #48677f;
  white-space: nowrap;
}
.candidate-impact-person-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.candidate-impact-person-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #a9c4dc;
  border-radius: 999px;
  background: #ffffff;
  color: #355f82;
  font-size: .76rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.candidate-impact-person-chip.person-chip-absent {
  border-color: #e2b0b0;
  background: #fff4f4;
  color: #935151;
}
.candidate-impact-person-chip.person-chip-maybe {
  border-color: #dbc881;
  background: #fff9e6;
  color: #786526;
}
.candidate-impact-person-chip.person-chip-unanswered {
  border-color: #b8c7d2;
  background: #f5f7f9;
  color: #5e7282;
}
.candidate-impact-comparison {
  margin-top: 2px;
}
@media (max-width: 640px) {
  .candidate-impact-person-line {
    gap: 5px;
  }
  .candidate-impact-person-chip {
    min-height: 23px;
    padding: 3px 7px;
    font-size: .73rem;
  }
}



/* v97: create page CSP hardening. All first-paint and time-option styling stays in external CSS. */
.create-page-body #create-boot-cover {
  display: block;
}
.create-page-body.create-page-ready #create-boot-cover {
  display: block;
}
.slot-time-grid select option.time-option-disabled,
.slot-time-dialog-grid select option.time-option-disabled {
  color: #d7e1ec;
  font-weight: 400;
  background-color: #f7fafc;
}
.slot-time-grid select option.time-option-emphasis,
.slot-time-dialog-grid select option.time-option-emphasis {
  color: #0f2f53;
  font-weight: 900;
  background-color: #ffffff;
}
.slot-time-grid select option.time-option-normal,
.slot-time-dialog-grid select option.time-option-normal {
  color: #4f6f92;
  font-weight: 500;
  background-color: #ffffff;
}


/* v98: strict-CSP runtime styling. No JavaScript writes to element.style. */
.clipboard-copy-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.recent-item-delay-0 { animation-delay: 0ms; }
.recent-item-delay-1 { animation-delay: 75ms; }
.recent-item-delay-2 { animation-delay: 150ms; }
.recent-item-delay-3 { animation-delay: 225ms; }
.recent-item-delay-4 { animation-delay: 300ms; }

.participant-tooltip.participant-tooltip-fixed-placement {
  left: 50%;
  top: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
}

.pull-refresh-indicator { transform: translate(-50%, -52px); }
.pull-refresh-indicator.pull-distance-0 { transform: translate(-50%, -52px); }
.pull-refresh-indicator.pull-distance-1 { transform: translate(-50%, -47px); }
.pull-refresh-indicator.pull-distance-2 { transform: translate(-50%, -42px); }
.pull-refresh-indicator.pull-distance-3 { transform: translate(-50%, -37px); }
.pull-refresh-indicator.pull-distance-4 { transform: translate(-50%, -32px); }
.pull-refresh-indicator.pull-distance-5 { transform: translate(-50%, -27px); }
.pull-refresh-indicator.pull-distance-6 { transform: translate(-50%, -22px); }
.pull-refresh-indicator.pull-distance-7 { transform: translate(-50%, -17px); }
.pull-refresh-indicator.pull-distance-8 { transform: translate(-50%, -12px); }
.pull-refresh-indicator.pull-distance-9 { transform: translate(-50%, -7px); }
.pull-refresh-indicator.pull-distance-10 { transform: translate(-50%, -2px); }
.pull-refresh-indicator.pull-distance-11 { transform: translate(-50%, 3px); }
.pull-refresh-indicator.pull-distance-12 { transform: translate(-50%, 8px); }
.pull-refresh-indicator.pull-distance-13 { transform: translate(-50%, 13px); }
.pull-refresh-indicator.pull-distance-14 { transform: translate(-50%, 18px); }
.pull-refresh-indicator.pull-distance-15 { transform: translate(-50%, 23px); }
.pull-refresh-indicator.pull-distance-16 { transform: translate(-50%, 28px); }
.pull-refresh-indicator.pull-distance-17 { transform: translate(-50%, 33px); }
.pull-refresh-indicator.pull-distance-18 { transform: translate(-50%, 38px); }
.pull-refresh-indicator.pull-distance-19 { transform: translate(-50%, 43px); }
.pull-refresh-indicator.pull-distance-20 { transform: translate(-50%, 48px); }
.pull-refresh-indicator.pull-distance-21 { transform: translate(-50%, 53px); }
.pull-refresh-indicator.pull-distance-22 { transform: translate(-50%, 58px); }
.pull-refresh-indicator.pull-distance-23 { transform: translate(-50%, 63px); }
.pull-refresh-indicator.pull-distance-24 { transform: translate(-50%, 68px); }


@media (max-width: 760px) {
  html.mobile-modal-open,
  body.mobile-modal-open {
    overflow: hidden;
    height: 100%;
  }
  body.mobile-modal-open {
    position: fixed;
    inset: 0;
    width: 100%;
  }
}


/* v101: compact member status chips in the mobile candidate table. */
:root {
  --mobile-member-attend-bg: #eef9ff;
  --mobile-member-attend-border: #8cccf5;
  --mobile-member-absent-bg: #fff2f2;
  --mobile-member-absent-border: #ffb4b4;
  --mobile-member-maybe-bg: #fff9e8;
  --mobile-member-maybe-border: #e8cb83;
  --mobile-member-unanswered-bg: #f3f6f8;
  --mobile-member-unanswered-border: #becbd5;
}

@media (max-width: 640px) {
  .mobile-other-members {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 5px;
  }

  .mobile-member-answer {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 3px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 25px;
    margin: 0;
    padding: 2px 7px 2px 3px;
    border: 1px solid var(--mobile-member-unanswered-border);
    border-radius: 999px;
    background: var(--mobile-member-unanswered-bg);
    color: #285f86;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-member-answer.mobile-member-state-0 {
    border-color: var(--mobile-member-attend-border);
    background: var(--mobile-member-attend-bg);
  }
  .mobile-member-answer.mobile-member-state-1 {
    border-color: var(--mobile-member-absent-border);
    background: var(--mobile-member-absent-bg);
  }
  .mobile-member-answer.mobile-member-state-2 {
    border-color: var(--mobile-member-maybe-border);
    background: var(--mobile-member-maybe-bg);
  }
  .mobile-member-answer.mobile-member-state-unanswered {
    border-color: var(--mobile-member-unanswered-border);
    background: var(--mobile-member-unanswered-bg);
  }

  .mobile-member-answer:hover,
  .mobile-member-answer[aria-expanded="true"] {
    filter: brightness(.97);
  }

  .mobile-member-status,
  .mobile-member-status.status-small {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin: 0;
  }
  .mobile-member-status img,
  .mobile-member-status.status-small img {
    width: 11px;
    height: 11px;
  }
  .mobile-member-status.status-unanswered > span,
  .mobile-member-status.status-small.status-unanswered > span {
    font-size: .68rem;
  }

  .mobile-member-name {
    display: block;
    max-width: 92px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  .mobile-other-members {
    display: flex;
    grid-template-columns: none;
    gap: 3px;
  }
  .mobile-member-answer {
    min-height: 24px;
    padding-right: 6px;
  }
  .mobile-member-name {
    max-width: 78px;
    font-size: .74rem;
  }
}

/* v102: long press on reminder reveals concrete e-mail destinations only in the confirmation dialog. */
#remind-unanswered {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}
.notify-route-destination-revealed .notify-route-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* v103: XREA mail-test panel is disclosed only by long-press reminder mode. */
.admin-mail-test-area {
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-mail-test-title {
  width: 100%;
}

.admin-mail-test-destination {
  width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.88em;
}

/* v104: confirmed-event final state. */
.finalized-card {
  border-color: #66b5e8;
  background: #f5fbff;
}
.finalized-card .eyebrow {
  color: #1475b8;
}
.finalized-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 10px 14px;
  text-align: center;
}
.finalized-hero-icon {
  flex: 0 0 auto;
  font-size: 42px;
  color: #1688d2;
}
.finalized-hero-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.finalized-date {
  color: #075f9e;
  font-size: clamp(1.45rem, 4.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .02em;
}
.finalized-time {
  color: #2f6e99;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  font-weight: 600;
}
.finalized-note {
  margin: 0 0 14px;
  color: #55758b;
  text-align: center;
  font-size: .82rem;
  line-height: 1.55;
}
#notify-final-result {
  max-width: 420px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .finalized-hero {
    gap: 10px;
    padding: 14px 4px 10px;
  }
  .finalized-hero-icon {
    font-size: 34px;
  }
  .finalized-date {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }
  .finalized-note {
    font-size: .76rem;
  }
}
