:root {
  color-scheme: light;
  --paper: #eee9df;
  --paper-2: #ece6da;
  --surface: #f8f5ee;
  --surface-2: #e4ddd0;
  --field: #faf7f1;
  --ink: #2b2a27;
  --ink-rgb: 43 42 39;
  --ink-2: #4a463f;
  --ink-3: #6b665c;
  --ink-4: #9a958a;
  --line-soft: #2b2a2724;
  --line-mid: #2b2a274d;
  --hover: #2b2a270e;
  --active: #1111111a;
  --shadow-color: #3a3833;
  --blue: #8196f5;
  --coral: #fa9387;
  --acid: #c9f07a;
  --yellow: #fadd7c;
  --lavender: #c9bcf5;
  --pink: #faaccf;
  --career: #9bb8f5;
  --mint: #8be4b6;
  --orange: #fab775;
  --cyan: #7cdbe4;
  --magenta: #e788f5;
  --tan: #dcb996;
  --rose: #fa89ba;
  --accent: #3554f5;
  --danger: #d4291b;
  --cat: var(--yellow);
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 10px;
  --bw: 2px;
  --sh-sm: 2px 2px 0 var(--shadow-color);
  --sh: 4px 4px 0 var(--shadow-color);
  --sh-lg: 6px 6px 0 var(--shadow-color);
  --dur-fast: 90ms;
  --dur: 150ms;
  --sidebar-width: 248px;
  --header-height: 56px;
  --font-sans: "Inter Variable", Inter, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b1b1a;
  --paper-2: #151515;
  --surface: #232321;
  --surface-2: #2c2c2a;
  --field: #181817;
  --ink: #dcd8cf;
  --ink-rgb: 220 216 207;
  --ink-2: #bcb7ac;
  --ink-3: #99938a;
  --ink-4: #6c675e;
  --line-soft: #dcd8cf29;
  --line-mid: #dcd8cf57;
  --hover: #dcd8cf12;
  --active: #f5f2ea1f;
  --shadow-color: #8f8a80;
  --blue: #6177d9;
  --coral: #dd7468;
  --acid: #acd45a;
  --yellow: #ddc15c;
  --lavender: #ac9ed9;
  --pink: #dd8eb2;
  --career: #7a98d9;
  --mint: #6bc798;
  --orange: #dd9955;
  --cyan: #5cbec7;
  --magenta: #ca69d9;
  --tan: #bf9c77;
  --rose: #dd6a9c;
  --accent: #8ea2ff;
  --danger: #ff7a6e;
}

