:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d7dee8;
  --paper: #f3f6f8;
  --panel: #ffffff;
  --surface-soft: #f8fafc;
  --green: #13805f;
  --green-deep: #0f5e49;
  --amber: #b65f12;
  --red: #c83d3d;
  --blue: #2563b8;
  --indigo: #4658a8;
  --form-check-size: 20px;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.11);
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 248, 0.96)),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui,
    sans-serif;
}

button,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(380px, 440px) minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  height: 100vh;
  min-height: 680px;
}

.top-nav {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 10px 18px;
  backdrop-filter: blur(18px);
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.top-brand-logo {
  display: block;
  width: min(180px, 48vw);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.top-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #13805f, #1f6fbf);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.top-brand strong,
.top-brand small {
  display: block;
}

.top-brand strong {
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.2;
}

.top-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.top-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
}

.account-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 11px;
}

.account-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-account-avatar {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.header-account-avatar img,
.account-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-account-avatar img,
.account-avatar img,
.profile-avatar img {
  border-radius: inherit;
}

.header-account-avatar [hidden],
.account-avatar [hidden],
.profile-avatar [hidden] {
  display: none;
}

.account-button.account-loading {
  min-width: 118px;
}

.account-button.account-loading #account-button-label {
  display: block;
  width: 52px;
  height: 0.92em;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
  color: transparent;
}

.profile-area {
  overflow: auto;
  background: #eef3f5;
  padding: 88px 28px 36px;
}

.profile-layout {
  display: grid;
  width: min(920px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.profile-hero,
.profile-activity {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #dff2eb;
  color: var(--green-deep);
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-identity h2,
.profile-identity span,
.profile-identity small {
  display: block;
}

.profile-identity h2 {
  font-size: 1.25rem;
}

.profile-identity span,
.profile-identity small {
  margin-top: 3px;
  color: var(--muted);
}

.profile-basic {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.profile-basic-item {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border: 1px solid #d8e5df;
  border-radius: 999px;
  background: #f6fbf8;
  color: #526171 !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
}

.profile-basic-item b {
  color: var(--green-deep);
  font-weight: 900;
}

.profile-intro {
  width: 100%;
  margin: 4px 0 0;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #fbfefd;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  padding: 10px 12px;
}

.profile-intro b {
  display: block;
  margin-bottom: 3px;
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.profile-intro.muted {
  color: var(--muted);
  background: #f8fafc;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.profile-stats button,
.profile-impact-card {
  display: grid;
  min-height: 82px;
  place-items: center;
  gap: 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.profile-stats strong {
  color: var(--green-deep);
  font-size: 1.35rem;
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-impact-card {
  border-color: #cfe5dc;
  background: linear-gradient(180deg, #f3fbf7, #fff);
}

.public-profile-area {
  background:
    radial-gradient(circle at top right, rgba(31, 111, 191, 0.08), transparent 32%),
    #eef3f5;
}

.public-profile-hero {
  overflow: hidden;
  position: relative;
}

.public-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  background: linear-gradient(135deg, #dff2eb, #dbeafe);
  pointer-events: none;
}

.public-profile-hero > * {
  position: relative;
  z-index: 1;
}

.public-profile-stats .profile-impact-card:first-child {
  border-color: #bfe4d5;
}

.profile-activity-list {
  display: grid;
  gap: 8px;
}

.profile-activity-list > button {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  background: #f8fafb;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.profile-activity-list strong,
.profile-activity-list small {
  display: block;
}

.profile-activity-list small {
  margin-top: 4px;
  color: var(--muted);
}

.profile-activity-list b {
  color: var(--blue);
}

.profile-logout-button {
  min-height: 44px;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 600px) {
  .profile-area {
    padding: 16px 12px calc(94px + env(safe-area-inset-bottom));
  }

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .profile-hero .tool-button {
    grid-column: 1 / -1;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-activity {
    padding: 14px;
  }
}

.account-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 8px;
  background: #eef2f4;
  padding: 4px;
}

.account-mode[hidden],
.account-form[hidden],
#account-name-field[hidden] {
  display: none;
}

.account-mode button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.account-mode button.active {
  background: #fff;
  color: var(--green-deep);
  box-shadow: var(--shadow-soft);
}

.account-intro,
.account-user-view p {
  color: #526171;
  line-height: 1.65;
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.area-notification-settings[hidden] {
  display: none;
}

.area-notification-form {
  display: grid;
  gap: 12px;
}

.area-notification-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.area-notification-options legend {
  padding: 0 5px;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
}

.area-notification-options .check-row {
  align-items: center;
  color: #415063;
  font-size: 0.8rem;
  font-weight: 800;
}

.password-rules {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.password-rules[hidden] {
  display: none;
}

.account-result {
  min-height: 20px;
  color: var(--red);
  font-size: 0.8rem;
}

.account-result.success {
  color: var(--green-deep);
}

.account-verification-sent {
  padding: 24px 4px 4px;
  text-align: center;
}

.account-verification-sent[hidden] {
  display: none;
}

.account-mail-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #e4f3ec;
  color: var(--green-deep);
}

.account-mail-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-verification-sent h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.account-verification-sent p {
  margin: 7px 0;
  color: #526171;
  line-height: 1.65;
}

.account-verification-sent strong {
  color: var(--ink);
  word-break: break-all;
}

.account-verification-sent .tool-button {
  width: 100%;
  margin-top: 18px;
}

.account-user-view {
  display: grid;
  gap: 18px;
}

.account-user-view[hidden] {
  display: none;
}

.account-user-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e4f3ec;
  color: var(--green-deep);
  font-weight: 900;
}

.account-user-summary strong,
.account-user-summary span {
  display: block;
}

.account-user-summary .account-avatar {
  display: grid;
  place-items: center;
  line-height: 1;
  text-align: center;
}

.account-user-summary div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-user-summary .account-role {
  display: inline-block;
  margin-top: 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 7px;
}

.account-user-summary .account-role.admin {
  background: #fff3df;
  color: var(--amber);
}

.account-user-summary .account-role[hidden],
.account-security[hidden],
.account-display-name-settings[hidden],
.account-username-settings[hidden],
.public-profile-settings[hidden] {
  display: none;
}

.account-setting-toggle,
.account-password-toggle {
  width: 100%;
  margin-top: 12px;
}

.account-security,
.account-display-name-settings,
.account-username-settings,
.public-profile-settings {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.account-avatar-control {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.account-avatar-button {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 4px;
}

.account-avatar-button .account-avatar {
  width: 48px;
  height: 48px;
}

.account-avatar-edit-mark {
  position: absolute;
  right: 0;
  bottom: 1px;
  display: grid !important;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
}

.account-avatar-edit-mark svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.avatar-edit-button,
.avatar-default-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px;
}

.avatar-default-button {
  color: var(--muted);
}

.avatar-result {
  margin-top: 8px;
}

#avatar-form[hidden] {
  display: none;
}

.account-security h3,
.account-display-name-settings h3,
.account-username-settings h3,
.public-profile-settings h3 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 1rem;
}

.password-change-form,
.display-name-change-form,
.username-change-form,
.public-profile-settings-form {
  display: grid;
  gap: 12px;
}

.radio-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.radio-fieldset legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 4px;
}

.radio-fieldset label {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 34px;
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  padding: 6px 10px;
}

.radio-fieldset input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-deep);
}

.privacy-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .privacy-radio-grid {
    grid-template-columns: 1fr;
  }

  .radio-fieldset label {
    flex: 1 1 140px;
    justify-content: center;
  }
}

.account-user-summary .account-username,
.profile-username {
  color: var(--green-deep);
  font-weight: 800;
}

.account-user-summary .account-username.not-set,
.profile-username.not-set {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 560px) {
  .account-button {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  #account-button-label {
    display: none;
  }
}

.notification-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.notification-button:hover,
.notification-button:focus-visible,
.notification-button[aria-expanded="true"] {
  border-color: rgba(37, 99, 184, 0.24);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 59, 92, 0.1);
  outline: none;
}

.header-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d73b2f;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0 4px;
  box-shadow: 0 8px 16px rgba(215, 59, 47, 0.22);
}

.header-notification-badge[hidden],
.notification-panel[hidden] {
  display: none;
}

.notification-panel {
  position: fixed;
  z-index: 1210;
  top: 68px;
  right: 70px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(600px, calc(100dvh - 90px));
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.notification-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f766e, #2563eb, #06c755);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e8eef5;
  padding: 18px 18px 15px;
}

.notification-panel-head strong,
.notification-panel-head span {
  display: block;
}

.notification-panel-head strong {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: 0;
}

.notification-panel-head span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
}

.notification-panel-head button {
  min-height: 32px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #1d4f91;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 10px;
}

.notification-panel-head button:hover,
.notification-panel-head button:focus-visible {
  border-color: rgba(37, 99, 184, 0.3);
  background: #eef6ff;
  outline: none;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 510px;
  overflow-y: auto;
  padding: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  width: 100%;
  align-items: start;
  gap: 11px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
  border-color: #cbd8e6;
  background: #fbfdff;
  box-shadow: 0 12px 24px rgba(31, 59, 92, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.notification-item.unread {
  border-color: rgba(19, 128, 95, 0.28);
  background: #f3fbf7;
}

.notification-item-icon,
.notification-empty-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #e8f5ef;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 950;
}

.notification-type-like .notification-item-icon {
  background: #fff1f2;
  color: #be123c;
}

.notification-type-reply .notification-item-icon {
  background: #eef6ff;
  color: #1d4f91;
}

.notification-type-area .notification-item-icon {
  background: #ecfdf5;
  color: #047857;
}

.notification-type-match .notification-item-icon {
  background: #fff7ed;
  color: #c2410c;
}

.notification-type-clue .notification-item-icon {
  background: #f5f3ff;
  color: #6d28d9;
}

.notification-item-body,
.notification-item-body strong,
.notification-item-body span,
.notification-item-body small {
  display: block;
}

.notification-item-body strong {
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.35;
}

.notification-item-body span {
  margin-top: 4px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.5;
}

.notification-item-body small {
  margin-top: 7px;
  color: #8291a5;
  font-size: 0.68rem;
  font-weight: 850;
}

.notification-empty,
.notification-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px dashed #cbd8e6;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  color: #475569;
  padding: 24px 18px;
  text-align: center;
}

.notification-empty {
  width: 100%;
  cursor: pointer;
}

.notification-empty:hover,
.notification-empty:focus-visible {
  border-color: rgba(37, 99, 184, 0.3);
  background: #f8fbff;
  outline: none;
}

.notification-empty strong,
.notification-empty-state strong {
  color: #1e293b;
  font-size: 0.96rem;
  font-weight: 950;
}

.notification-empty small,
.notification-empty-state small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .notification-panel {
    top: 62px;
    right: 12px;
    width: calc(100vw - 24px);
    border-radius: 12px;
  }

  .notification-panel-head {
    padding: 16px 14px 13px;
  }

  .notification-list {
    padding: 8px;
  }
}

.hamburger-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hamburger-button span {
  position: absolute;
  left: 11px;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #334155;
  transition: transform 0.26s ease, opacity 0.18s ease;
}

.hamburger-button span:nth-child(1) { top: 14px; }
.hamburger-button span:nth-child(2) { top: 21px; }
.hamburger-button span:nth-child(3) { top: 28px; }

.hamburger-button[aria-expanded="true"] {
  border-color: rgba(19, 128, 95, 0.45);
  background: #eef9f5;
  box-shadow: 0 0 0 3px rgba(19, 128, 95, 0.1);
}

.hamburger-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

.hamburger-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-menu {
  position: fixed;
  z-index: 1190;
  inset: 70px 0 0;
  display: grid;
  align-content: start;
  width: auto;
  height: calc(100dvh - 70px);
  min-height: calc(100dvh - 70px);
  max-height: calc(100dvh - 70px);
  gap: 12px;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.99)),
    #fff;
  box-shadow: none;
  overflow-y: auto;
  padding: 28px clamp(18px, 5vw, 56px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.28s ease, visibility 0.28s;
}

.top-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.top-menu::before {
  content: "メニュー";
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.top-menu[hidden] {
  display: none;
}

.top-menu button {
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-size: 1.06rem;
  font-weight: 900;
  padding: 0 18px;
  text-align: left;
}

.top-menu.is-open button {
  animation: top-menu-item-in 0.34s both;
}

.top-menu.is-open button:nth-of-type(2) { animation-delay: 0.035s; }
.top-menu.is-open button:nth-of-type(3) { animation-delay: 0.07s; }
.top-menu.is-open button:nth-of-type(4) { animation-delay: 0.105s; }
.top-menu.is-open button:nth-of-type(5) { animation-delay: 0.14s; }
.top-menu.is-open button:nth-of-type(6) { animation-delay: 0.175s; }
.top-menu.is-open button:nth-of-type(7) { animation-delay: 0.21s; }

@keyframes top-menu-item-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hamburger-button,
  .hamburger-button span,
  .top-menu {
    transition: none;
  }

  .top-menu.is-open button {
    animation: none;
  }
}

.top-menu button:hover {
  background: #f1f5f9;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-bottom-nav {
  z-index: 900;
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 700;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.94);
  padding: 18px 18px 20px;
  scrollbar-width: thin;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.sidebar > .brand {
  display: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #2c6fbb);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand p,
.notice span,
.stats span,
.report-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.notice {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff8ed;
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
}

.legal-notice {
  border-left-color: var(--blue);
}

.notice-button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid rgba(37, 99, 184, 0.22);
  border-radius: 7px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 10px;
}

.privacy-hint {
  border: 1px solid #f1d6a8;
  border-radius: 8px;
  background: #fff8ed;
  color: #8a4a12;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 9px 10px;
}

.image-upload-field {
  display: grid;
  gap: 7px;
}

.photo-picker-field {
  cursor: pointer;
}

.photo-picker-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.photo-picker-control {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(82, 98, 120, 0.34);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  padding: 12px 14px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.photo-picker-field:hover .photo-picker-control,
.photo-picker-field:focus-within .photo-picker-control {
  border-color: rgba(19, 128, 95, 0.38);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 128, 95, 0.1);
}

.photo-picker-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #e2f3ec;
}

.photo-picker-icon::before {
  content: "";
  width: 23px;
  height: 18px;
  border: 2px solid var(--green-deep);
  border-radius: 5px;
}

.photo-picker-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  background: #e2f3ec;
}

.photo-picker-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.photo-picker-text strong {
  color: var(--green-deep);
  font-size: 0.98rem;
  font-weight: 900;
}

.photo-picker-text small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-picker-field.has-file .photo-picker-control {
  border-style: solid;
  border-color: rgba(19, 128, 95, 0.28);
  background: #f1faf6;
}

.board-image-link {
  display: block;
  width: min(420px, 100%);
}

.board-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.reply-card .board-image-link {
  width: min(360px, 100%);
}

.report-card .board-image-link {
  width: min(360px, 100%);
  margin-top: 2px;
}

.popup-image-link {
  display: block;
  width: min(220px, 100%);
  margin: 8px 0 4px;
}

.popup-image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 15px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  font-size: 0.98rem;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 11px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 700;
}

.compact-label {
  margin-bottom: 12px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  width: var(--form-check-size);
  min-width: var(--form-check-size);
  max-width: var(--form-check-size);
  height: var(--form-check-size);
  min-height: var(--form-check-size);
  max-height: var(--form-check-size);
  flex: 0 0 var(--form-check-size);
  margin: 0;
  padding: 0;
  border-width: 1px;
  accent-color: var(--green-deep);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  box-shadow: 0 0 0 3px rgba(19, 128, 95, 0.08);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid rgba(37, 99, 184, 0.18);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.12);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  flex: 0 0 var(--form-check-size);
  margin-top: 1px;
}

.anonymous-toggle {
  margin-top: 7px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.anonymous-toggle input {
  accent-color: var(--green-deep);
}

input.anonymous-name {
  background: #f4f7f9;
  color: #64748b;
}

.tag-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.tag-field legend {
  width: 100%;
  color: #475467;
  font-size: 0.8rem;
  font-weight: 800;
}

.tag-field > label,
.tag-option-list label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  padding: 0 12px;
  font-size: 0.8rem;
  line-height: 1;
}

