:root {
  --bg: #fafbf7;
  --sidebar: #fffefa;
  --surface: #ffffff;
  --surface-soft: #f5faf7;
  --surface-hover: #eaf5ef;
  --text: #203c36;
  --text-2: #59716a;
  --text-3: #73867c;
  --line: #e1ebe3;
  --line-strong: #cbded3;
  --primary: #087f73;
  --primary-dark: #06695f;
  --primary-soft: #e7f5ef;
  --success: #167653;
  --success-soft: #edf8ef;
  --warning: #c37a0b;
  --warning-soft: #fff6df;
  --danger: #d94b54;
  --danger-soft: #fff0f1;
  --cyan: #168da3;
  /* Keep the familiar light syntax palette on a clean writing surface. */
  --syntax-surface: #ffffff;
  --syntax-plain: #000000;
  --syntax-comment: #8c8c8c;
  --syntax-keyword: #0033b3;
  --syntax-string: #067d17;
  --syntax-number: #1750eb;
  --syntax-title: #000000;
  --syntax-type: #0033b3;
  --syntax-attr: #871094;
  --syntax-variable: #000000;
  --syntax-function: #7a7a43;
  --syntax-meta: #9e880d;
  --syntax-attribute: #174ad4;
  --syntax-regexp: #264eff;
  --syntax-link: #006dcc;
  --syntax-template-variable: #248f8f;
  --syntax-escape: #0037a6;
  --syntax-selection: rgba(34,143,111,.18);
  --shadow-card: 0 2px 4px rgba(34, 73, 53, .025), 0 12px 36px -16px rgba(34, 73, 53, .16);
  --shadow-float: 0 12px 32px rgba(34, 73, 53, .13);
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 248px;
  --topbar-height: 64px;
  --content-pad: 38px;
  --font: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Warm white navigation; reserve color for the current selection. */
  --sb-bg: #fffefa;
  --sb-bg-soft: #ffffff;
  --sb-surface: #ffffff;
  --sb-text: #535650;
  --sb-text-strong: #2c302c;
  --sb-text-dim: #797d74;
  --sb-heading: #74796f;
  --sb-accent: #087f73;
  --sb-accent-soft: #eff6f2;
  --sb-hover: #f4f3ee;
  --sb-line: #eae9e1;
  --sb-kbd-bg: #f7f6f1;
  --sb-scroll: #d2d3ca;
  --sb-logo-shadow: 0 3px 10px rgba(54, 51, 37, .06);
  --sb-active-shadow: inset 0 0 0 1px #e0eae2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(42,170,116,.17); outline-offset: 1px; }
svg { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 30; display: flex; flex-direction: column; padding: 16px 10px 12px; background: var(--sb-bg); color: var(--sb-text); border-right: 1px solid var(--sb-line); }
.brand { height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 12px; flex: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; background: #fff; box-shadow: var(--sb-logo-shadow); flex: none; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 15px; font-weight: 650; color: var(--sb-text-strong); }
.brand-copy small { color: var(--sb-text-dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* Search / filter box */
.nav-search { position: relative; flex: none; display: flex; align-items: center; margin: 0 3px 12px; }
.nav-search > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--sb-text-dim); pointer-events: none; }
.nav-search input { width: 100%; height: 38px; border: 1px solid var(--sb-line); border-radius: var(--radius-md); background: var(--sb-bg-soft); color: var(--sb-text); font-size: 13px; padding: 0 34px 0 33px; transition: border-color .18s, box-shadow .18s; }
.nav-search input::placeholder { color: var(--sb-text-dim); }
.nav-search input:focus { outline: 0; border-color: var(--sb-accent); box-shadow: 0 0 0 3px var(--sb-accent-soft); background: var(--sb-surface); }
.nav-search kbd { position: absolute; right: 8px; font: 10px/1 var(--mono); color: var(--sb-text-dim); background: var(--sb-kbd-bg); border: 1px solid var(--sb-line); border-radius: 5px; padding: 3px 5px; pointer-events: none; }
.nav-search .nav-search-clear { position: absolute; right: 6px; display: none; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--sb-text-dim); cursor: pointer; }
.nav-search .nav-search-clear svg { width: 15px; height: 15px; }
.nav-search .nav-search-clear:hover { color: var(--sb-text); background: var(--sb-hover); }
.nav--searching .nav-search kbd { display: none; }
.nav--searching .nav-search .nav-search-clear { display: grid; }

.tool-nav { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 3px; scrollbar-width: thin; scrollbar-color: var(--sb-scroll) transparent; }
.tool-nav::-webkit-scrollbar { width: 8px; }
.tool-nav::-webkit-scrollbar-thumb { background: var(--sb-scroll); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: 6px; }
.nav-group-label { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 9px 6px; border: 0; background: transparent; color: var(--sb-heading); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; border-radius: var(--radius-sm); transition: color .15s; }
button.nav-group-label:hover { color: var(--sb-text-dim); background: var(--sb-hover); }
:root:not([data-theme="dark"]) button.nav-group-label:hover { color: var(--sb-text); }
.nav-group-label > span { flex: 1; }
.nav-group-label .grp-caret { width: 13px; height: 13px; color: var(--sb-heading); transition: transform .18s var(--ease); }
.nav-group-label .grp-count { font: 10px var(--mono); color: var(--sb-heading); opacity: 0; transition: opacity .15s; }
.nav-group.collapsed .grp-caret { transform: rotate(-90deg); }
.nav-group.collapsed .grp-count { opacity: 1; }
.nav-group-items { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.nav-group.collapsed .nav-group-items { display: none; }
.nav--searching .nav-group.collapsed .nav-group-items { display: flex; }
.nav-group.no-match { display: none; }
.nav-empty { display: none; padding: 20px 12px; color: var(--sb-text-dim); font-size: 12px; text-align: center; }
.nav--searching .nav-empty.show { display: block; }

.nav-item { position: relative; width: 100%; height: 38px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--sb-text); display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; padding: 0 11px; text-align: left; font-size: 13px; cursor: pointer; transition: background .16s, color .16s; }
:root:not([data-theme="dark"]) .nav-item { font-weight: 500; }
.nav-item[hidden] { display: none; }
.nav-item svg { width: 17px; height: 17px; color: var(--sb-text-dim); transition: color .16s; }
.nav-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-item:hover { color: var(--sb-text-strong); background: var(--sb-hover); }
.nav-item:hover svg { color: var(--sb-text-strong); }
.nav-item.active { color: var(--sb-text-strong); background: var(--sb-surface); font-weight: 600; box-shadow: var(--sb-active-shadow); }
.nav-item.active::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sb-accent); }
.nav-item.active svg { color: var(--sb-accent); }
.nav-search mark, .nav-item mark { background: var(--sb-accent-soft); color: var(--sb-accent); border-radius: 3px; padding: 0 1px; }

.nav--searching .nav-recent { display: none; }
.nav-recent .nav-group-label { cursor: default; color: var(--sb-accent); }
.recent-clear { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--sb-text-dim); cursor: pointer; transition: color .15s, background .15s; }
.recent-clear svg { width: 14px; height: 14px; }
.recent-clear:hover { color: var(--danger); background: var(--sb-hover); }
.nav-recent .nav-group-label .grp-caret { display: none; }
.nav-recent .nav-group-label svg { width: 13px; height: 13px; color: var(--sb-accent); }

.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 12px 11px 2px; margin-top: 4px; color: var(--sb-text-dim); font-size: 11px; border-top: 1px solid var(--sb-line); flex: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sb-accent); box-shadow: 0 0 0 4px var(--sb-accent-soft); flex: none; }

