
.quick-tool-body {
  background:
    radial-gradient(circle at 12% 4%, rgba(71, 199, 232, .16), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(88, 214, 141, .10), transparent 26%),
    var(--bg);
}
.quick-tool-body #matrix { opacity: .23; }
.quick-tool-header { position: sticky; }
.quick-tool-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
}
.quick-back-link { display: inline-flex; margin-bottom: 16px; }
.quick-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(71, 199, 232, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 28, 40, .90), rgba(11, 19, 30, .72));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.quick-tool-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,214,141,.17), transparent 68%);
  pointer-events: none;
}
.quick-tool-hero-copy { position: relative; z-index: 1; align-self: center; }
.quick-tool-eyebrow {
  margin: 0 0 11px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.quick-tool-hero h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.18;
}
.quick-tool-hero h1 span { font-size: .72em; }
.quick-tool-hero-intro {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.quick-tool-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.quick-tool-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(149,166,190,.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-size: 12px;
}
.quick-tool-pill.is-local { color: var(--green); border-color: rgba(88,214,141,.28); background: rgba(88,214,141,.08); }
.quick-tool-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 14px;
  background: rgba(3, 9, 16, .48);
}
.quick-tool-hero-visual img { display: block; width: min(100%, 290px); height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
.quick-tool-switcher {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(88,214,141,.35) transparent;
}
.quick-tool-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(149,166,190,.15);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.quick-tool-switcher a:hover,
.quick-tool-switcher a.is-active { color: var(--text); border-color: rgba(88,214,141,.42); background: rgba(88,214,141,.10); transform: translateY(-1px); }
.quick-tool-switcher a.is-active { color: var(--green); }
.quick-tool-app { min-height: 360px; }
.qt-panel {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(149,166,190,.15);
  border-radius: 16px;
  background: rgba(15,23,34,.76);
  box-shadow: 0 18px 48px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.025);
}
.qt-panel + .qt-panel { margin-top: 14px; }
.qt-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.qt-panel-head h2, .qt-panel-head h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.qt-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.qt-kicker { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.qt-grid { display: grid; gap: 14px; }
.qt-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.qt-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.qt-grid-main { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: start; }
.qt-field { display: grid; gap: 7px; min-width: 0; }
.qt-field > label, .qt-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.qt-field input[type="text"], .qt-field input[type="number"], .qt-field input[type="date"], .qt-field input[type="url"], .qt-field input[type="search"], .qt-field select, .qt-field textarea, .qt-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(149,166,190,.18);
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: rgba(3,8,14,.65);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.qt-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.qt-field input:focus, .qt-field select:focus, .qt-field textarea:focus, .qt-input:focus { border-color: rgba(71,199,232,.64); box-shadow: 0 0 0 3px rgba(71,199,232,.10); }
.qt-field input[type="color"] { width: 52px; height: 42px; padding: 4px; cursor: pointer; }
.qt-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.qt-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.qt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(149,166,190,.20);
  border-radius: 9px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.qt-button:hover { transform: translateY(-1px); border-color: rgba(71,199,232,.46); background: rgba(71,199,232,.09); }
.qt-button.primary { color: #061117; border-color: transparent; background: linear-gradient(135deg, var(--green), var(--cyan)); font-weight: 900; }
.qt-button.primary:hover { border-color: transparent; background: linear-gradient(135deg, #6ce6a0, #5cd6ef); }
.qt-button.ghost { color: var(--muted); background: transparent; }
.qt-button.danger:hover { color: #ffd5d5; border-color: rgba(255,113,113,.42); background: rgba(255,113,113,.08); }
.qt-button.small { min-height: 34px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.qt-button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.qt-dropzone {
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 22px;
  border: 1px dashed rgba(71,199,232,.38);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, rgba(71,199,232,.055), rgba(88,214,141,.035));
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.qt-dropzone:hover, .qt-dropzone.is-dragover { border-color: rgba(88,214,141,.76); background: rgba(88,214,141,.09); transform: translateY(-1px); }
.qt-dropzone strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 16px; }
.qt-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qt-file-list { display: grid; gap: 8px; margin-top: 12px; }
.qt-file-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(149,166,190,.12); border-radius: 9px; background: rgba(255,255,255,.035); }
.qt-file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.qt-file-row span { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.qt-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 12px;
  background: repeating-conic-gradient(rgba(255,255,255,.04) 0 25%, transparent 0 50%) 50% / 18px 18px, rgba(3,8,14,.55);
}
.qt-preview img, .qt-preview canvas { display: block; max-width: 100%; max-height: 420px; height: auto; border-radius: 6px; }
.qt-preview canvas { width: auto; }
.qt-empty-preview { color: var(--muted); font-size: 13px; text-align: center; }
.qt-control-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.qt-control-row > .qt-field { flex: 1 1 140px; }
.qt-checks { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.qt-check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
.qt-check input { accent-color: var(--green); }
.qt-range-line { display: flex; align-items: center; gap: 10px; }
.qt-range-line input[type="range"] { flex: 1; accent-color: var(--green); }
.qt-range-value { min-width: 52px; color: var(--green); font-weight: 900; text-align: right; }
.qt-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.qt-status.is-ok { color: var(--green); }
.qt-status.is-error { color: #ff9b9b; }
.qt-status.is-working { color: var(--cyan); }
.qt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qt-tab { min-height: 36px; padding: 0 12px; border: 1px solid rgba(149,166,190,.16); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); cursor: pointer; }
.qt-tab.is-active { color: #071118; border-color: transparent; background: var(--green); font-weight: 900; }
.qt-output {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid rgba(149,166,190,.16);
  border-radius: 10px;
  color: var(--text);
  background: rgba(3,8,14,.68);
  line-height: 1.65;
  resize: vertical;
}
.qt-stat-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qt-stat { padding: 7px 9px; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 12px; }
.qt-stat strong { color: var(--text); }
.qt-result-card { padding: 16px; border: 1px solid rgba(88,214,141,.20); border-radius: 12px; background: linear-gradient(135deg, rgba(88,214,141,.09), rgba(71,199,232,.05)); }
.qt-result-card h3 { margin: 0 0 8px; font-size: 15px; }
.qt-result-value { color: var(--green); font-size: clamp(22px, 4vw, 34px); font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.qt-result-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.qt-note { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid var(--cyan); border-radius: 0 8px 8px 0; color: var(--muted); background: rgba(71,199,232,.055); font-size: 12px; line-height: 1.6; }
.qt-color-readout { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 12px; }
.qt-color-swatch { width: 66px; height: 66px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }
.qt-color-values { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.qt-color-values strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.qt-palette { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 7px; margin-top: 14px; }
.qt-palette button { min-height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.qt-signature-wrap { overflow: hidden; border: 1px solid rgba(149,166,190,.16); border-radius: 12px; background: repeating-conic-gradient(rgba(255,255,255,.045) 0 25%, transparent 0 50%) 50% / 18px 18px, rgba(3,8,14,.55); }
.qt-signature-wrap canvas { display: block; width: 100%; height: 320px; touch-action: none; cursor: crosshair; }
.qt-password-list { display: grid; gap: 8px; margin-top: 14px; }
.qt-password-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(149,166,190,.14); border-radius: 9px; background: rgba(255,255,255,.035); }
.qt-password-row code { min-width: 0; flex: 1; overflow: auto; color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; white-space: nowrap; }
.qt-strength { display: flex; gap: 4px; margin-top: 8px; }
.qt-strength i { flex: 1; height: 5px; border-radius: 999px; background: rgba(149,166,190,.18); }
.qt-strength i.is-on:nth-child(1), .qt-strength i.is-on:nth-child(2) { background: #ff9b63; }
.qt-strength i.is-on:nth-child(3) { background: var(--amber); }
.qt-strength i.is-on:nth-child(4), .qt-strength i.is-on:nth-child(5) { background: var(--green); }
.qt-strength-label { margin-top: 5px; color: var(--muted); font-size: 12px; }
.qt-random-options { min-height: 260px; }
.qt-random-list { display: grid; gap: 7px; max-height: 360px; overflow: auto; padding-right: 3px; }
.qt-random-option { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid rgba(149,166,190,.13); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); transition: color .12s ease, border-color .12s ease, background .12s ease, transform .12s ease; }
.qt-random-option.is-highlight { color: #061117; border-color: transparent; background: linear-gradient(135deg, var(--green), var(--cyan)); transform: translateX(4px); font-weight: 900; }
.qt-random-option.is-picked { color: var(--green); border-color: rgba(88,214,141,.35); background: rgba(88,214,141,.08); }
.qt-random-index { width: 23px; color: inherit; font-size: 11px; font-weight: 900; opacity: .68; text-align: center; }
.qt-random-result { display: grid; place-items: center; min-height: 180px; padding: 20px; border: 1px solid rgba(71,199,232,.18); border-radius: 12px; text-align: center; background: radial-gradient(circle at center, rgba(71,199,232,.10), rgba(3,8,14,.32) 70%); }
.qt-random-result strong { display: block; color: var(--green); font-size: clamp(28px, 6vw, 52px); line-height: 1.2; overflow-wrap: anywhere; }
.qt-random-result span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.qt-unit-result { margin-top: 14px; }
.qt-hidden { display: none !important; }
.quick-toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(360px, calc(100% - 44px)); padding: 11px 14px; border: 1px solid rgba(88,214,141,.36); border-radius: 9px; color: var(--text); background: rgba(12,28,35,.94); box-shadow: 0 12px 34px rgba(0,0,0,.32); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .2s ease, translate .2s ease; font-size: 13px; }
.quick-toast.is-visible { opacity: 1; translate: 0 0; }
.qt-inline-code { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.qt-dropzone + .qt-preview, .qt-field + .qt-preview { margin-top: 12px; }
.qt-qr-canvas { width: min(100%, 360px) !important; height: auto !important; padding: 12px; background: #fff; }
.qt-qr-result { display: grid; gap: 10px; }
.qt-qr-result a { color: var(--cyan); overflow-wrap: anywhere; }
.qt-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.qt-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid rgba(71,199,232,.25); border-top-color: var(--cyan); border-radius: 50%; animation: qt-spin .8s linear infinite; }
@keyframes qt-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .quick-tool-hero { grid-template-columns: 1fr; }
  .quick-tool-hero-visual { min-height: 170px; }
  .quick-tool-hero-visual img { width: min(100%, 240px); }
  .qt-grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .quick-tool-shell { width: min(100% - 20px, 1180px); padding-top: 22px; }
  .quick-tool-hero { padding: 20px 16px; border-radius: 14px; }
  .quick-tool-hero h1 { font-size: 31px; }
  .quick-tool-hero-intro { font-size: 14px; }
  .qt-grid-2, .qt-grid-3 { grid-template-columns: 1fr; }
  .qt-panel { padding: 15px; border-radius: 13px; }
  .qt-panel-head { align-items: start; flex-direction: column; }
  .qt-palette { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .qt-signature-wrap canvas { height: 250px; }
  .qt-file-row { align-items: start; flex-wrap: wrap; }
  .qt-file-row span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-loading::before { animation: none; }
  .quick-tool-switcher a, .qt-button, .qt-dropzone, .qt-random-option { transition: none; }
}


/* Extended instant tools */
.qt-preview-large { min-height: 260px; }
.qt-preview-large canvas, .qt-preview-large img { width: auto; max-width: 100%; max-height: 620px; }
.qt-media-preview { gap: 10px; }
.qt-media-preview video { display: block; width: 100%; max-height: 520px; border-radius: 9px; background: #02060a; }
.qt-media-preview audio { display: block; width: min(100%, 620px); }
.qt-media-preview video.qt-hidden { display: none; }
.qt-file-row-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.qt-file-row-actions .qt-button { white-space: nowrap; }
.qt-audio-list { display: grid; gap: 10px; margin-top: 14px; }
.qt-audio-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 14px; border: 1px solid rgba(149,166,190,.14); border-radius: 12px; background: rgba(255,255,255,.035); }
.qt-audio-row-title { display: grid; gap: 4px; min-width: 0; }
.qt-audio-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-audio-row-title span { color: var(--muted); font-size: 12px; }
.qt-audio-row > .qt-control-row { grid-column: 1 / -1; }
.qt-actions-spaced { margin-top: 16px; }
.qt-media-result { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid rgba(88,214,141,.2); border-radius: 12px; background: rgba(88,214,141,.055); }
.qt-note-box { padding: 12px 14px; border: 1px solid rgba(245,193,92,.2); border-radius: 10px; color: var(--muted); background: rgba(245,193,92,.055); font-size: 12px; line-height: 1.65; }
.qt-canvas-editor { min-height: 250px; }
.qt-canvas-editor canvas { width: 100%; max-height: 620px; cursor: crosshair; touch-action: none; user-select: none; }
.qt-processing-video { position: fixed; z-index: -1; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
.qt-screen-preview { min-height: 300px; }
.qt-screen-preview video { aspect-ratio: 16 / 9; object-fit: contain; }
.qt-recorder-state { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(149,166,190,.15); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.035); }
.qt-recorder-state > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(149,166,190,.5); }
.qt-recorder-state strong { color: var(--text); font-size: 13px; }
.qt-recorder-state em { margin-left: auto; color: var(--muted); font-size: 12px; font-style: normal; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.qt-recorder-state.is-recording { border-color: rgba(255,119,119,.38); }
.qt-recorder-state.is-recording > span { background: #ff7777; box-shadow: 0 0 0 5px rgba(255,119,119,.12); animation: qt-record-pulse 1.2s ease-in-out infinite; }
.qt-recorder-state.is-recording strong { color: #ffaaaa; }
@keyframes qt-record-pulse { 50% { transform: scale(.72); opacity: .6; } }
.qt-panel-inner { min-width: 0; padding: 16px; border: 1px solid rgba(149,166,190,.14); border-radius: 12px; background: rgba(3,8,14,.35); }
.qt-panel-inner .qt-panel-head { align-items: center; margin-bottom: 12px; }
.qt-panel-inner .qt-panel-head h3 { font-size: 18px; }
.qt-summary-results { margin-top: 14px; }
.qt-summary-results .qt-output { min-height: 190px; }
.qt-chip-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 190px; }
.qt-keyword-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid rgba(71,199,232,.24); border-radius: 999px; color: var(--text); background: rgba(71,199,232,.08); font-size: 13px; }
.qt-keyword-chip b { color: var(--cyan); font-size: 11px; }
.qt-color-line { display: flex; align-items: center; gap: 10px; }
.qt-color-line input[type="color"] { flex: 0 0 auto; }
.qt-color-line span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.qt-transparent-preview { background: repeating-conic-gradient(rgba(255,255,255,.07) 0 25%, transparent 0 50%) 50% / 18px 18px, rgba(3,8,14,.55); }
.qt-transparent-preview canvas { background: transparent; }
.qt-field input[type="number"] { font-variant-numeric: tabular-nums; }

/* Popular instant tools */
.qt-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}
.qt-pdf-toolbar > span { color: var(--muted); font-size: 12px; text-align: right; }
.qt-pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  min-height: 190px;
  margin-bottom: 16px;
}
.qt-pdf-page-grid > .qt-empty-preview, .qt-pdf-page-grid > .qt-loading { grid-column: 1 / -1; align-self: center; }
.qt-pdf-page-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.qt-pdf-page-card > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.qt-pdf-page-card > span { color: var(--muted); font-size: 11px; }
.qt-pdf-page-select { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; cursor: pointer; }
.qt-pdf-page-select input { accent-color: var(--green); }
.qt-pdf-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(149,166,190,.12);
  border-radius: 9px;
  background: rgba(3,8,14,.7);
}
.qt-pdf-thumb img { display: block; max-width: 88%; max-height: 88%; object-fit: contain; border-radius: 4px; transition: transform .18s ease; }
.qt-pdf-page-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.qt-pdf-page-actions button {
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(149,166,190,.16);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.qt-pdf-page-actions button:hover { color: var(--text); border-color: rgba(71,199,232,.42); background: rgba(71,199,232,.08); }
.qt-pdf-page-actions button.danger:hover { color: #ffb1b1; border-color: rgba(255,113,113,.42); background: rgba(255,113,113,.08); }
.qt-pdf-export-panel { margin-top: 2px; }
.qt-pdf-watermark-row { margin-top: 14px; }
.qt-transcript-field { margin-top: 16px; }
.qt-transcript-field textarea { min-height: 320px; }
.qt-transcript-interim { min-height: 24px; color: var(--cyan); font-size: 12px; line-height: 1.55; }
.qt-mask-editor {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-top: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 12px;
  background: repeating-conic-gradient(rgba(255,255,255,.04) 0 25%, transparent 0 50%) 50% / 18px 18px, rgba(3,8,14,.55);
}
.qt-mask-editor > * { grid-area: 1 / 1; }
.qt-mask-editor canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: 620px; border-radius: 6px; }
.qt-mask-editor canvas:last-child { cursor: crosshair; touch-action: none; user-select: none; }
.qt-id-source { min-height: 260px; }
.qt-id-source canvas { cursor: crosshair; }
.qt-id-result, .qt-avatar-preview {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 12px;
  background: repeating-conic-gradient(rgba(255,255,255,.04) 0 25%, transparent 0 50%) 50% / 18px 18px, rgba(3,8,14,.55);
}
.qt-id-result canvas { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; border-radius: 5px; box-shadow: 0 14px 36px rgba(0,0,0,.24); }
.qt-avatar-preview { min-height: 360px; }
.qt-avatar-preview canvas { display: block; width: min(100%, 420px); height: auto; border-radius: 16px; filter: drop-shadow(0 16px 34px rgba(0,0,0,.24)); }
.qt-zip-list { display: grid; gap: 8px; max-height: 520px; margin-top: 12px; overflow: auto; }
.qt-zip-entry {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(149,166,190,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.qt-zip-entry input { accent-color: var(--green); }
.qt-zip-entry-icon { line-height: 1; }
.qt-zip-entry-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.qt-zip-entry small { color: var(--muted); white-space: nowrap; }
.qt-zip-entry .qt-button { min-height: 30px; }
@media (max-width: 760px) {
  .qt-audio-row { grid-template-columns: 1fr; }
  .qt-audio-row .qt-file-row-actions { margin-left: 0; }
  .qt-audio-row > .qt-control-row { grid-column: auto; }
  .qt-file-row { align-items: flex-start; flex-wrap: wrap; }
  .qt-file-row > span { width: 100%; margin-left: 0; }
  .qt-file-row-actions { width: 100%; margin-left: 0; }
  .qt-summary-results { grid-template-columns: 1fr; }
  .qt-pdf-toolbar { align-items: flex-start; flex-direction: column; }
  .qt-pdf-toolbar > span { text-align: left; }
  .qt-pdf-page-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .qt-mask-editor { min-height: 220px; padding: 8px; }
  .qt-id-source { min-height: 220px; }
  .qt-id-result, .qt-avatar-preview { min-height: 260px; padding: 10px; }
  .qt-transcript-field textarea { min-height: 260px; }
  .qt-zip-entry { grid-template-columns: auto auto minmax(0, 1fr); }
  .qt-zip-entry small { grid-column: 2 / 4; }
  .qt-zip-entry .qt-button { grid-column: 2 / 4; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-recorder-state.is-recording > span { animation: none; }
}

/* Today food picker */
.qt-food-tool { overflow: hidden; }
.qt-food-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: start;
  gap: 18px;
}
.qt-food-filter-panel {
  display: grid;
  gap: 19px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 14px;
  background: rgba(3,8,14,.36);
}
.qt-food-filter-group { display: grid; gap: 9px; min-width: 0; }
.qt-food-filter-label { color: var(--text); font-size: 13px; font-weight: 800; }
.qt-food-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.qt-food-choice {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(149,166,190,.17);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.qt-food-choice:hover { color: var(--text); border-color: rgba(71,199,232,.42); background: rgba(71,199,232,.08); transform: translateY(-1px); }
.qt-food-choice.is-active { color: #061117; border-color: transparent; background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: 0 7px 18px rgba(71,199,232,.12); }
.qt-food-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.qt-food-filter-footer .qt-check { min-width: 0; }
.qt-food-candidate-count { flex: 0 0 auto; color: var(--green); font-size: 12px; font-weight: 800; text-align: right; }
.qt-food-candidate-count.is-empty { color: #ffaaaa; }
.qt-food-stage {
  position: sticky;
  top: 14px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(71,199,232,.18);
  border-radius: 14px;
  background: radial-gradient(circle at 76% 10%, rgba(71,199,232,.13), transparent 42%), linear-gradient(145deg, rgba(13,31,40,.94), rgba(3,8,14,.72));
}
.qt-food-stage.is-rolling::after {
  content: '';
  position: absolute;
  left: -45%;
  bottom: 0;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  animation: qt-food-scan .7s linear infinite;
}
.qt-food-result { display: grid; align-content: center; min-height: 274px; min-width: 0; }
.qt-food-empty { display: grid; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.qt-food-empty > span { font-size: 64px; filter: drop-shadow(0 10px 24px rgba(71,199,232,.18)); }
.qt-food-empty strong { color: var(--text); font-size: 20px; }
.qt-food-empty p { max-width: 300px; margin: 0; font-size: 13px; line-height: 1.6; }
.qt-food-result-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; }
.qt-food-result-emoji {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(88,214,141,.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(88,214,141,.12), rgba(71,199,232,.08));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.18);
  font-size: 44px;
}
.qt-food-result-kicker { display: block; margin-bottom: 5px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.qt-food-result h3 { margin: 0; color: var(--text); font-size: clamp(28px, 4vw, 42px); line-height: 1.12; overflow-wrap: anywhere; }
.qt-food-result-main p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.qt-food-result.is-rolling .qt-food-result-emoji { animation: qt-food-bob .34s ease-in-out both; }
.qt-food-result.is-picked .qt-food-result-emoji { animation: qt-food-pop .42s cubic-bezier(.2,.8,.2,1) both; }
.qt-food-result.is-stale { opacity: .58; }
.qt-food-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.qt-food-meta span { padding: 6px 9px; border: 1px solid rgba(149,166,190,.13); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 11px; }
.qt-food-actions { margin-top: 14px; }
.qt-food-pick { width: 100%; min-height: 50px; font-size: 15px; }
.qt-food-pick span { font-size: 18px; }
.qt-food-stage .qt-status { min-height: 20px; margin-bottom: 0; }
.qt-food-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.qt-food-alternatives, .qt-food-recent { display: grid; gap: 9px; min-width: 0; }
.qt-food-alternative {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(149,166,190,.14);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.qt-food-alternative:hover { border-color: rgba(88,214,141,.38); background: rgba(88,214,141,.065); transform: translateX(2px); }
.qt-food-alternative-emoji { font-size: 28px; }
.qt-food-alternative > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.qt-food-alternative strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.qt-food-alternative small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.qt-food-alternative b { color: var(--green); font-size: 11px; white-space: nowrap; }
.qt-food-recent-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid rgba(149,166,190,.1); }
.qt-food-recent-item > span { font-size: 23px; }
.qt-food-recent-item strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.qt-food-recent-item small { color: var(--muted); font-size: 11px; white-space: nowrap; }
@keyframes qt-food-bob { 0% { opacity: .35; transform: translateY(8px) scale(.92); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes qt-food-pop { 0% { transform: scale(.78) rotate(-5deg); } 65% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes qt-food-scan { to { left: 100%; } }
@media (max-width: 860px) {
  .qt-food-layout { grid-template-columns: 1fr; }
  .qt-food-stage { position: relative; top: auto; }
}
@media (max-width: 620px) {
  .qt-food-filter-panel { padding: 15px; gap: 16px; }
  .qt-food-filter-footer { align-items: flex-start; flex-direction: column; }
  .qt-food-candidate-count { text-align: left; }
  .qt-food-lower-grid { grid-template-columns: 1fr; }
  .qt-food-result-main { gap: 12px; }
  .qt-food-result-emoji { width: 65px; height: 65px; border-radius: 18px; font-size: 34px; }
  .qt-food-result h3 { font-size: clamp(25px, 9vw, 35px); }
  .qt-food-stage { padding: 15px; }
}
@media (max-width: 390px) {
  .qt-food-choice { padding: 0 10px; font-size: 11px; }
  .qt-food-alternative { grid-template-columns: auto minmax(0, 1fr); }
  .qt-food-alternative b { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .qt-food-choice, .qt-food-alternative { transition: none; }
  .qt-food-result.is-rolling .qt-food-result-emoji, .qt-food-result.is-picked .qt-food-result-emoji, .qt-food-stage.is-rolling::after { animation: none; }
}