.tag-field > label input,
.tag-option-list input {
  width: var(--form-check-size);
  height: var(--form-check-size);
  flex: 0 0 var(--form-check-size);
  margin: 0;
  padding: 0;
}

.tag-picker-toggle {
  min-height: 38px;
  border: 1px dashed #98a9bb;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 0 13px;
  font-size: 0.8rem;
  font-weight: 900;
}

.tag-picker-toggle[aria-expanded="true"] {
  border-style: solid;
  border-color: rgba(37, 99, 184, 0.36);
  background: #edf4ff;
}

.tag-picker-panel {
  display: grid;
  width: 100%;
  flex: 1 0 100%;
  gap: 14px;
  margin-top: 2px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.tag-picker-panel[hidden] {
  display: none;
}

.tag-search-label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-search-label input {
  min-height: 40px;
}

.tag-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tag-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tag-group[hidden] {
  display: none;
}

.tag-group h3 {
  margin: 0;
  color: #344155;
  font-size: 0.78rem;
}

.tag-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-option-list label[hidden] {
  display: none;
}

.tag-search-empty {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.primary-button,
.tool-button,
.filter,
.board-filter,
.view-tab,
.icon-button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 38px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.primary-button {
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(19, 128, 95, 0.2);
}

.primary-button:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.tool-button,
.filter,
.board-filter,
.view-tab,
.icon-button {
  background: #eef2f4;
  color: #263340;
}

.tool-button:hover,
.filter:hover,
.board-filter:hover,
.view-tab:hover,
.icon-button:hover {
  border-color: #b8c4cf;
  background: #e3e9ed;
}

.icon-button {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 36px;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.icon-button.danger {
  color: var(--red);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.filter,
.board-filter {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.filter.active,
.board-filter.active,
.view-tab.active {
  background: #e4f3ec;
  color: var(--green-deep);
  border-color: #8fc5af;
}

.reports-panel,
.moderation-panel {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
}

.reports-panel {
  display: grid;
  min-height: 260px;
}

.recent-reports {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e5eaf0;
  padding-bottom: 14px;
}

.recent-reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recent-reports-heading h3 {
  margin: 0;
  color: #1f2937;
  font-size: 0.88rem;
}

.recent-reports-heading span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.recent-report-list {
  display: grid;
  gap: 5px;
}

.recent-report-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: #f5f8fb;
  color: #1f2937;
  padding: 9px 10px;
  text-align: left;
}

.recent-report-item:hover {
  background: #edf3f8;
}

.recent-report-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.recent-report-item span,
.recent-report-item strong,
.recent-report-item small {
  display: block;
  min-width: 0;
}

.recent-report-item strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-report-item small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-report-item b {
  color: var(--blue);
  font-size: 0.66rem;
}

.recent-report-empty {
  color: var(--muted);
  font-size: 0.76rem;
  padding: 8px 0;
}

.report-list {
  display: grid;
  gap: 9px;
  position: relative;
  z-index: 0;
}

.reports-panel .report-list {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.report-pagination {
  display: grid;
  grid-template-columns: 38px minmax(72px, auto) 38px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.report-pagination[hidden] {
  display: none;
}

.report-pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid #d8e0e9;
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.report-pagination button:disabled {
  cursor: default;
  opacity: 0.38;
}

.report-pagination span {
  color: #475467;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.report-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.report-card:hover {
  border-color: #b8c5d5;
  background: #fff;
}

.report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-title {
  font-weight: 800;
  line-height: 1.45;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.status.unverified {
  background: #fff3df;
  color: var(--amber);
}

.report-detail {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  padding: 4px 0;
}

.danger-link {
  color: var(--red);
}

.like-button {
  min-height: 34px;
  border: 1px solid #cbd5df;
  border-radius: 999px;
  background: #fff;
  color: #526171;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.like-button:hover {
  border-color: #e08d8d;
  color: #b83232;
  transform: translateY(-1px);
}

.like-button.active {
  border-color: #e6a0a0;
  background: #fff0f0;
  color: #b83232;
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.moderation-panel {
  min-height: 180px;
  margin-top: 2px;
}

.moderation-list {
  display: grid;
  gap: 9px;
}

.moderation-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(200, 61, 61, 0.18);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.status-select {
  width: auto;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.severity-badge,
.tag-badge,
.old-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.severity-低 {
  background: #e8f7ef;
  color: #0f6c50;
}

.severity-中 {
  background: #e8f1ff;
  color: #1f5fa8;
}

.severity-高 {
  background: #fff4df;
  color: #a75613;
}

.severity-緊急 {
  background: #ffe8e8;
  color: #a92f2f;
}

.tag-badge {
  background: #f1f5f9;
  color: #475467;
}

.old-badge {
  background: #f3e8ff;
  color: #7252a3;
}

.old-report {
  opacity: 0.78;
}

.hidden-report {
  border-left-color: #94a3b8;
  opacity: 0.68;
}

.hidden-status {
  background: #e5e7eb;
  color: #475467;
}

.content-area {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  z-index: 0;
  min-width: 0;
  overflow: hidden;
  background: #dbe3e0;
}

.view-tabs {
  position: absolute;
  z-index: 650;
  top: 18px;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 4px;
}

.view-tab {
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  font-weight: 800;
}

.mobile-bottom-nav {
  display: none;
}

.view-panel {
  display: none;
  width: 100%;
  height: 100%;
}

.view-panel.active {
  display: block;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
}

.leaflet-container {
  overflow: hidden;
}

.map-toolbar {
  position: absolute;
  z-index: 500;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.stats,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats {
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.tool-button {
  min-width: 58px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.stats {
  pointer-events: auto;
}

.map-pin {
  --marker-color: var(--red);
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 50% 9px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.2), transparent 19%),
    linear-gradient(145deg, var(--marker-color), color-mix(in srgb, var(--marker-color) 78%, #000000 22%));
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.28),
    0 0 0 5px var(--severity-color, rgba(255, 255, 255, 0)),
    inset 0 -8px 12px rgba(15, 23, 42, 0.22),
    0 14px 18px rgba(15, 23, 42, 0.38);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  isolation: isolate;
  transform: translateY(-12px) rotate(-45deg);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 4px 6px auto auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 15px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.24);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.map-pin-core {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 0.66rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  transform: rotate(45deg);
}

.map-pin-core svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.34));
}

.lost-marker .map-pin-core svg,
.missing-marker .map-pin-core svg,
.alert-marker .map-pin-core svg {
  width: 14px;
  height: 14px;
}

.map-pin:hover {
  transform: translateY(-15px) rotate(-45deg) scale(1.06);
  box-shadow:
    0 0 0 3px rgba(15, 23, 42, 0.32),
    0 0 0 5px var(--severity-color, rgba(255, 255, 255, 0)),
    inset 0 -8px 12px rgba(15, 23, 42, 0.22),
    0 18px 22px rgba(15, 23, 42, 0.45);
}

.map-overlay-marker {
  position: absolute;
  margin: -31px 0 0 -13px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  appearance: none;
  z-index: 5;
}

.map-overlay-marker:hover {
  transform: translateY(-15px) rotate(-45deg) scale(1.06);
}

.map-detail-popup {
  position: absolute;
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  max-width: 360px;
  padding: 15px 42px 15px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
  color: #111827;
  font-size: 0.86rem;
  line-height: 1.4;
  pointer-events: auto;
  transform: translate(-50%, -100%);
}

.map-detail-popup[hidden] {
  display: none;
}

.map-detail-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

.map-detail-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #5b6470;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.map-detail-popup-close:hover {
  color: #111827;
}

.map-detail-popup-body p {
  margin: 6px 0 0;
}

.map-detail-popup.is-actionable .map-detail-popup-body {
  cursor: pointer;
}

.map-detail-popup.is-actionable .map-detail-popup-body:hover .popup-title {
  color: var(--green-deep);
}

.map-detail-popup .popup-title {
  margin: 0 0 7px;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 900;
}


.category-marker {
  --marker-color: var(--red);
}


#map-view {
  position: relative;
}

.app-shell.unified-layout {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.unified-layout .content-area {
  grid-column: 1 / -1;
}

#map-view.active {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(19, 128, 95, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}

.suspicious-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.suspicious-layout .sidebar {
  position: static;
  z-index: auto;
  display: flex;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  height: auto;
  min-width: 0;
  max-height: none;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
}

.suspicious-layout .sidebar > .brand {
  display: none;
}

.suspicious-layout .notice {
  border: 1px solid #f4d5aa;
  border-left: 5px solid #e9a33d;
  background: #fff8ed;
  color: var(--ink);
  box-shadow: none;
}

.suspicious-layout .notice span {
  color: var(--muted);
}

.suspicious-layout .notice-button {
  border-color: rgba(37, 99, 184, 0.22);
  background: #edf4ff;
  color: var(--blue);
}

.suspicious-feed {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.mobile-report-trigger,
.mobile-composer-close {
  display: none;
}

.suspicious-composer .panel-heading h2 {
  margin-right: auto;
}

.suspicious-map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #dfe8ec;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

#map-view #map {
  width: 100%;
  height: 430px;
  min-height: 430px;
}

.suspicious-feed .reports-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.suspicious-feed .reports-panel .report-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.report-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(160px, 0.6fr));
  gap: 12px;
  align-items: end;
}

.report-tools .compact-label {
  margin-bottom: 0;
}

.suspicious-feed .reports-panel > .panel-heading,
.suspicious-feed .recent-reports,
.suspicious-feed .filters,
.suspicious-feed .report-list,
.suspicious-feed .report-pagination {
  width: 100%;
}

.suspicious-feed .reports-panel > .panel-heading {
  margin-top: 4px;
  border: 0;
  padding: 0;
}

.suspicious-feed .recent-reports {
  margin-bottom: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.map-address-search {
  position: absolute;
  z-index: 20;
  top: 14px;
  left: 14px;
  display: grid;
  width: min(390px, calc(100% - 28px));
  gap: 5px;
  transform: none;
}

.map-address-search-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  padding: 4px;
  backdrop-filter: blur(12px);
}

.map-address-search-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #526171;
}

.map-address-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-address-search-row input {
  height: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px 9px;
}

.map-address-search-row input:focus {
  background: #fff;
  box-shadow: none;
}

.map-address-search-row button {
  min-width: 56px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.map-address-search-row button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.map-address-results {
  display: grid;
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.map-address-results[hidden] {
  display: none;
}

.map-address-results button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  color: #253044;
  padding: 8px 11px;
  text-align: left;
}

.map-address-results button:last-child {
  border-bottom: 0;
}

.map-address-results button:hover {
  background: #f3f7fa;
}

.map-address-results span {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-address-results b {
  color: var(--blue);
}

.map-address-status {
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #526074;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 7px;
}

.map-address-status:empty {
  display: none;
}

.search-location-marker {
  --marker-color: #dc2626;
  --severity-color: rgba(220, 38, 38, 0.24);
}

.map-category-legend {
  position: absolute;
  z-index: 640;
  left: 14px;
  bottom: 28px;
  display: flex;
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
  gap: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  padding: 9px 11px;
  backdrop-filter: blur(12px);
}

.map-category-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #344155;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.legend-dot.voice { background: #d97706; }
.legend-dot.stalking { background: #7b4ab1; }
.legend-dot.vehicle { background: #326fbd; }
.legend-dot.camera { background: #c63c32; }
.legend-dot.other { background: #54616f; }

.leaflet-popup-content {
  margin: 12px;
}

.popup-title {
  margin-bottom: 6px;
  font-weight: 800;
}


.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #cfdbe6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #475467;
  padding: 24px 18px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ef;
  color: #0f6c50;
  font-weight: 900;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  line-height: 1.65;
}

.notification-list .empty-state {
  border: 0;
  background: #f8fafb;
  box-shadow: none;
}

.empty {
  border: 1px dashed #b8c4cf;
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.board-area {
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 184, 0.08), transparent 34%),
    #eef2f4;
  padding: 88px 28px 28px;
}

.contact-area {
  overflow: auto;
  background: #eef3f5;
  padding: 88px 28px 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}

.contact-intro,
.contact-form {
  display: grid;
  gap: 18px;
}

.contact-intro h2 {
  font-size: 1.65rem;
}

.contact-intro > p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.contact-guidance {
  display: grid;
  gap: 6px;
  border: 1px solid #f0c887;
  border-left: 5px solid #e39a2d;
  border-radius: 8px;
  background: #fff8ed;
  color: #744314;
  padding: 16px 18px;
}

.contact-guidance strong {
  color: #512d0c;
}

.contact-guidance p {
  margin: 0;
  line-height: 1.75;
}

.contact-consent {
  align-items: center;
  min-height: 28px;
  line-height: 1.45;
}

.contact-consent input {
  flex: 0 0 var(--form-check-size);
  margin: 0;
}

.contact-result:empty {
  display: none;
}

.contact-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  border: 1px solid rgba(20, 130, 102, 0.25);
  border-radius: 8px;
  background: #eefaf6;
  color: #116b54;
  padding: 12px 14px;
}

.contact-admin-item {
  align-items: start;
}

.contact-admin-message {
  margin: 8px 0;
  color: #344155;
  line-height: 1.65;
  white-space: pre-wrap;
}

.contact-email {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-area {
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(200, 61, 61, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}

.admin-layout {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.admin-hero {
  display: grid;
  gap: 10px;
}

.admin-hero h2 {
  color: var(--ink);
  font-size: 1.35rem;
}

.admin-hero p {
  color: #475467;
  line-height: 1.7;
}


.admin-hero-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.admin-history-button {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

.admin-history-group {
  display: grid;
  gap: 18px;
  scroll-margin-top: 96px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-history-group.is-highlighted {
  border-radius: 10px;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.14);
}

.admin-history-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
}


.admin-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-history-actions .tool-button {
  min-height: 38px;
  padding: 0 14px;
}

.admin-history-heading h2 {
  color: var(--ink);
  font-size: 1.18rem;
}

.admin-section .report-pagination {
  margin-top: 12px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

.admin-stat span,
.admin-stat small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-stat strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-item .report-title,
.admin-item .report-meta {
  min-width: 0;
}


.admin-device-button {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
}


.admin-device-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-device-controls label {
  display: grid;
  gap: 6px;
  color: #46556a;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-device-controls input,
.admin-device-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f9fbfe;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.admin-device-search-field {
  min-width: 0;
}

.admin-device-detail-list {
  gap: 14px;
}

.admin-device-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 16px;
}

.admin-device-card.is-blocked {
  border-left-color: #c83d3d;
  background: #fffafa;
}

.admin-device-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-device-card-head .report-meta {
  overflow-wrap: anywhere;
}

.admin-device-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-device-metrics span {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #526074;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px;
}

.admin-device-metrics b {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1;
}

.admin-device-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-device-details div {
  display: grid;
  gap: 4px;
}

.admin-device-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-device-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}


.admin-device-users {
  display: grid;
  gap: 8px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.admin-device-users > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-device-users p {
  margin: 0;
  color: #667085;
  font-weight: 800;
}

.admin-device-users ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-device-users li {
  display: grid;
  gap: 3px;
}

.admin-device-users strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.admin-device-users small {
  color: #667085;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-device-recent {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e6ebf1;
  padding-top: 12px;
}

.admin-device-recent > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-device-recent ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-device-recent li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.admin-device-recent strong,
.admin-device-recent span {
  display: block;
  min-width: 0;
}

.admin-device-recent strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-device-recent span {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-device-actions {
  display: flex;
  justify-content: flex-end;
}

.device-item .status {
  white-space: nowrap;
}

.admin-reply-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #e6ebf1;
  color: #526074;
  font-size: 0.88rem;
}

.flag-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.flag-reason-grid label {
  cursor: pointer;
}

.flag-reason-grid input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.flag-reason-grid span {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 10px;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #344155;
  font-weight: 800;
}

.flag-reason-grid input:checked + span {
  border-color: #d43d3d;
  background: #fff1f1;
  color: #b42323;
  box-shadow: 0 0 0 2px rgba(212, 61, 61, 0.12);
}

.danger-submit {
  background: #c93636;
}

.danger-submit:hover {
  background: #aa2929;
}

.missing-area {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(124, 77, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}


.alert-area {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}

.alert-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.alert-composer {
  align-self: start;
  position: static;
}

.alert-feed {
  display: grid;
  gap: 14px;
  align-self: start;
  align-content: start;
  min-width: 0;
}

.alert-map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #dfe8ec;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.alert-map-head {
  position: absolute;
  z-index: 500;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.alert-map-head > * {
  pointer-events: auto;
}

#alert-map {
  width: 100%;
  height: 430px;
}

.alert-tools {
  display: grid;
  gap: 12px;
}

.alert-tools .field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alert-type {
  border-radius: 999px;
  background: #e0f2f1;
  color: #0f766e;
  font-weight: 900;
  padding: 7px 11px;
}

.lost-area {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}

.missing-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.lost-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.missing-composer {
  align-self: start;
  position: static;
}

.lost-composer {
  align-self: start;
  position: static;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 10px;
}

.form-actions .primary-button:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

.missing-feed {
  display: grid;
  gap: 14px;
  align-self: start;
  align-content: start;
  min-width: 0;
}

.lost-feed {
  display: grid;
  gap: 14px;
  align-self: start;
  align-content: start;
  min-width: 0;
}

.missing-map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #dfe8ec;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.lost-map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #dfe8ec;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.missing-map-head {
  position: absolute;
  z-index: 500;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.lost-map-head {
  position: absolute;
  z-index: 500;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.missing-map-head .map-address-search,
.lost-map-head .map-address-search,
.alert-map-head .map-address-search {
  position: static;
  flex: 1 1 390px;
  max-width: 390px;
  width: min(390px, calc(100% - 28px));
  pointer-events: auto;
}

.missing-map-head .stats,
.lost-map-head .stats {
  flex: 0 0 auto;
}

.missing-map-head .tool-button {
  pointer-events: auto;
}

.lost-map-head .tool-button {
  pointer-events: auto;
}

#missing-map {
  width: 100%;
  height: 430px;
}

#lost-map {
  width: 100%;
  height: 430px;
}

.missing-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: end;
}

.lost-view-controls {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.lost-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: end;
}

.lost-tools .board-search,
.lost-type-filter-field,
.lost-location-filters label {
  min-width: 0;
}

.lost-location-filters {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
}

.lost-post-type-field {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
}

.lost-post-type-field legend {
  color: #475467;
  font-size: 0.8rem;
  font-weight: 800;
}

.lost-post-type-toggle {
  grid-template-columns: 1fr 1fr;
}

.lost-type-filter-field {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.lost-type-filter-field legend {
  color: #263449;
  font-size: 0.82rem;
  font-weight: 900;
}

.lost-type-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.lost-type-filter button {
  display: inline-grid;
  grid-template-columns: 28px max-content;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 60px;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(31, 59, 92, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.lost-type-filter button::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4f8fb;
  color: currentColor;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  content: "";
}

.lost-type-filter button[data-lost-type-filter="all"]::before {
  content: "◎";
}

.lost-type-filter button[data-lost-type-filter="lost"]::before {
  content: "?";
}

.lost-type-filter button[data-lost-type-filter="found"]::before {
  content: "⌕";
  font-size: 1.05rem;
}

.lost-type-filter button:hover {
  border-color: #b9c9da;
  box-shadow: 0 14px 30px rgba(31, 59, 92, 0.09);
}

.lost-type-filter button.active {
  border-color: rgba(16, 145, 91, 0.58);
  background: linear-gradient(135deg, #18b879 0%, #0f9a69 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(16, 145, 91, 0.24);
}

.lost-type-filter button.active::before {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}


@media (max-width: 640px) {
  .lost-type-filter {
    gap: 8px;
    min-height: 54px;
  }

  .lost-type-filter button {
    grid-template-columns: 22px max-content;
    gap: 6px;
    min-height: 52px;
    padding-inline: 6px;
    font-size: 0.82rem;
  }

  .lost-type-filter button::before {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .lost-type-filter button[data-lost-type-filter="found"]::before {
    font-size: 0.92rem;
  }
}

.missing-card {
  border-left-color: #7c4dff;
}

.lost-card {
  border-left-color: #b45309;
}

.missing-card.found-card {
  border-left-color: #13805f;
  opacity: 0.86;
}

.lost-card.returned-card {
  border-left-color: #13805f;
  opacity: 0.86;
}

.missing-status,
.missing-type {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1ebff;
  color: #6336d6;
  font-size: 0.75rem;
  font-weight: 800;
}

.lost-status,
.lost-type,
.lost-post-type {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff4df;
  color: #a75613;
  font-size: 0.75rem;
  font-weight: 800;
}

.lost-post-type {
  background: #e8f0fe;
  color: #1f5fbf;
}

.lost-post-type.found,
.lost-status.found {
  background: #e8f7ef;
  color: #0f6c50;
}

.missing-status.found {
  background: #e8f7ef;
  color: #0f6c50;
}

.lost-status.returned {
  background: #e8f7ef;
  color: #0f6c50;
}

.resolution-story {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid #cfe8dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3fbf7, #ffffff);
  padding: 12px 14px;
  color: #24364a;
}

.resolution-story-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #0f6c50;
  font-size: 0.86rem;
}

.resolution-story-head strong {
  font-size: 0.92rem;
}

.resolution-story-head span:not(.resolution-story-icon) {
  color: #667085;
  font-weight: 800;
}

.resolution-story-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #13805f;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.resolution-story p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.65;
}

.lost-match-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: auto;
  margin-top: 12px;
  border: 1px solid #cfe5da;
  border-radius: 8px;
  background: #f2fbf6;
  color: #0f6c50;
  padding: 11px 12px;
  text-align: left;
}

.lost-match-summary:hover {
  border-color: #8ac7a8;
  background: #e8f7ef;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.lost-match-summary span {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.lost-match-summary b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: #0f6c50;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.lost-match-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #cfe5da;
  border-radius: 8px;
  background: #f2fbf6;
  padding: 13px 14px;
}

.lost-match-filter-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lost-match-filter-header span {
  color: #0f6c50;
  font-size: 0.76rem;
  font-weight: 900;
}

.lost-match-filter-header strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.lost-match-filter-header small {
  color: #526074;
  font-size: 0.82rem;
  font-weight: 700;
}


.missing-contact {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  padding: 9px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.missing-marker,
.lost-marker {
  --marker-color: #7b4bd8;
}

.missing-marker.found,
.lost-marker.returned {
  --marker-color: #13805f !important;
}


.board-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.board-composer {
  align-self: start;
  position: sticky;
  top: var(--board-composer-sticky-top, 88px);
}

.board-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.board-feed {
  align-self: start;
  min-width: 0;
}

.board-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.board-search {
  min-width: min(100%, 260px);
}

.board-search span {
  color: #475467;
  font-size: 0.8rem;
  font-weight: 800;
}

.board-author-grid {
  align-items: start;
}

.board-author-grid > label {
  align-content: start;
}

.board-tag-field select {
  min-height: 44px;
}

.author-name-field {
  align-content: start;
}

.board-list {
  display: grid;
  gap: 12px;
}

.thread-card,
.board-post {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 15px;
}

.thread-card {
  text-align: left;
  width: 100%;
}

.thread-card:hover {
  border-color: #a8bacd;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.thread-card.own-board-item,
.thread-main.own-board-item,
.reply-card.own-board-item {
  border-color: rgba(19, 128, 95, 0.2);
  box-shadow:
    inset 3px 0 0 rgba(19, 128, 95, 0.5),
    var(--shadow-soft);
}

.thread-card.own-board-item {
  background:
    linear-gradient(90deg, rgba(232, 247, 239, 0.55), rgba(255, 255, 255, 0.97) 42%),
    #fff;
}

.thread-main.own-board-item,
.reply-card.own-board-item {
  background:
    linear-gradient(90deg, rgba(232, 247, 239, 0.58), rgba(255, 255, 255, 0.98) 38%),
    #fff;
}

.thread-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.thread-card-badges {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.reply-notice,
.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: #c63c32;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
}

.notification-badge {
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(198, 60, 50, 0.22);
}

.notification-badge[hidden] {
  display: none;
}

.view-tab,
.mobile-nav-item,
.top-menu [data-menu-view="board"] {
  position: relative;
}

.view-tab .notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
}

.mobile-nav-item .notification-badge {
  position: absolute;
  top: 3px;
  right: 3px;
}

.top-menu [data-menu-view="board"] .notification-badge {
  margin-left: auto;
}

.thread-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}

.thread-preview {
  color: #334155;
  line-height: 1.55;
}

.thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.board-post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.board-post h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.board-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.board-body {
  color: #334155;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.board-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
}

.board-tag.alert {
  background: #fff3df;
  color: var(--amber);
}

.board-tag.chat {
  background: #edf8f2;
  color: var(--green-deep);
}

.thread-detail {
  display: grid;
  gap: 12px;
}

.board-area.thread-open .board-layout {
  display: block;
  max-width: 1000px;
}

.board-area.thread-open .board-composer,
.board-area.thread-open .board-tools,
.board-area.thread-open .board-list {
  display: none;
}

.board-area.thread-open .board-feed {
  width: 100%;
}

.board-area.thread-open .thread-detail {
  width: 100%;
}

.board-area.thread-open .thread-detail-head {
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  padding-bottom: 12px;
}

.board-area.thread-open #back-to-threads {
  min-height: 42px;
  background: #fff;
  color: var(--green-deep);
  box-shadow: var(--shadow-soft);
}

.board-area.thread-open .thread-main {
  padding: 20px;
}

.board-area.thread-open .reply-card {
  padding: 16px 18px;
}

.board-area.thread-open .reply-form {
  margin-top: 8px;
  padding: 18px;
}

.thread-detail[hidden] {
  display: none;
}

.thread-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thread-main {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.thread-main h2 {
  font-size: 1.18rem;
  line-height: 1.45;
}

.reply-list {
  display: grid;
  gap: 10px;
}

.reply-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 13px;
}

.thread-main.notification-target,
.reply-card.notification-target,
.report-card.notification-target {
  border-color: rgba(19, 128, 95, 0.65);
  box-shadow: 0 0 0 4px rgba(19, 128, 95, 0.13), var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reply-number {
  color: var(--green-deep);
  font-weight: 900;
}

.reply-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.report-modal {
  width: min(680px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.report-modal::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.modal-shell {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f5;
  padding: 18px;
}

.modal-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.modal-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-grid div {
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.modal-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.modal-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.modal-detail {
  color: #334155;
  line-height: 1.7;
}

.policy-body section {
  display: grid;
  gap: 6px;
}

.policy-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.policy-body p {
  color: #334155;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resolution-story-modal {
  width: min(560px, calc(100vw - 32px));
}

.resolution-story-form-body textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.resolution-story-actions {
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    order: 2;
    height: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .content-area {
    order: 1;
    height: 58vh;
    min-height: 420px;
  }

  #map {
    min-height: 420px;
  }

  .map-address-search {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .map-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .board-area {
    min-height: 720px;
    padding: 82px 12px 18px;
  }

  .missing-area {
    min-height: 720px;
    padding: 82px 12px 18px;
  }

  
.alert-area {
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
  padding: 88px 28px 28px;
}

.alert-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.alert-composer {
  align-self: start;
  position: static;
}

.alert-feed {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.alert-map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #dfe8ec;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.alert-map-head {
  position: absolute;
  z-index: 500;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.alert-map-head > * {
  pointer-events: auto;
}

#alert-map {
  width: 100%;
  height: 430px;
}

.alert-tools {
  display: grid;
  gap: 12px;
}

.alert-tools .field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alert-type {
  border-radius: 999px;
  background: #e0f2f1;
  color: #0f766e;
  font-weight: 900;
  padding: 7px 11px;
}

.lost-area {
    min-height: 720px;
    padding: 82px 12px 18px;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

  .missing-layout {
    grid-template-columns: 1fr;
  }

  .lost-layout {
    grid-template-columns: 1fr;
  }

  .board-composer,
  .missing-composer,
  .lost-composer,
  .alert-composer {
    position: static;
  }

  .missing-tools,
  .lost-tools,
  .alert-tools,
  .report-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tag-groups {
    grid-template-columns: 1fr;
  }

  .flag-reason-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 12px;
  }

  .field-grid,
  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .view-tabs {
    left: 18px;
    transform: none;
  }

  .board-post-head,
  .board-tools,
  .missing-map-head,
  .lost-map-head,
  .alert-map-head,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }

  .stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* Modern application skin */
body {
  background: #e8eef3;
}

.app-shell {
  grid-template-columns: minmax(390px, 450px) minmax(0, 1fr);
  background: #e8eef3;
}

.sidebar {
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(27, 84, 83, 0.98), rgba(14, 37, 44, 0.99)),
    #10272d;
  padding: 22px;
}

.brand {
  color: #fff;
  min-height: 64px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  background: linear-gradient(135deg, #23a06f, #367ac9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

h1 {
  color: #fff;
  font-size: 1.38rem;
  font-weight: 900;
}

.brand p {
  color: rgba(232, 245, 242, 0.78);
}

.notice {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #f2aa4c;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.notice span {
  color: rgba(255, 255, 255, 0.78);
}

.sidebar .notice-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar .privacy-hint {
  border-color: rgba(242, 170, 76, 0.34);
  background: rgba(255, 248, 237, 0.1);
  color: rgba(255, 244, 226, 0.9);
}

.panel,
.report-card,
.thread-card,
.thread-main,
.reply-card,
.reply-form {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 34px rgba(15, 23, 42, 0.08);
}

.panel {
  padding: 16px;
}

.panel-heading {
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 11px;
}

.panel-heading h2 {
  color: #172033;
  font-size: 1.02rem;
  font-weight: 900;
}

label {
  color: #475467;
  font-size: 0.8rem;
  letter-spacing: 0;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea {
  border-color: #d7e0ea;
  background: #f8fafc;
  min-height: 42px;
}

textarea {
  line-height: 1.55;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):hover,
select:hover,
textarea:hover {
  border-color: #b9c8d9;
  background: #fff;
}

.primary-button {
  min-height: 44px;
  background: linear-gradient(135deg, #13805f, #1f6fbf);
  box-shadow: 0 14px 26px rgba(31, 111, 191, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, #0f6c50, #185b9d);
}

.icon-button,
.tool-button,
.filter,
.board-filter,
.view-tab {
  background: #f1f5f9;
  color: #263340;
}

.filter,
.board-filter {
  border-color: #e2e8f0;
  border-radius: 999px;
}

.filter.active,
.board-filter.active,
.view-tab.active {
  background: #123d3d;
  border-color: #123d3d;
  color: #fff;
}

.report-card {
  border-left: 4px solid #13805f;
  background: #fff;
}

.report-title,
.thread-title {
  color: #111827;
}

.status {
  background: #e8f1ff;
  color: #1f5fa8;
}

.status.unverified {
  background: #fff4df;
  color: #a75613;
}

.content-area {
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.82), rgba(224, 233, 238, 0.9)),
    #dfe8ec;
}

.view-tabs,
.stats,
.tool-button {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.view-tabs {
  padding: 5px;
}

.view-tab {
  min-width: 86px;
}

.stats strong {
  color: #111827;
  font-size: 1.08rem;
}

.map-pin {
  width: 28px;
  height: 28px;
}

.board-area {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(232, 238, 243, 0.9)),
    #edf2f6;
}

.thread-card {
  background: #fff;
  border-left: 4px solid #1f6fbf;
}

.thread-card:hover {
  transform: translateY(-1px);
}

.thread-main {
  border-left: 4px solid #13805f;
}

.reply-card {
  background: #fbfdff;
}

.board-tag {
  background: #e8f1ff;
  color: #1f5fa8;
}

.board-tag.alert {
  background: #fff4df;
  color: #a75613;
}

.board-tag.chat {
  background: #e8f7ef;
  color: #0f6c50;
}

@media (max-width: 860px) {
  .app-shell {
    background: #e8eef3;
  }

  .sidebar {
    background: #f7fafc;
    padding: 16px;
  }

  .brand h1 {
    color: #111827;
  }

  .brand p {
    color: var(--muted);
  }

  .notice {
    background: #fff8ed;
    color: var(--ink);
    border-color: #f4d5aa;
    border-left-color: #f2aa4c;
  }

  .notice span {
    color: var(--muted);
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px;
  }

  .view-tab {
    min-width: 78px;
    padding: 0 10px;
  }

  .board-layout,
  .missing-layout,
  .lost-layout,
  .alert-layout {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }

  .app-shell {
    display: flex;
    min-height: 100dvh;
    height: auto;
    flex-direction: column;
    grid-template-columns: none;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .content-area {
    order: 1;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .sidebar {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-top: 1px solid var(--line);
    background: #f7fafc;
    padding: 16px 16px calc(92px + env(safe-area-inset-bottom));
  }

  .brand h1 {
    color: #111827;
  }

  .brand p {
    color: var(--muted);
  }

  .brand-mark {
    box-shadow: var(--shadow-soft);
  }

  .notice {
    background: #fff8ed;
    color: var(--ink);
    border-color: #f4d5aa;
    border-left-color: #f2aa4c;
  }

  .notice span {
    color: var(--muted);
  }

  .sidebar .notice-button {
    border-color: rgba(37, 99, 184, 0.22);
    background: #edf4ff;
    color: var(--blue);
  }

  .sidebar .privacy-hint {
    border-color: #f1d6a8;
    background: #fff8ed;
    color: #8a4a12;
  }

  .view-tabs {
    display: none;
  }

  .view-panel {
    height: auto;
    min-height: 0;
  }

  #map-view.active {
    height: auto;
    min-height: 100dvh;
    padding: 18px 12px calc(96px + env(safe-area-inset-bottom));
  }

  .suspicious-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .suspicious-layout .sidebar {
    order: 2;
    padding: 0;
  }

  #map-view .suspicious-feed {
    order: 1;
    display: grid;
  }

  #map-view .suspicious-map-wrap {
    order: 1;
  }

  #map-view .mobile-report-trigger {
    order: 2;
  }

  #map-view .reports-panel {
    order: 3;
  }

  #map-view .suspicious-composer {
    order: 4;
  }

  .mobile-report-trigger {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--green-deep);
    box-shadow: var(--shadow-soft);
    color: #fff;
    font-weight: 900;
  }

  .mobile-report-trigger span {
    font-size: 1.2rem;
    line-height: 1;
  }

  .suspicious-composer {
    display: none;
  }

  .suspicious-composer.mobile-open {
    position: fixed;
    z-index: 1200;
    inset: 68px 0 0;
    display: grid;
    width: 100%;
    height: calc(100dvh - 68px);
    min-height: 0;
    max-height: calc(100dvh - 68px);
    align-content: start;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  }

  .suspicious-composer.mobile-open .mobile-composer-close {
    display: grid;
  }

  body.mobile-composer-active {
    overflow: hidden;
  }

  .suspicious-map-wrap,
  #map-view #map {
    height: 430px;
    min-height: 430px;
  }

  #map {
    height: 100%;
    min-height: 430px;
  }

  .map-toolbar {
    top: 12px;
    right: 12px;
    left: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .board-area,
  .missing-area,
  .lost-area,
  .alert-area,
  .admin-area {
    min-height: 100dvh;
    padding: 18px 12px 18px;
  }

  .board-layout,
  .missing-layout,
  .lost-layout,
  .alert-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .board-composer,
  .missing-composer,
  .lost-composer,
  .alert-composer {
    position: static;
  }

  .missing-tools,
  .lost-tools,
  .alert-tools {
    grid-template-columns: 1fr;
  }

  .missing-map-wrap,
  .lost-map-wrap,
  .alert-map-wrap {
    min-height: 380px;
  }

  #missing-map,
  #lost-map,
  #alert-map {
    height: 380px;
  }
  #missing-view .missing-feed,
  #lost-view .lost-feed,
  #alerts-view .alert-feed {
    display: contents;
  }

  #missing-view .missing-map-wrap,
  #lost-view .lost-map-wrap,
  #alerts-view .alert-map-wrap {
    order: 1;
  }

  #missing-view .missing-composer,
  #lost-view .lost-composer,
  #alerts-view .alert-composer {
    order: 2;
  }

  #missing-view .missing-tools,
  #lost-view .lost-view-controls,
  #lost-view .lost-tools,
  #alerts-view .alert-tools,
  #missing-view #missing-list,
  #lost-view #lost-list,
  #alerts-view #alert-list,
  #missing-view #missing-pagination,
  #lost-view #lost-pagination {
    order: 3;
  }


  .alert-tools .field-grid {
    grid-template-columns: 1fr;
  }

  .missing-map-head,
  .lost-map-head,
  .alert-map-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
  }

  .missing-map-head .map-address-search,
  .lost-map-head .map-address-search,
  .alert-map-head .map-address-search,
  .map-address-search {
    position: static;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  #map-view .map-address-search {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .map-address-search-row {
    grid-template-columns: 32px minmax(0, 1fr) 58px;
    gap: 2px;
    padding: 4px;
  }

  .map-address-search-icon {
    width: 32px;
    height: 32px;
  }

  .map-address-search-row input {
    height: 32px;
    min-height: 32px;
    padding: 3px 7px;
    font-size: 0.9rem;
  }

  .map-address-search-row button {
    min-width: 58px;
    height: 32px;
    min-height: 32px;
  }

  .missing-map-head .stats,
  .lost-map-head .stats {
    align-self: flex-start;
    max-width: calc(100% - 2px);
  }


  .reports-panel .report-list {
    max-height: 460px;
  }


  .admin-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-history-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-history-actions .tool-button {
    flex: 1;
  }

.admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-device-button {
    width: 100%;
  }

  .admin-device-controls {
    grid-template-columns: 1fr;
  }

  .admin-device-card-head,
  .admin-device-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-device-metrics,
  .admin-device-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-device-recent li {
    grid-template-columns: 1fr;
  }

  .contact-area {
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.1);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  }

  .mobile-nav-item {
    display: grid;
    min-width: 0;
    min-height: 58px;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #596579;
    font-size: 0.66rem;
    font-weight: 900;
  }

  .mobile-nav-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #eef2f7;
    color: #334155;
    line-height: 1;
  }

  .mobile-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-nav-icon svg circle {
    fill: none;
  }

  .map-icon {
    background: #e7f6ef;
    color: #13805f;
  }

  .missing-icon {
    background: #efeaff;
    color: #7c4dff;
  }

  .lost-icon {
    background: #fff4df;
    color: #b45309;
  }

  .board-icon {
    background: #e8f1ff;
    color: #1f6fbf;
  }

  .mobile-nav-item.active {
    color: #111827;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    color: #fff;
    transform: translateY(-1px);
  }

  .mobile-nav-item.active .map-icon {
    background: #13805f;
  }

  .mobile-nav-item.active .missing-icon {
    background: #7c4dff;
  }

  .mobile-nav-item.active .lost-icon {
    background: #b45309;
  }

  .mobile-nav-item.active .board-icon {
    background: #1f6fbf;
  }

  .mobile-nav-item.active .mobile-nav-icon {
    color: #fff;
  }

  .top-menu {
    inset: 70px 0 0;
    height: calc(100dvh - 70px);
    min-height: calc(100dvh - 70px);
    max-height: calc(100dvh - 70px);
    padding: 22px 18px calc(96px + env(safe-area-inset-bottom));
    overflow: auto;
  }

  .top-menu button {
    min-height: 62px;
    font-size: 1.08rem;
  }
}

@media (max-width: 640px) {
  .brand {
    min-height: auto;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  h1 {
    font-size: 1.18rem;
  }

  .panel,
  .thread-card,
  .thread-main,
  .reply-card,
  .reply-form {
    padding: 14px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .filters,
  .board-tools,
  .report-actions,
  .modal-actions {
    align-items: stretch;
  }

  .filter,
  .board-filter {
    flex: 1 1 auto;
  }

  .report-top,
  .thread-title-line,
  .thread-detail-head,
  .board-tools,

  .alert-tools .field-grid {
    grid-template-columns: 1fr;
  }

  .missing-map-head,
  .lost-map-head,
  .alert-map-head {
    flex-direction: column;
  }

  .report-actions {
    justify-content: flex-start;
  }

  .status-select {
    width: 100%;
  }

  .link-button {
    min-height: 34px;
  }

  .stats {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .tool-button,
  .missing-map-head .tool-button,
  .lost-map-head .tool-button {
    flex: 1 1 0;
  }

  .missing-map-head .stats,
  .lost-map-head .stats {
    width: auto;
    justify-content: flex-start;
  }

  .missing-map-head .map-address-search,
  .lost-map-head .map-address-search,
  .alert-map-head .map-address-search {
    width: 100%;
  }

  .modal-head,
  .modal-body {
    padding: 14px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .view-tabs {
    display: none;
  }

  .app-shell.unified-layout #map-view.active {
    height: auto;
    min-height: 100dvh;
  }

  #map-view #map {
    height: 390px;
    min-height: 390px;
  }

  .map-toolbar {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .board-area,
  .missing-area,
  .lost-area,
  .alert-area,
  .admin-area {
    padding: 14px 10px 14px;
  }

  .missing-map-wrap,
  .lost-map-wrap,
  .alert-map-wrap {
    min-height: 330px;
  }

  #missing-map,
  #lost-map,
  #alert-map {
    height: 330px;
  }


  .alert-tools .field-grid {
    grid-template-columns: 1fr;
  }

  .missing-map-head,
  .lost-map-head,
  .alert-map-head {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .map-address-search-row {
    grid-template-columns: 30px minmax(0, 1fr) 54px;
  }

  .map-address-search-row input {
    font-size: 0.84rem;
  }

  .map-address-search-row button {
    min-width: 54px;
    font-size: 0.78rem;
  }

  .report-modal {
    width: calc(100vw - 20px);
  }

  .reports-panel .report-list {
    max-height: 420px;
  }

  .mobile-bottom-nav {
    padding-right: 6px;
    padding-left: 6px;
  }

  .mobile-nav-item {
    min-height: 56px;
    font-size: 0.68rem;
  }

  .mobile-nav-icon {
    width: 30px;
    height: 30px;
  }

  .mobile-nav-icon svg {
    width: 19px;
    height: 19px;
  }

  .top-menu {
    inset: 68px 0 0;
    height: calc(100dvh - 68px);
    min-height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (min-width: 1200px) {
  .suspicious-layout,
  .missing-layout,
  .lost-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    max-width: 1440px;
  }

  .suspicious-map-wrap,
  .missing-map-wrap,
  .lost-map-wrap,
  .alert-map-wrap {
    min-height: 500px;
  }

  #map-view #map,
  #missing-map,
  #lost-map,
  #alert-map {
    height: 500px;
    min-height: 500px;
  }
}

@media (max-width: 520px) {
  .area-notification-options {
    grid-template-columns: 1fr;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.trust-author {
  color: #475467;
  font-size: 0.74rem;
  font-weight: 800;
}

.trust-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid #cfe5dc;
  border-radius: 999px;
  background: #eef9f3;
  color: #0f6b55;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
}

.trust-badge.posts {
  border-color: #d8e0e9;
  background: #f4f7fb;
  color: #526171;
}

.trust-badge.phone,
.trust-badge.adminVerified,
.trust-badge.supporter,
.trust-badge.facility {
  border-color: #c6d8f2;
  background: #edf4ff;
  color: var(--blue);
}

.trust-badge.adminVerified,
.trust-badge.facility {
  border-color: #f2d6a8;
  background: #fff7e8;
  color: #9a5a10;
}

.trust-badge.muted {
  border-color: #d8e0e9;
  background: #f8fafc;
  color: #667085;
}

.thread-stats .trust-badges {
  margin-top: 0;
}

.account-trust,
.profile-trust {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .trust-badge {
    min-height: 20px;
    font-size: 0.64rem;
    padding: 3px 7px;
  }
}


.post-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: #526171;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.post-author-label {
  color: #748094;
  font-size: 0.68rem;
}

.post-author-name {
  color: #334155;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-profile-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.public-profile-link:hover {
  color: #0f6c50;
}

.author-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 7px;
}

.author-impact-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid #d7e7df;
  border-radius: 999px;
  background: #f5fbf8;
  color: #536273;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 850;
}

.author-impact-pill strong {
  color: #0f6c50;
  font-size: 0.78rem;
}

.author-impact-pill span {
  white-space: nowrap;
}

.verified-mark {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1f6fbf;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(31, 111, 191, 0.22);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
}

.popup-title + .post-author-line,
.thread-card > .post-author-line,
.thread-main .post-author-line,
.reply-card .post-author-line {
  margin-bottom: 6px;
}

.thread-stats .post-author-line {
  margin: 0;
}

.trust-badges .verified-mark {
  margin-top: 2px;
}

@media (max-width: 560px) {
  .post-author-name {
    max-width: 170px;
  }
}

.account-verification-badges .trust-badge.verified-text {
  border-color: #cfe5dc;
  background: #eef9f3;
  color: #0f6b55;
}

.admin-map-settings-form {
  display: grid;
  gap: 14px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-settings-grid label {
  display: grid;
  gap: 7px;
  color: #344155;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-settings-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  padding: 8px 10px;
}

.admin-settings-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-settings-actions .account-result {
  min-height: 0;
  margin: 0 auto 0 0;
}

.admin-settings-actions .primary-button {
  width: auto;
  min-width: 130px;
}

@media (max-width: 900px) {
  .admin-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-settings-actions .primary-button {
    width: 100%;
  }
}

/* Refined account settings modal */
.account-modal {
  width: min(760px, calc(100vw - 24px));
}

.account-modal .modal-shell {
  display: grid;
  max-height: min(860px, calc(100vh - 28px));
  grid-template-rows: auto minmax(0, 1fr);
}

.account-modal .modal-head {
  align-items: center;
  padding: 20px 22px;
}

.account-modal .modal-body {
  overflow: auto;
  padding: 18px 22px 22px;
}

.account-user-view {
  gap: 12px;
}

.account-user-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fffb, #fff);
  padding: 14px;
}

.account-avatar-control {
  min-width: 74px;
}

.account-avatar-button {
  width: 64px;
  height: 64px;
}

.account-avatar-button .account-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.05rem;
}

.account-avatar-edit-mark {
  right: 2px;
  bottom: 4px;
}

.account-user-main {
  min-width: 0;
}

.account-user-summary strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
}

