/*
 * Margika Admin Styles
 * Minimal, professional UI with tight spacing
 */

/* CSS Variables - Color Palette */
:root {
  --space-indigo: #2b2d42;
  --lavender-grey: #8d99ae;
  --platinum: #edf2f4;
  --punch-red: #ef233c;
  --flag-red: #d90429;
  --white: #ffffff;

  --color-bg: var(--white);
  --color-bg-elevated: var(--platinum);
  --color-bg-muted: rgba(141, 153, 174, 0.1);
  --color-heading: var(--space-indigo);
  --color-text: #374151;
  --color-text-muted: var(--lavender-grey);
  --color-accent: var(--punch-red);
  --color-accent-hover: var(--flag-red);
  --color-border: rgba(141, 153, 174, 0.25);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: var(--punch-red);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(43, 45, 66, 0.06);
  --shadow: 0 1px 3px rgba(43, 45, 66, 0.08), 0 1px 2px rgba(43, 45, 66, 0.04);
  --shadow-lg: 0 4px 12px rgba(43, 45, 66, 0.1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

body.admin {
  background: var(--platinum);
}

body, html {
  height: 100%;
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: var(--space-indigo);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
}

.app-header h1,
.app-header .brand-heading {
  margin: 0;
  font-family: 'Tourney', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.app-header .brand-tagline {
  display: block;
  color: var(--lavender-grey);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.app-header .btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-header .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main */
.app-main {
  flex: 1;
  padding: 1.5rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Login Page */
.login-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #4a4e69 0%, var(--space-indigo) 100%);
}

.login-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-brand {
  margin: 0 0 0.5rem 0;
  text-align: center;
  color: var(--space-indigo);
  font-family: 'Tourney', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-brand::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--punch-red), var(--flag-red));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.login-tagline {
  color: var(--lavender-grey);
  font-size: 0.875rem;
  margin: 0 0 2.5rem 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.login-card .form-group {
  margin-bottom: 1.75rem;
}

.login-card .form-control {
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

.login-card label {
  font-size: 0.875rem;
}

.login-card .btn-primary {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.login-card .error-message {
  background: rgba(239, 35, 60, 0.1);
  border: 1px solid var(--punch-red);
  color: var(--flag-red);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.login-container .notice,
.login-container .alert {
  width: 100%;
  max-width: 360px;
  margin: 0;
  text-align: center;
}

body[data-controller="login"] .app-header {
  display: none;
}

body[data-controller="login"] {
  background: none;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: var(--platinum);
  padding: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.tab-btn {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--space-indigo);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  color: var(--space-indigo);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
  margin: 0;
  color: var(--space-indigo);
  font-size: 0.9375rem;
}

.card h3 {
  margin: 0 0 0.75rem 0;
  color: var(--space-indigo);
  font-size: 0.9375rem;
}

.card:last-child {
  margin-bottom: 0;
}

.danger-zone {
  border: 1px solid var(--punch-red);
}

.danger-zone h3 {
  color: var(--punch-red);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 600;
  color: var(--space-indigo);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--platinum);
}

.table th:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.table th:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.table tbody tr:hover {
  background: var(--platinum);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-error {
  background: rgba(239, 35, 60, 0.12);
  color: var(--flag-red);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.badge-secondary {
  background: var(--platinum);
  color: var(--lavender-grey);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  vertical-align: middle;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--lavender-grey);
  transition: 0.2s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--color-success);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

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

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--punch-red);
  color: white;
  border-color: var(--punch-red);
}

.btn-primary:hover:not(:disabled) {
  background: var(--flag-red);
  border-color: var(--flag-red);
}

.btn-secondary {
  background: var(--white);
  color: var(--space-indigo);
  border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--platinum);
  border-color: var(--lavender-grey);
}

.btn-danger {
  background: var(--white);
  color: var(--punch-red);
  border-color: var(--punch-red);
}

.btn-danger:hover:not(:disabled) {
  background: var(--punch-red);
  color: white;
}

.btn-sm {
  padding: 0.3125rem 0.625rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--space-indigo);
  box-shadow: 0 0 0 3px rgba(43, 45, 66, 0.08);
}

.form-control-sm {
  padding: 0.3125rem 0.5rem;
  font-size: 0.8125rem;
  min-width: 120px;
}

.form-control::placeholder {
  color: var(--lavender-grey);
}

label {
  display: block;
  margin-bottom: 0.3125rem;
  font-weight: 500;
  color: var(--space-indigo);
  font-size: 0.8125rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--space-indigo);
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--punch-red);
}

.form-help {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.form-help code {
  background: var(--platinum);
  padding: 0.0625rem 0.25rem;
  border-radius: 3px;
  font-size: 0.6875rem;
}

.form-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
}

.form-fieldset legend {
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--space-indigo);
  font-size: 0.8125rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.form-error {
  border-color: var(--punch-red) !important;
}

.error-explanation {
  background: rgba(239, 35, 60, 0.06);
  border: 1px solid var(--punch-red);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  color: var(--flag-red);
}

.error-explanation h3 {
  margin: 0 0 0.375rem 0;
  font-size: 0.875rem;
}

.error-explanation ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

/* Notifications */
.notice, .alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.notice {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert {
  background: rgba(239, 35, 60, 0.08);
  color: var(--flag-red);
  border: 1px solid rgba(239, 35, 60, 0.2);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 90vw;
  width: 400px;
}

/* Toast */
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  animation: toast-enter 0.3s ease forwards;
  pointer-events: auto;
}

.toast-exit {
  animation: toast-fade-out 0.3s ease forwards;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.toast-notice {
  border-left: 3px solid var(--color-success);
}

.toast-alert {
  border-left: 3px solid var(--punch-red);
}

.toast-message {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text);
}

.toast-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender-grey);
  transition: background 0.2s ease;
}

