@import url("tasful-ai-logo.css?v=4");

/* 会員ダッシュボード — 業務管理UI */
:root {
  --dash-navy: #071733;
  --dash-navy-dark: #031226;
  --dash-navy-soft: #1e3a5f;
  --dash-gold: #d4af37;
  --dash-gold-light: #e8c96a;
  --dash-gold-deep: #967622;
  --dash-cta-text: #001b3d;
  --dash-bg: #f4f6f9;
  --dash-card: #ffffff;
  --dash-border: #e2e8f0;
  --dash-text: #334155;
  --dash-text-muted: #64748b;
  --dash-sidebar-w: 260px;
  --dash-content-max: 1500px;
  --dash-pad-x: 44px;
  --dash-pad-top: 36px;
  --dash-pad-bottom: 52px;
  --dash-header-h: 68px;
  --tasful-header-back-min-h: 36px;
  --tasful-header-bar-border: 1px solid var(--dash-border);
  --tasful-back-link-min-h: 36px;
  --tasful-back-link-color: #967622;
  --tasful-back-link-color-muted: #64748b;
  --tasful-back-link-font-size: 0.8125rem;
  --dash-radius-card: 20px;
  --dash-radius-btn: 12px;
  --dash-shadow: 0 2px 8px rgba(7, 23, 51, 0.06);
  --dash-shadow-hover: 0 12px 32px rgba(7, 23, 51, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.dash-body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dash-text);
  background: var(--dash-bg);
}

.dash-app {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* 中央寄せシェル（ヘッダー・メイン共通） */
.dash-shell {
  width: min(100%, var(--dash-content-max));
  max-width: var(--dash-content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */
.dash-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  flex-shrink: 0;
  width: var(--dash-sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--dash-navy) 0%, var(--dash-navy-dark) 100%);
  color: #e2e8f0;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.dash-sidebar__brand {
  padding: 16px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-sidebar__brand .dash-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.dash-sidebar__brand .tasful-ai-logo-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.dash-sidebar__brand .tasful-ai-logo-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.dash-sidebar__brand .tasful-ai-logo-text .main {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}

.dash-sidebar__brand .tasful-ai-logo-text .sub {
  display: none;
}

.dash-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 28px;
}

.dash-nav-group {
  margin-bottom: 20px;
}

.dash-nav-group__label {
  margin: 0 0 8px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dash-nav-link.is-active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--dash-gold-light);
}

.dash-nav-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.dash-nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dash-gold-light), var(--dash-gold));
  color: var(--dash-cta-text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.dash-sidebar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(15, 23, 42, 0.45);
}

/* Main — サイドバー右の全幅 */
.dash-main {
  flex: 1;
  min-width: 0;
  width: calc(100vw - var(--dash-sidebar-w));
  max-width: none;
  margin-left: var(--dash-sidebar-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--dash-card);
  border-bottom: 1px solid var(--dash-border);
  box-shadow: var(--dash-shadow);
}

.dash-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--dash-header-h);
  min-height: var(--dash-header-h);
  padding-left: var(--dash-pad-x);
  padding-right: var(--dash-pad-x);
}

.dash-header--member .dash-header__intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding-left: 12px;
  border-left: 3px solid var(--dash-gold);
}

.dash-header__heading,
.dash-header__intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-header__heading .dash-header__sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: #52607a;
}

.dash-header__view--account-notify {
  display: none;
}

body[data-page="account-settings"]:has(#notifications:target) .dash-header__view--account-default {
  display: none;
}

body[data-page="account-settings"]:has(#notifications:target) .dash-header__view--account-notify {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-header--member .dash-header__title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dash-navy);
}

.dash-header--member .dash-header__sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: #52607a;
}

.dash-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dash-menu-btn {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  background: #fff;
  color: var(--dash-navy);
  cursor: pointer;
}

.dash-header__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--dash-navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100%, 20rem);
}

.dash-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.dash-header__sep {
  width: 1px;
  height: 32px;
  margin: 0 4px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* ヘッダー右上 — メッセージ / 通知（リンク風・横並び） */
.dash-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--dash-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.dash-header-link:hover {
  opacity: 0.75;
  background: transparent;
  box-shadow: none;
}

.dash-header-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.dash-header-link__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-navy);
  line-height: 1.2;
}