.account-user-main > span:not(.account-role) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-summary .account-role,
.account-user-summary .trust-badge {
  width: fit-content;
}

.account-helper-text {
  margin: 2px 0 6px;
  border: 1px solid #e1ebf5;
  border-radius: 8px;
  background: #f8fbff;
  color: #526171;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.65;
  padding: 10px 12px;
}

.account-setting-toggle,
.account-password-toggle,
.account-delete-toggle,
.account-logout-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  margin-top: 0;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.3;
  padding: 11px 14px;
  text-align: left;
}

.account-setting-toggle::before,
.account-password-toggle::before,
.account-delete-toggle::before,
.account-logout-button::before {
  content: attr(data-icon);
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e8f5ef;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.account-setting-toggle::after,
.account-password-toggle::after,
.account-delete-toggle::after,
.account-logout-button::after {
  content: attr(data-desc) "  ›";
  grid-column: 2 / 4;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.account-setting-toggle[aria-expanded="true"],
.account-password-toggle[aria-expanded="true"],
.account-delete-toggle[aria-expanded="true"] {
  border-color: #b8dbcf;
  background: #f5fbf8;
}

.account-logout-button {
  margin-top: 8px;
  border-color: #f0d6d6;
  color: #9b2f2f;
}

.account-logout-button::before {
  background: #fff1f1;
  color: #b63c3c;
}

.account-security,
.account-display-name-settings,
.account-username-settings,
.public-profile-settings,
.area-notification-settings,
.account-delete-settings {
  gap: 12px;
  margin: -4px 0 4px 54px;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fbfefd;
  padding: 14px;
}

.account-security h3,
.account-display-name-settings h3,
.account-username-settings h3,
.public-profile-settings h3,
.area-notification-settings h3,
.account-delete-settings h3 {
  font-size: 0.98rem;
}

.avatar-result:empty,
.account-result:empty {
  min-height: 0;
}

@media (max-width: 560px) {
  .account-modal {
    width: calc(100vw - 18px);
  }

  .account-modal .modal-head {
    padding: 16px;
  }

  .account-modal .modal-body {
    padding: 14px;
  }

  .account-user-summary {
    align-items: flex-start;
    padding: 12px;
  }

  .account-security,
  .account-display-name-settings,
  .account-username-settings,
  .public-profile-settings,
  .area-notification-settings,
  .account-delete-settings {
    margin-left: 0;
  }

  .account-setting-toggle,
  .account-password-toggle,
  .account-delete-toggle,
  .account-logout-button {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .account-setting-toggle::before,
  .account-password-toggle::before,
  .account-delete-toggle::before,
  .account-logout-button::before {
    width: 34px;
    height: 34px;
  }

  .account-setting-toggle::after,
  .account-password-toggle::after,
  .account-delete-toggle::after,
  .account-logout-button::after {
    grid-column: 2;
  }
}

/* Compact opened account setting panels */
.account-setting-toggle[aria-expanded="true"]::after,
.account-password-toggle[aria-expanded="true"]::after,
.account-delete-toggle[aria-expanded="true"]::after {
  content: attr(data-desc);
}

.account-security,
.account-display-name-settings,
.account-username-settings,
.public-profile-settings,
.area-notification-settings,
.account-delete-settings {
  position: relative;
  margin-top: -2px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.account-security::before,
.account-display-name-settings::before,
.account-username-settings::before,
.public-profile-settings::before,
.area-notification-settings::before {
  content: "";
  position: absolute;
  left: -29px;
  top: -8px;
  width: 18px;
  height: 28px;
  border-left: 2px solid #cfe5dc;
  border-bottom: 2px solid #cfe5dc;
  border-bottom-left-radius: 8px;
}

.public-profile-settings > div,
.account-security > div,
.account-display-name-settings > div,
.account-username-settings > div,
.area-notification-settings > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e7f0eb;
  padding-bottom: 8px;
}

.public-profile-settings .modal-kicker,
.account-security .modal-kicker,
.account-display-name-settings .modal-kicker,
.account-username-settings .modal-kicker,
.area-notification-settings .modal-kicker {
  order: 2;
  white-space: nowrap;
}

.public-profile-settings-form,
.area-notification-form,
.password-change-form,
.display-name-change-form,
.username-change-form {
  gap: 10px;
}

.public-profile-settings .field-grid,
.area-notification-settings .field-grid {
  gap: 10px;
}

.public-profile-settings label,
.area-notification-settings label,
.account-security label,
.account-display-name-settings label,
.account-username-settings label {
  color: #46566b;
  font-size: 0.82rem;
  font-weight: 900;
}

.public-profile-settings input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.public-profile-settings select,
.public-profile-settings textarea,
.area-notification-settings input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.area-notification-settings select,
.account-security input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.account-display-name-settings input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.account-username-settings input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {
  min-height: 44px;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.public-profile-settings textarea {
  min-height: 98px;
  resize: vertical;
  line-height: 1.6;
}

.public-profile-settings .radio-fieldset,
.area-notification-settings .area-notification-options {
  gap: 8px;
  border-color: #d8e5df;
  background: #fff;
  padding: 10px;
}

.public-profile-settings .radio-fieldset legend,
.area-notification-settings .area-notification-options legend {
  color: #526171;
  font-size: 0.76rem;
}

.public-profile-settings .radio-fieldset label {
  flex: 0 1 auto;
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
  padding: 7px 10px;
}

.public-profile-settings .radio-fieldset input {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
}

.public-profile-settings .privacy-radio-grid .radio-fieldset {
  align-content: flex-start;
}

.public-profile-settings .privacy-radio-grid .radio-fieldset label {
  flex: 1 1 94px;
  justify-content: center;
}

.public-profile-settings .password-rules,
.area-notification-settings .password-rules,
.account-security .password-rules,
.account-username-settings .password-rules {
  border: 1px solid #f0dfbf;
  border-radius: 8px;
  background: #fffaf0;
  color: #8a4a13;
  padding: 9px 10px;
}

.public-profile-settings .primary-button,
.area-notification-settings .primary-button,
.account-security .primary-button,
.account-display-name-settings .primary-button,
.account-username-settings .primary-button {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 8px;
  font-size: 0.96rem;
}

@media (max-width: 560px) {
  .account-security::before,
  .account-display-name-settings::before,
  .account-username-settings::before,
  .public-profile-settings::before,
  .area-notification-settings::before {
    display: none;
  }

  .public-profile-settings > div,
  .account-security > div,
  .account-display-name-settings > div,
  .account-username-settings > div,
  .area-notification-settings > div {
    display: block;
  }

  .public-profile-settings .radio-fieldset label {
    flex: 1 1 120px;
  }
}

/* Stable radio controls and aligned regional alert layout */
.radio-fieldset,
.radio-fieldset *,
.public-profile-settings .radio-fieldset,
.public-profile-settings .radio-fieldset * {
  box-sizing: border-box;
}

.radio-fieldset label,
.public-profile-settings .radio-fieldset label {
  transform: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  border-width: 1px;
  line-height: 1.35;
  vertical-align: middle;
}

.radio-fieldset label:hover,
.public-profile-settings .radio-fieldset label:hover {
  border-color: #b8c8d8;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px transparent;
}

.radio-fieldset label:has(input:checked),
.public-profile-settings .radio-fieldset label:has(input:checked) {
  border-color: #0f7a5c;
  background: #f1fbf6;
  color: #0f513f;
}

.radio-fieldset input[type="radio"],
.public-profile-settings .radio-fieldset input[type="radio"] {
  display: inline-block;
  width: var(--form-check-size);
  height: var(--form-check-size);
  min-width: var(--form-check-size);
  min-height: var(--form-check-size);
  flex: 0 0 var(--form-check-size);
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none !important;
  accent-color: var(--green-deep);
}

.radio-fieldset input[type="radio"]:hover,
.radio-fieldset input[type="radio"]:focus,
.public-profile-settings .radio-fieldset input[type="radio"]:hover,
.public-profile-settings .radio-fieldset input[type="radio"]:focus {
  background: transparent;
  box-shadow: none;
}

#alerts-view.alert-area {
  padding: 88px 28px 28px;
}

#alerts-view .alert-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

#alerts-view .alert-composer {
  width: 100%;
  align-self: start;
  position: static;
}

#alerts-view .alert-feed {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

#alerts-view .alert-map-wrap {
  width: 100%;
  min-height: 430px;
  border-radius: 8px;
}

#alerts-view #alert-map {
  width: 100%;
  height: 430px;
  min-height: 430px;
}