[data-cat="images"] { --cat: var(--blue); }
[data-cat="pdf"] { --cat: var(--coral); }
[data-cat="data"] { --cat: var(--acid); }
[data-cat="developer"] { --cat: var(--lavender); }
[data-cat="text"] { --cat: var(--yellow); }
[data-cat="design"] { --cat: var(--pink); }
[data-cat="career"] { --cat: var(--career); }
[data-cat="files"] { --cat: var(--mint); }
[data-cat="utilities"] { --cat: var(--orange); }
[data-cat="business"] { --cat: var(--tan); }
[data-cat="social"] { --cat: var(--rose); }
[data-cat="security"] { --cat: var(--cyan); }
[data-cat="media"] { --cat: var(--magenta); }
[data-cat] {
  --cat-soft: color-mix(in srgb, var(--cat) 22%, transparent);
  --cat-tint: color-mix(in srgb, var(--cat) 14%, var(--surface));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; background: transparent; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.skip::after { content: "Skip to content"; }
html[lang="zh-CN"] .skip::after { content: "跳至内容"; }

/* 纯 UI 装饰性提示词走 CSS content，避免污染静态 HTML 词频 */
.brand-text-css {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.brand-text-css::after { content: "Jellykit"; }
.local-pill::after { content: "Local"; }
html[lang="zh-CN"] .local-pill::after { content: "本地运行"; }
.dashboard-label::after { content: "Dashboard"; }
html[lang="zh-CN"] .dashboard-label::after { content: "工作台"; }
.cta-find-label::after { content: "Find a tool"; }
html[lang="zh-CN"] .cta-find-label::after { content: "查找工具"; }
.dropzone-badge::after { content: "Zero upload"; }
html[lang="zh-CN"] .dropzone-badge::after { content: "不上传服务器"; }
.tool-card-foot::after { content: "Open tool"; }
html[lang="zh-CN"] .tool-card-foot::after { content: "打开工具"; }
.status-ready:empty::after { content: "Ready"; }
html[lang="zh-CN"] .status-ready:empty::after { content: "就绪"; }
.statusbar-note::after { content: "Runs in this browser · nothing uploaded"; }
html[lang="zh-CN"] .statusbar-note::after { content: "在当前浏览器本地运行 · 文件不上传"; }

/* 客户端工作台插槽：无 JS 静态视图下隐藏空槽，挂载后无缝呈现完整工作台 */
.workbench-slots {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.workbench-slots:empty,
.hero-drop-col:empty,
.footer-nav:empty,
.shortcut-hints:empty,
.tool-header-controls:empty { display: none; }
.tool-header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-grid:has(.hero-drop-col:empty) {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar:empty {
  background: var(--paper-2);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* 键帽与通用图标按钮 */
.kbd-group { display: inline-flex; align-items: center; gap: 3px; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 1.5px 1.5px 0 var(--shadow-color);
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--shadow-color);
  background: var(--surface-2);
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* 明暗主题图标切换 */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* 分类色块图标 */
.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--cat);
  color: #111;
}
.cat-badge-sm { width: 22px; height: 22px; }
.cat-badge-sm svg { width: 13px; height: 13px; }
.cat-badge-md { width: 32px; height: 32px; border-width: 2px; border-radius: var(--r); }
.cat-badge-md svg { width: 17px; height: 17px; }
.cat-badge-lg { width: 40px; height: 40px; border-width: 2px; border-radius: var(--r); box-shadow: var(--sh-sm); }
.cat-badge-lg svg { width: 20px; height: 20px; }

/* 视口固定壳层 */
.app-shell {
  position: relative;
  display: flex;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
}
.app-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

/* 左侧固定侧边栏 */
.sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  flex-shrink: 0;
  height: 100%;
  border-right: 2px solid var(--ink);
  background: var(--paper-2);
  transition: width var(--dur);
}
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-search-text,
.sidebar.collapsed .sidebar-search .kbd-group,
.sidebar.collapsed .nav-item-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .cat-name,
.sidebar.collapsed .cat-count,
.sidebar.collapsed .chevron,
.sidebar.collapsed .cat-tools { display: none; }
.sidebar.collapsed .sidebar-head { justify-content: center; padding: 0 8px; gap: 0; }
.sidebar.collapsed .brand { display: none; }
.sidebar.collapsed .sidebar-search { justify-content: center; padding: 0; }
.sidebar.collapsed .nav-item,
.sidebar.collapsed .cat-summary { justify-content: center; padding: 0; }

.sidebar-head {
  display: flex;
  align-items: center;
  height: var(--header-height);
  flex-shrink: 0;
  padding: 0 12px 0 16px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { flex-shrink: 0; }
.brand-text {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.collapse-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid transparent;
  border-radius: var(--r);
  color: var(--ink);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.collapse-btn svg { width: 16px; height: 16px; }
.collapse-btn:hover { border-color: var(--ink); background: var(--surface); }

.sidebar-search-wrap {
  flex-shrink: 0;
  padding: 12px 12px 8px;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--field);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.sidebar-search svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-3); }
.sidebar-search-text { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-search .kbd-group { margin-left: auto; }
.sidebar-search:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--shadow-color);
}
.sidebar-search:active { transform: translate(1px, 1px); box-shadow: none; }

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 12px 16px;
}
.sidebar-primary { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { border-color: var(--ink); background: var(--surface); }
.nav-item[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.nav-section-label { margin: 18px 8px 6px; }

.cat-tree { display: flex; flex-direction: column; gap: 2px; }
.cat-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 6px 0 8px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.cat-summary::-webkit-details-marker { display: none; }
.cat-summary:hover,
details[open] > .cat-summary {
  border-color: var(--ink);
  background: var(--surface);
}
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
details[open] > .cat-summary .chevron { transform: rotate(90deg); }

.cat-tools {
  margin: 4px 4px 6px 18px;
  padding-left: 10px;
  border-left: 2px solid var(--line-mid);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-tools a {
  display: block;
  padding: 5px 8px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cat-tools a:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.cat-tools a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--cat);
  color: #111;
  font-weight: 800;
}

.sidebar-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-top: 2px solid var(--ink);
}

/* 顶栏（桌面 + 移动） */
.mobile-header { display: none; }
.desktop-header {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-height);
  flex-shrink: 0;
  padding: 0 24px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}
