/* 安否ダッシュボード — 管理ダッシュボード型 UI */

.anpi-dashboard-page {
  --dash-content-max: 1400px;
  --dash-pad-x: 36px;
}

.anpi-dashboard-page .dash-main {
  background: #f4f6f9;
}

.anpi-dashboard-page .anpi-dashboard-main {
  max-width: none;
  padding-top: 0;
}

.anpi-dashboard-page .dash-shell.anpi-dashboard-main {
  width: min(100%, var(--dash-content-max));
}

/* ── ページヘッダー（スクロール追従なし） ── */
.anpi-dashboard-page .anpi-dash-header {
  position: static;
  top: auto;
  z-index: auto;
  height: auto;
  min-height: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.anpi-dashboard-page .anpi-dash-header__inner {
  align-items: flex-start;
  height: auto;
  min-height: 92px;
  padding-top: 32px;
  padding-bottom: 0;
  margin-bottom: 36px;
}

.anpi-dashboard-page .anpi-dash-header__left {
  align-items: center;
  padding-top: 0;
}

.anpi-dashboard-page .anpi-dash-header__actions {
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

.anpi-dash-header-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8edf3;
  color: #475569;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.anpi-dash-header-bell:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.anpi-dash-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}

.anpi-dashboard-page .anpi-dash-register-banner {
  margin-bottom: 4px;
}

.anpi-dashboard-page .anpi-stat-grid,
.anpi-dashboard-page .anpi-summary-grid {
  margin-top: 24px;
}

.anpi-dash-register-banner[hidden] {
  display: none !important;
}

.anpi-urgent-panel__list[hidden],
.anpi-recent-list[hidden] {
  display: none !important;
}

/* ── サイドバー ── */
.anpi-dashboard-sidebar {
  display: flex;
  flex-direction: column;
}

.anpi-dashboard-sidebar .dash-sidebar__nav {
  flex: 1;
  min-height: 0;
}

.anpi-sidebar-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  opacity: 0.85;
  vertical-align: middle;
}

.anpi-dashboard-sidebar .dash-nav-link {
  display: flex;
  align-items: center;
}

.anpi-sidebar-ai {
  margin: 0 12px 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.anpi-sidebar-ai__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.anpi-sidebar-ai__text {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.85);
}

.anpi-sidebar-ai__btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.anpi-sidebar-ai__btn:hover {
  background: #1d4ed8;
}

/* ── 未登録バナー ── */
.anpi-dash-register-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.anpi-dash-register-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
}

.anpi-dashboard-empty__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.anpi-dashboard-empty__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.anpi-dashboard-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.anpi-dashboard-empty__cta:hover {
  background: #1d4ed8;
}

/* JS テスト用（画面外に保持） */
.anpi-dashboard-meta-sr {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* ── 統計カード 4列 ── */
.anpi-stat-grid,
.anpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.anpi-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 204px;
  padding: 26px 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.09);
}

.anpi-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
}

.anpi-stat-card__icon svg {
  width: 28px;
  height: 28px;
}

.anpi-stat-card__icon--blue {
  background: #eff6ff;
  color: #2563eb;
}

.anpi-stat-card__icon--green {
  background: #f0fdf4;
  color: #16a34a;
}

.anpi-stat-card__icon--orange {
  background: #fff7ed;
  color: #ea580c;
}

.anpi-stat-card__icon--purple {
  background: #faf5ff;
  color: #9333ea;
}

.anpi-stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.anpi-stat-card__label,
.anpi-summary-card__label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.anpi-stat-card__value,
.anpi-summary-card__value {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.anpi-stat-card__value--alert,
.anpi-summary-card--urgent .anpi-summary-card__value {
  color: #dc2626;
}

.anpi-stat-card__desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.anpi-stat-card__sample {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.anpi-stat-card__sample[hidden] {
  display: none !important;
}

.anpi-stat-card[data-demo="true"] .anpi-stat-card__value {
  color: #334155;
}

.anpi-stat-card[data-demo="true"] .anpi-stat-card__value--alert {
  color: #dc2626;
}

.anpi-stat-card__action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.anpi-stat-card__action:hover {
  background: #dbeafe;
}

.anpi-stat-card__action--alert {
  background: #fef2f2;
  color: #dc2626;
}

.anpi-stat-card__action--alert:hover {
  background: #fee2e2;
}

/* ── 緊急通知エリア ── */
.anpi-urgent-panel {
  border-radius: 18px;
  border: 1px solid #fca5a5;
  background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 55%, #fff 100%);
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.08);
  overflow: hidden;
}

.anpi-urgent-panel__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  min-height: 120px;
}

