.layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100dvh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { font-weight: 800; font-size: 16px; padding: 4px 10px 14px; }
.nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--info-bg); color: var(--info); font-weight: 600; }
.side .spacer { flex: 1; }
.content { padding: 20px 28px 40px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.org-name { font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--text); display: block; }
.tile .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 13px; color: var(--text-2); }
.tile.bad .v { color: var(--bad); }
.tile.ok .v { color: var(--ok); }
.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); text-decoration: none; color: var(--text); }
.step .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; background: var(--muted-bg); color: var(--text-2); }
.step.done .mark { background: var(--ok-bg); color: var(--ok); }
.section { margin-top: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.auth { max-width: 400px; margin: 8vh auto; }
.form-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.code-box { font-size: 30px; font-weight: 800; letter-spacing: .12em; padding: 14px; text-align: center; border-radius: 10px; background: var(--surface-2); user-select: all; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.price-input { width: 110px; }
.dialog-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 45%); display: grid; place-items: center; padding: 16px; z-index: 10; }
.dialog { max-width: 520px; width: 100%; max-height: 90dvh; overflow: auto; }
.empty { padding: 26px; text-align: center; color: var(--text-2); }
.table-wrap { overflow-x: auto; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 20; max-width: 360px; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; }
  .brand, .side .spacer { display: none; }
  .nav { display: flex; gap: 4px; }
  .nav a { white-space: nowrap; }
  .content { padding: 14px 16px 40px; }
  .hide-mobile { display: none; }
}
