:root {
  --admin-shadow: 0 16px 36px rgb(24 50 58 / 7%);
  --admin-soft-shadow: 0 8px 22px rgb(24 50 58 / 5%);
  --admin-max: 1180px;
  --admin-focus: 0 0 0 3px rgb(20 88 79 / 22%);
}

[hidden] {
  display: none !important;
}

.admin-page {
  background: var(--paper, #f4f6f1);
  color: var(--ink, #18323a);
}

body.page-admin .container {
  width: min(calc(100% - 48px), var(--admin-max));
  margin-inline: auto;
}

.readonly-banner {
  margin: 0 0 24px;
  padding: 13px 16px;
  border: 1px solid #c9dbd5;
  border-radius: var(--radius-control, 12px);
  background: #eaf4f0;
  color: #315a50;
  font-size: 12px;
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink, #18323a);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--line, #d9e3de);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(16px);
}

.admin-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink, #18323a);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-lockup__text {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-lockup__text strong {
  font-size: 15px;
  letter-spacing: .01em;
}

.brand-lockup__text span {
  color: var(--muted, #607377);
  font-size: 11px;
}

.admin-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-header__controls { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-header__controls .admin-nav { flex: 1 1 auto; justify-content: flex-end; }
.admin-help-open { flex: 0 0 auto; white-space: nowrap; }

.admin-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted, #607377);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
  background: var(--teal, #dff1eb);
  color: var(--green-strong, #0d443d);
}

.admin-container {
  max-width: var(--admin-max);
  padding-top: 38px;
  padding-bottom: 64px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.page-intro h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.6vw, 43px);
  letter-spacing: -.045em;
  line-height: 1.25;
}

.page-intro__description {
  max-width: 700px;
  margin: 0;
  color: var(--muted, #607377);
  font-size: 15px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--green, #14584f);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.workspace-chip {
  display: grid;
  min-width: 190px;
  gap: 4px;
  padding: 14px 17px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: var(--radius-control, 12px);
  background: var(--surface, #fff);
  box-shadow: var(--admin-soft-shadow);
}

.workspace-chip__label,
.workspace-chip__year {
  color: var(--muted, #607377);
  font-size: 11px;
}

.workspace-chip strong {
  max-width: 255px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-chip__year {
  color: var(--green, #14584f);
  font-weight: 750;
}

.sample-callout,
.report-guide {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #eadcb9;
  border-radius: var(--radius-control, 12px);
  background: #fffaf0;
  color: #453b25;
}

.sample-callout__badge,
.report-guide__mark {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #f3e7c7;
  color: #6a5114;
  font-size: 12px;
  font-weight: 850;
}

.sample-callout strong,
.report-guide strong {
  display: block;
  font-size: 13px;
}

.sample-callout p,
.report-guide p {
  margin: 4px 0 0;
  color: #6b624d;
  font-size: 12px;
  line-height: 1.7;
}

.loading-panel,
.access-panel,
.error-panel {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 20px 0 42px;
  padding: 24px;
}

.loading-indicator {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid var(--line, #d9e3de);
  border-top-color: var(--green, #14584f);
  border-radius: 50%;
  animation: admin-spin .85s linear infinite;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

.loading-panel p,
.access-panel p,
.error-panel p {
  color: var(--muted, #607377);
}

.access-panel,
.error-panel {
  display: block;
  max-width: 680px;
}

.access-panel h2,
.error-panel h2 {
  margin: 8px 0;
  font-size: 23px;
}

.section-block {
  margin-top: 58px;
  scroll-margin-top: 98px;
}

.today-section {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.03em;
}

.section-heading__aside {
  color: var(--muted, #607377);
  font-size: 12px;
  font-weight: 650;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.today-card {
  display: grid;
  min-height: 144px;
  align-content: start;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: var(--radius-card, 22px);
  background: var(--surface, #fff);
  box-shadow: var(--admin-soft-shadow);
}

.today-card--new { border-top: 4px solid #d6a64b; }
.today-card--check { border-top: 4px solid #5d8e8a; }
.today-card--open { border-top: 4px solid #14584f; }

.today-card__label {
  color: var(--muted, #607377);
  font-size: 12px;
  font-weight: 700;
}

.today-card__count {
  font-size: 36px;
  letter-spacing: -.06em;
  line-height: 1;
}

.today-card > span:last-child {
  color: var(--muted, #607377);
  font-size: 11px;
}

.today-followups {
  margin-top: 15px;
  padding: 20px 22px;
}

.today-followups__heading,
.open-items-panel__heading,
.route-map-card__heading,
.photo-dialog__heading,
.preview-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.today-followups__heading h3,
.route-map-card__heading h3,
.open-items-panel__heading h3,
.year-card h3,
.report-settings h3,
.preview-toolbar h3 {
  margin: 0;
  font-size: 16px;
}

.today-followups__heading p,
.route-map-card__heading p,
.open-items-panel__heading p,
.year-card > p,
.report-settings > p,
.preview-toolbar p {
  margin: 5px 0 0;
  color: var(--muted, #607377);
  font-size: 12px;
  line-height: 1.65;
}

.text-link {
  flex: 0 0 auto;
  color: var(--green, #14584f);
  font-size: 12px;
  font-weight: 750;
}

.task-list,
.route-list,
.open-items-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.task-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line, #d9e3de);
}

.task-list__content { min-width: 0; }
.task-list__title { display: block; font-size: 13px; font-weight: 750; }
.task-list__detail { display: block; margin-top: 4px; color: var(--muted, #607377); font-size: 11px; line-height: 1.5; }
.task-list__link { flex: 0 0 auto; color: var(--green, #14584f); font-size: 11px; font-weight: 750; }

.empty-message {
  margin: 10px 0 0;
  color: var(--muted, #607377);
  font-size: 13px;
  line-height: 1.7;
}

.sample-callout {
  margin-top: 26px;
  padding: 16px 19px;
}

.sample-callout__badge {
  background: var(--teal, #dff1eb);
  color: var(--green-strong, #0d443d);
}

.state-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.state-pill--neutral { border-color: var(--line, #d9e3de); background: #fff; color: var(--muted, #607377); }
.state-pill--success { border-color: #bfddd4; background: #e6f4ef; color: #14584f; }
.state-pill--warning { border-color: #eadcb9; background: #fff7e4; color: #715713; }
.state-pill--danger { border-color: #eccfc9; background: #fff0ed; color: #8a382e; }
.state-pill--new { border-color: #eadcb9; background: #fff6df; color: #725311; }
.state-pill--checking { border-color: #c8deda; background: #eaf4f2; color: #2f6e69; }
.state-pill--in-progress { border-color: #cbd8ed; background: #eff4fb; color: #365d88; }
.state-pill--resolved { border-color: #bfddd4; background: #e6f4ef; color: #14584f; }
.state-pill--hidden { border-color: #dfdfe1; background: #f3f3f4; color: #686b70; }

.invitation-card,
.route-map-card,
.route-editor-card,
.report-toolbar,
.report-settings,
.open-items-panel,
.year-card {
  box-shadow: var(--admin-soft-shadow);
}

.invitation-card { overflow: hidden; }

.invitation-card__intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 17px;
}

.invitation-card__symbol,
.year-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--teal, #dff1eb);
  color: var(--green, #14584f);
  font-size: 18px;
  font-weight: 800;
}

.invitation-card h3 { margin: 0; font-size: 16px; }
.invitation-card__intro p { margin: 5px 0 0; color: var(--muted, #607377); font-size: 12px; line-height: 1.65; }

.invitation-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  padding: 0 24px 22px 76px;
}

.invitation-link-block label,
.route-editor-card label,
.report-settings label,
.year-card label,
.report-filter label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink, #18323a);
  font-size: 12px;
  font-weight: 750;
}

.field-help,
.label-note {
  display: block;
  margin: 6px 0 0;
  color: var(--muted, #607377);
  font-size: 11px;
  line-height: 1.6;
}

.label-note { display: inline; margin-left: 4px; font-weight: 500; }

.invitation-link-block input,
.route-editor-card input,
.route-editor-card select,
.route-editor-card textarea,
.report-filter input,
.report-filter select,
.report-settings input,
.report-settings textarea,
.year-card select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: var(--radius-control, 12px);
  background: #fff;
  color: var(--ink, #18323a);
  font: inherit;
  font-size: 13px;
}

.route-editor-card textarea,
.report-settings textarea {
  min-height: 94px;
  resize: vertical;
}

.invitation-link-block input[readonly] {
  background: #f7f9f7;
  color: #3e5155;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.invitation-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 24px;
  border-top: 1px solid var(--line, #d9e3de);
  background: #f8faf8;
}

.invitation-card__actions strong { font-size: 13px; }
.invitation-card__actions p { margin: 3px 0 0; color: var(--muted, #607377); font-size: 11px; line-height: 1.5; }

.invitation-qr {
  align-self: start;
  margin: 0;
  text-align: center;
}

.invitation-qr__image {
  display: grid;
  width: 156px;
  min-height: 156px;
  place-items: center;
  margin: 0 auto 7px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: 12px;
  background: #fff;
}

.invitation-qr__image img { display: block; width: 140px; height: 140px; image-rendering: pixelated; }
.invitation-qr figcaption { max-width: 175px; margin: auto; color: var(--muted, #607377); font-size: 10px; line-height: 1.5; }
.inline-feedback { min-height: 18px; margin: 5px 0 0; color: var(--green, #14584f); font-size: 11px; line-height: 1.5; }
.inline-feedback.is-error,
.page-feedback.is-error { color: var(--danger, #a8493d); }
.inline-feedback.is-success { color: var(--green, #14584f); }
.page-feedback { min-height: 21px; margin: 6px 0 0; font-size: 12px; }

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-control, 12px);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible,
.admin-page a:focus-visible,
.admin-page input:focus-visible,
.admin-page select:focus-visible,
.admin-page textarea:focus-visible { outline: none; box-shadow: var(--admin-focus); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button--primary { background: var(--green, #14584f); color: #fff; }
.button--primary:hover:not(:disabled) { background: var(--green-strong, #0d443d); }
.button--secondary { border-color: #bfd5cd; background: #f2f8f5; color: var(--green-strong, #0d443d); }
.button--secondary:hover:not(:disabled) { border-color: var(--green, #14584f); background: var(--teal, #dff1eb); }
.button--quiet { border-color: var(--line, #d9e3de); background: #fff; color: var(--ink, #18323a); }
.button--quiet:hover:not(:disabled) { background: #f5f8f6; }
.button--danger { background: var(--danger, #a8493d); color: #fff; }
.button--danger-quiet { border-color: #e8c9c4; background: #fff8f6; color: #8a382e; }
.button--danger-quiet:hover:not(:disabled) { background: #fff0ed; }
.button--small { min-height: 38px; padding: 8px 11px; font-size: 11px; }

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: start;
  gap: 16px;
}

.route-map-card,
.route-editor-card { padding: 20px; }

.route-map-card__heading { align-items: center; margin-bottom: 14px; }
.map-label { padding: 6px 9px; border-radius: 999px; background: #f1f5ef; color: var(--muted, #607377); font-size: 10px; white-space: nowrap; }
.map-status { min-height: 20px; margin: 0 0 7px; color: var(--muted, #607377); font-size: 11px; }
.map-status.is-error { color: var(--danger, #a8493d); }
.map-status.is-ready { color: var(--green, #14584f); }
.map-tile-status { min-height: auto; margin: 7px 0 0; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--danger, #a8493d) 22%, var(--line, #d9e3de)); border-radius: 9px; background: color-mix(in srgb, var(--danger, #a8493d) 7%, var(--surface, #fff)); color: var(--danger, #a8493d); font-size: 11px; line-height: 1.5; }
.map-tile-status[hidden] { display: none !important; }

.route-map {
  min-height: 350px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line, #d9e3de);
  border-radius: 15px;
  background: linear-gradient(140deg, #edf2ed, #e4ece8);
}

.route-map .leaflet-container { min-height: 350px; background: #edf2ed; font: inherit; }
.route-map .leaflet-control-attribution { font-size: 10px; }
.route-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; }
.map-controls { margin-top: 10px; }
.map-attribution { margin: 11px 0 0; color: var(--muted, #607377); font-size: 10px; }
.map-attribution a { color: var(--green, #14584f); }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line, #d9e3de); border-radius: 11px; background: #fff; }
.map-legend > span { display: inline-flex; align-items: center; gap: 7px; color: #455a5e; font-size: 10px; font-weight: 700; }
.map-legend__route { width: 20px; height: 4px; border-radius: 5px; background: #63847d; }
.map-legend__hazard,
.map-legend__sign { display: inline-block; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #869392; }
.map-legend__hazard { background: #a8493d; }
.map-legend__sign { background: #a67712; }
.map-report-note { margin: 8px 0 0; color: var(--muted, #607377); font-size: 10px; line-height: 1.55; }
.route-map--unavailable { display: grid; place-items: center; padding: 20px; color: var(--muted, #607377); font-size: 12px; line-height: 1.7; }
.map-report-popup { max-width: 240px; color: #18323a; font-family: var(--font-sans, system-ui, sans-serif); }
.map-report-popup strong { display: block; font-size: 12px; }
.map-report-popup p { margin: 5px 0; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.map-report-popup small { display: block; color: #607377; font-size: 10px; }
.map-report-popup__link { display: inline-block; margin-top: 8px; color: #14584f; font-size: 11px; font-weight: 750; }

.route-editor-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.route-editor-card__heading h3 { margin: 4px 0; font-size: 17px; }
.route-editor-card__heading > p:last-child { margin: 6px 0 0; color: var(--muted, #607377); font-size: 11px; line-height: 1.65; }
.district-form { padding: 13px; border-radius: 14px; background: #f6f8f5; }
.field-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.route-list-block { margin-top: 17px; }
.route-list-block h4 { margin: 0 0 9px; font-size: 12px; }
.route-form { display: grid; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line, #d9e3de); }
.route-form label { margin: 0; }
.route-form .field-help { margin-top: -1px; }
.route-form__actions { margin-top: 2px; }
.route-list { display: grid; gap: 8px; }
.route-list__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 10px 11px; border: 1px solid var(--line, #d9e3de); border-radius: 12px; background: #fff; }
.route-list__text { min-width: 0; }
.route-list__text strong { display: block; font-size: 12px; }
.route-list__text span { display: block; margin-top: 3px; color: var(--muted, #607377); font-size: 10px; line-height: 1.5; }
.route-list__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.route-list__actions .button { min-height: 32px; padding: 6px 8px; font-size: 10px; }

.report-guide { align-items: flex-start; margin-bottom: 14px; padding: 14px 17px; }
.report-guide__mark { border-radius: 50%; font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.report-toolbar { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(170px, 1fr) minmax(220px, 1.6fr); gap: 12px; margin-bottom: 12px; padding: 15px; }
.report-filter { min-width: 0; }
.report-filter input,
.report-filter select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.report-list { display: grid; gap: 12px; }

.report-card {
  overflow: hidden;
  border: 1px solid var(--line, #d9e3de);
  border-radius: var(--radius-card, 22px);
  background: var(--surface, #fff);
  box-shadow: var(--admin-soft-shadow);
}

.report-card--hidden { border-color: #d6d6d8; background: #fbfbfb; }
.report-card__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted, #607377); font-size: 10px; }
.report-card__eyebrow span { padding-right: 6px; border-right: 1px solid var(--line, #d9e3de); }
.report-card__eyebrow span:last-child { border-right: 0; }
.report-card__actions { display: grid; align-content: start; gap: 8px; }
.report-card__actions label { display: block; margin: 0 0 4px; color: var(--ink, #18323a); font-size: 11px; font-weight: 750; }
.report-card__actions select,
.report-card__actions input,
.report-card__actions textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line, #d9e3de); border-radius: 10px; background: #fff; color: var(--ink, #18323a); font: inherit; font-size: 12px; }
.report-card__actions textarea { min-height: 65px; resize: vertical; }
.report-card__actions .button { justify-self: start; }
.report-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 11px 20px; border-top: 1px solid var(--line, #d9e3de); background: #fafbfa; }
.report-card__updated { color: var(--muted, #607377); font-size: 10px; }
.report-card__inclusion { display: flex; align-items: center; gap: 8px; color: #315a50; font-size: 11px; font-weight: 750; }
.report-card__inclusion input { width: 18px; height: 18px; accent-color: var(--green, #14584f); }
.report-card__exclusion { color: #725713; font-size: 11px; }

.report-builder-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 16px; }
.report-settings { padding: 19px; }
.report-settings h3 { margin-bottom: 4px; }
.report-settings > p { margin-bottom: 16px; }
.report-settings label { margin-top: 13px; }
.report-settings input,
.report-settings textarea { margin-top: 0; }
.report-district-fieldset { margin: 16px 0 0; padding: 0; border: 0; }
.report-district-fieldset legend { margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.checkbox-list { display: grid; gap: 6px; }
.checkbox-choice { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line, #d9e3de); border-radius: 10px; background: #fff; font-size: 11px; }
.checkbox-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--green, #14584f); }
.privacy-note { margin-top: 16px; padding: 12px; border: 1px solid #cfe1d9; border-radius: 12px; background: #f1f8f4; }
.privacy-note strong { font-size: 11px; }
.privacy-note p { margin: 4px 0 0; color: var(--muted, #607377); font-size: 10px; line-height: 1.6; }
.report-print-actions { margin-top: 17px; }
.report-preview-column { min-width: 0; }
.preview-toolbar { align-items: center; margin-bottom: 10px; padding: 0 2px; }
.report-preview-wrap { padding: 16px; border: 1px solid var(--line, #d9e3de); border-radius: 16px; background: #e9eeeb; }
.external-report { display: flex; min-height: 710px; flex-direction: column; padding: 38px 40px; border: 1px solid #e1e5e2; background: #fff; box-shadow: var(--admin-shadow); color: #243b3f; }
.external-report__header { padding-bottom: 20px; border-bottom: 2px solid #234c47; text-align: center; }
.external-report__organization { margin: 0 0 13px; color: #56676a; font-size: 11px; text-align: left; }
.external-report__eyebrow { margin: 0 0 8px; color: #47776c; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.external-report__header h2 { margin: 0; font-size: 25px; letter-spacing: .03em; }
.external-report__year { margin: 8px 0 0; color: #56676a; font-size: 12px; }
.external-report__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 20px 0 0; }
.external-report__facts div { padding: 11px 12px; border: 1px solid #dbe3df; border-radius: 9px; }
.external-report__facts dt { color: #657679; font-size: 9px; font-weight: 750; }
.external-report__facts dd { margin: 4px 0 0; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.external-report__summary { margin-top: 20px; }
.external-report__summary h3,
.external-report__items h3 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #dbe3df; font-size: 12px; }
.external-report__summary p { min-height: 43px; margin: 0; color: #35494d; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.external-report__counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 17px; }
.external-report__counts div { display: grid; gap: 4px; padding: 10px; border-radius: 8px; background: #f2f6f3; text-align: center; }
.external-report__counts span { color: #617276; font-size: 9px; }
.external-report__counts strong { color: #234c47; font-size: 20px; }
.external-report__items { margin-top: 19px; }
.external-report__items ol { margin: 0; padding-left: 18px; }
.external-report__items li { padding: 7px 0; border-bottom: 1px solid #edf0ee; color: #34494c; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.external-report__items li strong { color: #244c47; }
.external-report__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #dbe3df; color: #657679; }
.external-report__footer p { max-width: 80%; margin: 0; font-size: 8px; line-height: 1.5; }
.external-report__footer small { flex: 0 0 auto; font-size: 8px; }

.open-items-panel { margin-top: 20px; padding: 19px 21px; }
.open-items-panel__heading { align-items: center; margin-bottom: 10px; }
.open-items-list { display: grid; gap: 0; }
.open-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line, #d9e3de); }
.open-item__location { display: block; font-size: 12px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.open-item__details { display: block; margin-top: 4px; color: var(--muted, #607377); font-size: 10px; line-height: 1.55; }
.open-item__due { align-self: start; color: #715713; font-size: 10px; font-weight: 700; white-space: nowrap; }

.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.year-card { padding: 20px; }
.year-card > .year-card__icon { margin-bottom: 14px; }
.year-card > p { min-height: 55px; margin-bottom: 14px; }
.year-card--action .button { margin-top: 5px; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 17px; border-top: 1px solid var(--line, #d9e3de); }
.admin-footer p { max-width: 780px; margin: 0; color: var(--muted, #607377); font-size: 10px; line-height: 1.6; }
.admin-footer a { color: var(--green, #14584f); font-size: 11px; font-weight: 750; white-space: nowrap; }

.admin-page {
  --admin-accent: var(--action, var(--gold, #d6a64b));
  --admin-link: var(--blue, #57798b);
}

.readonly-banner { border-color: color-mix(in srgb, var(--admin-link) 24%, var(--line, #d9e3de)); background: color-mix(in srgb, var(--admin-link) 8%, var(--surface, #fff)); color: var(--ink, #18323a); }
.admin-container { padding-top: 18px; }
.admin-header__inner { min-height: 68px; }
.admin-nav { gap: 3px; }
.admin-nav a { min-height: 38px; padding-inline: 13px; border-radius: 10px; }
.admin-nav a[aria-current="page"] { background: color-mix(in srgb, var(--admin-accent) 18%, var(--surface, #fff)); color: var(--ink, #18323a); }
.admin-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 20px; }
.admin-context h1 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.admin-context__workspace p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted, #617579); font-size: 12px; }
.admin-context__workspace strong { max-width: min(62vw, 480px); overflow: hidden; color: var(--ink, #18323a); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.admin-context .button { flex: 0 0 auto; }
.admin-context__actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-context__actions .button { min-width: 0; white-space: nowrap; }
.section-block { margin-top: 24px; scroll-margin-top: 94px; }
.section-heading { align-items: center; margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 22px; }
.admin-panel { min-width: 0; }
.report-list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; }
#report-empty { padding: 20px; }
#report-empty-title { margin: 0 0 8px; color: var(--ink, #18323a); font-size: 17px; }
#report-empty p { margin: 0 0 12px; }
.report-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-empty__actions .button { min-height: 44px; }
.school-registration-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.school-registration-fields dt { font-weight: 700; }
.school-registration-fields dd { margin: 0; overflow-wrap: anywhere; }
.report-toolbar { grid-template-columns: minmax(0, .7fr) minmax(0, .8fr) minmax(0, .85fr) minmax(0, 1.35fr); gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 13px; box-shadow: none; }
.report-filter input,
.report-filter select { min-height: 38px; padding: 7px 10px; }
.report-list { gap: 8px; }
.report-card { border-radius: 13px; box-shadow: none; }
.report-card--hidden { background: color-mix(in srgb, var(--paper, #f4f6f1) 72%, var(--surface, #fff)); }
.report-card__summary {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto 68px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.report-card__summary:hover { background: color-mix(in srgb, var(--admin-link) 5%, var(--surface, #fff)); }
.report-card__summary::after { grid-column: 3; grid-row: 1; color: var(--admin-link); content: "詳細を見る →"; font-size: 11px; font-weight: 750; text-align: right; white-space: nowrap; }
.report-card__summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--admin-link) 32%, transparent); outline-offset: -3px; }
.report-card__summary-main { display: grid; min-width: 0; gap: 4px; }
.report-card__eyebrow { gap: 5px; font-size: 10px; }
.report-card__eyebrow span { padding-right: 5px; }
.report-card__summary-title { overflow: hidden; color: var(--ink, #18323a); font-size: 14px; line-height: 1.4; text-overflow: ellipsis; }
.report-card__summary-location { overflow: hidden; color: var(--muted, #617579); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.report-card__summary-date { color: var(--muted, #617579); font-size: 10px; }
.report-card__summary-date:empty { display: none; }
.report-card__summary > .state-pill { grid-column: 2; grid-row: 1; }
.report-card__actions { gap: 6px; }
.report-card__actions label { margin-bottom: 2px; }
.report-card__actions select,
.report-card__actions input,
.report-card__actions textarea { min-height: 38px; padding: 7px 9px; }
.report-card__footer { padding: 10px 16px; }
.report-card__inclusion { color: var(--ink, #18323a); }

.admin-page {
  --sheet-panel-background: var(--surface, #fff);
  --sheet-panel-border-radius: 22px;
  --sheet-card-border-radius: 22px;
  --sheet-panel-box-shadow: 0 24px 70px rgb(10 37 39 / 24%);
  --sheet-overlay-background: rgb(19 35 55 / 42%);
  --sheet-overlay-blur: 0px;
  --sheet-content-padding: 20px;
}
.admin-sheet-dialog { color: var(--ink, #18323a); font: inherit; }
.admin-sheet { color: var(--ink, #18323a); font: inherit; }
.admin-sheet .app-dialog__header,
.admin-sheet .photo-dialog__heading { align-items: center; margin: 0; }
.admin-sheet .app-dialog__header h2,
.admin-sheet .photo-dialog__heading h2 { margin: 0; }
.admin-sheet__content { padding: 14px var(--sheet-content-padding) var(--sheet-content-padding); }
.admin-sheet--filters { --sheet-center-width: min(720px, calc(100vw - 32px)); }
.admin-sheet--help { --sheet-center-width: min(600px, calc(100vw - 32px)); }
.admin-sheet--detail { --sheet-center-width: min(720px, calc(100vw - 32px)); }
.admin-sheet--photo { --sheet-center-width: min(780px, calc(100vw - 32px)); }
.admin-sheet--district-label,
.admin-sheet--district,
.admin-sheet--confirm { --sheet-center-width: min(520px, calc(100vw - 28px)); }
.admin-sheet--confirm { --sheet-overlay-background: rgb(17 39 42 / 55%); --sheet-overlay-blur: 2px; }
.report-filters-dialog .field-help { margin-bottom: 13px; }
.report-filters-dialog .report-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 13px; box-shadow: none; }
.report-filters-dialog .report-filter { min-width: 0; }
.report-filters-dialog .report-filter--search { grid-column: 1 / -1; }
.admin-help-dialog__header h2 { font-size: 19px; }
.admin-help-dialog__description { margin: 0; color: var(--ink, #18323a); font-size: 14px; font-weight: 700; line-height: 1.7; }
.admin-help-steps { display: grid; gap: 9px; margin: 14px 0 18px; padding-left: 24px; color: var(--muted, #607377); font-size: 13px; line-height: 1.7; }
.admin-help-dialog__content > .button { justify-self: start; }

.report-detail-dialog__context:empty { display: none; }
.report-detail-dialog__context { margin-bottom: 12px; }
.report-detail-dialog__facts {
  display: grid;
  grid-template-columns: minmax(84px, 26%) minmax(0, 1fr);
  gap: 0 12px;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: 13px;
  background: #f8faf8;
}
.report-detail-dialog__facts > :nth-child(-n + 2) { border-top: 0; }
.report-detail-dialog__facts dt,
.report-detail-dialog__facts dd { min-width: 0; padding: 8px 0; border-top: 1px solid var(--line, #d9e3de); }
.report-detail-dialog__facts dt { color: var(--muted, #607377); font-size: 10px; font-weight: 750; line-height: 1.5; }
.report-detail-dialog__facts dd { margin: 0; color: var(--ink, #18323a); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-detail-dialog__map-section { margin: 13px 0 15px; }
.report-detail-dialog__map-section h3 { margin: 0 0 7px; color: var(--ink, #18323a); font-size: 13px; }
.report-detail-dialog__map { height: clamp(150px, 24svh, 220px); min-height: 150px; overflow: hidden; border: 1px solid var(--line, #d9e3de); border-radius: 12px; background: #edf2ed; }
.report-detail-dialog__map .leaflet-container { width: 100%; height: 100%; min-height: 0; background: #edf2ed; font: inherit; }
.report-detail-dialog__map .leaflet-control-attribution { font-size: 9px; }
.report-detail-dialog__map[hidden],
.report-detail-dialog__map-links[hidden] { display: none !important; }
.report-detail-dialog__map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.report-detail-dialog__map-links a { text-decoration: none; }
.report-detail-dialog__photo { display: grid; width: min(100%, 220px); aspect-ratio: 4 / 3; place-items: center; margin-top: 2px; padding: 7px; overflow: hidden; border-color: var(--line, #d9e3de); background: #f5f7f5; }
.report-detail-dialog__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.report-detail-dialog__photo span { color: var(--admin-link, #14584f); font-size: 12px; font-weight: 750; }
.report-detail-dialog__photo[hidden] { display: none !important; }
.report-detail-dialog__photo-status { margin: 6px 0; }
.report-detail-dialog__photo-help { margin: 6px 0 12px; }
.report-detail-dialog__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.report-detail-dialog__field { min-width: 0; }
.report-detail-dialog__field--wide { grid-column: 1 / -1; }
.report-detail-dialog__field label { margin: 0 0 5px; }
.report-detail-dialog__field .field-help { margin-top: 6px; }
.report-detail-dialog__print-inclusion { margin-top: 8px; }
.report-detail-dialog__print-inclusion[hidden] { display: none !important; }
.report-detail-dialog__print-inclusion .report-card__inclusion { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; line-height: 1.45; }
.report-detail-dialog__print-inclusion .report-card__inclusion input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; }
.report-detail-dialog__feedback,
.report-detail-dialog__actions { grid-column: 1 / -1; }
.report-detail-dialog__feedback { min-height: 1.5em; margin: 0; }
.report-detail-dialog__actions { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line, #d9e3de); }

.state-pill--success,
.state-pill--checking,
.state-pill--in-progress,
.state-pill--resolved { border-color: color-mix(in srgb, var(--admin-link) 24%, var(--line, #d9e3de)); background: color-mix(in srgb, var(--admin-link) 8%, var(--surface, #fff)); color: var(--admin-link); }
.state-pill--warning,
.state-pill--new { border-color: color-mix(in srgb, var(--admin-accent) 34%, var(--line, #d9e3de)); background: color-mix(in srgb, var(--admin-accent) 15%, var(--surface, #fff)); color: var(--ink, #18323a); }
.map-status.is-ready,
.map-attribution a,
.map-report-popup__link { color: var(--admin-link); }
.admin-page .map-status:empty { display: none; }
.admin-page .route-map-card > .map-status { margin: 0 0 7px; }
.admin-page .school-location-picker > .map-status { margin: 7px 0 0; }
.map-label { background: color-mix(in srgb, var(--admin-link) 8%, var(--surface, #fff)); color: var(--ink, #18323a); }
.map-legend__route { background: var(--admin-link); }
.map-legend__sign { background: var(--gold, var(--admin-accent)); }
.external-report__counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.route-layout > .route-list-block { padding: 16px; }
.route-layout > .route-list-block h3 { margin: 0 0 8px; font-size: 15px; }
.route-map.is-adding-points { cursor: url("/vendor/icons/map-pin.svg") 12 22, crosshair; }
.route-waypoint { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--green); font-weight: 750; box-shadow: 0 2px 6px rgb(20 40 68 / 38%); cursor: grab; }
.route-waypoint:active { cursor: grabbing; }
.route-list__visibility { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding-inline: 3px; color: var(--muted); font-size: 13px; cursor: pointer; }
.route-list__visibility input { accent-color: var(--green); }
.route-map-card { padding: 16px; }
.route-map { height: min(62vh, 560px); min-height: 360px; }
.route-map .leaflet-container { height: 100%; min-height: 360px; }
.route-editor-card { padding: 0; overflow: hidden; border-radius: 14px; }
.route-editor-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; color: var(--ink, #18323a); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.route-editor-card > summary::-webkit-details-marker { display: none; }
.route-editor-card > summary::after { content: "+"; color: var(--admin-link); font-size: 20px; line-height: 1; }
.route-editor-card[open] > summary::after { content: "−"; }
.route-editor-card > summary:focus-visible,
.settings-disclosure > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--admin-link) 32%, transparent); outline-offset: -3px; }
.route-editor-content { padding: 16px; border-top: 1px solid var(--line, #d9e3de); }
.route-editor-card__heading { margin-bottom: 12px; }
.route-editor-card__heading h3 { margin: 0; font-size: 15px; }
.district-form { padding: 12px; border-radius: 12px; background: var(--surface-soft, #edf3ef); }
.route-editor-card__heading .button { flex: 0 0 auto; }
.route-form { margin-top: 16px; }
.settings-panel { display: grid; gap: 10px; }
.participant-share-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; box-shadow: var(--admin-soft-shadow); }
.participant-share-entry__copy { min-width: 0; }
.participant-share-entry__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.participant-share-entry__heading h3 { margin: 0; font-size: 14px; }
.participant-share-entry__copy p { margin: 5px 0 0; color: var(--muted, #607377); font-size: 11px; line-height: 1.6; }
.participant-share-entry > .button { flex: 0 0 auto; }
.participant-share-entry [hidden] { display: none !important; }
.participant-share-sheet { --sheet-center-width: min(480px, calc(100vw - 32px)); --sheet-content-padding: 18px; }
.participant-share-dialog__header { display: flex; align-items: center; gap: 8px; }
.participant-share-dialog__header h2 { min-width: 0; flex: 1 1 auto; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.participant-share-dialog__header .button { flex: 0 0 auto; }
.participant-share-back { padding-inline: 9px; }
.participant-share-dialog__content { display: grid; align-content: start; gap: 12px; }
.participant-share-host [hidden] { display: none !important; }
.participant-share-dialog__content > .inline-feedback:empty { display: none; }
.participant-share-view { display: grid; min-width: 0; align-content: start; gap: 9px; }
.participant-share-view[hidden] { display: none !important; }
.participant-share-view-title { margin: 0 0 2px; color: var(--ink, #18323a); font-size: 16px; line-height: 1.4; }
.participant-share-privacy { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--line, #d9e3de); color: var(--muted, #607377); font-size: 11px; line-height: 1.6; }
.participant-share-row { display: flex; width: 100%; min-width: 0; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #d9e3de); border-radius: 11px; background: var(--surface, #fff); color: var(--ink, #18323a); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.participant-share-row__value { display: inline-flex; min-width: 0; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--admin-link); }
.participant-share-row__value .state-pill { white-space: nowrap; }
.participant-share-row--toggle { cursor: pointer; }
.participant-share-row--toggle input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--admin-link); }
.participant-share-row:disabled { cursor: not-allowed; opacity: .62; }
.participant-share-row--toggle:has(input:disabled) { cursor: not-allowed; opacity: .62; }
.participant-share-row--toggle:focus-within,
.participant-share-row:focus-visible,
.participant-share-back:focus-visible { outline: none; box-shadow: var(--admin-focus); }
@media (hover: hover) {
  .participant-share-row:hover:not(:disabled) { border-color: color-mix(in srgb, var(--admin-link) 42%, var(--line, #d9e3de)); background: color-mix(in srgb, var(--admin-link) 3%, #fff); }
}
.participant-share-selection-view { gap: 10px; }
.participant-share-selection-view > .field-help { margin: -3px 0 0; }
.participant-share-choices { display: grid; gap: 6px; margin: 0; padding: 0; }
.participant-share-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line, #d9e3de); border-radius: 10px; background: #fff; cursor: pointer; }
.participant-share-choice:has(input:checked) { border-color: color-mix(in srgb, var(--admin-link) 45%, var(--line, #d9e3de)); background: color-mix(in srgb, var(--admin-link) 5%, #fff); }
.participant-share-choice input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--admin-link); }
.participant-share-choice:focus-within { outline: none; box-shadow: var(--admin-focus); }
.participant-share-choice__copy { min-width: 0; }
.participant-share-choice__copy strong,
.participant-share-choice__copy small { display: block; overflow-wrap: anywhere; }
.participant-share-choice__copy strong { color: var(--ink, #18323a); font-size: 11px; line-height: 1.45; }
.participant-share-choice__copy small { margin-top: 2px; color: var(--muted, #607377); font-size: 10px; line-height: 1.45; }
.participant-share-link { display: grid; grid-template-columns: minmax(0, 1fr) 136px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line, #d9e3de); border-radius: 12px; background: #f8faf8; }
.participant-share-link[hidden] { display: none !important; }
.participant-share-link__copy { min-width: 0; }
.participant-share-link__copy label { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 750; }
.participant-share-link__copy input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line, #d9e3de); border-radius: 10px; background: #fff; color: var(--ink, #18323a); font: inherit; font-size: 11px; }
.participant-share-link__copy .field-help { margin: 6px 0 0; font-size: 10px; }
.participant-share-link .button-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.participant-share-link .button { min-width: 0; min-height: 40px; flex: 1 1 132px; padding-inline: 9px; font-size: 11px; }
.participant-share-link .invitation-qr__image { width: 132px; min-height: 132px; margin-bottom: 4px; }
.participant-share-link .invitation-qr__image img { width: 120px; height: 120px; }
.participant-share-link .invitation-qr figcaption { max-width: 136px; }
.invitation-only-help { margin: 0; padding: 0 15px 12px; color: var(--muted, #607377); font-size: 11px; line-height: 1.55; }
.participant-share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.participant-share-actions--overview { justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--line, #d9e3de); }
.participant-share-actions--overview > p { margin: 0; color: var(--muted, #607377); font-size: 11px; line-height: 1.45; }
.participant-share-actions--overview .button { width: 100%; min-height: 44px; }
.participant-share-actions--links { justify-content: flex-end; padding-top: 11px; border-top: 1px solid var(--line, #d9e3de); }
.participant-share-actions--links .button { min-height: 40px; }
.settings-disclosure { overflow: hidden; border: 1px solid var(--line, #d9e3de); border-radius: 14px; background: var(--surface, #fff); }
.settings-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 12px 15px; color: var(--ink, #18323a); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.settings-disclosure > summary::-webkit-details-marker { display: none; }
.settings-disclosure > summary::after { content: "+"; color: var(--admin-link); font-size: 20px; line-height: 1; }
.settings-disclosure[open] > summary::after { content: "−"; }
.settings-disclosure > summary > .state-pill { margin-left: auto; }
.account-email-settings__content { display: grid; gap: 10px; padding: 14px 15px 16px; border-top: 1px solid var(--line, #d9e3de); }
.account-email-settings__content > .field-help { margin: 0; }
.account-email-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.account-email-form label { grid-column: 1 / -1; color: var(--ink, #18323a); font-size: 12px; font-weight: 750; }
.account-email-form input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #d9e3de); border-radius: var(--radius-control, 12px); background: #fff; color: var(--ink, #18323a); font: inherit; font-size: 13px; }
.account-email-form input:focus-visible { outline: none; box-shadow: var(--admin-focus); }
.account-email-form .button { min-height: 44px; white-space: nowrap; }
.account-email-settings__content > .inline-feedback { margin: 0; }
.school-location-content { padding: 14px 15px 16px; border-top: 1px solid var(--line, #d9e3de); }
.school-location-intro { margin: 0 0 13px; color: var(--muted, #607377); font-size: 11px; line-height: 1.6; }
.school-location-search { display: grid; gap: 6px; }
.school-location-search label { margin: 0; color: var(--ink, #18323a); font-size: 12px; font-weight: 750; }
.school-location-search__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.school-location-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line, #d9e3de); border-radius: var(--radius-control, 12px); background: #fff; color: var(--ink, #18323a); font: inherit; font-size: 13px; }
.school-location-search__controls .button { min-width: 76px; }
.school-location-search .field-help { margin-top: 0; }
.school-location-results { margin-top: 9px; }
.school-location-results > .field-help { margin-top: 0; }
.school-location-suggestions { display: grid; max-height: 238px; gap: 5px; overflow: auto; margin: 5px 0 0; padding: 0; list-style: none; }
.school-location-suggestion__button { display: grid; width: 100%; gap: 3px; padding: 9px 11px; border: 1px solid var(--line, #d9e3de); border-radius: 10px; background: #fff; color: var(--ink, #18323a); cursor: pointer; font: inherit; text-align: left; }
.school-location-suggestion__button:hover,
.school-location-suggestion__button[aria-pressed="true"] { border-color: var(--admin-link); background: color-mix(in srgb, var(--admin-link) 7%, #fff); }
.school-location-suggestion__button strong { font-size: 12px; }
.school-location-suggestion__button span { color: var(--muted, #607377); font-size: 10px; line-height: 1.45; }
.school-location-suggestion__button:focus-visible { outline: none; box-shadow: var(--admin-focus); }
.school-location-source { margin: 8px 0 13px; color: var(--muted, #607377); font-size: 10px; line-height: 1.5; }
.school-location-source a { color: var(--admin-link); }
.school-location-picker { margin-top: 4px; }
.school-location-map { height: 310px; min-height: 250px; }
.school-location-map .leaflet-container { height: 100%; min-height: 250px; }
.school-location-picker__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.school-location-coordinates { margin: 0; color: var(--muted, #607377); font-size: 10px; line-height: 1.55; }
.school-location-pin { display: grid; place-items: start center; border: 0; background: transparent; }
.school-location-pin > span { position: relative; display: block; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--admin-link); box-shadow: 0 2px 7px rgb(20 40 68 / 35%); transform: rotate(-45deg); }
.school-location-pin > span::after { position: absolute; inset: 6px; border-radius: 50%; background: #fff; content: ""; }
.school-location-pin:active { cursor: grabbing; }
.school-location-actions { margin-top: 10px; }
.school-location-map-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--admin-accent) 50%, var(--line, #d9e3de)); border-radius: 12px; background: color-mix(in srgb, var(--admin-accent) 12%, #fff); }
.school-location-map-cta strong { display: block; color: var(--ink, #18323a); font-size: 12px; }
.school-location-map-cta p { margin: 3px 0 0; color: var(--muted, #607377); font-size: 10px; line-height: 1.5; }
.school-location-map-cta .button { flex: 0 0 auto; }
.invitation-card { margin: 0; border: 0; border-top: 1px solid var(--line, #d9e3de); border-radius: 0; background: transparent; box-shadow: none; }
.invitation-card__content { padding: 15px; }
.invitation-card__actions { padding: 13px 15px; }
.invitation-card__actions p { font-size: 11px; }
.year-tools-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-top: 1px solid var(--line, #d9e3de); }
.year-tools-content .year-card { padding: 14px; }
.year-tools-content .year-card > p { min-height: 0; font-size: 11px; }
.admin-page .button--primary { border-color: var(--admin-accent); background: var(--admin-accent); box-shadow: none; color: var(--ink, #18323a); }
.admin-page .button--primary:hover:not(:disabled) { border-color: var(--admin-accent); background: color-mix(in srgb, var(--admin-accent) 88%, var(--surface, #fff)); color: var(--ink, #18323a); }
.admin-page .button--secondary { border-color: var(--line, #d9e3de); background: var(--surface, #fff); color: var(--admin-link); }
.admin-page .button--secondary:hover:not(:disabled) { border-color: var(--admin-link); background: color-mix(in srgb, var(--admin-link) 9%, var(--surface, #fff)); }
.admin-page .button--quiet { color: var(--admin-link); }
.admin-footer { margin-top: 28px; padding-top: 12px; }
.admin-footer p { font-size: 10px; }

.admin-page .swal2-popup.swal2-toast.admin-notification {
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 22px 28px;
  border: 1px solid #aac9bd;
  border-radius: 20px;
  background: #f2faf6;
  box-shadow: var(--admin-shadow);
  color: #1b554b;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 750;
  line-height: 1.45;
  pointer-events: none;
}

@keyframes admin-notification-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes admin-notification-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.admin-page .swal2-popup.swal2-toast.admin-notification.admin-notification--fade-in {
  animation: admin-notification-fade-in 140ms ease-out both;
  transform: none;
}

.admin-page .swal2-popup.swal2-toast.admin-notification.admin-notification--fade-out {
  animation: admin-notification-fade-out 120ms ease-in both;
  transform: none;
}

.admin-page .swal2-popup.swal2-toast.admin-notification .swal2-icon {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .swal2-popup.swal2-toast.admin-notification.admin-notification--fade-in,
  .admin-page .swal2-popup.swal2-toast.admin-notification.admin-notification--fade-out {
    animation-duration: 1ms;
  }
}

.admin-page .swal2-popup.swal2-toast.admin-notification .swal2-title {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
}

.admin-page .swal2-popup.swal2-toast.admin-notification--error {
  border-color: #eccfc9;
  background: #fff5f2;
  color: #8a382e;
}

.admin-sheet--confirm .app-dialog__header { align-items: flex-start; }
.admin-sheet--confirm .app-dialog__header h2,
.photo-dialog h2 { margin: 6px 0 10px; font-size: 22px; }
.admin-sheet--confirm #confirm-message { margin: 0 0 21px; color: var(--muted, #607377); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.admin-sheet--confirm .button-row { justify-content: flex-end; }
.photo-dialog__heading { align-items: center; margin: 0; }
.photo-dialog__content > p { color: var(--muted, #607377); font-size: 12px; line-height: 1.6; }
.photo-dialog__body { min-height: 100px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line, #d9e3de); border-radius: 12px; background: #f5f7f5; }
.photo-dialog__body img { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; }
.photo-dialog__note { margin-bottom: 0; }

.admin-login-form {
  display: grid;
  max-width: 480px;
  gap: 9px;
  margin: 20px 0 12px;
}
.admin-login-form label { color: var(--ink, #18323a); font-size: 13px; font-weight: 750; }
.admin-login-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: var(--radius-control, 12px);
  color: var(--ink, #18323a);
  background: var(--surface, #fff);
  font: inherit;
}
.admin-login-form input:focus-visible { border-color: var(--green, #14584f); outline: 3px solid rgba(20, 88, 79, .16); }
.admin-login-form .button { justify-self: start; min-height: 46px; }
.admin-login-waiting { max-width: 520px; padding: 16px; margin: 18px 0 12px; border: 1px solid var(--line, #d9e3de); border-radius: var(--radius-control, 12px); background: #f7f8f5; }
.admin-login-waiting h3 { margin: 0; color: var(--ink, #18323a); font-size: 16px; }
.admin-login-waiting p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; }
.admin-login-waiting .admin-login-recipient { padding: 9px 11px; border-radius: 9px; color: var(--muted, #607377); background: #fff; overflow-wrap: anywhere; }
.admin-login-recipient strong { color: var(--ink, #18323a); }
.admin-login-waiting .button-row { margin-top: 12px; }
.admin-login-status { margin: 10px 0; font-size: 13px; line-height: 1.65; }
.admin-login-status.is-error { color: #a34538; }
.admin-login-status.is-success { color: #315847; }
.admin-login-status[data-kind="pending"] { color: #735a32; }
.admin-login-signup { margin: 16px 0; font-size: 13px; }
.admin-login-signup a { color: var(--green-strong, #0d443d); font-weight: 750; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .admin-login-form .button { width: 100%; }
  .admin-login-waiting .button-row { align-items: stretch; flex-direction: column; }
  .admin-login-waiting .button { width: 100%; }
  .report-empty__actions { align-items: stretch; flex-direction: column; }
  .report-empty__actions .button { width: 100%; }
  .admin-help-dialog__content { gap: 10px; }
}

@media (min-width: 1024px) {
  .route-layout { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.5fr); grid-template-rows: auto 1fr; }
  .route-layout > .route-map-card { grid-row: span 2; }
}

@media (max-width: 900px) {
  .admin-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding-top: 10px; padding-bottom: 0; }
  .admin-header__controls { display: contents; }
  .admin-header__controls .admin-nav { width: 100%; grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .admin-header__controls .admin-help-open { grid-column: 2; grid-row: 1; justify-self: end; }
  .admin-nav a { min-height: 42px; padding-inline: 10px; }
  .route-layout { grid-template-columns: 1fr; }
  .route-map-card { order: 1; }
  .route-editor-card { order: 2; }
  .route-layout > .route-list-block { order: 3; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .admin-container { padding-top: 24px; padding-bottom: 42px; }
  body.page-admin .container { width: min(calc(100% - 32px), var(--admin-max)); }
  .admin-context { align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
  .admin-context__workspace { min-width: 0; flex: 1 1 100%; }
  .admin-context__workspace h1 { overflow-wrap: anywhere; }
  .admin-context__actions { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .admin-context__actions .button { width: 100%; min-width: 0; justify-content: center; white-space: nowrap; }
  .admin-context h1 { font-size: 19px; }
  .admin-context__workspace strong { max-width: 56vw; }
  .admin-context .button { min-height: 36px; padding-inline: 6px; font-size: 10px; }
  .section-block { margin-top: 20px; scroll-margin-top: 92px; }
  .section-heading h2 { font-size: 20px; }
  .route-editor-card { padding: 0; }
  .route-map { height: min(62vh, 520px); }
  .route-map .leaflet-container { height: 100%; }
  .school-location-map { height: min(42vh, 360px); min-height: 250px; }
  .report-card__summary { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 11px 12px; }
  .report-card__summary-main { grid-column: 1; grid-row: 1 / span 2; }
  .report-card__summary-title { font-size: 13px; }
  .report-card__summary > .state-pill { grid-column: 2; grid-row: 1; padding: 4px 7px; font-size: 9px; }
  .report-card__summary::after { grid-column: 2; grid-row: 2; content: "詳細 →"; font-size: 10px; text-align: right; }
  .report-card__footer { padding: 10px 12px; }
  .settings-panel { gap: 8px; }
  .participant-share-entry { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .participant-share-entry > .button { width: 100%; }
  .participant-share-entry .participant-share-entry__heading { justify-content: space-between; }
  .participant-share-sheet { --sheet-center-width: min(480px, calc(100vw - 16px)); --sheet-content-padding: 16px; }
  .participant-share-dialog__content { gap: 10px; }
  .participant-share-dialog__header h2 { font-size: 16px; }
  .participant-share-row { min-height: 48px; padding-inline: 11px; }
  .participant-share-link { grid-template-columns: 1fr; }
  .participant-share-link .invitation-qr { justify-self: center; }
  .participant-share-actions--links { width: 100%; }
  .participant-share-actions--links .button { flex: 1 1 140px; }
  .settings-disclosure > summary { min-height: 50px; padding: 11px 12px; }
  .account-email-settings__content { padding: 12px; }
  .account-email-form { grid-template-columns: 1fr; }
  .account-email-form .button { width: 100%; }
  .school-location-content { padding: 12px; }
  .school-location-map-cta { align-items: flex-start; flex-direction: column; }
  .school-location-map-cta .button { width: 100%; }
  .year-tools-content { grid-template-columns: 1fr; padding: 10px; }
  .page-intro { align-items: stretch; flex-direction: column; gap: 16px; }
  .page-intro h1 { font-size: 29px; }
  .page-intro__description { font-size: 13px; }
  .workspace-chip { min-width: 0; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 11px 13px; }
  .workspace-chip__label { grid-column: 1 / -1; }
  .workspace-chip strong { max-width: calc(100vw - 150px); }
  .workspace-chip__year { justify-self: end; }
  .section-block { margin-top: 42px; scroll-margin-top: 94px; }
  .section-heading { align-items: flex-start; }
  .section-heading__aside { padding-top: 8px; text-align: right; }
  .today-grid { gap: 8px; }
  .today-card { min-height: 126px; gap: 6px; padding: 13px 11px; border-radius: 16px; }
  .today-card__label { min-height: 32px; font-size: 10px; line-height: 1.45; }
  .today-card__count { font-size: 29px; }
  .today-card > span:last-child { font-size: 9px; line-height: 1.45; }
  .today-followups { padding: 16px; }
  .today-followups__heading { align-items: flex-start; }
  .today-followups__heading .text-link { font-size: 10px; }
  .task-list__item { gap: 8px; }
  .task-list__link { font-size: 10px; }
  .sample-callout { padding: 14px; }
  .invitation-card__intro { padding: 17px 16px 12px; }
  .invitation-card__content { grid-template-columns: 1fr; gap: 16px; padding: 0 16px 17px; }
  .invitation-card__actions { align-items: flex-start; flex-direction: column; padding: 15px 16px; }
  .invitation-card__actions .button-row { width: 100%; }
  .invitation-card__actions .button { flex: 1; }
  .invitation-qr { justify-self: start; }
  .route-map-card,
  .route-editor-card { padding: 15px; }
  .route-map-card__heading { align-items: flex-start; flex-direction: column; }
  .route-map { min-height: 300px; }
  .route-map .leaflet-container { min-height: 300px; }
  .report-toolbar { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .report-filter--search { grid-column: 1 / -1; }
  .report-filters-dialog .report-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .report-filters-dialog .report-filter--search { grid-column: auto; }
  .report-detail-dialog__form { grid-template-columns: 1fr; }
  .report-detail-dialog__map { height: min(22svh, 185px); min-height: 145px; }
  .report-detail-dialog__map-links a { flex: 1 1 135px; justify-content: center; }
  .report-detail-dialog__photo { width: min(100%, 200px); }
  .report-card__footer { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
  .report-builder-grid { grid-template-columns: 1fr; }
  .report-settings { padding: 15px; }
  .report-preview-wrap { padding: 8px; }
  .external-report { min-height: 650px; padding: 22px 19px; }
  .external-report__header h2 { font-size: 21px; }
  .external-report__facts { grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
  .external-report__counts { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .external-report__counts div { padding: 8px 4px; }
  .external-report__counts span { font-size: 8px; }
  .external-report__counts strong { font-size: 17px; }
  .open-items-panel { padding: 15px; }
  .open-items-panel__heading { align-items: flex-start; }
  .open-item { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .open-item__due { white-space: normal; }
  .year-grid { grid-template-columns: 1fr; }
  .year-card:last-child { grid-column: auto; }
  .year-card { padding: 16px; }
  .year-card > p { min-height: 0; }
  .admin-footer { align-items: flex-start; flex-direction: column; margin-top: 38px; }
  .admin-page { --sheet-content-padding: 16px; }
}

@media (max-width: 390px) {
  .admin-nav a { padding-inline: 8px; font-size: 11px; }
  .today-card { padding-inline: 9px; }
  .field-with-action { grid-template-columns: 1fr; }
  .field-with-action .button { justify-self: start; }
  .report-toolbar { grid-template-columns: 1fr; }
  .report-filter--search { grid-column: auto; }
  .report-filters-dialog .report-toolbar { grid-template-columns: 1fr; }
  .billing-notice { align-items: stretch; flex-direction: column; }
  .billing-notice .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 11mm; }
  html, body { overflow: visible !important; }
  .app-dialog,
  .admin-sheet-host,
  .swal2-container { display: none !important; }
  body.printing-report #admin-app[hidden],
  body.printing-archive #admin-app[hidden],
  body:not(.printing-report):not(.printing-archive) #admin-app[hidden] { display: none !important; }
  html, body { min-width: 0 !important; margin: 0 !important; background: #fff !important; color: #18323a !important; }
  body.printing-report { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-report .admin-header,
  body.printing-report #main-content > :not(#admin-app),
  body.printing-report #admin-app > :not(#report-builder),
  body.printing-report #report-builder > :not(.report-builder-grid),
  body.printing-report .report-builder-grid > :not(.report-preview-column),
  body.printing-report .report-preview-column > :not(#report-preview-wrap),
  body.printing-report dialog { display: none !important; }
  body.printing-report #main-content,
  body.printing-report #admin-app,
  body.printing-report #report-builder,
  body.printing-report .report-builder-grid,
  body.printing-report .report-preview-column,
  body.printing-report #report-preview-wrap { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; box-shadow: none !important; }
  body.printing-report #report-preview-wrap { border-radius: 0 !important; }
  body.printing-report #report-preview { display: flex !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  body.printing-report .external-report__facts div,
  body.printing-report .external-report__counts div { break-inside: avoid; }
  body.printing-report .external-report__items li { break-inside: avoid; }
  body.printing-report .external-report__footer { margin-top: 18mm; }
  body.printing-report .external-report__items .empty-message { display: none !important; }
  .report-detail-dialog__map-section,
  .report-detail-dialog__photo,
  .report-detail-dialog__photo-status,
  .report-detail-dialog__photo-help { display: none !important; }
  body.printing-archive .admin-header,
  body.printing-archive #main-content > :not(#archive-print-message) { display: none !important; }
  body.printing-archive #main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
  body.printing-archive #archive-print-message { display: block !important; }
  body.printing-plan-readonly .admin-header,
  body.printing-plan-readonly #main-content > :not(#plan-print-blocked-message),
  body.plan-readonly .admin-header,
  body.plan-readonly #main-content > :not(#plan-print-blocked-message),
  body.printing-guarded .admin-header,
  body.printing-guarded #main-content > :not(#print-guarded-message) { display: none !important; }
  body.printing-plan-readonly #plan-print-blocked-message,
  body.plan-readonly #plan-print-blocked-message,
  body.printing-guarded #print-guarded-message { display: block !important; max-width: 175mm; margin: 20mm auto 0; color: #18323a; font-size: 15pt; line-height: 1.6; }
}

.district-label-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 16px;
}
.district-label-setting__copy h3 { margin: 0 0 3px; font-size: 14px; }
.district-label-setting__copy p,
.district-label-setting__current p { margin: 0; color: var(--muted, #607377); font-size: 12px; line-height: 1.55; }

.billing-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d4b36c;
  border-radius: 14px;
  background: #fff8e9;
}
.billing-notice[hidden] { display: none !important; }
.billing-notice__copy { min-width: 0; }
.billing-notice__copy strong { display: block; color: #543d13; font-size: 13px; }
.billing-notice__copy p { margin: 3px 0 0; color: #69552b; font-size: 12px; line-height: 1.55; }
.billing-notice .button { flex: 0 0 auto; }
.billing-dialog { color: var(--ink, #18323a); font: inherit; }
.billing-dialog__content { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.billing-dialog__description { margin: 0; color: var(--muted, #607377); line-height: 1.65; }
.billing-dialog__facts { display: grid; gap: 8px; margin: 16px 0; }
.billing-dialog__facts > div { display: grid; grid-template-columns: minmax(88px, .55fr) minmax(0, 1fr); gap: 12px; padding: 11px 12px; border: 1px solid var(--line, #d9e3de); border-radius: 11px; background: #fff; }
.billing-dialog__facts dt { color: var(--muted, #607377); font-size: 12px; }
.billing-dialog__facts dd { margin: 0; color: var(--ink, #18323a); font-size: 13px; font-weight: 750; }
.billing-dialog__actions { align-items: stretch; }
.billing-dialog__actions .button { min-height: 46px; }
#billing-checkout[hidden] { display: none !important; }
#billing-checkout:not([hidden]) { width: 100%; }
.billing-dialog__content > #billing-checkout-help { margin: 8px 0 0; }
.plan-lock-icon { width: 1em; height: 1em; margin-inline-start: .38em; vertical-align: -.16em; flex: none; }
.plan-locked-action { cursor: pointer !important; }
.plan-locked-action:focus-visible { outline: 3px solid #5a88ad; outline-offset: 2px; }
.plan-locked-field { cursor: pointer; }
.plan-locked-field:focus-visible { outline: 3px solid #5a88ad; outline-offset: 2px; }
.district-label-setting__current { display: flex; align-items: center; gap: 12px; }
.district-label-setting__current strong { color: var(--ink, #18323a); }
.district-label-setting__note { grid-column: 1 / -1; margin: 0; }
.district-label-options { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.district-label-options legend { margin-bottom: 8px; color: var(--muted, #607377); font-size: 12px; font-weight: 700; }
.district-label-options__list { display: grid; gap: 7px; }
.district-label-options__list label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line, #d9e3de);
  border-radius: 11px;
  background: var(--surface, #fff);
  color: var(--ink, #18323a);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.district-label-options__list label:has(input:checked) {
  border-color: var(--admin-link, #57798b);
  background: color-mix(in srgb, var(--admin-link, #57798b) 8%, #fff);
}
.district-label-options__list input { width: 18px; height: 18px; margin: 0; accent-color: var(--admin-link, #57798b); }
.district-label-options__list label:focus-within { box-shadow: var(--admin-focus); }
.district-label-feedback { min-height: 1.5em; margin: 8px 0 0; }
.district-label-feedback:empty { min-height: 0; margin: 0; }
.district-label-setting .button { flex: 0 0 auto; }

@media (max-width: 680px) {
  .district-label-setting { grid-template-columns: 1fr; gap: 8px; padding: 13px 14px; }
  .district-label-setting__current { justify-content: space-between; }
  .district-label-setting__note { grid-column: auto; }
  .district-label-options__list label { min-height: 48px; }
  .app-dialog__actions .button { min-width: min(42vw, 160px); min-height: 44px; }
  .billing-dialog__facts > div { grid-template-columns: 1fr; gap: 3px; }
}
