:root {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-accent: #1a2332;
  --card: #151d28;
  --border: #2a3544;
  --text: #e8edf5;
  --muted: #8b98a8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --error: #f87171;
  --success: #4ade80;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 80px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.is-booting .login-card,
body.is-booting .app-shell {
  display: none !important;
}

body.is-booting {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1e3a5f 0%, transparent 42%),
    radial-gradient(circle at bottom right, #1a2e1a 0%, transparent 38%),
    var(--bg);
  color: var(--text);
}

body.is-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(4px);
}

.loading-overlay[hidden] {
  display: none !important;
}

.loading-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(21, 29, 40, 0.96);
  box-shadow: var(--shadow);
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(59, 130, 246, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.layout {
  min-height: 100vh;
}

.page {
  display: grid;
  place-items: center;
  padding: 24px;
  width: 100%;
  min-height: 100vh;
}

body.app-authenticated .page {
  place-items: stretch;
  padding: 0;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.sidebar {
  position: relative;
  z-index: 2;
  min-height: 100%;
  background: #121820;
  border-right: 1px solid var(--border);
}

.sidebar-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  overflow: hidden;
}

.sidebar-top {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark--sidebar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  min-width: 0;
}

.sidebar-brand-title {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-partner {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted, #8b93a7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.sidebar-edge-toggle {
  position: absolute;
  top: 22px;
  right: -13px;
  z-index: 5;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1a2332;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sidebar-edge-toggle:hover {
  border-color: #4b5d74;
  background: #243247;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 16px 12px;
  align-content: start;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-item.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item--logout {
  color: var(--muted);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.nav-badge {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-badge {
  display: none;
}

body.sidebar-collapsed .sidebar-top {
  padding: 20px 0 16px;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

body.sidebar-collapsed .sidebar-nav,
body.sidebar-collapsed .sidebar-footer {
  padding-inline: 10px;
}

body.sidebar-collapsed .nav-item {
  width: 48px;
  min-height: 48px;
  margin-inline: auto;
  padding: 0;
  justify-content: center;
  box-shadow: none;
}

body.sidebar-collapsed .nav-item.is-active {
  box-shadow: none;
  background: rgba(59, 130, 246, 0.16);
}

body.sidebar-collapsed .nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.app-main {
  padding: 20px 24px 24px;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(30, 58, 95, 0.35) 0%, transparent 42%),
    radial-gradient(circle at bottom right, rgba(26, 46, 26, 0.25) 0%, transparent 38%),
    var(--bg);
}

.content-panel {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-accent) 100%);
  box-shadow: var(--shadow);
}

.content-header {
  margin-bottom: 20px;
}

.tx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tx-search-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.tx-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tx-search-btn {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tx-search-btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.tx-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.tx-pager-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.tx-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tx-pager-meta {
  font-size: 13px;
  color: var(--muted);
}

.content-title {
  margin: 4px 0 0;
  font-size: 24px;
}

.content-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.description-cell {
  max-width: 280px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-accent) 100%);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.brand-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

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

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field input::placeholder {
  color: #66758a;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.error {
  margin: 0;
  font-size: 13px;
  color: var(--error);
}

.success {
  margin: 0;
  font-size: 13px;
  color: var(--success);
}

.transactions-panel,
.content-panel {
  width: min(100%, 1280px);
}

.ghost-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.ghost-button:hover {
  border-color: #4b5d74;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
  font-size: 13px;
}

.transactions-table thead {
  background: rgba(0, 0, 0, 0.24);
}

.transactions-table th,
.transactions-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(42, 53, 68, 0.8);
  vertical-align: middle;
}

.transactions-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-sort {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.th-sort:hover,
.th-sort.is-active {
  color: var(--text);
}

.th-sort::after {
  content: "";
  width: 0;
  height: 0;
  opacity: 0.35;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.th-sort.is-active[data-dir="asc"]::after {
  opacity: 1;
  border-top: 0;
  border-bottom: 5px solid currentColor;
}

.th-sort.is-active[data-dir="desc"]::after {
  opacity: 1;
}

.deadline-cell.is-overdue {
  color: #f87171;
  font-weight: 600;
}

.deadline-cell.is-soon {
  color: #fbbf24;
  font-weight: 600;
}

.settings-card {
  margin-top: 0.5rem;
}

.settings-notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 53, 68, 0.9);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--muted);
  line-height: 1.45;
}

.settings-notice a {
  color: var(--primary);
  font-weight: 600;
}

.field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.field--checkbox .field-label {
  margin: 0;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.transactions-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

.transactions-table tbody tr.tx-row {
  cursor: pointer;
}

.transactions-table tbody tr.tx-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

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

.amount {
  font-weight: 600;
  white-space: nowrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(139, 152, 168, 0.16);
  color: #d7dee8;
}

.status-badge--charging {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.status-badge--success {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.status-badge--failed {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.status-badge--pending {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.env-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  font-size: 12px;
  text-transform: uppercase;
}

.empty-state {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

.table-state-row td {
  padding: 28px 14px !important;
}

.table-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.inline-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.table-error {
  text-align: center;
  color: var(--error);
}

.submit {
  margin-top: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.submit:hover {
  background: var(--primary-hover);
}

.submit:active {
  transform: scale(0.98);
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.modal-open {
  overflow: hidden;
}

.tx-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.tx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(4px);
}

.tx-modal-dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(88vh, 900px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-accent) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tx-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.tx-modal-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.tx-modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.tx-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tx-modal-close:hover {
  border-color: #4b5d74;
}

.tx-modal-body {
  overflow: auto;
  padding: 20px 24px 24px;
  display: grid;
  gap: 20px;
}

.tx-detail-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tx-detail-grid {
  margin: 0;
  display: grid;
  gap: 10px;
}

.tx-detail-item {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(42, 53, 68, 0.7);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.tx-detail-item dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tx-detail-item dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}

.tx-detail-link {
  color: #93c5fd;
  text-decoration: none;
}

.tx-detail-link:hover {
  text-decoration: underline;
}

.tx-detail-json {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #c9d4e3;
}

.tx-detail-json--full {
  padding: 12px;
  border: 1px solid rgba(42, 53, 68, 0.7);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.tx-detail-full {
  word-break: break-all;
}

.tx-detail-full.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.tx-detail-empty {
  color: var(--muted);
}

@media (max-width: 640px) {
  .tx-detail-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.dispute-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dispute-message {
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.dispute-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dispute-message-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.dispute-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispute-reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font: inherit;
}

.dispute-file-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.dispute-attachments {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.dispute-attachment {
  color: inherit;
  text-decoration: underline;
  font-size: 13px;
}

.dispute-tx-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispute-tx-card {
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.approval-form {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 18px 18px 16px;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(21, 29, 40, 0.72);
}

.approval-form .field {
  gap: 6px;
}

.approval-form .field-label {
  font-size: 12px;
}

.approval-form .field input,
.approval-form .field select {
  padding: 9px 12px;
  border-radius: 10px;
}

.approval-form-row,
.approval-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.approval-submit {
  margin-top: 2px;
  width: 100%;
  padding: 10px 14px;
}

.approval-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.approval-list-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.approval-search-toolbar {
  flex: 1 1 240px;
  max-width: 420px;
  margin: 0 0 0 auto;
}

.shot-picker {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.shot-picker-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.shot-picker-btn:hover {
  border-color: var(--primary);
}

.shot-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.shot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.shot-thumb-remove:hover {
  background: #ef4444;
}

@media (max-width: 640px) {
  .approval-form {
    max-width: 100%;
  }

  .approval-form-row,
  .approval-shots {
    grid-template-columns: 1fr;
  }
}

.status-badge--pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.status-badge--approved {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.status-badge--rejected {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.approval-guide-link {
  margin: 0 0 4px;
  font-size: 13px;
}

.approval-guide-link a {
  color: #7dd3fc;
  text-decoration: none;
}

.approval-guide-link a:hover {
  text-decoration: underline;
}

.help-page {
  align-items: start;
}

.help-card {
  max-width: 720px;
  margin: 24px auto 48px;
}

.help-heading {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.help-text,
.help-list {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.help-list {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.help-list li strong {
  color: var(--text);
}

.help-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

.help-list--plain {
  list-style: disc;
}

.approval-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 22px 0 8px;
}

.approval-filters .field {
  flex: 0 1 180px;
  margin: 0;
}

.approval-day td {
  padding: 16px 12px 4px;
  border-bottom: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.approval-history-btn {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.approval-history {
  padding: 4px 0 12px;
}

.approval-history-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.approval-history-list li {
  padding: 3px 0;
}

.approval-history-time {
  color: var(--muted);
}

.approval-comment {
  display: flex;
  gap: 8px;
  align-items: center;
}

.approval-comment input {
  flex: 1;
  min-width: 0;
}

.help-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