.dash-header-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 50%;
  background: var(--dash-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dash-header-link__badge[hidden] {
  display: none;
}

.dash-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.dash-profile:hover {
  opacity: 0.85;
  background: transparent;
}

.dash-profile__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  background: #f1f5f9;
}

.dash-profile__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-profile__name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--dash-navy);
  line-height: 1.25;
  white-space: nowrap;
}

.dash-profile__sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-text-muted);
  line-height: 1.25;
  white-space: nowrap;
}

.dash-profile__chevron {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  flex-shrink: 0;
  color: #94a3b8;
}

.dash-content {
  flex: 1;
  width: 100%;
  padding: var(--dash-pad-top) var(--dash-pad-x) var(--dash-pad-bottom);
}

/* SP: 主要導線チップ（PCでは非表示・サイドバーはそのまま） */
.dash-sp-nav {
  display: none;
}

.dash-sp-nav__track {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dash-sp-nav__track::-webkit-scrollbar {
  display: none;
}

.dash-sp-nav__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
  color: var(--dash-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dash-sp-nav__chip:hover {
  border-color: var(--dash-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.22);
}

.dash-sp-nav__chip:active {
  transform: translateY(1px);
}

.dash-welcome {
  margin: 0 0 32px;
}

.dash-welcome__title {
  display: block;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--dash-navy);
  letter-spacing: -0.02em;
}

.dash-welcome__title strong {
  font-weight: 900;
}

.dash-welcome__sub {
  display: block;
  margin: 0;
  font-size: 15px;
  color: var(--dash-text-muted);
}

/* Stat cards（summary） */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.dash-stat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
  padding: 26px 30px;
  border-radius: var(--dash-radius-card);
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  box-shadow: var(--dash-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dash-stat-card:hover {
  box-shadow: var(--dash-shadow-hover);
  transform: translateY(-2px);
}

.dash-stat-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.dash-stat-card--blue .dash-stat-card__icon {
  background: #eff6ff;
  color: #2563eb;
}
.dash-stat-card--green .dash-stat-card__icon {
  background: #ecfdf5;
  color: #059669;
}
.dash-stat-card--amber .dash-stat-card__icon {
  background: #fffbeb;
  color: #d97706;
}
.dash-stat-card--purple .dash-stat-card__icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.dash-stat-card__label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dash-text-muted);
}

.dash-stat-card__value {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  color: var(--dash-navy);
  line-height: 1;
}

.dash-stat-card__value small {
  font-size: 16px;
  font-weight: 700;
}

.dash-stat-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-navy-soft);
}

/* 2カラム — 右カラムを参考画像寄りに広く */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.95fr);
  gap: 28px;
  align-items: start;
  width: 100%;
}

.dash-grid__primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-grid__secondary {
  min-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dash-grid__secondary .dash-card + .dash-card {
  margin-top: 0;
}

.dash-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-card);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 100%;
}

.dash-card:hover {
  box-shadow: var(--dash-shadow-hover);
}

#dash-ongoing.dash-card,
#dash-notices.dash-card,
#dash-fees.dash-card {
  padding: 0;
}

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--dash-border);
}

.dash-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--dash-navy);
}

.dash-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-navy-soft);
  text-decoration: none;
  white-space: nowrap;
}

.dash-card__body {
  padding: 12px 20px 20px;
}

.dash-card__body--padded {
  padding: 22px 26px 26px;
}

/* Transaction rows */
.dash-tx-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.dash-tx-row:hover {
  background: var(--dash-bg);
}

.dash-tx-row + .dash-tx-row {
  border-top: 1px solid #f1f5f9;
}

.dash-tx-row__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.dash-tx-row__main {
  flex: 1;
  min-width: 0;
}

.dash-tx-row__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--dash-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-tx-row__meta {
  margin: 0;
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.55;
}

.dash-tx-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.dash-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.dash-badge--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.dash-badge--green {
  background: #d1fae5;
  color: #047857;
}
.dash-badge--amber {
  background: #fef3c7;
  color: #b45309;
}
.dash-badge--orange {
  background: #ffedd5;
  color: #c2410c;
}
.dash-badge--slate {
  background: #f1f5f9;
  color: #475569;
}
.dash-badge--navy {
  background: #e0e7ef;
  color: var(--dash-navy);
}
.dash-badge--muted {
  background: #f1f5f9;
  color: #94a3b8;
}

.dash-tx-row__chevron {
  color: #94a3b8;
  font-size: 18px;
}

