* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; background: #eef2ff; color: #0f172a; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #001466 0%, #14338c 100%); color: #fff; padding: 28px 22px; }
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.brand-logo-frame {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  overflow: hidden;
  border-radius: 14px;
  flex: 0 0 52px;
}
.brand-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  min-width: 52px;
  min-height: 52px;
  display: block;
  object-fit: cover;
}
.brand-sub { color: rgba(255,255,255,.75); font-size: 13px; }
.nav { display: grid; gap: 10px; }
.nav a { color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); }
.nav a:hover { background: rgba(153,255,0,.18); }
.content { padding: 28px; }
.hero-card, .panel, .stat-card { background: #fff; border: 1px solid #d6def0; border-radius: 24px; box-shadow: 0 12px 40px rgba(15, 23, 42, .06); }
.hero-card { padding: 28px; margin-bottom: 22px; }
.hero-card.narrow { max-width: 560px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { padding: 22px; }
.stat-card span { display: block; color: #64748b; margin-bottom: 10px; }
.stat-card strong { font-size: 32px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-grid.single-top { grid-template-columns: minmax(320px, 420px) 1fr; }
.panel { padding: 22px; margin-bottom: 18px; }
.form-panel { position: sticky; top: 18px; align-self: start; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }
.filter-bar label { min-width: 260px; }
.filter-actions { display: flex; gap: 10px; align-items: center; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 14px; background: #e2e8f0; color: #0f172a; text-decoration: none; font-weight: 700; }
.small-button { min-height: 34px; padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.muted { color: #64748b; margin: 4px 0 0; }
.text-link { color: #14338c; text-decoration: none; font-weight: 700; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 12px 14px; background: #fff; }
button { border: none; border-radius: 14px; padding: 12px 18px; cursor: pointer; font-weight: 700; }
button.primary { background: #99ff00; color: #001466; }
button.secondary { background: #001466; color: #fff; }
button.danger { background: #b91c1c; color: #fff; }
.danger-action { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.link-button { background: transparent; color: #14338c; padding: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { color: #64748b; font-size: 13px; text-transform: uppercase; }
.grid-table { table-layout: fixed; }
.grid-table td { word-break: break-word; }
.table-wrap { width: 100%; overflow-x: auto; }
.admin-table { table-layout: fixed; }
.admin-table th, .admin-table td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.admin-table form { margin: 0; }
.excel-table { display: block; overflow: auto; max-height: 70vh; }
.excel-table thead, .excel-table tbody, .excel-table tr { width: 100%; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.active { background: #dcfce7; color: #166534; }
.status.inactive, .status.released { background: #fee2e2; color: #991b1b; }
.status.cooldown { background: #ffedd5; color: #9a3412; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.timeline strong, .timeline span, .timeline small { display: block; }
.timeline span { margin: 6px 0; }
.timeline small { color: #64748b; }
.alert { background: #fff1f2; color: #991b1b; border: 1px solid #fecdd3; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.pill { background: #e0f2fe; color: #0c4a6e; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.bar-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(160px, 240px) 1fr 56px; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.bar-label { font-weight: 600; }
.bar-track { height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #14338c 0%, #99ff00 100%); }
.bar-value { text-align: right; font-size: 14px; }
@media (max-width: 1100px) { .shell { grid-template-columns: 1fr; } .stats-grid, .panel-grid, .panel-grid.single-top { grid-template-columns: 1fr; } .sidebar { padding-bottom: 12px; } }
