/* Mock Bank screen-level styles (layout/responsive bits the design-system
   component layer leaves to each screen). Tokens come from /styles. */

/* RP avatar mark */
.rpmark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--brand-mint-soft); color: #0F5A52;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.rpmark.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.rpmark.toast { width: 36px; height: 36px; }

/* dashboard grid: main + account aside, collapses below 940px */
.dash-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 940px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-aside { display: none; }
}

/* native <details> json disclosure styled as the design's json-toggle */
summary.json-toggle { list-style: none; }
summary.json-toggle::-webkit-details-marker { display: none; }
details[open] > summary.json-toggle svg { transform: rotate(90deg); }

/* recent decisions row */
.recent-row { padding: 14px 18px; display: flex; align-items: center; gap: 13px; }

/* page-head action row wraps on narrow screens */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; }

.manage-link:hover { background: var(--bg-canvas); }

/* checkbox-row check icon shows only when on */
.check .box svg { display: none; }
.check.on .box svg { display: block; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.seg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pc-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 24px; align-items: start; }
@media (max-width: 880px) { .pc-grid { grid-template-columns: 1fr; } }
.lht-grid { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
@media (max-width: 620px) { .lht-grid { grid-template-columns: 1fr; } }
.back-link { display: inline-flex; gap: 6px; align-items: center; margin: 18px 0 6px; font-size: 12px; }

/* Raidiam attribution wordmark */
.raidiam { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; color: var(--fg3); }
.raidiam .raidiam-logo { height: 14px; width: auto; display: block; color: var(--fg1); }
.raidiam.on-dark { color: var(--fg-on-ink-2); }
.raidiam.on-dark .raidiam-logo { color: #fff; }

/* phone view: reframe the main column inside a portrait bezel */
.phone-statusbar { display: none; align-items: center; gap: 9px; color: #fff;
  background: var(--brand-ink); margin: -16px -14px 16px; padding: 12px 20px 14px; }
body.phone .dash-grid { grid-template-columns: 1fr; }
body.phone .dash-aside { display: none; }
body.phone .dash-main {
  width: 390px; max-width: 100%; margin: 6px auto 0;
  border: 11px solid var(--brand-ink); border-radius: 44px;
  background: var(--bg-canvas); box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 16px 14px 22px;
}
body.phone .phone-statusbar { display: flex; }
