/* extracted from views/Dashboard.vue */
.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 0;
}

.dash-hero-copy {
  min-width: 0;
  align-self: flex-start;
  padding-top: 38px;
}

.dashboard-eyebrow-row {
  position: absolute;
  top: 30px;
  left: 32px;
  z-index: 4;
  display: flex;
  height: 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.dashboard-eyebrow-row .dashboard-eyebrow {
  height: 34px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  line-height: 1;
}

.dashboard-theme-picker {
  position: relative;
  z-index: 12;
  flex: none;
}

.dashboard-theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  gap: 2px;
  padding: 0 4px 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.dashboard-theme-switch:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-theme-switch:active {
  transform: scale(0.97);
}

.dashboard-theme-switch-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  transition: color var(--motion-base) ease, background var(--motion-base) ease;
}

.dashboard-theme-switch-icon > i {
  font-size: 15px;
}

.dashboard-theme-switch-chevron {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  transition: transform var(--motion-fast) ease;
}

.dashboard-theme-switch[aria-expanded="true"] .dashboard-theme-switch-chevron {
  transform: rotate(180deg);
}

.dashboard-theme-switch.is-auto {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.dashboard-theme-menu {
  position: fixed;
  z-index: 80;
  width: 286px;
  max-width: calc(100vw - 24px);
  display: grid;
  gap: 3px;
  padding: 8px 9px 9px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 16%, var(--border-soft));
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 96%, var(--theme-primary));
  box-shadow: 0 18px 45px rgba(15, 35, 27, 0.22), 0 2px 8px rgba(15, 35, 27, 0.08);
  transform-origin: 28px 0;
  animation: dashboard-theme-menu-enter .2s var(--motion-ease) both;
}

.dashboard-theme-menu-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 9px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 3px;
}

.dashboard-theme-menu-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #1f6b55;
  border-radius: 7px;
  color: #fff;
  background: #1f6b55;
  box-shadow: 0 2px 7px rgba(31, 107, 85, 0.12);
  font-size: 16px;
}

.dashboard-theme-menu-mark > i {
  display: block;
}

.dashboard-theme-menu-head > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-theme-menu-head strong {
  font-size: 12px;
  font-weight: 760;
}

.dashboard-theme-menu-head small {
  color: var(--ink-faint);
  font-size: 9px;
}

.dashboard-theme-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--theme-menu-pointer-left, 25px);
  width: 9px;
  height: 9px;
  border-top: 1px solid color-mix(in srgb, var(--theme-primary) 16%, var(--border-soft));
  border-left: 1px solid color-mix(in srgb, var(--theme-primary) 16%, var(--border-soft));
  background: var(--surface);
  transform: rotate(45deg);
}

.dashboard-theme-menu > button {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-muted);
  background: transparent;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dashboard-theme-menu > button:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 14%, var(--border-soft));
  background: color-mix(in srgb, var(--theme-primary) 5%, var(--surface));
}

.dashboard-theme-menu > button.is-selected {
  color: var(--theme-primary);
  border-color: color-mix(in srgb, var(--theme-primary) 28%, var(--border-soft));
  background: color-mix(in srgb, var(--theme-primary) 7%, var(--surface));
}

.dashboard-theme-option-preview {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--border-soft);
  overflow: hidden;
}