#alerts-view .alert-tools {
  display: grid;
  width: 100%;
  gap: 12px;
}

#alerts-view .alert-tools .field-grid {
  grid-template-columns: minmax(220px, 0.8fr) repeat(3, minmax(150px, 0.6fr));
  gap: 12px;
  align-items: end;
}

#alerts-view #alert-list,
#alerts-view #alert-pagination {
  width: 100%;
}

#alerts-view .report-card {
  width: 100%;
}

@media (min-width: 1200px) {
  #alerts-view .alert-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    max-width: 1440px;
  }

  #alerts-view .alert-map-wrap {
    min-height: 500px;
  }

  #alerts-view #alert-map {
    height: 500px;
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  #alerts-view .alert-layout {
    grid-template-columns: 1fr;
  }

  #alerts-view .alert-tools .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  #alerts-view.alert-area {
    min-height: 100dvh;
    padding: 18px 12px;
  }

  #alerts-view .alert-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #alerts-view .alert-tools .field-grid {
    grid-template-columns: 1fr;
  }

  #alerts-view .alert-map-wrap {
    min-height: 380px;
  }

  #alerts-view #alert-map {
    height: 380px;
    min-height: 380px;
  }
}

/* Prevent old sidebar layout from flashing before JS unifies the top page */
.app-shell.layout-preparing .sidebar {
  display: none !important;
}


