/* REALM Smart Contact - business dashboard */
body.dash-page { background: #eef2ec; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.dash-side { background: var(--forest); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 5; }
.dash-logo img { display: block; height: 38px; width: auto; }
.dash-co { margin: 0; font-weight: 800; color: var(--sun); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.dash-nav button svg { width: 18px; height: 18px; }
.dash-nav button[aria-selected="true"] { background: var(--brand); color: #1a0d00; }
.dash-foot { display: none; }
.dash-foot a, .dash-foot .linkish { color: rgba(255,255,255,.85); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 0; }
.dash-foot svg { width: 18px; height: 18px; }
.dash-main { padding: 18px 16px 40px; min-width: 0; }
.dash-load { text-align: center; padding: 60px 0; color: var(--ink2); }
.dhead { margin: 4px 0 14px; }
.dhead h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.02em; }
.dhead p { margin: 2px 0 0; }
.dcard { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; min-width: 0; }
.dcard h2 { margin: 0 0 10px; font-size: 1.15rem; }
.dcard h3 { margin: 16px 0 6px; font-size: 1rem; }
.dgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dgrid > .dcard { margin-bottom: 0; }
.dgrid + .dcard, .dgrid { margin-bottom: 14px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 2px; }
.kpi span { font-size: .85rem; color: var(--ink2); font-weight: 700; }
.kpi strong { font-size: 1.8rem; letter-spacing: -.02em; line-height: 1.1; }
.kpi small { color: var(--brand-d); font-weight: 700; }
.dchart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.dchart i { flex: 1; min-height: 2px; background: var(--forest2); border-radius: 4px 4px 0 0; }
.dchart i:last-child { background: var(--brand); }
.toplist { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.toplist li a { font-weight: 700; color: var(--ink); }
.toplist li span { display: block; font-size: .85rem; color: var(--ink2); }
.nextsteps { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.nextsteps .linkish { color: var(--brand-d); font-weight: 700; font-size: 1rem; text-decoration: underline; }
.insights .mini-h { margin-top: 0; }
.dform { display: grid; gap: 10px; margin-top: 12px; }
.dform label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.dform input, .dform select { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid #cdd2d8; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.dform.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.colors { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.colors input[type=color] { padding: 4px; height: 48px; width: 100%; cursor: pointer; }
.logo-box { display: grid; place-items: center; height: 110px; border-radius: 14px; background: repeating-conic-gradient(#f1f3f0 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.logo-prev { max-height: 90px; max-width: 80%; object-fit: contain; }
.cov-prev { height: 110px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--forest2), var(--brand)); display: grid; place-items: center; margin-bottom: 8px; border: 1px solid var(--line); }
.cov-prev img { width: 100%; height: 100%; object-fit: cover; }
.cov-prev .muted { color: #fff; padding: 0 12px; text-align: center; }
.small-pill { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dtable-wrap { overflow-x: auto; margin-top: 10px; }
.dtable { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.dtable th { text-align: left; font-size: .8rem; color: var(--ink2); padding: 8px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--tint); font-size: .8rem; font-weight: 700; }
.tag.s-new { background: #fff1e0; color: #8a4200; }
.big-line { font-size: 1.1rem; }
.dash .bad { color: #b42318; }
#teamBox h2 { margin-top: 0; }
@media (min-width: 900px) {
  .dash { grid-template-columns: 250px minmax(0, 1fr); }
  .dash-side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 16px; }
  .dash-nav { flex-direction: column; overflow: visible; margin: 10px 0 0; padding: 0; }
  .dash-nav button { justify-content: flex-start; background: none; }
  .dash-nav button:hover { background: rgba(255,255,255,.08); }
  .dash-foot { display: grid; margin-top: auto; gap: 2px; }
  .dash-main { padding: 28px 32px 48px; max-width: 1100px; }
}
@media (max-width: 899px) { .dash-side .dash-foot { display: none; } }