.dashboard-theme-option-preview > i { font-size: 17px; }
.dashboard-theme-option-preview.is-auto { color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 7%, var(--surface)); }
.dashboard-theme-swatches { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.dashboard-theme-swatches i { display: block; }
.dashboard-theme-option-preview.is-light-green .dashboard-theme-swatches i:first-child { background: #285747; }
.dashboard-theme-option-preview.is-light-green .dashboard-theme-swatches i:last-child { background: #d8a53c; }
.dashboard-theme-option-preview.is-sky-coral .dashboard-theme-swatches i:first-child { background: #35b98b; }
.dashboard-theme-option-preview.is-sky-coral .dashboard-theme-swatches i:last-child { background: #d3a13a; }
.dashboard-theme-option-copy { min-width: 0; display: grid; gap: 2px; }
.dashboard-theme-menu strong { color: var(--ink); font-size: 13px; line-height: 1.25; }
.dashboard-theme-menu small { color: var(--ink-faint); font-size: 10px; line-height: 1.35; white-space: normal; }
.dashboard-theme-option-check { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 6px; color: transparent; background: transparent; }
.dashboard-theme-option-check.is-selected { color: #fff; background: var(--theme-primary); box-shadow: 0 3px 8px color-mix(in srgb, var(--theme-primary) 22%, transparent); }
.dashboard-theme-option-check i { font-size: 12px; }

@media (max-width: 640px) {
  .dashboard-theme-menu {
    padding: 7px 8px 8px;
  }

  .dashboard-theme-menu > button {
    min-height: 60px;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 8px;
  }

  .dashboard-theme-option-preview {
    width: 38px;
    height: 38px;
  }
}

@keyframes dashboard-theme-menu-enter {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dashboard-theme-name {
  display: none;
}

.dashboard-hero-top-actions {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-hero-top-actions > .dashboard-hero-status {
  margin-top: 0;
}

.dashboard-hero-top-actions > .dashboard-hero-status,
.dashboard-hero-top-actions > .dashboard-account-switcher {
  height: 34px;
  min-height: 34px;
  padding: 0 13px;
  line-height: 1;
}

.dashboard-account-switcher {
  box-sizing: border-box;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  color: rgba(245, 251, 240, 0.92);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.dashboard-account-switcher:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-account-switcher:active {
  transform: scale(0.97);
}

.dashboard-account-switcher-icon {
  font-size: 14px;
}

.account-switcher-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  align-items: end;
  padding: 12px 10px max(12px, env(safe-area-inset-bottom));
  background: rgba(9, 18, 14, 0.54);
  backdrop-filter: blur(10px);
}

.account-switcher-sheet {
  width: min(520px, 100%);
  max-height: min(76vh, 620px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.account-switcher-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.account-switcher-header small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.account-switcher-header h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.account-switcher-header button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--surface);
}

.account-switcher-list {
  display: grid;
  max-height: min(58vh, 470px);
  gap: 8px;
  overflow-y: auto;
  padding: 12px;
}

.account-switcher-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.account-switcher-item.is-current {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
}

.account-switcher-select {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 6px;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.account-switcher-select:active,
.account-switcher-update:active,
.account-switcher-delete:active {
  transform: scale(0.97);
}

.account-switcher-avatar {
  width: 44px;
  height: 38px;
  flex: none;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 9px;
  background: var(--surface);
}

.account-switcher-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-switcher-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1;
}

.account-switcher-item-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-switcher-item-copy small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 11px;
}

.account-switcher-item-copy small > span {
  font-size: 13px;
}

.account-switcher-check {
  flex: none;
  color: var(--accent);
  font-size: 18px;
}

.account-switcher-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.account-switcher-update {
  display: inline-flex;
  min-width: 58px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface));
  font-size: 11px;
  font-weight: 750;
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease;
}

.account-switcher-update > span:first-child {
  font-size: 14px;
}

.account-switcher-delete {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  border: 1px solid color-mix(in srgb, #dc2626 24%, var(--line));
  border-radius: 10px;
  color: #dc2626;
  background: color-mix(in srgb, #fef2f2 72%, var(--surface));
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease;
}

.account-switcher-delete:hover {
  background: color-mix(in srgb, #fee2e2 86%, var(--surface));
}

.account-switcher-delete > span {
  font-size: 16px;
}

.account-switcher-empty {
  padding: 24px 12px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.account-switcher-empty p { margin: 0 0 12px; }
.account-switcher-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface));
  font-size: 13px;
  font-weight: 750;
}

.account-switcher-create:hover { background: color-mix(in srgb, var(--accent-soft) 86%, var(--surface)); }
.account-switcher-create-top { width: 100%; min-height: 42px; justify-content: center; padding-inline: 14px; border-style: dashed; }

.dashboard-account-switcher-chevron {
  flex: none;
  color: rgba(240, 248, 236, 0.72);
  font-size: 14px;
}

.dashboard-hero-actions {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.dashboard-renew {
  border-color: rgba(255, 224, 158, 0.3);
  background: rgba(255, 214, 128, 0.16);
}

.dashboard-inbox {
  position: relative;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-support {
  border-color: rgba(219, 239, 227, 0.28);
  background: rgba(222, 241, 229, 0.12);
}

.dashboard-inbox-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.inbox-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--theme-secondary) 48%, transparent);
  backdrop-filter: blur(12px);
}

.inbox-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.inbox-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(110deg, color-mix(in srgb, var(--theme-primary) 13%, var(--surface)), color-mix(in srgb, var(--theme-accent) 8%, var(--surface)));
}

.inbox-modal-heading {
  min-width: 0;
  flex: 1;
}

.inbox-header-icon,
.inbox-back-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
  font-size: 19px;
}

.inbox-back-button {
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease;
}

.inbox-back-button:hover {
  background: color-mix(in srgb, var(--theme-primary) 20%, transparent);
  transform: translateX(-2px);
}

.inbox-modal-eyebrow {
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.inbox-modal-header h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
}

.inbox-modal-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.inbox-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.inbox-mark-all { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px auto; padding: 0 12px; border: 1px solid var(--border-soft); border-radius: 7px; color: var(--theme-primary); background: var(--surface-muted); font-size: 12px; font-weight: 750; }.inbox-mark-all:disabled { opacity: .6; }

.inbox-message {
  width: 100%;
  display: block;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-veil);
  color: inherit;
  font: inherit;
  text-align: left;
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
  animation: inbox-item-rise .38s var(--motion-ease) both;
  animation-delay: min(calc(var(--message-index, 0) * 35ms), 280ms);
}

.inbox-message + .inbox-message {
  margin-top: 12px;
}

.inbox-message:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--theme-primary) 48%, var(--border-soft));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--theme-primary) 13%, transparent);
}