html[data-initial-view]:not([data-initial-view="lost"]) .app-shell.layout-preparing #lost-view.active {
  display: none;
}

html[data-initial-view="missing"] .app-shell.layout-preparing #missing-view,
html[data-initial-view="alerts"] .app-shell.layout-preparing #alerts-view,
html[data-initial-view="board"] .app-shell.layout-preparing #board-view {
  display: block;
}

html[data-initial-view="map"] .app-shell.layout-preparing #map-view {
  display: grid;
}

html[data-initial-view]:not([data-initial-view="lost"]) .app-shell.layout-preparing .view-tab.active {
  background: transparent;
  color: #17263a;
  box-shadow: none;
  transform: none;
}

html[data-initial-view]:not([data-initial-view="lost"]) .app-shell.layout-preparing .view-tab.active::before,
html[data-initial-view]:not([data-initial-view="lost"]) .app-shell.layout-preparing .view-tab.active::after {
  display: none;
}

html[data-initial-view="map"] .app-shell.layout-preparing .view-tab[data-view="map"],
html[data-initial-view="missing"] .app-shell.layout-preparing .view-tab[data-view="missing"],
html[data-initial-view="lost"] .app-shell.layout-preparing .view-tab[data-view="lost"],
html[data-initial-view="alerts"] .app-shell.layout-preparing .view-tab[data-view="alerts"],
html[data-initial-view="board"] .app-shell.layout-preparing .view-tab[data-view="board"] {
  background: linear-gradient(180deg, #163154, #10233d);
  color: #fff;
  box-shadow: 0 13px 28px rgba(16, 35, 61, 0.28);
  transform: translateY(-1px);
}

html[data-initial-view="map"] .app-shell.layout-preparing .view-tab[data-view="map"] .view-tab-icon,
html[data-initial-view="missing"] .app-shell.layout-preparing .view-tab[data-view="missing"] .view-tab-icon,
html[data-initial-view="lost"] .app-shell.layout-preparing .view-tab[data-view="lost"] .view-tab-icon,
html[data-initial-view="alerts"] .app-shell.layout-preparing .view-tab[data-view="alerts"] .view-tab-icon,
html[data-initial-view="board"] .app-shell.layout-preparing .view-tab[data-view="board"] .view-tab-icon {
  color: #fff;
}

html[data-initial-view="map"] .app-shell.layout-preparing .view-tab[data-view="map"]::before,
html[data-initial-view="missing"] .app-shell.layout-preparing .view-tab[data-view="missing"]::before,
html[data-initial-view="lost"] .app-shell.layout-preparing .view-tab[data-view="lost"]::before,
html[data-initial-view="alerts"] .app-shell.layout-preparing .view-tab[data-view="alerts"]::before,
html[data-initial-view="board"] .app-shell.layout-preparing .view-tab[data-view="board"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #10233d;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 8px 8px 18px rgba(16, 35, 61, 0.18);
}

.app-shell.layout-preparing #map-view.active,
html[data-initial-view="map"] .app-shell.layout-preparing #map-view {
  display: grid;
  min-height: calc(100dvh - 92px);
  place-items: center;
  padding: 120px 24px 32px;
  background:
    radial-gradient(circle at top right, rgba(19, 128, 95, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(232, 238, 243, 0.95)),
    #edf2f6;
}

.app-shell.layout-preparing #map-view.active > *,
html[data-initial-view="map"] .app-shell.layout-preparing #map-view > * {
  display: none !important;
}

.app-shell.layout-preparing #map-view.active::before,
html[data-initial-view="map"] .app-shell.layout-preparing #map-view::before {
  content: "地図を準備しています";
  display: grid;
  min-width: min(360px, 100%);
  min-height: 94px;
  place-items: center;
  border: 1px solid #d9e8e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  color: #526171;
  font-size: 0.95rem;
  font-weight: 900;
}



/* Keep the first paint stable while the map layout is being prepared. */
.app-shell.layout-preparing {
  grid-template-columns: 1fr;
}