.dash-empty {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--dash-text-muted);
  line-height: 1.65;
}

/* Notices */
.dash-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.dash-notice:hover {
  background: var(--dash-bg);
}

.dash-notice + .dash-notice {
  border-top: 1px solid #f1f5f9;
}

.dash-notice__content {
  flex: 1;
  min-width: 0;
}

.dash-notice__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.dash-notice__tag--important {
  background: #fee2e2;
  color: #b91c1c;
}
.dash-notice__tag--new {
  background: #dbeafe;
  color: #1d4ed8;
}
.dash-notice__tag--campaign {
  background: #ffedd5;
  color: #c2410c;
}

.dash-notice__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--dash-navy);
  line-height: 1.45;
}

.dash-notice__date {
  flex-shrink: 0;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-align: right;
  white-space: nowrap;
}

#dash-notices .dash-card__body {
  padding: 12px 28px 24px;
}

/* Fee card */
.dash-fee-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-fee-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.dash-fee-top__amount {
  flex: 1;
  min-width: 0;
}

.dash-fee-summary__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text-muted);
}

.dash-fee-summary__amount {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1.1;
}

.dash-fee-top__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dash-fee-summary__sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--dash-text-muted);
  line-height: 1.55;
}

.dash-fee-history-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.dash-fee-history-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-navy-soft);
  text-decoration: none;
}

.dash-fee-history-link:hover {
  text-decoration: underline;
}

.dash-fee-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--dash-text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.dash-fee-list li {
  padding: 8px 0;
}

.dash-fee-list li + li {
  border-top: 1px solid #f1f5f9;
}

.dash-fee-list a {
  color: var(--dash-navy);
  font-weight: 700;
  text-decoration: none;
}

.dash-fee-list a:hover {
  text-decoration: underline;
}

#dash-fees .dash-btn--gold {
  width: auto;
  min-width: 168px;
  padding: 0 28px;
  white-space: nowrap;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: var(--dash-radius-btn);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.dash-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--dash-shadow-hover);
}

.dash-btn--gold {
  width: 100%;
  background: linear-gradient(135deg, var(--dash-gold-light), var(--dash-gold));
  color: var(--dash-cta-text);
  box-shadow:
    0 4px 16px rgba(212, 175, 55, 0.35),
    0 2px 6px rgba(7, 23, 51, 0.08);
}

.dash-btn--gold:hover {
  filter: brightness(1.04);
}

.dash-btn--ghost {
  margin-top: 12px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--dash-border);
  color: var(--dash-navy);
}

#dash-fees .dash-btn--ghost {
  width: auto;
  margin-top: 0;
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-navy-soft);
}

/* Quick actions — 左カラム内4列 */
.dash-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.dash-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 108px;
  height: auto;
  padding: 18px;
  border-radius: 16px;
  background: var(--dash-quick-bg, var(--dash-card));
  border: 1px solid var(--dash-quick-border, var(--dash-border));
  text-decoration: none;
  color: var(--dash-navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
  box-shadow: var(--dash-shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background-color 0.2s;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

button.dash-quick-card {
  appearance: none;
  -webkit-appearance: none;
}

.dash-quick-card--catalog {
  --dash-quick-bg: #eef6ff;
  --dash-quick-icon: #2563eb;
  --dash-quick-border: #dbeafe;
}

.dash-quick-card--catalog.is-active {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

/* legacy quick themes (other pages may reference) */
.dash-quick-card--explore {
  --dash-quick-bg: #eef6ff;
  --dash-quick-icon: #2563eb;
  --dash-quick-border: #dbeafe;
}

.dash-quick-card--publish {
  --dash-quick-bg: #eef8ff;
  --dash-quick-icon: #0284c7;
  --dash-quick-border: #e0f2fe;
}

.dash-quick-card--comms {
  --dash-quick-bg: #eefbf4;
  --dash-quick-icon: #16a34a;
  --dash-quick-border: #dcfce7;
}

.dash-quick-card--anpi-hub {
  --dash-quick-bg: #f5f0ff;
  --dash-quick-icon: #7c3aed;
  --dash-quick-border: #ede9fe;
}

/* legacy quick themes (other pages may reference) */
.dash-quick-card--service {
  --dash-quick-bg: #eef6ff;
  --dash-quick-icon: #2563eb;
  --dash-quick-border: #dbeafe;
}

.dash-quick-card--consult {
  --dash-quick-bg: #eefbf4;
  --dash-quick-icon: #16a34a;
  --dash-quick-border: #dcfce7;
}

.dash-quick-card--anpi {
  --dash-quick-bg: #f5f0ff;
  --dash-quick-icon: #7c3aed;
  --dash-quick-border: #ede9fe;
}

.dash-quick-card--anpi-register {
  --dash-quick-bg: #fff7eb;
  --dash-quick-icon: #d97706;
  --dash-quick-border: #ffedd5;
}

.dash-quick-card--anpi-notify {
  --dash-quick-bg: #fff1f2;
  --dash-quick-icon: #dc2626;
  --dash-quick-border: #ffe4e6;
}

.dash-quick-card--post {
  --dash-quick-bg: #eef8ff;
  --dash-quick-icon: #0284c7;
  --dash-quick-border: #e0f2fe;
}

.dash-quick-card--profile {
  --dash-quick-bg: #eefcfc;
  --dash-quick-icon: #0f766e;
  --dash-quick-border: #ccfbf1;
}

.dash-quick-card[class*="dash-quick-card--"] .dash-quick-card__icon {
  background: #fff;
  color: var(--dash-quick-icon);
}

.dash-quick-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--dash-bg);
  color: var(--dash-navy);
}

@media (min-width: 1025px) {
  .dash-quick-card[class*="dash-quick-card--"]:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--dash-quick-bg) 88%, var(--dash-quick-icon));
    border-color: color-mix(in srgb, var(--dash-quick-icon) 18%, var(--dash-quick-border));
    box-shadow: 0 12px 32px rgba(7, 23, 51, 0.1);
  }
}