.inbox-message.is-unread {
  border-color: color-mix(in srgb, var(--theme-primary) 42%, var(--border-soft));
  background: color-mix(in srgb, var(--theme-primary) 7%, var(--surface));
}

.inbox-message-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.inbox-message-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-faint);
}

.inbox-message.is-unread .inbox-message-dot {
  background: var(--theme-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--theme-accent) 13%, transparent);
  animation: inbox-unread-pulse 2.2s ease-out infinite;
}

.inbox-unread-label {
  padding: 3px 6px;
  border-radius: 5px;
  color: color-mix(in srgb, var(--theme-accent) 74%, var(--ink));
  background: color-mix(in srgb, var(--theme-accent) 13%, transparent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.inbox-message h4 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-message time {
  color: var(--ink-faint);
  font-size: 11px;
}

.inbox-message-summary {
  margin: 10px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.inbox-message-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
}

.inbox-message-open i {
  transition: transform var(--motion-fast) ease;
}

.inbox-message:hover .inbox-message-open i {
  transform: translateX(3px);
}

.inbox-message-detail {
  display: grid;
  gap: 18px;
  animation: inbox-detail-enter .34s var(--motion-ease) both;
}

.inbox-message-detail-summary {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--theme-primary);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--theme-primary) 8%, var(--surface));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.inbox-message-detail-content {
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.inbox-modal-motion-enter-active,
.inbox-modal-motion-leave-active {
  transition: opacity .24s ease;
}

.inbox-modal-motion-enter-active .inbox-modal,
.inbox-modal-motion-leave-active .inbox-modal {
  transition: transform .34s var(--motion-ease), opacity .24s ease;
}

.inbox-modal-motion-enter-from,
.inbox-modal-motion-leave-to {
  opacity: 0;
}

.inbox-modal-motion-enter-from .inbox-modal,
.inbox-modal-motion-leave-to .inbox-modal {
  opacity: 0;
  transform: translateY(12px) scale(.985);
}

@keyframes inbox-item-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes inbox-detail-enter {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes inbox-unread-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-accent) 20%, transparent); }
  55% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--theme-accent) 0%, transparent); }
}

.dash-hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.dashboard-hero-corner-status {
  margin-top: 0;
}

.dash-hero-fact {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  color: rgba(245, 251, 240, 0.9);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition:
    transform var(--motion-base) var(--motion-ease),
    background var(--motion-fast) ease;
}

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