.app-shell.layout-preparing .content-area {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.app-shell.layout-preparing .view-tabs {
  width: min(1040px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  justify-content: center;
}

.app-shell.layout-preparing .view-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.image-privacy-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #d9e8e1;
  border-radius: 8px;
  background: #fbfffd;
  padding: 12px;
}

.image-privacy-panel[hidden] {
  display: none;
}

.image-privacy-note {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.55;
}

.image-privacy-note strong {
  color: var(--green-deep);
  font-size: 0.86rem;
}

.image-privacy-note p {
  margin: 0;
}

.image-privacy-checks {
  display: grid;
  gap: 7px;
}

.image-editor {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

.image-editor[hidden] {
  display: none;
}

.image-editor-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  touch-action: none;
}

.image-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-editor-help {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.admin-image-list {
  display: grid;
  gap: 12px;
}

.admin-image-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.admin-image-card.is-image-hidden {
  border-color: #e7c3c3;
  background: #fffafa;
}

.admin-image-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #eef2f7;
}

.admin-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-body,
.admin-image-memo {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-image-memo {
  color: #526171;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-image-memo textarea {
  min-height: 56px;
  resize: vertical;
}

.admin-image-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 640px) {
  .admin-image-card {
    grid-template-columns: 1fr;
  }
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.share-button {
  display: inline-grid;
  grid-template-columns: 24px max-content;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 7px 12px 7px 8px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: #9eb4c9;
  background: #f8fbfd;
  box-shadow: 0 8px 20px rgba(31, 59, 92, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.share-button-icon {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #eef3f8;
  color: currentColor;
  flex: 0 0 24px;
  overflow: hidden;
}

.share-button-label {
  white-space: nowrap;
}

.share-button.line {
  border-color: #bcebd0;
  background: linear-gradient(180deg, #f5fff9, #edfbf3);
  color: #087a3a;
}

.share-button.line:hover,
.share-button.line:focus-visible {
  border-color: #6fd699;
  background: #e9fbf0;
  box-shadow: 0 8px 20px rgba(6, 138, 62, 0.12);
}

.share-button.x {
  border-color: #d5dee9;
  background: #fff;
  color: #111827;
}

.share-button.copy {
  color: #1d4f91;
}

.share-button.qr {
  color: #475569;
}

.share-icon-LINE {
  border-radius: 8px;
  background: #06c755;
  color: #fff;
}

.share-icon-LINE::before {
  content: "L";
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.share-icon-LINE::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  background: #06c755;
  transform: rotate(45deg);
}

.share-icon-X {
  background: #111827;
  color: #fff;
}

.share-icon-X::before {
  content: "X";
  font-size: 0.76rem;
  font-weight: 950;
}

.share-icon-link {
  background: #e8f2ff;
}

.share-icon-link::before,
.share-icon-link::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 6px;
  border: 2px solid #1d4f91;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.share-icon-link::before {
  left: 4px;
  top: 8px;
}

.share-icon-link::after {
  right: 4px;
  bottom: 8px;
}

.share-icon-qr {
  background: #f1f5f9;
}

.share-icon-qr::before {
  content: "";
  width: 14px;
  height: 14px;
  background:
    linear-gradient(#475569 0 0) 0 0 / 5px 5px no-repeat,
    linear-gradient(#475569 0 0) 9px 0 / 5px 5px no-repeat,
    linear-gradient(#475569 0 0) 0 9px / 5px 5px no-repeat,
    linear-gradient(#94a3b8 0 0) 9px 9px / 5px 5px no-repeat,
    linear-gradient(#94a3b8 0 0) 6px 6px / 3px 3px no-repeat;
}

.share-inline-status {
  min-height: 1em;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 850;
}

.share-qr-modal {
  max-width: min(460px, calc(100vw - 28px));
}

.share-qr-body {
  display: grid;
  gap: 16px;
}

.share-qr-lead {
  margin: 0;
  color: #526171;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.65;
}

.share-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid #cfe8dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  padding: 18px;
}

.share-qr-card img {
  display: block;
  width: 220px;
  height: 220px;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.share-qr-card strong {
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.share-copy-fallback {
  display: grid;
  gap: 8px;
}

.share-copy-fallback[hidden] {
  display: none;
}

.share-copy-fallback label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.share-copy-fallback input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.share-qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.share-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

@media (max-width: 640px) {
  .share-actions {
    gap: 7px;
  }

  .share-button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .share-qr-card img {
    width: 190px;
    height: 190px;
  }
}

.board-tools .board-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.board-filter-list {
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
  margin-bottom: 0;
}

.board-filter-list .board-filter {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .board-tools {
    flex-wrap: wrap;
  }

  .board-filter-list {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .board-tools .board-search {
    flex-basis: 100%;
    min-width: 0;
  }

  .board-filter-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .board-filter-list .board-filter {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }
}


.lost-entry-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lost-entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  min-height: 132px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(143, 214, 190, 0.58);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 88%, rgba(19, 128, 95, 0.12), transparent 30%),
    radial-gradient(circle at 96% 20%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(100deg, #f3fff9, #ffffff 55%, #effcf7);
  color: #172232;
  cursor: pointer;
  padding: 22px 26px;
  text-align: left;
  box-shadow: 0 16px 38px rgba(31, 59, 92, 0.08);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease;
}

.lost-entry-card::before,
.lost-entry-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lost-entry-card::before {
  right: 14px;
  bottom: -8px;
  width: 160px;
  height: 82px;
  border-radius: 999px 999px 0 0;
  border: 2px solid rgba(19, 128, 95, 0.08);
  border-bottom: 0;
}

.lost-entry-card::after {
  left: -26px;
  bottom: -24px;
  width: 150px;
  height: 120px;
  background:
    linear-gradient(135deg, rgba(19, 128, 95, 0.08), transparent 55%),
    radial-gradient(circle at 28px 74px, rgba(19, 128, 95, 0.12) 0 16px, transparent 17px),
    radial-gradient(circle at 64px 46px, rgba(19, 128, 95, 0.1) 0 24px, transparent 25px);
}

.lost-entry-card.found {
  border-color: rgba(154, 132, 231, 0.38);
  background:
    radial-gradient(circle at 10% 86%, rgba(124, 77, 255, 0.08), transparent 31%),
    radial-gradient(circle at 92% 16%, rgba(124, 77, 255, 0.08), transparent 24%),
    linear-gradient(100deg, #fbf9ff, #ffffff 55%, #f6f1ff);
}

.lost-entry-card.found::before {
  border-color: rgba(124, 77, 255, 0.1);
}

.lost-entry-card.found::after {
  left: auto;
  right: -18px;
  width: 170px;
  background:
    linear-gradient(135deg, rgba(124, 77, 255, 0.07), transparent 58%),
    radial-gradient(circle at 104px 78px, rgba(124, 77, 255, 0.13) 0 18px, transparent 19px),
    radial-gradient(circle at 132px 44px, rgba(124, 77, 255, 0.09) 0 28px, transparent 29px);
}

.lost-entry-card:hover,
.lost-entry-card:focus-visible {
  border-color: rgba(19, 128, 95, 0.42);
  box-shadow: 0 20px 46px rgba(31, 59, 92, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.lost-entry-card.found:hover,
.lost-entry-card.found:focus-visible {
  border-color: rgba(124, 77, 255, 0.36);
}

.lost-entry-card.active {
  border-color: rgba(19, 128, 95, 0.5);
  box-shadow:
    0 20px 46px rgba(15, 108, 80, 0.14),
    inset 0 0 0 1px rgba(19, 128, 95, 0.08);
}

.lost-entry-card.found.active {
  border-color: rgba(124, 77, 255, 0.46);
  box-shadow:
    0 20px 46px rgba(124, 77, 255, 0.12),
    inset 0 0 0 1px rgba(124, 77, 255, 0.08);
}

.lost-entry-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(145deg, #13b981, #07855f);
  color: #fff;
  box-shadow: 0 12px 26px rgba(19, 128, 95, 0.2);
}

.lost-entry-card.found .lost-entry-icon {
  background: linear-gradient(145deg, #8d5cf6, #6736d7);
  box-shadow: 0 12px 26px rgba(124, 77, 255, 0.2);
}

.lost-entry-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lost-entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.lost-entry-card strong {
  display: block;
  color: #0f6c50;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.25;
}

.lost-entry-card.found strong {
  color: #6d3fe0;
}

.lost-entry-card small {
  display: block;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.7;
}

.lost-entry-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(203, 224, 222, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #0f8060;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(31, 59, 92, 0.08);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.lost-entry-card.found .lost-entry-arrow {
  border-color: rgba(216, 207, 250, 0.92);
  color: #6d3fe0;
}

.lost-entry-card:hover .lost-entry-arrow,
.lost-entry-card:focus-visible .lost-entry-arrow {
  transform: translateX(3px);
  background: #fff;
}

.lost-form-lead {
  margin: -4px 0 4px;
  color: #526171;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.65;
}

.lost-card.returned-card .lost-status,
.lost-status.returned {
  background: #e8f7ef;
  color: #0f6c50;
}

@media (max-width: 980px) {
  .lost-entry-card {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    min-height: 122px;
    gap: 14px;
    padding: 20px;
  }

  .lost-entry-icon {
    width: 62px;
    height: 62px;
  }

  .lost-entry-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 860px) {
  .lost-entry-panel {
    grid-template-columns: 1fr;
    order: 0;
  }
}

@media (max-width: 640px) {
  .lost-entry-panel {
    gap: 10px;
    padding-bottom: 2px;
  }

  .lost-entry-card {
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    min-height: 104px;
    gap: 12px;
    padding: 16px;
  }

  .lost-entry-icon {
    width: 52px;
    height: 52px;
    border-width: 3px;
  }

  .lost-entry-icon svg {
    width: 25px;
    height: 25px;
  }

  .lost-entry-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .lost-entry-card strong {
    font-size: 1rem;
  }

  .lost-entry-card small {
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

.lost-match-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #cfe5da;
  border-radius: 8px;
  background: #f7fffb;
  padding: 10px;
}

.lost-match-panel .lost-match-summary {
  margin-top: 0;
}

.lost-match-candidates {
  display: grid;
  gap: 8px;
}

.lost-match-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid #dce8e2;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.lost-match-candidate div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lost-match-candidate strong {
  color: #172232;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.lost-match-candidate small,
.lost-match-candidate em {
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.lost-match-candidate p {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5;
}

.lost-match-level {
  width: fit-content;
  border-radius: 999px;
  background: #e8f7ef;
  color: #0f6c50;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 950;
}

.lost-match-safe-note {
  margin: 0;
  border-radius: 8px;
  background: #fff8ed;
  color: #8a4b12;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.55;
}

.admin-match-list {
  display: grid;
  gap: 10px;
}

.admin-match-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-match-card .admin-match-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-match-card .admin-match-pair b {
  color: var(--green-deep);
}

.admin-match-reasons {
  color: #526171;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .lost-match-candidate {
    grid-template-columns: 1fr;
  }

  .lost-match-candidate .link-button {
    justify-self: start;
  }

  .admin-match-card .admin-match-pair {
    grid-template-columns: 1fr;
  }
}

.clue-send-button {
  white-space: nowrap;
}

.clue-form-body {
  display: grid;
  gap: 16px;
}

.clue-photo-picker {
  gap: 9px;
}

.clue-photo-picker > span:first-child {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 900;
}

.clue-photo-picker .photo-picker-control {
  min-height: 82px;
  border-color: rgba(37, 99, 184, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.clue-photo-picker .photo-picker-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  background: #e8f2ff;
}

.clue-photo-picker .photo-picker-icon::before,
.clue-photo-picker .photo-picker-icon::after {
  border-color: var(--blue);
}

.clue-photo-picker .photo-picker-icon::after {
  background: #e8f2ff;
}

.clue-photo-picker .photo-picker-text strong {
  color: #1d4f91;
}

.clue-photo-picker .photo-picker-text small {
  white-space: normal;
}

.clue-photo-picker.has-file .photo-picker-control {
  border-color: rgba(19, 128, 95, 0.34);
  background: #f0fbf6;
}

.clue-options {
  display: grid;
  gap: 11px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  padding: 14px;
}

.clue-options legend {
  padding: 0 7px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 900;
}

.clue-recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.clue-recipient-option {
  position: relative;
  cursor: pointer;
}

.clue-recipient-option input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
}

.clue-recipient-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 76px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 12px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.clue-recipient-card:hover {
  border-color: rgba(37, 99, 184, 0.28);
  background: #f9fbff;
  transform: translateY(-1px);
}

.clue-recipient-option input:focus-visible + .clue-recipient-card {
  outline: 3px solid rgba(37, 99, 184, 0.18);
  outline-offset: 2px;
}

.clue-recipient-option input:checked + .clue-recipient-card {
  border-color: rgba(19, 128, 95, 0.46);
  background: #f1fbf7;
  box-shadow: 0 10px 26px rgba(15, 118, 86, 0.12);
}

.clue-recipient-option input[value="admin"]:checked + .clue-recipient-card {
  border-color: rgba(37, 99, 184, 0.42);
  background: #f1f6ff;
  box-shadow: 0 10px 26px rgba(37, 99, 184, 0.12);
}

.clue-recipient-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5ef;
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 900;
}

.clue-recipient-icon.admin {
  background: #eef4ff;
  color: #1d4f91;
}

.clue-recipient-option input:checked + .clue-recipient-card .clue-recipient-icon {
  background: var(--green-deep);
  color: #fff;
}

.clue-recipient-option input:checked + .clue-recipient-card .clue-recipient-icon.admin {
  background: #1d4f91;
}

.clue-recipient-text {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.clue-recipient-text strong {
  color: #1f2937;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
}

.clue-recipient-text small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.clue-recipient-option input:checked + .clue-recipient-card .clue-recipient-text strong {
  color: #0f6f55;
}

.clue-recipient-option input:checked + .clue-recipient-card .clue-recipient-icon.admin + .clue-recipient-text strong {
  color: #1d4f91;
}

.clue-check-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--form-check-size) minmax(0, 1fr);
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
  padding: 12px 14px;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
  will-change: background-color, border-color, box-shadow;
}

.clue-check-card:hover {
  border-color: rgba(37, 99, 184, 0.28);
  background: #f9fbff;
  box-shadow: 0 0 0 3px rgba(37, 99, 184, 0.06);
}

.clue-check-card input[type="checkbox"] {
  appearance: none;
  display: grid;
  box-sizing: border-box;
  width: var(--form-check-size);
  min-width: var(--form-check-size);
  max-width: var(--form-check-size);
  height: var(--form-check-size);
  min-height: var(--form-check-size);
  max-height: var(--form-check-size);
  place-items: center;
  margin: 0;
  border: 2px solid #b7c6d8;
  border-radius: 6px;
  background: #fff;
  padding: 0;
  flex: 0 0 var(--form-check-size);
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.clue-check-card input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  opacity: 0;
  transform: rotate(-45deg);
}

.clue-check-card input[type="checkbox"]:checked {
  border-color: var(--green-deep);
  background: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(19, 128, 95, 0.12);
}

.clue-check-card input[type="checkbox"]:checked::after {
  opacity: 1;
}

.clue-check-card:has(input:checked) {
  border-color: rgba(19, 128, 95, 0.34);
  background: #f3fbf7;
}

.clue-check-card:has(input:focus-visible) {
  outline: 3px solid rgba(37, 99, 184, 0.18);
  outline-offset: 2px;
}

.clue-check-card span {
  min-width: 0;
}

.clue-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-deep);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(36, 53, 72, 0.08);
}

.clue-card.admin-only {
  border-left-color: #d97706;
}

.clue-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 11px;
  background: #eef6ff;
  color: #1d4f91;
  font-size: 0.8rem;
  font-weight: 900;
}

.clue-status-rejected {
  background: #fff1f2;
  color: #b91c1c;
}

.clue-status-handled,
.clue-status-shared {
  background: #e6f7ef;
  color: #0f6f55;
}

.clue-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.clue-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.clue-detail-grid dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.clue-detail-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.clue-image {
  display: block;
  width: min(220px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbfd;
}

.clue-image img {
  display: block;
  width: 100%;
  height: auto;
}

.clue-share-check {
  min-height: 36px;
}

@media (max-width: 720px) {
  .clue-detail-grid {
    grid-template-columns: 1fr;
  }

  .clue-recipient-grid {
    grid-template-columns: 1fr;
  }
}

/* C案風のピル型セグメントナビ */
.view-tabs {
  position: absolute;
  z-index: 650;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1040px, calc(100% - 48px));
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(226, 239, 243, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.92));
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 8px 14px;
  overflow: visible;
}

.view-tabs::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(37, 99, 184, 0.06), rgba(19, 128, 95, 0.05), rgba(255, 255, 255, 0.36));
  pointer-events: none;
}

.view-tab {
  position: relative;
  display: inline-grid;
  grid-template-columns: 28px max-content;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #17263a;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  padding: 0 24px;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.view-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 28px;
  background: rgba(148, 163, 184, 0.36);
  transform: translateY(-50%);
}

.view-tab:hover,
.view-tab:focus-visible {
  background: rgba(241, 245, 249, 0.94);
  outline: none;
}

.view-tab.active {
  background: linear-gradient(180deg, #163154, #10233d);
  color: #fff;
  box-shadow: 0 13px 28px rgba(16, 35, 61, 0.28);
  transform: translateY(-1px);
}

.view-tab.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #10233d;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 8px 8px 18px rgba(16, 35, 61, 0.18);
}

.view-tab.active::after {
  display: none;
}

.view-tab.active + .view-tab::after {
  opacity: 0;
}

.view-tab-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #2563eb;
}

.view-tab-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-tab[data-view="map"] .view-tab-icon {
  color: #0f766e;
}

.view-tab[data-view="missing"] .view-tab-icon {
  color: #3478db;
}

.view-tab[data-view="lost"] .view-tab-icon {
  color: #f08a00;
}

.view-tab[data-view="alerts"] .view-tab-icon {
  color: #2da86a;
}

.view-tab[data-view="board"] .view-tab-icon {
  color: #7c5ac7;
}

.view-tab.active .view-tab-icon {
  color: #fff;
}

@media (max-width: 980px) {
  .view-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .view-tabs::-webkit-scrollbar {
    display: none;
  }

  .view-tab {
    flex: 0 0 auto;
    padding: 0 18px;
  }
}

@media (max-width: 640px) {
  .view-tabs {
    top: 14px;
    left: 12px;
    width: calc(100% - 24px);
    min-height: 58px;
    transform: none;
    padding: 6px 10px;
  }

  .view-tab {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .view-tab-icon {
    width: 24px;
    height: 24px;
  }

  .view-tab-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .view-tabs {
    display: none;
  }
}

/* Give the C案風ナビ more breathing room from the view content. */
#map-view.active,
.board-area,
.missing-area,
.lost-area,
.alert-area,
#alerts-view.alert-area {
  padding-top: 122px;
}

@media (min-width: 861px) {
  .app-shell.natural-scroll-layout {
    height: auto;
    min-height: 100vh;
    grid-template-rows: 70px auto;
  }

  .app-shell.natural-scroll-layout .content-area {
    min-height: calc(100vh - 70px);
    overflow: visible;
  }

  .app-shell.natural-scroll-layout .view-panel.active {
    height: auto;
  }

  .app-shell.natural-scroll-layout .board-area,
  .app-shell.natural-scroll-layout .missing-area,
  .app-shell.natural-scroll-layout .lost-area,
  .app-shell.natural-scroll-layout .alert-area,
  .app-shell.natural-scroll-layout #alerts-view.alert-area {
    min-height: calc(100vh - 70px);
    overflow: visible;
  }
}

@media (max-width: 640px) {
  #map-view.active,
  .board-area,
  .missing-area,
  .lost-area,
  .alert-area,
  #alerts-view.alert-area {
    padding-top: 104px;
  }
}

@media (max-width: 480px) {
  #map-view.active,
  .board-area,
  .missing-area,
  .lost-area,
  .alert-area,
  #alerts-view.alert-area {
    padding-top: 88px;
  }
}

/* More polished lost/found entry cards. */
.lost-entry-card {
  grid-template-columns: 78px minmax(0, 1fr) 52px;
  min-height: 142px;
  border-radius: 16px;
  border-color: rgba(122, 211, 181, 0.48);
  background:
    linear-gradient(90deg, rgba(19, 128, 95, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 255, 250, 0.9));
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  isolation: isolate;
}

.lost-entry-card::before {
  inset: auto 0 0 auto;
  width: 46%;
  height: 76%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to top, rgba(19, 128, 95, 0.12) 0 2px, transparent 2px) 24px 82% / 80px 24px no-repeat,
    linear-gradient(to top, rgba(19, 128, 95, 0.1) 0 42px, transparent 42px) 58% 100% / 10px 58px no-repeat,
    linear-gradient(to top, rgba(19, 128, 95, 0.08) 0 58px, transparent 58px) 68% 100% / 14px 72px no-repeat,
    radial-gradient(ellipse at 82% 78%, rgba(19, 128, 95, 0.13) 0 18px, transparent 19px),
    radial-gradient(ellipse at 92% 58%, rgba(19, 128, 95, 0.08) 0 34px, transparent 35px);
  opacity: 0.92;
  z-index: 0;
}

.lost-entry-card::after {
  inset: auto auto -20px -24px;
  width: 34%;
  height: 76%;
  border-radius: 0;
  background:
    radial-gradient(circle at 34px 88px, rgba(19, 185, 129, 0.16) 0 22px, transparent 23px),
    radial-gradient(circle at 74px 54px, rgba(19, 128, 95, 0.12) 0 34px, transparent 35px),
    linear-gradient(to top, rgba(19, 128, 95, 0.09) 0 64px, transparent 65px) 28px 100% / 10px 86px no-repeat,
    linear-gradient(to top, rgba(19, 128, 95, 0.07) 0 44px, transparent 45px) 76px 100% / 8px 62px no-repeat;
  opacity: 0.9;
  z-index: 0;
}

.lost-entry-card.found {
  border-color: rgba(167, 139, 250, 0.4);
  background:
    linear-gradient(90deg, rgba(124, 77, 255, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 255, 0.92));
}

.lost-entry-card.found::before {
  background:
    linear-gradient(to top, rgba(124, 77, 255, 0.11) 0 2px, transparent 2px) 28px 82% / 100px 24px no-repeat,
    linear-gradient(to top, rgba(124, 77, 255, 0.08) 0 50px, transparent 51px) 54% 100% / 16px 72px no-repeat,
    linear-gradient(to top, rgba(124, 77, 255, 0.07) 0 64px, transparent 65px) 66% 100% / 20px 88px no-repeat,
    radial-gradient(ellipse at 84% 70%, rgba(124, 77, 255, 0.12) 0 18px, transparent 19px),
    radial-gradient(ellipse at 94% 46%, rgba(124, 77, 255, 0.08) 0 40px, transparent 41px);
}

.lost-entry-card.found::after {
  inset: auto -24px -20px auto;
  background:
    radial-gradient(circle at 56px 88px, rgba(124, 77, 255, 0.14) 0 24px, transparent 25px),
    radial-gradient(circle at 98px 50px, rgba(124, 77, 255, 0.1) 0 38px, transparent 39px),
    linear-gradient(to top, rgba(124, 77, 255, 0.08) 0 70px, transparent 71px) 62px 100% / 10px 92px no-repeat;
}

.lost-entry-icon {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(145deg, #20c98f, #08785a);
  box-shadow:
    0 16px 30px rgba(19, 128, 95, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.lost-entry-card.found .lost-entry-icon {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(145deg, #9264ff, #5b32cb);
  box-shadow:
    0 16px 30px rgba(124, 77, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.lost-entry-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.9;
}

.lost-entry-copy {
  padding-block: 2px;
}

.lost-entry-card strong {
  font-size: 1.16rem;
  letter-spacing: 0;
}

.lost-entry-card small {
  max-width: 38em;
  color: #516174;
}

.lost-entry-arrow {
  width: 50px;
  height: 50px;
  border-color: rgba(191, 226, 219, 0.76);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.9), transparent 34%),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 24px rgba(31, 59, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lost-entry-card.active .lost-entry-arrow {
  background: #fff;
}

@media (max-width: 980px) {
  .lost-entry-card {
    grid-template-columns: 66px minmax(0, 1fr) 44px;
    min-height: 124px;
  }

  .lost-entry-icon {
    width: 64px;
    height: 64px;
  }

  .lost-entry-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 640px) {
  .lost-entry-card {
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    min-height: 106px;
  }

  .lost-entry-icon {
    width: 52px;
    height: 52px;
  }
}


@media (max-width: 480px) {
  .lost-area {
    padding-top: 26px;
  }
}


/* Keep the user page from sitting too close to the segmented navigation. */
.profile-area {
  padding-top: 122px;
}

@media (max-width: 640px) {
  .profile-area {
    padding-top: 104px;
  }
}

@media (max-width: 480px) {
  .profile-area {
    padding-top: 30px;
  }
}

/* Modern user page profile design. */
.profile-area {
  background: linear-gradient(180deg, #eef6f8 0%, #f7fbfc 100%);
}

.profile-layout {
  width: min(1120px, 100%);
  gap: 20px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  min-height: 292px;
  border: 1px solid rgba(218, 228, 236, 0.88);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: 0 24px 70px rgba(31, 59, 92, 0.12);
  padding: 40px 44px 34px;
}

.profile-hero::before {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 88px;
  height: 88px;
  background-image: radial-gradient(circle, rgba(31, 111, 191, 0.11) 2px, transparent 3px);
  background-size: 14px 14px;
  content: "";
}

.profile-hero::after {
  display: none;
}

.profile-hero > * {
  position: relative;
  z-index: 1;
}

.profile-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 20px auto 0;
  border: 1px solid #dfe7ee;
  background: #fff;
  color: var(--green-deep);
  font-size: 2.08rem;
  box-shadow: 0 16px 34px rgba(31, 59, 92, 0.08);
}

.profile-avatar::after {
  position: absolute;
  right: -6px;
  bottom: -7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0c8663;
  color: #fff;
  font-size: 0.78rem;
  content: "✓";
}

.profile-identity {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-identity .modal-kicker {
  display: none;
}

.profile-identity h2 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 950;
}

.profile-identity #profile-email,
.profile-identity .profile-username,
.profile-identity small {
  margin: 0;
  color: #66758c;
  font-size: 1rem;
  font-weight: 750;
}

.profile-identity .profile-username {
  color: #3f4d63;
  font-weight: 900;
}

.profile-trust {
  position: absolute;
  top: 38px;
  left: 284px;
}

.profile-trust .trust-badge,
.profile-trust .verified-mark {
  border-color: rgba(19, 128, 95, 0.24);
  background: #e8f8f1;
  color: #13805f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.profile-basic {
  gap: 12px;
  margin-top: 8px;
}

.profile-basic-item {
  min-height: 34px;
  gap: 10px;
  border-color: #e0e7ef;
  background: rgba(255, 255, 255, 0.84);
  color: #5f6e83 !important;
  font-size: 0.82rem;
  padding: 6px 14px;
  box-shadow: 0 8px 20px rgba(31, 59, 92, 0.04);
}

.profile-basic-item::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green-deep);
  font-size: 0.72rem;
  content: "人";
}

.profile-intro {
  max-width: 680px;
  margin-top: 10px;
  border-color: #dfe6ed;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 18px 16px 58px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-intro::before {
  float: left;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-left: -42px;
  border-radius: 999px;
  background: #eef8f3;
  color: var(--green-deep);
  font-weight: 950;
  content: "人";
}

.profile-intro b {
  margin-bottom: 7px;
  font-size: 0.9rem;
}

#profile-created-at::before {
  margin-right: 8px;
  color: #64748b;
  content: "▣";
}

#open-account-settings {
  min-height: 48px;
  align-self: start;
  border: 1px solid rgba(19, 128, 95, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #253248;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(31, 59, 92, 0.08);
  padding-inline: 18px;
}

#open-account-settings::before {
  margin-right: 9px;
  color: #334155;
  content: "⚙";
}

.profile-stats {
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 12px;
}

.profile-stats button,
.profile-impact-card {
  position: relative;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  place-items: center start;
  min-height: 86px;
  gap: 2px 14px;
  border-color: rgba(226, 232, 240, 0.94);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 59, 92, 0.08);
  padding: 16px 18px;
}

.profile-stats button::before,
.profile-impact-card::before {
  display: grid;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green-deep);
  font-size: 1.08rem;
  box-shadow: inset 0 0 0 1px rgba(19, 128, 95, 0.1);
  content: "○";
}

.profile-stats [data-profile-stat="resolved"]::before { content: "✓"; }
.profile-stats [data-profile-stat="info"]::before { content: "i"; }
.profile-stats [data-profile-stat="area"]::before { content: "⌖"; }
.profile-stats [data-profile-stat="shield"]::before { content: "盾"; }
.profile-stats [data-profile-stat="missing"]::before { content: "人"; }
.profile-stats [data-profile-stat="lost"]::before { content: "□"; }
.profile-stats [data-profile-stat="alert"]::before { content: "!"; }
.profile-stats [data-profile-stat="board"]::before { content: "□"; }

.profile-stats strong {
  color: var(--green-deep);
  font-size: 1.58rem;
  font-weight: 950;
  line-height: 1;
}

.profile-stats span {
  color: #5f6e83;
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-activity {
  border-color: rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(31, 59, 92, 0.1);
  padding: 22px 26px 26px;
}

.profile-activity .panel-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf2;
}

.profile-activity .modal-kicker {
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 950;
}

.profile-activity-list {
  gap: 10px;
}

.profile-activity-list > button.profile-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 32px;
  min-height: 68px;
  align-items: center;
  border-color: #e1e8ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
}

.profile-activity-item::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green-deep);
  font-weight: 950;
  content: "□";
}

