:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182033;
  background: #f4f6fa;
  font-synthesis: none;
  --blue: #205ad6;
  --blue-dark: #1747ad;
  --blue-soft: #edf3ff;
  --border: #dce2ec;
  --muted: #687287;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --danger: #bd2636;
  --warning: #a75d00;
  --success: #16734a;
  --shadow: 0 10px 30px rgba(25, 38, 68, 0.08);
}

html[data-theme="dark"],
html[data-site-theme="dark"] {
  color-scheme: dark;
  --surface: #151d2a;
  --surface-soft: #1c2638;
  --border: #263347;
  --muted: #8e9bb0;
  --blue-soft: #1a2942;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #e8edf6;
  background-color: #0c111b;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-site-theme="dark"],
html[data-site-theme="dark"] body,
html[data-theme="dark"] #app,
html[data-site-theme="dark"] #app,
html[data-theme="dark"] .page-shell,
html[data-site-theme="dark"] .page-shell,
html[data-theme="dark"] .app,
html[data-site-theme="dark"] .app,
html[data-theme="dark"] .workspace,
html[data-site-theme="dark"] .workspace {
  background-color: #0c111b !important;
  color: #e8edf6 !important;
}

html[data-theme="dark"] .panel,
html[data-site-theme="dark"] .panel {
  background-color: var(--surface) !important;
  color: #e8edf6 !important;
  border-color: var(--border);
}

html[data-theme="dark"] .app-header,
html[data-site-theme="dark"] .app-header {
  background: rgba(15, 22, 35, 0.94);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .button:hover:not(:disabled),
html[data-site-theme="dark"] .button:hover:not(:disabled) {
  border-color: #3b4c66;
  background: #1f2b3e;
}

html[data-theme="dark"] .button-danger-quiet,
html[data-site-theme="dark"] .button-danger-quiet {
  color: #f87171;
  border-color: rgba(239, 201, 205, 0.2);
  background: rgba(189, 38, 54, 0.15);
}

html[data-theme="dark"] .drop-zone,
html[data-site-theme="dark"] .drop-zone {
  border-color: #2b3950;
}

html[data-theme="dark"] .drop-zone:hover,
html[data-theme="dark"] .drop-zone.is-dragging,
html[data-site-theme="dark"] .drop-zone:hover,
html[data-site-theme="dark"] .drop-zone.is-dragging {
  background: #172338;
  border-color: var(--blue);
}

html[data-theme="dark"] .drop-icon,
html[data-site-theme="dark"] .drop-icon {
  border-color: #2b3d68;
}

html[data-theme="dark"] .state-error,
html[data-site-theme="dark"] .state-error {
  color: #fca5a5;
  background: #2c1517;
  border-color: #451a1d;
}

html[data-theme="dark"] .state-info,
html[data-site-theme="dark"] .state-info {
  color: #93c5fd;
  background: #102a45;
  border-color: #1d3b5e;
}

html[data-theme="dark"] .search-field input,
html[data-theme="dark"] .select-field select,
html[data-theme="dark"] .field-label input,
html[data-theme="dark"] .field-label select,
html[data-site-theme="dark"] .search-field input,
html[data-site-theme="dark"] .select-field select,
html[data-site-theme="dark"] .field-label input,
html[data-site-theme="dark"] .field-label select {
  color: #e8edf6;
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .request-grid-header,
html[data-site-theme="dark"] .request-grid-header {
  background: #111824;
  color: #8e9bb0;
}

html[data-theme="dark"] .request-row,
html[data-site-theme="dark"] .request-row {
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .request-row:hover,
html[data-site-theme="dark"] .request-row:hover {
  background: #1b2638;
}

html[data-theme="dark"] .request-row.selected,
html[data-site-theme="dark"] .request-row.selected {
  background: #1e3054;
}

html[data-theme="dark"] .method-badge,
html[data-site-theme="dark"] .method-badge {
  color: #93c5fd;
  background: #1a2a40;
}

html[data-theme="dark"] .method-post,
html[data-theme="dark"] .method-put,
html[data-theme="dark"] .method-patch,
html[data-site-theme="dark"] .method-post,
html[data-site-theme="dark"] .method-put,
html[data-site-theme="dark"] .method-patch {
  color: #fde047;
  background: #3b2d10;
}

html[data-theme="dark"] .method-delete,
html[data-site-theme="dark"] .method-delete {
  color: #fca5a5;
  background: #3b181c;
}

html[data-theme="dark"] .tab-button:hover,
html[data-site-theme="dark"] .tab-button:hover {
  color: #e8edf6;
}

html[data-theme="dark"] .issue-card,
html[data-site-theme="dark"] .issue-card {
  background: #251d10;
  border-color: #4a3617;
  border-left-color: #d08014;
}

html[data-theme="dark"] .issue-detail,
html[data-site-theme="dark"] .issue-detail {
  color: #fef08a;
}

html[data-theme="dark"] .issue-http,
html[data-site-theme="dark"] .issue-http {
  background: #2c1517;
  border-color: #451a1d;
  border-left-color: #cc3144;
}

html[data-theme="dark"] .issue-http .issue-detail,
html[data-site-theme="dark"] .issue-http .issue-detail {
  color: #fca5a5;
}

html[data-theme="dark"] .definition-row,
html[data-site-theme="dark"] .definition-row {
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .detail-empty,
html[data-site-theme="dark"] .detail-empty {
  background: #111824;
  color: var(--muted);
}

html[data-theme="dark"] .code-block,
html[data-site-theme="dark"] .code-block {
  color: #d1d5db;
  background: #111827;
  border-color: #1f2937;
}

html[data-theme="dark"] .response-state,
html[data-site-theme="dark"] .response-state {
  color: #9ca3af;
  background: #111824;
  border-color: var(--border);
}

html[data-theme="dark"] .warning-state,
html[data-site-theme="dark"] .warning-state {
  color: #fde047;
  background: #251d10;
  border-color: #4a3617;
}

html[data-theme="dark"] .timing-track,
html[data-site-theme="dark"] .timing-track {
  background: #1e293b;
}

html[data-theme="dark"] .dialog,
html[data-site-theme="dark"] .dialog {
  color: #e8edf6;
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="dark"] .context-controls,
html[data-theme="dark"] .dialog-footer,
html[data-site-theme="dark"] .context-controls,
html[data-site-theme="dark"] .dialog-footer {
  background: #111824;
  border-color: var(--border);
}

html[data-theme="dark"] .context-checkbox,
html[data-site-theme="dark"] .context-checkbox {
  background: var(--surface);
  color: #e8edf6;
}

html[data-theme="dark"] .context-preview,
html[data-site-theme="dark"] .context-preview {
  color: #d1d5db;
  background: #111827;
  border-color: #1f2937;
}

html[data-theme="dark"] .checkbox-field,
html[data-site-theme="dark"] .checkbox-field {
  color: #d1d5db;
  background: #111824;
  border-color: #1e293b;
}

html[data-theme="dark"] .type-cell,
html[data-theme="dark"] .numeric-cell,
html[data-site-theme="dark"] .type-cell,
html[data-site-theme="dark"] .numeric-cell {
  color: #94a3b8;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; background: #f4f6fa; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(32, 90, 214, 0.28);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell { min-height: 100vh; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { flex: 0 0 auto; }
.brand-title { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.brand-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  transition: border-color 120ms, background 120ms, transform 120ms;
}
.button:hover:not(:disabled) { border-color: #b9c3d3; background: #f8faff; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button-primary { color: white; border-color: var(--blue); background: var(--blue); }
.button-primary:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); }
.button-quiet { background: transparent; }
.button-large { min-height: 44px; padding: 10px 20px; }
.button-compact { min-height: 34px; padding: 7px 11px; white-space: nowrap; }
.button-danger-quiet { color: var(--danger); border-color: #efc9cd; background: #fff7f8; }

.main-content { width: min(1800px, 100%); margin: 0 auto; padding: 24px clamp(18px, 3vw, 44px) 14px; }
.import-section { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 24px 0 60px; }
.drop-zone {
  width: min(760px, 100%);
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px;
  text-align: center;
  background: var(--surface);
  border: 2px dashed #bfc9d9;
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border 150ms, background 150ms, transform 150ms;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--blue); background: #f6f9ff; }
.drop-zone.is-dragging { transform: scale(1.008); box-shadow: 0 14px 36px rgba(32, 90, 214, 0.14); }
.drop-zone.is-loading { pointer-events: none; }
.drop-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #ccdcff;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.drop-title { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.035em; }
.drop-help { max-width: 500px; margin: 12px 0 24px; color: var(--muted); line-height: 1.55; }
.privacy-note { margin: 16px 0 0; color: var(--success); font-size: 13px; font-weight: 650; }
.state-message { width: min(760px, 100%); margin-top: 14px; padding: 13px 16px; border-radius: 9px; font-size: 14px; }
.state-error { color: #8f1523; background: #fff0f2; border: 1px solid #f2c2c8; }
.state-info { color: #174886; background: #eef6ff; border: 1px solid #c8ddf5; }

.workspace { min-width: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary-card { min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 3px 12px rgba(26, 37, 61, 0.035); }
.summary-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.summary-value { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 23px; line-height: 1.1; letter-spacing: -0.025em; }

.toolbar { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.55fr)) auto; gap: 8px; margin-bottom: 12px; }
.search-field input, .select-field select, .field-label input, .field-label select {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  color: #1f2a40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.search-field input { padding-left: 13px; }

.workspace-split { min-width: 0; display: grid; grid-template-columns: minmax(590px, 1.35fr) minmax(390px, 0.9fr); gap: 12px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 3px 12px rgba(26, 37, 61, 0.035); overflow: hidden; }
.panel-heading { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.panel-title { margin: 0; font-size: 14px; letter-spacing: -0.005em; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.request-grid { display: grid; grid-template-columns: 72px 72px minmax(220px, 1fr) 102px 82px 80px; align-items: center; gap: 8px; }
.request-grid-header { height: 36px; padding: 0 11px; color: #6e7789; background: #f7f8fb; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 750; letter-spacing: 0.035em; text-transform: uppercase; }
.header-cell { overflow: hidden; text-overflow: ellipsis; text-align: left; }
.sort-button { min-width: 0; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.request-viewport { position: relative; height: min(58vh, 650px); min-height: 430px; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.request-canvas { position: relative; min-width: 0; }
.request-row {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  padding: 0 11px;
  color: inherit;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
}
.request-row:hover { background: #f8faff; }
.request-row.selected { background: #edf3ff; border-left-color: var(--blue); }
.request-row.status-4xx { border-left-color: #e08b19; }
.request-row.status-5xx, .request-row.status-unknown { border-left-color: #d63649; }
.request-row.status-3xx { border-left-color: #7c65ca; }
.request-row.status-4xx.selected, .request-row.status-5xx.selected, .request-row.status-unknown.selected, .request-row.status-3xx.selected { box-shadow: inset 3px 0 var(--blue); }
.method-badge { width: fit-content; max-width: 68px; padding: 3px 6px; overflow: hidden; color: #31506c; background: #eef3f7; border-radius: 5px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; }
.method-post, .method-put, .method-patch { color: #805100; background: #fff2cf; }
.method-delete { color: #a31f31; background: #ffebee; }
.status-cell { font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-4xx .status-cell { color: #9a5600; }
.status-5xx .status-cell, .status-unknown .status-cell { color: var(--danger); }
.status-3xx .status-cell { color: #6049ad; }
.status-2xx .status-cell { color: var(--success); }
.request-cell { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.request-domain, .request-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-domain { font-size: 12px; }
.request-path { color: var(--muted); font-size: 11px; }
.type-cell, .numeric-cell { overflow: hidden; color: #5e687b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.numeric-cell { text-align: right; font-variant-numeric: tabular-nums; }

.details-panel { position: sticky; top: 80px; }
.details-heading { align-items: center; }
.tabs { display: flex; gap: 2px; padding: 0 9px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tab-button { min-width: max-content; padding: 10px 8px 8px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.tab-button:hover { color: #29354b; }
.tab-button.active { color: var(--blue); border-bottom-color: var(--blue); }
.detail-content { height: min(54vh, 610px); min-height: 390px; padding: 14px; overflow: auto; }
.details-placeholder { display: grid; min-height: 330px; place-items: center; padding: 40px; color: var(--muted); text-align: center; line-height: 1.5; }
.issue-list { display: grid; gap: 8px; margin-bottom: 14px; }
.issue-card { padding: 10px 11px; background: #fff8eb; border: 1px solid #efd9ad; border-left: 3px solid #d08014; border-radius: 7px; }
.issue-http { background: #fff3f4; border-color: #f0c8cd; border-left-color: #cc3144; }
.issue-title { display: block; margin-bottom: 4px; font-size: 12px; }
.issue-detail { margin: 0; color: #5f4a33; font-size: 11px; line-height: 1.48; }
.issue-http .issue-detail { color: #6c353c; }
.definition-list, .header-list { margin: 0; }
.definition-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.definition-row:last-child { border-bottom: 0; }
.definition-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.definition-value { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }
.detail-section + .detail-section { margin-top: 18px; }
.detail-section-title { margin: 0 0 8px; font-size: 12px; }
.detail-empty { margin: 0; padding: 13px; color: var(--muted); background: #f7f8fa; border-radius: 7px; font-size: 11px; }
.code-block { max-height: 430px; margin: 0; padding: 12px; overflow: auto; color: #253047; background: #f6f7f9; border: 1px solid #e5e9ef; border-radius: 7px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 10.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.response-state { padding: 18px; color: #4f5c70; background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; line-height: 1.5; }
.response-state p { margin: 6px 0 0; }
.warning-state { color: #74450a; background: #fff8e8; border-color: #ecd6a2; }
.timing-list { display: grid; gap: 12px; }
.timing-row { display: grid; grid-template-columns: 66px minmax(80px, 1fr) 72px; gap: 10px; align-items: center; font-size: 11px; }
.timing-name { color: #536075; font-weight: 700; text-transform: capitalize; }
.timing-track { height: 8px; overflow: hidden; background: #edf0f4; border-radius: 999px; }
.timing-bar { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.timing-value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.empty-state { min-height: 430px; padding: 90px 30px; text-align: center; }
.empty-title { margin: 0; font-size: 18px; }
.empty-help { max-width: 430px; margin: 9px auto 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.local-notice { padding: 16px 4px 2px; color: #567063; text-align: center; font-size: 12px; font-weight: 650; }

.dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  color: #182033;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 26px 80px rgba(18, 28, 54, 0.28);
}
.dialog::backdrop { background: rgba(16, 24, 42, 0.52); backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.dialog-title { margin: 0; font-size: 19px; }
.dialog-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.icon-button { padding: 6px 9px; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-size: 11px; }
.context-controls { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 13px 20px; background: #f8f9fb; border-bottom: 1px solid var(--border); }
.context-checkbox { align-items: center; min-height: 40px; margin-left: auto; padding: 8px 11px; background: #fff; }
.field-label { display: grid; gap: 6px; color: #566176; font-size: 11px; font-weight: 700; }
.field-label select { min-width: 230px; }
.safe-badge { padding: 6px 9px; color: var(--success); background: #eaf8f1; border: 1px solid #c7ead8; border-radius: 999px; font-size: 11px; font-weight: 700; }
.context-preview { display: block; width: calc(100% - 40px); height: min(58vh, 560px); margin: 16px 20px; padding: 14px; resize: vertical; color: #253047; background: #f7f8fa; border: 1px solid #dce1e9; border-radius: 8px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; line-height: 1.5; white-space: pre; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 20px; background: #fafbfc; border-top: 1px solid var(--border); }
.dialog-note { max-width: 610px; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.copy-group { display: flex; align-items: center; gap: 11px; }
.copy-status { color: var(--success); font-size: 11px; white-space: nowrap; }
.settings-dialog { width: min(560px, calc(100vw - 32px)); }
.settings-body { display: grid; gap: 11px; padding: 20px; overflow: auto; }
.settings-section-title { margin: 8px 0 0; font-size: 13px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; color: #39455a; background: #f8f9fb; border: 1px solid #e5e9ef; border-radius: 7px; font-size: 12px; line-height: 1.4; }
.checkbox-field input { margin: 2px 0 0; accent-color: var(--blue); }
.security-lock-note { padding: 12px; color: #24523f; background: #eef9f3; border: 1px solid #cbe9d8; border-radius: 8px; font-size: 11px; line-height: 1.45; }
.security-lock-note strong { display: block; margin-bottom: 4px; font-size: 12px; }
.security-lock-note p { margin: 0; }

@media (max-width: 1180px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .workspace-split { grid-template-columns: minmax(560px, 1.2fr) minmax(360px, 0.8fr); }
  .request-grid { grid-template-columns: 66px 64px minmax(190px, 1fr) 88px 72px 72px; gap: 6px; }
}

@media (max-width: 1010px) {
  .app-header { position: static; }
  .summary-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .toolbar { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(125px, 0.5fr)); }
  .toolbar > .button { grid-column: 1 / -1; }
  .workspace-split { grid-template-columns: minmax(0, 1fr); }
  .details-panel { position: static; }
  .request-viewport { height: 520px; }
  .detail-content { height: auto; min-height: 420px; max-height: 620px; }
}

@media (max-width: 700px) {
  .app-header { align-items: flex-start; padding: 10px 14px; }
  .brand-subtitle { display: none; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .main-content { padding: 14px 10px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .request-grid { grid-template-columns: 58px 58px minmax(160px, 1fr) 68px; }
  .request-grid > :nth-child(4), .request-grid > :nth-child(5) { display: none; }
  .details-heading { align-items: flex-start; flex-direction: column; }
  .context-controls, .dialog-footer { align-items: stretch; flex-direction: column; }
  .safe-badge { width: fit-content; }
  .copy-group { justify-content: space-between; }
}