.main-area { grid-column: 2; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { height: var(--topbar-height); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--content-pad); border-bottom: 1px solid rgba(39,39,49,.055); background: rgba(245,245,247,.82); backdrop-filter: blur(16px) saturate(140%); }
.topbar > div, .top-actions { display: flex; align-items: center; gap: 12px; }
.crumb { color: var(--text-3); font-size: 11px; letter-spacing: .08em; }
.crumb strong { color: var(--text-2); font-weight: 600; }
.shortcut-hint { color: var(--text-3); font-size: 11px; display: flex; align-items: center; gap: 4px; }
kbd { padding: 2px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 10px var(--mono); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); color: var(--text-2); transition: all .2s var(--ease); }
.icon-button:hover { color: var(--primary); background: #fff; border-color: #c8ebd9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,37,48,.07); }
.mobile-menu { display: none; }

/* Topbar tool switcher: generated from the canonical sidebar navigation. */
.topbar-main { min-width:0; }
.quick-tool-picker { position:relative; flex:none; }
.quick-tool-trigger > svg { width:18px; height:18px; }
.quick-tool-picker.is-open .quick-tool-trigger { color:var(--primary); background:#fff; border-color:#c8ebd9; box-shadow:0 4px 12px rgba(37,37,48,.07); }
.quick-tool-panel { position:fixed; top:calc(var(--topbar-height) + 8px); right:var(--content-pad); z-index:50; width:calc(100vw - var(--sidebar-width) - (var(--content-pad) * 2)); max-width:1180px; max-height:calc(100vh - var(--topbar-height) - 20px); overflow:auto; overscroll-behavior:contain; visibility:hidden; opacity:0; pointer-events:none; transform:translateY(-7px) scale(.992); transform-origin:top right; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); box-shadow:0 18px 54px rgba(28,31,36,.16),0 2px 8px rgba(28,31,36,.06); transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s linear .16s; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.quick-tool-picker.is-open .quick-tool-panel { visibility:visible; opacity:1; pointer-events:auto; transform:none; transition-delay:0s; }
.quick-tool-panel-head { position:sticky; top:0; z-index:2; min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 19px; border-bottom:1px solid var(--line); background:var(--surface); }
.quick-tool-panel-head > div { display:flex; align-items:center; gap:8px; }
.quick-tool-panel-head svg { width:17px; height:17px; color:var(--primary); }
.quick-tool-panel-head strong { font-size:14px; font-weight:650; }
.quick-tool-panel-head > span { color:var(--text-3); font:11px var(--mono); }
.quick-tool-groups { --quick-tool-columns:4; display:grid; grid-template-columns:repeat(var(--quick-tool-columns),minmax(0,1fr)); align-items:start; gap:0 14px; padding:14px 16px 17px; }
.quick-tool-column { min-width:0; }
.quick-tool-group { min-width:0; padding:8px 0 11px; }
.quick-tool-group + .quick-tool-group { border-top:1px solid var(--line); }
.quick-tool-group-title { min-height:32px; display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0; padding:0 9px; color:var(--text-3); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.quick-tool-group-title small { color:var(--text-3); font:10px var(--mono); opacity:.78; }
.quick-tool-list { display:flex; flex-direction:column; gap:2px; }
.quick-tool-item { position:relative; width:100%; min-height:41px; display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; gap:9px; padding:7px 10px; border:1px solid transparent; border-radius:var(--radius-sm); background:transparent; color:var(--text-2); text-align:left; font-size:13px; line-height:1.3; transition:color .14s var(--ease),background .14s var(--ease),border-color .14s var(--ease); }
.quick-tool-item svg { width:18px; height:18px; color:var(--text-3); transition:color .14s var(--ease); }
.quick-tool-item span { min-width:0; overflow-wrap:anywhere; }
.quick-tool-item:hover,.quick-tool-item:focus-visible { color:var(--text); border-color:var(--line); background:var(--surface-soft); outline-offset:-1px; }
.quick-tool-item:hover svg,.quick-tool-item:focus-visible svg { color:var(--primary); }
.quick-tool-item.active { color:var(--primary-dark); border-color:#ccebdd; background:var(--primary-soft); font-weight:650; }
.quick-tool-item.active::after { content:""; position:absolute; top:8px; right:7px; width:5px; height:5px; border-radius:50%; background:var(--primary); }
.quick-tool-item.active svg { color:var(--primary); }

@media (max-width:640px) {
  .quick-tool-panel { top:calc(var(--topbar-height) + 6px); left:14px; right:14px; width:auto; max-height:calc(100vh - var(--topbar-height) - 16px); }
  .quick-tool-panel-head { padding-inline:13px; }
  .quick-tool-groups { gap:0 8px; padding:9px 9px 12px; }
  .quick-tool-group-title { padding-inline:6px; }
  .quick-tool-item { padding-inline:7px; }
}
@media (max-width:420px) {
  .quick-tool-panel-head { min-height:46px; }
  .quick-tool-item { font-size:12px; }
}

.content { width: 100%; margin: 0 auto; padding: var(--content-pad); flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tool-panel { display: none; animation: panel-in .28s var(--ease) both; }
.tool-panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 10px 2px 25px; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 7px 0 7px; font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: 0; }
.panel-heading p { margin: 0; color: var(--text-2); line-height: 1.6; }
.heading-badge { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--success); background: var(--success-soft); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; white-space: nowrap; }
.heading-badge svg { width: 15px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.card-toolbar { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button-row.align-start { margin-top: 14px; justify-content: flex-start; }
.button { height: 34px; border: 1px solid transparent; border-radius: var(--radius-md); padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 600; transition: all .18s var(--ease); white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--primary); box-shadow: 0 4px 10px rgba(42,170,116,.18); }
.button.primary:hover { background: var(--primary-dark); box-shadow: 0 6px 14px rgba(42,170,116,.24); }
.button.secondary { background: var(--surface-soft); border-color: var(--line); color: var(--text-2); }
.button.secondary:hover { color: var(--text); background: var(--surface-hover); }
.copy-button { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-2); background: #fff; font-size: 11px; transition: all .18s var(--ease); white-space: nowrap; }
.copy-button svg { width: 14px; height: 14px; }
.copy-button:hover { color: var(--primary); border-color: #c6ebd8; background: var(--primary-soft); transform: translateY(-1px); }
.copy-button.copied { transform: scale(.95); color: var(--success); border-color: #cfeee0; background: var(--success-soft); }
.segmented { --segment-height:30px; display:inline-grid; grid-auto-flow:column; gap:2px; max-width:100%; padding:3px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); box-shadow:inset 0 1px 2px rgba(31,31,38,.025); }
.segmented button { min-width:0; height:var(--segment-height); display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 11px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--text-2); font-size:11px; font-weight:500; line-height:1; white-space:nowrap; transition:color .16s var(--ease),background .16s var(--ease),border-color .16s var(--ease),box-shadow .16s var(--ease); }
.segmented button svg { width:14px; height:14px; color:var(--text-3); transition:color .16s var(--ease); }
.segmented button:hover:not(:disabled) { color:var(--text); background:var(--surface-hover); }
.segmented button:hover:not(:disabled) svg { color:var(--text-2); }
.segmented button.active { color:var(--primary-dark); border-color:var(--line-strong); background:var(--surface); box-shadow:0 1px 3px rgba(30,30,40,.09); font-weight:600; }
.segmented button.active svg { color:var(--primary); }
.segmented button:disabled { opacity:.42; cursor:not-allowed; }
.segmented.standalone { margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.field > span, .range-field label { color: var(--text-2); font-size: 11px; font-weight: 600; }
.field-row { display: flex; gap: 14px; align-items: flex-end; }
.field.grow { flex: 1 1 auto; }
.field.small { flex: 0 0 90px; }
.field.medium { flex: 0 0 180px; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-soft); transition: border .18s, box-shadow .18s, background .18s; }
input, select { height: 40px; padding: 0 12px; }
textarea { min-height: 150px; padding: 12px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #b1b1ba; }
input:focus, textarea:focus, select:focus { outline: none; background: #fff; border-color: #8fd4b4; box-shadow: 0 0 0 3px rgba(42,170,116,.09); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--primary);
  cursor: pointer;
  --range-progress: 0%;
}
input[type="range"]:focus,
input[type="range"]:focus-visible { outline: none; background: transparent; border: 0; box-shadow: none; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  border: 1px solid #c6ebd8;
  background: linear-gradient(to right, var(--primary) 0 var(--range-progress), var(--primary-soft) var(--range-progress) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(42,170,116,.35);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #c6ebd8;
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  border: 1px solid transparent;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(42,170,116,.35);
}
.mono, .code-input, pre, code { font-family: var(--mono); }
.code-input { min-height: 170px; background: #f8f9fa; color: #30303a; tab-size: 2; }
.code-input.tall { min-height: 360px; }
.syntax-editor { position:relative; width:100%; min-width:0; border-radius:var(--radius-md); background:var(--syntax-surface); isolation:isolate; }
.syntax-editor > .syntax-highlight { position:absolute; inset:1px; z-index:0; margin:0; padding:var(--syntax-padding-top) var(--syntax-padding-right) var(--syntax-padding-bottom) var(--syntax-padding-left); overflow:hidden; border:0; border-radius:calc(var(--radius-md) - 1px); background:var(--syntax-surface); color:var(--syntax-plain); font-family:var(--mono); font-size:var(--syntax-font-size); line-height:var(--syntax-line-height); letter-spacing:0; tab-size:var(--syntax-tab-size); white-space:pre; pointer-events:none; }
.syntax-editor > .syntax-highlight > code { display:block; width:max-content; min-width:100%; min-height:100%; padding:0; border:0; background:transparent; color:inherit; font:inherit; letter-spacing:0; white-space:inherit; }
.syntax-editor > textarea { position:relative; z-index:1; display:block; margin:0; background:transparent!important; color:transparent!important; caret-color:var(--text); -webkit-text-fill-color:transparent; white-space:pre; overflow:auto; }
.syntax-editor > textarea::placeholder { color:var(--text-3); -webkit-text-fill-color:var(--text-3); }
.syntax-editor > textarea::selection { background:var(--syntax-selection); }
.syntax-editor + .copy-button.floating { z-index:3; }
.processor-workspace .output-wrap > .syntax-editor { height:100%; }
.processor-workspace .output-wrap > .syntax-editor > textarea { height:100%; }
.syntax-editor .hljs-comment,
.syntax-editor .hljs-quote { color:var(--syntax-comment); font-style:normal; }
.syntax-editor .hljs-keyword,
.syntax-editor .hljs-selector-tag,
.syntax-editor .hljs-literal,
.syntax-editor .hljs-section,
.syntax-editor .hljs-link { color:var(--syntax-keyword); font-weight:500; }
.syntax-editor .hljs-string,
.syntax-editor .hljs-doctag,
.syntax-editor .hljs-regexp,
.syntax-editor .hljs-template-tag { color:var(--syntax-string); }
.syntax-editor .hljs-number,
.syntax-editor .hljs-symbol,
.syntax-editor .hljs-bullet { color:var(--syntax-number); }
.syntax-editor .hljs-title,
.syntax-editor .hljs-title.function_,
.syntax-editor .hljs-title.class_ { color:var(--syntax-title); }
.syntax-editor .hljs-built_in,
.syntax-editor .hljs-type,
.syntax-editor .hljs-name { color:var(--syntax-type); }
.syntax-editor .hljs-attr,
.syntax-editor .hljs-attribute,
.syntax-editor .hljs-selector-attr,
.syntax-editor .hljs-selector-class,
.syntax-editor .hljs-selector-id { color:var(--syntax-attr); }
.syntax-editor .hljs-variable,
.syntax-editor .hljs-template-variable,
.syntax-editor .hljs-property,
.syntax-editor .hljs-params { color:var(--syntax-variable); }
.syntax-editor .hljs-meta,
.syntax-editor .hljs-punctuation { color:var(--syntax-comment); }
.syntax-editor .hljs-addition { color:var(--syntax-string); background:color-mix(in srgb,var(--syntax-string) 9%,transparent); }
.syntax-editor .hljs-deletion { color:var(--danger); background:color-mix(in srgb,var(--danger) 9%,transparent); }
.syntax-editor .hljs-emphasis { font-style:italic; }
.syntax-editor .hljs-strong { font-weight:700; }
/* Highlight.js IntelliJ Light mapping, scoped so the dark scheme is untouched. */
:root:not([data-theme="dark"]) .syntax-editor .hljs-code,
:root:not([data-theme="dark"]) .syntax-editor .hljs-comment,
:root:not([data-theme="dark"]) .syntax-editor .hljs-quote { font-style:italic; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-subst,
:root:not([data-theme="dark"]) .syntax-editor .hljs-title { color:var(--syntax-plain); font-weight:400; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-title.function_ { color:var(--syntax-function); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-keyword,
:root:not([data-theme="dark"]) .syntax-editor .hljs-selector-tag,
:root:not([data-theme="dark"]) .syntax-editor .hljs-literal { font-weight:400; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-section,
:root:not([data-theme="dark"]) .syntax-editor .hljs-property { color:var(--syntax-attr); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-link { color:var(--syntax-link); font-weight:400; text-decoration:underline; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-doctag { color:var(--syntax-plain); text-decoration:underline; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-regexp { color:var(--syntax-regexp); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-template-tag,
:root:not([data-theme="dark"]) .syntax-editor .hljs-symbol,
:root:not([data-theme="dark"]) .syntax-editor .hljs-variable.language_,
:root:not([data-theme="dark"]) .syntax-editor .hljs-selector-attr,
:root:not([data-theme="dark"]) .syntax-editor .hljs-selector-class,
:root:not([data-theme="dark"]) .syntax-editor .hljs-selector-id,
:root:not([data-theme="dark"]) .syntax-editor .hljs-selector-pseudo { color:var(--syntax-keyword); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-bullet,
:root:not([data-theme="dark"]) .syntax-editor .hljs-params,
:root:not([data-theme="dark"]) .syntax-editor .hljs-punctuation { color:var(--syntax-plain); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-attribute { color:var(--syntax-attribute); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-template-variable { color:var(--syntax-template-variable); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-meta { color:var(--syntax-meta); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-meta .hljs-keyword { color:var(--syntax-keyword); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-meta .hljs-string { color:var(--syntax-string); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-char.escape_ { color:var(--syntax-escape); }
:root:not([data-theme="dark"]) .syntax-editor .hljs-addition { color:inherit; background:#bee6be; }
:root:not([data-theme="dark"]) .syntax-editor .hljs-deletion { color:inherit; background:#d6d6d6; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.output-wrap { position: relative; }
.output-wrap textarea { padding-right: 78px; }
.copy-button.floating { position: absolute; right: 9px; top: 9px; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 76px; }
.input-with-action .copy-button { position: absolute; right: 5px; top: 4px; }
.inline-status { min-height: 32px; margin-top: 12px; display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11px; }
.inline-status svg { width: 15px; height: 15px; }
.inline-status.success { color: var(--success); }
.inline-status.error { color: var(--danger); border-bottom: 2px solid rgba(217,75,84,.45); padding: 0 4px; background: linear-gradient(0deg, var(--danger-soft), transparent 72%); }
.inline-status.warning { color: var(--warning); background: var(--warning-soft); padding: 0 9px; border-radius: 6px; }

.json-workspace { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px; }
.json-pane { min-width:0;display:flex;flex-direction:column; }
.pane-label { height:34px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 3px;color:var(--text-2);font-size:11px;font-weight:600; }
.pane-label small { color:var(--text-3);font:9px var(--mono);letter-spacing:.1em; }
#tool-json.active { display:flex;flex-direction:column;flex:1;min-height:0; }
#tool-json .tool-card { flex:1;display:flex;flex-direction:column;min-height:0; }
#tool-json .json-workspace { flex:1;min-height:0;grid-template-rows:minmax(0,1fr); }
#tool-json .json-pane { flex:1;min-height:0; }
#tool-json .json-pane .code-input,
#tool-json .json-tree { flex:1;min-height:180px;height:auto;resize:none; }
#tool-json .json-pane > .syntax-editor { flex:1;min-height:180px; }
#tool-json .json-pane > .syntax-editor > .code-input { height:100%; }
.json-card-placeholder { flex:1;min-height:280px;visibility:hidden;pointer-events:none; }
body.json-fullscreen-active { overflow:hidden; }
.json-fullscreen-backdrop { position:fixed;inset:0;z-index:90;background:rgba(24,24,32,.42);backdrop-filter:blur(3px); }
#jsonToolCard.is-fullscreen { position:fixed;inset:0;z-index:100;width:100vw;height:100vh;height:100dvh;max-width:none;margin:0;border-radius:0;border:0;box-shadow:none;padding:18px 22px 22px;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:var(--surface); }
#jsonToolCard.is-fullscreen .card-toolbar { flex:none; }
#jsonToolCard.is-fullscreen .json-workspace { flex:1;min-height:0;grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr); }
#jsonToolCard.is-fullscreen .json-pane { flex:1;min-height:0; }
#jsonToolCard.is-fullscreen .json-pane > .syntax-editor { flex:1;min-height:0; }
#jsonToolCard.is-fullscreen .json-pane > .syntax-editor > .code-input { min-height:0;height:100%; }
#jsonToolCard.is-fullscreen .json-pane .code-input,
#jsonToolCard.is-fullscreen .json-tree { flex:1;min-height:0;height:auto;resize:none; }
#jsonToolCard.is-fullscreen #jsonFullscreen { color:var(--primary);border-color:#c8ebd9;background:#fff; }
:root[data-theme="dark"] #jsonToolCard.is-fullscreen #jsonFullscreen { border-color:var(--line-strong);background:var(--surface); }
:root[data-theme="dark"] .json-fullscreen-backdrop { background:rgba(0,0,0,.55); }
.json-tree { padding:8px 7px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); font:13px/1.4 var(--mono); overflow:auto; color:var(--text); }
.json-tree .tree-placeholder { display:grid; place-items:center; min-height:100%; color:var(--text-3); font:11px var(--font); }
.json-tree .tree-node { margin:0; }
.json-tree .tree-row { display:flex; align-items:center; gap:0; min-height:22px; padding:1px 5px; margin:0; border-radius:4px; list-style:none; cursor:default; }
.json-tree summary.tree-row { cursor:pointer; }
.json-tree summary.tree-row::-webkit-details-marker { display:none; }
.json-tree summary.tree-row::marker { content:""; }
.json-tree .tree-row:hover { background:rgba(23,80,235,.045); }
.json-tree .tree-toggle { width:13px; height:18px; margin-right:2px; flex:none; display:inline-grid; place-items:center; color:var(--text-3); transition:color .15s; }
.json-tree .tree-toggle:not(.spacer)::before { content:""; width:0; height:0; border-style:solid; border-width:3px 0 3px 5px; border-color:transparent transparent transparent currentColor; transform:rotate(0deg); transition:transform .15s var(--ease); }
.json-tree details[open] > summary .tree-toggle:not(.spacer)::before { transform: rotate(90deg); }
.json-tree summary.tree-row:hover .tree-toggle { color:var(--primary); }
.json-tree .tree-toggle.spacer { visibility:hidden; }
.json-tree .tree-children { margin:0 0 0 6px; padding:0 0 0 9px; border-left:1px solid var(--line); }
.json-tree .tree-empty { padding:1px 5px; color:var(--text-3); font-size:11px; }
.json-tree .key { color:var(--syntax-attr); font-weight:400; }
.json-tree > .tree-node > summary .key { color:var(--text-2); font-weight:600; }
.json-tree .tree-colon { margin:0 4px 0 2px; color:var(--syntax-plain); }
.json-tree .tree-brace { color:var(--syntax-plain); }
.json-tree .tree-collapsed-brace { display:none; }
.json-tree details:not([open]) > summary .tree-collapsed-brace { display:inline; }
.json-tree .tree-closing { min-height:18px; }
.json-tree .tree-meta { margin-left:5px; color:var(--text-3); font:10.5px/1.4 var(--mono); font-weight:400; }
.json-tree .string { color:var(--syntax-string); overflow-wrap:anywhere; }
.json-tree .number { color:var(--syntax-number); }
.json-tree .boolean { color:var(--syntax-keyword); font-weight:400; }
.json-tree .null { color:var(--syntax-keyword); font-style:normal; }

/* High-frequency data utilities. */
.diff-toolbar { align-items:center; }
.diff-toolbar > .button-row:first-child { gap:14px; }
.diff-inputs .code-input { min-height:210px; height:clamp(210px,26vh,310px); resize:vertical; }
.diff-output { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.diff-output-head { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 12px; border-bottom:1px solid var(--line); background:var(--surface); color:var(--text-2); font-size:11px; font-weight:600; }
.diff-stats { display:flex; align-items:center; gap:7px; font:10px var(--mono); }
.diff-stats span { padding:3px 6px; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft); }
.diff-stats .is-added { color:var(--success); background:var(--success-soft); }
.diff-stats .is-removed { color:var(--danger); background:var(--danger-soft); }
.diff-stats .is-unchanged { color:var(--text-3); }
.diff-scroll { max-height:420px; overflow:auto; }
.diff-grid { min-width:720px; display:grid; grid-template-columns:44px minmax(300px,1fr) 44px minmax(300px,1fr); align-items:stretch; font:11px/1.55 var(--mono); }
.diff-grid > * { min-height:28px; border-bottom:1px solid var(--line); }
.diff-line-no { display:flex; align-items:flex-start; justify-content:flex-end; padding:5px 7px 4px 4px; border-right:1px solid var(--line); color:var(--text-3); background:var(--surface); user-select:none; }
.diff-line { min-width:0; display:flex; gap:7px; padding:5px 9px 4px 7px; overflow:hidden; color:var(--text-2); background:var(--surface); white-space:pre; }
.diff-line > i { width:9px; flex:none; color:var(--text-3); font-style:normal; user-select:none; }
.diff-line > span { min-width:max-content; }
.diff-line.is-added, .diff-line-no.is-added { background:var(--success-soft); }
.diff-line.is-added > i { color:var(--success); }
.diff-line.is-removed, .diff-line-no.is-removed { background:var(--danger-soft); }
.diff-line.is-removed > i { color:var(--danger); }
.diff-line.is-empty { background:color-mix(in srgb,var(--surface-soft) 58%,transparent); }
.diff-empty { grid-column:1 / -1; min-height:120px; display:grid; place-items:center; color:var(--text-3); font:11px var(--font); }

.yaml-workspace .processor-code,
.jsonpath-workspace .processor-code { min-height:360px; height:clamp(360px,48vh,560px); }
.jsonpath-querybar { display:flex; align-items:flex-end; gap:12px; }
.jsonpath-querybar .button { flex:none; height:40px; }
.jsonpath-workspace .field > span { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.jsonpath-workspace .field > span small { color:var(--primary); font:10px var(--mono); }
.query-presets { display:flex; align-items:center; gap:7px; margin:12px 0 16px; overflow-x:auto; scrollbar-width:none; }
.query-presets::-webkit-scrollbar { display:none; }
.query-presets button { min-height:28px; flex:none; padding:0 9px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--text-2); font:10px var(--mono); transition:.16s var(--ease); }
.query-presets button:hover { border-color:#c6ebd8; background:var(--primary-soft); color:var(--primary); transform:translateY(-1px); }

.uuid-controls { display:flex; align-items:flex-end; gap:18px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.uuid-controls .field.small { flex:0 0 90px; }
.uuid-controls .compact-toggle { margin-bottom:4px; }
.uuid-result-head { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--text-3); font:10px var(--mono); }
.uuid-output { min-height:260px; height:clamp(260px,38vh,420px); resize:vertical; line-height:1.85; }

.qr-read-drop { min-height:260px; }
.qr-read-workspace { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:18px; }
.qr-read-preview, .qr-read-result { min-width:0; display:flex; flex-direction:column; }
.qr-read-stage { min-height:360px; height:clamp(360px,48vh,560px); display:grid; place-items:center; overflow:auto; padding:16px; border:1px solid var(--line); border-radius:var(--radius-md); background-color:#f3f4f5; background-image:repeating-conic-gradient(#e5e7e8 0% 25%,#fafafa 0% 50%); background-position:50%; background-size:14px 14px; }
.qr-read-stage canvas { display:block; width:auto; height:auto; max-width:100%; max-height:100%; background:#fff; box-shadow:0 8px 28px rgba(29,31,38,.16); image-rendering:auto; }
.qr-read-result .output-wrap { flex:1; display:flex; }
.qr-read-result .code-input { min-height:360px; height:clamp(360px,48vh,560px); flex:1; resize:none; }
.qr-read-actions { min-height:46px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.qr-read-actions > span { margin-left:auto; color:var(--text-3); font:10px var(--mono); }

.color-input-row { display:flex; align-items:flex-end; gap:12px; margin-bottom:18px; }
.color-picker-button { position:relative; width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); cursor:pointer; }
.color-picker-button input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.color-picker-button > span { position:absolute; inset:5px; border-radius:6px; background:#2aaa74; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.color-picker-button svg { position:relative; z-index:1; width:18px; height:18px; padding:3px; border-radius:5px; background:rgba(255,255,255,.9); color:#222; box-sizing:content-box; pointer-events:none; }
.color-input-row .button { height:40px; flex:none; }
.color-workspace { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr); gap:16px; }
.color-preview { min-height:286px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:#2aaa74; transition:background-color .18s,color .18s; }
.color-preview > div { display:flex; flex-direction:column; align-items:center; gap:3px; }
.color-preview strong { font:700 32px var(--mono); letter-spacing:0; }
.color-preview span { opacity:.72; font:10px var(--mono); text-transform:uppercase; letter-spacing:.12em; }
.color-values { min-width:0; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden; }
.color-value { min-height:57px; display:grid; grid-template-columns:62px minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 10px 8px 14px; background:var(--surface); border-bottom:1px solid var(--line); }
.color-value:last-child { border-bottom:0; }
.color-value > span { color:var(--text-3); font:600 10px var(--mono); }
.color-value code { min-width:0; overflow:hidden; color:var(--text); font-size:11px; white-space:nowrap; text-overflow:ellipsis; }
.contrast-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.contrast-sample { min-height:82px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:center; gap:4px 10px; padding:13px 15px; border:1px solid var(--line); border-radius:var(--radius-md); transition:color .18s; }
.contrast-sample.is-light { background:#fff; }
.contrast-sample.is-dark { background:#111216; }
.contrast-sample > span { font-size:11px; font-weight:600; }
.contrast-sample > strong { grid-row:1 / 3; grid-column:2; font:700 18px var(--mono); }
.contrast-sample > small { font:9px var(--mono); opacity:.72; text-transform:uppercase; }

/* Markdown writing workbench. */
#tool-markdown.active { display:flex; flex-direction:column; flex:1; min-height:0; }
.tool-card.markdown-card { padding:0; overflow:hidden; }
.markdown-main-toolbar { min-height:64px; margin:0; padding:13px 16px; border-bottom:1px solid var(--line); }
.markdown-file-meta { min-width:0; display:flex; align-items:center; gap:10px; }
.markdown-file-meta small { padding-left:10px; border-left:1px solid var(--line); color:var(--text-3); font-size:10px; white-space:nowrap; }
.markdown-file-meta small.is-error { color:var(--danger); }
.markdown-formatbar { height:45px; flex:none; display:flex; align-items:center; gap:3px; padding:6px 12px; overflow-x:auto; border-bottom:1px solid var(--line); background:var(--surface-soft); scrollbar-width:none; }
.markdown-formatbar::-webkit-scrollbar { display:none; }
.markdown-formatbar button { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--text-2); transition:color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.markdown-formatbar button:hover { color:var(--primary); border-color:var(--line); background:var(--surface); transform:translateY(-1px); }
.markdown-formatbar button:focus-visible { outline:3px solid rgba(42,170,116,.17); outline-offset:0; }
.markdown-formatbar button svg { width:16px; height:16px; }
.markdown-format-divider { width:1px; height:18px; flex:0 0 1px; margin:0 4px; background:var(--line-strong); }
.markdown-workspace { min-height:520px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr); background:var(--surface); }
.markdown-pane { min-width:0; min-height:0; display:flex; flex-direction:column; }
.markdown-pane .pane-label { height:38px; flex:none; padding:0 16px; border-bottom:1px solid var(--line); background:var(--surface); }
.markdown-editor-pane { border-right:1px solid var(--line); }
.markdown-editor,
.markdown-preview { width:100%; min-height:480px; height:clamp(480px,58vh,680px); flex:1; margin:0; border:0; border-radius:0; }
.markdown-editor { resize:none; padding:24px; background:#fafafa; color:#303039; font:13px/1.75 var(--mono); tab-size:2; caret-color:var(--primary); }
.markdown-editor:focus { border:0; background:#fff; box-shadow:inset 0 0 0 2px rgba(42,170,116,.14); }
.markdown-preview { overflow:auto; padding:28px clamp(24px,3.2vw,52px) 60px; background:var(--surface); color:var(--text); font-size:15px; line-height:1.78; overflow-wrap:anywhere; scroll-behavior:smooth; }
.markdown-preview:focus { outline:none; }
.markdown-preview > :first-child { margin-top:0; }
.markdown-preview > :last-child { margin-bottom:0; }
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4 { margin:1.6em 0 .65em; color:var(--text); font-weight:680; line-height:1.3; letter-spacing:0; }
.markdown-preview h1 { margin-top:0; padding-bottom:.42em; border-bottom:1px solid var(--line); font-size:28px; }
.markdown-preview h2 { padding-bottom:.32em; border-bottom:1px solid var(--line); font-size:22px; }
.markdown-preview h3 { font-size:18px; }
.markdown-preview h4 { font-size:15px; }
.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol,
.markdown-preview blockquote,
.markdown-preview pre,
.markdown-preview table { margin:0 0 1.15em; }
.markdown-preview ul,
.markdown-preview ol { padding-left:1.65em; }
.markdown-preview li + li { margin-top:.28em; }
.markdown-preview a { color:var(--cyan); text-decoration-thickness:1px; text-underline-offset:3px; }
.markdown-preview a:hover { color:var(--primary); }
.markdown-preview strong { font-weight:700; }
.markdown-preview blockquote { padding:2px 0 2px 16px; border-left:3px solid var(--primary); color:var(--text-2); }
.markdown-preview blockquote > :last-child { margin-bottom:0; }
.markdown-preview code { padding:.15em .38em; border:1px solid var(--line); border-radius:5px; background:var(--surface-soft); color:#b14457; font-size:.88em; }
.markdown-preview pre { overflow:auto; padding:17px 18px; border:1px solid #2d2e35; border-radius:var(--radius-md); background:#202127; color:#e9e9ee; font:12.5px/1.65 var(--mono); }
.markdown-preview pre code { padding:0; border:0; background:transparent; color:inherit; font-size:inherit; }
.markdown-preview .hljs-comment,
.markdown-preview .hljs-quote { color:#828897; font-style:italic; }
.markdown-preview .hljs-keyword,
.markdown-preview .hljs-selector-tag,
.markdown-preview .hljs-literal,
.markdown-preview .hljs-section { color:#ff7b98; }
.markdown-preview .hljs-string,
.markdown-preview .hljs-doctag,
.markdown-preview .hljs-regexp,
.markdown-preview .hljs-attribute { color:#a9dc76; }
.markdown-preview .hljs-title,
.markdown-preview .hljs-title.function_,
.markdown-preview .hljs-title.class_ { color:#ffd37a; }
.markdown-preview .hljs-number,
.markdown-preview .hljs-symbol,
.markdown-preview .hljs-bullet { color:#ab9df2; }
.markdown-preview .hljs-variable,
.markdown-preview .hljs-template-variable,
.markdown-preview .hljs-built_in,
.markdown-preview .hljs-type { color:#78dce8; }
.markdown-preview .hljs-meta,
.markdown-preview .hljs-params,
.markdown-preview .hljs-property { color:#c7c9d1; }
.markdown-preview .hljs-attr,
.markdown-preview .hljs-selector-attr,
.markdown-preview .hljs-selector-class,
.markdown-preview .hljs-selector-id { color:#ffb86c; }
.markdown-preview .hljs-addition { color:#a9dc76; background:rgba(169,220,118,.09); }
.markdown-preview .hljs-deletion { color:#ff7b98; background:rgba(255,123,152,.09); }
.markdown-preview .hljs-emphasis { font-style:italic; }
.markdown-preview .hljs-strong { font-weight:700; }
.markdown-preview table { width:100%; display:block; overflow:auto; border-spacing:0; border-collapse:collapse; font-size:13px; }
.markdown-preview th,
.markdown-preview td { min-width:110px; padding:9px 11px; border:1px solid var(--line-strong); text-align:left; }
.markdown-preview th { background:var(--surface-soft); font-weight:650; }
.markdown-preview tr:nth-child(even) td { background:color-mix(in srgb,var(--surface-soft) 58%,transparent); }
.markdown-preview hr { height:1px; margin:2em 0; border:0; background:var(--line-strong); }
.markdown-preview img { display:block; max-width:100%; height:auto; margin:1.3em auto; border-radius:var(--radius-sm); }
.markdown-preview .contains-task-list { padding-left:0; list-style:none; }
.markdown-preview .task-list-item { list-style:none; }
.markdown-preview input[type="checkbox"] { width:15px; height:15px; margin:0 7px 0 0; padding:0; border:1px solid var(--line-strong); box-shadow:none; vertical-align:-2px; accent-color:var(--primary); }
.markdown-placeholder { min-height:100%; display:flex; align-items:center; justify-content:center; gap:9px; color:var(--text-3); font-size:11px; }
.markdown-placeholder.error { color:var(--danger); }
.markdown-loading-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 5px rgba(42,170,116,.11); animation:markdown-pulse 1.15s ease-in-out infinite alternate; }
@keyframes markdown-pulse { to { opacity:.38; transform:scale(.78); } }
.markdown-card-placeholder { flex:1; min-height:360px; visibility:hidden; pointer-events:none; }
body.markdown-fullscreen-active { overflow:hidden; }
#markdownToolCard.is-fullscreen { position:fixed; inset:0; z-index:110; width:100vw; height:100vh; max-width:none; display:flex; flex-direction:column; min-height:0; margin:0; padding:0; overflow:hidden; border:0; border-radius:0; background:var(--surface); box-shadow:none; }
#markdownToolCard.is-fullscreen .markdown-main-toolbar,
#markdownToolCard.is-fullscreen .markdown-formatbar { flex:none; }
#markdownToolCard.is-fullscreen .markdown-workspace { flex:1; min-height:0; }
#markdownToolCard.is-fullscreen .markdown-pane { min-height:0; }
#markdownToolCard.is-fullscreen .markdown-editor,
#markdownToolCard.is-fullscreen .markdown-preview { min-height:0; height:auto; }
#markdownToolCard.is-fullscreen #markdownStatus:not(.hidden) { flex:none; min-height:38px; margin:0; padding:0 16px; border-top:1px solid var(--line); }
#markdownToolCard.is-fullscreen .icon-button[aria-pressed="true"] { color:var(--primary); border-color:#c8ebd9; background:var(--primary-soft); }
#markdownToolCard.preview-only .markdown-formatbar,
#markdownToolCard.preview-only .markdown-editor-pane { display:none; }
#markdownToolCard.preview-only .markdown-workspace { grid-template-columns:minmax(0,1fr); background:var(--surface-soft); }
#markdownToolCard.preview-only .markdown-preview-pane { overflow:hidden; }
#markdownToolCard.preview-only .markdown-preview { width:min(100%,980px); align-self:center; border-right:1px solid var(--line); border-left:1px solid var(--line); }
.workbench-title,
.setting-heading { min-width:0; display:flex; align-items:center; gap:10px; }
.workbench-title > div,
.setting-heading > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.workbench-title strong,
.setting-heading strong { font-size:12px; font-weight:650; }
.workbench-title small,
.setting-heading small { color:var(--text-3); font:9px var(--mono); }
.workbench-icon { width:34px; height:34px; display:grid; place-items:center; flex:none; border:1px solid rgba(42,170,116,.2); border-radius:7px; background:var(--primary-soft); color:var(--primary); }
.workbench-icon.is-amber { border-color:rgba(195,122,11,.22); background:var(--warning-soft); color:var(--warning); }
.workbench-icon svg { width:16px; height:16px; }

/* Cron schedule workbench. */
.tool-card.cron-card { padding:0; overflow:hidden; border-radius:var(--radius-md); }
.cron-compose-head { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 18px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.cron-presets { min-width:0; display:flex; align-items:center; gap:6px; overflow-x:auto; scrollbar-width:none; }
.cron-presets::-webkit-scrollbar { display:none; }
.cron-presets button { height:30px; flex:none; padding:0 9px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--text-2); font-size:10px; font-weight:600; transition:color .16s var(--ease),border-color .16s var(--ease),background .16s var(--ease),transform .16s var(--ease); }
.cron-presets button:hover { color:var(--primary-dark); border-color:#bfe5d2; background:var(--primary-soft); transform:translateY(-1px); }
.cron-presets button.active { color:var(--primary-dark); border-color:#bfe5d2; background:var(--primary-soft); box-shadow:inset 0 0 0 1px rgba(42,170,116,.06); }
.cron-composer { display:grid; grid-template-columns:minmax(0,1fr) 104px auto; align-items:end; gap:12px; padding:18px 18px 14px; }
.cron-expression-field > span,
.cron-count-field > span { color:var(--text-2); font-size:10px; font-weight:650; }
.cron-input-shell { height:52px; display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); transition:border-color .18s var(--ease),box-shadow .18s var(--ease); }
.cron-input-shell:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.09); }
.cron-input-shell > svg { width:16px; height:16px; justify-self:center; color:var(--primary); }
.cron-input-shell input { height:50px; min-width:0; padding:0 12px 0 0; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:15px; font-weight:650; }
.cron-input-shell input:focus { border:0; background:transparent; box-shadow:none; }
.cron-count-field input { height:52px; padding-inline:9px; background:var(--surface); font:650 14px var(--mono); text-align:center; }
.cron-run { height:52px; padding-inline:18px; }
.cron-field-map { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0 18px 18px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.cron-field-map > span { min-width:0; min-height:62px; display:flex; flex-direction:column; justify-content:center; gap:7px; padding:10px 13px; border-left:1px solid var(--line); }
.cron-field-map > span:first-child { border-left:0; }
.cron-field-map code { overflow:hidden; color:var(--text); font:650 13px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.cron-field-map small { color:var(--text-3); font:9px var(--mono); white-space:nowrap; }
.cron-output-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:9px 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); }
.cron-output-head > div:first-child { display:flex; flex-direction:column; gap:3px; }
.cron-output-head > div:first-child strong { font-size:12px; }
.cron-output-head > div:first-child small { color:var(--text-3); font:9px var(--mono); }
.cron-output-head .inline-status { min-height:30px; margin:0; }
.result-list.cron-result-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:16px 18px 20px; background:var(--surface-soft); }
.result-item { min-width:0; min-height:68px; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:11px; padding:10px 13px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); transition:border-color .16s var(--ease),transform .16s var(--ease),box-shadow .16s var(--ease); }
.result-item:hover { border-color:#c9e8d9; transform:translateY(-1px); box-shadow:0 5px 15px rgba(31,31,38,.055); }
.result-item > span { width:28px; height:28px; display:grid; place-items:center; border-radius:6px; color:var(--primary); background:var(--primary-soft); font:650 9px var(--mono); }
.result-item > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.result-item strong { overflow:hidden; font:650 12px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.result-item small { color:var(--text-3); font-size:10px; }
.result-item time { color:var(--text); font:700 17px var(--mono); font-variant-numeric:tabular-nums; }
.cron-empty { grid-column:1 / -1; min-height:142px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--text-3); font-size:11px; }
.cron-empty svg { width:24px; height:24px; color:var(--line-strong); }
.unit-switch { width:max-content; margin:0; }
.unit-switch label { position:relative; min-width:0; cursor:pointer; }
.unit-switch label input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.unit-switch label span { height:var(--segment-height); display:flex; align-items:center; justify-content:center; padding:0 11px; border:1px solid transparent; border-radius:6px; color:var(--text-2); font-size:11px; font-weight:500; line-height:1; white-space:nowrap; transition:color .16s var(--ease),background .16s var(--ease),border-color .16s var(--ease),box-shadow .16s var(--ease); }
.unit-switch label:hover span { color:var(--text); background:var(--surface-hover); }
.unit-switch input:checked + span { color:var(--primary-dark); border-color:var(--line-strong); background:var(--surface); box-shadow:0 1px 3px rgba(30,30,40,.09); font-weight:600; }
.unit-switch input:focus-visible + span { outline:3px solid rgba(42,170,116,.17); outline-offset:1px; }
.section-divider { display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:var(--text-2);font-size:11px;font-weight:600; }.section-divider::after { content:"";height:1px;flex:1;background:var(--line); }
.tool-card.timestamp-card { padding:0; overflow:hidden; border-radius:var(--radius-md); }
.timestamp-entry { padding:18px 20px 20px; background:var(--surface-soft); }
.timestamp-section-heading { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.timestamp-section-title { min-width:0; display:flex; align-items:center; gap:10px; }
.timestamp-section-title > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.timestamp-section-title strong { font-size:12px; font-weight:650; }
.timestamp-section-title small { color:var(--text-3); font:9px var(--mono); }
.timestamp-section-icon { width:32px; height:32px; display:grid; place-items:center; flex:none; border:1px solid rgba(42,170,116,.2); border-radius:7px; background:var(--primary-soft); color:var(--primary); }
.timestamp-section-icon.is-cyan { border-color:rgba(22,141,163,.2); background:rgba(22,141,163,.08); color:var(--cyan); }
.timestamp-section-icon svg { width:16px; height:16px; }
.timestamp-now { flex:none; }
.timestamp-entry-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:16px; margin-top:15px; }
.timestamp-input-field > span,.timestamp-unit-field > span { color:var(--text-2); font-size:10px; font-weight:600; }
.timestamp-input-shell { height:48px; display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); transition:border-color .18s var(--ease),box-shadow .18s var(--ease); }
.timestamp-input-shell:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.09); }
.timestamp-input-shell > svg { width:15px; height:15px; justify-self:center; color:var(--primary); }
.timestamp-input-shell input { height:46px; min-width:0; padding:0 6px 0 0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--text); font:600 15px var(--mono); font-variant-numeric:tabular-nums; }
.timestamp-input-shell input:focus { border:0; background:transparent; box-shadow:none; }
.timestamp-input-shell .copy-button { margin-right:6px; background:var(--surface-soft); }
.timestamp-unit-field { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.timestamp-unit-field .unit-switch { grid-auto-columns:minmax(42px,auto); }
.timestamp-readout { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) minmax(0,1.08fr) minmax(0,.72fr) minmax(0,.82fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); }
.timestamp-readout-item { min-width:0; min-height:100px; display:flex; flex-direction:column; justify-content:center; gap:11px; padding:16px 18px; border-left:1px solid var(--line); }
.timestamp-readout-item:first-child { border-left:0; }
.timestamp-readout-label { min-width:0; display:flex; align-items:center; gap:6px; color:var(--text-2); }
.timestamp-readout-label svg { width:14px; height:14px; color:var(--primary); }
.timestamp-readout-label span { font-size:10px; font-weight:650; }
.timestamp-readout-label small { margin-left:auto; color:var(--text-3); font:8px var(--mono); }
.timestamp-readout-item > strong,.timestamp-time-value-line > strong { min-width:0; overflow-wrap:anywhere; color:var(--text); font:600 15px/1.45 var(--mono); font-variant-numeric:tabular-nums; }
.timestamp-readout-formatted .timestamp-time-value-line > strong { color:var(--text); font-size:13px; white-space:nowrap; }
.timestamp-readout-utc .timestamp-time-value-line > strong { color:var(--text-2); font-size:10px; white-space:nowrap; }
.timestamp-readout-seconds .timestamp-readout-label svg,.timestamp-readout-millis .timestamp-readout-label svg { color:var(--cyan); }
.timestamp-value-line { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) 30px; align-items:center; gap:7px; }
.timestamp-value-line code { min-width:0; overflow:hidden; color:var(--text); font:600 13px var(--mono); font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.timestamp-time-value-line > strong { overflow:hidden; text-overflow:ellipsis; }
.timestamp-value-copy { width:30px; height:28px; justify-content:center; padding:0; }
.timestamp-value-copy span { display:none; }
.timestamp-builder { background:var(--surface); }
.timestamp-builder-head { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 20px; border-bottom:1px solid var(--line); }
.timestamp-zone { display:inline-flex; align-items:center; gap:6px; color:var(--text-3); font-size:9px; font-weight:600; white-space:nowrap; }
.timestamp-zone svg { width:13px; height:13px; color:var(--cyan); }
.timestamp-builder-workspace { display:grid; grid-template-columns:minmax(540px,1fr) minmax(310px,360px); }
.timestamp-composer { min-width:0; display:flex; align-items:center; padding:20px; }
.timestamp-parts { min-width:0; display:flex; align-items:flex-start; gap:28px; }
.timestamp-part-group { min-width:0; }
.timestamp-time-group { padding-left:28px; border-left:1px solid var(--line); }
.timestamp-part-caption { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:10px; }
.timestamp-part-caption > span { display:flex; align-items:center; gap:6px; color:var(--text-2); font-size:10px; font-weight:650; }
.timestamp-part-caption svg { width:13px; height:13px; color:var(--primary); }
.timestamp-time-group .timestamp-part-caption svg { color:var(--cyan); }
.timestamp-part-caption small { color:var(--text-3); font:8px var(--mono); white-space:nowrap; }
.timestamp-part-fields { display:grid; grid-template-columns:94px 15px 68px 15px 68px; align-items:center; }
.timestamp-time-fields { grid-template-columns:68px 15px 68px 15px 68px; }
.timestamp-part-fields label { position:relative; min-width:0; }
.timestamp-part-fields label > span { position:absolute; right:9px; top:50%; z-index:1; transform:translateY(-50%); color:var(--text-3); font-size:9px; font-weight:600; pointer-events:none; transition:color .16s var(--ease); }
.timestamp-part-fields label:focus-within > span { color:var(--primary); }
.timestamp-part-fields input { width:100%; min-width:0; height:42px; padding:0 27px 0 10px; border-color:var(--line-strong); background:var(--surface-soft); font:600 12px var(--mono); font-variant-numeric:tabular-nums; }
.timestamp-part-fields input[type="number"] { appearance:textfield; }
.timestamp-part-fields input[type="number"]::-webkit-inner-spin-button,
.timestamp-part-fields input[type="number"]::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.timestamp-part-fields input:hover { border-color:#cfd0d8; background:var(--surface); }
.timestamp-part-fields input:focus { background:var(--surface); }
.timestamp-part-fields > b { color:var(--text-3); font:500 14px var(--mono); text-align:center; }
.timestamp-derived { min-width:0; display:flex; flex-direction:column; border-left:1px solid var(--line); background:var(--surface-soft); }
.timestamp-derived-head { min-height:35px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 13px; border-bottom:1px solid var(--line); color:var(--text-2); }
.timestamp-derived-head span { font-size:10px; font-weight:650; }
.timestamp-derived-head small { color:var(--text-3); font:8px var(--mono); }
.timestamp-derived-row { min-width:0; min-height:59px; display:grid; grid-template-columns:112px minmax(0,1fr) 30px; align-items:center; gap:9px; padding:8px 10px 8px 13px; border-top:1px solid var(--line); }
.timestamp-derived-head + .timestamp-derived-row { border-top:0; }
.timestamp-derived-label { min-width:0; display:flex; align-items:center; gap:8px; color:var(--text-2); }
.timestamp-derived-label > svg { width:14px; height:14px; flex:none; color:var(--primary); }
.timestamp-derived-label > span { min-width:0; display:flex; flex-direction:column-reverse; gap:3px; font-size:10px; font-weight:600; }
.timestamp-derived-label small { color:var(--text-3); font:8px var(--mono); }
.timestamp-derived code { min-width:0; overflow:hidden; color:var(--text); font:600 12px var(--mono); font-variant-numeric:tabular-nums; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.timestamp-derived .copy-button { width:30px; height:28px; justify-content:center; padding:0; }
.timestamp-derived .copy-button span { display:none; }
.timestamp-utc-builder { border-top:1px solid var(--line); }
.timestamp-utc-input-field { width:100%; }
.timestamp-utc-input-field > span { color:var(--text-2); font-size:10px; font-weight:600; }
.timestamp-utc-input-field .timestamp-input-shell input { font-size:13px; }
.timestamp-utc-composer { width:100%; }
.timestamp-status { min-height:52px; margin:0; padding:0 20px; border-top:1px solid var(--line); border-radius:0; }
@media (max-width:1000px) {
  .timestamp-readout { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .timestamp-readout-local,.timestamp-readout-formatted,.timestamp-readout-utc { grid-column:span 2; }
  .timestamp-readout-seconds,.timestamp-readout-millis { grid-column:span 3; border-top:1px solid var(--line); }
  .timestamp-readout-seconds { border-left:0; }
  .timestamp-builder-workspace { grid-template-columns:minmax(0,1fr); }
  .timestamp-derived { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-top:1px solid var(--line); border-left:0; }
  .timestamp-derived-head { grid-column:1 / -1; }
  .timestamp-derived-row + .timestamp-derived-row { border-left:1px solid var(--line); }
}
@media (max-width:640px) {
  .timestamp-entry { padding:14px; }
  .timestamp-section-heading { gap:10px; }
  .timestamp-now { height:32px; padding-inline:9px; font-size:10px; }
  .timestamp-entry-controls { grid-template-columns:minmax(0,1fr); gap:12px; }
  .timestamp-unit-field,.timestamp-unit-field .unit-switch { width:100%; }
  .timestamp-unit-field .unit-switch { grid-auto-columns:1fr; }
  .timestamp-readout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .timestamp-readout-local,.timestamp-readout-formatted,.timestamp-readout-utc { grid-column:1 / -1; }
  .timestamp-readout-formatted,.timestamp-readout-utc { border-top:1px solid var(--line); border-left:0; }
  .timestamp-readout-seconds,.timestamp-readout-millis { grid-column:auto; }
  .timestamp-readout-item { min-height:82px; padding:13px 14px; }
  .timestamp-readout-seconds,.timestamp-readout-millis { min-height:78px; }
  .timestamp-builder-head { min-height:58px; padding:12px 14px; }
  .timestamp-zone { width:28px; height:28px; justify-content:center; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-soft); font-size:0; }
  .timestamp-zone svg { width:14px; height:14px; }
  .timestamp-composer { padding:16px 14px 18px; }
  .timestamp-parts { width:100%; display:grid; grid-template-columns:minmax(0,1fr); gap:17px; }
  .timestamp-time-group { padding:16px 0 0; border-top:1px solid var(--line); border-left:0; }
  .timestamp-derived { grid-template-columns:minmax(0,1fr); }
  .timestamp-derived-head { grid-column:auto; }
  .timestamp-derived-row { grid-template-columns:110px minmax(0,1fr) 30px; }
  .timestamp-derived-row + .timestamp-derived-row { border-left:0; }
  .timestamp-status { padding-inline:14px; }
}

/* Password generator console. */
.tool-card.password-card { padding:0; overflow:hidden; border-radius:var(--radius-md); }
.password-stage { padding:18px 20px 19px; background-color:#20262a; background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px); background-size:22px 22px; color:#f2f5f4; }
.password-stage-head { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.password-stage-head > div:first-child { display:flex; align-items:center; gap:8px; color:#96a39e; font:650 9px var(--mono); }
.password-live-dot { width:7px; height:7px; border-radius:50%; background:#56d79a; box-shadow:0 0 0 4px rgba(86,215,154,.12); }
.password-actions { display:flex; align-items:center; gap:7px; }
.password-stage .password-regenerate,
.password-stage .password-copy { height:34px; color:#d8dfdc; border:1px solid rgba(255,255,255,.11); background:rgba(255,255,255,.055); box-shadow:none; }
.password-stage .password-regenerate:hover,
.password-stage .password-copy:hover { color:#fff; border-color:rgba(86,215,154,.45); background:rgba(86,215,154,.1); box-shadow:none; }
.password-output { min-height:108px; display:flex; align-items:center; padding:18px 0 14px; }
.password-output code { width:100%; color:#a9eacb; font:650 26px/1.5 var(--mono); overflow-wrap:anywhere; word-break:break-all; }
.strength { margin:0; }
.strength > div:first-child { display:flex; align-items:center; justify-content:space-between; color:#aeb8b4; font-size:10px; }
.strength > div strong { color:#74dda9; font-size:10px; }
.strength-track { height:5px; margin:8px 0 7px; overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:2px; background:rgba(255,255,255,.07); }
.strength-track i { display:block; width:75%; height:100%; border-radius:1px; background:var(--primary); transition:width .25s var(--ease),background .25s var(--ease); }
.strength small { color:#7f8d87; font:9px var(--mono); }
.password-settings { display:grid; grid-template-columns:minmax(270px,.78fr) minmax(0,1.22fr); }
.password-length-panel,
.password-charset-panel { min-width:0; padding:22px; }
.password-charset-panel { border-left:1px solid var(--line); }
.password-length-value { display:flex; align-items:baseline; gap:7px; margin:24px 0 14px; }
.password-length-value output { color:var(--text); font:700 40px/1 var(--mono); font-variant-numeric:tabular-nums; }
.password-length-value span { color:var(--text-3); font-size:10px; }
.password-range input[type="range"] { margin:0; }
.range-ticks { display:flex; justify-content:space-between; margin-top:7px; color:var(--text-3); font:8px var(--mono); }
.password-charset-panel .check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:18px; }
.checkbox-option { position:relative; min-height:62px; display:flex; align-items:center; gap:10px; padding:10px 11px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); cursor:pointer; transition:border-color .18s var(--ease),background .18s var(--ease),transform .18s var(--ease); }
.checkbox-option:hover { border-color:#c6ebd8; background:var(--primary-soft); transform:translateY(-1px); }
.checkbox-option:has(input:checked) { border-color:#cce9da; background:color-mix(in srgb,var(--primary-soft) 72%,var(--surface)); }
.checkbox-option > input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.checkbox-mark { width:19px; height:19px; display:grid; place-items:center; flex:none; border:1.5px solid #b9b9c3; border-radius:5px; background:#fff; transition:.18s; }
.checkbox-mark svg { width:13px; height:13px; color:#fff; opacity:0; transform:scale(.6); transition:.18s; }
.checkbox-option input:focus-visible + .checkbox-mark { outline:3px solid rgba(42,170,116,.17); outline-offset:2px; }
.checkbox-option input:checked + .checkbox-mark { border-color:var(--primary); background:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.1); }
.checkbox-option input:checked + .checkbox-mark svg { opacity:1; transform:scale(1); }
.checkbox-option > span:last-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.checkbox-option b { font-size:11px; }
.checkbox-option small { color:var(--text-3); font:10px var(--mono); }
.conversion-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:18px; }.conversion-item, .hash-item { min-width:0; padding:12px; display:grid; grid-template-columns:74px 1fr auto; align-items:center; gap:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }.conversion-item span, .hash-item > span { color:var(--text-3); font:10px var(--mono); }.conversion-item code, .hash-item code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.qr-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; }.qr-preview { min-height:340px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; border-left:1px solid var(--line); position:relative; }.qr-preview #qrCanvas canvas,.qr-preview #qrCanvas img { display:block;max-width:100%;height:auto!important;padding:12px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px rgba(32,32,40,.09);border-radius:8px; }.qr-preview small { color:var(--text-3); font:9px var(--mono); letter-spacing:.15em; }.skeleton { position:absolute;z-index:2;width:256px;height:256px;max-width:80%;border-radius:8px;background:linear-gradient(90deg,#f1f1f4 25%,#fafafa 50%,#f1f1f4 75%);background-size:200% 100%;animation:shimmer 1.2s infinite; }.skeleton-line { height:48px; margin-top:8px; border-radius:8px; background:linear-gradient(90deg,#f3f3f5 25%,#fafafa 50%,#f3f3f5 75%); background-size:200% 100%; animation:shimmer 1.2s infinite; } @keyframes shimmer { to { background-position:-200% 0; } }
.tool-card.regex-card {
  --regex-console:#f2f4f5;
  --regex-console-deep:#ffffff;
  --regex-console-line:#d8dce2;
  --regex-console-text:#292b33;
  --regex-console-muted:#747985;
  --regex-console-accent:#239d6b;
  --regex-console-flag:#e9ba5b;
  --regex-console-placeholder:#a1a5ae;
  --regex-console-hover:#aab0ba;
  padding:0;
  overflow:hidden;
  border-radius:var(--radius-md);
}
:root[data-theme="dark"] .tool-card.regex-card {
  --regex-console:#22242b;
  --regex-console-deep:#181a1f;
  --regex-console-line:#3a3d47;
  --regex-console-text:#f2f4f7;
  --regex-console-muted:#969ca9;
  --regex-console-accent:#61dda7;
  --regex-console-flag:#f1c66f;
  --regex-console-placeholder:#747a87;
  --regex-console-hover:#777e8e;
}
.regex-toolbar { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 17px; border-bottom:1px solid var(--line); background:var(--surface); }
.regex-toolbar-title { min-width:0; display:flex; align-items:center; gap:10px; }
.regex-tool-icon { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); color:var(--primary); }
.regex-tool-icon svg { width:16px; height:16px; }
.regex-toolbar-title > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.regex-toolbar-title strong { font-size:12px; font-weight:650; }
.regex-toolbar-title small { color:var(--text-3); font:9px var(--mono); }
.regex-preset { width:154px; height:34px; display:flex; align-items:center; gap:6px; padding-left:9px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); color:var(--text-3); }
.regex-preset svg { width:14px; height:14px; }
.regex-preset select { min-width:0; height:32px; padding:0 8px 0 0; border:0; border-radius:0; background:transparent; color:var(--text-2); font-size:11px; box-shadow:none; }
.regex-preset select:focus { border:0; background:transparent; box-shadow:none; }
.regex-pattern-stage { padding:17px; background:var(--regex-console); color:var(--regex-console-text); }
.regex-composer { min-height:62px; display:grid; grid-template-columns:30px minmax(0,1fr) 30px auto; align-items:center; overflow:hidden; border:1px solid var(--regex-console-line); border-radius:7px; background:var(--regex-console-deep); box-shadow:none; transition:border-color .18s var(--ease),box-shadow .18s var(--ease); }
.regex-composer:focus-within { border-color:var(--regex-console-accent); box-shadow:0 0 0 2px rgba(42,170,116,.07); }
.regex-card.has-error .regex-composer { border-color:#ef737c; box-shadow:0 0 0 2px rgba(239,115,124,.07); }
.regex-delimiter { color:var(--regex-console-accent); font:400 22px/1 var(--mono); text-align:center; user-select:none; }
.regex-composer input { min-width:0; height:60px; padding:0 2px; border:0; border-radius:0; background:transparent; color:var(--regex-console-text); font:14px/1.5 var(--mono); caret-color:var(--regex-console-accent); box-shadow:none; }
.regex-composer input::placeholder { color:var(--regex-console-placeholder); }
.regex-composer input:focus { border:0; background:transparent; box-shadow:none; }
.regex-composer output { min-width:47px; height:34px; display:grid; place-items:center; margin-right:12px; padding:0 8px; border:1px solid rgba(241,198,111,.28); border-radius:6px; background:rgba(241,198,111,.08); color:var(--regex-console-flag); font:600 11px var(--mono); }
.regex-flagbar { min-height:31px; display:flex; align-items:center; gap:10px; margin-top:11px; }
.regex-flagbar > span { flex:none; color:var(--regex-console-muted); font-size:10px; font-weight:600; }
.regex-flags { min-width:0; display:flex; align-items:center; gap:4px; padding:2px; margin:-2px; overflow-x:auto; scrollbar-width:none; }
.regex-flags::-webkit-scrollbar { display:none; }
.regex-flags button { width:30px; height:28px; flex:none; padding:0; border:1px solid var(--regex-console-line); border-radius:6px; background:transparent; color:var(--regex-console-muted); font:600 11px var(--mono); transition:border-color .16s var(--ease),background .16s var(--ease),color .16s var(--ease),transform .16s var(--ease); }
.regex-flags button:hover:not(:disabled) { border-color:var(--regex-console-hover); color:var(--regex-console-text); box-shadow:0 0 0 1px var(--regex-console-hover); }
.regex-flags button.active { border-color:rgba(241,198,111,.55); background:var(--regex-console-flag); color:#29251d; box-shadow:0 3px 10px rgba(0,0,0,.18); }
.regex-flags button:disabled { opacity:.28; cursor:not-allowed; }
.regex-flags button:focus-visible { outline-color:rgba(97,221,167,.42); }
.regex-runtime-strip { min-height:54px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; border-bottom:1px solid var(--line); background:var(--surface); }
.regex-status { min-width:0; min-height:0; margin:0; padding:0 17px; }
.regex-status span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.regex-status.error,.regex-status.warning { padding:0 17px; border:0; border-radius:0; background:transparent; }
.regex-metrics { align-self:stretch; display:flex; }
.regex-metrics > span { min-width:88px; display:grid; grid-template-columns:auto auto; align-content:center; justify-content:center; column-gap:6px; padding:7px 12px; border-left:1px solid var(--line); }
.regex-metrics b { color:var(--text); font:650 12px var(--mono); font-variant-numeric:tabular-nums; }
.regex-metrics small { align-self:center; color:var(--text-3); font-size:9px; }
.regex-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--surface); }
.regex-pane { min-width:0; display:flex; flex-direction:column; }
.regex-preview-pane { border-left:1px solid var(--line); }
.regex-pane-head,.regex-results-head { min-height:43px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 15px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.regex-pane-head > div,.regex-results-head > div { min-width:0; display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:11px; font-weight:650; }
.regex-pane-head svg,.regex-results-head svg { width:14px; height:14px; color:var(--primary); }
.regex-pane-head > small,.regex-results-head > small { color:var(--text-3); font:9px var(--mono); white-space:nowrap; }
.regex-pane-head .copy-button { width:30px; height:28px; justify-content:center; padding:0; background:var(--surface); }
.regex-pane-head .copy-button span { display:none; }
.regex-textarea { min-height:330px; height:clamp(330px,40vh,480px); padding:17px; resize:none; border:0; border-radius:0; background:var(--surface); color:var(--text); font:12.5px/1.75 var(--mono); tab-size:2; box-shadow:none; }
.regex-textarea:focus { border:0; background:var(--surface); box-shadow:inset 0 0 0 2px rgba(42,170,116,.13); }
.regex-card .highlight-output { min-height:330px; height:clamp(330px,40vh,480px); overflow:auto; padding:17px; border:0; border-radius:0; background:var(--surface); color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; font:12.5px/1.75 var(--mono); }
.regex-card .highlight-output:focus-visible { outline:0; box-shadow:inset 0 0 0 2px rgba(42,170,116,.13); }
.regex-card .highlight-output mark { padding:2px 1px; border-radius:2px; background:#dff6e9; color:#185139; box-shadow:inset 0 -2px 0 #45bd84; }
.regex-card .highlight-output mark.is-active { background:#fff0c9; color:#654b13; box-shadow:inset 0 -2px 0 #d99a22; }
.regex-card .highlight-output mark.zero-width { width:2px; height:1.35em; display:inline-block; padding:0; background:#45bd84; vertical-align:-.3em; box-shadow:0 0 0 2px rgba(69,189,132,.16); }
.regex-results { border-top:1px solid var(--line); background:var(--surface); }
.regex-results-head { border-bottom:0; }
.match-chips { max-height:266px; overflow:auto; margin:0; border-top:1px solid var(--line); }
.match-row { width:100%; min-height:49px; display:grid; grid-template-columns:42px minmax(130px,1fr) minmax(160px,1.2fr) 94px 18px; align-items:center; gap:10px; padding:8px 15px; border:0; border-bottom:1px solid var(--line); background:var(--surface); color:var(--text-2); text-align:left; transition:background .15s var(--ease),box-shadow .15s var(--ease); }
.match-row:last-child { border-bottom:0; }
.match-row:hover { background:var(--surface-soft); }
.match-row:focus-visible,.match-row.is-active { outline:0; background:var(--primary-soft); box-shadow:inset 3px 0 0 var(--primary); }
.match-index { color:var(--primary); font:650 10px var(--mono); font-variant-numeric:tabular-nums; }
.match-value,.match-range { min-width:0; overflow:hidden; color:var(--text); font:11px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.match-group-preview { min-width:0; overflow:hidden; color:var(--text-3); font:10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.match-range { color:var(--text-3); text-align:right; font-size:10px; font-variant-numeric:tabular-nums; }
.match-row > svg { width:14px; height:14px; color:var(--text-3); }
.match-row:hover > svg,.match-row.is-active > svg { color:var(--primary); }
.regex-empty { min-height:92px; display:flex; align-items:center; justify-content:center; gap:8px; padding:20px; color:var(--text-3); font-size:11px; }
.regex-empty svg { width:17px; height:17px; }
@media (max-width:760px) {
  .regex-runtime-strip { grid-template-columns:minmax(0,1fr); padding-top:9px; }
  .regex-status { min-height:32px; padding-inline:14px; }
  .regex-status.error,.regex-status.warning { padding-inline:14px; }
  .regex-metrics { min-height:52px; margin-top:5px; border-top:1px solid var(--line); }
  .regex-metrics > span { min-width:0; flex:1; }
  .regex-metrics > span:first-child { border-left:0; }
  .regex-workspace { grid-template-columns:minmax(0,1fr); }
  .regex-preview-pane { border-top:1px solid var(--line); border-left:0; }
  .regex-textarea,.regex-card .highlight-output { min-height:250px; height:280px; }
  .match-row { grid-template-columns:38px minmax(0,1fr) 86px 16px; }
  .match-group-preview { display:none; }
}
@media (max-width:520px) {
  .regex-toolbar { min-height:54px; padding:9px 12px; }
  .regex-tool-icon { width:30px; height:30px; }
  .regex-toolbar-title small { display:none; }
  .regex-preset { width:130px; }
  .regex-pattern-stage { padding:13px 12px; }
  .regex-composer { min-height:56px; grid-template-columns:24px minmax(0,1fr) 24px auto; }
  .regex-composer input { height:54px; font-size:12px; }
  .regex-delimiter { font-size:18px; }
  .regex-composer output { min-width:38px; margin-right:8px; padding-inline:5px; }
  .regex-flagbar { gap:7px; }
  .regex-flags { gap:3px; }
  .regex-flags button { width:28px; }
  .regex-metrics > span { padding-inline:6px; }
  .regex-pane-head,.regex-results-head { padding-inline:12px; }
  .regex-textarea,.regex-card .highlight-output { padding:14px; }
  .match-row { grid-template-columns:32px minmax(0,1fr) 74px; gap:8px; padding-inline:12px; }
  .match-row > svg { display:none; }
}
.tool-card.base64-card { padding:0; overflow:hidden; border-radius:var(--radius-md); }
.base64-toolbar { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 16px; border-bottom:1px solid var(--line); background:var(--surface); }
.base64-mode { margin:0; }
.base64-mode button { min-width:88px; display:flex; align-items:center; justify-content:center; gap:7px; }
.base64-mode button svg { width:14px; height:14px; }
.base64-mode button.active svg { color:var(--primary); }
.base64-codec-meta { display:flex; align-items:center; gap:8px; padding-left:14px; border-left:1px solid var(--line); }
.base64-codec-meta > svg { width:17px; height:17px; color:var(--warning); }
.base64-codec-meta > div { display:flex; flex-direction:column; gap:2px; }
.base64-codec-meta strong { color:var(--text-2); font:650 10px var(--mono); }
.base64-codec-meta small { color:var(--text-3); font:8px var(--mono); }
.base64-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--surface); }
.base64-pane { min-width:0; display:flex; flex-direction:column; }
.base64-output-pane { border-left:1px solid var(--line); }
.base64-pane-head { min-height:45px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 15px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.base64-pane-head > div:first-child { min-width:0; display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:11px; font-weight:650; }
.base64-pane-head svg { width:14px; height:14px; color:var(--primary); }
.base64-output-pane .base64-pane-head > div:first-child svg { color:var(--cyan); }
.base64-pane-head small { color:var(--text-3); font:9px var(--mono); white-space:nowrap; }
.base64-pane-tools { display:flex; align-items:center; gap:10px; }
.base64-pane-tools .copy-button { width:30px; height:28px; justify-content:center; padding:0; background:var(--surface); }
.base64-pane-tools .copy-button span { display:none; }
#tool-base64 .base64-editor { min-height:420px; height:clamp(420px,50vh,620px); padding:18px; resize:none; border:0; border-radius:0; background:var(--surface); color:var(--text); font:13px/1.75 var(--mono); tab-size:2; box-shadow:none; }
#tool-base64 .base64-output-pane .base64-editor { background:var(--surface-soft); overflow-wrap:anywhere; }
#tool-base64 .base64-editor:focus { border:0; background:var(--surface); box-shadow:inset 0 0 0 2px rgba(42,170,116,.1); }
#tool-base64 .base64-output-pane .base64-editor:focus { background:var(--surface-soft); }
.base64-actionbar { min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:11px 15px; border-top:1px solid var(--line); background:var(--surface); }
.base64-live-status { min-width:0; display:grid; grid-template-columns:auto auto; align-items:center; gap:1px 8px; }
.base64-live-status > svg { grid-row:1 / 3; width:16px; height:16px; color:var(--success); }
.base64-live-status strong { color:var(--text-2); font-size:10px; font-weight:650; }
.base64-live-status small { color:var(--text-3); font-size:9px; }
.base64-actionbar .button { height:36px; }
.base64-file-mode { padding:20px; }
.drop-zone.base64-drop { min-height:320px; border-radius:var(--radius-md); }
.base64-file-output { min-height:220px; max-height:360px; margin-top:14px; resize:vertical; }
.base64-card > #base64Error:not(.hidden) { min-height:42px; margin:0; padding:0 16px; border-top:1px solid var(--line); border-bottom:0; background:var(--danger-soft); }
@media (max-width:780px) {
  .base64-workspace { grid-template-columns:minmax(0,1fr); }
  .base64-output-pane { border-top:1px solid var(--line); border-left:0; }
  #tool-base64 .base64-editor { min-height:300px; height:330px; }
  .drop-zone.base64-drop { min-height:270px; }
}
@media (max-width:520px) {
  .base64-toolbar { min-height:54px; padding:9px 12px; }
  .base64-mode { flex:1; grid-auto-columns:1fr; }
  .base64-mode button { min-width:0; padding-inline:9px; }
  .base64-codec-meta { padding-left:10px; }
  .base64-codec-meta small { display:none; }
  .base64-pane-head { padding-inline:12px; }
  #tool-base64 .base64-editor { min-height:290px; height:310px; padding:15px; }
  .base64-actionbar { padding-inline:12px; }
  .base64-live-status small { display:none; }
  .base64-file-mode { padding:14px 12px; }
  .drop-zone.base64-drop { min-height:240px; }
}
.drop-zone { min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:2px dashed #d6d6dd; border-radius:var(--radius-lg); background:var(--surface-soft); color:var(--text-2); cursor:pointer; transition:.2s; }.drop-zone input { display:none; }.drop-zone svg { width:30px; height:30px; color:var(--primary); }.drop-zone span { color:var(--text-3); font-size:11px; }.drop-zone.dragging { border-color:var(--primary); background:var(--primary-soft); animation:drop-pulse .8s infinite alternate; } @keyframes drop-pulse { to { box-shadow:0 0 0 7px rgba(42,170,116,.07); } }
.drop-zone-sm { min-height:112px; padding:14px; gap:6px; }
.drop-zone-sm svg { width:22px; height:22px; }
.drop-zone-sm strong { font-size:13px; }
.upload-chip { min-height:44px; display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.upload-chip > svg { width:18px; height:18px; color:var(--primary); flex:none; }
.upload-chip > span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-2); font-size:12px; }
.upload-chip .button { margin-left:auto; flex:none; }
.pdf-options { margin-top:16px; }
.p2i-mode-field { flex:0 0 280px; margin:0; padding:0; border:0; }
.p2i-mode-field legend { margin-bottom:7px; padding:0; color:var(--text-2); font-size:11px; font-weight:600; }
.p2i-mode-options { display:flex; height:40px; gap:3px; padding:3px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); }
.p2i-mode-options label { position:relative; flex:1; min-width:0; cursor:pointer; }
.p2i-mode-options input { position:absolute; width:1px; height:1px; opacity:0; }
.p2i-mode-options span { display:flex; align-items:center; justify-content:center; height:100%; border:1px solid transparent; border-radius:5px; font-size:11px; white-space:nowrap; }
.p2i-mode-options input:checked + span { color:var(--primary-dark); border-color:var(--line-strong); background:var(--surface); box-shadow:0 1px 3px rgba(30,30,40,.09); font-weight:600; }
.p2i-mode-options input:focus-visible + span { outline:3px solid rgba(42,170,116,.3); outline-offset:1px; }
#tool-pdftoimg .pdf-options { flex-wrap:wrap; }
@media (max-width:640px) { .p2i-mode-field { flex:auto; } }
.pdf-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-top:16px; }
.pdf-empty { grid-column:1 / -1; min-height:100px; display:grid; place-items:center; gap:8px; border:1px dashed var(--line-strong); border-radius:var(--radius-md); color:var(--text-3); background:var(--surface-soft); }
.pdf-empty svg { width:24px; height:24px; }
.pdf-empty span { font-size:11px; }
.pdf-item { position:relative; display:flex; flex-direction:column; gap:8px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.pdf-item .pdf-thumb { height:110px; display:grid; place-items:center; overflow:hidden; border-radius:6px; background:repeating-conic-gradient(#e8e8ee 0% 25%, #fff 0% 50%) 50% / 12px 12px; border:1px solid var(--line); }
.pdf-item button.pdf-thumb { width:100%; padding:0; color:inherit; cursor:zoom-in; transition:border-color .16s var(--ease),box-shadow .16s var(--ease); }
.pdf-item button.pdf-thumb:hover,.pdf-item button.pdf-thumb:focus-visible { border-color:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.12); outline:0; }
.pdf-item .pdf-thumb img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
.pdf-item.is-merged .pdf-thumb { height:180px; display:flex; align-items:center; justify-content:center; }
.pdf-item.is-merged .pdf-thumb img { width:100%; height:100%; min-height:0; }
.pdf-item .pdf-name { font-size:11px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pdf-item .pdf-meta { color:var(--text-3); font:10px var(--mono); }
.pdf-item .pdf-actions { display:flex; gap:6px; }
.pdf-item .pdf-actions .icon-button { width:30px; height:30px; }
.pdf-item .pdf-index { position:absolute; top:14px; left:14px; z-index:1; min-width:22px; height:22px; padding:0 6px; border-radius:6px; display:grid; place-items:center; background:rgba(35,35,43,.82); color:#fff; font:600 10px var(--mono); }
.file-result { margin-top:12px; display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:12px; padding:10px; background:var(--surface-soft); border-radius:var(--radius-md); }.file-preview { width:48px;height:48px;display:grid;place-items:center;border-radius:6px;background:#fff;overflow:hidden; }.file-preview img { width:100%;height:100%;object-fit:cover; }.file-result small { display:block;color:var(--text-3);margin-top:4px; }
.imgb64-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,320px); gap:24px; align-items:start; }
.imgb64-main { min-width:0; display:flex; flex-direction:column; gap:14px; }
.imgb64-options { align-items:flex-end; }
.imgb64-actions { margin-left:auto; }
.imgb64-preview { min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px; border-left:1px solid var(--line); }
.imgb64-frame { width:100%; min-height:240px; display:grid; place-items:center; gap:8px; padding:16px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-3); text-align:center; overflow:hidden; }
.imgb64-frame svg { width:28px; height:28px; color:var(--text-3); }
.imgb64-frame span { font-size:11px; }
.imgb64-frame img { display:block; max-width:100%; max-height:320px; width:auto; height:auto; border-radius:6px; background:#fff; box-shadow:0 8px 24px rgba(32,32,40,.08); }
.imgb64-preview small { color:var(--text-3); font:9px var(--mono); letter-spacing:.12em; text-align:center; overflow-wrap:anywhere; }
.button:disabled, .icon-button:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.image-options-grid { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(220px,1.4fr) minmax(150px,.8fr); gap:16px; align-items:end; margin-top:18px; }
.image-range-field { min-width:0; display:flex; flex-direction:column; justify-content:flex-end; gap:7px; }
.image-range-field.is-disabled, .color-field.is-disabled { opacity:.46; }
.color-control { height:40px; display:flex; align-items:center; gap:10px; padding:5px 10px 5px 6px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); }
.color-control input[type="color"] { width:34px; height:28px; flex:none; padding:0; overflow:hidden; border:0; border-radius:5px; background:transparent; box-shadow:none; cursor:pointer; }
.color-control input[type="color"]::-webkit-color-swatch-wrapper { padding:0; }
.color-control input[type="color"]::-webkit-color-swatch { border:1px solid var(--line-strong); border-radius:5px; }
.color-control code { min-width:0; overflow:hidden; color:var(--text-2); font-size:10px; text-overflow:ellipsis; }
.image-batch-list { display:flex; flex-direction:column; gap:8px; margin-top:18px; }
.image-tool-empty { min-height:112px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:1px dashed var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-3); }
.image-tool-empty svg { width:25px; height:25px; }
.image-tool-empty span { font-size:11px; }
.image-batch-item { min-width:0; min-height:82px; display:grid; grid-template-columns:62px minmax(0,1fr) auto; align-items:center; gap:13px; padding:9px 10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.image-batch-thumb { width:62px; height:62px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:repeating-conic-gradient(#e8e8ee 0% 25%,#fff 0% 50%) 50% / 12px 12px; }
.image-batch-thumb img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.image-batch-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.image-batch-copy strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.image-batch-copy span, .image-batch-copy small { color:var(--text-3); font:10px var(--mono); }
.image-batch-copy .item-error { color:var(--danger); }
.image-batch-actions { display:flex; align-items:center; gap:6px; }
.image-batch-actions .icon-button { width:30px; height:30px; }
.image-editor-layout { display:grid; grid-template-columns:minmax(280px,340px) minmax(0,1fr); gap:24px; margin-top:18px; }
.image-editor-controls { min-width:0; display:flex; flex-direction:column; gap:15px; padding-right:24px; border-right:1px solid var(--line); }
.control-block { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.control-label { color:var(--text-2); font-size:11px; font-weight:600; }
.compact-field-row { width:100%; gap:10px; }
#wmTextControls { width:100%; align-items:stretch; gap:12px; }
.wm-font-actions { width:100%; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wm-font-upload { height:32px; padding-inline:10px; }
.wm-font-upload input { display:none; }
.wm-font-chip { min-width:0; height:32px; display:flex; align-items:center; gap:7px; padding:3px 4px 3px 9px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-2); }
.wm-font-chip > svg { width:14px; height:14px; color:var(--primary); }
.wm-font-chip > span { max-width:132px; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.wm-font-chip .icon-button { width:24px; height:24px; border:0; }
.wm-font-chip .icon-button svg { width:13px; height:13px; }
.drop-zone-compact { width:100%; min-height:98px; padding:12px; border-radius:var(--radius-md); }
.drop-zone-compact svg { width:22px; height:22px; }
.drop-zone-compact strong { font-size:12px; }
.position-grid { width:118px; display:grid; grid-template-columns:repeat(3,34px); gap:6px; padding:5px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.position-grid button { width:34px; height:34px; display:grid; place-items:center; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; }
.position-grid button span { width:6px; height:6px; border-radius:50%; background:var(--text-3); transition:.18s var(--ease); }
.position-grid button:hover { border-color:var(--line-strong); background:var(--surface); }
.position-grid button.active { border-color:#bde5d1; background:var(--primary-soft); box-shadow:0 1px 4px rgba(30,30,40,.07); }
.position-grid button.active span { width:8px; height:8px; background:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.12); }
.image-editor-preview { min-width:0; display:flex; flex-direction:column; }
.canvas-preview-frame { min-height:520px; display:grid; place-items:center; overflow:auto; padding:20px; border:1px solid var(--line); border-radius:var(--radius-md); background-color:#fff; background-image:repeating-conic-gradient(#eceef0 0% 25%,#fff 0% 50%); background-size:18px 18px; }
.canvas-preview-frame canvas { display:block; max-width:100%; max-height:70vh; width:auto; height:auto; background:transparent; box-shadow:0 12px 28px rgba(30,30,38,.14); }
#tool-imgwatermark .image-editor-preview { position:sticky; top:calc(var(--topbar-height) + 16px); align-self:start; max-height:calc(100vh - var(--topbar-height) - 32px); }
#tool-imgwatermark .canvas-preview-frame { height:clamp(280px,calc(100vh - var(--topbar-height) - 180px),620px); min-height:280px; max-height:none; }
#tool-imgwatermark .canvas-preview-frame canvas { max-height:100%; }
.merge-settings { display:grid; grid-template-columns:repeat(auto-fit,minmax(138px,1fr)); gap:14px; align-items:end; margin-top:18px; }
.merge-settings > .control-block { grid-column:span 2; }
.merge-settings .segmented { width:100%; }
.merge-settings .segmented button { min-width:0; display:flex; align-items:center; justify-content:center; gap:6px; }
.merge-settings .segmented button svg { width:14px; height:14px; }
.merge-normalize { height:40px; }
.merge-workspace { display:grid; grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr); gap:22px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.merge-source-pane, .merge-preview-pane { min-width:0; display:flex; flex-direction:column; }
.merge-source-pane { padding-right:22px; border-right:1px solid var(--line); }
.merge-list { max-height:600px; display:flex; flex-direction:column; gap:7px; overflow:auto; padding-right:3px; }
.merge-list .image-tool-empty { flex:none; min-height:180px; }
.merge-list-item { min-width:0; min-height:66px; display:grid; grid-template-columns:25px 48px minmax(0,1fr) auto; align-items:center; gap:9px; padding:8px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.merge-order { color:var(--primary); font:600 10px var(--mono); text-align:center; }
.merge-thumb { width:48px; height:48px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:repeating-conic-gradient(#e8e8ee 0% 25%,#fff 0% 50%) 50% / 10px 10px; }
.merge-thumb img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.merge-item-copy { min-width:0; display:flex; flex-direction:column; gap:5px; }
.merge-item-copy strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.merge-item-copy small { overflow:hidden; color:var(--text-3); font:9px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.merge-item-actions { display:flex; gap:4px; }
.merge-item-actions .icon-button { width:27px; height:27px; }
.merge-item-actions .icon-button svg { width:14px; height:14px; }
.merge-preview-frame { min-height:430px; max-height:640px; }
.canvas-placeholder { display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--text-3); }
.canvas-placeholder svg { width:28px; height:28px; }
.canvas-placeholder span { font-size:11px; }
.imgc-controls { margin-top:18px; display:flex; flex-direction:column; gap:14px; }
.imgc-presets { display:flex; flex-wrap:wrap; width:100%; grid-auto-flow:unset; }
.imgc-presets button { padding-inline:10px; }
.imgc-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:16px; }
.imgc-compare { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
.imgc-pane { min-width:0; display:flex; flex-direction:column; }
.imgc-frame { min-height:240px; display:grid; place-items:center; gap:8px; padding:14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-3); text-align:center; overflow:auto; }
.imgc-frame svg { width:28px; height:28px; }
.imgc-frame span { font-size:11px; }
.imgc-frame img { display:block; max-width:100%; max-height:360px; width:auto; height:auto; border-radius:6px; background:#fff; box-shadow:0 8px 24px rgba(32,32,40,.08); }
.favicon-options { margin-top:18px; }
.favicon-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:12px; margin-top:18px; }
.favicon-empty { grid-column:1 / -1; min-height:140px; display:grid; place-items:center; gap:8px; border:1px dashed var(--line-strong); border-radius:var(--radius-md); color:var(--text-3); background:var(--surface-soft); }
.favicon-empty svg { width:28px; height:28px; }
.favicon-empty span { font-size:11px; }
.favicon-card { display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.favicon-card .favicon-thumb { width:72px; height:72px; display:grid; place-items:center; border-radius:10px; background:repeating-conic-gradient(#e8e8ee 0% 25%, #fff 0% 50%) 50% / 12px 12px; border:1px solid var(--line); overflow:hidden; }
.favicon-card .favicon-thumb img { display:block; max-width:100%; max-height:100%; image-rendering:auto; }
.favicon-card .favicon-thumb img.pixelated { image-rendering:pixelated; }
.favicon-card strong { font-size:11px; }
.favicon-card small { color:var(--text-3); font:10px var(--mono); }
.favicon-card .copy-button, .favicon-card .button { width:100%; justify-content:center; }
.lottie-card { overflow:hidden; }
.lottie-toolbar { min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.lottie-workspace { display:grid; grid-template-columns:minmax(280px,360px) minmax(0,1fr); gap:24px; align-items:stretch; }
.lottie-source { min-width:0; min-height:510px; display:flex; flex-direction:column; padding-right:24px; border-right:1px solid var(--line); }
.lottie-source-panel { flex:1; min-height:260px; }
#lottieJsonMode .field { height:100%; }
.lottie-code { flex:1; min-height:350px; resize:vertical; white-space:pre; overflow:auto; }
.lottie-source-note { display:flex; align-items:flex-start; gap:8px; margin-top:12px; padding:10px 0; color:var(--text-3); font-size:10px; line-height:1.55; }
.lottie-source-note svg { width:15px; height:15px; margin-top:1px; color:var(--primary); }
.lottie-drop { min-height:250px; }
.lottie-render-option { width:180px; margin-top:14px; }
.lottie-export-settings { margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.lottie-export-settings-head { min-height:29px; display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.lottie-settings-label { display:block; color:var(--text-2); font-size:10px; font-weight:600; }
.lottie-format { flex:none; }
.lottie-export-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.lottie-export-grid .field { gap:5px; }
.lottie-export-grid .field > span:first-child { color:var(--text-3); font-size:9px; }
.lottie-export-grid select, .lottie-static-value { height:34px; padding:0 8px; font-size:10px; }
.lottie-static-value { display:flex; align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-2); text-overflow:ellipsis; white-space:nowrap; }
.lottie-export-hint { min-height:36px; display:grid; grid-template-columns:14px minmax(0,1fr); align-items:start; gap:7px; margin-top:9px; padding:8px 9px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--text-3); font-size:9.5px; line-height:1.5; transition:color .18s,border-color .18s,background .18s; }
.lottie-export-hint svg { width:13px; height:13px; margin-top:1px; color:var(--primary); }
.lottie-export-hint.warning { color:var(--warning); border-color:color-mix(in srgb,var(--warning) 26%,var(--line)); background:var(--warning-soft); }
.lottie-export-hint.warning svg { color:var(--warning); }
.lottie-export-hint.error { color:var(--danger); border-color:color-mix(in srgb,var(--danger) 28%,var(--line)); background:var(--danger-soft); }
.lottie-export-hint.error svg { color:var(--danger); }
.lottie-toolbar button:disabled { opacity:.46; cursor:not-allowed; transform:none; box-shadow:none; }
.lottie-export-button.exporting { color:var(--danger); border-color:color-mix(in srgb,var(--danger) 38%,var(--line)); background:var(--danger-soft); }
.lottie-preview { min-width:0; display:flex; flex-direction:column; }
.lottie-stage { --lottie-bg:#fff; position:relative; width:100%; height:clamp(360px,48vh,520px); min-height:360px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--lottie-bg); isolation:isolate; }
.lottie-stage[data-background="checker"] { background-color:#fff; background-image:repeating-conic-gradient(#eceef0 0% 25%, #fff 0% 50%); background-position:0 0; background-size:18px 18px; }
.lottie-stage[data-background="white"] { --lottie-bg:#fff; }
.lottie-stage[data-background="black"] { --lottie-bg:#111216; }
.lottie-stage[data-background="custom"] { --lottie-bg:var(--lottie-custom-bg); }
.lottie-canvas { position:absolute; inset:18px; z-index:1; display:grid; place-items:center; }
.lottie-canvas > svg, .lottie-canvas > canvas { display:block; width:100%!important; height:100%!important; }
.lottie-empty, .lottie-loading { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; color:var(--text-3); pointer-events:none; }
.lottie-empty svg { width:30px; height:30px; color:var(--primary); opacity:.7; }
.lottie-empty span, .lottie-loading small { font-size:11px; }
.lottie-loading { z-index:3; background:color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter:blur(4px); }
.lottie-spinner { width:22px; height:22px; border:2px solid var(--line-strong); border-top-color:var(--primary); border-radius:50%; animation:lottie-spin .75s linear infinite; }
.lottie-loading-progress { width:min(180px,55%); height:4px; overflow:hidden; border-radius:999px; background:var(--line-strong); }
.lottie-loading-progress > span { display:block; width:0; height:100%; border-radius:inherit; background:var(--primary); transition:width .15s linear; }
@keyframes lottie-spin { to { transform:rotate(360deg); } }
.lottie-progress { height:42px; display:flex; align-items:center; gap:12px; padding:0 2px; }
.lottie-progress input[type="range"] { flex:1; min-width:0; }
.lottie-progress output { width:88px; color:var(--text-3); font:10px var(--mono); text-align:right; white-space:nowrap; }
.lottie-controls { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.lottie-transport, .lottie-options, .lottie-backgrounds { display:flex; align-items:center; gap:7px; }
.lottie-transport .icon-button { width:34px; height:34px; }
.lottie-transport .lottie-play { color:#fff; border-color:var(--primary); background:var(--primary); }
.lottie-transport .lottie-play:hover { color:#fff; background:var(--primary-dark); }
.lottie-controls button:disabled { opacity:.42; cursor:not-allowed; transform:none; box-shadow:none; }
.compact-toggle { min-height:32px; display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:10px; cursor:pointer; white-space:nowrap; }
.compact-toggle input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.toggle-track { position:relative; width:32px; height:18px; flex:none; border:1px solid var(--line-strong); border-radius:999px; background:var(--surface-hover); transition:.18s var(--ease); }
.toggle-track::after { content:""; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(25,25,32,.2); transition:.18s var(--ease); }
.compact-toggle input:checked + .toggle-track { border-color:var(--primary); background:var(--primary); }
.compact-toggle input:checked + .toggle-track::after { transform:translateX(14px); }
.compact-toggle input:focus-visible + .toggle-track { outline:3px solid rgba(42,170,116,.17); outline-offset:2px; }
.lottie-speed { display:flex; align-items:center; gap:6px; color:var(--text-2); font-size:10px; white-space:nowrap; }
.lottie-speed select { width:74px; height:32px; padding:0 8px; font-size:10px; }
.lottie-backgrounds { padding-left:9px; border-left:1px solid var(--line); }
.lottie-swatch { position:relative; width:24px; height:24px; flex:none; padding:0; overflow:hidden; border:1px solid var(--line-strong); border-radius:6px; cursor:pointer; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35); }
.lottie-swatch.active { outline:2px solid var(--primary); outline-offset:2px; }
.lottie-swatch.checker { background:repeating-conic-gradient(#dfe1e4 0% 25%, #fff 0% 50%) 50% / 8px 8px; }
.lottie-swatch.white { background:#fff; }
.lottie-swatch.black { background:#111216; }
.lottie-swatch.custom input { position:absolute; inset:0; width:100%; height:100%; padding:0; opacity:0; cursor:pointer; }
.lottie-swatch.custom span { display:block; width:100%; height:100%; background:var(--lottie-custom-swatch,#dce5e1); }
.lottie-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.lottie-meta > span { min-width:0; padding:11px 12px; border-left:1px solid var(--line); }
.lottie-meta > span:first-child { border-left:0; }
.lottie-meta small { display:block; margin-bottom:4px; color:var(--text-3); font-size:9px; }
.lottie-meta strong { display:block; overflow:hidden; color:var(--text-2); font:600 11px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.imgcrop-ratios { display:flex; flex-wrap:wrap; width:100%; grid-auto-flow:unset; }
.imgcrop-ratios button { padding-inline:10px; }
.imgcrop-options { margin-top:14px; align-items:flex-end; }
.imgcrop-meta { flex:1; min-width:140px; }
.imgcrop-stage { margin-top:16px; height:min(70vh,620px); min-height:320px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.imgcrop-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap; }
.imgcrop-zoom { display:flex; align-items:center; gap:10px; min-width:min(100%,280px); flex:1; }
.imgcrop-zoom label { color:var(--text-2); font-size:11px; font-weight:600; white-space:nowrap; }
.imgcrop-zoom input[type="range"] { flex:1; }
.imgcrop-zoom output { min-width:40px; color:var(--primary); font:600 12px var(--mono); text-align:right; }
.imgcrop-stage img { display:block; max-width:100%; }
.imgcrop-stage .cropper-view-box,
.imgcrop-stage .cropper-face { border-radius:0; }
.imgcrop-stage .cropper-line,
.imgcrop-stage .cropper-point { background-color:var(--primary); }
.imgcrop-stage .cropper-view-box { outline:1px solid rgba(42,170,116,.85); outline-color:rgba(42,170,116,.85); }
.imgcrop-stage .cropper-modal { background:rgba(24,24,32,.55); }
/* JWT decode workspace. */
.tool-card.jwt-card { --jwt-header:#d45f6b; --jwt-payload:#168da3; --jwt-signature:#c78a29; padding:0; overflow:hidden; border-radius:var(--radius-md); }
.jwt-input-head { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.jwt-input-wrap { padding:16px 18px 18px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.jwt-input-wrap .code-input { min-height:122px; height:122px; resize:vertical; border-color:var(--line-strong); background:var(--surface); font:12px/1.7 var(--mono); }
.jwt-input-wrap .code-input:focus { background:var(--surface); }
.jwt-segment-key { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.jwt-segment-key > span { min-width:0; min-height:34px; display:grid; grid-template-columns:5px auto minmax(0,1fr); align-items:center; gap:7px; padding:5px 9px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.jwt-segment-key i { width:5px; height:18px; border-radius:2px; background:var(--jwt-header); }
.jwt-segment-key .is-payload i { background:var(--jwt-payload); }
.jwt-segment-key .is-signature i { background:var(--jwt-signature); }
.jwt-segment-key b { color:var(--text-2); font:650 9px var(--mono); }
.jwt-segment-key small { overflow:hidden; color:var(--text-3); font-size:9px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.jwt-result-head { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:10px 18px; border-bottom:1px solid var(--line); background:var(--surface); }
.jwt-result-head > div:first-child { display:flex; flex-direction:column; gap:3px; }
.jwt-result-head > div:first-child strong { font-size:12px; }
.jwt-result-head > div:first-child small { color:var(--text-3); font:9px var(--mono); }
.jwt-summary { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(86px,auto); overflow:hidden; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); }
.jwt-summary > span { min-width:0; min-height:40px; display:flex; flex-direction:column; justify-content:center; gap:3px; padding:6px 10px; border-left:1px solid var(--line); }
.jwt-summary > span:first-child { border-left:0; }
.jwt-summary small { color:var(--text-3); font:8px var(--mono); }
.jwt-summary strong { max-width:150px; overflow:hidden; color:var(--text-2); font:650 10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.jwt-status { min-height:42px; margin:0; padding:0 18px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.jwt-status.error { padding-inline:18px; border-bottom:1px solid var(--line); background:var(--danger-soft); }
.jwt-status.warning { border-radius:0; background:var(--warning-soft); }
.jwt-grid { display:grid; grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr); gap:0; margin:0; }
.code-panel { min-width:0; overflow:hidden; border:0; border-radius:0; background:var(--surface); }
.jwt-grid .code-panel + .code-panel { border-left:1px solid var(--line); }
.code-panel > div { height:52px; display:flex; align-items:center; gap:9px; padding:0 13px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.code-panel .copy-button { margin-left:auto; }
.code-panel-index { color:var(--text-3); font:8px var(--mono); }
.token-dot { width:8px; height:8px; border-radius:2px; background:var(--jwt-header); }
.token-dot.payload { background:var(--jwt-payload); }
.code-panel-name { min-width:0; display:flex; flex-direction:column; gap:2px; }
.code-panel-name strong { color:var(--text-2); font:650 9px var(--mono); }
.code-panel-name small { color:var(--text-3); font:8px var(--mono); }
.code-panel pre { min-height:310px; height:clamp(310px,40vh,460px); max-height:520px; overflow:auto; margin:0; padding:18px; background:#fbfbfc; color:#34343e; font:12px/1.75 var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; tab-size:2; }
.jwt-header-panel pre { box-shadow:inset 3px 0 0 color-mix(in srgb,var(--jwt-header) 68%,transparent); }
.jwt-payload-panel pre { box-shadow:inset 3px 0 0 color-mix(in srgb,var(--jwt-payload) 68%,transparent); }
.code-panel pre .jwt-key { color:var(--syntax-attr); }
.code-panel pre .jwt-string { color:var(--syntax-string); }
.code-panel pre .jwt-number { color:var(--syntax-number); }
.code-panel pre .jwt-literal { color:var(--syntax-keyword); }
.file-label { display:flex;align-items:center;gap:8px;color:var(--text-2);font:11px var(--mono); }.file-label svg { width:15px;color:var(--primary); }
.hash-list { margin-top:12px; }.hash-item { margin-top:8px; grid-template-columns:74px minmax(0,1fr) auto; }.hash-item code { white-space:normal; overflow-wrap:anywhere; }.toast { position:fixed; z-index:100; left:50%; bottom:28px; transform:translate(-50%,15px); display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(35,35,43,.9);backdrop-filter:blur(12px);color:#fff;box-shadow:var(--shadow-float);opacity:0;pointer-events:none;transition:.22s var(--ease);font-size:11px; }.toast svg{width:14px;color:#77e7af}.toast.show{opacity:1;transform:translate(-50%,0)}
.mobile-overlay { display:none; }

/* Shared workbench layout for text processors. */
.processor-toolbar { min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; }
.processor-options { min-height:58px; display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.processor-options.compact-options { min-height:0; }
.processor-options .compact-toggle { margin:0 4px 4px 0; }
.processor-workspace { align-items:stretch; }
.processor-workspace > .field { min-height:0; }
.processor-code { min-height:320px; height:clamp(320px,44vh,480px); white-space:pre; overflow:auto; }
.processor-workspace .output-wrap { height:100%; }
.processor-workspace .output-wrap .processor-code { height:100%; }
.kv-preview { max-height:250px; overflow:auto; margin-top:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.kv-row { min-height:42px; display:grid; grid-template-columns:minmax(130px,.7fr) minmax(0,1.7fr) auto; align-items:center; gap:12px; padding:8px 4px; border-top:1px solid var(--line); }
.kv-row:first-child { border-top:0; }
.kv-row:nth-child(even) { background:var(--surface-soft); }
.kv-key, .kv-value { min-width:0; overflow-wrap:anywhere; font:11px/1.55 var(--mono); }
.kv-key { color:var(--primary); font-weight:600; }
.kv-value { color:var(--text-2); }
.kv-tag { padding:3px 6px; border-radius:5px; color:var(--text-3); background:var(--surface-hover); font:9px var(--mono); white-space:nowrap; }
.kv-empty { min-height:58px; display:grid; place-items:center; color:var(--text-3); font-size:11px; }

/* cURL conversion workbench. */
.curl-card { padding:0; overflow:hidden; }
.curl-toolbar { min-height:62px; margin:0; padding:12px 16px; border-bottom:1px solid var(--line); }
.curl-language button { min-width:78px; }
.curl-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--surface); }
.curl-pane { min-width:0; display:flex; flex-direction:column; }
.curl-input-pane { border-right:1px solid var(--line); }
.curl-pane .pane-label { height:38px; padding:0 16px; border-bottom:1px solid var(--line); }
.curl-code { min-height:410px; height:clamp(410px,51vh,610px); margin:0; padding:20px; border:0; border-radius:0; resize:none; font-size:12.5px; line-height:1.72; white-space:pre; overflow:auto; }
.curl-code:focus { border:0; box-shadow:inset 0 0 0 2px rgba(42,170,116,.14); }
#curlOutput { background:var(--surface-soft); }
.curl-footer { border-top:1px solid var(--line); }
.curl-actions { min-height:54px; display:flex; align-items:center; gap:12px; padding:9px 16px; }
.curl-actions > span { color:var(--text-3); font-size:10px; }
.curl-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface-soft); }
.curl-summary > div { min-width:0; min-height:58px; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:9px 16px; border-left:1px solid var(--line); }
.curl-summary > div:first-child { border-left:0; }
.curl-summary span { color:var(--text-3); font:9px var(--mono); }
.curl-summary strong { min-width:0; overflow:hidden; color:var(--text-2); font:600 11px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.curl-summary strong.is-method { color:var(--primary); }
.curl-warnings { display:grid; gap:7px; padding:11px 16px 0; }
.curl-warning { min-height:28px; display:flex; align-items:flex-start; gap:8px; padding:6px 9px; border-left:2px solid var(--warning); background:var(--warning-soft); color:var(--warning); font-size:10.5px; line-height:1.5; }
.curl-warning svg { width:14px; height:14px; flex:none; margin-top:1px; }
.curl-footer .inline-status { margin:0; padding:0 16px; }

/* Calculator — iOS look and feel: black keypad, circular keys, orange operators.
   The device keeps its own palette in both themes; the side rail follows DevKit tokens. */
.calc-card { display:flex; align-items:flex-start; gap:26px; flex-wrap:wrap; }
.calc-modes { flex:none; }
.calc-device { width:min(352px,100%); display:flex; flex-direction:column; gap:14px; padding:18px 16px 20px; border-radius:26px; background:#000; box-shadow:0 10px 34px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.06); user-select:none; transition:width .2s var(--ease); }
.calc-device.is-scientific { width:min(640px,100%); }
.calc-display { padding:10px 8px 6px; }
.calc-status { display:flex; align-items:center; gap:6px; min-height:26px; }
.calc-flag { padding:2px 7px; border-radius:999px; background:rgba(255,255,255,.14); color:rgba(255,255,255,.8); font:600 10px var(--mono); letter-spacing:.06em; }
.calc-copy { display:grid; place-items:center; width:26px; height:26px; margin-left:auto; border:0; border-radius:8px; background:rgba(255,255,255,.06); color:rgba(255,255,255,.45); transition:.16s var(--ease); }
.calc-copy svg { width:14px; height:14px; }
.calc-copy:hover { background:rgba(255,255,255,.15); color:#fff; }
.calc-copy.copied { transform:scale(.92); background:rgba(52,199,89,.25); color:#4cd964; }
.calc-expression { height:20px; overflow:hidden; color:rgba(255,255,255,.42); font:400 14px/20px var(--mono); letter-spacing:.02em; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.calc-value { display:block; overflow:hidden; color:#fff; font-size:calc(var(--calc-scale,1) * clamp(40px,8.6vw,62px)); font-weight:250; line-height:1.16; letter-spacing:-.02em; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; transition:font-size .12s var(--ease); }
.calc-value.is-error { color:#ff9f0a; }
.calc-keys { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.calc-key { display:grid; place-items:center; aspect-ratio:1; border:0; border-radius:999px; background:#333; color:#fff; font-size:clamp(24px,6.4vw,31px); font-weight:400; line-height:1; transition:background-color .12s var(--ease), color .12s var(--ease), transform .08s var(--ease); -webkit-tap-highlight-color:transparent; }
.calc-key:hover { background:#4b4b4b; }
.calc-key:active, .calc-key.is-pressed { background:#6e6e6e; transform:scale(.96); }
.calc-key:focus-visible { outline:3px solid rgba(255,159,10,.55); outline-offset:2px; }
.calc-key.fn { background:#a5a5a5; color:#000; font-size:clamp(21px,5.4vw,26px); }
.calc-key.fn:hover { background:#bcbcbc; }
.calc-key.fn:active, .calc-key.fn.is-pressed { background:#d9d9d9; }
.calc-key.op { background:#ff9f0a; color:#fff; font-size:clamp(27px,7vw,35px); }
.calc-key.op:hover { background:#ffb03a; }
.calc-key.op:active, .calc-key.op.is-pressed { background:#ffc978; }
.calc-key.op.is-selected { background:#fff; color:#ff9f0a; }
.calc-key.zero { grid-column:span 2; aspect-ratio:auto; justify-items:start; padding-left:clamp(22px,7.6vw,30px); }
/* Scientific keypad — the landscape iOS layout: 10 columns, darker function keys, 2nd-function labels */
/* minmax(0,1fr) keeps the 2nd-function labels (sinh⁻¹…) from widening the columns past the device. */
.calc-keys.scientific { grid-template-columns:repeat(10,minmax(0,1fr)); gap:8px; min-width:560px; }
.calc-device.is-scientific { overflow-x:auto; }
.calc-keys.scientific .calc-key { font-size:clamp(12px,1.5vw,16px); }
.calc-keys.scientific .calc-key.op { font-size:clamp(17px,2.2vw,24px); }
.calc-keys.scientific .calc-key.fn { font-size:clamp(12px,1.6vw,17px); }
.calc-keys.scientific .calc-key.zero { justify-items:center; padding-left:0; }
.calc-key.sci { background:#1e1e20; color:#fff; }
.calc-key.sci:hover { background:#333338; }
.calc-key.sci:active, .calc-key.sci.is-pressed { background:#4f4f57; }
.calc-key.sci.is-toggled { background:#a5a5a5; color:#000; }
/* Labels live in a single inline box so <sup>/<sub> stay superscripts instead of becoming grid rows. */
.calc-key .k-main, .calc-key .k-alt { display:inline-block; white-space:nowrap; line-height:1; }
.calc-key sup, .calc-key sub { font-size:.6em; line-height:0; }
.calc-key sup { vertical-align:super; }
.calc-key sub { vertical-align:sub; }
.calc-key .k-alt { display:none; }
.calc-keys.is-second .calc-key[data-alt] .k-main { display:none; }
.calc-keys.is-second .calc-key[data-alt] .k-alt { display:inline-block; }
.calc-side { flex:1 1 200px; max-width:380px; min-width:0; display:flex; flex-direction:column; gap:14px; align-self:stretch; }
.calc-side-head { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--text-3); font:600 10px var(--mono); letter-spacing:.1em; text-transform:uppercase; }
.calc-history-clear { display:grid; place-items:center; width:26px; height:26px; border:1px solid var(--line); border-radius:7px; background:transparent; color:var(--text-3); transition:.16s var(--ease); }
.calc-history-clear svg { width:14px; height:14px; }
.calc-history-clear:hover { border-color:var(--danger); background:var(--danger-soft); color:var(--danger); }
.calc-history { min-height:132px; max-height:328px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.calc-history-empty { margin:auto; color:var(--text-3); font-size:12px; }
.calc-history-item { display:flex; flex-direction:column; gap:2px; padding:7px 9px; border:1px solid transparent; border-radius:var(--radius-sm); background:transparent; text-align:right; transition:.14s var(--ease); }
.calc-history-item:hover { border-color:var(--line-strong); background:var(--surface); }
.calc-history-item span { color:var(--text-3); font:11px var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calc-history-item strong { color:var(--text); font:600 14px var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calc-hints ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.calc-hints li { display:flex; align-items:center; gap:5px; color:var(--text-2); font-size:12px; }
.calc-hints li span { margin-left:auto; color:var(--text-3); }
.calc-note { margin:10px 0 0; color:var(--text-3); font-size:11px; line-height:1.6; }
.calc-hints kbd { min-width:22px; padding:2px 5px; border:1px solid var(--line-strong); border-bottom-width:2px; border-radius:5px; background:var(--surface-soft); color:var(--text-2); font:10px/1.4 var(--mono); text-align:center; }
:root[data-theme="dark"] .calc-device { box-shadow:0 10px 34px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="dark"] .calc-history { background:var(--surface-soft); }
:root[data-theme="dark"] .calc-history-item:hover { background:var(--surface-hover); }
@media (max-width: 760px) { .calc-card { gap:18px; } .calc-device { margin:0 auto; } .calc-side { flex:1 1 100%; max-width:none; } .calc-history { max-height:210px; } }
@media (max-width: 520px) { .calc-keys.scientific { gap:6px; min-width:470px; } .calc-keys.scientific .calc-key { font-size:11px; } }

/* URL codec. */
.url-codec-card { --url-codec-height:clamp(400px,50vh,600px); --url-codec-min-height:400px; }
.url-codec-toolbar { align-items:center; margin-bottom:12px; }
.url-codec-mode { min-width:0; display:flex; align-items:center; gap:10px; }
.url-codec-toolbar-label { flex:none; color:var(--text-2); font-size:11px; font-weight:600; white-space:nowrap; }
.url-codec-actions { flex:none; flex-wrap:nowrap; }
.url-codec-actions .icon-button { margin-left:2px; }
.url-codec-workspace { align-items:stretch; gap:14px; }
.url-codec-pane { min-width:0; display:flex; flex-direction:column; }
.url-codec-pane .pane-label { padding-inline:3px; }
.url-codec-pane .pane-label small { letter-spacing:0; }
.url-codec-editor,
.url-codec-output { min-height:var(--url-codec-min-height); height:var(--url-codec-height); }
.url-codec-editor { display:block; padding:16px 18px; resize:none; overflow:auto; border-color:var(--line); background:var(--surface); color:var(--text); font:13px/1.7 var(--mono); }
.url-codec-output { position:relative; }
.url-codec-output .url-codec-editor { width:100%; height:100%; min-height:0; padding-right:78px; }
#urlOutput { background:var(--surface-soft); color:var(--text-2); }

/* URL inspector. */
.tool-card.url-parser-card { padding:0; overflow:hidden; border-radius:var(--radius-md); }
.url-source-panel { padding:13px 16px 16px; background:var(--surface); }
.url-source-head { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:9px; }
.url-source-head > div:first-child { min-width:0; display:flex; align-items:center; gap:9px; }
.url-source-icon { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); color:var(--primary); }
.url-source-icon svg { width:15px; height:15px; }
.url-source-head > div:first-child > div { min-width:0; display:flex; flex-direction:column; gap:1px; }
.url-source-head strong { color:var(--text); font-size:11px; font-weight:650; }
.url-source-head small { color:var(--text-3); font:8px var(--mono); }
.url-engine-label { flex:none; display:flex; align-items:center; gap:6px; color:var(--text-3); font:9px var(--mono); }
.url-engine-label svg { width:13px; height:13px; color:var(--cyan); }
.url-parser-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
.url-parser-bar .button { height:48px; padding-inline:16px; }
.url-source-input,.url-result-input { min-width:0; min-height:48px; display:grid; grid-template-columns:34px minmax(0,1fr) 34px; align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:7px; background:var(--surface-soft); transition:border-color .18s var(--ease),box-shadow .18s var(--ease),background .18s var(--ease); }
.url-source-input:focus-within,.url-result-input:focus-within { border-color:#8fd4b4; background:var(--surface); box-shadow:0 0 0 2px rgba(42,170,116,.07); }
.url-source-input > svg,.url-result-input > svg { width:15px; height:15px; justify-self:center; color:var(--text-3); }
#tool-urlparser .url-source-input input,#tool-urlparser .url-result-input input { min-width:0; height:46px; padding:0 7px 0 0; border:0; border-radius:0; background:transparent; font-size:12px; box-shadow:none; }
#tool-urlparser .url-source-input input:focus,#tool-urlparser .url-result-input input:focus { border:0; background:transparent; box-shadow:none; }
.url-source-input .copy-button,.url-result-input .copy-button { width:29px; height:29px; justify-content:center; padding:0; border-color:transparent; background:transparent; }
.url-source-input .copy-button span,.url-result-input .copy-button span { display:none; }
.url-parser-overview { min-height:58px; display:grid; grid-template-columns:minmax(240px,1fr) minmax(450px,.95fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); }
.url-parser-overview > .inline-status { min-width:0; min-height:58px; margin:0; padding:0 16px; }
.url-parser-overview > .inline-status span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.url-parser-overview > .inline-status.error,.url-parser-overview > .inline-status.warning { border:0; border-radius:0; background:transparent; }
.url-parser-meta { min-width:0; display:grid; grid-template-columns:1.45fr .8fr .8fr; border-left:1px solid var(--line); background:var(--surface-soft); }
.url-parser-meta > span { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:8px 12px; border-left:1px solid var(--line); }
.url-parser-meta > span:first-child { border-left:0; }
.url-parser-meta small { color:var(--text-3); font:8px var(--mono); }
.url-parser-meta strong { min-width:0; overflow:hidden; color:var(--text-2); font:600 10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.url-inspector-workspace { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); background:var(--surface); }
.url-inspector-pane { min-width:0; display:flex; flex-direction:column; }
.url-query-pane { border-left:1px solid var(--line); }
.url-inspector-pane-head { min-height:46px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 15px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.url-inspector-pane-head > div { min-width:0; display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:11px; font-weight:650; }
.url-inspector-pane-head > div > svg { width:14px; height:14px; color:var(--primary); }
.url-inspector-pane-head > small { color:var(--text-3); font:8px var(--mono); }
.url-parts-form { flex:1; padding:16px; }
.url-parts-group + .url-parts-group { margin-top:16px; padding-top:15px; border-top:1px solid var(--line); }
.url-parts-group-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.url-parts-group-title > span { color:var(--text-2); font-size:10px; font-weight:650; }
.url-parts-group-title > small { color:var(--text-3); font:8px var(--mono); }
.url-connection-grid { display:grid; grid-template-columns:108px minmax(180px,1fr) 94px; gap:10px; }
.url-resource-grid { display:grid; grid-template-columns:minmax(220px,1fr) minmax(150px,.62fr); gap:10px; }
.url-auth-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.url-parts-form .field { gap:6px; }
.url-parts-form .field > span { color:var(--text-3); font-size:9px; }
.url-parts-form input,.url-parts-form select { height:38px; padding-inline:10px; background:var(--surface-soft); font-size:11px; }
.url-query-head { padding-right:12px; }
.url-query-head > div > small { margin-left:2px; color:var(--primary); font:9px var(--mono); }
.url-query-head .button { height:32px; }
.url-query-columns { min-height:30px; display:grid; grid-template-columns:32px minmax(100px,.78fr) minmax(130px,1.22fr) 32px; align-items:center; gap:8px; padding:0 9px; border-bottom:1px solid var(--line); background:var(--surface); color:var(--text-3); font:8px var(--mono); }
.url-query-columns > span:first-child { text-align:center; }
.url-query-list { flex:1; min-height:286px; max-height:390px; overflow:auto; background:var(--surface); }
.url-query-empty { min-height:286px; display:flex; align-items:center; justify-content:center; gap:8px; padding:20px; color:var(--text-3); font-size:10px; text-align:center; }
.url-query-empty svg { width:17px; height:17px; }
.url-query-row { min-height:52px; display:grid; grid-template-columns:32px minmax(100px,.78fr) minmax(130px,1.22fr) 32px; align-items:center; gap:8px; padding:7px 9px; border-bottom:1px solid var(--line); background:var(--surface); }
.url-query-row:nth-child(even) { background:var(--surface-soft); }
.url-query-index { color:var(--primary); font:650 9px var(--mono); text-align:center; }
.url-query-row input { min-width:0; height:35px; padding-inline:9px; background:var(--surface); font:10.5px var(--mono); }
.url-query-row .icon-button { width:30px; height:30px; border-color:transparent; background:transparent; color:var(--text-3); }
.url-query-row .icon-button:hover { color:var(--danger); border-color:var(--danger); background:var(--danger-soft); box-shadow:none; transform:none; }
.url-result-panel { padding:13px 16px 16px; border-top:1px solid var(--line); background:var(--surface-soft); }
.url-result-head { min-height:32px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.url-result-head > div { display:flex; align-items:center; gap:7px; color:var(--text-2); font-size:10px; font-weight:650; }
.url-result-head svg { width:14px; height:14px; color:var(--cyan); }
.url-result-head small { color:var(--text-3); font:8px var(--mono); }
#tool-urlparser .url-result-input { background:var(--surface); }
#tool-urlparser .url-result-input input { color:var(--text-2); }
.text-batch-stats, .config-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); overflow:hidden; }
.text-batch-stats > span, .config-summary > span { min-width:0; min-height:58px; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:9px 13px; border-left:1px solid var(--line); }
.text-batch-stats > span:first-child, .config-summary > span:first-child { border-left:0; }
.text-batch-stats small, .config-summary small { color:var(--text-3); font:9px var(--mono); }
.text-batch-stats strong, .config-summary strong { min-width:0; overflow:hidden; color:var(--text-2); font:600 11px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:980px) {
  .url-inspector-workspace { grid-template-columns:minmax(0,1fr); }
  .url-query-pane { border-top:1px solid var(--line); border-left:0; }
  .url-query-list,.url-query-empty { min-height:220px; }
}
@media (max-width:760px) {
  .url-parser-overview { grid-template-columns:minmax(0,1fr); }
  .url-parser-meta { min-height:56px; border-top:1px solid var(--line); border-left:0; }
}

/* Text batch processor. */
.text-batch-toolbar { align-items:flex-end; }
.text-batch-toolbar .field-row { flex:1; }
.text-operation-field { flex:1 1 300px; }
.text-batch-options { align-items:center; }
.text-batch-options .field { margin-left:auto; }
.text-batch-workspace .processor-code { min-height:350px; height:clamp(350px,46vh,540px); }
.text-batch-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }

/* Configuration transcoder. */
.config-toolbar { display:grid; grid-template-columns:minmax(130px,180px) 34px minmax(130px,180px) minmax(0,1fr); align-items:end; gap:10px; margin-bottom:14px; }
.config-swap { margin-bottom:3px; }
.config-actions { justify-self:end; padding-bottom:3px; }
.config-options { align-items:center; }
.config-workspace .processor-code { min-height:400px; height:clamp(400px,50vh,600px); }

/* SVG workbench. */
.svg-card { padding:0; overflow:hidden; }
.svg-toolbar { min-height:62px; margin:0; padding:12px 16px; border-bottom:1px solid var(--line); }
.svg-upload-button { cursor:pointer; }
.svg-upload-button input { display:none; }
.svg-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.svg-code-pane, .svg-preview-pane { min-width:0; display:flex; flex-direction:column; }
.svg-code-pane { border-right:1px solid var(--line); }
.svg-workspace .pane-label { height:40px; padding-inline:16px; border-bottom:1px solid var(--line); }
.svg-code { min-height:460px; height:clamp(460px,57vh,680px); margin:0; padding:20px; border:0; border-radius:0; resize:none; font-size:12px; line-height:1.65; white-space:pre; overflow:auto; }
.svg-code:focus { border:0; box-shadow:inset 0 0 0 2px rgba(42,170,116,.14); }
.svg-stage { position:relative; min-height:398px; height:calc(clamp(460px,57vh,680px) - 62px); display:grid; place-items:center; overflow:hidden; padding:22px; background-color:#f3f4f5; background-image:repeating-conic-gradient(#e6e7e9 0% 25%,#f8f8f9 0% 50%); background-position:50%; background-size:18px 18px; }
.svg-stage[data-background="white"] { background:#fff; }
.svg-stage[data-background="black"] { background:#121217; }
.svg-stage[data-background="custom"] { background:var(--svg-custom-background,#dce5e1); }
.svg-stage img { display:block; max-width:100%; max-height:100%; filter:drop-shadow(0 10px 18px rgba(23,30,27,.14)); }
.svg-stage.is-empty::after { content:"输入有效 SVG 后在此预览"; color:var(--text-3); font-size:11px; }
.svg-stage.is-empty img { display:none; }
.svg-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-height:62px; border-top:1px solid var(--line); background:var(--surface-soft); }
.svg-meta > span { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:9px 12px; border-left:1px solid var(--line); }
.svg-meta > span:first-child { border-left:0; }
.svg-meta small { color:var(--text-3); font:9px var(--mono); }
.svg-meta strong { overflow:hidden; color:var(--text-2); font:600 10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.svg-export-bar { min-height:82px; display:grid; grid-template-columns:minmax(250px,1fr) auto minmax(130px,170px) auto; align-items:end; gap:16px; padding:13px 16px; border-top:1px solid var(--line); }
.svg-dimensions { display:grid; grid-template-columns:minmax(90px,1fr) 32px minmax(90px,1fr); align-items:end; gap:8px; }
.svg-dimensions .icon-button { margin-bottom:4px; }
.svg-dimensions .icon-button.active { color:var(--primary); border-color:var(--primary); background:var(--primary-soft); }
.svg-backgrounds { height:40px; display:flex; align-items:center; gap:7px; }
.svg-backgrounds > span { margin-right:2px; color:var(--text-2); font-size:11px; font-weight:600; }
.svg-swatch { width:26px; height:26px; flex:none; border:1px solid var(--line-strong); border-radius:50%; box-shadow:inset 0 0 0 2px var(--surface); transition:.16s var(--ease); }
.svg-swatch:hover, .svg-swatch.active { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-soft),inset 0 0 0 2px var(--surface); transform:translateY(-1px); }
.svg-swatch.checker { background:repeating-conic-gradient(#dfe1e3 0% 25%,#fff 0% 50%) 50% / 8px 8px; }
.svg-swatch.white { background:#fff; }
.svg-swatch.black { background:#151519; }
.svg-swatch.custom { position:relative; display:block; overflow:hidden; cursor:pointer; background:var(--svg-swatch-color,#dce5e1); }
.svg-swatch.custom input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.svg-swatch.custom span { display:block; width:100%; height:100%; background:var(--svg-swatch-color,#dce5e1); }
.svg-export-actions { flex-wrap:nowrap; padding-bottom:3px; }

:root[data-theme="dark"] .url-query-row input { background:var(--surface-soft); }
:root[data-theme="dark"] .url-query-row:nth-child(even) { background:var(--surface); }
:root[data-theme="dark"] .svg-stage { background-color:#24242a; background-image:repeating-conic-gradient(#2c2c34 0% 25%,#202026 0% 50%); }
:root[data-theme="dark"] .svg-stage[data-background="white"] { background:#fff; }
:root[data-theme="dark"] .svg-stage[data-background="black"] { background:#0e0e11; }
:root[data-theme="dark"] .svg-code:focus { box-shadow:inset 0 0 0 2px rgba(90,217,158,.18); }

@media (max-width: 900px) { :root{--sidebar-width:76px;--content-pad:24px}.brand{justify-content:center;padding:0}.brand-copy,.nav-item span,.nav-group-label,.nav-search,.nav-empty,.nav-recent,.sidebar-foot span:last-child{display:none}.tool-nav{gap:8px}.nav-group{gap:3px}.nav-group.collapsed .nav-group-items{display:flex}.nav-item{grid-template-columns:1fr;padding:0;place-items:center;justify-items:center}.nav-item.active::before{left:0}.sidebar-foot{justify-content:center}.qr-layout,.imgb64-layout,.lottie-workspace{grid-template-columns:1fr}.qr-preview,.imgb64-preview{border-left:0;border-top:1px solid var(--line);padding-top:24px}.lottie-source{min-height:auto;padding:0 0 22px;border-right:0;border-bottom:1px solid var(--line)}.lottie-source-panel{flex:none;min-height:0}#lottieJsonMode{min-height:260px}.lottie-code{min-height:260px}.lottie-stage{height:460px}.imgc-compare,.imgc-stats{grid-template-columns:1fr}.check-grid{grid-template-columns:repeat(2,1fr)}.date-parts{grid-template-columns:repeat(3,1fr)}.processor-options .field.medium{flex:1 1 180px} }
@media (max-width: 780px) {
  .password-settings { grid-template-columns:minmax(0,1fr); }
  .password-charset-panel { border-top:1px solid var(--line); border-left:0; }
  .jwt-grid { grid-template-columns:minmax(0,1fr); }
  .jwt-grid .code-panel + .code-panel { border-top:1px solid var(--line); border-left:0; }
  .code-panel pre { min-height:260px; height:300px; }
}
@media (max-width: 640px) { :root{--content-pad:16px}.app-shell{display:block}.sidebar{width:248px;transform:translateX(-105%);transition:.25s var(--ease);box-shadow:var(--shadow-float)}.sidebar.open{transform:none}.brand{justify-content:flex-start;padding:0 9px}.brand-copy,.nav-item span,.sidebar-foot span:last-child{display:flex}.nav-search{display:flex}.nav-group-label{display:flex}.nav-recent{display:flex}.nav-item{grid-template-columns:20px 1fr;padding:0 11px;place-items:initial;align-items:center}.nav-item.active::before{left:-1px}.sidebar-foot{justify-content:flex-start}.main-area{width:100%}.mobile-menu{display:grid}.mobile-overlay{display:block;position:fixed;inset:0;z-index:25;background:rgba(30,30,38,.25);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:.2s}.mobile-overlay.show{opacity:1;pointer-events:auto}.topbar{padding:0 14px}.crumb{display:none}.shortcut-hint{display:none}.content{padding:16px}.panel-heading{align-items:flex-start;margin-top:8px}.panel-heading .button,.heading-badge{flex:none}.panel-heading p{font-size:12px}.panel-heading h1{font-size:23px}.tool-card{padding:14px;border-radius:12px}.card-toolbar{align-items:flex-start}.two-column,.jwt-grid,.stat-grid,.conversion-grid,.result-list,.json-workspace,.timestamp-derived{grid-template-columns:1fr}.field-row{align-items:stretch;flex-direction:column}.field.small,.field.medium{flex:auto}.check-grid{grid-template-columns:1fr 1fr}.qr-layout{grid-template-columns:1fr}.button span,.copy-button span{display:none}.copy-button{width:32px;justify-content:center;padding:0}.password-output code{font-size:13px}.code-input.tall{min-height:310px}#tool-json .json-pane .code-input,#tool-json .json-tree{min-height:220px}.cron-legend{display:none}.top-actions{gap:7px}.hash-item{grid-template-columns:58px minmax(0,1fr) auto}.panel-heading{gap:10px}.date-parts{grid-template-columns:repeat(2,1fr)}.lottie-toolbar{align-items:flex-start;flex-direction:column}.lottie-toolbar>.button-row{width:100%;justify-content:flex-end}.lottie-stage{height:340px;min-height:340px}.lottie-controls{align-items:flex-start;flex-direction:column}.lottie-options{width:100%;flex-wrap:wrap}.lottie-backgrounds{margin-left:auto}.lottie-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.lottie-meta>span:nth-child(3){border-left:0;border-top:1px solid var(--line)}.lottie-meta>span:nth-child(4){border-top:1px solid var(--line)}.processor-toolbar{align-items:flex-start;flex-wrap:wrap}.processor-toolbar>.button-row{margin-left:auto}.processor-toolbar .segmented{max-width:100%;overflow-x:auto}.processor-options{align-items:stretch;flex-direction:column}.processor-options .field.small,.processor-options .field.medium{width:100%;flex:auto}.processor-options .compact-toggle{width:100%}.processor-code{min-height:230px;height:280px}.processor-workspace .output-wrap .processor-code{min-height:230px;height:280px}.kv-row{grid-template-columns:minmax(92px,.7fr) minmax(0,1.3fr);gap:8px}.kv-tag{grid-column:2;justify-self:start}.kv-preview{max-height:220px} }

@media (max-width: 640px) {
  .tool-card.cron-card,
  .tool-card.password-card,
  .tool-card.jwt-card { padding:0; border-radius:var(--radius-md); }
  .cron-compose-head { align-items:flex-start; flex-direction:column; gap:12px; padding:13px 14px; }
  .cron-presets { width:100%; padding-bottom:1px; }
  .cron-composer { grid-template-columns:minmax(0,1fr) 52px; gap:11px; padding:15px 14px 13px; }
  .cron-expression-field { grid-column:1 / -1; }
  .cron-count-field { min-width:0; }
  .cron-count-field input { text-align:left; }
  .cron-run { width:52px; padding:0; }
  .cron-field-map { grid-template-columns:repeat(5,minmax(92px,1fr)); margin:0 14px 15px; overflow-x:auto; }
  .cron-field-map > span { min-height:57px; padding:9px 11px; }
  .cron-output-head { align-items:flex-start; flex-direction:column; gap:6px; padding:12px 14px; }
  .cron-output-head .inline-status { width:100%; }
  .result-list.cron-result-grid { grid-template-columns:minmax(0,1fr); padding:12px 14px 16px; }
  .result-item { min-height:64px; }
  .result-item time { font-size:15px; }

  .password-stage { padding:14px 14px 16px; }
  .password-stage-head { align-items:flex-start; }
  .password-stage .password-regenerate,
  .password-stage .password-copy { width:34px; padding:0; }
  .password-output { min-height:92px; padding-block:16px 12px; }
  .password-output code { font-size:18px; line-height:1.55; }
  .password-length-panel,
  .password-charset-panel { padding:18px 14px; }
  .password-length-value { margin:20px 0 12px; }
  .password-length-value output { font-size:34px; }
  .password-charset-panel .check-grid { gap:7px; margin-top:15px; }
  .checkbox-option { min-height:60px; padding:9px; }

  .jwt-input-head { padding:12px 14px; }
  .jwt-input-wrap { padding:14px; }
  .jwt-input-wrap .code-input { min-height:112px; height:112px; }
  .jwt-segment-key > span { grid-template-columns:5px minmax(0,1fr); padding-inline:7px; }
  .jwt-segment-key small { display:none; }
  .jwt-result-head { align-items:stretch; flex-direction:column; gap:10px; padding:12px 14px; }
  .jwt-summary { width:100%; grid-auto-columns:minmax(0,1fr); }
  .jwt-summary > span { padding-inline:8px; }
  .jwt-summary strong { max-width:100%; }
  .jwt-status { min-height:40px; padding-inline:14px; }
  .jwt-status.error { padding-inline:14px; }
  .code-panel > div { padding-inline:11px; }
  .code-panel pre { min-height:230px; height:270px; padding:15px; }
}
@media (max-width: 720px) {
  .markdown-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; }
  .markdown-editor-pane { border-right:0; border-bottom:1px solid var(--line); }
  .markdown-editor,
  .markdown-preview { min-height:360px; height:360px; }
  #markdownToolCard.is-fullscreen:not(.preview-only) .markdown-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) minmax(0,1fr); }
  #markdownToolCard.preview-only .markdown-workspace { grid-template-rows:minmax(0,1fr); }
  #markdownToolCard.preview-only .markdown-preview { width:100%; border-right:0; border-left:0; }
}
@media (max-width: 760px) {
  .image-options-grid { grid-template-columns:minmax(0,1fr); }
  .image-editor-layout, .merge-workspace { grid-template-columns:minmax(0,1fr); }
  .image-editor-controls, .merge-source-pane { padding:0 0 20px; border-right:0; border-bottom:1px solid var(--line); }
  .canvas-preview-frame { min-height:360px; padding:12px; }
  #tool-imgwatermark .image-editor-preview { position:static; max-height:none; }
  #tool-imgwatermark .canvas-preview-frame { height:auto; min-height:360px; max-height:none; }
  .merge-preview-frame { min-height:340px; }
  .curl-workspace { grid-template-columns:minmax(0,1fr); }
  .curl-input-pane { border-right:0; border-bottom:1px solid var(--line); }
  .curl-code { min-height:300px; height:340px; }
}
@media (max-width: 480px) {
  .markdown-main-toolbar { min-height:58px; padding:10px 12px; }
  .markdown-main-toolbar .button-row { flex-wrap:nowrap; gap:6px; }
  .markdown-file-meta small { display:none; }
  .markdown-formatbar { padding-inline:9px; }
  .markdown-editor { padding:18px; }
  .markdown-preview { padding:23px 19px 48px; }
  .markdown-preview h1 { font-size:24px; }
  .markdown-preview h2 { font-size:20px; }
  .image-batch-item { grid-template-columns:52px minmax(0,1fr) auto; gap:9px; padding:8px; }
  .image-batch-thumb { width:52px; height:52px; }
  .image-batch-actions { flex-direction:column; }
  .merge-settings { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .merge-settings > .control-block { grid-column:1 / -1; }
  .merge-list-item { grid-template-columns:22px 42px minmax(0,1fr); }
  .merge-thumb { width:42px; height:42px; }
  .merge-item-actions { grid-column:2 / -1; justify-content:flex-end; }
  .curl-toolbar { align-items:flex-start; flex-direction:column; padding:10px 12px; }
  .curl-toolbar .button-row { width:100%; justify-content:flex-end; }
  .curl-language { width:100%; grid-auto-columns:1fr; overflow-x:auto; }
  .curl-language button { min-width:68px; padding-inline:8px; }
  .curl-actions { justify-content:space-between; padding-inline:12px; }
  .curl-actions > span { max-width:145px; text-align:right; }
  .curl-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .curl-summary > div:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .curl-summary > div:nth-child(4) { border-top:1px solid var(--line); }
  .curl-warnings { padding-inline:12px; }
  .curl-footer .inline-status { padding-inline:12px; }
}
@media (max-width: 820px) {
  .qr-read-workspace, .color-workspace { grid-template-columns:minmax(0,1fr); }
  .qr-read-stage { min-height:320px; height:420px; }
  .qr-read-result .code-input { min-height:260px; height:300px; }
  .color-preview { min-height:220px; }
}
@media (max-width: 640px) {
  .diff-toolbar { align-items:stretch; flex-direction:column; }
  .diff-toolbar > .button-row:last-child { align-self:flex-end; }
  .diff-inputs .code-input { min-height:180px; height:220px; }
  .diff-output-head { align-items:flex-start; flex-direction:column; gap:7px; padding-block:9px; }
  .diff-grid { min-width:660px; grid-template-columns:38px minmax(270px,1fr) 38px minmax(270px,1fr); }
  .yaml-card > .card-toolbar { align-items:stretch; flex-direction:column; }
  .yaml-card > .card-toolbar > .button-row { justify-content:flex-end; }
  .yaml-workspace .processor-code, .jsonpath-workspace .processor-code { min-height:260px; height:300px; }
  .jsonpath-querybar { align-items:stretch; flex-direction:column; }
  .jsonpath-querybar .button { align-self:flex-end; }
  .uuid-controls { align-items:center; flex-wrap:wrap; gap:12px 16px; }
  .uuid-controls > .segmented { width:100%; grid-auto-columns:1fr; }
  .uuid-controls .field.small { flex:0 0 84px; }
  .uuid-output { min-height:230px; height:280px; }
  .qr-read-drop { min-height:220px; }
  .qr-read-stage { min-height:260px; height:340px; padding:10px; }
  .color-input-row { display:grid; grid-template-columns:52px minmax(0,1fr) auto; }
  .color-picker-button { width:52px; height:52px; flex-basis:52px; }
  .color-value { grid-template-columns:54px minmax(0,1fr) auto; padding-left:11px; }
  .contrast-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 980px) {
  .svg-export-bar { grid-template-columns:minmax(250px,1fr) auto minmax(130px,170px); }
  .svg-export-actions { grid-column:1 / -1; justify-content:flex-end; }
}
@media (max-width: 820px) {
  .svg-workspace { grid-template-columns:minmax(0,1fr); }
  .svg-code-pane { border-right:0; border-bottom:1px solid var(--line); }
  .svg-code { min-height:330px; height:390px; }
  .svg-stage { min-height:380px; height:430px; }
  .config-toolbar { grid-template-columns:minmax(120px,1fr) 34px minmax(120px,1fr); }
  .config-actions { grid-column:1 / -1; }
}
@media (max-width: 640px) {
  .url-source-panel { padding:11px 12px 13px; }
  .url-source-head { margin-bottom:7px; }
  .url-parser-bar { grid-template-columns:minmax(0,1fr) 40px; gap:7px; }
  .url-parser-bar .button { width:40px; padding:0; }
  .url-source-input,.url-result-input { grid-template-columns:30px minmax(0,1fr) 32px; }
  #tool-urlparser .url-source-input input,#tool-urlparser .url-result-input input { padding-right:4px; font-size:10.5px; }
  .url-parser-meta > span { padding-inline:8px; }
  .url-parts-form { padding:14px 12px; }
  .url-connection-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .url-protocol-field { grid-column:1; grid-row:1; }
  .url-port-field { grid-column:2; grid-row:1; }
  .url-host-field { grid-column:1 / -1; grid-row:2; }
  .url-resource-grid,.url-auth-grid { grid-template-columns:minmax(0,1fr); }
  .url-inspector-pane-head { padding-inline:12px; }
  .url-query-columns { display:none; }
  .url-query-row { min-height:88px; grid-template-columns:28px minmax(0,1fr) 30px; grid-template-rows:35px 35px; gap:5px 7px; padding:7px 9px; }
  .url-query-index { grid-column:1; grid-row:1 / 3; align-self:center; }
  .url-query-key { grid-column:2; grid-row:1; }
  .url-query-value { grid-column:2; grid-row:2; }
  .url-query-row .icon-button { grid-column:3; grid-row:1 / 3; align-self:center; }
  .url-result-panel { padding:10px 12px 13px; }
  .text-batch-toolbar { align-items:stretch; }
  .text-batch-toolbar .field-row { width:100%; }
  .text-batch-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .text-batch-stats > span:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .text-batch-stats > span:nth-child(4) { border-top:1px solid var(--line); }
  .config-toolbar { grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr); }
  .config-actions { width:100%; justify-content:flex-end; }
  .config-summary { grid-template-columns:minmax(0,1fr); }
  .config-summary > span { border-left:0; border-top:1px solid var(--line); }
  .config-summary > span:first-child { border-top:0; }
  .svg-toolbar { align-items:stretch; flex-direction:column; }
  .svg-toolbar > .button-row { justify-content:flex-end; }
  .svg-code { min-height:280px; height:330px; }
  .svg-stage { min-height:300px; height:340px; padding:12px; }
  .svg-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .svg-meta > span:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .svg-meta > span:nth-child(4) { border-top:1px solid var(--line); }
  .svg-export-bar { grid-template-columns:minmax(0,1fr); align-items:stretch; gap:12px; }
  .svg-backgrounds { justify-content:flex-start; }
  .svg-format-field { width:100%; }
  .svg-export-actions { grid-column:auto; justify-content:flex-end; }
}
@media (max-width: 420px) {
  .url-engine-label { display:none; }
  .url-parser-meta small { font-size:7px; }
  .url-parser-meta strong { font-size:9px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; } }

/* Utility classes (moved out of inline styles) */
.json-tree .tree-placeholder { color: var(--text-3); }
.highlight-output .placeholder { color: var(--text-3); }

/* Garden light: quiet canvas, crisp work surfaces, and deliberate color accents. */
:root:not([data-theme="dark"]) { color-scheme: light; }
:root:not([data-theme="dark"]) .sidebar {
  background: var(--sb-bg);
}
.brand-copy strong { font-size: 21px; font-weight: 750; letter-spacing: -.8px; line-height: 1.25; }
.brand-copy small { font-size: 10px; letter-spacing: .12em; }
:root:not([data-theme="dark"]) .nav-search input { box-shadow: 0 2px 5px rgba(34,73,53,.025); }
:root:not([data-theme="dark"]) .nav-item.active { color: var(--primary-dark); background: var(--sb-accent-soft); }
:root:not([data-theme="dark"]) .nav-item.active::before { left: 0; top: 12px; bottom: 12px; border-radius: 3px; }
:root:not([data-theme="dark"]) .nav-item.active svg { color: var(--primary-dark); }
:root:not([data-theme="dark"]) .topbar { background: rgba(255,255,252,.88); border-color: var(--line); }
:root:not([data-theme="dark"]) .main-area {
  background: radial-gradient(ellipse at 95% 0%, rgba(213,237,217,.4), transparent 48%);
}
:root:not([data-theme="dark"]) .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .18em; }
:root:not([data-theme="dark"]) .eyebrow::before { content: ""; width: 6px; height: 6px; background: #d99b59; border-radius: 2px; }
:root:not([data-theme="dark"]) .panel-heading h1 { letter-spacing: -.7px; font-weight: 650; }
:root:not([data-theme="dark"]) .heading-badge { background: #fff; border: 1px solid var(--line-strong); border-radius: 20px; padding: 6px 11px; }
:root:not([data-theme="dark"]) .button.primary { box-shadow: 0 3px 7px rgba(8,127,115,.16), inset 0 1px 0 rgba(255,255,255,.16); }
:root:not([data-theme="dark"]) .button.primary:hover { box-shadow: 0 5px 12px rgba(8,127,115,.22); }
:root:not([data-theme="dark"]) .button.secondary { background: #fff; border-color: var(--line-strong); color: var(--text-2); }
:root:not([data-theme="dark"]) .button.secondary:hover { background: var(--primary-soft); border-color: #aecfc0; color: var(--primary-dark); }
:root:not([data-theme="dark"]) .code-input { background: var(--syntax-surface); color: var(--text); }
:root:not([data-theme="dark"]) .segmented { background: #f0f6f1; box-shadow: none; }
:root:not([data-theme="dark"]) .segmented button.active { border-color: #cee4d6; box-shadow: 0 2px 4px rgba(34,73,53,.06); }
:root:not([data-theme="dark"]) .file-label { color: var(--text); }
:root:not([data-theme="dark"]) .file-label svg { color: var(--primary); }
:root:not([data-theme="dark"]) #jsonToolCard .card-toolbar { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
:root:not([data-theme="dark"]) #jsonToolCard .json-workspace { gap: 18px; }
:root:not([data-theme="dark"]) #jsonToolCard .json-pane { border-radius: 10px; outline: 1px solid var(--line); overflow: hidden; }
:root:not([data-theme="dark"]) #jsonToolCard .pane-label { height: 39px; padding: 0 13px; background: #f3f8f3; border-bottom: 1px solid var(--line); color: var(--text-2); }
:root:not([data-theme="dark"]) #jsonToolCard .pane-label > span { display: flex; align-items: center; gap: 7px; }
:root:not([data-theme="dark"]) #jsonToolCard .pane-label > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d6a15d; }
:root:not([data-theme="dark"]) #jsonToolCard .json-pane:last-child .pane-label { background: #eff8f5; }
:root:not([data-theme="dark"]) #jsonToolCard .json-pane:last-child .pane-label > span::before { background: var(--primary); }
:root:not([data-theme="dark"]) #jsonToolCard .json-pane > .syntax-editor,
:root:not([data-theme="dark"]) #jsonToolCard .syntax-highlight,
:root:not([data-theme="dark"]) #jsonToolCard .code-input,
:root:not([data-theme="dark"]) #jsonToolCard .json-tree { border-radius: 0; }
:root:not([data-theme="dark"]) #jsonToolCard .code-input,
:root:not([data-theme="dark"]) #jsonToolCard .json-tree { border: 0; }
:root:not([data-theme="dark"]) #jsonToolCard .syntax-highlight { inset: 0; }
:root:not([data-theme="dark"]) #jsonToolCard .json-tree { background: #fff; padding: 12px; }
:root:not([data-theme="dark"]) #jsonToolCard .json-tree .tree-row:hover { background: var(--primary-soft); }
:root:not([data-theme="dark"]) #jsonStatus.success { padding: 0 10px; background: #f1f9f2; border-radius: 7px; }
@media (max-width: 640px) {
  :root:not([data-theme="dark"]) #jsonToolCard .json-workspace { gap: 14px; }
  :root:not([data-theme="dark"]) #jsonToolCard .card-toolbar { gap: 8px; flex-wrap: wrap; }
  :root:not([data-theme="dark"]) #jsonToolCard .card-toolbar > .button-row { margin-left: auto; }
}

/* Dark theme — the semantic palette is redefined, then hardcoded light surfaces are patched. */
:root[data-theme="dark"] {
  --bg: #17171b;
  --sidebar: #1c1c21;
  --surface: #222228;
  --surface-soft: #1d1d23;
  --surface-hover: #292930;
  --text: #e9e9ef;
  --text-2: #a7a7b3;
  --text-3: #74747f;
  --line: #2c2c34;
  --line-strong: #3a3a44;
  --primary: #5ad99e;
  --primary-dark: #6ee0ab;
  --primary-soft: #1a2b23;
  --success: #43c48c;
  --success-soft: #17281f;
  --warning: #e0a63e;
  --warning-soft: #2c2510;
  --danger: #ef6f77;
  --danger-soft: #2f1a1c;
  --cyan: #49b7cf;
  --syntax-surface: #191a1f;
  --syntax-plain: #c9d1d9;
  --syntax-comment: #8b949e;
  --syntax-keyword: #ff7b72;
  --syntax-string: #a5d6ff;
  --syntax-number: #79c0ff;
  --syntax-title: #d2a8ff;
  --syntax-type: #ffa657;
  --syntax-attr: #7ee787;
  --syntax-variable: #c9d1d9;
  --syntax-selection: rgba(56,139,253,.25);
  --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 12px 34px rgba(0,0,0,.45);
  --shadow-float: 0 8px 24px rgba(0,0,0,.55);
  color-scheme: dark;
}
:root[data-theme="dark"] .topbar { background: rgba(23,23,27,.82); }
:root[data-theme="dark"] {
  --sb-bg: #16181d;
  --sb-bg-soft: #1b1e25;
  --sb-surface: #24272f;
  --sb-text: #c8ccd6;
  --sb-text-strong: #ffffff;
  --sb-text-dim: #7b8090;
  --sb-heading: #5b6070;
  --sb-accent: #34d399;
  --sb-accent-soft: rgba(52,211,153,.13);
  --sb-hover: rgba(255,255,255,.05);
  --sb-line: rgba(255,255,255,.07);
  --sb-kbd-bg: rgba(255,255,255,.05);
  --sb-scroll: rgba(255,255,255,.14);
  --sb-logo-shadow: 0 4px 14px rgba(0,0,0,.4);
  --sb-active-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
:root[data-theme="dark"] .icon-button { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .icon-button:hover { background: var(--surface); border-color: var(--primary); }
:root[data-theme="dark"] .quick-tool-trigger { background:rgba(255,255,255,.04); }
:root[data-theme="dark"] .quick-tool-trigger:hover,
:root[data-theme="dark"] .quick-tool-trigger:focus-visible,
:root[data-theme="dark"] .quick-tool-picker.is-open .quick-tool-trigger { border-color:rgba(90,217,158,.45); background:var(--surface); }
:root[data-theme="dark"] .quick-tool-panel { box-shadow:0 20px 60px rgba(0,0,0,.52),0 2px 8px rgba(0,0,0,.32); }
:root[data-theme="dark"] .quick-tool-item.active { border-color:rgba(90,217,158,.27); }
:root[data-theme="dark"] .copy-button { background: var(--surface); }
:root[data-theme="dark"] .segmented button.active,
:root[data-theme="dark"] .unit-switch input:checked + span { color:var(--primary); border-color:var(--line-strong); background:var(--surface); box-shadow:0 1px 3px rgba(0,0,0,.4); }
:root[data-theme="dark"] input:focus, :root[data-theme="dark"] textarea:focus, :root[data-theme="dark"] select:focus { background: var(--surface); border-color: var(--primary); }
:root[data-theme="dark"] input[type="range"],
:root[data-theme="dark"] input[type="range"]:focus,
:root[data-theme="dark"] input[type="range"]:focus-visible { background: transparent; border: 0; box-shadow: none; }
:root[data-theme="dark"] input[type="range"]::-webkit-slider-runnable-track {
  border-color: rgba(90,217,158,.28);
  background: linear-gradient(to right, var(--primary) 0 var(--range-progress), var(--primary-soft) var(--range-progress) 100%);
}
:root[data-theme="dark"] input[type="range"]::-moz-range-track { background: var(--primary-soft); border-color: rgba(90,217,158,.28); }
:root[data-theme="dark"] input[type="range"]::-moz-range-progress { background: var(--primary); }
:root[data-theme="dark"] input[type="range"]::-webkit-slider-thumb,
:root[data-theme="dark"] input[type="range"]::-moz-range-thumb { border-color: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
:root[data-theme="dark"] .strength-track { background: var(--primary-soft); border-color: rgba(90,217,158,.28); }
:root[data-theme="dark"] .code-input { background: var(--surface-soft); color: var(--text); }
:root[data-theme="dark"] .syntax-editor,
:root[data-theme="dark"] .syntax-editor > .syntax-highlight { background:var(--syntax-surface); }
:root[data-theme="dark"] .markdown-editor,
:root[data-theme="dark"] .markdown-editor:focus { background:#1b1b20; color:var(--text); }
:root[data-theme="dark"] .markdown-preview code { color:#f091a2; }
:root[data-theme="dark"] .markdown-preview pre { border-color:#383944; background:#18191e; color:#ececf2; }
:root[data-theme="dark"] #markdownToolCard.is-fullscreen .icon-button[aria-pressed="true"] { border-color:var(--primary); background:var(--primary-soft); }
:root[data-theme="dark"] .json-tree .tree-row:hover { background: rgba(90,217,158,.12); }
:root[data-theme="dark"] .json-tree .tree-children { border-left-color: var(--line-strong); }
:root[data-theme="dark"] .json-tree .key { color: #8fb0ff; }
:root[data-theme="dark"] .json-tree .tree-meta { color:var(--text-3); }
:root[data-theme="dark"] .json-tree .string { color: #4fc48a; }
:root[data-theme="dark"] .json-tree .number { color: #e3a969; }
:root[data-theme="dark"] .json-tree .boolean { color: #8fdfbd; }
:root[data-theme="dark"] .json-tree .null { color: #8a8a96; }
:root[data-theme="dark"] .highlight-output mark { color: #e9e9ef; background: rgba(90,217,158,.30); box-shadow: 0 0 0 1px rgba(90,217,158,.55); }
:root[data-theme="dark"] .query-presets button:hover { border-color:var(--primary); background:var(--primary-soft); }
:root[data-theme="dark"] .qr-read-stage { background-color:#24242a; background-image:repeating-conic-gradient(#2c2c34 0% 25%,#202026 0% 50%); }
:root[data-theme="dark"] .qr-read-stage canvas { box-shadow:0 8px 28px rgba(0,0,0,.42); }
:root[data-theme="dark"] .color-picker-button svg { background:rgba(255,255,255,.9); color:#222; }
:root[data-theme="dark"] .password-output { border-color: var(--line-strong); }
:root[data-theme="dark"] .password-output code { color: #c5f5dc; }
:root[data-theme="dark"] .checkbox-option:hover { border-color: var(--primary); background: var(--surface-hover); }
:root[data-theme="dark"] .checkbox-option:has(input:checked) { border-color:rgba(90,217,158,.28); background:var(--primary-soft); }
:root[data-theme="dark"] .checkbox-mark { background: var(--surface); border-color: var(--line-strong); }
:root[data-theme="dark"] .code-panel pre { background: var(--surface-soft); color: var(--text); }
:root[data-theme="dark"] .cron-presets button:hover { border-color:var(--primary); }
:root[data-theme="dark"] .result-item:hover { border-color:rgba(90,217,158,.35); box-shadow:0 5px 15px rgba(0,0,0,.22); }
:root[data-theme="dark"] .password-stage { background-color:#171c1f; }
:root[data-theme="dark"] .password-stage .strength-track { border-color:rgba(255,255,255,.09); background:rgba(255,255,255,.07); }
:root[data-theme="dark"] .jwt-header-panel pre,
:root[data-theme="dark"] .jwt-payload-panel pre { background:var(--surface-soft); }
:root[data-theme="dark"] #curlOutput { background:#1b1b20; }
:root[data-theme="dark"] .curl-code:focus { background:var(--surface-soft); box-shadow:inset 0 0 0 2px rgba(90,217,158,.18); }
:root[data-theme="dark"] .drop-zone { border-color: var(--line-strong); }
:root[data-theme="dark"] .file-preview { background: var(--surface); }
:root[data-theme="dark"] .imgb64-frame img { background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
:root[data-theme="dark"] .imgc-frame img { background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
:root[data-theme="dark"] .image-batch-thumb,
:root[data-theme="dark"] .merge-thumb { background:repeating-conic-gradient(#2a2a32 0% 25%,#1d1d23 0% 50%) 50% / 12px 12px; }
:root[data-theme="dark"] .canvas-preview-frame { background-color:#24242a; background-image:repeating-conic-gradient(#2c2c34 0% 25%,#202026 0% 50%); }
:root[data-theme="dark"] .position-grid button:hover { background:var(--surface-hover); }
:root[data-theme="dark"] .position-grid button.active { border-color:var(--primary); background:var(--primary-soft); }
:root[data-theme="dark"] .favicon-card .favicon-thumb { background: repeating-conic-gradient(#2a2a32 0% 25%, #1d1d23 0% 50%) 50% / 12px 12px; }
:root[data-theme="dark"] .pdf-item .pdf-thumb { background: repeating-conic-gradient(#2a2a32 0% 25%, #1d1d23 0% 50%) 50% / 12px 12px; }
:root[data-theme="dark"] .lottie-stage[data-background="checker"] { background-color:#24242a; background-image:repeating-conic-gradient(#2c2c34 0% 25%, #202026 0% 50%); }
:root[data-theme="dark"] .toggle-track::after { background:#d9d9df; box-shadow:0 1px 3px rgba(0,0,0,.4); }
:root[data-theme="dark"] .lottie-swatch.checker { background:repeating-conic-gradient(#363640 0% 25%, #222228 0% 50%) 50% / 8px 8px; }
:root[data-theme="dark"] .imgcrop-stage .cropper-modal { background:rgba(0,0,0,.62); }
:root[data-theme="dark"] .imgcrop-stage .cropper-view-box { outline-color:rgba(90,217,158,.9); }
:root[data-theme="dark"] .imgcrop-stage .cropper-line,
:root[data-theme="dark"] .imgcrop-stage .cropper-point { background-color:var(--primary); }
:root[data-theme="dark"] .skeleton,
:root[data-theme="dark"] .skeleton-line { background: linear-gradient(90deg,#242430 25%,#2e2e3b 50%,#242430 75%); background-size: 200% 100%; }

/* JSON type generator. */
.json-type-toolbar .segmented { overflow-x:auto; }
.json-type-options .field { flex:0 1 260px; }
.json-type-workspace .processor-code { min-height:430px; height:clamp(430px,52vh,620px); }
.json-type-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.json-type-summary > span { min-width:0; min-height:58px; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:9px 13px; border-left:1px solid var(--line); }
.json-type-summary > span:first-child { border-left:0; }
.json-type-summary small { color:var(--text-3); font:9px var(--mono); }
.json-type-summary strong { overflow:hidden; color:var(--text-2); font:600 11px var(--mono); text-overflow:ellipsis; white-space:nowrap; }

/* Page-level PDF workbench. */
.pdf-workbench-card { overflow:hidden; }
.pdf-workbench-card .drop-zone.has-pages { min-height:82px; }
.pdf-workbench-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) 92px 92px auto; align-items:end; gap:10px; margin-top:16px; }
.pdf-workbench-stat { height:40px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 12px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.pdf-workbench-stat span { color:var(--text-3); font:9px var(--mono); }
.pdf-workbench-stat strong { color:var(--primary); font:650 13px var(--mono); }
.pdf-edit-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-top:18px; }
.pdf-edit-empty { grid-column:1 / -1; min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px dashed var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-3); }
.pdf-edit-empty svg { width:28px; height:28px; }
.pdf-edit-empty strong { color:var(--text-2); font-size:12px; }
.pdf-edit-empty span { font-size:10px; }
.pdf-edit-page { position:relative; min-width:0; display:flex; flex-direction:column; gap:9px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); transition:border-color .16s var(--ease),box-shadow .16s var(--ease),opacity .16s var(--ease); }
.pdf-edit-page:hover { border-color:var(--line-strong); box-shadow:0 7px 18px rgba(31,31,38,.06); }
.pdf-edit-page.is-dragging { opacity:.42; border-color:var(--primary); }
.pdf-edit-index { position:absolute; z-index:2; top:16px; left:16px; min-width:25px; height:22px; display:grid; place-items:center; padding:0 6px; border-radius:6px; background:rgba(31,32,39,.86); color:#fff; font:650 10px var(--mono); }
.pdf-drag-handle { position:absolute; z-index:2; top:15px; right:15px; width:25px; height:25px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.18); border-radius:6px; background:rgba(31,32,39,.78); color:#fff; cursor:grab; }
.pdf-drag-handle:active { cursor:grabbing; }
.pdf-drag-handle svg { width:14px; height:14px; }
.pdf-edit-thumb { width:100%; aspect-ratio:4 / 3; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:6px; background-color:#f2f2f4; background-image:repeating-conic-gradient(#e7e7eb 0% 25%,#fff 0% 50%); background-size:12px 12px; }
.pdf-edit-page button.pdf-edit-thumb { position:relative; padding:0; color:inherit; cursor:zoom-in; transition:border-color .16s var(--ease),box-shadow .16s var(--ease); }
.pdf-edit-page button.pdf-edit-thumb:hover,.pdf-edit-page button.pdf-edit-thumb:focus-visible { border-color:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.12); outline:0; }
.pdf-edit-thumb img { display:block; max-width:72%; max-height:72%; transform:rotate(var(--pdf-page-rotation,0deg)); box-shadow:0 8px 20px rgba(28,29,35,.16); transition:transform .2s var(--ease); }
.pdf-edit-thumb > svg { width:30px; height:30px; color:var(--text-3); }
.pdf-preview-trigger { position:relative; }
.pdf-preview-hint { position:absolute; right:7px; bottom:7px; width:25px; height:25px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.2); border-radius:6px; background:rgba(31,32,39,.82); color:#fff; opacity:0; transform:translateY(3px); transition:opacity .16s var(--ease),transform .16s var(--ease); pointer-events:none; }
.pdf-preview-hint svg { width:13px!important; height:13px!important; color:currentColor!important; }
.pdf-preview-trigger:hover .pdf-preview-hint,.pdf-preview-trigger:focus-visible .pdf-preview-hint { opacity:1; transform:none; }
.pdf-edit-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.pdf-edit-copy strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.pdf-edit-copy span { overflow:hidden; color:var(--text-3); font:9px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.pdf-edit-actions { display:grid; grid-template-columns:repeat(5,32px); justify-content:space-between; gap:5px; }
.pdf-edit-actions .icon-button { width:32px; height:32px; }
.pdf-edit-actions .icon-button svg { width:14px; height:14px; }
.pdf-edit-actions .icon-button.danger { color:var(--danger); }
.pdf-edit-actions .icon-button.danger:hover { border-color:var(--danger); background:var(--danger-soft); }
.pdf-split-bar { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; align-items:end; gap:10px; margin-top:18px; padding-top:17px; border-top:1px solid var(--line); }

/* DOCX conversion preview and export. */
.docx-convert-card { overflow:hidden; }
.docx-options { flex-wrap:wrap; margin-top:16px; }
.docx-options .field { flex:0 1 190px; }
.docx-options .docx-output-field { flex:1 1 260px; min-width:260px; }
.docx-output-field legend { margin-bottom:7px; padding:0; color:var(--text-2); font-size:11px; font-weight:600; }
.docx-preview-shell { position:relative; min-height:240px; max-height:680px; margin-top:18px; overflow:auto; padding:24px; border:1px solid var(--line); border-radius:var(--radius-md); background:#eef0f2; scrollbar-width:thin; }
.docx-preview-empty { min-height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-3); text-align:center; }
.docx-preview-empty svg { width:30px; height:30px; color:var(--primary); }
.docx-preview-empty strong { color:var(--text-2); font-size:12px; }
.docx-preview-empty span { font-size:10px; }
.docx-preview { display:flex; flex-direction:column; align-items:center; gap:18px; }
.docx-preview:empty { display:none; }
.docx-preview .docx-wrapper { width:100%; padding:0!important; background:transparent!important; }
.docx-preview .docx { margin:0 auto 18px; box-shadow:0 8px 24px rgba(31,32,39,.16); }
.docx-preview-shell.is-rendered { min-height:320px; }
.docx-result-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-top:16px; }
.docx-result-card { min-width:0; display:flex; flex-direction:column; gap:7px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.docx-result-thumb { width:100%; height:180px; display:grid; place-items:center; overflow:hidden; padding:0; border:1px solid var(--line); border-radius:6px; background:#fff; cursor:zoom-in; }
.docx-result-thumb:hover,.docx-result-thumb:focus-visible { border-color:var(--primary); box-shadow:0 0 0 3px rgba(42,170,116,.12); outline:0; }
.docx-result-thumb img { display:block; width:100%; height:100%; object-fit:contain; }
.docx-result-card strong { overflow:hidden; color:var(--text-2); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.docx-result-card small { color:var(--text-3); font:9px var(--mono); }
.docx-result-actions { display:flex; gap:6px; }
.docx-result-actions .button { flex:1; min-height:30px; padding:0 8px; font-size:10px; }
.docx-result-actions .button svg { width:13px; height:13px; }
.docx-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
:is(.docx-extract-options,.pdf-watermark-options) .field { flex:1 1 180px; }
.docx-extract-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; margin-top:16px; }
.docx-extract-workspace > .field { min-width:0; }
.docx-extract-workspace .processor-code { min-height:440px; height:440px; resize:vertical; }
.docx-extract-preview-field { min-width:0; }
.docx-extract-preview { min-height:440px; max-height:620px; overflow:auto; padding:18px; border:1px solid var(--line); border-radius:var(--radius-md); background:#f0f0f2; }
.docx-extract-preview .docx-wrapper { margin:0 auto; }
.docx-images-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; margin-top:16px; }
.docx-image-card { min-width:0; display:flex; flex-direction:column; gap:7px; padding:10px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.docx-image-thumb { height:160px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:6px; background-color:#f4f4f5; background-image:repeating-conic-gradient(#e7e7eb 0% 25%,#fff 0% 50%); background-size:12px 12px; }
.docx-image-thumb img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.docx-image-card strong,.docx-image-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.docx-image-card strong { color:var(--text-2); font-size:11px; }
.docx-image-card small { color:var(--text-3); font:9px var(--mono); }
.docx-image-card .button { min-height:30px; margin-top:auto; font-size:10px; }
.docx-empty { grid-column:1 / -1; min-height:170px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px dashed var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--text-3); text-align:center; }
.docx-empty svg { width:28px; height:28px; }
.docx-empty strong { color:var(--text-2); font-size:12px; }
.docx-empty span { font-size:10px; }
.docx-inspect-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:16px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.docx-inspect-summary > span { min-height:66px; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:10px 13px; border-left:1px solid var(--line); }
.docx-inspect-summary > span:first-child { border-left:0; }
.docx-inspect-summary small { color:var(--text-3); font:9px var(--mono); }
.docx-inspect-summary strong { color:var(--primary); font:650 18px var(--mono); }
.docx-inspect-list { display:grid; gap:8px; margin-top:14px; }
.docx-inspect-row { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1.2fr) auto; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.docx-inspect-row.is-warning { border-color:rgba(214,145,35,.48); background:rgba(214,145,35,.07); }
.docx-inspect-row > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.docx-inspect-row strong,.docx-inspect-row span { overflow:hidden; color:var(--text-2); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.docx-inspect-row small { overflow:hidden; color:var(--text-3); font:9px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.docx-inspect-row em { color:var(--primary); font:600 9px var(--mono); font-style:normal; white-space:nowrap; }
.docx-inspect-row.is-warning em { color:#b17616; }
.pdf-watermark-preview { min-height:380px; display:grid; place-items:center; overflow:auto; margin-top:16px; padding:20px; border:1px solid var(--line); border-radius:var(--radius-md); background:#eff0f2; }
.pdf-watermark-preview img { display:block; max-width:min(100%,720px); max-height:620px; background:#fff; box-shadow:0 12px 28px rgba(20,21,26,.16); }
:root[data-theme="dark"] .docx-preview-shell { background:#282a31; }
:root[data-theme="dark"] .docx-result-thumb { background:#fff; }
@media (max-width:640px) {
  .docx-options .field,.docx-options .docx-output-field { flex:auto; min-width:0; width:100%; }
  .docx-preview-shell { max-height:520px; padding:12px; }
  .docx-preview .docx { transform-origin:top center; }
  .docx-extract-workspace { grid-template-columns:1fr; }
  .docx-extract-preview { min-height:280px; }
  .docx-inspect-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docx-inspect-summary > span:nth-child(odd) { border-left:0; }
  .docx-inspect-summary > span:nth-child(n+3) { border-top:1px solid var(--line); }
  .docx-inspect-row { grid-template-columns:1fr; gap:8px; }
  .docx-inspect-row em { white-space:normal; }
}

/* Shared high-resolution PDF page preview. */
body.pdf-page-preview-open { overflow:hidden; }
.pdf-page-preview { position:fixed; inset:0; z-index:140; display:grid; place-items:center; padding:18px; }
.pdf-page-preview.hidden { display:none; }
.pdf-page-preview-backdrop { position:absolute; inset:0; background:rgba(18,19,23,.72); backdrop-filter:blur(5px); }
.pdf-page-preview-dialog { position:relative; z-index:1; width:min(1280px,calc(100vw - 36px)); height:min(900px,calc(100dvh - 36px)); min-height:360px; display:grid; grid-template-rows:68px minmax(0,1fr) 44px; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:8px; background:var(--surface); box-shadow:0 30px 80px rgba(10,11,15,.38); outline:0; }
.pdf-page-preview-header { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:10px 12px 10px 16px; border-bottom:1px solid var(--line); background:var(--surface); }
.pdf-page-preview-copy { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:10px; row-gap:2px; }
.pdf-page-preview-copy > span { grid-row:1 / 3; align-self:stretch; display:flex; align-items:center; padding-right:12px; border-right:1px solid var(--line); color:var(--primary); font:650 9px var(--mono); }
.pdf-page-preview-copy strong,.pdf-page-preview-copy small { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pdf-page-preview-copy strong { color:var(--text); font-size:12px; }
.pdf-page-preview-copy small { color:var(--text-3); font:9px var(--mono); }
.pdf-page-preview-tools { flex:none; display:flex; align-items:center; gap:6px; }
.pdf-page-preview-tools .icon-button { width:36px; height:36px; }
.pdf-page-preview-tools .icon-button svg { width:16px; height:16px; }
.pdf-page-preview-tools .icon-button.is-confirmed { border-color:var(--primary); background:var(--primary-soft); color:var(--primary); }
.pdf-page-preview-tools output { width:46px; color:var(--text-2); font:600 10px var(--mono); text-align:center; }
.pdf-page-preview-divider { width:1px; height:22px; margin:0 2px; background:var(--line); }
.pdf-page-preview-close { color:var(--text-2); }
.pdf-page-preview-stage { position:relative; min-width:0; min-height:0; display:flex; align-items:flex-start; justify-content:flex-start; overflow:auto; padding:27px; overscroll-behavior:contain; background:#23242a; scrollbar-color:#656975 #23242a; }
.pdf-page-preview-sheet { flex:none; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); place-items:center; margin:auto; overflow:hidden; background:#fff; box-shadow:0 16px 42px rgba(0,0,0,.34); transition:width .14s var(--ease),height .14s var(--ease); }
.pdf-page-preview-sheet img,.pdf-page-preview-sheet canvas { min-width:0; min-height:0; width:100%; height:100%; display:block; object-fit:contain; background:#fff; }
.pdf-page-preview-loading { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:24px; color:#d8dbe3; font-size:11px; text-align:center; pointer-events:none; }
.pdf-page-preview-loading svg { width:24px; height:24px; color:#69dfa8; animation:pdf-preview-spin .9s linear infinite; }
.pdf-page-preview-loading.is-error { color:#ffb6b6; }
.pdf-page-preview-loading.is-error svg { display:none; }
@keyframes pdf-preview-spin { to { transform:rotate(360deg); } }
.pdf-page-preview-nav { position:absolute; z-index:3; top:50%; width:42px; height:48px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.16); border-radius:7px; background:rgba(25,26,31,.78); color:#fff; box-shadow:0 8px 20px rgba(0,0,0,.18); transform:translateY(-50%); backdrop-filter:blur(8px); transition:border-color .16s var(--ease),background .16s var(--ease),opacity .16s var(--ease); }
.pdf-page-preview-nav.is-prev { left:14px; }
.pdf-page-preview-nav.is-next { right:14px; }
.pdf-page-preview-nav:hover:not(:disabled),.pdf-page-preview-nav:focus-visible { border-color:#69dfa8; background:rgba(38,40,46,.94); outline:0; }
.pdf-page-preview-nav:disabled { opacity:.25; cursor:not-allowed; }
.pdf-page-preview-nav svg { width:20px; height:20px; }
.pdf-page-preview-footer { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:0 16px; border-top:1px solid var(--line); background:var(--surface); }
.pdf-page-preview-footer strong { color:var(--primary); font:650 10px var(--mono); }
.pdf-page-preview-footer span { min-width:0; overflow:hidden; color:var(--text-2); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.pdf-page-preview-footer small { color:var(--text-3); font:9px var(--mono); }

/* chmod calculator. */
.chmod-result { display:grid; grid-template-columns:170px 190px minmax(0,1fr); min-height:104px; overflow:hidden; border:1px solid #30323a; border-radius:var(--radius-md); background:#202128; color:#f4f5f7; }
.chmod-result > div { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:7px; padding:15px 17px; border-left:1px solid rgba(255,255,255,.09); }
.chmod-result > div:first-child { border-left:0; }
.chmod-result span { color:#858b98; font:9px var(--mono); }
.chmod-octal output { color:#69dfa8; font:650 36px/1 var(--mono); font-variant-numeric:tabular-nums; }
.chmod-result-copy code { color:#dce2ea; font:600 16px var(--mono); white-space:nowrap; }
.chmod-command { position:relative; padding-right:52px!important; }
.chmod-command code { overflow:hidden; color:#f4d17b; font:12px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.chmod-command .copy-button { position:absolute; top:50%; right:12px; width:32px; padding:0; border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.05); color:#dce2ea; transform:translateY(-50%); }
.chmod-command .copy-button:hover { border-color:#69dfa8; color:#69dfa8; }
.chmod-inputs { display:grid; grid-template-columns:150px 210px minmax(220px,1fr) auto; align-items:end; gap:12px; margin-top:18px; }
.chmod-recursive { height:40px; padding:0 4px; }
.chmod-presets { display:flex; align-items:center; gap:14px; margin:16px 0; }
.chmod-presets > span,.chmod-special > span { flex:none; color:var(--text-2); font-size:11px; font-weight:600; }
.chmod-matrix { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.chmod-matrix-head,.chmod-matrix-row { display:grid; grid-template-columns:minmax(145px,1fr) repeat(3,minmax(72px,.55fr)) 62px; align-items:center; min-width:520px; }
.chmod-matrix-head { min-height:40px; color:var(--text-3); font:9px var(--mono); }
.chmod-matrix-head > span { display:flex; align-items:center; justify-content:center; gap:5px; }
.chmod-matrix-head > span:first-child { justify-content:flex-start; padding-left:14px; }
.chmod-matrix-head svg { width:13px; height:13px; }
.chmod-matrix-row { min-height:58px; border-top:1px solid var(--line); }
.chmod-matrix-row:nth-child(odd) { background:var(--surface); }
.chmod-matrix-row > strong { display:flex; flex-direction:column; gap:3px; padding-left:14px; font-size:11px; }
.chmod-matrix-row > strong small { color:var(--text-3); font:8px var(--mono); }
.chmod-matrix-row > label { display:grid; place-items:center; height:100%; border-left:1px solid var(--line); cursor:pointer; }
.chmod-matrix-row > label input { position:absolute; width:1px; height:1px; opacity:0; }
.chmod-matrix-row > label span { width:38px; height:34px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:6px; background:var(--surface); color:var(--text-3); font:600 12px var(--mono); transition:.16s var(--ease); }
.chmod-matrix-row > label:hover span { border-color:var(--primary); }
.chmod-matrix-row > label input:checked + span { border-color:var(--primary); background:var(--primary); color:#fff; box-shadow:0 0 0 3px rgba(42,170,116,.1); }
.chmod-matrix-row > label input:focus-visible + span { outline:3px solid rgba(42,170,116,.17); outline-offset:2px; }
.chmod-matrix-row > output { display:grid; place-items:center; height:100%; border-left:1px solid var(--line); color:var(--primary); font:650 16px var(--mono); }
.chmod-special { display:grid; grid-template-columns:auto repeat(3,minmax(120px,1fr)); align-items:center; gap:10px; margin-top:16px; }
.chmod-special .checkbox-option { position:relative; min-height:54px; padding-block:8px; }
.chmod-special .checkbox-option > input { width:1px; height:1px; }
:root[data-theme="dark"] .pdf-edit-thumb { background-color:#24242a; background-image:repeating-conic-gradient(#2c2c34 0% 25%,#202026 0% 50%); }
:root[data-theme="dark"] .pdf-edit-page:hover { box-shadow:0 7px 18px rgba(0,0,0,.28); }
:root[data-theme="dark"] .pdf-page-preview-dialog { border-color:rgba(255,255,255,.12); }
:root[data-theme="dark"] .chmod-matrix-row > label span { background:var(--surface-soft); }

@media (max-width: 760px) {
  .url-codec-card .url-codec-toolbar { align-items:stretch; flex-direction:column; gap:10px; }
  .url-codec-mode { justify-content:space-between; }
  .url-codec-actions { justify-content:flex-end; }
  .pdf-workbench-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pdf-workbench-toolbar .field { grid-column:1 / -1; }
  .pdf-workbench-toolbar > .button { grid-column:1 / -1; justify-content:center; }
  .pdf-split-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pdf-split-bar .field { grid-column:1 / -1; }
  .pdf-split-bar .button { justify-content:center; }
  .chmod-result { grid-template-columns:1fr 1fr; }
  .chmod-command { grid-column:1 / -1; border-top:1px solid rgba(255,255,255,.09); border-left:0!important; }
  .chmod-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .chmod-inputs .field.grow { grid-column:1 / -1; }
  .chmod-special { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .chmod-special > span { grid-column:1 / -1; }
}
@media (max-width: 520px) {
  .json-type-toolbar { align-items:stretch; }
  .json-type-toolbar .segmented { width:100%; }
  .json-type-toolbar .button-row { width:100%; justify-content:flex-end; }
  .json-type-summary > span { padding-inline:9px; }
  .pdf-edit-list { grid-template-columns:minmax(0,1fr); }
  .pdf-edit-actions { grid-template-columns:repeat(5,34px); }
  .pdf-preview-hint { opacity:.9; transform:none; }
  .chmod-inputs { grid-template-columns:minmax(0,1fr); }
  #tool-chmod .heading-badge { display:none; }
  .chmod-inputs .field.grow { grid-column:auto; }
  .chmod-recursive { padding-left:2px; }
  .chmod-presets { align-items:flex-start; flex-direction:column; }
  .chmod-presets .segmented { width:100%; overflow-x:auto; }
  .chmod-matrix { overflow-x:auto; }
  .chmod-matrix-head,.chmod-matrix-row { grid-template-columns:100px repeat(3,48px) 42px; min-width:286px; }
  .chmod-matrix-head > span:first-child,.chmod-matrix-row > strong { padding-left:9px; }
  .chmod-matrix-head span { font-size:0; }
  .chmod-matrix-head span:first-child { font-size:9px; }
  .chmod-matrix-head svg { display:block; }
  .chmod-matrix-row > label span { width:34px; height:32px; }
  .chmod-special { grid-template-columns:minmax(0,1fr); }
  .chmod-special > span { grid-column:auto; }
}
@media (max-width: 640px) {
  .url-codec-card { --url-codec-height:300px; --url-codec-min-height:300px; }
  .url-codec-workspace { gap:18px; }
  .pdf-page-preview { padding:0; }
  .pdf-page-preview-dialog { width:100vw; height:100dvh; min-height:0; grid-template-rows:60px minmax(0,1fr) 46px; border:0; border-radius:0; }
  .pdf-page-preview-header { gap:8px; padding:8px 9px 8px 12px; }
  .pdf-page-preview-copy { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
  .pdf-page-preview-copy > span { display:none; }
  .pdf-page-preview-copy strong,.pdf-page-preview-copy small { max-width:128px; }
  .pdf-page-preview-tools { gap:4px; }
  .pdf-page-preview-tools .icon-button { width:34px; height:34px; }
  .pdf-page-preview-tools output,.pdf-page-preview-divider { display:none; }
  .pdf-page-preview-stage { padding:16px; }
  .pdf-page-preview-nav { width:36px; height:42px; }
  .pdf-page-preview-nav.is-prev { left:7px; }
  .pdf-page-preview-nav.is-next { right:7px; }
  .pdf-page-preview-footer { grid-template-columns:auto minmax(0,1fr); gap:9px; padding:0 12px; }
  .pdf-page-preview-footer small { display:none; }
}
@media (forced-colors: active) {
  .syntax-editor > .syntax-highlight { display:none; }
  .syntax-editor > textarea { color:CanvasText!important; -webkit-text-fill-color:CanvasText; background:Canvas!important; }
}

/* RSA key-pair workbench. */
.rsa-card { overflow:hidden; }
.rsa-toolbar { min-height:47px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.rsa-format { flex:none; }
.rsa-format button.active { border-color:var(--line-strong); box-shadow:0 1px 2px rgba(31,31,38,.08); }
.rsa-generate-controls { display:flex; align-items:flex-end; justify-content:flex-end; gap:10px; }
.rsa-size-field { width:174px; flex:none; }
.rsa-size-field select { height:36px; font-size:11px; }
.rsa-generate { min-width:132px; height:36px; }
.rsa-generate.is-loading svg { animation:rsa-spin .85s linear infinite; }
@keyframes rsa-spin { to { transform:rotate(360deg); } }
.rsa-generate:disabled,.rsa-pane-head button:disabled { opacity:.45; cursor:not-allowed; pointer-events:none; transform:none; box-shadow:none; }
.rsa-private-notice { display:flex; align-items:flex-start; gap:11px; margin:16px 0; padding:12px 14px; border:1px solid #f0dfb8; border-radius:var(--radius-md); background:#fffaf0; color:#8a610e; }
.rsa-private-notice > svg { width:18px; height:18px; margin-top:1px; color:#b37a0c; }
.rsa-private-notice > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.rsa-private-notice strong { color:#654809; font-size:11px; }
.rsa-private-notice span { color:#8a6d30; font-size:10px; line-height:1.55; }
.rsa-summary { display:grid; grid-template-columns:120px 120px minmax(260px,1fr) 160px; overflow:hidden; margin-bottom:16px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.rsa-summary > div { min-width:0; min-height:64px; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:10px 13px; border-left:1px solid var(--line); }
.rsa-summary > div:first-child { border-left:0; }
.rsa-summary span { color:var(--text-3); font:8px var(--mono); }
.rsa-summary strong { color:var(--text); font:650 12px var(--mono); }
.rsa-summary code { display:block; overflow:hidden; color:var(--primary-dark); font:600 10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.rsa-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); }
.rsa-pane { min-width:0; display:grid; grid-template-rows:60px 340px 38px; }
.rsa-private-pane { border-left:1px solid var(--line-strong); }
.rsa-pane-head { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; background:var(--surface); }
.rsa-pane-title { min-width:0; display:flex; align-items:center; gap:9px; }
.rsa-pane-title > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.rsa-pane-title strong,.rsa-pane-title small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rsa-pane-title strong { font-size:11px; }
.rsa-pane-title small { color:var(--text-3); font:8px var(--mono); }
.rsa-key-mark { width:30px; height:30px; display:grid; place-items:center; flex:none; border-radius:7px; }
.rsa-key-mark svg { width:15px; height:15px; }
.rsa-key-mark.public { color:var(--primary-dark); background:var(--primary-soft); }
.rsa-key-mark.private { color:#a86e08; background:#fff5dc; }
.rsa-pane-head .button-row { flex:none; gap:6px; }
.rsa-pane-head .icon-button,.rsa-pane-head .copy-button { height:30px; }
.rsa-pane-head .icon-button { width:30px; }
.rsa-pane-head .icon-button svg { width:14px; height:14px; }
textarea.rsa-key-output { width:100%; height:340px; min-height:340px; margin:0; padding:15px; resize:none; border:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; background:#f7f8fa; color:#34403b; font:10.5px/1.65 var(--mono); white-space:pre; overflow:auto; box-shadow:none; scrollbar-color:#c5c9cd #f7f8fa; }
textarea.rsa-key-output::placeholder { color:#969da2; }
textarea.rsa-key-output:focus { border-color:var(--line); background:#fff; box-shadow:inset 0 0 0 1px rgba(42,170,116,.3); }
.rsa-private-pane textarea.rsa-key-output { background:#faf9f6; color:#403d35; }
.rsa-private-pane textarea.rsa-key-output:focus { background:#fff; box-shadow:inset 0 0 0 1px rgba(195,122,11,.28); }
.rsa-pane-foot { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 12px; background:var(--surface-soft); }
.rsa-pane-foot span { min-width:0; overflow:hidden; color:var(--text-3); font:9px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.rsa-pane-foot small { flex:none; color:var(--success); font-size:9px; }
.rsa-pane-foot.is-private small { display:flex; align-items:center; gap:4px; color:var(--warning); }
.rsa-pane-foot.is-private svg { width:11px; height:11px; }
.rsa-card > .inline-status { margin-top:14px; }

:root[data-theme="dark"] .rsa-private-notice { border-color:#554927; background:#29271f; color:#e2c67e; }
:root[data-theme="dark"] .rsa-private-notice strong { color:#f0d48c; }
:root[data-theme="dark"] .rsa-private-notice span { color:#b9a574; }
:root[data-theme="dark"] .rsa-key-mark.private { color:#e8bd60; background:#353024; }
:root[data-theme="dark"] textarea.rsa-key-output,:root[data-theme="dark"] .rsa-private-pane textarea.rsa-key-output { border-color:#30323a; background:#202128; color:#dce2ea; scrollbar-color:#565b66 #202128; }
:root[data-theme="dark"] textarea.rsa-key-output::placeholder { color:#737984; }
:root[data-theme="dark"] textarea.rsa-key-output:focus { border-color:#30323a; background:#202128; box-shadow:inset 0 0 0 1px rgba(105,223,168,.5); }
:root[data-theme="dark"] .rsa-private-pane textarea.rsa-key-output:focus { box-shadow:inset 0 0 0 1px rgba(244,209,123,.5); }

@media (max-width: 900px) {
  .rsa-summary { grid-template-columns:110px 110px minmax(220px,1fr); }
  .rsa-summary > div:nth-child(4) { grid-column:1 / -1; min-height:48px; border-top:1px solid var(--line); border-left:0; }
}
@media (max-width: 760px) {
  .rsa-toolbar { align-items:stretch; flex-direction:column; }
  .rsa-format { align-self:flex-start; }
  .rsa-generate-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .rsa-size-field { width:auto; }
  .rsa-workspace { grid-template-columns:minmax(0,1fr); }
  .rsa-private-pane { border-top:1px solid var(--line-strong); border-left:0; }
}
@media (max-width: 520px) {
  #tool-rsa .heading-badge { display:none; }
  .rsa-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rsa-summary > div:nth-child(3),.rsa-summary > div:nth-child(4) { grid-column:1 / -1; min-height:52px; border-top:1px solid var(--line); border-left:0; }
  .rsa-summary > div:nth-child(2) { border-left:1px solid var(--line); }
  .rsa-pane { grid-template-rows:58px 290px 38px; }
  textarea.rsa-key-output { height:290px; min-height:290px; padding:13px; font-size:10px; }
  .rsa-private-notice { padding:11px 12px; }
}

/* Engineering workbenches */
.sandbox-card,.ddl-card,.nginx-card { overflow:hidden; }
.sandbox-toolbar,.ddl-toolbar { margin-bottom:16px; }
.sandbox-timeout { width:104px; flex:none; gap:4px; }
.sandbox-timeout > span { font-size:9px; }
.sandbox-timeout select { height:34px; padding:0 28px 0 10px; font-size:11px; }
.sandbox-workspace { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); min-height:480px; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); }
.sandbox-pane { min-width:0; display:grid; grid-template-rows:42px minmax(0,1fr); }
.sandbox-editor-pane { border-right:1px solid var(--line-strong); }
.sandbox-pane .pane-label { margin:0; padding:0 13px; border-bottom:1px solid var(--line); background:var(--surface); }
textarea.sandbox-code { width:100%; height:438px; min-height:438px; resize:none; border:0; border-radius:0; padding:16px; font-size:12px; line-height:1.65; }
.sandbox-editor-pane .syntax-editor { border-radius:0; }
.sandbox-editor-pane .syntax-editor > .syntax-highlight { border-radius:0; }
.sandbox-console-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:0 10px 0 14px; background:#20242b; color:#dce2e9; border-bottom:1px solid #343a44; }
.sandbox-console-head > div:first-child { min-width:0; display:flex; align-items:center; gap:10px; }
.sandbox-console-head span { font:10px var(--mono); color:#919ba8; }
.sandbox-console-head small { display:inline-flex; align-items:center; gap:6px; font:9px var(--mono); color:#80d8ae; }
.sandbox-console-head small i { width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(128,216,174,.12); }
.sandbox-console-head small.is-running { color:#f2c66f; }
.sandbox-console-head small.is-error { color:#ff8d8d; }
.sandbox-console-head .icon-button,.sandbox-console-head .copy-button { border-color:#3c434f; background:#282d35; color:#b8c0ca; }
.sandbox-console-head .icon-button:hover,.sandbox-console-head .copy-button:hover { border-color:#58616e; background:#303640; color:#fff; }
.sandbox-console { height:438px; min-height:438px; overflow:auto; padding:10px 0; background:#181c22; color:#d8dee7; font:11px/1.55 var(--mono); scrollbar-color:#404854 #181c22; }
.sandbox-console-empty { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#66707d; }
.sandbox-console-empty svg { width:26px; height:26px; }
.sandbox-console-line { display:grid; grid-template-columns:56px 46px minmax(0,1fr); gap:8px; padding:6px 14px; border-bottom:1px solid rgba(255,255,255,.035); }
.sandbox-console-line:hover { background:rgba(255,255,255,.025); }
.sandbox-console-line time { color:#636e7b; }
.sandbox-console-line b { font-size:9px; font-weight:700; color:#7dd3a7; }
.sandbox-console-line pre { min-width:0; margin:0; color:#d8dee7; font:inherit; white-space:pre-wrap; overflow-wrap:anywhere; }
.sandbox-console-line.is-info b { color:#7ab5ee; }
.sandbox-console-line.is-warn b { color:#f1c56d; }
.sandbox-console-line.is-error b,.sandbox-console-line.is-timeout b { color:#ff8e8e; }
.sandbox-console-line.is-result b { color:#c6a5ef; }
.sandbox-console-line.is-system pre { color:#8e98a6; }
.sandbox-summary,.ddl-summary,.nginx-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:14px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface-soft); }
.sandbox-summary > div,.ddl-summary > div,.nginx-summary > div { min-width:0; min-height:58px; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:9px 13px; border-left:1px solid var(--line); }
.sandbox-summary > div:first-child,.ddl-summary > div:first-child,.nginx-summary > div:first-child { border-left:0; }
.sandbox-summary span,.ddl-summary span,.nginx-summary span { color:var(--text-3); font:9px var(--mono); }
.sandbox-summary strong,.ddl-summary strong,.nginx-summary strong { min-width:0; overflow:hidden; color:var(--text); font:600 12px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.sandbox-card > .inline-status,.ddl-card > .inline-status,.nginx-card > .inline-status { margin-top:14px; }

.ddl-workspace { display:grid; grid-template-columns:minmax(330px,.78fr) minmax(0,1.22fr); min-height:560px; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); }
.ddl-source-pane { min-width:0; display:grid; grid-template-rows:42px minmax(0,1fr); border-right:1px solid var(--line-strong); }
.ddl-source-pane .pane-label,.nginx-source .pane-label { margin:0; padding:0 13px; border-bottom:1px solid var(--line); background:var(--surface); }
textarea.ddl-code { height:518px; min-height:518px; resize:none; border:0; border-radius:0; padding:15px; font-size:11px; line-height:1.65; }
.ddl-source-pane .syntax-editor,.ddl-source-pane .syntax-editor > .syntax-highlight { border-radius:0; }
.er-pane { min-width:0; display:grid; grid-template-rows:48px minmax(0,1fr); background:var(--surface-soft); }
.er-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 10px 0 14px; border-bottom:1px solid var(--line); background:var(--surface); }
.er-toolbar > div:first-child { min-width:0; display:flex; flex-direction:column; gap:2px; }
.er-toolbar span { color:var(--text-2); font:10px var(--mono); }
.er-toolbar small { overflow:hidden; color:var(--text-3); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.er-toolbar output { min-width:42px; color:var(--text-2); font:10px var(--mono); text-align:center; }
.er-viewport { position:relative; min-width:0; min-height:510px; overflow:auto; background-color:#fafbfd; background-image:linear-gradient(rgba(66,78,94,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(66,78,94,.055) 1px,transparent 1px); background-size:24px 24px; scrollbar-color:var(--line-strong) transparent; }
.er-empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--text-3); }
.er-empty svg { width:28px; height:28px; }
.er-empty strong { font-size:12px; font-weight:500; }
.er-graph { display:block; max-width:none; transform-origin:0 0; }
.er-graph .er-edge { fill:none; stroke:#87a6bd; stroke-width:1.5; }
.er-graph .er-edge-dot { fill:#4b89b4; }
.er-graph .er-table-body { fill:#fff; stroke:#cfd7df; stroke-width:1; }
.er-graph .er-table-head { fill:#253442; }
.er-graph .er-table-name { fill:#fff; font:600 12px var(--mono); }
.er-graph .er-table-meta { fill:#aebdca; font:8px var(--mono); }
.er-graph .er-row-line { stroke:#e8edf1; stroke-width:1; }
.er-graph .er-column-name { fill:#27313a; font:10px var(--mono); }
.er-graph .er-column-type { fill:#7b8793; font:8px var(--mono); }
.er-graph .er-key-badge { fill:#fff1c9; }
.er-graph .er-key-text { fill:#a76900; font:700 7px var(--mono); }

.nginx-request-bar { display:grid; grid-template-columns:minmax(180px,.55fr) minmax(280px,1.45fr) auto; align-items:end; gap:12px; margin-bottom:14px; }
.nginx-workspace { display:grid; grid-template-columns:minmax(360px,.85fr) minmax(0,1.15fr); min-height:580px; overflow:hidden; border:1px solid var(--line-strong); border-radius:var(--radius-md); }
.nginx-source { min-width:0; display:grid; grid-template-rows:42px minmax(0,1fr); border-right:1px solid var(--line-strong); }
textarea.nginx-code { height:538px; min-height:538px; resize:none; border:0; border-radius:0; padding:15px; font-size:11px; line-height:1.65; }
.nginx-source .syntax-editor,.nginx-source .syntax-editor > .syntax-highlight { border-radius:0; }
.nginx-result { min-width:0; overflow:auto; padding:0 16px 16px; background:var(--surface-soft); }
.nginx-result-head { height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 -16px 14px; padding:0 16px; border-bottom:1px solid var(--line); background:var(--surface); }
.nginx-result-head span,.nginx-trace-title span,.nginx-candidates-head span { color:var(--text-2); font:10px var(--mono); }
.nginx-result-head small,.nginx-trace-title small,.nginx-candidates-head small { color:var(--text-3); font-size:9px; }
.nginx-match-card { min-height:86px; display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:12px; padding:13px; border:1px solid #bcdccb; border-radius:var(--radius-md); background:#eef9f4; }
.nginx-match-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:7px; color:#258456; background:#dff3e9; }
.nginx-match-card > div:last-child { min-width:0; display:flex; flex-direction:column; gap:3px; }
.nginx-match-card span { color:#43745c; font-size:9px; }
.nginx-match-card strong { overflow:hidden; color:#185e3d; font:600 14px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.nginx-match-card small { overflow:hidden; color:#5c7c6b; font:10px var(--mono); text-overflow:ellipsis; white-space:nowrap; }
.nginx-trace-title,.nginx-candidates-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; padding-bottom:7px; border-bottom:1px solid var(--line); }
.nginx-trace { display:flex; flex-direction:column; gap:0; margin:0; padding:7px 0 0; list-style:none; }
.nginx-trace li { position:relative; display:grid; grid-template-columns:24px minmax(0,1fr); gap:9px; padding:6px 0; }
.nginx-trace li:not(:last-child)::after { content:""; position:absolute; left:11px; top:30px; bottom:-6px; width:1px; background:var(--line-strong); }
.nginx-trace li > i { position:relative; z-index:1; width:24px; height:24px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--text-3); background:var(--surface); font:9px var(--mono); }
.nginx-trace li.is-hit > i { border-color:#aad5be; color:#247c52; background:#e9f7f0; }
.nginx-trace li > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.nginx-trace strong { font-size:11px; font-weight:600; }
.nginx-trace span { color:var(--text-3); font:9px/1.45 var(--mono); overflow-wrap:anywhere; }
.nginx-candidate-list { display:flex; flex-direction:column; gap:5px; padding-top:8px; }
.nginx-candidate { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:35px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.nginx-candidate.is-selected { border-color:#afd8c2; background:#f0faf5; }
.nginx-candidate > span { color:var(--text-3); font:8px var(--mono); }
.nginx-candidate code { min-width:0; overflow:hidden; color:var(--text-2); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.nginx-candidate small { color:var(--text-3); font-size:8px; }

:root[data-theme="dark"] .sandbox-console-head { background:#171a20; border-color:#30343c; }
:root[data-theme="dark"] .sandbox-console { background:#101318; }
:root[data-theme="dark"] .er-viewport { background-color:#1d1f25; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); }
:root[data-theme="dark"] .er-graph .er-table-body { fill:#24272e; stroke:#3a3f49; }
:root[data-theme="dark"] .er-graph .er-table-head { fill:#171e25; }
:root[data-theme="dark"] .er-graph .er-row-line { stroke:#333740; }
:root[data-theme="dark"] .er-graph .er-column-name { fill:#e0e4ea; }
:root[data-theme="dark"] .er-graph .er-column-type { fill:#969ea9; }
:root[data-theme="dark"] .er-graph .er-edge { stroke:#6e91aa; }
:root[data-theme="dark"] .nginx-match-card { border-color:#2c5a43; background:#20352b; }
:root[data-theme="dark"] .nginx-match-icon { color:#7bd2a7; background:#284735; }
:root[data-theme="dark"] .nginx-match-card span { color:#8cc4a7; }
:root[data-theme="dark"] .nginx-match-card strong { color:#a1e2be; }
:root[data-theme="dark"] .nginx-match-card small { color:#83aa94; }
:root[data-theme="dark"] .nginx-candidate.is-selected { border-color:#315d48; background:#20372c; }

@media (max-width: 1180px) {
  .ddl-workspace,.nginx-workspace { grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr); }
}
@media (max-width: 900px) {
  .sandbox-workspace { grid-template-columns:minmax(0,1fr); }
  .sandbox-editor-pane { border-right:0; border-bottom:1px solid var(--line-strong); }
  .ddl-workspace,.nginx-workspace { grid-template-columns:minmax(0,1fr); }
  .ddl-source-pane,.nginx-source { border-right:0; border-bottom:1px solid var(--line-strong); }
  textarea.ddl-code,textarea.nginx-code { height:360px; min-height:360px; }
  .er-viewport { min-height:500px; }
  .nginx-request-bar { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
  .nginx-request-bar .button-row { grid-column:1 / -1; justify-content:flex-end; }
}
@media (max-width: 700px) {
  .sandbox-toolbar { align-items:stretch; flex-direction:column; }
  .sandbox-toolbar > .button-row { justify-content:space-between; }
  .sandbox-summary,.ddl-summary,.nginx-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sandbox-summary > div:nth-child(3),.ddl-summary > div:nth-child(3),.nginx-summary > div:nth-child(3) { border-top:1px solid var(--line); border-left:0; }
  .sandbox-summary > div:nth-child(4),.ddl-summary > div:nth-child(4),.nginx-summary > div:nth-child(4) { border-top:1px solid var(--line); }
  .nginx-request-bar { grid-template-columns:minmax(0,1fr); }
  .nginx-request-bar .button-row { grid-column:auto; }
}
@media (max-width: 480px) {
  .sandbox-toolbar > .button-row:first-child { align-items:flex-end; }
  .sandbox-timeout { width:92px; }
  .sandbox-console-line { grid-template-columns:44px 38px minmax(0,1fr); gap:5px; padding-inline:9px; }
  .nginx-candidate { grid-template-columns:44px minmax(0,1fr); }
  .nginx-candidate small { display:none; }
}

/* ── HTTP request client ─────────────────────────────────────────── */
#tool-http .panel-heading { display:grid; grid-template-columns:minmax(0,1fr) 430px; align-items:end; gap:28px; }
.http-mode-shell { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"controls grant" "note note"; align-items:center; gap:8px 12px; width:100%; min-width:0; }
.http-mode-controls { grid-area:controls; display:flex; align-items:center; gap:10px; }
.http-mode-label { color:var(--text-3); font-size:11px; font-weight:600; white-space:nowrap; }
.http-mode-note { grid-area:note; width:100%; min-width:0; min-height:42px; display:flex; align-items:flex-start; gap:6px; padding:5px 8px; border-left:2px solid var(--primary); border-radius:0 var(--radius-sm) var(--radius-sm) 0; background:color-mix(in srgb,var(--primary) 7%,var(--surface)); color:var(--text-3); font-size:10.5px; line-height:1.45; }
.http-mode-note svg { width:14px; height:14px; flex:none; margin-top:1px; color:var(--primary); }
.http-mode-note span { min-width:0; }
.http-mode-note strong { margin-right:4px; color:var(--text-2); font-weight:650; }
.http-mode-note[data-mode="direct"] { border-left-color:var(--cyan); background:color-mix(in srgb,var(--cyan) 7%,var(--surface)); }
.http-mode-note[data-mode="direct"] svg { color:var(--cyan); }
.http-mode-note[data-mode="proxy"] { border-left-color:var(--warning); background:color-mix(in srgb,var(--warning) 7%,var(--surface)); }
.http-mode-note[data-mode="proxy"] svg { color:var(--warning); }
.http-grant { grid-area:grant; }
.http-card { display:flex; flex-direction:column; gap:14px; }

.http-bar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.http-method-shell { --http-accent:var(--primary); position:relative; display:flex; align-items:center; }
.http-method-shell > svg { position:absolute; right:9px; width:13px; height:13px; color:var(--http-accent); pointer-events:none; }
.http-method { height:100%; min-height:40px; padding:0 28px 0 13px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface-soft); color:var(--http-accent); font-family:var(--mono); font-size:12px; font-weight:700; letter-spacing:.04em; appearance:none; cursor:pointer; transition:border-color .16s var(--ease), box-shadow .16s var(--ease); }
.http-method:focus-visible { outline:none; border-color:var(--http-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--http-accent) 18%, transparent); }
.http-method-shell[data-method="GET"] { --http-accent:var(--primary-dark); }
.http-method-shell[data-method="POST"] { --http-accent:var(--cyan); }
.http-method-shell[data-method="PUT"], .http-method-shell[data-method="PATCH"] { --http-accent:var(--warning); }
.http-method-shell[data-method="DELETE"] { --http-accent:var(--danger); }
.http-method-shell[data-method="HEAD"], .http-method-shell[data-method="OPTIONS"] { --http-accent:var(--text-2); }
.http-url { min-height:40px; padding:0 13px; border:1px solid var(--line-strong); border-radius:var(--radius-md); background:var(--surface); color:var(--text); font-size:12.5px; }
/* Send and cancel share one grid cell so swapping them mid-flight never shifts the bar. */
.http-send-actions { display:flex; align-items:stretch; gap:8px; min-width:0; }
.http-send-slot { display:grid; flex:1 1 112px; min-width:112px; }
.http-send-slot > .button { grid-area:1 / 1; width:100%; height:100%; min-height:40px; }
.http-reset { min-width:78px; min-height:40px; }
.http-abort { border-color:var(--line-strong); background:var(--surface-soft); color:var(--danger); }
.http-abort:hover { border-color:var(--danger); background:var(--danger-soft); color:var(--danger); }
.http-abort svg { animation:http-spin .85s linear infinite; }
@keyframes http-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .http-abort svg { animation-duration:2.4s; } }

.http-workspace { display:grid; grid-template-columns:minmax(0,1fr) 258px; gap:14px; align-items:start; }
.http-main { display:flex; flex-direction:column; gap:14px; min-width:0; }
.http-pane { border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); overflow:hidden; }
.http-response-pane-placeholder { min-height:360px; visibility:hidden; pointer-events:none; }
body.http-response-fullscreen-active { overflow:hidden; }
#httpResponsePane.is-fullscreen { position:fixed; inset:0; z-index:55; width:100vw; height:100vh; height:100dvh; max-width:none; margin:0; border:0; border-radius:0; box-shadow:none; display:flex; flex-direction:column; min-height:0; overflow:hidden; background:var(--surface); }
#httpResponsePane.is-fullscreen .http-status-bar,
#httpResponsePane.is-fullscreen > .http-tabs { flex:none; }
#httpResponsePane.is-fullscreen #httpResPanels { display:flex; flex-direction:column; flex:1; min-height:0; max-height:none; overflow:auto; }
#httpResponsePane.is-fullscreen #httpResPanels > .http-tab-panel.active[data-tab="body"] { display:flex; flex:1; flex-direction:column; min-height:0; gap:12px; }
#httpResponsePane.is-fullscreen #httpResPanels > .http-tab-panel.active[data-tab="body"] > .syntax-editor { display:flex; flex-direction:column; flex:1; min-height:0; }
#httpResponsePane.is-fullscreen #httpResPanels > .http-tab-panel.active[data-tab="body"] > .syntax-editor > #httpResBody { height:100%; min-height:0; resize:none; }
#httpResponsePane.is-fullscreen #httpResFullscreen { color:var(--primary); border-color:#c8ebd9; background:var(--primary-soft); }
:root[data-theme="dark"] #httpResponsePane.is-fullscreen #httpResFullscreen { border-color:var(--line-strong); background:var(--surface); }

.http-tabs { position:relative; display:flex; align-items:stretch; gap:2px; padding:0 8px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.http-tabs > button { position:relative; display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 11px; border:0; background:transparent; color:var(--text-2); font-size:11.5px; font-weight:500; white-space:nowrap; cursor:pointer; transition:color .16s var(--ease); }
.http-tabs > button::after { content:""; position:absolute; left:9px; right:9px; bottom:-1px; height:2px; border-radius:2px 2px 0 0; background:transparent; transition:background .16s var(--ease); }
.http-tabs > button:hover { color:var(--text); }
.http-tabs > button.active { color:var(--primary-dark); font-weight:600; }
.http-tabs > button.active::after { background:var(--primary); }
.http-tabs > button small[hidden] { display:none; }
.http-tabs > button small { min-width:16px; height:16px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--primary-soft); color:var(--primary-dark); font-size:9.5px; font-weight:600; font-family:var(--mono); }
.http-res-actions, .http-req-actions { margin-left:auto; display:flex; align-items:center; gap:4px; }
.http-tab-body { padding:12px 14px 14px; }
/* Long param/header lists must not push the response pane off screen: the editors scroll
   inside a bounded box instead of growing the page. */
#httpReqPanels { max-height:min(46vh, 380px); overflow-y:auto; overscroll-behavior:contain; }
#httpResPanels { max-height:min(66vh, 620px); overflow-y:auto; overscroll-behavior:contain; }
.http-tab-panel { display:none; }
.http-tab-panel.active { display:block; }

.kv-head, .kv-row { display:grid; grid-template-columns:30px minmax(0,1fr) minmax(0,1.35fr) 30px; align-items:center; gap:8px; }
.kv-head { padding:0 2px 7px; color:var(--text-3); font-size:10px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }
/* Capped here as well as on the panel so the "添加参数" footer stays put while rows scroll. */
.kv-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden auto; max-height:232px; }
.kv-row { padding:0 6px; border-bottom:1px solid var(--line); background:var(--surface); transition:background .14s var(--ease); }
.kv-row:last-child { border-bottom:0; }
.kv-row:hover { background:var(--surface-soft); }
.kv-row input[type="text"] { height:33px; padding:0 6px; border:0; border-radius:0; background:transparent; color:var(--text); font-family:var(--mono); font-size:11.5px; }
.kv-row input[type="text"]:focus { outline:none; box-shadow:inset 0 -2px 0 var(--primary); }
.kv-row input[type="text"]::placeholder { color:var(--text-3); }
.kv-row.is-off input[type="text"] { color:var(--text-3); text-decoration:line-through; text-decoration-color:var(--line-strong); }
.kv-check { display:flex; align-items:center; justify-content:center; cursor:pointer; }
.kv-check input { position:absolute; opacity:0; pointer-events:none; }
.kv-del { display:flex; align-items:center; justify-content:center; width:24px; height:24px; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text-3); cursor:pointer; opacity:0; transition:opacity .14s var(--ease), color .14s var(--ease), background .14s var(--ease); }
.kv-del svg { width:13px; height:13px; }
.kv-row:hover .kv-del, .kv-del:focus-visible { opacity:1; }
.kv-del:hover { color:var(--danger); background:var(--danger-soft); }
.kv-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.kv-foot small { color:var(--text-3); font-size:10.5px; }

.link-button { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--primary-dark); font-size:11px; font-weight:600; cursor:pointer; transition:background .14s var(--ease); }
.link-button svg { width:13px; height:13px; }
.link-button:hover { background:var(--primary-soft); }

.http-presets { display:flex; align-items:center; gap:9px; margin-top:11px; padding-top:11px; border-top:1px dashed var(--line-strong); }
.http-presets > span { color:var(--text-3); font-size:10.5px; font-weight:600; }
.http-preset-chips { display:flex; flex-wrap:wrap; gap:5px; }
.http-preset-chips button { padding:3px 9px; border:1px solid var(--line-strong); border-radius:999px; background:var(--surface-soft); color:var(--text-2); font-family:var(--mono); font-size:10.5px; cursor:pointer; transition:all .14s var(--ease); }
.http-preset-chips button:hover { border-color:var(--primary); background:var(--primary-soft); color:var(--primary-dark); }

.http-body-bar, .http-auth-bar { display:flex; align-items:flex-end; gap:12px; margin-bottom:11px; flex-wrap:wrap; }
.http-content-type { flex:0 0 220px; }
.http-content-type input { height:30px; }
.http-body-slot { min-width:0; }
#httpBodyInput { min-height:172px; }
.multipart-head,.multipart-row { display:grid; grid-template-columns:30px minmax(110px,.8fr) 88px minmax(160px,1.35fr) 30px; align-items:center; gap:8px; }
.multipart-head { padding:0 7px 7px; color:var(--text-3); font-size:10px; font-weight:600; }
.multipart-list { max-height:232px; overflow:hidden auto; border:1px solid var(--line); border-radius:var(--radius-sm); }
.multipart-row { min-height:42px; padding:4px 6px; border-bottom:1px solid var(--line); background:var(--surface); transition:background .14s var(--ease); }
.multipart-row:last-child { border-bottom:0; }
.multipart-row:hover { background:var(--surface-soft); }
.multipart-row.is-off { color:var(--text-3); }
.multipart-row.is-off .multipart-key,.multipart-row.is-off .multipart-text { color:var(--text-3); text-decoration:line-through; }
.multipart-key,.multipart-text,.multipart-kind { width:100%; min-width:0; height:32px; border:0; border-radius:0; background:transparent; color:var(--text); font-family:var(--mono); font-size:11px; }
.multipart-key,.multipart-text { padding:0 6px; }
.multipart-kind { padding:0 22px 0 6px; color:var(--text-2); }
.multipart-key:focus,.multipart-text:focus,.multipart-kind:focus { outline:none; box-shadow:inset 0 -2px 0 var(--primary); }
.multipart-value { min-width:0; }
.multipart-file-picker { min-width:0; height:32px; display:flex; align-items:center; gap:7px; padding:0 9px; border:1px dashed var(--line-strong); border-radius:var(--radius-sm); background:var(--surface-soft); color:var(--text-3); cursor:pointer; }
.multipart-file-picker:hover,.multipart-file-picker.has-file { border-color:var(--primary); color:var(--primary-dark); background:var(--primary-soft); }
.multipart-file-picker input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.multipart-file-picker svg { width:13px; height:13px; flex:none; }
.multipart-file-picker span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:10.5px var(--mono); }
.multipart-del { width:24px; height:24px; display:grid; place-items:center; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text-3); cursor:pointer; opacity:0; }
.multipart-row:hover .multipart-del,.multipart-del:focus-visible { opacity:1; }
.multipart-del:hover { color:var(--danger); background:var(--danger-soft); }
.multipart-del svg { width:13px; height:13px; }
.http-auth-fields { display:flex; gap:12px; }
.http-auth-hint { display:flex; align-items:center; gap:6px; margin-top:11px; color:var(--text-3); font-size:10.5px; }
.http-auth-hint svg { width:13px; height:13px; }

.http-curl-col { display:flex; flex-direction:column; gap:8px; min-width:0; }
.http-curl-col .code-input { min-height:150px; }
.http-curl-col > .syntax-editor { flex:1; }
.http-curl-col > .syntax-editor > textarea { height:100%; }
.http-curl-col .button { align-self:flex-start; }
.http-curl-col .pane-label { justify-content:flex-start; gap:8px; }
.http-curl-col .pane-label .link-button { margin-left:auto; }
.http-curl-hint { color:var(--text-3); font-size:10.5px; }

/* Shared modal shell (cURL import, proxy grant) */
.tool-dialog { position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:24px; }
.tool-dialog-backdrop { position:absolute; inset:0; background:rgba(24,26,32,.42); backdrop-filter:blur(3px); }
.tool-dialog-panel { position:relative; display:flex; flex-direction:column; width:min(720px, 100%); max-height:min(640px, 100%); border:1px solid var(--line); border-radius:var(--radius-lg, 14px); background:var(--surface); box-shadow:var(--shadow-float, 0 24px 60px rgba(20,22,28,.28)); overflow:hidden; }
.tool-dialog-panel:focus-visible { outline:none; }
.tool-dialog-head { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.tool-dialog-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.tool-dialog-copy > span { color:var(--primary-dark); font-size:9.5px; font-weight:700; letter-spacing:.09em; }
.tool-dialog-copy > strong { color:var(--text); font-size:14px; font-weight:600; }
.tool-dialog-copy > small { color:var(--text-3); font-size:11px; }
.tool-dialog-head .icon-button { margin-left:auto; flex:none; }
.tool-dialog-body { display:flex; flex-direction:column; gap:10px; padding:14px 16px; overflow-y:auto; }
#httpCurlImport { min-height:168px; }
/* A pasted command is read, not edited — wrap it so the whole thing is visible at once.
   Both layers must agree on wrapping or the caret drifts away from the highlighted text. */
.tool-dialog-body .syntax-editor > textarea,
.tool-dialog-body .syntax-editor > .syntax-highlight { white-space:pre-wrap; overflow-wrap:break-word; }
.tool-dialog-body .syntax-editor > .syntax-highlight > code { width:auto; }
.curl-import-summary { display:grid; grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)); gap:1px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--line); overflow:hidden; }
.curl-import-summary > div { display:flex; flex-direction:column; gap:3px; padding:9px 11px; background:var(--surface-soft); }
.curl-import-summary span { color:var(--text-3); font-size:9.5px; font-weight:600; letter-spacing:.05em; }
.curl-import-summary strong { color:var(--text); font-family:var(--mono); font-size:11.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.curl-import-warnings { display:flex; flex-direction:column; gap:6px; }
.curl-import-warnings > div { display:flex; align-items:flex-start; gap:7px; padding:8px 10px; border:1px solid color-mix(in srgb, var(--warning) 34%, transparent); border-radius:var(--radius-sm); background:color-mix(in srgb, var(--warning) 11%, var(--surface)); color:var(--text-2); font-size:11px; }
.curl-import-warnings svg { width:13px; height:13px; flex:none; margin-top:1px; color:var(--warning); }
.tool-dialog-foot { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; border-top:1px solid var(--line); background:var(--surface-soft); }
.tool-dialog-foot .inline-status { flex:1; min-width:180px; margin:0; }
.tool-dialog-foot .button-row { margin-left:auto; }

/* Proxy access grant */
.http-grant { --grant:var(--text-3); border-color:color-mix(in srgb, var(--grant) 34%, transparent); color:var(--grant); }
.http-grant svg { color:var(--grant); }
.http-grant[data-grant-state="ready"]  { --grant:var(--success); }
.http-grant[data-grant-state="locked"] { --grant:var(--warning); }
.http-grant[data-grant-state="missing"]{ --grant:var(--danger); }
.proxy-grant .tool-dialog-panel { width:min(460px, 100%); }
.proxy-grant-state { --grant:var(--text-3); display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid color-mix(in srgb, var(--grant) 30%, transparent); border-radius:var(--radius-sm); background:color-mix(in srgb, var(--grant) 10%, var(--surface)); color:var(--text-2); font-size:11.5px; }
.proxy-grant-state svg { width:15px; height:15px; flex:none; color:var(--grant); }
.proxy-grant-state[data-state="checking"] svg { animation:http-spin .85s linear infinite; }
.proxy-grant-state[data-state="ready"]  { --grant:var(--success); }
.proxy-grant-state[data-state="locked"] { --grant:var(--warning); }
.proxy-grant-state[data-state="missing"]{ --grant:var(--danger); }
.proxy-grant-hint { color:var(--text-3); font-size:10.5px; line-height:1.6; }
.proxy-grant-hint code { padding:1px 4px; border-radius:4px; background:var(--surface-soft); font-family:var(--mono); font-size:10px; }

.http-status-bar { --http-status:var(--text-3); display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 14px; border-bottom:1px solid var(--line); background:linear-gradient(180deg, color-mix(in srgb, var(--http-status) 7%, var(--surface)), var(--surface)); }
.http-status-bar[data-state="2"] { --http-status:var(--success); }
.http-status-bar[data-state="3"] { --http-status:var(--cyan); }
.http-status-bar[data-state="4"] { --http-status:var(--warning); }
.http-status-bar[data-state="5"], .http-status-bar[data-state="error"] { --http-status:var(--danger); }
.http-status-bar[data-state="loading"] { --http-status:var(--primary); }
.http-status-bar[data-state="loading"] .http-status-code { animation:http-pulse 1.1s var(--ease) infinite; }
@keyframes http-pulse { 50% { opacity:.42; } }
.http-status-code { display:flex; align-items:center; justify-content:center; min-width:62px; height:38px; padding:0 12px; border:1px solid color-mix(in srgb, var(--http-status) 32%, transparent); border-radius:var(--radius-md); background:color-mix(in srgb, var(--http-status) 12%, var(--surface)); color:var(--http-status); font-family:var(--mono); font-size:17px; font-weight:700; letter-spacing:-.01em; }
.http-status-text { min-width:0; display:flex; flex-direction:column; gap:3px; }
.http-status-text strong { color:var(--text); font-size:12.5px; font-weight:600; }
.http-status-text small { color:var(--text-3); font-size:10.5px; font-family:var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-status-metrics { display:flex; gap:18px; }
.http-status-metrics > div { display:flex; flex-direction:column; gap:2px; text-align:right; }
.http-status-metrics span { color:var(--text-3); font-size:9.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }
.http-status-metrics strong { color:var(--text); font-family:var(--mono); font-size:12px; font-weight:600; }

#httpResBody { min-height:238px; }
.http-res-preview { display:flex; align-items:center; justify-content:center; padding:16px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-soft); }
.http-res-preview img { max-width:100%; max-height:320px; border-radius:var(--radius-sm); }
.http-kv-view { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden auto; max-height:100%; }
.http-kv-item { display:grid; grid-template-columns:minmax(120px, 0.4fr) minmax(0,1fr); gap:12px; padding:8px 11px; border-bottom:1px solid var(--line); font-family:var(--mono); font-size:11.5px; }
.http-kv-item:last-child { border-bottom:0; }
.http-kv-item:nth-child(even) { background:var(--surface-soft); }
.http-kv-view b { color:var(--primary-dark); font-weight:600; }
.http-kv-view span { color:var(--text); word-break:break-all; }

.http-redirects { display:flex; flex-direction:column; gap:8px; }
.http-redirect { display:grid; grid-template-columns:44px minmax(0,1fr); gap:11px; align-items:center; padding:9px 11px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-soft); }
.http-redirect i { display:flex; align-items:center; justify-content:center; height:24px; border-radius:var(--radius-sm); background:color-mix(in srgb, var(--cyan) 14%, var(--surface)); color:var(--cyan); font-family:var(--mono); font-size:11px; font-weight:700; font-style:normal; }
.http-redirect div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.http-redirect strong { color:var(--text); font-family:var(--mono); font-size:11px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-redirect small { color:var(--text-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.http-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:34px 12px; color:var(--text-3); }
.http-empty svg { width:22px; height:22px; opacity:.55; }
.http-empty p { font-size:11.5px; }

.http-side { position:sticky; top:12px; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); overflow:hidden; }
.http-side-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); min-height:40px; border-bottom:1px solid var(--line); background:var(--surface-soft); }
.http-side-tabs button { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; border:0; border-right:1px solid var(--line); background:transparent; color:var(--text-3); font-size:10.5px; cursor:pointer; }
.http-side-tabs button:last-child { border-right:0; }
.http-side-tabs button::after { content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:transparent; }
.http-side-tabs button.active { color:var(--primary-dark); font-weight:600; }
.http-side-tabs button.active::after { background:var(--primary); }
.http-side-tabs svg { width:13px; height:13px; }
.http-side-tabs small { min-width:16px; height:16px; display:grid; place-items:center; padding:0 4px; border-radius:8px; background:var(--primary-soft); color:var(--primary-dark); font:9px var(--mono); }
.http-side-tabs small[hidden] { display:none; }
.http-side-panel { min-height:0; }
.http-side-head { display:flex; align-items:center; gap:7px; height:38px; padding:0 8px 0 12px; border-bottom:1px solid var(--line); background:var(--surface-soft); color:var(--text-2); font-size:11px; font-weight:600; }
.http-side-head svg { width:13px; height:13px; color:var(--text-3); }
.http-side-clear { margin-left:auto; display:flex; align-items:center; justify-content:center; width:24px; height:24px; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text-3); cursor:pointer; transition:color .14s var(--ease), background .14s var(--ease); }
.http-side-clear.compact { margin-left:0; }
.http-side-clear:hover { color:var(--danger); background:var(--danger-soft); }
.http-history { display:flex; flex-direction:column; max-height:520px; overflow-y:auto; }
.http-history-item { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; align-items:baseline; padding:9px 11px; border-bottom:1px solid var(--line); background:transparent; border-left:0; border-right:0; border-top:0; text-align:left; cursor:pointer; transition:background .14s var(--ease); }
.http-history-item:hover { background:var(--surface-hover); }
.http-history-item b { color:var(--http-accent, var(--primary-dark)); font-family:var(--mono); font-size:9.5px; font-weight:700; letter-spacing:.03em; }
.http-history-item[data-method="POST"] { --http-accent:var(--cyan); }
.http-history-item[data-method="PUT"], .http-history-item[data-method="PATCH"] { --http-accent:var(--warning); }
.http-history-item[data-method="DELETE"] { --http-accent:var(--danger); }
.http-history-item div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.http-history-item strong { color:var(--text); font-size:11px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-history-item small { color:var(--text-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-history-empty { padding:26px 12px; color:var(--text-3); font-size:11px; text-align:center; }
.http-collections { display:flex; flex-direction:column; max-height:520px; overflow-y:auto; }
.http-collection-group { border-bottom:1px solid var(--line); }
.http-collection-group:last-child { border-bottom:0; }
.http-collection-head { min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:6px; padding:4px 6px 4px 10px; background:color-mix(in srgb,var(--primary) 4%,var(--surface)); }
.http-collection-head > div { min-width:0; display:flex; align-items:center; gap:6px; }
.http-collection-head > div svg { width:13px; height:13px; flex:none; color:var(--primary-dark); }
.http-collection-head strong { min-width:0; overflow:hidden; color:var(--text-2); font-size:10.5px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.http-collection-head small { min-width:17px; height:17px; display:grid; place-items:center; border-radius:8px; background:var(--surface-soft); color:var(--text-3); font:9px var(--mono); }
.http-collection-head > span { display:flex; flex:none; }
.http-collection-head > span button,.http-collection-request > button:last-child { width:24px; height:24px; display:grid; place-items:center; border:0; border-radius:var(--radius-sm); background:transparent; color:var(--text-3); cursor:pointer; }
.http-collection-head > span button:hover { background:var(--surface-hover); color:var(--primary-dark); }
.http-collection-head > span button:last-child:hover,.http-collection-request > button:last-child:hover { background:var(--danger-soft); color:var(--danger); }
.http-collection-head button svg,.http-collection-request > button:last-child svg { width:12px; height:12px; }
.http-collection-request { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; border-top:1px solid var(--line); }
.http-collection-request > button:first-child { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:start; gap:6px; padding:8px 4px 8px 10px; border:0; background:transparent; text-align:left; cursor:pointer; }
.http-collection-request > button:first-child:hover { background:var(--surface-hover); }
.http-collection-request b { padding-top:1px; color:var(--cyan); font:700 8.5px var(--mono); }
.http-collection-request span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.http-collection-request strong,.http-collection-request small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.http-collection-request strong { color:var(--text); font-size:10.5px; font-weight:500; }
.http-collection-request small { color:var(--text-3); font:9px var(--mono); }
.http-collection-empty { padding:14px 10px; border-top:1px solid var(--line); color:var(--text-3); font-size:10px; text-align:center; }

.http-collection-dialog .tool-dialog-panel { width:min(480px,100%); }

@media (max-width: 1180px) {
  .http-workspace { grid-template-columns:minmax(0,1fr); }
  .http-side { position:static; }
  .http-history { max-height:230px; }
  .http-collections { max-height:300px; }
  #tool-http .panel-heading { grid-template-columns:minmax(0,1fr); align-items:stretch; gap:12px; }
}
@media (max-width: 900px) {
  .http-status-metrics { gap:12px; }
}
@media (max-width: 700px) {
  .http-mode-shell { width:100%; }
  .http-bar { grid-template-columns:auto minmax(0,1fr); }
  .http-send-actions { grid-column:1 / -1; }
  .tool-dialog { padding:12px; }
  .tool-dialog-foot .button-row { width:100%; margin-left:0; }
  .http-status-bar { grid-template-columns:auto minmax(0,1fr); }
  .http-status-metrics { grid-column:1 / -1; justify-content:space-between; }
  .http-status-metrics > div { text-align:left; }
  .kv-head, .kv-row { grid-template-columns:26px minmax(0,1fr) minmax(0,1fr) 26px; gap:4px; }
  .multipart-head { display:none; }
  .multipart-row { grid-template-columns:26px 78px minmax(0,1fr) 26px; grid-template-areas:"check key key del" ". kind value ."; gap:4px 6px; padding:5px 4px; }
  .multipart-row > .kv-check { grid-area:check; }
  .multipart-key { grid-area:key; }
  .multipart-kind { grid-area:kind; }
  .multipart-value { grid-area:value; }
  .multipart-del { grid-area:del; opacity:1; }
  .http-tabs { overflow-x:auto; }
  .http-res-actions { margin-left:8px; }
}
.kv-check { position:relative; }
.kv-check .checkbox-mark { width:15px; height:15px; border-width:1.5px; border-radius:4px; }
.kv-check .checkbox-mark svg { width:10px; height:10px; }
.kv-check input:checked + .checkbox-mark { border-color:var(--primary); background:var(--primary); }
.kv-check input:checked + .checkbox-mark svg { opacity:1; transform:scale(1); }
.kv-check input:focus-visible + .checkbox-mark { outline:3px solid rgba(42,170,116,.17); outline-offset:2px; }