.profile-activity-item[data-activity-type="thread"]::before,
.profile-activity-item[data-activity-type="reply"]::before { content: "□"; }
.profile-activity-item[data-activity-type="report"]::before { content: "盾"; }
.profile-activity-item[data-activity-type="missing"]::before { content: "人"; }
.profile-activity-item[data-activity-type="lost"]::before { content: "⌕"; }
.profile-activity-item[data-activity-type="alert"]::before { content: "!"; }

.profile-activity-main strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 950;
}

.profile-activity-main small {
  color: #738197;
  font-weight: 750;
}

.profile-activity-item em {
  border-radius: 999px;
  background: #e8f8f1;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  padding: 4px 10px;
}

.profile-activity-item b {
  color: #4b69a7;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .profile-hero {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  #open-account-settings {
    grid-column: 2;
    width: fit-content;
  }

  .profile-trust {
    position: static;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-layout {
    gap: 14px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
    padding: 24px 18px;
  }

  .profile-avatar {
    margin: 0;
  }

  #open-account-settings {
    grid-column: auto;
    width: 100%;
  }

  .profile-basic-item {
    font-size: 0.76rem;
  }

  .profile-intro {
    padding: 14px 14px 14px 52px;
  }

  .profile-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .profile-stats button,
  .profile-impact-card {
    min-height: 78px;
    padding: 14px;
  }

  .profile-activity {
    padding: 18px 14px;
  }

  .profile-activity-list > button.profile-activity-item {
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .profile-activity-item em {
    display: none;
  }
}

/* Replace temporary profile stat symbols with precise SVG icons. */
.profile-stats button::before,
.profile-impact-card::before {
  display: none;
  content: none;
}

.profile-stat-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(19, 128, 95, 0.12);
}

.profile-stat-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.profile-stats [data-profile-stat="resolved"] .profile-stat-icon {
  background: #ecfdf3;
  color: #0c8663;
}

.profile-stats [data-profile-stat="info"] .profile-stat-icon {
  background: #eef8ff;
  color: #0f6fbf;
}

.profile-stats [data-profile-stat="area"] .profile-stat-icon {
  background: #f0fdf4;
  color: #13805f;
}

.profile-stats [data-profile-stat="shield"] .profile-stat-icon {
  background: #fff7ed;
  color: #c35a00;
}

.profile-stats [data-profile-stat="missing"] .profile-stat-icon {
  background: #eff6ff;
  color: #2563eb;
}

.profile-stats [data-profile-stat="lost"] .profile-stat-icon {
  background: #fff7ed;
  color: #d97706;
}

.profile-stats [data-profile-stat="alert"] .profile-stat-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.profile-stats [data-profile-stat="board"] .profile-stat-icon,
.profile-stats [data-profile-stat="posts"] .profile-stat-icon {
  background: #f5f3ff;
  color: #7c4dff;
}

@media (max-width: 640px) {
  .profile-stat-icon {
    width: 36px;
    height: 36px;
  }

  .profile-stat-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Match activity list icons with the profile stat SVG icon system. */
.profile-activity-item::before {
  display: none;
  content: none;
}

.profile-activity-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f3;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(19, 128, 95, 0.12);
}

.profile-activity-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.profile-activity-item[data-activity-type="report"] .profile-activity-icon {
  background: #fff7ed;
  color: #c35a00;
}

.profile-activity-item[data-activity-type="missing"] .profile-activity-icon {
  background: #eff6ff;
  color: #2563eb;
}

.profile-activity-item[data-activity-type="lost"] .profile-activity-icon {
  background: #fff7ed;
  color: #d97706;
}

.profile-activity-item[data-activity-type="alert"] .profile-activity-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.profile-activity-item[data-activity-type="thread"] .profile-activity-icon,
.profile-activity-item[data-activity-type="reply"] .profile-activity-icon {
  background: #f5f3ff;
  color: #7c4dff;
}

@media (max-width: 640px) {
  .profile-activity-list > button.profile-activity-item {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
  }

  .profile-activity-icon {
    width: 36px;
    height: 36px;
  }

  .profile-activity-icon svg {
    width: 20px;
    height: 20px;
  }
}


.profile-activity-pagination {
  margin-top: 8px;
  padding-top: 4px;
}

.profile-activity-pagination span {
  min-width: 62px;
}

.logout-confirm-modal {
  width: min(460px, calc(100vw - 32px));
}

.logout-confirm-text {
  margin: 0;
  color: #526171;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.7;
}

.logout-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.logout-confirm-actions .tool-button {
  min-height: 48px;
  justify-content: center;
}

.logout-confirm-submit {
  border-color: #f3c8c8;
  background: #fffafa;
  color: #9d2b2b;
}

@media (max-width: 480px) {
  .logout-confirm-actions {
    grid-template-columns: 1fr;
  }
}

/* Refined flat checkbox controls for area notification settings. */
.area-notification-settings .area-notification-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  border: 1px solid rgba(201, 220, 213, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  padding: 20px 22px;
  box-shadow: none;
}

.area-notification-settings .area-notification-options .check-row {
  position: relative;
  display: inline-grid;
  width: fit-content;
  grid-template-columns: var(--form-check-size) minmax(0, max-content);
  min-height: 34px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 0;
  box-shadow: none;
  color: #334155;
  cursor: pointer;
  transition: color 0.16s ease;
}

.area-notification-settings .area-notification-options .check-row::before {
  display: grid;
  grid-column: 1;
  width: var(--form-check-size);
  height: var(--form-check-size);
  place-items: center;
  border: 2px solid #cbd8e5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(31, 59, 92, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  content: "";
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.area-notification-settings .area-notification-options .check-row::after {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 8px;
  height: 5px;
  border: 2.5px solid #fff;
  border-top: 0;
  border-right: 0;
  opacity: 0;
  transform: translateY(-63%) rotate(-45deg) scale(0.82);
  content: "";
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.area-notification-settings .area-notification-options .check-row:hover::before {
  border-color: #9fc8ba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(31, 59, 92, 0.09);
}

.area-notification-settings .area-notification-options .check-row:has(input:checked)::before {
  border-color: #0f8e68;
  background: linear-gradient(135deg, #23c28c, #0d8764);
  box-shadow: 0 8px 18px rgba(19, 128, 95, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.area-notification-settings .area-notification-options .check-row:has(input:checked)::after {
  opacity: 1;
  transform: translateY(-63%) rotate(-45deg) scale(1);
}

.area-notification-settings .area-notification-options .check-row:has(input:focus-visible)::before {
  outline: 3px solid rgba(31, 111, 191, 0.18);
  outline-offset: 3px;
}

.area-notification-settings .area-notification-options input[type="checkbox"] {
  position: absolute;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  height: 1px;
  min-height: 1px;
  max-height: 1px;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.area-notification-settings .area-notification-options input[type="checkbox"]::after {
  display: none;
}

.area-notification-settings .area-notification-options .check-row span {
  align-self: center;
  color: inherit;
  font-size: 0.94rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .area-notification-settings .area-notification-options {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .area-notification-settings .area-notification-options .check-row {
    grid-template-columns: var(--form-check-size) minmax(0, 1fr);
  }
}

.board-pagination {
  margin-top: 4px;
  justify-content: center;
}

.profile-hero-actions {
  display: grid;
  gap: 10px;
  align-self: start;
  justify-items: stretch;
}

.profile-admin-button {
  border-color: rgba(19, 128, 95, 0.64);
  background: linear-gradient(135deg, rgba(232, 248, 241, 0.96), rgba(255, 255, 255, 0.9));
  color: var(--green-deep);
}

.profile-admin-button::before {
  margin-right: 9px;
  color: currentColor;
  content: "管";
}

.profile-admin-button[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .profile-hero-actions {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .profile-hero-actions {
    grid-column: auto;
    width: 100%;
  }
}

.profile-hero-actions #open-account-settings {
  grid-column: auto;
  width: 100%;
}

/* Add breathing room below the admin summary cards. */
#admin-view .admin-summary {
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  #admin-view .admin-summary {
    margin-bottom: 14px;
  }
}

/* Wider vertical rhythm for the main admin dashboard layout. */
#admin-view.admin-area {
  padding-top: 142px;
}

#admin-view .admin-layout {
  gap: 34px;
}

#admin-view .admin-summary {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  #admin-view.admin-area {
    padding-top: 120px;
  }

  #admin-view .admin-layout {
    gap: 26px;
  }
}