.dash-disclaimer {
  margin: 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
  line-height: 1.65;
  color: #9a3412;
}

/* 1024px以下 — 2カラム→1カラム */
@media (max-width: 1024px) {
  :root {
    --dash-pad-x: 28px;
    --dash-pad-top: 28px;
    --dash-pad-bottom: 40px;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .dash-stat-card {
    min-height: 140px;
    padding: 24px;
  }

  .dash-stat-card__value {
    font-size: 36px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dash-grid__secondary {
    min-width: 0;
  }

  .dash-fee-top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .dash-fee-top__action {
    justify-content: stretch;
  }

  #dash-fees .dash-btn--gold {
    width: 100%;
    min-width: 0;
  }

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

@media (max-width: 768px) {
  :root {
    --dash-pad-x: 16px;
    --dash-pad-top: 20px;
    --dash-pad-bottom: 32px;
  }

  .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.is-open {
    transform: translateX(0);
  }

  .dash-sidebar:not(.is-open) .dash-sidebar__nav {
    display: none;
  }

  .dash-sidebar__overlay.is-visible {
    display: block;
  }

  .dash-sp-nav {
    display: block;
    margin: 0 0 16px;
  }

  .dash-sp-nav__track {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .dash-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .dash-menu-btn {
    display: flex;
  }

  .dash-welcome__title {
    font-size: 24px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dash-stat-card {
    min-height: 128px;
    padding: 22px 24px;
  }

  .dash-stat-card__value {
    font-size: 32px;
  }

  .dash-tx-row {
    min-height: 80px;
    padding: 14px 12px;
  }

  .dash-tx-row__thumb {
    width: 56px;
    height: 56px;
  }

  .dash-header__sep {
    display: none;
  }

  .dash-header-link {
    position: relative;
    padding: 6px 10px;
  }

  .dash-header-link__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dash-profile {
    padding-left: 10px;
  }

  .dash-profile__text {
    display: none;
  }

  .dash-profile__chevron {
    display: none;
  }

  .dash-header__inner {
    height: 60px;
    min-height: 60px;
    padding-left: var(--dash-pad-x);
    padding-right: var(--dash-pad-x);
  }

  .dash-header--member .dash-header__title {
    font-size: 16px;
  }

  .dash-header--member .dash-header__sub {
    font-size: 12px;
    line-height: 1.3;
  }

  .dash-quick {
    grid-template-columns: 1fr 1fr;
  }

  .dash-quick-card {
    height: auto;
    min-height: 80px;
  }
}

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

.dash-settings {
  max-width: 720px;
}

.dash-settings + .dash-settings {
  margin-top: 20px;
}

.dash-settings__lead {
  margin: 0 0 20px;
  color: var(--dash-muted, #64748b);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.dash-profile-avatar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--dash-border, #e2e8f0);
  border-radius: 16px;
  background: #fafbfc;
}

.dash-profile-avatar__preview-wrap {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 16px rgba(7, 23, 51, 0.08);
  background: #fff;
}

.dash-profile-avatar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-profile-avatar__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.dash-profile-avatar__body > .dash-field__label {
  margin: 0;
}

.dash-profile-avatar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-profile-avatar__input {
  display: none;
}

@media (max-width: 560px) {
  .dash-profile-avatar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dash-profile-avatar__actions {
    justify-content: center;
  }
}

.dash-settings__form {
  display: grid;
  gap: 18px;
}

.dash-field {
  display: grid;
  gap: 8px;
}

.dash-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-text, #1e293b);
}

.dash-field__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--dash-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.dash-field__input:focus {
  outline: 2px solid rgba(150, 118, 34, 0.35);
  border-color: #c4a24a;
}

.dash-field__input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.dash-field__hint,
.dash-field__error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.dash-field__hint {
  color: #94a3b8;
}

.dash-field__error {
  color: #dc2626;
}

.dash-settings__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dash-btn--primary {
  background: linear-gradient(135deg, #d4af37, #967622);
  color: #fff;
}

.dash-btn--secondary {
  background: #fff;
  border-color: var(--dash-border, #e2e8f0);
  color: var(--dash-text, #1e293b);
}

.dash-btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.dash-settings__toast {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.875rem;
}

.dash-settings__toast[data-tone="info"] {
  background: #eff6ff;
  color: #1d4ed8;
}

/* アカウント系 — 共通ユーティリティヘッダー（ページタイトルは本文へ） */
.dash-header--account .dash-header__heading {
  display: none !important;
}

.dash-header--account .dash-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-header--account .dash-header__logo {
  display: none;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

@media (max-width: 960px) {
  .dash-header--account .dash-header__logo {
    display: flex;
  }
}

/* アカウント系 — 統一ページ見出し（本文先頭） */
.dash-member-page-head {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 0 0;
  box-sizing: border-box;
}

.dash-member-page-head__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: #967622;
}

.dash-member-page-head__title {
  margin: 0 0 11px;
  font-size: 1.5rem;
  font-weight: 800 !important;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--dash-navy, #071733);
}

.dash-member-page-head__sub {
  margin: 0 0 32px !important;
  max-width: 52rem;
  padding-bottom: 0;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.875rem;
  line-height: 1.7 !important;
  color: var(--dash-text-muted, #64748b);
}

@media (min-width: 961px) {
  .dash-member-page-head {
    padding-top: 16px;
  }

  .dash-member-page-head__title {
    font-size: 1.875rem;
    margin-bottom: 12px;
  }

  .dash-member-page-head__sub {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1025px) {
  .dash-member-page-head__title {
    font-size: 42px;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .dash-member-page-head__sub {
    font-size: 15px;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
  }

  .dash-settings,
  .dash-settings__actions--form {
    max-width: 1100px;
  }
}

.dash-settings-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.dash-settings-status__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a5f;
}

.dash-settings-status__value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1d4ed8;
}

.dash-connect-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-connect-card__sub {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--dash-text-muted, #64748b);
}

.dash-connect-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.dash-connect-badge--apply,
.dash-connect-badge--identity,
.dash-connect-badge--qualification,
.dash-connect-badge--reviewing {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.dash-connect-badge--approved,
.dash-connect-badge--ready {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.dash-connect-lead {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
}

.dash-connect-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dash-connect-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.875rem;
}

.dash-connect-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.dash-connect-step.is-done .dash-connect-step__dot {
  background: #10b981;
}

.dash-connect-step.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.dash-connect-step.is-active .dash-connect-step__dot {
  background: #2563eb;
}

.dash-connect-step.is-current {
  border-width: 2px;
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  font-weight: 700;
}

.dash-connect-step.is-current .dash-connect-step__dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.dash-connect-step__label {
  flex: 1;
  min-width: 0;
}

.dash-connect-step__here {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 999px;
}

.dash-connect-card--hero {
  border-color: #93c5fd;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
}

.dash-connect-card--hero .dash-card__body {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.dash-connect-card--ready {
  border-color: #6ee7b7;
}

.dash-connect-ready {
  margin: 0 0 16px;
  padding: 14px 16px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  display: grid;
  gap: 8px;
}

.dash-connect-ready__item {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #047857;
}

.dash-settings-fold {
  margin-bottom: 16px;
}

.dash-settings-fold__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  list-style: none;
}

.dash-settings-fold__summary::-webkit-details-marker {
  display: none;
}

.dash-settings-fold[open] .dash-settings-fold__summary {
  margin-bottom: 10px;
  color: #334155;
  border-style: solid;
}

.dash-settings-fold__card {
  margin-top: 0;
}

.dash-connect-banner {
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.dash-connect-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.dash-connect-banner__text {
  flex: 1 1 220px;
  min-width: 0;
}

.dash-connect-banner__tag {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #c2410c;
}

.dash-connect-banner__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.55;
  color: #9a3412;
}

.dash-connect-banner__sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #7c2d12;
}

.dash-connect-card--identity-phase .dash-connect-actions {
  display: none !important;
}

.dash-connect-banner__cta {
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.dash-connect-panel {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
}

.dash-connect-panel__title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.dash-connect-panel__text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.dash-connect-actions {
  display: grid;
  gap: 10px;
}

.dash-app [hidden],
.dash-connect-panel[hidden],
.dash-connect-ready[hidden],
.dash-connect-actions[hidden] {
  display: none !important;
}

.dash-connect-disclaimer {
  margin-top: 12px;
}

.dash-field--radios {
  margin: 0;
  padding: 0;
  border: 0;
}

.dash-field--radios .dash-field__label {
  margin-bottom: 4px;
}

.dash-radio-group {
  display: grid;
  gap: 10px;
}

.dash-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--dash-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9375rem;
}

.dash-radio:has(input:checked) {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.dash-radio input {
  accent-color: #2563eb;
}

.dash-settings-subcard {
  margin: 16px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #fafbfc;
}

.dash-settings-subcard__title {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dash-text, #334155);
}

.dash-settings__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dash-settings-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.dash-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.dash-btn--block-sm {
  min-width: 160px;
}

.dash-settings__actions--form {
  max-width: 720px;
  margin-top: 4px;
}

.dash-toggle-list {
  display: grid;
  gap: 0;
}

.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
}

.dash-toggle-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-toggle-row:first-child {
  padding-top: 0;
}

.dash-toggle-row__text {
  flex: 1;
  min-width: 0;
}

.dash-toggle-row__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text, #334155);
}

.dash-toggle-row__hint {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--dash-text-muted, #64748b);
  line-height: 1.5;
}

.dash-badge-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: middle;
}

.dash-toggle-row--soon .dash-toggle-row__label {
  color: #64748b;
}

.dash-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.dash-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-toggle__track {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.dash-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.dash-toggle input:checked + .dash-toggle__track {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.dash-toggle input:checked + .dash-toggle__track::after {
  transform: translateX(22px);
}

.dash-toggle input:focus-visible + .dash-toggle__track {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

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

@media (max-width: 390px) {
  .dash-settings__row {
    grid-template-columns: 1fr;
  }

  .dash-btn--block-sm,
  .dash-settings__actions .dash-btn--primary {
    width: 100%;
  }

  .dash-settings-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-toggle-row {
    gap: 12px;
  }
}

/* 安否通知バッジ・緊急アラート */
.dash-nav-group__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-nav-link__text {
  flex: 1;
  min-width: 0;
}

.anpi-badge-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.anpi-badge-wrap--nav {
  margin-left: auto;
  flex-shrink: 0;
}

.anpi-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.anpi-badge--unread {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.anpi-badge--urgent {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.dash-quick-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.dash-quick-card__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dash-muted, #64748b);
  max-width: 100%;
}

.dash-anpi-urgent {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  box-shadow: var(--dash-shadow);
}

.dash-anpi-urgent__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #b91c1c;
}

.dash-anpi-urgent__text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #7f1d1d;
}

.dash-anpi-urgent__count {
  margin: 0 0 12px;
  font-size: 12px;
  color: #991b1b;
}

.dash-anpi-urgent__count strong {
  font-size: 16px;
  font-weight: 800;
}

.dash-anpi-urgent__cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dash-anpi-urgent__cta:hover {
  background: #b91c1c;
}

.dash-anpi-line-fail {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  box-shadow: var(--dash-shadow);
}

.dash-anpi-line-fail__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #c2410c;
}

.dash-anpi-line-fail__text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #9a3412;
}

.dash-anpi-line-fail__count {
  margin: 0 0 12px;
  font-size: 12px;
  color: #9a3412;
}

.dash-anpi-line-fail__count strong {
  font-size: 16px;
  font-weight: 800;
}

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

.dash-anpi-line-fail__cta:hover {
  background: #c2410c;
}

.dash-anpi-admin-hosts {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  body.tasu-app-mobile-page[data-page="dashboard"] .dash-anpi-admin-hosts {
    margin: 0 var(--dash-pad-x, 16px) 12px;
  }
}

@media (max-width: 520px) {
  .dash-quick-card__label .anpi-badge-wrap {
    max-width: 100%;
    justify-content: center;
  }
}

/* P1-4 — Connect / 会員 dash-header タイトル・戻り導線（390px基準） */
@media (max-width: 768px) {
  .dash-header__title {
    max-width: min(100%, 11.5rem);
    font-size: 16px;
  }

  .dash-header__heading .dash-header__title {
    max-width: min(100%, 13rem);
  }

  .dash-header__actions {
    gap: 2px;
  }

  .dash-header-link {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px;
  }
}

.dash-member-page-head a,
.dash-nav-link[href*="dashboard"],
.dash-nav-link[href*="talk-home"] {
  display: inline-flex;
  align-items: center;
  min-height: var(--tasful-back-link-min-h, 36px);
}

/* P1-5 — 戻る導線 共通見た目（Connect / dash） */
.dash-sidebar__brand a,
.dash-member-page-head a,
.dash-nav-link[href*="talk-home"],
.dash-nav-link[href*="dashboard"] {
  font-size: var(--tasful-back-link-font-size, 0.8125rem);
  font-weight: 700;
  color: var(--tasful-back-link-color-muted, #64748b);
  text-decoration: none;
  gap: 0.25rem;
  line-height: 1.3;
}

.dash-member-page-head a:hover,
.dash-nav-link[href*="talk-home"]:hover,
.dash-nav-link[href*="dashboard"]:hover {
  color: var(--tasful-back-link-color, #967622);
}

.dash-member-page-head a:focus-visible,
.dash-nav-link:focus-visible {
  outline: 2px solid var(--dash-gold, #d4af37);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-subnav__link {
  min-height: var(--tasful-back-link-min-h, 36px);
  font-size: var(--tasful-back-link-font-size, 0.8125rem);
  color: var(--tasful-back-link-color, #967622);
}

/* Service drawer — クイックアクションから開くサービス導線 */
body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-welcome,
body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-stats,
body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-grid,
body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-disclaimer {
  display: revert;
}

body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-stats {
  display: grid;
}

body.dash-body[data-page="dashboard"]:not(.tasu-app-mobile-page) .dash-grid {
  display: grid;
}

/* Sidebar service mega menu — PC hover */
.dash-sidebar-mega-host {
  position: relative;
  z-index: 300;
  pointer-events: none;
}

.dash-sidebar-mega-host.is-open {
  pointer-events: auto;
}

.dash-sidebar-mega {
  position: fixed;
  z-index: 301;
  min-width: 720px;
  max-width: 860px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(7, 23, 51, 0.16);
  border: 1px solid var(--dash-border, #e8edf4);
}

.dash-sidebar-mega::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 100%;
}

.dash-sidebar-mega[hidden] {
  display: none !important;
}

.dash-sidebar-mega__inner {
  padding: 20px 22px 22px;
}

.dash-sidebar-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.dash-sidebar-mega__heading {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dash-border, #e8edf4);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--dash-muted, #64748b);
}

.dash-sidebar-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.dash-sidebar-mega__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dash-navy, #071733);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}

.dash-sidebar-mega__link:hover {
  background: #f4f7fb;
  color: #2563eb;
}

.dash-sidebar-mega__link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef6ff;
  color: #2563eb;
  flex-shrink: 0;
}

.dash-sidebar-mega__link-icon svg {
  width: 16px;
  height: 16px;
}

.dash-sidebar-mega__link-label {
  min-width: 0;
}

@media (hover: hover) and (min-width: 1025px) {
  .dash-nav-link[data-sidebar-mega-trigger].is-mega-open,
  .dash-nav-link[data-sidebar-mega-trigger]:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

@media (max-width: 1024px) {
  .dash-sidebar-mega-host {
    display: none !important;
  }
}
