/* HookBin UI v2 — zinc, operate-mode. RTL-safe (logical properties). */
:root {
  color-scheme: light;
  --bg: #f4f4f5; --canvas: #fff; --raised: #fafafa; --hover: #f4f4f5;
  --line: #e4e4e7; --line-soft: #f1f1f3;
  --fg: #18181b; --fg-muted: #52525b; --fg-subtle: #71717a;
  --primary: #18181b; --primary-hover: #27272a; --on-primary: #fff;
  --accent: #2563eb; --accent-soft: #eff4ff;
  --live: #16a34a; --live-bg: #f0fdf4; --live-line: #bbf7d0;
  --danger: #dc2626; --danger-bg: #fef2f2; --danger-line: #fecaca;
  --code-bg: #18181b; --code-fg: #e4e4e7;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(24,24,27,.05);
  --shadow: 0 1px 2px rgba(24,24,27,.04), 0 12px 32px rgba(24,24,27,.08);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --top: 56px; --rail: 320px; --cols: 14px 62px 36px 150px 104px minmax(0,1fr) 62px;
  --ring: 0 0 0 3px rgba(37,99,235,.28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b; --canvas: #111113; --raised: #18181b; --hover: #1c1c20;
    --line: #27272a; --line-soft: #1f1f23;
    --fg: #fafafa; --fg-muted: #a1a1aa; --fg-subtle: #71717a;
    --primary: #fafafa; --primary-hover: #e4e4e7; --on-primary: #18181b;
    --accent: #60a5fa; --accent-soft: #172554;
    --live: #4ade80; --live-bg: #052e16; --live-line: #14532d;
    --danger: #f87171; --danger-bg: #2a0f0f; --danger-line: #7f1d1d;
    --code-bg: #0c0c0e; --code-fg: #e4e4e7;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.4);
  }
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--bg); color: var(--fg); font-size: 14px; line-height: 1.55; }
body.lang-ar { font-family: "Cairo", system-ui, sans-serif; }
body.lang-en { font-family: "Inter", system-ui, sans-serif; }
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }
.inline-form { display: inline; }
.mt-12 { margin-block-start: 12px; } .mt-10 { margin-block-start: 10px; } .mt-14 { margin-block-start: 14px; }
.spacer-14 { height: 14px; }

/* Language switch */
.lang-switch { display: inline-flex; padding: 2px; gap: 2px; background: var(--hover); border: 1px solid var(--line); border-radius: var(--radius); }
.lang-switch a { padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--fg-muted); border-radius: 6px; text-decoration: none; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a.active { background: var(--canvas); color: var(--fg); box-shadow: var(--shadow-sm); }

