.tof-app {
  --theme: #194b36;
  --paper: #f6f2e8;
  --ink: #15211d;
  --line: #dad5c8;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: left;
  letter-spacing: 0;
}
.tof-app * {
  box-sizing: border-box;
}
.tof-app [hidden],
.tof-map-dialog [hidden] {
  display: none !important;
}
.tof-app h1,
.tof-app h2,
.tof-app p {
  margin: 0;
  font-family: inherit;
}
.tof-app h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  margin: 24px 0 31px;
}
.tof-app h2 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}
.tof-app a {
  color: inherit;
  text-decoration: none;
}
.tof-app button,
.tof-app input,
.tof-app textarea,
.tof-app select {
  font: inherit;
  box-sizing: border-box;
}
.tof-app button,
.tof-app a,
.tof-app summary {
  touch-action: manipulation;
}
.tof-app button {
  cursor: pointer;
  box-shadow: none;
}
.tof-app :focus-visible,
.tof-map-dialog :focus-visible {
  outline: 3px solid #b65a0c;
  outline-offset: 3px;
}
.tof-app button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.tof-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.tof-public-body {
  margin: 0;
  background: #f6f2e8;
}
html:has(.tof-public-body) {
  margin-top: 0 !important;
}
.tof-public-body #wpadminbar {
  display: none !important;
}
.tof-header {
  background: var(--theme);
  color: white;
  min-height: 48px;
  padding-top: env(safe-area-inset-top);
}
.tof-header-inner {
  height: 48px;
  position: relative;
  max-width: 402px;
  margin: auto;
}
.tof-logo {
  position: absolute;
  width: 44px;
  height: 28px;
  overflow: hidden;
  left: calc(50% - 22px);
  top: 10px;
}
.tof-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tof-main {
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  flex: 1;
  padding: 0 16px 22px;
}
.tof-footer {
  background: var(--theme);
  color: white;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}