.anpi-urgent-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fecaca;
  color: #dc2626;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
}

.anpi-urgent-panel__content {
  min-width: 0;
}

.anpi-urgent-panel__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #b91c1c;
}

.anpi-urgent-panel__empty {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #991b1b;
  line-height: 1.5;
}

.anpi-urgent-panel__empty-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}

.anpi-urgent-panel__deco {
  color: #fecaca;
  opacity: 0.55;
  flex-shrink: 0;
}

.anpi-urgent-panel__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anpi-urgent-panel:has(.anpi-urgent-item) .anpi-urgent-panel__deco {
  display: none;
}

.anpi-urgent-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fecaca;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.anpi-urgent-item:hover {
  border-color: #f87171;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

.anpi-urgent-item__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.anpi-urgent-item__meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* ── LINE 失敗パネル ── */
.anpi-line-fail-panel {
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.anpi-line-fail-panel__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #c2410c;
}

.anpi-line-fail-panel__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9a3412;
}

.anpi-line-fail-panel__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anpi-line-fail-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fed7aa;
}

.anpi-line-fail-item__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.anpi-line-fail-item__meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.anpi-line-fail-item__error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b45309;
  line-height: 1.45;
}

.anpi-line-fail-panel__cta {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ea580c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.anpi-line-fail-panel__cta:hover {
  background: #c2410c;
}

/* ── 最近の通知 ── */
.anpi-panel-card {
  padding: 24px 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

/* 対応が必要な項目（ダッシュボードショートカット） */
.anpi-action-required-section {
  margin-bottom: 0.85rem;
}

.anpi-action-required-section__head {
  margin-bottom: 0.55rem;
}

.anpi-action-required-section__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.anpi-action-required-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.anpi-action-required-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.anpi-action-required-card--stack {
  min-height: 76px;
}

.anpi-action-required-card--pending.anpi-action-required-card--stack:has(.anpi-action-required-card__badge--action) {
  border-color: #fecaca;
}

.anpi-action-required-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.anpi-action-required-card:active {
  background-color: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transform: scale(0.99);
}

.anpi-action-required-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.anpi-action-required-card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.anpi-action-required-card__main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 8px;
  overflow: hidden;
}

.anpi-action-required-card__trail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 90px;
  width: 90px;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.anpi-action-required-card__icon--rose {
  color: #e11d48;
}

.anpi-action-required-card__icon--orange {
  color: #ea580c;
}

.anpi-action-required-card__icon--green {
  color: #16a34a;
}

.anpi-action-required-card__icon--blue {
  color: #2563eb;
}

.anpi-action-required-card__icon--purple {
  color: #9333ea;
}

.anpi-action-required-card__icon--slate {
  color: #64748b;
}

.anpi-action-required-card__title {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anpi-action-required-card__chevron {
  flex: 0 0 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  color: #94a3b8;
}

.anpi-action-required-card__desc {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: #64748b;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anpi-action-required-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 22px;
  max-width: 68px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.anpi-action-required-card__badge--action {
  background: #dc2626;
  color: #fff;
  border-color: #b91c1c;
}

.anpi-action-required-card__badge--confirm {
  background: #fef9c3;
  color: #78350f;
  border-color: #fde047;
}

.anpi-action-required-card__badge--new {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.anpi-action-required-card__badge--unread {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

.anpi-action-required-card__badge--drill {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.anpi-action-required-card__badge--done,
.anpi-action-required-card__badge--settings,
.anpi-action-required-card__badge--muted {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.anpi-recent-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.anpi-recent-section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.anpi-recent-section__link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.anpi-recent-section__link:hover {
  text-decoration: underline;
}

.anpi-recent-empty {
  margin: 0 0 16px;
  padding: 28px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  text-align: center;
}

.anpi-recent-empty span {
  font-size: 13px;
  color: #64748b;
}

.anpi-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.anpi-recent-list > li + li {
  border-top: 1px solid #f1f5f9;
}

.anpi-recent-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 20px 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.anpi-recent-item:hover {
  background: #f8fafc;
  border-radius: 12px;
}

.anpi-recent-item:active {
  background-color: #f3f4f6;
  border-radius: 12px;
  transform: scale(0.99);
}

.anpi-recent-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.anpi-recent-item__icon svg {
  width: 22px;
  height: 22px;
}

.anpi-recent-item__icon--success {
  background: #dcfce7;
  color: #16a34a;
}

.anpi-recent-item__icon--read {
  background: #dbeafe;
  color: #2563eb;
}

.anpi-recent-item__icon--unread {
  background: #fee2e2;
  color: #dc2626;
}

.anpi-recent-item__icon--alert {
  background: #ffedd5;
  color: #ea580c;
}

.anpi-recent-item__icon--bell {
  background: #f3e8ff;
  color: #9333ea;
}

.anpi-recent-item__icon--info {
  background: #dbeafe;
  color: #2563eb;
}

.anpi-recent-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.anpi-recent-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.anpi-recent-item__message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anpi-recent-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 120px;
}

.anpi-recent-item__status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.anpi-recent-item__status--success {
  background: #dcfce7;
  color: #15803d;
}

.anpi-recent-item__status--read {
  background: #dbeafe;
  color: #1d4ed8;
}

.anpi-recent-item__status--unread {
  background: #fee2e2;
  color: #dc2626;
}

.anpi-recent-item__datetime {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.anpi-recent-item__datetime time {
  font-weight: 500;
}

.anpi-recent-item__chevron {
  font-size: 18px;
  line-height: 1;
  color: #cbd5e1;
  font-weight: 400;
}

.anpi-recent-item--unread .anpi-recent-item__title {
  color: #1e40af;
}

.anpi-recent-section__footer {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.anpi-recent-section__footer:hover {
  text-decoration: underline;
}

/* ── クイックメニュー ── */
.anpi-quick-section__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.anpi-quick-grid,
.anpi-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.anpi-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.anpi-quick-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.anpi-quick-card:active {
  background-color: #f3f4f6;
  transform: scale(0.99);
}

.anpi-action-btn.anpi-quick-card {
  text-align: left;
  font-weight: inherit;
}

.anpi-action-btn--ghost.anpi-quick-card {
  background: #fff;
  color: inherit;
}

.anpi-quick-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.anpi-quick-card__icon--blue {
  background: #eff6ff;
  color: #2563eb;
}

.anpi-quick-card__icon--purple {
  background: #faf5ff;
  color: #9333ea;
}

.anpi-quick-card__icon--gray {
  background: #f1f5f9;
  color: #475569;
}

.anpi-quick-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.anpi-quick-card__text strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.anpi-quick-card__text span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* スマホホーム用サマリー（PCでは非表示） */
.anpi-mobile-home-summary,
.anpi-mobile-detail-summary {
  display: none;
}

/* ── フッター ── */
.anpi-dashboard-footer {
  margin-top: 8px;
  padding: 20px 0 12px;
  text-align: center;
}

.anpi-dashboard-footer p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

/* ── レスポンシブ ── */
@media (max-width: 1100px) {
  .anpi-stat-grid,
  .anpi-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anpi-quick-grid,
  .anpi-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .anpi-urgent-panel__inner {
    grid-template-columns: auto 1fr;
    padding: 18px 20px;
  }

  .anpi-urgent-panel__deco {
    display: none;
  }

  .anpi-panel-card {
    padding: 18px 16px;
  }

  .anpi-stat-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .anpi-stat-card__value,
  .anpi-summary-card__value {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .anpi-dashboard-page .anpi-dash-header__inner {
    flex-wrap: wrap;
    padding-top: 20px;
    margin-bottom: 28px;
    gap: 12px;
  }

  .anpi-dashboard-page .anpi-dash-header__actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .anpi-dashboard-page {
    --dash-pad-x: 16px;
  }

  .anpi-dashboard-page .anpi-dash-header__inner {
    padding-top: 8px;
    margin-bottom: 28px;
  }

  .anpi-dashboard-page .anpi-dash-header__heading {
    gap: 6px;
  }

  .anpi-dashboard-page .anpi-dash-header__title {
    font-size: 28px;
    line-height: 1.22;
  }

  .anpi-dashboard-page .anpi-dash-header__sub {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.55;
  }

  .anpi-dashboard-page .anpi-dash-header__actions {
    padding-right: 6px;
    gap: 12px;
  }

  .anpi-stat-grid,
  .anpi-summary-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .anpi-quick-grid,
  .anpi-action-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .anpi-quick-section__title {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .anpi-quick-card {
    gap: 12px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .anpi-quick-card__icon {
    width: 43px;
    height: 43px;
  }

  .anpi-quick-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .anpi-quick-card__text {
    gap: 3px;
  }

  .anpi-quick-card__text strong {
    font-size: 13px;
  }

  .anpi-quick-card__text span {
    font-size: 11px;
  }

  .anpi-dash-register-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px;
  }

  .anpi-dash-register-banner__icon {
    width: 44px;
    height: 44px;
  }

  .anpi-dash-register-banner__icon svg {
    width: 24px;
    height: 24px;
  }

  .anpi-dashboard-empty__title {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .anpi-dashboard-empty__text {
    font-size: 12px;
    line-height: 1.5;
  }

  .anpi-dashboard-empty__cta {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  .anpi-panel-card {
    padding: 18px;
  }

  .anpi-recent-section__head {
    margin-bottom: 14px;
  }

  .anpi-recent-item {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 22px 0;
  }

  .anpi-recent-item__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 2px;
  }

  .anpi-recent-item__main {
    grid-column: 2;
    grid-row: 1;
    gap: 10px;
  }

  .anpi-recent-item__title {
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .anpi-recent-item__message {
    line-height: 1.62;
  }

  .anpi-recent-item__aside {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .anpi-recent-item__datetime {
    white-space: normal;
  }

  .anpi-recent-item__chevron {
    display: none;
  }

  .anpi-sidebar-ai {
    display: none;
  }
}

/* スマホ専用（960px以下）— アプリホームUI（PC非対象） */
@media (max-width: 960px) {
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] {
    --anpi-dash-mobile-scroll-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 48px);
    --anpi-dash-mobile-section-gap: 28px;
    --anpi-dash-mobile-card-radius: 18px;
    --anpi-dash-mobile-card-pad: 14px;
    --anpi-dash-mobile-gap: 12px;
    --anpi-dash-mobile-section-head-gap: 12px;
    --anpi-dash-mobile-btn-h: 44px;
    padding-bottom: var(--tasu-app-tabbar-pad, calc(72px + env(safe-area-inset-bottom, 0px))) !important;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .dash-content.anpi-dashboard-main {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .dash-main {
    min-height: 0 !important;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dash-layout {
    display: flex;
    flex-direction: column;
    gap: var(--anpi-dash-mobile-section-gap);
    padding-bottom: var(--anpi-dash-mobile-scroll-bottom) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="family"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="family"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="family"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="family"] .anpi-notify-anchor-panel {
    margin-top: 0;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="family"] #family.family-section {
    margin-bottom: 0;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .dash-app {
    min-height: auto !important;
    align-items: flex-start !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .dash-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .dash-content.anpi-dashboard-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="check"] .anpi-notify-anchor-panel {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 32px;
    min-height: auto;
    gap: 10px;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .dash-app {
    min-height: auto !important;
    align-items: flex-start !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .dash-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .dash-content.anpi-dashboard-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="no-response"] .anpi-notify-anchor-panel {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 28px;
    min-height: auto;
    gap: 10px;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .dash-app {
    min-height: auto !important;
    align-items: flex-start !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .dash-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .dash-content.anpi-dashboard-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="disaster"] .anpi-notify-anchor-panel {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 24px;
    min-height: auto;
    gap: 10px;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .dash-app {
    min-height: auto !important;
    align-items: flex-start !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .dash-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .dash-content.anpi-dashboard-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="drill"] .anpi-notify-anchor-panel {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 28px;
    min-height: auto;
    gap: 10px;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] {
    padding-bottom: calc(var(--tasu-app-tabbar-h, 60px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .dash-app {
    min-height: auto !important;
    align-items: flex-start !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .dash-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    width: 100% !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .dash-content.anpi-dashboard-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .anpi-dashboard-shell,
  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .anpi-dash-layout {
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"][data-anpi-notify-target="settings"] .anpi-notify-anchor-panel {
    margin-top: 0;
    padding-top: 16px;
    padding-bottom: 28px;
    min-height: auto;
    gap: 10px;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dash-register-banner {
    order: 1;
    margin-bottom: 0;
    padding: var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dashboard-empty__cta {
    min-height: var(--anpi-dash-mobile-btn-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary {
    display: block;
    order: 2;
    margin: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__card {
    padding: var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: var(--anpi-dash-mobile-card-pad) 10px;
    text-align: center;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--unread {
    background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--users,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--unread {
    border-bottom: 1px solid #edf0f3;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--users,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--sent {
    border-right: 1px solid #edf0f3;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__value {
    margin: 0;
    font-size: clamp(1.5rem, 6.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__value--alert {
    color: #b91c1c;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-home-summary__cell--unread .anpi-mobile-home-summary__label {
    color: #991b1b;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-urgent-panel {
    order: 3;
    margin: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-action-required-section] {
    display: block !important;
    order: 4;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-section__head {
    margin-bottom: var(--anpi-dash-mobile-section-head-gap);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-section__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card {
    min-height: 76px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__trail {
    flex: 0 0 90px;
    width: 90px;
    gap: 8px;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__main {
    flex: 1 1 0;
    gap: 4px;
    min-width: 0;
    padding-right: 8px;
    overflow: hidden;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__title,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__desc {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__icon {
    width: 24px;
    height: 24px;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__title {
    font-size: 1rem;
    font-weight: 700;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-action-required-card__desc {
    font-size: 0.8125rem;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-section {
    order: 5;
    margin: 0;
    padding-top: 0;
    border-top: none;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid .anpi-quick-card:nth-child(4) {
    display: none !important;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-line-fail-panel] {
    order: 6;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section {
    order: 7;
    margin: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card:active,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-item:active,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section__footer:active {
    background-color: #f3f4f6;
    transform: scale(0.99);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary {
    display: none !important;
    order: 8;
    margin: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__card {
    padding: var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 12px 10px;
    text-align: left;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__cell:nth-child(1),
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__cell:nth-child(2) {
    border-bottom: 1px solid #edf0f3;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__cell:nth-child(odd) {
    border-right: 1px solid #edf0f3;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__label {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__value {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-mobile-detail-summary__value--setting {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-summary-grid] {
    order: 90;
    display: none !important;
    margin: 0 !important;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dashboard-footer {
    display: none !important;
    order: 99;
    margin: 0;
    padding: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-dashboard-meta-sr {
    order: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-section__title,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-urgent-panel__title,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section__title {
    margin: 0 0 var(--anpi-dash-mobile-section-head-gap);
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid {
    gap: var(--anpi-dash-mobile-gap);
    margin-top: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card {
    gap: 10px;
    align-items: center;
    min-height: var(--anpi-dash-mobile-btn-h);
    padding: 10px var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card__text {
    gap: 2px;
    min-width: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card__icon svg {
    width: 18px;
    height: 18px;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid .anpi-quick-card:nth-child(1) .anpi-quick-card__icon {
    background: #eff6ff;
    color: #2563eb;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid .anpi-quick-card:nth-child(2) .anpi-quick-card__icon {
    background: #f0fdf4;
    color: #16a34a;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid .anpi-quick-card:nth-child(3) .anpi-quick-card__icon {
    background: #faf5ff;
    color: #9333ea;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-grid .anpi-quick-card:nth-child(4) .anpi-quick-card__icon {
    background: #f1f5f9;
    color: #475569;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card__text strong {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-card__text span {
    font-size: 0.6875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-urgent-panel__inner {
    padding: var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-panel-card,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section.anpi-panel-card {
    padding: var(--anpi-dash-mobile-card-pad);
    border-radius: var(--anpi-dash-mobile-card-radius);
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section__head {
    margin-bottom: var(--anpi-dash-mobile-section-head-gap);
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-line-fail-panel__cta {
    min-height: var(--anpi-dash-mobile-btn-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-item {
    padding: 12px 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-item__message {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section__footer {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 0.8125rem;
    transition: background-color 0.15s ease, transform 0.1s ease;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-stat-grid,
  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-summary-grid {
    margin-top: 0;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .tasu-mobile-shell-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    min-height: 48px;
    box-sizing: border-box;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .tasu-mobile-shell-head .tasu-mobile-page-head__back {
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
    min-height: var(--anpi-dash-mobile-btn-h);
    height: var(--anpi-dash-mobile-btn-h);
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  body.dash-body.anpi-dashboard-page.tasu-app-mobile-page[data-page="anpi-dashboard"] .tasu-mobile-shell-head .tasu-mobile-page-head__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 961px) {
  body.anpi-dashboard-page .anpi-mobile-home-summary,
  body.anpi-dashboard-page .anpi-mobile-detail-summary {
    display: none !important;
  }
}

.anpi-notify-anchor-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.anpi-notify-anchor {
  padding: 1rem 1.125rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  scroll-margin-top: 5.5rem;
  scroll-margin-bottom: calc(var(--tasu-app-tabbar-pad, 72px) + 1rem);
}

.anpi-notify-anchor--highlight {
  border-color: #fb7185;
  box-shadow:
    0 0 0 3px rgba(244, 63, 94, 0.28),
    0 12px 28px rgba(190, 18, 60, 0.12);
  animation: anpi-notify-anchor-pulse 0.85s ease-out 2;
}

@keyframes anpi-notify-anchor-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(244, 63, 94, 0.42),
      0 12px 28px rgba(190, 18, 60, 0.12);
  }
  70% {
    box-shadow:
      0 0 0 14px rgba(244, 63, 94, 0),
      0 12px 28px rgba(190, 18, 60, 0.12);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(244, 63, 94, 0),
      0 12px 28px rgba(190, 18, 60, 0.12);
  }
}

.anpi-notify-anchor__chip {
  display: inline-flex;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ffe4e6;
  color: #be123c;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.anpi-notify-anchor__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.anpi-notify-anchor__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.anpi-notify-anchor__meta {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}

body.anpi-dashboard-page--notify-focus [data-anpi-line-admin],
body.anpi-dashboard-page--notify-focus [data-anpi-line-mode],
body.anpi-dashboard-page--notify-focus [data-anpi-empty-unregistered],
body.anpi-dashboard-page--notify-focus [data-anpi-mobile-home-summary],
body.anpi-dashboard-page--notify-focus [data-anpi-summary-grid],
body.anpi-dashboard-page--notify-focus .anpi-urgent-panel,
body.anpi-dashboard-page--notify-focus [data-anpi-line-fail-panel],
body.anpi-dashboard-page--notify-focus [data-anpi-action-required-section],
body.anpi-dashboard-page--notify-focus .anpi-recent-section,
body.anpi-dashboard-page--notify-focus [data-anpi-mobile-detail-summary],
body.anpi-dashboard-page--notify-focus .anpi-quick-section {
  display: none !important;
}

body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-action-required-section],
body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-quick-section,
body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-recent-section,
body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] .anpi-urgent-panel,
body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-mobile-detail-summary],
body.dash-body.anpi-dashboard-page--notify-focus.tasu-app-mobile-page[data-page="anpi-dashboard"] [data-anpi-mobile-home-summary] {
  display: none !important;
}

body:not(.anpi-dashboard-page--notify-focus) [data-anpi-notify-anchor-panel] {
  display: none;
}

body.anpi-dashboard-page--notify-focus .anpi-notify-anchor-panel {
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: min(18vh, 8rem);
  min-height: calc(100vh - 5.5rem - var(--tasu-app-tabbar-pad, 72px));
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="check"] .anpi-notify-anchor-panel {
  padding-top: 16px;
  padding-bottom: 32px;
  min-height: auto;
  gap: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="check"] #check .anpi-notify-anchor__chip {
  margin-bottom: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="check"] #check .anpi-notify-anchor__title {
  margin-bottom: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="check"] #check .anpi-notify-kv {
  margin-top: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="check"] #check .anpi-notify-actions {
  margin-top: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="no-response"] .anpi-notify-anchor-panel {
  padding-top: 16px;
  padding-bottom: 28px;
  min-height: auto;
  gap: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="no-response"] #no-response.anpi-notify-anchor--active {
  padding-bottom: 0;
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff 0%, #fffafb 100%);
  box-shadow: 0 2px 10px rgba(190, 18, 60, 0.05);
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="no-response"] #no-response .anpi-notify-anchor__text {
  margin-bottom: 0;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="no-response"] #no-response .anpi-notify-list {
  margin-top: 10px;
  gap: 10px;
}

#no-response .anpi-notify-nr-item {
  padding: 14px 14px 18px;
}

#no-response .anpi-notify-nr-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#no-response .anpi-notify-nr-item__name {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
  flex: 1 1 8rem;
  min-width: 0;
}

.anpi-notify-nr-elapsed-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

#no-response .anpi-notify-nr-meta {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

#no-response .anpi-notify-nr-meta__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

#no-response .anpi-notify-nr-meta__label {
  flex: 0 0 4.5rem;
  color: #64748b;
  font-weight: 500;
}

#no-response .anpi-notify-nr-meta__label::after {
  content: "：";
}

#no-response .anpi-notify-nr-meta__row:not(.anpi-notify-nr-meta__row--elapsed) .anpi-notify-nr-meta__value {
  color: #334155;
  font-weight: 500;
}

#no-response .anpi-notify-nr-meta__row--elapsed {
  font-size: 0.875rem;
  margin-top: 2px;
}

#no-response .anpi-notify-nr-meta__row--elapsed .anpi-notify-nr-meta__label {
  color: #c2410c;
  font-weight: 700;
}

#no-response .anpi-notify-nr-meta__value--elapsed {
  color: #dc2626;
  font-weight: 700;
}

#no-response .anpi-notify-nr-actions {
  margin-top: 12px;
  margin-bottom: 0;
}

#no-response [data-anpi-notify-action="nr-handled"] {
  background: #f7f7f7;
  color: #666;
  border-color: #dcdcdc;
  font-weight: 600;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="disaster"] .anpi-notify-anchor-panel {
  padding-top: 16px;
  padding-bottom: 24px;
  min-height: auto;
  gap: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="disaster"] #disaster.anpi-notify-anchor--active {
  min-height: auto;
}

#disaster .anpi-notify-caution__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

#disaster .anpi-notify-actions {
  gap: 0;
}

#disaster [data-anpi-notify-action="disaster-detail"] {
  background: transparent;
  border: none;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  min-height: auto;
  height: auto;
  margin-top: 12px;
  padding: 0;
  justify-content: flex-start;
  box-shadow: none;
}

#disaster [data-anpi-notify-action="disaster-detail"]:active {
  transform: none;
  opacity: 0.72;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="drill"] .anpi-notify-anchor-panel {
  padding-top: 16px;
  padding-bottom: 28px;
  min-height: auto;
  gap: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="drill"] #drill.anpi-notify-anchor--active {
  min-height: auto;
  height: auto;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="settings"] .anpi-notify-anchor-panel {
  padding-top: 16px;
  padding-bottom: 28px;
  min-height: auto;
  gap: 10px;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="settings"] #settings.anpi-notify-anchor--active {
  min-height: auto;
  height: auto;
}

#settings .anpi-notify-kv__row--change dd {
  font-weight: 700;
}

body.anpi-dashboard-page--notify-focus[data-anpi-notify-target="family"] .anpi-notify-anchor-panel {
  padding-top: 0.75rem;
  padding-bottom: 0;
  min-height: auto;
  gap: 0;
  margin-bottom: 0;
}

body.anpi-dashboard-page--notify-focus .anpi-notify-anchor--dimmed {
  display: none;
}

body.anpi-dashboard-page--notify-focus .anpi-notify-anchor--active {
  padding: 1.25rem 1.25rem 1.125rem;
  border-color: #fda4af;
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
}

body.anpi-dashboard-page--notify-focus .anpi-notify-anchor--active .anpi-notify-anchor__title {
  font-size: 1.125rem;
}

body.anpi-dashboard-page--notify-focus #family.anpi-notify-anchor--active {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#family .anpi-notify-family-panel {
  display: grid;
  gap: 14px;
  margin: 0;
}

#family .anpi-notify-check-summary {
  padding: 1rem 1.125rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

#family .anpi-notify-family-history,
#family .family-history-section {
  padding: 1rem 1.125rem 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

#family .anpi-notify-check-summary .anpi-notify-kv--summary {
  margin-top: 0.5rem;
}

#family .anpi-notify-check-summary .info-label,
#family .anpi-notify-check-summary .anpi-notify-kv__row dt {
  color: #4a5568;
  font-weight: 500;
}

#family .anpi-notify-check-summary .info-value,
#family .anpi-notify-check-summary .anpi-notify-kv__row dd {
  color: #1a202c;
  font-weight: 600;
}

#family .anpi-notify-summary-value--safe {
  color: #15803d;
}

#family .anpi-notify-summary-value--help {
  color: #c2410c;
}

#family .anpi-notify-family-history .anpi-notify-anchor__meta {
  margin-top: 0.5rem;
}

#family .anpi-notify-family-history .anpi-notify-list {
  margin-top: 0.65rem;
  gap: 0.65rem;
}

/* 通知アンカー対応UI */
.anpi-notify-kv {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.anpi-notify-kv--compact {
  margin-top: 0.55rem;
  gap: 0.35rem;
}

.anpi-notify-kv__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

.anpi-notify-kv__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: #94a3b8;
}

.anpi-notify-kv__row dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
  word-break: break-word;
}

/* 安否確認 — 対象・期限の可読性（DOM構造は anpi-notify-kv の dt/dd のまま） */
.info-label,
#check .anpi-notify-kv__row dt {
  color: #4a5568;
  font-weight: 500;
}

.info-value,
#check .anpi-notify-kv__row dd {
  color: #1a202c;
  font-weight: 600;
}

.anpi-notify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.anpi-notify-actions--inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.anpi-notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.anpi-notify-btn--compact {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  flex: 1 1 auto;
}

.anpi-notify-btn--primary {
  background: linear-gradient(180deg, #fb7185 0%, #f43f5e 100%);
  color: #fff;
  border-color: #f43f5e;
}

.anpi-notify-btn--warn {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

#check [data-anpi-notify-action="check-help"].anpi-notify-btn--warn,
#check .btn-need-help {
  background: #fff7ed;
  color: #9a3412;
  border: 2px solid #ea580c;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.12);
}

#check [data-anpi-notify-action="check-safe"].anpi-notify-btn--primary {
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.28);
}

.anpi-notify-btn--ghost {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}

#check [data-anpi-notify-action="check-later"].anpi-notify-btn--ghost {
  background: #f7f7f7;
  color: #666;
  border-color: #dcdcdc;
}

.anpi-notify-btn:active {
  transform: translateY(1px);
}

.anpi-notify-status {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.65rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.anpi-notify-status--done .anpi-notify-status__icon {
  color: #16a34a;
}

.anpi-notify-status__icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.anpi-notify-status__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
}

.anpi-notify-status__text {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #15803d;
}

.anpi-notify-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.anpi-notify-list-item {
  padding: 0.85rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

#family .anpi-notify-list-item {
  padding: calc(0.85rem + 5px) 0.9rem;
}

#family .anpi-notify-response--safe {
  color: #15803d;
  font-weight: 600;
}

#family .anpi-notify-response-help {
  color: #c2410c;
  font-weight: 600;
}

#family .anpi-notify-family-history .anpi-notify-list-more {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
}

#family .anpi-notify-btn--block {
  display: flex;
  width: 100%;
  flex: none;
}

.anpi-notify-list-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.anpi-notify-list-item__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.anpi-notify-list-item__sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.anpi-notify-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.anpi-notify-badge--new {
  background: #fff1f2;
  color: #e11d48;
}

.anpi-notify-badge--unread {
  background: #ffedd5;
  color: #9a3412;
}

.anpi-notify-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

.anpi-notify-badge--done {
  background: #ecfdf5;
  color: #059669;
}

.anpi-notify-detail {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.anpi-notify-detail__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.anpi-notify-detail__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
}

.anpi-notify-detail__meta {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.anpi-notify-caution {
  margin-top: 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.6rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.anpi-notify-caution__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c2410c;
}

.anpi-notify-caution__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9a3412;
}

@media (max-width: 420px) {
  .anpi-notify-kv__row {
    grid-template-columns: 4.75rem 1fr;
  }

  .anpi-notify-actions--inline .anpi-notify-btn--compact {
    flex: 1 1 calc(50% - 0.25rem);
  }
}
