:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-2: #162238;
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent: #6ee7b7;
  --danger: #fda4af;
  --border: #26354d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--accent);
  color: #06231d;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.noscript { background: #2a1c0a; color: #fcd34d; border: 1px solid #78350f; padding: .75rem 1rem; margin: 1rem; border-radius: 8px; }

body {
  margin: 0;
  background: radial-gradient(circle at top left, #162a45, var(--bg) 45%);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

header, main, footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.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;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding: 1.4rem 0 .8rem;
}
.brand { min-width: 0; }
h1 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -0.03em; white-space: nowrap; }
h2 { margin-top: 0; font-size: 1rem; }
.subtitle { margin: .25rem 0 0; color: var(--muted); white-space: nowrap; }
#main, #workflows-title, #files-panel, .workflow-group-title, #result-panel { scroll-margin-top: 5rem; }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; margin-left: auto; }
#openssl-version { min-height: 40px; border: 1px solid var(--border); background: #0b1424; color: var(--text); border-radius: 8px; padding: .35rem .5rem; }
.artifact-status { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.artifact-status.verified { color: var(--accent); }
.artifact-status.failed { color: var(--danger); }
.mobile-only { display: none; }
.badge {
  border: 1px solid #2f5d52;
  background: #0f2b26;
  color: var(--accent);
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
  white-space: nowrap;
}

main { display: block; width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.tab-panel[hidden] { display: none; }
.workspace-tabs {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1424;
  position: sticky;
  top: 0;
  z-index: 20;
}
.workspace-tabs [role="tab"] { flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; }
.workspace-tabs [role="tab"][aria-selected="true"] { background: var(--panel-2); color: var(--text); }
.workspace-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.terminal-shell, .tools, .workflows-panel { width: 100%; max-height: none; overflow: visible; position: static; }
.quick-launcher { width: 100%; margin: 0 0 1rem; }
.result-panel { width: 100%; grid-column: 1 / -1; }
.workflow-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.terminal-shell, .tools {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
}

.terminal-shell { overflow: visible; display: flex; flex-direction: column; height: auto; min-height: 420px; }
.console-title { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 500; }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--border);
  background: #080f1b;
  color: var(--muted);
  font-size: .78rem;
}
.terminal-dots { display: inline-flex; gap: .3rem; margin-right: .2rem; }
.terminal-dots i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.terminal-dots i:first-child { background: #f87171; }
.terminal-dots i:nth-child(2) { background: #fbbf24; }
.terminal-dots i:nth-child(3) { background: #34d399; }
.terminal-bar > div { margin-left: auto; display: flex; gap: .35rem; }
.terminal-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem .8rem; border-top: 1px solid var(--border); background: #0b1424; }
.terminal-chips button { min-height: 44px; padding: .3rem .55rem; font-size: .74rem; font-family: var(--mono); }
.examples-actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem .8rem; }
.examples-actions button { min-height: 36px; font-family: var(--mono); font-size: .74rem; }
@media (max-width: 800px) { .examples-actions button { min-height: 44px; } }
#console-indicator { color: var(--accent); }
#console-indicator[hidden] { display: none; }
.terminal-bar div { display: flex; gap: .35rem; }
.terminal-bar button { min-height: 44px; padding: .45rem .7rem; font-size: .78rem; }
#terminal {
  min-height: 220px;
  height: clamp(220px, 36vh, 420px);
  max-height: 44vh;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  font-family: var(--mono);
  font-size: .86rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d7e2f1;
}
.terminal-entry { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-entry.command { color: var(--accent); }
.terminal-entry.error { color: var(--danger); }
.terminal-entry.success { color: var(--accent); }

#command-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .6rem;
  align-items: center;
  padding: .55rem .8rem;
  border-top: 1px solid var(--border);
  background: #050a12;
}

.prompt { color: var(--accent); font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
input[type="text"] {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: .45rem .25rem;
  font-family: var(--mono);
  font-size: .86rem;
  outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }
input::placeholder { color: #a8b6c9; opacity: 1; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#terminal:focus-visible {
  outline-offset: -2px;
}

button {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: .55rem .8rem;
  cursor: pointer;
  font: inherit;
}
button:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: wait; }
button.danger { color: var(--danger); }

.tools { padding: 1rem; }
.hint { color: var(--muted); font-size: .8rem; }
summary { min-height: 44px; display: flex; align-items: center; }
#command { min-height: 44px; }
.buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.password-label { display: block; margin: .85rem 0 .35rem; font-size: .8rem; color: var(--muted); }
.password-label span { color: #a8b6c9; }
.mapping { border-top: 1px solid var(--border); margin-top: .9rem; padding-top: .8rem; }
.mapping h3 { font-size: .9rem; margin: 0 0 .35rem; }
.workflow-inputs { border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .8rem; }
.workflow-inputs summary { min-height: 44px; display: flex; align-items: center; color: var(--accent); cursor: pointer; }
.mapping label { display: block; margin: .45rem 0 .2rem; color: var(--muted); font-size: .76rem; }
.mapping select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  background: #0b1424;
  color: var(--text);
  border-radius: 8px;
  padding: .4rem .5rem;
  font: inherit;
}
#password, #tls-host, #csr-san { min-height: 44px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  background: #0b1424;
  color: var(--text);
  border-radius: 8px;
  padding: .55rem .65rem;
  margin-bottom: .75rem;
  font: inherit;
}
.warning {
  color: #fcd34d;
  border: 1px solid #78350f;
  background: #2a1c0a;
  padding: .5rem;
  border-radius: 8px;
  font-size: .78rem;
}
.file-result { color: var(--accent); font-size: .8rem; margin: .5rem 0; }
.file-result.error { color: var(--danger); }
.quick-launcher {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1728;
  padding: .75rem;
}
.quick-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.quick-heading h3 { margin: 0; font-size: .9rem; }
.quick-heading a { color: var(--accent); font-size: .8rem; min-height: 44px; display: inline-flex; align-items: center; }
.quick-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.quick-links button { min-height: 44px; }
.workflows-panel {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .35rem 1rem;
  margin-bottom: .75rem;
}
.section-heading .hint { grid-column: 1 / -1; margin: 0; }
.section-heading .workflow-jump { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; }
.workflow-grid { display: block; }
.workflow-group { display: block; margin-bottom: .6rem; border: 1px solid var(--border); border-radius: 12px; padding: .6rem .75rem; background: #0d1728; }
.workflow-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .65rem; }
.workflow-card {
  border: 1px solid var(--border);
  background: #0d1728;
  border-radius: 10px;
  padding: .7rem;
}
.workflow-card.featured { border-color: #2f5d52; background: #0c1c1b; }
.workflow-card h4 { margin: 0 0 .35rem; font-size: .86rem; }
.workflow-card p { margin: 0 0 .4rem; color: #c3d0e2; font-size: .82rem; line-height: 1.45; }
.workflow-card .outputs { color: #b6c6dc; }
.workflow-card code { color: var(--accent); font-size: .72rem; }
.workflow-card button { width: 100%; min-height: 40px; margin-top: .15rem; }
.card-details { border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .25rem; }
.toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 40; max-width: min(90vw, 560px); background: #0f2b26; color: var(--accent); border: 1px solid #2f5d52; border-radius: 10px; padding: .65rem .9rem; box-shadow: 0 10px 30px rgb(0 0 0 / 35%); font-size: .82rem; }
.toast.error { color: var(--danger); border-color: #7f1d1d; background: #2a1114; }
.card-details summary { min-height: 32px; color: var(--muted); font-size: .76rem; }
.card-details p { margin-bottom: .35rem; }
.workflow-inputs.inputs-panel { border: 1px solid var(--border); border-radius: 10px; padding: .75rem; margin: 1rem 0; background: #0d1728; }
.workflow-inputs.inputs-panel summary { font-size: .9rem; color: var(--accent); }
.inputs-panel .mapping { margin-top: .5rem; }
.workflow-jump { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; font-size: .8rem; }
.workflow-jump a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.workflow-group-title {
  cursor: pointer;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  border-radius: 8px;
  padding: .25rem .35rem;
  margin: -.25rem -.35rem;
}
.workflow-group-title::-webkit-details-marker { display: none; }
.workflow-group-title::after {
  content: "Show workflows  ▾";
  color: var(--accent);
  font-size: .7rem;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
}
.workflow-group[open] > .workflow-group-title {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: .65rem;
}
.workflow-group[open] > .workflow-group-title::after { content: "Hide workflows  ▴"; }
.workflow-group-title:hover { background: #172238; color: var(--text); }
.workflow-group-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-status { min-height: 1.1em; margin: .35rem 0 0; font-size: .76rem; color: var(--muted); }
.card-status.running { color: #93c5fd; }
.card-status.success { color: var(--accent); }
.card-status.error { color: var(--danger); }
.readiness { display: inline-block; margin: 0 0 .35rem; padding: .1rem .35rem; border-radius: 999px; font-size: .75rem; color: var(--muted); border: 1px solid var(--border); }
.readiness.ready { color: var(--accent); border-color: #2f5d52; }
.readiness.needs { color: #fcd34d; border-color: #78350f; }
#reload-update, #install-button { min-height: 32px; padding: .25rem .45rem; font-size: .72rem; }
button[aria-disabled="true"] { opacity: .65; cursor: not-allowed; border-color: #78350f; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; max-width: 360px; }
dialog::backdrop { background: rgb(0 0 0 / 60%); }
dialog label { display: block; margin: .75rem 0 .3rem; color: var(--muted); font-size: .8rem; }
dialog input { width: 100%; min-height: 44px; border: 1px solid var(--border); background: #0b1424; color: var(--text); border-radius: 8px; padding: .5rem .65rem; }
#app-dialog-message { color: #c3d0e2; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; }
#app-dialog-confirm.danger { color: var(--danger); border-color: #7f1d1d; }
.dialog-actions { display: flex; justify-content: end; gap: .5rem; margin-top: 1rem; }
.workflow-result { color: var(--accent); font-size: .82rem; min-height: 1.2em; margin: .75rem 0 0; }
.workflow-result.error { color: var(--danger); }
.result-panel {
  width: 100%;
  scroll-margin-top: 1rem;
  scroll-margin-top: 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-radius: 14px;
  padding: 1rem;
}
.result-panel h3 { margin: 0 0 .6rem; font-size: 1rem; }
dialog.setup-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-width: min(720px, calc(100vw - 2rem));
  max-height: 85vh;
  overflow: auto;
  margin: auto;
  padding: 1rem;
}
#setup-dialog-title { margin-top: 0; }
dialog.result-panel {
  position: fixed;
  inset: 0;
  width: min(900px, calc(100vw - 2rem));
  height: fit-content;
  max-width: min(900px, calc(100vw - 2rem));
  max-height: 85vh;
  margin: auto;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  grid-column: auto;
}
dialog.result-panel::backdrop { background: rgb(0 0 0 / 65%); }
.result-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.result-check { display: flex; gap: .5rem; align-items: baseline; font-size: .84rem; }
.result-check .status { font-weight: 700; }
.result-check .status.ok { color: var(--accent); }
.result-check .status.fail { color: var(--danger); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.result-table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 640px; }
.result-table th, .result-table td { text-align: left; padding: .4rem .45rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.result-table caption { text-align: left; color: var(--muted); padding: .2rem 0 .5rem; font-size: .8rem; }
.result-table th { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; }
.result-table td { overflow-wrap: anywhere; }
.result-note { color: var(--muted); font-size: .8rem; margin: .6rem 0 0; }
.result-actions { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.result-files { margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .6rem; display: grid; gap: .35rem; }
.result-file { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .8rem; }
.result-file button { min-height: 44px; }
.card-tag { font-size: .62rem; color: var(--accent); border: 1px solid #2f5d52; border-radius: 999px; padding: .05rem .35rem; margin-left: .35rem; vertical-align: middle; }

#file-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
  font-family: var(--mono);
  font-size: .8rem;
  max-height: none;
  overflow: visible;
}
#file-list { max-height: 480px; overflow: auto; }
#file-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem; border-bottom: 1px solid var(--border); }
#file-list li input[type="checkbox"] { width: 18px; height: 18px; }
#file-list li:hover, #file-list li.selected { background: #0d1728; }
#file-list .file-actions { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: end; }
#file-list .file-actions button { min-height: 44px; padding: .3rem .5rem; font-size: .74rem; }
#file-list .file-meta { min-width: 0; }
#file-list .file-meta strong { display: block; overflow-wrap: anywhere; font-size: .78rem; }
#file-list .file-meta small { color: var(--muted); font-size: .75rem; }
.dropzone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: 1rem; margin: .5rem 0; border: 2px dashed var(--border); border-radius: 12px; background: #0b1424; color: var(--muted); }
.dropzone strong { color: var(--text); }
.file-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0; position: sticky; top: 4rem; z-index: 5; background: var(--panel); padding: .35rem 0; }
.file-toolbar input[type="search"], .file-toolbar select { min-height: 40px; border: 1px solid var(--border); background: #0b1424; color: var(--text); border-radius: 8px; padding: .35rem .5rem; }
.file-toolbar input[type="search"] { flex: 1 1 180px; }
.mapping-summary { color: var(--muted); font-size: .78rem; margin: .35rem 0; }
.selection-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; padding: .45rem .55rem; border: 1px solid #2f5d52; border-radius: 8px; background: #0f2b26; font-size: .8rem; }
.file-list-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding: .35rem .5rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.file-list-head label { display: flex; align-items: center; gap: .45rem; }
.file-bulk-actions { margin: .6rem 0; }
#file-list button { min-height: 44px; padding: .4rem .55rem; font-size: .75rem; }
.console-examples { border-top: 1px solid var(--border); padding: .5rem .8rem; background: #0b1424; }
.console-examples summary { color: var(--accent); }
.examples { white-space: pre-wrap; font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  color: var(--muted);
  font-size: .78rem;
  padding: 1rem 0 2rem;
}
footer a { color: var(--accent); }
#offline-status { color: var(--accent); }
#install-button { min-height: 44px; padding: .5rem .7rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 0; }
.made-by { gap: .6rem; color: #a8b6c9; font-weight: 700; font-size: .86rem; text-decoration: none; }
.made-by img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.made-by span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.made-by:hover span { color: var(--accent); }

body.dragging::after {
  content: "Drop files to open them locally";
  position: fixed;
  inset: 1rem;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 2px dashed var(--accent);
  border-radius: 18px;
  background: rgb(11 18 32 / 88%);
  color: var(--accent);
  font-size: 1.2rem;
  pointer-events: none;
}

@media (max-width: 900px) {
  .workflow-group-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 800px) {
  .result-table { min-width: 0; }
  .result-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .result-table, .result-table tbody, .result-table tr, .result-table td { display: block; width: 100%; }
  .result-table tr { border: 1px solid var(--border); border-radius: 8px; padding: .4rem .55rem; margin-bottom: .5rem; }
  .result-table td, .result-table th[scope="row"] { display: grid; grid-template-columns: minmax(90px, 35%) 1fr; gap: .5rem; border: 0; padding: .2rem 0; text-align: left; }
  .result-table td::before, .result-table th[scope="row"]::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 400; }
  .workspace-tabs { gap: .15rem; padding: .2rem; }
  .workspace-tabs [role="tab"] { font-size: .78rem; padding: .35rem .25rem; }
  .mobile-only { display: inline-flex; }
  .file-list-head { display: none; }
  #file-list { max-height: 55vh; }
  #file-list li { grid-template-columns: auto 1fr; gap: .25rem; }
  #file-list .file-actions { grid-column: 1 / -1; justify-content: start; width: 100%; }
  .file-toolbar { position: static; }
  header { display: flex; align-items: start; flex-direction: column; padding: .9rem 0 .5rem; gap: .35rem; }
  header h1 { font-size: 1.45rem; }
  header .subtitle { font-size: .8rem; white-space: normal; }
  header .header-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
  header .header-actions { gap: .35rem; font-size: .75rem; }
  header .header-actions .badge { font-size: .7rem; padding: .25rem .5rem; }
  #offline-status { font-size: .72rem; }
  .section-heading { display: block; }
  .section-heading .hint { margin-top: .3rem; }
  .terminal-shell { min-height: 380px; height: auto; }
  #terminal { min-height: 220px; height: 40vh; max-height: 45vh; }
  .terminal-dots { display: none; }
  .console-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .terminal-bar > div button { min-height: 44px; padding: .35rem .5rem; font-size: .72rem; }
  .workspace-tabs [role="tab"] { white-space: nowrap; font-size: .74rem; }
  .file-actions button { min-height: 40px; }
  .workflow-card button { min-height: 44px; }
  button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .tools { transition: none; }
}