.dash-metric {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-metric-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.metric-card-account .dash-metric-head {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  display: grid;
}

.dash-metric-mark {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  transition: transform var(--motion-base) var(--motion-spring);
}

.dash-metric-mark.is-gold {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: color-mix(in srgb, var(--gold) 72%, #6b4a05);
}

.dash-account-avatar {
  position: relative;
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  overflow: visible;
  padding: 0;
  background: var(--accent-soft);
  animation: account-avatar-nudge 3.6s ease-in-out infinite;
}

.dash-account-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 12px;
  pointer-events: none;
  animation: account-avatar-pulse 2.4s ease-out infinite;
}

.dash-account-avatar:hover {
  transform: scale(1.06);
  animation: none;
}

.dash-account-avatar:hover::after {
  animation: none;
  opacity: 1;
  transform: scale(1);
}

@keyframes account-avatar-pulse {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.28);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes account-avatar-nudge {
  0%,
  86%,
  100% {
    transform: scale(1);
  }

  92% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inbox-message,
  .inbox-message-detail,
  .inbox-message.is-unread .inbox-message-dot {
    animation: none;
  }

  .inbox-modal-motion-enter-active,
  .inbox-modal-motion-leave-active,
  .inbox-modal-motion-enter-active .inbox-modal,
  .inbox-modal-motion-leave-active .inbox-modal {
    transition-duration: .01ms;
  }

  .dash-account-avatar {
    animation: none;
  }

  .dash-timer-ring::before {
    animation: none;
  }

  .dash-account-avatar::after {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

.dash-account-avatar-frame {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 9px;
  background: var(--surface);
}

.dash-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-metric-mark.is-accent {
  background: color-mix(in srgb, var(--theme-primary) 14%, transparent);
  color: var(--accent);
}

.dash-metric-title {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

.dash-metric-title small {
  width: 100%;
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-metric-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-account-name {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-account-name > strong {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-account-platform {
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
}

.dash-account-platform > i {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.dash-account-platform.is-qq {
  color: #2878d0;
  background: rgba(40, 120, 208, 0.1);
}

.dash-account-platform.is-wx {
  color: #168a45;
  background: rgba(22, 138, 69, 0.1);
}

.dash-chip {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.dash-metric-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.dash-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.dash-metric-row:not(.is-faint) > span {
  flex: none;
}

.dash-metric-row.is-faint > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-metric-row b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-metric-row.is-faint {
  color: var(--ink-faint);
  font-size: 11px;
}

.dash-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

.dash-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-gradient);
  transition: width var(--motion-slow) var(--motion-ease);
}

.dash-asset-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dash-asset {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-veil);
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-fast) ease;
}

.dash-asset small {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-asset small > i {
  flex: none;
}

.dash-asset b {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-asset b.is-tight {
  font-size: 17px;
}

.dash-asset b.is-tighter {
  font-size: 15px;
}

.dash-asset b.is-gold {
  color: color-mix(in srgb, var(--gold) 70%, #6b4a05);
}

.dash-asset b.is-accent {
  color: var(--accent);
}

.dash-asset em {
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-asset em.is-up {
  color: color-mix(in srgb, var(--theme-primary) 78%, black);
}

.dash-asset em.is-down {
  color: #cf5a52;
}

.dash-stock-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dash-stock {
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-veil);
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-fast) ease;
}

.dash-stock small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stock b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stock b.is-tight {
  font-size: 15px;
}

.dash-stock b.is-tighter {
  font-size: 14px;
}

.dash-panel {
  padding: 20px;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.dash-panel-head-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.dash-panel-mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
}

.dash-panel-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dash-panel-title strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
}

.dash-panel-title small {
  color: var(--ink-faint);
  font-size: 11.5px;
}

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

@property --timer-progress {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.dash-timer {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-veil);
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-fast) ease;
}

.dash-timer-ring {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--timer-color) var(--timer-progress), var(--surface-sunken) 0);
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--timer-color) 13%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--timer-color) 12%, transparent);
  transition: box-shadow var(--motion-slow) ease;
}

.dash-timer-ring.is-ready {
  transition:
    --timer-progress 900ms linear,
    box-shadow var(--motion-slow) ease;
}

.dash-timer-ring::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 6px;
  left: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--timer-color) 68%, white);
  box-shadow: 0 0 8px color-mix(in srgb, var(--timer-color) 55%, transparent);
  opacity: 0.72;
  transform-origin: 2.5px 50px;
  animation: dash-ring-orbit 4.8s linear infinite;
}

.dash-timer-ring::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 3px;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--timer-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--timer-color) 65%, transparent);
  transform: rotate(var(--timer-progress));
  transform-origin: 3px 53px;
  transition: opacity var(--motion-fast) ease;
}

.dash-timer-ring.is-ready::after {
  transition:
    transform 900ms linear,
    opacity var(--motion-fast) ease;
}

.dash-timer-ring.is-idle::before,
.dash-timer-ring.is-idle::after {
  opacity: 0;
  animation: none;
}

@keyframes dash-ring-orbit {
  to {
    transform: rotate(1turn);
  }
}

.dash-timer-ring-core {
  width: 94px;
  height: 94px;
  display: grid;
  grid-template-rows: 17px 21px 14px;
  place-content: center;
  place-items: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--timer-color) 12%, var(--border-soft));
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 4px 12px rgba(20, 48, 37, 0.05);
}

.dash-timer-ring-core > i {
  color: var(--timer-color);
  font-size: 16px;
}

.dash-timer-ring-core b {
  max-width: 82px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-timer-ring-core small {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 750;
}

.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  align-items: stretch;
  gap: 16px;
}

.dash-log {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-log-head {
  flex-wrap: wrap;
  justify-content: space-between;
}

.dash-log-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-log-filter {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--surface-muted);
}

