:root {
  --ink: #20262c; --muted: #68727c; --line: #dfe3e6; --paper: #f4f5f6;
  --white: #fff; --green: #245c45; --lime: #e8f0eb; --shadow: none;
}
body { background: var(--paper); }
.eyebrow { display: none; }
.brand-mark, .brand-mark.small { width: 38px; height: 38px; border-radius: 4px; background: #eef1f3; color: #26323a; box-shadow: none; font-size: 12px; }
input, select, textarea { border-color: #ccd2d7; border-radius: 4px; padding: 10px 11px; transition: none; }
input:focus, select:focus, textarea:focus { border-color: #245c45; box-shadow: 0 0 0 2px rgba(36,92,69,.1); }
.primary-button, .secondary-button, .danger-button, .command-button { border-radius: 4px; box-shadow: none; font-weight: 700; }
.primary-button { background: #245c45; }
.primary-button:hover { background: #194834; }
.secondary-button { background: #e9ecef; }

/* Login */
.login-page { background: #f4f5f6; }
.login-shell { display: block; }
.login-brand { display: none; }
.login-panel { min-height: 100vh; padding: 32px 20px; background: #f4f5f6; }
.login-card { width: min(400px,100%); padding: 32px; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.login-card h2 { font-size: 24px; }
.login-card form { gap: 15px; margin-top: 24px; }

/* Navigation */
.sidebar { width: 224px; padding: 18px 12px; background: #20272e; }
.sidebar-user-placeholder {
  min-height: 38px;
  margin: 0 6px 18px;
}
.sidebar nav { gap: 2px; }
.nav-label { margin: 17px 10px 6px; color: #89949d; }
.nav-item { gap: 10px; border-radius: 4px; padding: 9px 10px; color: #c5cbd0; }
.nav-item:hover, .nav-item.active { background: #343d45; }
.nav-item.active span { color: #fff; }
.sidebar-footer .avatar { border-radius: 4px; background: #e7ebee; color: #263039; }
.app-main { width: calc(100% - 224px); margin-left: 224px; }
.topbar { min-height: 64px; padding: 12px 24px; background: #fff; backdrop-filter: none; }
.topbar h1 { font-size: 18px; }
.live-badge, .status-pill, .inline-status { border-radius: 4px; }
.icon-button, .menu-button { border-radius: 4px; }
.content { padding: 24px; }

/* Content */
.hero-row { align-items: center; margin-bottom: 18px; }
.hero-row h2 { font-size: 24px; letter-spacing: -.025em; }
.hero-row .muted { margin-top: 5px; font-size: 13px; }
.metric-grid { gap: 10px; }
.metric-card { min-height: 116px; padding: 17px; border-radius: 5px; box-shadow: none; }
.metric-card.accent { border-color: #ccd2d7; background: #fff; color: var(--ink); }
.metric-card p, .metric-card.accent p, .metric-card.accent small { margin-top: 15px; color: var(--muted); }
.metric-card strong { font-size: 27px; }
.metric-icon { right: 16px; top: 15px; color: #7b858e; font-size: 16px; }
.dashboard-grid, .content-grid { gap: 10px; margin-top: 10px; }
.panel { padding: 18px; border-radius: 5px; box-shadow: none; }
.panel h3 { font-size: 16px; }
.table-panel { padding: 0; }
.toolbar { padding: 13px 15px; }
th, td { padding: 12px 15px; }
th { background: #f6f7f8; color: #65707a; }
.stack-list, .asset-grid, .content-list { margin-top: 14px; }
.stack-item { padding: 11px 0; }
.health-ring-wrap { min-height: 155px; }
.health-ring { width: 108px; height: 108px; border-width: 11px; }

/* Cards and editors */
.fleet-summary { gap: 7px; margin-bottom: 10px; }
.fleet-chip { min-height: 66px; padding: 10px; border-radius: 4px; }
.fleet-chip strong { font-size: 20px; }
.asset-grid { gap: 9px; }
.asset-card, .content-item, .inventory-stat, .pool-device, .editor-row,
.quick-start-steps > section, .quick-store-row, .media-upload-row,
.registration-guide, .replacement-code-summary, .secret-box,
.activation-code-row, .stock-field, .image-guide, .upload-field {
  border-radius: 5px; box-shadow: none;
}
.asset-card, .content-item, .quick-start-steps > section, .media-upload-row { background: #fff; }
.asset-card-body { padding: 10px; }
.content-item { padding: 12px; }
.thumbnail-row img, .thumbnail-mini, .editor-row img, .editor-row .asset-placeholder,
.media-upload-preview img, .media-upload-preview > span, .image-validation img { border-radius: 4px; }
.inventory-bar { border-radius: 2px; }
.quick-start-steps > section { padding-top: 15px; padding-bottom: 15px; }
.step-number { border-radius: 3px; }
.registration-guide, .replacement-code-summary, .image-guide { background: #f7f9f8; }
.media-first-upload input[type=file] { border-radius: 5px; background: #fff; }
.activation-code-value { border-radius: 5px; font-size: 28px; }
.uuid-segment, .weight-summary, .command-warning, .audit-data, .device-log-content { border-radius: 4px; }
.pairing-code-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 24px minmax(120px, 180px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 8px;
}
.pairing-code-wrap span {
  color: #68727c;
  font: 700 24px Consolas, monospace;
  text-align: center;
}
.pairing-code-segment {
  min-width: 0;
  padding: 16px 10px;
  font: 700 28px Consolas, monospace;
  letter-spacing: 4px;
  text-align: center;
}

/* Dialogs and previews */
dialog { border-radius: 6px; box-shadow: 0 18px 50px rgba(25,33,39,.18); }
dialog::backdrop { background: rgba(25,33,39,.45); backdrop-filter: none; }
dialog form { padding: 22px; }
.dialog-heading { margin-bottom: 18px; }
.dialog-heading h2 { font-size: 21px; }
.toast { border-radius: 4px; background: #20272e; box-shadow: none; }
.kiosk-preview { border-radius: 5px; background: #20272e; }
.preview-button, .preview-prizes span { border-radius: 4px; }
.roulette-preview { padding: 22px; background: #f6f7f8; }
.roulette-preview li, .preview-total { border-radius: 4px; }
.preview-wheel { box-shadow: none; }

@media (max-width: 760px) {
  .app-main { width: 100%; margin-left: 0; }
  .content { padding: 18px 14px; }
  .topbar { padding: 11px 14px; }
  .pairing-code-wrap { grid-template-columns: 1fr 20px 1fr; }
}
[hidden] {
  display: none !important;
}