.desktop-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-sep { width: 2px; height: 16px; background: var(--ink); flex-shrink: 0; }
.shortcut-hints { display: flex; align-items: center; gap: 16px; }
.shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.shortcut-btn:hover { color: var(--ink); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px 0 9px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--mint);
  color: #111;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.local-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: #fff;
}

.lang-switch {
  display: inline-flex;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  transition: background var(--dur-fast);
}
.lang-switch a:hover { background: var(--hover); }
.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* 主滚动区 */
.main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.main-scroll.main-tool {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 40px 84px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hero 双栏 */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.eyebrow-text { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--yellow) 62% 94%, transparent 94%);
}
[data-theme="dark"] .hero-title em {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 38%, transparent) 62% 94%, transparent 94%);
}
html[lang="zh-CN"] .hero-title {
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
}
.hero-lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--sh);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.btn-primary svg, .btn-secondary svg, .btn-ink svg { width: 16px; height: 16px; }
.btn-primary { background: var(--yellow); color: #111; }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-ink { background: #111; color: #fff; border-color: #111; box-shadow: 3px 3px 0 #111; }
.btn-primary:hover, .btn-secondary:hover, .btn-ink:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow-color);
}
.btn-primary:active, .btn-secondary:active, .btn-ink:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* 亮黄色通用文件拖放区 */
.dropzone {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--yellow);
  color: #111;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.dropzone.dragging {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--shadow-color);
  outline: 3px dashed #111;
  outline-offset: -8px;
}
.dropzone-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dropzone-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dropzone-label { color: #2b2a27; }
.dropzone-badge {
  padding: 2px 8px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fffdf8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.dropzone-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.dropzone-sub { font-size: 14px; font-weight: 600; color: #2b2a27; }
.dropzone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.dropzone-tags span {
  padding: 2px 7px;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: #fffdf8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.dropzone-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #2b2a27;
}
.dropzone-result {
  margin-top: 8px;
  padding: 12px;
  border: 2px solid #111;
  border-radius: var(--r);
  background: #fffdf8;
}
.dropzone-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 800;
}
.dropzone-result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dropzone-result-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: var(--cat);
  color: #111;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 2px 2px 0 #111;
}
.dropzone-result-links a:hover { transform: translate(-1px, -1px); }

.dropzone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid #111;
  background: #fffdf8;
}
.dropzone-stats > div {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dropzone-stats > div + div { border-left: 2px solid #111; }
.dropzone-stats .label { color: #4a463f; }
.dropzone-stats strong {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

/* 通用区块标题 */
.home-section { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Quick actions 网格 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.quick-card span:not(.cat-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-card > svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6; }
.quick-card:hover {
  background: var(--cat-tint);
  transform: translate(-1px, -1px);
  box-shadow: var(--sh);
}
.quick-card:active { transform: translate(2px, 2px); box-shadow: none; }

/* Workspace: Recent & Favorites */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}
.workspace-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh);
}
.workspace-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.workspace-card-head h2 {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.text-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.text-btn:hover { background: var(--surface-2); }
.workspace-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.workspace-empty {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 12px;
  border: 1.5px dashed var(--line-mid);
  border-radius: var(--r);
  background: var(--paper);
}
.workspace-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.workspace-pill:hover {
  background: var(--cat-tint);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--shadow-color);
}
.workspace-pill span:not(.cat-badge) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Browse Categories 概览宫格 */
.cats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}
.cat-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.cat-overview-card:hover {
  background: var(--cat-tint);
  transform: translate(-1px, -1px);
  box-shadow: var(--sh);
}
.cat-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-overview-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.cat-overview-card h3 { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.cat-overview-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* 分类独立区块 */
.cat-section {
  scroll-margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-section-title { display: flex; align-items: center; gap: 14px; }
.cat-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-3);
}
.cat-section-title h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.cat-section-title p { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.cat-pill {
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cat);
  color: #111;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
}

.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.tool-card:hover {
  background: var(--cat-tint);
  transform: translate(-2px, -2px);
  box-shadow: var(--sh-lg);
}
.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tool-card h3 { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--cat);
  color: #111;
}
.tool-card-arrow svg { width: 14px; height: 14px; }
.tool-card p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.tool-card-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* SEO 说明、步骤、场景与 FAQ 区块 */
.seo-section {
  scroll-margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.seo-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}
