.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.site-nav .nav-trigger {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.site-nav .nav-trigger:hover,
.site-nav a.active {
  color: var(--accent);
  background: #eef4ff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px;
  list-style: none;
  margin: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
}

.nav-dropdown-menu a:hover {
  background: #eef4ff;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-logo {
    margin-right: 0;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 32px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .site-nav .nav-trigger {
    width: 100%;
    text-align: left;
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 4px 8px;
    margin: 0;
    background: transparent;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu li {
    margin: 0;
  }

  .nav-dropdown-menu a {
    padding: 12px;
    font-size: 14px;
  }
}

body.nav-menu-open {
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.page-header .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.report-issue-notice {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
  line-height: 1.5;
}

.report-issue-notice .js-feedback-open {
  color: var(--accent);
  text-decoration: underline;
}

.report-issue-notice .js-feedback-open:hover {
  text-decoration: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--accent);
  padding: 24px;
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.dropzone-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dropzone-hint {
  color: var(--muted);
  font-size: 14px;
}

.file-name {
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
}

.params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .params { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="password"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

input[type="file"] { display: none; }

button.primary {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-box {
  display: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

.status-box.visible { display: block; }
.status-box.processing { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.status-box.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.status-box.error { background: #fef2f2; border: 1px solid #fecaca; color: var(--error); }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.results { display: none; scroll-margin-top: 72px; }
.results.visible { display: block; }

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.meta-line {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.result-disclaimer {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.repair-report { margin-top: 16px; }

.repair-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.repair-table th,
.repair-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.repair-table th {
  color: var(--muted);
  font-weight: 600;
}

.repair-table tr.changed td {
  color: var(--text);
  font-weight: 500;
}

.check-verdict {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.check-verdict-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.check-verdict-warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.check-verdict-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.check-warnings {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-warning {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.check-warning-info {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.check-warning-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.check-warning-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.field-hint-inline {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.webgl-notice { margin-bottom: 24px; }

.experimental-notice {
  margin-top: 0;
  font-family: inherit;
}

.experimental-notice p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.experimental-notice p:last-child {
  margin-bottom: 0;
}

.experimental-notice strong {
  color: var(--text);
  font-weight: 600;
}

.field-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
}

.field-hint summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 500;
  color: var(--accent);
  list-style: none;
}

.field-hint summary::-webkit-details-marker { display: none; }

.field-hint-content {
  padding-bottom: 12px;
  line-height: 1.55;
}

.measure-summary {
  margin: 16px 0;
}

.measure-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.measure-size-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.measure-size-card-accent {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.measure-size-label {
  font-size: 13px;
  color: var(--muted);
}

.measure-size-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.measure-size-unit {
  font-size: 13px;
  color: var(--muted);
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.conversion-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.conversion-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.conversion-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent);
}

.conversion-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

model-viewer.viewer {
  width: 100%;
  height: 420px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

model-viewer.viewer-tower-label {
  --progress-bar-color: transparent;
}

model-viewer.viewer-full {
  width: 100%;
  height: calc(100vh - 180px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gcode-viewer {
  position: relative;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f7f9ff;
  overflow: hidden;
}

.gcode-viewer-full {
  margin-top: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: calc(100vh - 180px);
}

.gcode-canvas {
  display: block;
  width: 100%;
  min-height: 420px;
}

.gcode-viewer-full .gcode-canvas {
  min-height: calc(100vh - 180px);
}

.slice-preview-wrap {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f7f9ff;
  overflow: hidden;
}

.viewer-shell {
  position: relative;
  margin-top: 20px;
}

.viewer-shell > model-viewer.viewer,
.viewer-shell > model-viewer.viewer-full,
.viewer-shell > .gcode-viewer,
.viewer-shell > canvas.viewer-canvas {
  margin-top: 0;
}

.viewer-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  pointer-events: none;
}

.viewer-toolbar-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  pointer-events: auto;
}

.viewer-shell.viewer-hint-hidden model-viewer {
  --progress-bar-color: transparent;
}

.viewer-view-btns,
.viewer-zoom-btns,
.viewer-light-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.viewer-control-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  padding: 2px 0 1px;
  user-select: none;
}

.preview-opacity-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 8px;
  font-size: 14px;
}

.preview-opacity-row label {
  font-weight: 500;
  color: var(--text);
}

.preview-opacity-row input[type="range"] {
  flex: 1;
  min-width: 140px;
  max-width: 280px;
}

.preview-opacity-hint {
  color: var(--muted);
  font-size: 13px;
}

.hole-pick-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hole-pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hole-pick-status {
  font-size: 13px;
  color: var(--muted);
}

.hole-pick-status.ready {
  color: var(--success, #1f7a4d);
  font-weight: 600;
}

.hole-pick-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hole-pick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.hole-pick-panel .viewer-shell {
  margin-top: 0;
}

.viewer-step-btns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2px;
  width: 100%;
}

.viewer-toolbar button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
  width: 100%;
}

.viewer-toolbar button:hover {
  background: #eef4ff;
  color: var(--accent);
}

.viewer-step-btns button {
  font-size: 17px;
  min-width: 34px;
  padding: 4px 8px;
  width: auto;
}

.slice-preview-canvas,
.viewer-canvas {
  display: block;
  width: 100%;
  height: 420px;
  min-height: 420px;
  cursor: grab;
}

.slice-preview-canvas:active,
.viewer-canvas:active {
  cursor: grabbing;
}

.axis-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.axis-btn {
  min-width: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.axis-btn:hover,
.axis-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef4ff;
}

.cut-live-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cut-live-preview-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.cut-live-preview-hint {
  margin: 0 0 12px;
}

.params select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--panel);
}

.params input[type="range"] {
  width: 100%;
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-top: 28px;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
}

.gcode-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 6px;
}

.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--accent, #3b6fc7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.feedback-fab:hover {
  filter: brightness(1.05);
}

body.feedback-modal-open {
  overflow: hidden;
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.feedback-modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  z-index: 1;
}

.feedback-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.feedback-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.feedback-modal-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.feedback-form .field {
  margin-bottom: 16px;
}

.feedback-form .field:last-of-type {
  margin-bottom: 0;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.feedback-submit {
  margin-top: 20px;
}

.admin-login-form .field {
  margin-bottom: 16px;
}

.admin-login-form .field:last-of-type {
  margin-bottom: 0;
}

.admin-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-feedback-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-feedback-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-feedback-meta a {
  color: var(--accent, #3b6fc7);
}

.admin-feedback-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.admin-feedback-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.admin-nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.admin-nav-link.is-active {
  border-color: var(--accent);
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-section-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.admin-table-muted {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.admin-table-ua {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-jobs td {
  vertical-align: top;
}

.admin-row-warn {
  background: rgba(220, 140, 40, 0.06);
}

.admin-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-status-done {
  background: rgba(60, 160, 90, 0.15);
  color: #2d8a52;
}

.admin-status-failed {
  background: rgba(200, 60, 60, 0.12);
  color: var(--error);
}

.admin-status-processing,
.admin-status-pending {
  background: rgba(80, 130, 220, 0.12);
  color: #3a6fd8;
}

.admin-status-unknown {
  background: rgba(120, 120, 120, 0.12);
  color: var(--muted);
}

.admin-expires-soon {
  color: #c87820;
  font-weight: 600;
}

.admin-job-actions {
  white-space: nowrap;
  font-size: 14px;
}

.admin-job-actions a {
  color: var(--accent);
  text-decoration: none;
}

.admin-job-actions a:hover {
  text-decoration: underline;
}

.admin-dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.admin-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-dl dd {
  margin: 0;
  font-size: 14px;
}

.admin-error-text {
  color: var(--error);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-meta-json {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-elevated, rgba(0, 0, 0, 0.04));
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
}

.admin-usage-legend {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.admin-usage-legend .admin-event-kind {
  margin-right: 4px;
}

.admin-usage-row-api {
  background: rgba(80, 130, 220, 0.08);
}

.admin-usage-row-api td:first-child {
  box-shadow: inset 3px 0 0 #3a6fd8;
}

.admin-usage-row-page td:first-child {
  box-shadow: inset 3px 0 0 rgba(120, 120, 120, 0.35);
}

.admin-event-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-event-kind-api {
  background: rgba(80, 130, 220, 0.18);
  color: #2f5fb8;
}

.admin-event-kind-page {
  background: rgba(120, 120, 120, 0.12);
  color: var(--muted);
}

.admin-usage-path {
  font-size: 12px;
  word-break: break-all;
}
