:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --border: #2a3544;
  --text: #e8edf2;
  --muted: #9aa8b8;
  --accent: #c5a44d;
  --accent-dim: #9a7b2e;
  --danger: #ff8b8b;
  --radius: 12px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1a3d34 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #1e2a4a 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header.compact {
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  color: var(--accent);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  gap: 0.75rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  max-width: 20ch;
}

.lede {
  color: var(--muted);
  max-width: 52ch;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill.muted {
  background: var(--surface);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #1e2a12;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card.inner {
  margin-bottom: 1.25rem;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags li {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  border-radius: 6px;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-main {
  max-width: 560px;
}

.panel h1 {
  font-size: 1.5rem;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ticket .status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--bg);
}

.ticket .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.brand-link {
  color: var(--text);
  font-weight: 600;
}

.owner-main {
  max-width: 880px;
}

.compact-nav {
  gap: 0.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.stat {
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tab {
  font: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-panel + .tab-panel {
  margin-top: 0.5rem;
}

.status-select {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}