.seo-copy-card,
.seo-highlights-card,
.step-card,
.usecase-card {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh);
}
.seo-copy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.seo-highlights-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper-2);
}
.seo-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.seo-bullets li {
  padding-left: 14px;
  position: relative;
}
.seo-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
}
.seo-bullets strong { color: var(--ink); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--yellow);
  color: #111;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--sh-sm);
}
.step-card h3 { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.step-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.usecase-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.usecase-card h3 { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.usecase-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.usecase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.usecase-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.usecase-links a:hover {
  background: var(--yellow);
  color: #111;
  transform: translate(-1px, -1px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
}
.faq-item[open] summary {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.faq-item[open] summary::after { content: "−"; background: var(--yellow); color: #111; }
.faq-item p {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* 隐私承诺区块 */
.privacy-section {
  scroll-margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.privacy-card {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.privacy-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.privacy-card p { font-size: 13px; color: var(--ink-2); }

/* 首页 Footer */
.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.footer-logo {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.footer-tagline { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.footer-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* 工具页顶栏与工作台 */
.tool-header { padding: 0 20px; }
.tool-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tool-title-block { min-width: 0; }
.breadcrumb-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.tool-title-block h1 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-btn[aria-pressed="true"] {
  background: var(--yellow);
  color: #111;
}
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

.related-menu { position: relative; }
.related-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}
.related-trigger::-webkit-details-marker { display: none; }
.related-trigger svg { width: 14px; height: 14px; }
.related-trigger:hover,
.related-menu[open] > .related-trigger {
  border-color: var(--ink);
  background: var(--paper);
}
.related-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh);
}
.related-popover .label { margin-bottom: 6px; display: block; }
.related-popover li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.related-popover li a svg { width: 13px; height: 13px; opacity: 0.65; }
.related-popover li a:hover { border-color: var(--ink); background: var(--cat-tint); }

.tool-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.tool-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
}
.input-panel { border-right: 2px solid var(--ink); padding-bottom: 24px; }
.panel-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.panel-bar h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sample-button,
.output-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.sample-button:hover,
.output-actions :is(a, button):hover {
  background: var(--cat-tint);
  transform: translate(-1px, -1px);
}

.fields { display: grid; gap: 14px; padding: 18px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.fields input,
.fields select,
.fields textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--field);
  color: var(--ink);
  font-weight: 500;
}
.fields textarea { min-height: clamp(10rem, 34vh, 22rem); resize: vertical; }
:is([data-tool="json-formatter"], [data-tool="json-csv"], [data-tool="csv-json"], [data-tool="csv-preview"]) textarea,
[data-tool="json-formatter"] .output-body pre { font-family: var(--font-mono); font-size: 13px; }

.file-field {
  padding: 18px;
  border: 2px dashed var(--ink);
  border-radius: var(--r-lg);
  background: var(--cat-tint);
}
.file-field.dragging { background: var(--yellow); color: #111; border-style: solid; }
.file-hint { color: var(--ink-2); font-size: 12px; font-weight: 600; }
input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.input-panel > .primary {
  align-self: flex-start;
  margin-left: 18px;
  height: 42px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--cat);
  color: #111;
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--sh);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.input-panel > .primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-color); }
.input-panel > .primary:active { transform: translate(2px, 2px); box-shadow: none; }
.input-panel > .primary:disabled { opacity: 0.65; cursor: wait; }

.error {
  margin: 12px 18px 0;
  padding: 10px 12px;
  border: 2px solid var(--danger);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}
.empty-output {
  margin: 18px;
  padding: 20px;
  border: 2px dashed var(--line-mid);
  border-radius: var(--r-lg);
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--paper);
}
.output-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.output-body { padding: 18px; }
.output-body pre {
  margin: 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--field);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.5px;
}
.output-body img, .output-body audio { display: block; max-width: 100%; margin-top: 12px; border: 2px solid var(--ink); border-radius: var(--r); }
.output-body h2 { margin-bottom: 10px; white-space: pre-wrap; }
.table-wrap { overflow: auto; border: 2px solid var(--ink); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; text-align: start; background: var(--field); }
th, td { padding: 7px 10px; border: 1px solid var(--line-mid); font-size: 13px; }
th { background: var(--paper-2); font-weight: 800; }
.swatch { min-height: 88px; margin-bottom: 12px; border: 2px solid var(--ink); border-radius: var(--r); }

.tool-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 30px;
  flex-shrink: 0;
  padding: 0 16px;
  border-top: 2px solid var(--ink);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.statusbar-state { display: inline-flex; align-items: center; gap: 7px; }
.statusbar-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}
.statusbar-note { color: var(--ink-3); }

