/* Page layout on top of GLASS bundle.css (glass.css, taken as is). Only layout here — colours, type and
   components come from the bundle tokens and classes. */
html, body { margin: 0; padding: 0; height: 100%; }
body { display: block; padding: 0; }   /* colours, type and page glows come from glass.css */
.app { display: flex; height: 100vh; }
.rail { flex: none; height: 100vh; position: sticky; top: 0; }
.rail .brand span { font-size: 12px; letter-spacing: .3em; }
.rail a { position: relative; }
.rail-cnt { position: absolute; top: 4px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--amber-vivid); color: #1a1a1a; font: 600 10px/16px var(--font-sans); }
.rail-cnt:empty { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.header { gap: 16px; }
.h-search { width: 280px; margin-left: auto; }
.content { flex: 1; overflow: auto; padding: 24px 32px 48px; }
.page-title { font: 700 24px/32px var(--font-sans); margin: 0 0 4px; letter-spacing: -.01em; }
.lead { color: var(--muted-foreground); margin: 0 0 20px; font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; }
.tile { display: block; padding: 20px; color: inherit; text-decoration: none; cursor: pointer; }
.tile:hover { box-shadow: var(--shadow-glow-primary); }
.tile h3 { margin: 8px 0 4px; font: 600 18px/24px var(--font-sans); }
.tile p { margin: 0; color: var(--muted-foreground); }
.tile .big { font: 700 28px/32px var(--font-sans); font-variant-numeric: tabular-nums; }
.panel { padding: 20px; margin-bottom: 16px; }
.panel h2 { font: 600 18px/24px var(--font-sans); margin: 0 0 12px; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--popover); box-shadow: var(--shadow-popover); margin: 16px 0; font-size: 14px; width: auto; }
.verdict b { font-size: 15px; }
.verdict .mark { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.verdict.ok .mark { background: var(--success); } .verdict.hold .mark { background: var(--amber-vivid); } .verdict.fail .mark { background: var(--destructive); }
.table .tr { cursor: default; } .table .tr.click { cursor: pointer; }
.table .td { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.stat { padding: 14px 16px; }
.stat .v { font: 700 26px/32px var(--font-sans); font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted-foreground); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.guide { max-width: 900px; font-size: 14px; line-height: 1.6; }
.guide h1 { font: 700 24px/32px var(--font-sans); } .guide h2 { font: 600 19px/26px var(--font-sans); margin-top: 28px; }
.guide h3 { font: 600 15px/22px var(--font-sans); margin-top: 20px; }
.guide pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; overflow: auto;
  font: 12.5px/1.5 var(--font-mono); }
.guide code { font-family: var(--font-mono); font-size: 12.5px; }
.guide table { border-collapse: collapse; margin: 8px 0; } .guide td, .guide th { border: 1px solid var(--border); padding: 4px 10px; text-align: left; }
.login { max-width: 560px; margin: 10vh auto; padding: 28px; }
.login .roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.login .roles .btn { height: 56px; justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 0; }
.login .roles .btn small { font-weight: 400; color: var(--muted-foreground); font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .grid3, .grid2 { grid-template-columns: 1fr; } .content { padding: 16px; } .h-search { display: none; }
  .rail { width: 64px; } .header .user > div { display: none; }
}
[hidden] { display: none !important; }
/* ISSUE-001: on a phone table rows become stacked cards (GLASS rows keep their look) */
@media (max-width: 700px) {
  .table .thead { display: none; }
  .table .tr { display: grid; grid-template-columns: 1fr !important; gap: 4px; padding: 10px 12px; }
  .table .td { padding: 0; white-space: normal; overflow: visible; }
  .segmented { flex-wrap: wrap; height: auto; }
}
.field-label { font-weight: 500; font-size: 13px; }
.dialog-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog-wrap .dialog { max-width: 480px; }