.dash-log-filter button {
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: var(--ink-faint);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.dash-log-filter button:hover { color: var(--theme-primary); }
.dash-log-filter button.is-active { color: #fff; background: var(--theme-primary); box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-primary) 22%, transparent); }

.log-console-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  flex: 1;
}

.log-console {
  min-height: 0;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  line-height: 1.45;
}

.dash-log-line {
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--border-soft) 72%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 38%, transparent);
  word-break: break-word;
  transition: border-color .16s ease, background .16s ease;
}

.dash-log-line:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 22%, var(--border-soft));
  background: color-mix(in srgb, var(--theme-primary) 5%, var(--surface));
}

.dash-log-line.is-error {
  border-color: rgba(207, 90, 82, .24);
  background: rgba(207, 90, 82, .045);
}

.dash-log-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-primary) 12%, var(--surface));
  color: var(--theme-primary);
  font-size: 15px;
}

.dash-log-icon.is-system {
  background: color-mix(in srgb, var(--theme-secondary) 12%, var(--surface));
  color: var(--theme-secondary);
}

.dash-log-icon.is-activity {
  background: rgba(37, 99, 235, .1);
  color: #2563eb;
}

.dash-log-icon.is-brand,
.dash-log-icon.is-warn {
  background: color-mix(in srgb, var(--gold) 16%, var(--surface));
  color: #9a6a12;
}

.dash-log-icon.is-error {
  background: rgba(207, 90, 82, .12);
  color: #c34d45;
}

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

.dash-log-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-log-time {
  flex: none;
  margin-left: auto;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.dash-log-tag {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.dash-log-tag.is-ok {
  background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
  color: color-mix(in srgb, var(--theme-primary) 82%, black);
}

.dash-log-tag.is-system {
  background: color-mix(in srgb, var(--theme-secondary) 15%, transparent);
  color: color-mix(in srgb, var(--theme-secondary) 84%, black);
}

.dash-log-tag.is-activity {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.dash-log-tag.is-brand {
  background: rgba(190, 139, 42, 0.16);
  color: #8a6414;
}

.dash-log-tag.is-warn {
  background: color-mix(in srgb, var(--gold) 24%, transparent);
  color: #8a5c07;
}

.dash-log-tag.is-error {
  background: rgba(207, 90, 82, 0.16);
  color: #b8443c;
}

.dash-log-event {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-log-msg {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.dash-log-msg.is-error {
  color: #b8443c;
}

.dash-log-latest {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 26%, var(--border-soft));
  border-radius: 50%;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--surface) 94%, var(--theme-primary));
  box-shadow: 0 8px 20px rgba(20, 52, 40, .16);
  font-size: 18px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dash-log-latest:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--theme-primary) 48%, var(--border-soft));
  box-shadow: 0 10px 24px rgba(20, 52, 40, .2);
}

.dash-log-latest:active {
  transform: translateY(0);
}

.dash-log-latest:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary) 24%, transparent);
  outline-offset: 2px;
}