.toast-dot.active {
  background: var(--color-success);
}

.toast-alert .toast-dot.active {
  background: var(--punch-red);
}

.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--lavender-grey);
  cursor: pointer;
  transition: all 0.15s;
}

.toast-close:hover {
  background: var(--platinum);
  color: var(--space-indigo);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stats-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--space-indigo);
  line-height: 1.2;
}

.stats-grid-compact .stat-value {
  font-size: 1.125rem;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.stat-card.success .stat-value {
  color: var(--color-success);
}

.stat-card.error .stat-value {
  color: var(--color-error);
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.page-header h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--space-indigo);
}

.page-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Webhook-specific */
.webhook-url {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Endpoint cell with copy button */
.endpoint-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-path {
  transition: opacity 0.15s ease;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--lavender-grey);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

tr:hover .copy-btn,
.copy-btn:focus {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--space-indigo);
  background: var(--platinum);
}

.copy-btn.copied {
  color: var(--color-success);
  opacity: 1;
}

.copy-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 45, 66, 0.2);
}

.channel-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--lavender-grey, #6c6f93);
  font-size: 0.9rem;
}

.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-inline-rotate 0.7s linear infinite;
}

@keyframes spinner-inline-rotate {
  to { transform: rotate(360deg); }
}

/* Brief highlight applied to a row when arriving via ?highlight=ID
   or ?event=ID — drives the eye to the relevant row. */
.row-flash {
  animation: row-flash 2s ease-out;
}

@keyframes row-flash {
  0%   { background-color: rgba(245, 158, 11, 0.45); }
  100% { background-color: transparent; }
}

.recent-event-row {
  cursor: pointer;
}

.recent-event-row:hover {
  background-color: var(--platinum, #f3f4f6);
}

.recent-event-row .webhook-link {
  text-decoration: none;
  color: inherit;
}

.recent-event-row .webhook-link:hover code {
  text-decoration: underline;
}

/* Payload modal — used by admin/events.html.erb */
.payload-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.payload-modal-content {
  background: white;
  border-radius: 8px;
  width: min(700px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.payload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--platinum, #e5e7eb);
}

.payload-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payload-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--lavender-grey, #6c6f93);
  padding: 0 0.25rem;
}

.payload-modal-close:hover {
  color: var(--space-indigo, #1f2937);
}

.payload-modal-body {
  padding: 1rem 1.25rem;
  overflow: auto;
}

.payload-modal-body pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}

code {
  background: var(--platinum);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--space-indigo);
}

/* Destinations */
.destinations {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.destination-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  background: var(--white);
  transition: border-color 0.15s;
}

.destination-section:hover {
  border-color: var(--lavender-grey);
}

.destination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.destination-fields {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.destination-section:has(input[type="checkbox"]:not(:checked)) .destination-fields {
  display: none;
}

/* Auth Fields */
.auth-fields {
  padding: 0.875rem;
  background: var(--platinum);
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

/* Actions column */
.actions {
  display: flex;
  gap: 0.375rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-error { color: var(--color-error); }
.text-nowrap { white-space: nowrap; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-responsive {
    overflow-x: auto;
  }

  .tab-nav {
    flex-wrap: wrap;
  }
}

/* Webhook Detail Panel */
.page-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.page-layout .main-content {
  flex: 1;
  transition: margin-right 0.3s ease;
}

.page-layout .main-content.panel-open {
  margin-right: 400px;
}

@media (max-width: 768px) {
  .page-layout .main-content.panel-open {
    margin-right: 0;
  }
}

.webhook-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.webhook-panel.open {
  transform: translateX(0);
}

.webhook-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.webhook-panel-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--platinum);
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--space-indigo);
}

.panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--lavender-grey);
  transition: all 0.15s;
}

.panel-close:hover {
  background: var(--white);
  color: var(--space-indigo);
}

.panel-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
}

.panel-section {
  margin-bottom: 1.5rem;
}

.panel-section:last-child {
  margin-bottom: 0;
}

.panel-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-grey);
  margin-bottom: 0.5rem;
}

.panel-value {
  font-size: 0.9375rem;
  color: var(--color-text);
  word-break: break-all;
}

.panel-value code {
  display: block;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--platinum);
  border-radius: var(--radius);
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--platinum);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
}

.panel-row-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.panel-row-value {
  font-size: 0.875rem;
  color: var(--space-indigo);
  font-weight: 500;
  text-align: right;
}

.panel-row-value small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--lavender-grey);
}