/* 搜索弹窗 */
dialog {
  width: min(580px, calc(100% - 28px));
  max-height: 80dvh;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.dialog-title-wrap { display: flex; align-items: center; gap: 8px; }
.dialog-title-wrap svg { width: 16px; height: 16px; }
.dialog-header h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dialog-close {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.dialog-close:hover { background: var(--yellow); color: #111; }
.dialog-input-wrap { padding: 12px 14px 6px; }
#query {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--field);
  font-size: 14px;
  font-weight: 600;
}
#search-results { max-height: min(48vh, 380px); overflow-y: auto; padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
#search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
}
#search-results a:is(.selected, :hover, :focus-visible) {
  border-color: var(--ink);
  background: var(--cat-tint);
}
#search-results small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-3);
}
#search-empty { padding: 12px 16px 18px; color: var(--ink-3); font-size: 13.5px; }
.search-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 11.5px;
  font-weight: 700;
}

.backdrop { display: none; }

/* 响应式断点 */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .tool-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-about-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .usecases-grid { grid-template-columns: 1fr; }
  .desktop-header { display: none; }
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--header-height);
    flex-shrink: 0;
    padding: 0 12px;
    border-bottom: 2px solid var(--ink);
    background: var(--surface);
  }
  .mobile-header .local-pill { display: none; }
  .sidebar {
    position: fixed;
    inset: var(--header-height) auto 0 0;
    z-index: 40;
    width: min(290px, 86vw);
    height: calc(100dvh - var(--header-height));
    transform: translateX(-105%);
    transition: transform var(--dur);
    box-shadow: var(--sh-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .sidebar-head { display: none; }
  .backdrop {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 30;
    background: rgb(0 0 0 / 0.45);
  }

  .home-container { padding: 24px 16px 64px; gap: 44px; }
  .workbench-slots { gap: 44px; }
  .tool-cards-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }

  .main-scroll.main-tool { overflow-y: auto; }
  .tool-workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .panel { overflow: visible; }
  .input-panel { border-right: 0; border-bottom: 2px solid var(--ink); }
  .tool-statusbar { display: none; }
}

@media print {
  body * { visibility: hidden; }
  .output-body, .output-body * { visibility: visible; }
  .output-body { position: absolute; inset: 0 auto auto 0; width: 100%; color: #000; }
}