@media (max-width: 480px) {
  #admin-view.admin-area {
    padding-top: 72px;
  }
}

.clue-safe-handoff,
.clue-detail-modal .modal-shell {
  max-width: min(980px, calc(100vw - 28px));
}

.clue-detail-body {
  display: grid;
  gap: 16px;
}

.clue-detail-list {
  display: grid;
  gap: 14px;
  max-height: min(68vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.clue-check-button {
  border-color: #c7eadc;
  background: #eefbf5;
  color: #0b6f56;
}

.clue-check-button:hover {
  background: #def7ec;
}

.clue-send-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.clue-thread-box {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe5dc;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fffb, #fff);
  padding: 14px;
}

.clue-safe-handoff h3,
.clue-thread-box h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.98rem;
}

.clue-options.compact {
  margin: 0;
  padding: 0;
}

.handoff-method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clue-safety-list {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid #f2c98c;
  border-radius: 8px;
  background: #fff8ed;
  color: #8a4b12;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
  padding: 10px 12px 10px 28px;
}

.clue-thread-messages {
  display: grid;
  gap: 8px;
}

.clue-thread-message {
  display: grid;
  gap: 4px;
  justify-self: start;
  max-width: min(84%, 720px);
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.clue-thread-message.other strong {
  color: #24527a;
}

.clue-thread-message.own {
  justify-self: end;
  border-color: #bfe3d2;
  background: #eefbf5;
}

.clue-thread-message strong {
  color: var(--green-deep);
  font-size: 0.82rem;
}

.clue-thread-message p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.clue-thread-message small,
.clue-thread-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.clue-handoff-controls {
  display: grid;
  gap: 10px;
}

.clue-code-box {
  display: grid;
  grid-template-columns: auto minmax(80px, auto) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.clue-code-box span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.clue-code-box strong {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .handoff-method-grid,
  .clue-code-box {
    grid-template-columns: 1fr;
  }

  .clue-thread-message {
    max-width: 100%;
  }
}

.clue-detail-modal .privacy-hint {
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.clue-card {
  gap: 14px;
  border-left-width: 4px;
  padding: 18px;
}

.clue-card > .report-top {
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4edf5;
}

.clue-card .report-title {
  color: var(--green-deep);
  font-size: 1.05rem;
}

.clue-message-summary {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 14px;
}

.clue-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clue-message-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe8f4;
  color: #536173;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
}

.clue-message-summary p {
  margin: 0;
  color: #17263a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.65;
}

.clue-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clue-section-head h3,
.clue-section-head strong {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.98rem;
  font-weight: 900;
}

.clue-section-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef6ff;
  color: #41506a;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 10px;
}

.clue-safety-list {
  margin: 0;
  border: 1px solid #f2c98c;
  border-radius: 8px;
  background: #fff8ed;
  color: #8a4b12;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  padding: 9px 12px;
}

.clue-reply-panel,
.clue-return-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.clue-reply-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.clue-reply-panel textarea {
  min-height: 76px;
}

.compact-action {
  min-width: 104px;
  min-height: 46px;
}

.clue-code-box {
  grid-template-columns: minmax(150px, auto) minmax(180px, 1fr) auto;
  align-items: end;
  background: #f7fbff;
}

.clue-code-box > div {
  display: grid;
  gap: 4px;
}

.clue-code-box strong {
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .clue-reply-panel,
  .clue-code-box {
    grid-template-columns: 1fr;
  }

  .compact-action,
  .clue-code-box .primary-button {
    width: 100%;
  }
}

.trust-badge.thanks-badge {
  border-color: rgba(223, 157, 54, 0.32);
  background: #fff6e7;
  color: #9a5a12;
}

.profile-impact-card[data-profile-stat="thanks"] .profile-stat-icon {
  border-color: rgba(223, 157, 54, 0.24);
  background: #fff6e7;
  color: #b46612;
}

.clue-code-box.sender-code {
  grid-template-columns: minmax(170px, auto) minmax(240px, 1fr);
  align-items: center;
}

.clue-code-box.author-code {
  grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.85fr) auto;
}

.clue-code-note {
  margin: 0;
  color: #526176;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.55;
}

.clue-code-display {
  display: grid;
  gap: 4px;
}

@media (max-width: 720px) {
  .clue-code-box.sender-code,
  .clue-code-box.author-code {
    grid-template-columns: 1fr;
  }
}

/* Polished handoff completion code layout. */
.clue-code-box {
  gap: 12px 16px;
  border-color: #d8e6f3;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 14px 16px;
}

.clue-code-box.author-code {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
}

.clue-code-box.author-code .clue-code-note {
  grid-column: 1 / -1;
  max-width: 760px;
}

.clue-code-box.author-code label {
  min-width: 0;
}

.clue-code-box.author-code .primary-button {
  width: 220px;
  min-width: 220px;
  min-height: 56px;
  white-space: nowrap;
  align-self: end;
  font-size: 1rem;
  line-height: 1.1;
  padding-inline: 18px;
}

.clue-code-box.sender-code {
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
}

.clue-code-note {
  color: #526176;
  font-size: 0.88rem;
  line-height: 1.65;
}

.clue-code-display {
  min-width: 180px;
}

@media (max-width: 860px) {
  .clue-code-box.author-code,
  .clue-code-box.sender-code {
    grid-template-columns: 1fr;
  }

  .clue-code-box.author-code .primary-button {
    width: 100%;
    min-width: 0;
  }
}

.clue-code-box.sender-code {
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) 180px;
  align-items: center;
}

.clue-code-send-button {
  width: 180px;
  min-width: 180px;
  min-height: 52px;
  white-space: nowrap;
  font-size: 0.98rem;
  padding-inline: 18px;
}

@media (max-width: 860px) {
  .clue-code-box.sender-code {
    grid-template-columns: 1fr;
  }

  .clue-code-send-button {
    width: 100%;
    min-width: 0;
  }
}

/* Polished logout confirmation modal. */
.logout-confirm-modal {
  width: min(520px, calc(100vw - 32px));
}

.logout-confirm-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}

.logout-confirm-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: #fff1f1;
  color: #b13737;
  font-size: 1.18rem;
  font-weight: 950;
}

.logout-confirm-text {
  margin: 0;
  color: #435064;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.65;
}

.logout-confirm-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  border: 1px solid #e3eaf2;
  border-radius: 9px;
  background: #f8fbff;
  color: #526176;
  padding: 12px 14px;
}

.logout-confirm-note strong {
  color: #182235;
  font-size: 0.94rem;
  font-weight: 950;
}

.logout-confirm-note span {
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.55;
}

.logout-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.logout-confirm-actions .tool-button {
  min-height: 44px;
  min-width: 128px;
  justify-content: center;
  border-radius: 8px;
}

.logout-confirm-cancel {
  border-color: #dfe7ef;
  background: #ffffff;
  color: #263244;
}

.logout-confirm-submit {
  border-color: #b13737;
  background: #b13737;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(177, 55, 55, 0.22);
}

.logout-confirm-submit:hover {
  background: #982f2f;
  color: #ffffff;
}

@media (max-width: 520px) {
  .logout-confirm-body {
    grid-template-columns: 1fr;
  }

  .logout-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logout-confirm-actions .tool-button {
    width: 100%;
  }
}

.account-delete-toggle {
  border-color: #f2d1d1;
  background: #fffafa;
  color: #9b2f2f;
}

.account-delete-toggle::before {
  background: #fff1f1;
  color: #b63c3c;
}

.account-delete-toggle[aria-expanded="true"] {
  border-color: #efb5b5;
  background: #fff5f5;
}

.account-delete-settings {
  border-color: #f0caca;
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
}

.account-delete-settings .modal-kicker {
  color: #a13a3a;
}

.account-delete-note {
  margin: 0;
  border-color: #f0d3b0;
  background: #fff8ee;
  color: #835119;
}

.account-delete-form {
  display: grid;
  gap: 12px;
}

.account-delete-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.account-delete-form input {
  width: 100%;
  border: 1px solid #d6e0ec;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
}

.account-delete-form input:focus {
  border-color: #ef9a9a;
  box-shadow: 0 0 0 3px rgba(239, 154, 154, 0.18);
  outline: none;
}

.account-delete-submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border: 1px solid #efb5b5;
  border-radius: 8px;
  background: linear-gradient(135deg, #a33a3a, #d94a4a);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(163, 58, 58, 0.18);
}

.account-delete-submit:disabled {
  opacity: 0.58;
  cursor: wait;
}

.account-delete-submit:hover,
.account-delete-submit:focus-visible {
  border-color: #d94a4a;
  background: linear-gradient(135deg, #8f2f2f, #c83f3f);
  color: #fff;
  box-shadow: 0 14px 28px rgba(163, 58, 58, 0.24);
  transform: translateY(-1px);
}

.account-delete-submit:disabled:hover {
  border-color: #efb5b5;
  background: linear-gradient(135deg, #a33a3a, #d94a4a);
  color: #fff;
  transform: none;
}

.legal-area {
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(229, 238, 242, 0.95)),
    #eef3f5;
  padding: 96px 28px 42px;
}

.legal-document {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 34px;
}

.legal-document h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.legal-lead,
.legal-updated,
.legal-document p {
  color: #536274;
  line-height: 1.85;
}

.legal-lead {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.legal-updated {
  margin: -4px 0 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.legal-document section {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e8eef4;
  padding-top: 18px;
}

.legal-document h3 {
  margin: 0;
  color: #123d3d;
  font-size: 1.02rem;
  font-weight: 900;
}

.legal-document p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  grid-column: 1 / -1;
  position: static;
  z-index: 20;
  border-top: 1px solid rgba(19, 128, 95, 0.16);
  background: linear-gradient(180deg, #f7fbfc 0%, #edf6f4 100%);
  color: #10233d;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
  gap: 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 30px;
}

.footer-brand-block {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-logo {
  display: block;
  width: 180px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-block p,
.footer-copy {
  margin: 0;
  color: #536274;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
  align-content: start;
}

.footer-links button {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #10233d;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
  padding: 9px 11px;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  border-color: rgba(19, 128, 95, 0.34);
  background: rgba(219, 246, 237, 0.92);
  color: #0f6f50;
  outline: none;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 16px;
}

@media (max-width: 860px) {
  .legal-area {
    padding: 82px 14px 96px;
  }

  .legal-document {
    padding: 22px 18px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 18px 110px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Official news */
.official-news-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 56px));
  margin: 22px auto -8px;
  border: 1px solid #f2bd72;
  border-left: 6px solid #c63c32;
  border-radius: 8px;
  background: #fff8ed;
  color: #7a3d0b;
  box-shadow: 0 12px 28px rgba(31, 59, 92, 0.08);
  padding: 12px 14px;
}

.official-news-banner[hidden] { display: none; }
.official-news-banner div { display: grid; gap: 2px; min-width: 0; }
.official-news-banner strong { color: #9b1c1c; font-weight: 1000; }
.official-news-banner span { overflow-wrap: anywhere; font-weight: 800; }
.official-news-banner button {
  border: 1px solid rgba(154, 69, 18, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #7a3d0b;
  font-weight: 1000;
  padding: 8px 12px;
  cursor: pointer;
}

.official-news-area {
  overflow: auto;
  background: #eef3f5;
  padding: 92px 28px 40px;
}

.official-news-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.official-news-hero {
  display: grid;
  gap: 12px;
  border-left: 5px solid #2563b8;
}

.official-news-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.6rem;
}

.official-news-hero p,
.official-news-disclaimer {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.official-news-disclaimer {
  border: 1px solid #f4d5aa;
  border-radius: 8px;
  background: #fff8ed;
  color: #894b13;
  padding: 12px 14px;
}

.official-news-tools {
  display: grid;
  gap: 14px;
}

.official-news-filter-row,
.official-news-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-news-filter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 1000;
  padding: 10px 14px;
  cursor: pointer;
}

.official-news-filter.active {
  border-color: rgba(37, 99, 184, 0.36);
  background: linear-gradient(135deg, #13805f, #2563b8);
  color: #fff;
}

.official-news-select-row label {
  display: grid;
  min-width: min(240px, 100%);
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.official-news-select-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  padding: 12px;
}

.new-official-news-button {
  border: 1px solid rgba(37, 99, 184, 0.24);
  border-radius: 8px;
  background: #e8f1ff;
  color: #1f6fbf;
  font-weight: 1000;
  padding: 12px 14px;
  cursor: pointer;
}

.official-news-list {
  display: grid;
  gap: 14px;
}

.official-news-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #2563b8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.official-news-card.official-news-severity-critical { border-left-color: #c63c32; }
.official-news-card.official-news-severity-warning { border-left-color: #d97706; }
.official-news-card.is-cancelled { opacity: 0.82; border-left-color: #64748b; }

.official-news-card-top,
.admin-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.official-label,
.official-severity,
.official-status,
.admin-inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #edf7f3;
  color: #0f6f50;
  font-size: 0.78rem;
  font-weight: 1000;
  padding: 4px 10px;
}

.official-severity { background: #e8f1ff; color: #1f6fbf; }
.official-status { background: #fff4df; color: #9a4d08; }
.official-status.cancelled { background: #eef2f7; color: #475569; }

.official-news-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.official-news-summary {
  margin: 0;
  color: #334155;
  font-weight: 800;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.official-news-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.official-news-meta div { min-width: 0; }
.official-news-meta dt { color: var(--muted); font-size: 0.76rem; font-weight: 1000; }
.official-news-meta dd { margin: 2px 0 0; color: var(--ink); font-weight: 900; overflow-wrap: anywhere; }

.official-news-admin-section { border-left: 5px solid #2563b8; }
.admin-official-news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.official-news-source-list,
.official-news-admin-list { display: grid; gap: 10px; }

.official-news-cron-status {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #64748b;
  border-radius: 8px;
  background: #f8fafc;
}

.official-news-cron-status.is-ok {
  border-left-color: #0f8b67;
  background: #f0fdf8;
}

.official-news-cron-status.is-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.official-news-cron-status.is-error {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.official-news-cron-status strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.5;
}

.official-news-cron-label {
  color: var(--muted);
  font-weight: 1000;
}

.official-news-cron-status dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.official-news-cron-status dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
}

.official-news-cron-status dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.view-tab[data-view="news"] .view-tab-icon,
.news-icon {
  background: #e8f1ff;
  color: #1f6fbf;
}

.view-tab.active[data-view="news"] .view-tab-icon,
.mobile-nav-item.active .news-icon {
  background: #1f6fbf;
  color: #fff;
}

@media (max-width: 860px) {
  .official-news-banner {
    width: calc(100% - 28px);
    margin: 14px auto 0;
    align-items: stretch;
  }

  .official-news-area {
    padding: 84px 14px 104px;
  }

  .official-news-meta {
    grid-template-columns: 1fr;
  }

  .official-news-cron-status dl {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mobile-nav-item {
    font-size: 0.62rem;
  }

  .mobile-nav-icon {
    width: 28px;
    height: 28px;
  }
}
