/* BraxOS UI kit shared styles — extends colors_and_type tokens */

* { box-sizing: border-box; }

.os-frame {
  width: 1366px;
  height: 900px;
  background: var(--os-bg);
  color: var(--os-text-1);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Status bar */
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  color: #fff;
  background: transparent;
  flex-shrink: 0;
}
.statusbar .left, .statusbar .right { display: flex; align-items: center; gap: 14px; }
.statusbar .time { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.statusbar .ic { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.6; }
.statusbar .pct { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* App chrome */
.app-shell { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 240px; background: var(--os-surface);
  border-right: 1px solid var(--os-border);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 16px;
}
.sidebar .shield {
  width: 28px; height: 28px;
  background: linear-gradient(180deg, #2A1810, var(--brand-orange));
  display: flex; align-items: center; justify-content: center;
}
.sidebar .shield svg { width: 16px; height: 16px; }
.sidebar .brand-name {
  font-family: var(--font-display); font-weight: 600; color: var(--os-text-1);
  font-size: 16px; letter-spacing: 0.01em;
}
.sidebar .item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  color: var(--os-text-2);
  font-family: var(--font-label); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.sidebar .item svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; fill: none; stroke-width: 1.6; }
.sidebar .item:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--os-text-1); }
.sidebar .item.active {
  background: var(--brand-orange-tint);
  color: var(--brand-orange);
  border-left: 2px solid var(--brand-orange);
  padding-left: 12px;
}

/* Main */
.main {
  flex: 1; min-width: 0;
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--os-bg);
}
.main-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.main-head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--os-text-1); }
.main-head .sub { font-family: var(--font-body); font-size: 14px; color: var(--os-text-2); margin-top: 4px; }

.search {
  flex: 1; height: 38px;
  background: var(--os-card);
  border: 1px solid var(--os-border);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  color: var(--os-text-3);
  font-family: var(--font-body); font-size: 14px;
}
.search svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Cards */
.card {
  background: var(--os-card);
  border: 1px solid var(--os-border);
  border-radius: 14px;
  padding: 18px;
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.10em;
  font-weight: 600; text-transform: uppercase;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; }
.pill.safe     { background: var(--status-safe-bg);     color: var(--status-safe); }
.pill.audited  { background: var(--status-audited-bg);  color: var(--status-audited); }
.pill.verified { background: var(--status-verified-bg); color: var(--status-verified); }
.pill.warn     { background: var(--status-warn-bg);     color: #F4B740; }
.pill.risky    { background: var(--status-risky-bg);    color: var(--status-risky); }

/* Buttons (square edges everywhere) */
.btn {
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  padding: 11px 18px;
  border-radius: 0; border: 0; cursor: pointer; line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.btn.pri  { background: var(--brand-orange); color: #fff; }
.btn.pri:hover  { background: var(--brand-orange-hover); }
.btn.sec  { background: var(--os-card-2); color: var(--os-text-1); border: 1px solid var(--os-border); }
.btn.sec:hover  { background: #2A2F39; }
.btn.chip { background: var(--os-card-2); color: var(--os-text-2); border: 1px solid var(--os-border); padding: 8px 13px; font-size: 11px; }
.btn.chip.active { background: var(--brand-orange-tint); color: var(--brand-orange); border-color: rgba(230,80,53,0.35); }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
}

/* Aurora wallpaper bg */
.aurora-bg {
  background:
    radial-gradient(ellipse 65% 50% at 25% 55%, #FF7B2A 0%, #C5331F 30%, #4B0E08 65%, #0A0405 100%);
}

/* Score numerals */
.score-n { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.score-n.s { color: var(--status-safe); }
.score-n.a { color: var(--status-audited); }
.score-n.w { color: #F4B740; }
.score-n.r { color: var(--status-risky); }