/* Shell + topbar */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 20px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-start, .topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-actions { flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: var(--on-primary); font: 700 11px/1 var(--mono); letter-spacing: .02em; }
.sep { width: 1px; height: 20px; background: var(--line); }
.endpoint-name { font-weight: 600; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw; }
.toolbar-sep { width: 1px; height: 20px; background: var(--line); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; font-size: 12px; font-weight: 500; color: var(--fg-muted); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-subtle); }
.status-pill.is-live { color: var(--live); background: var(--live-bg); border-color: var(--live-line); }
.status-pill.is-live .dot { background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Layout */
.layout { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px 48px; max-width: 1240px; width: 100%; margin-inline: auto; }
.layout-inbox { padding-block-start: 20px; gap: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* URL hub — under topbar */
.url-hub {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--canvas) 0%, color-mix(in srgb, var(--raised) 65%, var(--canvas)) 100%);
}
.url-hub-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.url-block { min-width: 0; }
.url-block-primary {
  padding-block-end: 18px;
}
.url-block-secondary {
  padding-block-start: 16px;
  border-top: 1px dashed var(--line);
}
.url-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block-end: 12px;
}
.url-block-head-compact { margin-block-end: 10px; }
.url-block-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
}
.url-block-icon-inbound {
  color: var(--live);
  background: var(--live-bg);
  border-color: var(--live-line);
}
.url-block-icon-private {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.url-block-head-compact .url-block-icon { width: 36px; height: 36px; border-radius: 10px; }
.url-block-titles { min-width: 0; flex: 1; }
.url-block-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-block-end: 2px;
}
.url-block-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.url-block-title-sm { font-size: 14px; font-weight: 700; }
.url-block-hint {
  font-size: 13px;
  color: var(--fg-subtle);
  line-height: 1.45;
}
.url-badge {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line);
}
body.lang-ar .url-badge { letter-spacing: 0; text-transform: none; font-size: 11px; }
.url-badge-inbound {
  color: var(--live);
  background: var(--live-bg);
  border-color: var(--live-line);
}
.url-badge-private {
  color: var(--fg-muted);
  background: var(--raised);
  border-color: var(--line);
}
.url-copy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.url-copy-row .url-field {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-size: 12.5px;
  border-radius: var(--radius);
}
.url-field-primary {
  font: 500 13px/1.45 var(--mono);
  color: var(--code-fg);
  background: var(--code-bg);
  border-color: color-mix(in srgb, var(--code-bg) 70%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.url-field-secondary {
  font: 12.5px/1.45 var(--mono);
  background: var(--canvas);
  border-color: var(--line);
}
.url-copy-btn {
  flex: none;
  min-width: 96px;
  padding-inline: 14px;
}
.url-copy-btn span { pointer-events: none; }
@media (max-width: 560px) {
  .url-copy-row { flex-direction: column; }
  .url-copy-btn { width: 100%; min-height: 40px; }
}
.input-group { display: flex; gap: 8px; }
.input-group .url-field { margin: 0; flex: 1; min-width: 0; }
.input-group .btn { flex: none; padding-inline: 16px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.workspace { min-width: 0; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.workspace-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.workspace-hint { font-size: 12.5px; color: var(--fg-subtle); margin-block-start: 2px; }
.count-chip { padding: 3px 11px; font-size: 12px; font-weight: 600; color: var(--fg-muted); background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Inbox */
.inbox-card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.inbox-columns { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; padding: 10px 18px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); }
body.lang-ar .inbox-columns { letter-spacing: 0; text-transform: none; font-size: 12px; }
.inbox-empty { display: grid; justify-items: center; gap: 6px; padding: 72px 24px; text-align: center; }
.inbox-empty-visual { display: grid; place-items: center; width: 52px; height: 52px; margin-block-end: 8px; border-radius: 14px; background: var(--raised); border: 1px dashed var(--line); color: var(--fg-subtle); }
.inbox-empty h3 { font-size: 15px; font-weight: 700; }
.inbox-empty p { max-width: 380px; color: var(--fg-subtle); font-size: 13px; }

.req-item { border-bottom: 1px solid var(--line-soft); }
.req-item:last-child { border-bottom: 0; }
.req-summary { display: grid; grid-template-columns: var(--cols); gap: 14px; align-items: center; width: 100%; padding: 13px 18px; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; transition: background .12s; }
.req-summary:hover { background: var(--hover); }
.req-summary[aria-expanded="true"] { background: var(--raised); }
.req-item.is-new .req-summary { background: var(--accent-soft); animation: fadeNew 4s ease-out forwards; }
@keyframes fadeNew { to { background: transparent; } }
.req-item.is-unread .req-summary {
  box-shadow: inset 3px 0 0 var(--accent);
}
.req-item.is-unread:not(.is-new) .req-summary {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.req-item.is-unread .req-preview {
  font-weight: 600;
  opacity: 1;
}
.req-item.is-unread .req-id {
  color: var(--fg);
}
.icon-chevron { color: var(--fg-subtle); display: inline-flex; transition: transform .15s; }
.req-summary[aria-expanded="true"] .icon-chevron { transform: rotate(90deg); }
[dir="rtl"] .icon-chevron { transform: scaleX(-1); }
[dir="rtl"] .req-summary[aria-expanded="true"] .icon-chevron { transform: scaleX(-1) rotate(90deg); }
.method-badge, .badge { display: inline-block; min-width: 56px; padding: 2px 8px; text-align: center; font: 600 11px/1.6 var(--mono); border-radius: 6px; border: 1px solid var(--line); background: var(--raised); color: var(--fg-muted); }
.method-GET { color: #0369a1; background: #f0f9ff; border-color: #bae6fd; }
.method-POST { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.method-PUT { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.method-PATCH { color: #7e22ce; background: #faf5ff; border-color: #e9d5ff; }
.method-DELETE { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .method-GET { background: #082f49; border-color: #0c4a6e; color: #7dd3fc; }
  :root:not([data-theme="light"]) .method-POST { background: #052e16; border-color: #14532d; color: #86efac; }
  :root:not([data-theme="light"]) .method-PUT { background: #2a1a05; border-color: #78350f; color: #fcd34d; }
  :root:not([data-theme="light"]) .method-PATCH { background: #2e1065; border-color: #4c1d95; color: #d8b4fe; }
  :root:not([data-theme="light"]) .method-DELETE { background: #2a0f0f; border-color: #7f1d1d; color: #fca5a5; }
}
.req-main, .req-line1 { display: contents; }
.req-id { font: 600 12px var(--mono); color: var(--fg-subtle); }
.req-time, .req-ip { font: 12px var(--mono); color: var(--fg-muted); direction: ltr; unicode-bidi: isolate; text-align: start; white-space: nowrap; }
.req-preview { font: 12.5px var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; unicode-bidi: isolate; text-align: start; opacity: .85; }
.req-actions { opacity: 0; transition: opacity .12s; }
.req-summary:hover .req-actions, .req-summary:focus-within .req-actions, .req-summary[aria-expanded="true"] .req-actions { opacity: 1; }
@media (hover: none) { .req-actions { opacity: 1; } }
.delete-form { display: inline; }

.req-detail { display: none; padding: 6px 18px 20px; padding-inline-start: 76px; background: var(--raised); border-top: 1px solid var(--line-soft); }
.req-item.open .req-detail { display: block; }
.tabs { display: flex; gap: 2px; margin-block: 10px 12px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 14px; margin-block-end: -1px; font: 600 13px inherit; font-family: inherit; color: var(--fg-subtle); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.code-toolbar { display: flex; justify-content: flex-end; margin-block-end: 8px; }
pre.json-block { margin: 0; padding: 14px 16px; max-height: 420px; overflow: auto; background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); border-radius: var(--radius); font: 12.5px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; direction: ltr; text-align: left; }
.json-key { color: #93c5fd; } .json-string { color: #86efac; } .json-number { color: #fcd34d; } .json-boolean { color: #f9a8d4; } .json-null { color: #a1a1aa; }

/* Forms */
label { display: block; margin-block-end: 6px; font-size: 12.5px; font-weight: 600; color: var(--fg-muted); }
input[type=text], input[type=password], select, .url-field { width: 100%; padding: 9px 12px; margin-block-end: 14px; font: inherit; color: var(--fg); background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.url-field { margin-block-end: 8px; font: 12px var(--mono); direction: ltr; text-align: left; background: var(--raised); cursor: text; text-overflow: ellipsis; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font: 600 13px inherit; font-family: inherit; line-height: 1.2; white-space: nowrap; color: var(--on-primary); background: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--primary-hover); text-decoration: none; color: var(--on-primary); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); }
.btn-outline { color: var(--fg); background: var(--canvas); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { color: var(--fg); background: var(--hover); border-color: color-mix(in srgb, var(--line) 60%, var(--fg-subtle)); }
.btn-ghost { color: var(--fg-muted); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--fg); background: var(--hover); }
.btn-danger { color: var(--danger); background: var(--canvas); border-color: var(--danger-line); }
.btn-danger:hover { color: var(--danger); background: var(--danger-bg); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-icon-active { background: var(--hover); border-color: var(--fg-subtle); }
.btn-success-soft { color: var(--live); background: var(--live-bg); border-color: var(--live-line); }

/* Settings */
.settings-page { padding: 32px 20px; display: flex; justify-content: center; }
.settings-card { width: 100%; max-width: 520px; padding: 28px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.settings-card h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.settings-lead { margin-block: 2px 22px; color: var(--fg-subtle); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.toggle-row > span:first-child { font-weight: 600; font-size: 13.5px; }
.toggle-row small { display: block; margin-block-start: 1px; font-weight: 400; font-size: 12px; color: var(--fg-subtle); }
.switch { position: relative; display: inline-block; flex: none; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; }
.switch span::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { inset-inline-start: 21px; }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.alert-success, .alert-error { margin-block-end: 16px; padding: 10px 14px; font-size: 13px; border-radius: var(--radius); border: 1px solid; }
.alert-success { color: var(--live); background: var(--live-bg); border-color: var(--live-line); }
.alert-error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }

/* Auth */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent), var(--bg); }
.auth-top { align-self: flex-end; position: absolute; top: 16px; inset-inline-end: 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; background: var(--canvas); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.auth-tagline { margin-block: 2px 10px; font: 600 11px var(--mono); letter-spacing: .04em; color: var(--accent); }
.subtitle { margin-block-end: 22px; color: var(--fg-muted); font-size: 13.5px; }
.form-footer { display: flex; gap: 8px; margin-block-start: 6px; }
.form-footer .btn-primary { flex: 1; }
.lock-wrap { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--fg-muted); }

/* Toast */
.toast-host { position: fixed; z-index: 100; inset-block-end: 20px; inset-inline-end: 20px; display: grid; gap: 8px; }
.toast { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--on-primary); background: var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); animation: toastIn .2s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Responsive */
@media (max-width: 1024px) {
  .layout { padding: 20px 16px 40px; }
  .url-hub-inner { padding: 16px 16px 18px; }
  .endpoint-name, .sep { display: none; }
  :root { --cols: 14px 62px 36px 140px minmax(0,1fr) 62px; }
  .req-ip, .inbox-columns span:nth-child(5) { display: none; }
}
@media (max-width: 720px) {
  :root { --cols: 14px 54px 34px minmax(0,1fr) auto; }
  .topbar { height: auto; min-height: var(--top); padding: 8px 12px; flex-wrap: wrap; }
  .topbar-actions { flex-wrap: wrap; gap: 6px; }
  .toolbar-sep { display: none; }
  .inbox-columns, .req-time { display: none; }
  .req-summary { gap: 10px; padding: 12px 14px; }
  .req-actions { opacity: 1; }
  .req-detail { padding-inline: 14px; }
  .workspace-head { flex-direction: column; align-items: flex-start; }
  .auth-card, .settings-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.brand-mark-lg { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; margin-block-end: 16px; }
/* Column alignment: LTR data cells vs. RTL headers */
[dir="rtl"] .req-time, [dir="rtl"] .req-ip { text-align: right; }
.req-preview, .inbox-columns span:nth-child(6) { text-align: left; direction: ltr; }
.inbox-columns span:nth-child(3) { text-align: start; }

/* Confirm dialog — centered overlay, not browser default */
.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: visible;
  overscroll-behavior: contain;
}
.confirm-dialog:not([open]) {
  display: none;
}
.confirm-dialog::backdrop {
  background: rgba(9, 9, 11, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.confirm-dialog[open]::backdrop {
  animation: confirm-backdrop-in 0.2s ease-out;
}
@keyframes confirm-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.confirm-card {
  padding: 28px 28px 24px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(24, 24, 27, 0.14), 0 8px 16px rgba(24, 24, 27, 0.08);
  animation: confirm-card-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .confirm-card {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}
@keyframes confirm-card-in {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.confirm-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.confirm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: 16px;
  border-radius: 50%;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.confirm-icon svg {
  width: 22px;
  height: 22px;
}
.confirm-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-block-end: 8px;
  text-wrap: balance;
}
.confirm-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.confirm-detail {
  display: inline-block;
  margin-block-start: 14px;
  padding: 6px 12px;
  font: 600 12.5px var(--mono);
  color: var(--fg);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  direction: ltr;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-block-start: 22px;
}
.confirm-actions .btn {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
}
.confirm-actions .btn-confirm-ok {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.confirm-actions .btn-confirm-ok:hover {
  color: #fff;
  background: color-mix(in srgb, var(--danger) 88%, #000);
  border-color: color-mix(in srgb, var(--danger) 88%, #000);
}
.head-actions .btn-icon svg {
  display: block;
}
@media (max-width: 380px) {
  .confirm-actions {
    grid-template-columns: 1fr;
  }
}