.dash-ops {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.dash-op {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-veil);
  transition:
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.dash-op:hover {
  border-color: var(--accent-ring);
  background: var(--surface-muted);
}

.dash-op.is-idle {
  opacity: 0.62;
}

.dash-op-icon {
  font-size: 17px;
}

.dash-op-icon.tone-farm {
  color: var(--accent);
}

.dash-op-icon.tone-care {
  color: color-mix(in srgb, var(--theme-secondary) 74%, var(--ink));
}

.dash-op-icon.tone-social {
  color: color-mix(in srgb, var(--gold) 68%, #6b4a05);
}

.dash-op-icon.tone-trade {
  color: color-mix(in srgb, var(--theme-primary) 58%, var(--theme-secondary));
}

.dash-op-name {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-op b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .dash-log-tag.is-ok,
.dark .dash-log-tag.is-system {
  color: #dff3d6;
}

.dark .dash-log-tag.is-warn {
  color: #ffdf9c;
}

.dark .dash-log-tag.is-activity {
  color: #93c5fd;
}

.dark .dash-log-tag.is-brand {
  background: rgba(190, 139, 42, 0.2);
  color: #ffe3a3;
}

.dark .dash-log-tag.is-error,
.dark .dash-log-msg.is-error {
  color: #ffb3ac;
}

.dark .dash-asset b.is-gold,
.dark .dash-metric-mark.is-gold,
.dark .dash-op-icon.tone-social {
  color: #ffd98f;
}

.dark .dash-asset em.is-down {
  color: #ff9d95;
}

@media (max-width: 1280px) {
  .dash-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-op-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .dash-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-metrics > .dash-metric:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .dashboard-hero-actions {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
  }

  .dashboard-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-hero-actions .dashboard-refresh {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .dash-log-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .dash-log-head .dash-panel-head-main {
    min-width: 0;
    flex: 1;
  }

  .dash-log-toolbar {
    width: auto;
    flex: none;
    align-items: center;
    justify-content: flex-end;
  }

  .dash-log-filter {
    height: 34px;
  }

  .dash-log-filter button {
    min-width: 44px;
    height: 28px;
    font-size: 11px;
  }

  .dash-log-head .dash-panel-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .log-console {
    padding: 6px 8px;
  }

  .dash-log-line {
    min-height: 46px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px;
  }

  .dash-log-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .dash-log-msg {
    font-size: 11px;
    line-height: 1.4;
  }

  .dash-log-latest {
    right: 12px;
    bottom: 10px;
    width: 44px;
    height: 44px;
  }

  .dash-hero-copy {
    width: 100%;
    padding-top: 38px;
  }

  @media (max-width: 380px) {
    .dash-log-head .dash-panel-head-main {
      gap: 8px;
    }

    .dash-log-head .dash-panel-mark {
      width: 30px;
      height: 30px;
      font-size: 16px;
    }

    .dash-log-head .dash-panel-title strong {
      font-size: 14px;
    }

    .dash-log-head .dash-panel-title small {
      font-size: 10px;
    }

    .dash-log-filter button {
      min-width: 40px;
      padding-inline: 6px;
    }
  }

  .dashboard-eyebrow-row {
    top: 14px;
    left: 24px;
    gap: 7px;
  }

  .dashboard-theme-switch {
    width: 44px;
    height: 26px;
    padding-inline: 4px;
  }

  .dashboard-theme-picker {
    flex: none;
  }

  .dashboard-hero-top-actions {
    top: 14px;
    right: 14px;
    gap: 6px;
  }

  .dashboard-hero-actions {
    margin-top: 8px;
  }

  .dashboard-hero-top-actions .dashboard-hero-status,
  .dashboard-hero-top-actions .dashboard-account-switcher {
    height: 32px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 11px;
  }

  .dashboard-hero-top-actions .dashboard-hero-status {
    margin-top: 0;
    gap: 6px;
  }

  .dashboard-hero-top-actions .dashboard-hero-status-dot {
    width: 7px;
    height: 7px;
  }

  .dashboard-account-switcher {
    gap: 5px;
  }

  .dashboard-account-switcher-icon,
  .dashboard-account-switcher-chevron {
    font-size: 13px;
  }

  .dash-hero-tags {
    gap: 6px;
  }

  .dash-hero-fact {
    gap: 5px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .dashboard-membership-fact > span {
    font-size: 10px;
  }
  .inbox-modal-backdrop {
    align-items: end;
    padding-inline: 10px;
  }

  .inbox-modal {
    width: 100%;
    max-height: min(78vh, calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    border-radius: 22px;
  }

  .inbox-modal-header {
    padding: 18px 16px 14px;
  }

  .inbox-modal-body {
    padding: 12px;
  }

  .inbox-message-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .inbox-message time {
    grid-column: 2 / 4;
  }

  .dashboard-page {
    gap: 14px;
    padding-top: 8px;
  }

  .dash-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-metrics > .dash-metric:last-child {
    grid-column: auto;
  }

  .dash-asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .dash-asset {
    gap: 4px;
    padding: 9px 7px;
  }

  .dash-asset small {
    gap: 3px;
    font-size: 10px;
  }

  .dash-asset b {
    font-size: 17px;
  }

  .dash-asset b.is-tight {
    font-size: 15px;
  }

  .dash-asset b.is-tighter {
    font-size: 13px;
  }

  .dash-timer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .dash-timer {
    padding: 10px 2px;
  }

  .dash-timer-ring {
    width: 82px;
    height: 82px;
  }

  .dash-timer-ring::after {
    top: 2px;
    transform-origin: 3px 39px;
  }

  .dash-timer-ring::before {
    top: 4px;
    transform-origin: 2.5px 37px;
  }

  .dash-timer-ring-core {
    width: 68px;
    height: 68px;
    grid-template-rows: 13px 16px 11px;
    gap: 1px;
  }

  .dash-timer-ring-core > i {
    font-size: 12px;
  }

  .dash-timer-ring-core b {
    max-width: 62px;
    font-size: 9.5px;
  }

  .dash-timer-ring-core small {
    font-size: 8.5px;
  }

  .dash-panel {
    padding: 16px;
  }

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

.tutorial-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: rgba(9, 23, 36, 0.56);
  backdrop-filter: blur(10px);
}

.tutorial-modal {
  width: min(920px, 100%);
  height: min(calc(100dvh - 40px), 820px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  border-color: color-mix(in srgb, var(--theme-primary) 20%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, var(--theme-primary)), var(--surface));
  box-shadow: 0 30px 90px color-mix(in srgb, var(--theme-secondary) 30%, transparent), 0 0 0 1px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  animation: tutorial-modal-in 0.34s var(--motion-ease) both;
}

.tutorial-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.tutorial-modal-eyebrow {
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tutorial-modal-header h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.tutorial-modal-header p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.tutorial-modal-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  transition: all 0.2s ease;
}

.tutorial-modal-close:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.tutorial-modal-body {
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
}

.dashboard-membership-fact {
  --membership-sheen-color: rgba(255, 255, 255, 0.38);
  --membership-sheen-duration: 5.8s;
  position: relative;
  cursor: pointer;
  min-height: 31px;
  box-sizing: border-box;
  appearance: none;
  font-family: inherit;
  line-height: 1.5;
  isolation: isolate;
  gap: 7px;
  border-color: rgba(214, 185, 111, 0.72);
  color: #fff4d2;
  background: linear-gradient(135deg, rgba(57, 48, 30, 0.88), rgba(20, 24, 23, 0.78));
  box-shadow: inset 0 1px rgba(255, 248, 220, 0.13), 0 7px 18px rgba(24, 21, 15, 0.18);
}
.dashboard-membership-fact:hover { transform: translateY(-1px); filter: brightness(1.05); }
.dashboard-membership-fact:focus-visible { outline: 2px solid #fff1bd; outline-offset: 3px; }

.dashboard-membership-fact > * { position: relative; z-index: 1; }
.dashboard-membership-fact strong { font-weight: 850; }
.dashboard-membership-fact > span { color: rgba(255, 250, 232, 0.72); font-size: 11px; }
.dashboard-membership-fact:not(.is-none, .is-expired) { overflow: hidden; }
.dashboard-membership-fact:not(.is-none, .is-expired)::after { content: ''; position: absolute; z-index: 0; inset: -1px; pointer-events: none; background: linear-gradient(112deg, transparent 28%, var(--membership-sheen-color) 48%, transparent 68%); transform: translateX(-140%); animation: membership-sheen var(--membership-sheen-duration) ease-in-out infinite; will-change: transform; }
.dashboard-membership-fact:not(.is-none, .is-expired) > i { animation: membership-icon-glow 3.2s ease-in-out infinite; }
.dashboard-membership-fact.is-admin { --membership-sheen-color: rgba(255, 240, 178, 0.56); --membership-sheen-duration: 5.2s; }
.dashboard-membership-fact.is-agent { --membership-sheen-color: rgba(189, 255, 225, 0.36); border-color: rgba(103, 202, 164, 0.76); color: #d9ffec; background: linear-gradient(135deg, rgba(23, 91, 67, 0.9), rgba(27, 50, 42, 0.82)); box-shadow: inset 0 1px rgba(218, 255, 237, 0.2), 0 8px 20px rgba(20, 102, 73, 0.2); }
.dashboard-membership-fact.is-permanent { --membership-sheen-color: rgba(255, 249, 215, 0.46); --membership-sheen-duration: 6.5s; border-color: rgba(239, 205, 117, 0.9); color: #fff3c9; background: linear-gradient(135deg, rgba(99, 74, 24, 0.92), rgba(38, 35, 25, 0.86)); box-shadow: inset 0 1px rgba(255, 246, 208, 0.26), 0 8px 22px rgba(108, 78, 19, 0.22); }
.dashboard-membership-fact.is-annual { --membership-sheen-color: rgba(255, 247, 207, 0.38); border-color: rgba(205, 171, 86, 0.72); color: #ffedba; background: linear-gradient(135deg, rgba(111, 87, 33, 0.85), rgba(50, 47, 36, 0.78)); }
@keyframes membership-sheen { 0%, 14% { transform: translateX(-140%); } 48%, 100% { transform: translateX(140%); } }
@keyframes membership-icon-glow { 0%, 100% { filter: brightness(1); transform: translateY(0); } 50% { filter: brightness(1.35) drop-shadow(0 0 4px currentColor); transform: translateY(-1px); } }
.dashboard-membership-fact.is-arriving { animation: membership-tier-arrival 1.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dashboard-membership-fact.is-arriving::before { content: ''; position: absolute; z-index: 0; inset: -5px; border: 1px solid color-mix(in srgb, var(--gold) 78%, transparent); border-radius: 15px; opacity: 0; pointer-events: none; animation: membership-ring-arrival 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dashboard-membership-fact.is-arriving > i { animation: membership-icon-arrival 1.05s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dashboard-membership-fact.is-arriving::after { animation: membership-sheen-arrival 1.35s ease-out both; }
@keyframes membership-tier-arrival { 0% { opacity: 0; transform: translateY(7px) scale(.9); } 45% { opacity: 1; transform: translateY(0) scale(1.045); box-shadow: inset 0 1px rgba(255, 248, 220, .28), 0 0 0 4px rgba(235, 201, 108, .12), 0 12px 26px rgba(108, 78, 19, .22); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes membership-ring-arrival { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: .75; } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes membership-icon-arrival { from { opacity: 0; transform: scale(.55) rotate(-14deg); } 55% { opacity: 1; transform: scale(1.16) rotate(4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes membership-sheen-arrival { 0% { transform: translateX(-140%); } 68%, 100% { transform: translateX(140%); } }
.dashboard-membership-fact.is-quarterly { --membership-sheen-color: rgba(221, 241, 230, 0.32); border-color: rgba(210, 219, 214, 0.72); color: #f4f7f5; background: linear-gradient(135deg, rgba(54, 76, 67, 0.88), rgba(40, 49, 46, 0.78)); }
.dashboard-membership-fact.is-monthly { --membership-sheen-color: rgba(238, 244, 241, 0.3); border-color: rgba(222, 226, 224, 0.72); color: #fff; background: linear-gradient(135deg, rgba(111, 120, 117, 0.78), rgba(68, 76, 73, 0.72)); }
.dashboard-membership-fact.is-standard { --membership-sheen-color: rgba(232, 244, 238, 0.26); }
.dashboard-membership-fact.is-trial { --membership-sheen-color: rgba(220, 239, 255, 0.28); --membership-sheen-duration: 8s; }
.dashboard-membership-fact.is-standard,
.dashboard-membership-fact.is-trial,
.dashboard-membership-fact.is-none,
.dashboard-membership-fact.is-expired { border-color: rgba(219, 224, 221, 0.42); color: #f2f4f3; background: rgba(101, 111, 107, 0.48); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .dashboard-membership-fact:not(.is-none, .is-expired)::after,
  .dashboard-membership-fact:not(.is-none, .is-expired) > i,
  .dashboard-membership-fact.is-arriving,
  .dashboard-membership-fact.is-arriving > i,
  .dashboard-membership-fact.is-arriving::before { animation: none; }
}

.tutorial-platform-bar {
  display: flex;
  gap: 8px;
  padding: 14px 26px 0;
}

.tutorial-download-link {
  width: calc(100% - 52px);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 26px 0;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
  border-radius: 14px;
  color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 7%, var(--surface));
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.tutorial-download-link:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--theme-primary) 12%, var(--surface));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-primary) 16%, transparent);
}

.tutorial-download-link > span:first-child { font-size: 20px; }
.tutorial-download-link > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tutorial-download-link strong { color: var(--ink); font-size: 13px; }
.tutorial-download-link small { color: var(--ink-soft); font-size: 11px; }

.tutorial-platform-tab {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.tutorial-platform-tab:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 40%, transparent);
  color: var(--theme-primary);
}

.tutorial-platform-tab.is-active {
  border-color: transparent;
  color: #fff;
  background: var(--theme-gradient);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}

.tutorial-platform-tab > span {
  font-size: 16px;
}

.tutorial-platform-tab > b {
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #1e293b;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
  text-align: center;
}

.tutorial-platform-tab.is-active > b {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.tutorial-empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
}

.tutorial-empty-state > span {
  color: var(--theme-primary);
  font-size: 42px;
}

.tutorial-empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.tutorial-empty-state small {
  color: var(--ink-faint);
}

.tutorial-image-stage {
  position: relative;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 10;
  display: flex;
  flex: 0 1 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 14%, rgba(148, 163, 184, 0.28));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, var(--theme-primary) 8%);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
}

.tutorial-image-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tutorial-image-open {
  position: relative;
  width: 100%;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: transparent;
  touch-action: pan-y;
}

.tutorial-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}


@keyframes tutorial-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .tutorial-modal-backdrop {
    padding: 10px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .tutorial-modal {
    height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .tutorial-modal-header {
    padding: 18px 18px 14px;
  }

  .tutorial-modal-header h3 {
    font-size: 20px;
  }

  .tutorial-platform-bar {
    padding: 12px 18px 0;
  }

  .tutorial-download-link {
    width: calc(100% - 36px);
    margin-inline: 18px;
  }

  .tutorial-modal-body {
    min-height: 0;
    padding: 12px;
  }

  .tutorial-image-stage {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .tutorial-empty-state {
    min-height: 220px;
  }

  .tutorial-modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
}