.tof-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eeeadf;
  min-height: 44px;
}
.tof-tabs > * {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #365344;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  padding: 4px;
}
.tof-tabs > [aria-pressed="true"],
.tof-tabs > [aria-current] {
  background: var(--theme);
  color: #fff;
}
.tof-instruction {
  font-size: 12px;
  line-height: 18px;
  padding: 3px 8px 0;
  white-space: nowrap;
}
.tof-legend {
  height: 41px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-size: 11px;
}
.tof-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tof-legend i {
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background: var(--state);
}
.tof-muted {
  color: #59655e;
}
.tof-map {
  width: calc(100% - 20px);
  aspect-ratio: 350/348;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f2f0df;
}
.tof-map > svg {
  display: block;
  width: 100%;
  height: 100%;
  font-family: inherit;
}
.tof-map-markers [role="button"] {
  cursor: pointer;
}
.tof-map-markers [role="button"]:focus {
  outline: none;
}
.tof-map-markers [role="button"]:focus-visible > rect {
  stroke: #b65a0c;
  stroke-width: 2;
}
.tof-map-markers text {
  pointer-events: none;
}
.tof-map-markers .is-muted {
  opacity: 0.3;
}
.tof-zoom {
  position: absolute;
  left: 8px;
  bottom: 22px;
  background: #fff !important;
  border: 1px solid #9ba99e;
  border-radius: 6px;
  color: #194b36;
  font-size: 11px !important;
  padding: 5px 8px;
  min-height: 30px;
}
.tof-attribution {
  position: absolute;
  left: 8px;
  bottom: 2px;
  font-size: 9px;
  color: #536653 !important;
}
.tof-card {
  background: #fff;
  border: 1px solid #e2ded3;
  border-radius: 14px;
  box-shadow: 0 3px 9px #1936230a;
}
.tof-detail {
  width: calc(100% - 20px);
  margin: 16px auto 0;
  padding: 14px 12px 18px;
}
.tof-detail-top {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 66px;
  padding-bottom: 12px;
}
.tof-parking-code {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #194b36;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.tof-detail-info {
  min-width: 0;
  flex: 1;
}
.tof-detail-info h2 {
  font-size: 13px;
  line-height: 1.5;
}
.tof-address {
  color: #748078;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 3px !important;
}
.tof-detail-status {
  text-align: center;
  flex-shrink: 0;
}
.tof-detail-status strong {
  font-size: 14px;
  display: block;
  color: #aeb5b0;
}
.tof-detail-status small {
  font-size: 10px;
  display: block;
  white-space: nowrap;
  margin-top: 3px;
}
.tof-route,
.tof-save {
  background: var(--theme) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tof-route {
  width: 100%;
}
.tof-footnote {
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  margin: 11px 0 0 !important;
}
.tof-notice {
  border: 2px solid #d34b3f;
  border-radius: 10px;
  background: #fff6f3;
  color: #9d2f28;
  padding: 9px 12px;
  margin: -17px 0 12px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.tof-notice strong {
  font-size: 14px;
}
.tof-notice p {
  white-space: pre-wrap;
  margin-top: 3px;
}
.tof-notice-preview {
  margin: 14px 0;
}
.tof-help {
  font-size: 12px;
  line-height: 1.7;
  color: #53605a;
  margin: 12px 0 !important;
}
.tof-public #tof-message:empty {
  display: none;
}
.tof-public #tof-message:not(:empty) {
  padding: 8px;
  border: 1px solid #d34b3f;
  background: #fff6f3;
  margin: 8px 0;
  font-size: 12px;
}
.tof-public #tof-shuttle {
  padding: 20px 10px;
}
.tof-timetable {
  display: block;
  margin: 16px 0;
}
.tof-timetable img {
  display: block;
  width: 100%;
  height: auto;
}
.tof-shuttle-empty {
  padding: 30px 0;
}
.tof-map-dialog {
  border: 0;
  border-radius: 16px;
  padding: 12px;
  max-width: 96vw;
  width: 680px;
  background: #f6f2e8;
  font: 14px/1.5 sans-serif;
}
.tof-map-dialog::backdrop {
  background: #0008;
}
.tof-map-dialog .tof-close {
  background: #194b36;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 8px;
  cursor: pointer;
}
.tof-map-scroll {
  overflow: auto;
  max-height: 70svh;
}
.tof-map-scroll .tof-map {
  width: 770px;
  height: 765.6px;
  max-width: none;
  margin: 0;
}
.tof-map-scroll .tof-zoom {
  display: none;
}
.tof-map-scroll .tof-attribution {
  font-size: 12px;
}
body.toplevel_page_tof-console #wpadminbar,
body.toplevel_page_tof-console #adminmenumain,
body.toplevel_page_tof-console #wpfooter {
  display: none;
}
body.toplevel_page_tof-console #wpcontent,
body.toplevel_page_tof-console #wpbody-content {
  margin: 0;
  padding: 0;
  float: none;
}
html:has(body.toplevel_page_tof-console) {
  padding-top: 0 !important;
}
body.toplevel_page_tof-console {
  background: #f6f2e8;
}
.tof-admin {
  --theme: #275a8a;
}
.tof-admin .tof-main {
  padding-bottom: 22px;
}
.tof-public-link {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 126px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 7px;
  color: var(--theme) !important;
  font-size: 14px;
  font-weight: 700;
}
.tof-admin-tabs {
  margin-top: 6px;
}
.tof-admin-back {
  left: 8px;
  right: auto;
}
.tof-admin-tabs > * {
  font-size: 12px;
}
.tof-admin h1 {
  margin: 17px 0 16px;
  text-align: left;
}
.tof-admin .tof-card {
  margin-bottom: 8px;
  padding: 12px;
  box-shadow: none;
}
.tof-admin .tof-status-form {
  min-height: 134px;
}
.tof-status-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px;
  gap: 7px;
  min-height: 56px;
}
.tof-status-top h2 {
  font-size: 13px;
}
.tof-status-top h2 span {
  display: inline-block;
  min-width: 26px;
}
.tof-save-wrap {
  text-align: right;
}
.tof-save-wrap .tof-save {
  width: 64px;
  min-height: 32px;
  margin-left: auto;
  padding: 4px;
}
.tof-updated {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  margin-top: 3px;
}
.tof-states {
  border: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tof-state {
  position: relative;
  cursor: pointer;
  min-height: 54px;
  text-align: center;
}
.tof-state input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 36px;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
}
.tof-state > span {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d1d8d3;
  background: #f6f7f5;
  border-radius: 7px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
}
.tof-state input:checked + span {
  background: var(--state);
  color: #fff;
  border-color: var(--state);
}
.tof-state input:focus-visible + span {
  outline: 3px solid #b65a0c;
  outline-offset: 2px;
}
.tof-state.is-published > span {
  border: 2px solid #c64940;
}
.tof-state small {
  display: block;
  min-height: 16px;
  font-size: 10px;
  margin-top: 2px;
  border-radius: 4px;
}
.tof-state.is-published small {
  color: #b63f37;
  background: #fcedea;
}
.tof-state.is-pending small {
  color: #955b19;
  background: #fff0da;
}
.tof-form-result {
  font-size: 11px;
  color: #9d2f28;
}
.tof-form-result:empty,
.tof-feedback:empty {
  display: none;
}
.tof-feedback:not(:empty) {
  padding: 9px;
  border: 1px solid var(--theme);
  margin-bottom: 12px;
  border-radius: 8px;
}
.tof-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tof-fields label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.tof-fields input:not([type="checkbox"]),
.tof-fields textarea,
.tof-fields select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 5px 0 0;
  background: #fff;
  color: #15211d;
  border: 1px solid #8c9c99;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px;
}
.tof-fields small {
  font-size: 11px;
  color: #5c6c65;
  font-weight: 400;
}
.tof-fields textarea {
  resize: vertical;
}
.tof-check {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
}
.tof-check input {
  flex-shrink: 0;
  margin-top: 3px;
}
.tof-media {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tof-media input {
  flex: 1;
  min-width: 0;
}
.tof-media button {
  padding: 7px;
  background: #fff;
  border: 1px solid #87998c;
  border-radius: 6px;
}
.tof-admin details > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 28px;
}
.tof-admin details[open] > summary {
  margin-bottom: 10px;
}
.tof-admin table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 11px;
  background: white;
}
.tof-admin th,
.tof-admin td {
  border: 0.5px solid #5a6170;
  padding: 8px 4px;
  overflow-wrap: anywhere;
  vertical-align: middle;
  text-align: left;
}
.tof-admin th {
  background: #eeeee7;
  font-weight: 700;
}
.tof-admin td details {
  font-size: 10px;
}
.tof-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.tof-pager a {
  padding: 8px;
}
.tof-wp-back {
  text-align: center;
  padding: 8px;
  font-size: 11px;
  color: #53605a !important;
}
.tof-table-scroll {
  overflow: auto;
}
.tof-table-scroll table {
  min-width: 500px;
}
.tof-admin .tof-status-form h2 {
  overflow-wrap: anywhere;
}
.tof-public h1 {
  margin-bottom: 18px;
  color: #194b36;
}
.tof-public .tof-tabs {
  padding: 0 3px;
  border: 0;
  border-radius: 16px;
  background: #e9e9dc;
  gap: 8px;
}
.tof-public .tof-tabs > * {
  min-height: 44px;
  font-size: 14px;
  border-radius: 12px;
}
.tof-public .tof-legend {
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  height: 38px;
}
.tof-public .tof-detail {
  margin-top: 8px;
  border-color: #cbd6cc;
  box-shadow: 0 4px 10px #1936231a;
}
.tof-public .tof-parking-code {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.tof-public .tof-detail-info h2 {
  font-size: 14px;
}
.tof-public .tof-detail-status strong {
  color: white !important;
  background: var(--status, #aeb5b0);
  padding: 3px 12px;
  border-radius: 18px;
}
.tof-public .tof-detail-status small {
  font-size: 11px;
  color: #52665c;
  margin-top: 6px;
}
.tof-public .tof-detail-top {
  gap: 9px;
}
.tof-public .tof-detail .tof-address {
  font-size: 12px;
}
.tof-public .tof-detail-info {
  min-width: 0;
}
.tof-public .tof-detail-status {
  min-width: 90px;
}
.tof-public .tof-footnote {
  font-size: 10px;
  color: #52665c;
}
.tof-public .tof-route {
  font-size: 14px;
}
.tof-public .tof-instruction {
  color: #52665c;
}
.tof-admin .tof-feedback {
  font-size: 12px;
}
body.toplevel_page_tof-console #wpbody-content > .update-nag {
  display: none;
}
body.toplevel_page_tof-console {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.toplevel_page_tof-console #wpbody {
  padding-top: 0 !important;
}
@media (max-width: 374px) {
  .tof-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tof-app h1 {
    font-size: 18px;
  }
  .tof-public .tof-tabs > * {
    font-size: 12px;
  }
  .tof-instruction {
    font-size: 10px;
    padding-left: 0;
  }
  .tof-public .tof-footnote {
    font-size: 11px;
    white-space: normal;
  }
  .tof-detail {
    padding-left: 9px;
    padding-right: 9px;
  }
  .tof-public .tof-detail-info h2 {
    font-size: 12px;
  }
  .tof-public .tof-detail .tof-address {
    font-size: 10px;
  }
  .tof-public .tof-detail-status small {
    font-size: 9px;
  }
  .tof-public .tof-detail-status {
    min-width: 76px;
  }
  .tof-public .tof-detail-status strong {
    padding: 3px 8px;
    font-size: 12px;
  }
  .tof-public .tof-detail-top {
    gap: 5px;
  }
  .tof-public .tof-parking-code {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .tof-admin .tof-card {
    padding: 10px;
  }
  .tof-states {
    gap: 8px;
  }
  .tof-state > span {
    font-size: 11px;
  }
  .tof-status-top {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
  .tof-public-link {
    width: 104px;
    font-size: 12px;
  }
  .tof-admin-tabs > * {
    font-size: 11px;
  }
}

.tof-fields input,
.tof-fields textarea,
.tof-fields select {
  font-weight: 400;
}
.tof-notice strong {
  color: #d34b3f;
}
.tof-notice p {
  color: #15211d;
}

/* Reserve one line below the address so save feedback does not resize cards. */
.tof-status-form .tof-form-result,
.tof-status-form .tof-form-result:empty {
  display: block;
  min-height: 16px;
  line-height: 16px;
  margin: 2px 0 0;
}
.tof-preview-label { margin: 18px 0 8px; font-size: 14px; }

/* Public refinements, 0.1.4. */
.tof-public .tof-footnote { text-align: left; white-space: normal; line-height: 1.6; }
.tof-public h1 + .tof-notice { margin-top: 10px; }
.tof-public .tof-legend { gap: 12px; flex-wrap: wrap; height: auto; min-height: 38px; }

.tof-public .tof-footnote + .tof-footnote { margin-top: 2px !important; }

.tof-admin .tof-map-label-row { border: 1px solid #c2cbd1; border-radius: 12px; background: #fff; padding: 14px; margin: 16px 0; box-shadow: 0 2px 6px #14334d10; }
.tof-admin .tof-map-label-row legend { font-size: 14px; font-weight: 700; color: #275a8a; padding: 0 7px; }

/* Keep an empty, subdued detail card until a parking marker is selected. */
.tof-public .tof-detail.is-empty {
  filter: grayscale(1);
  opacity: .52;
  box-shadow: none;
}
.tof-public .tof-detail.is-empty .tof-route {
  pointer-events: none;
  cursor: default;
}
