/* ─── Theme tokens (same names and values as the A1Z26 tool) ─────────────── v6
   Light is the default. Dark applies with <html data-theme="dark">. */
.steganography-studio{
  color-scheme:light;
  --bg:#e9e9ea;--panel:#f8f8f9;--panel-2:#ffffff;--surface:#fff;
  --line:#d8dbe0;--line-2:#c9ced6;--text:#152033;--muted:#616b7c;
  --blue:#dbe7f5;--blue-2:#b8c6da;--blue-accent:#4e7fd2;
  --red:#f3e4e4;--red-2:#e9d3d3;--green:#eef8ef;--green-2:#cfe2d1;--amber:#fff5e3;--amber-2:#ecd8ab;
  --shadow-card:0 2px 4px rgba(19,28,40,0.04),0 8px 24px rgba(19,28,40,0.08),0 20px 48px rgba(19,28,40,0.05);
  --radius-xl:20px;
  --font:"Inter", var(--font-sans);
  --mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --focus-ring:0 0 0 3px rgba(78,127,210,0.16),0 0 0 1px rgba(78,127,210,0.28);
  --soft-ring:0 0 0 3px rgba(78,127,210,0.08);
  --title:#14203a;--heading:#16223a;--link:#2f62b8;
  --card-bg:#fefefe;--card-border:rgba(202,206,214,0.9);
  --segment-bg:#eff0f2;--segment-text:#666d7a;
  --segment-active-shadow:0 1px 5px rgba(0,0,0,0.1),0 0 0 1px rgba(0,0,0,0.05);
  --btn-hover-shadow:0 2px 8px rgba(0,0,0,0.07);
  --btn-subtle-bg:#fafafa;--btn-subtle-text:#3e4a5c;
  --danger-text:#6b3c3c;--danger-hover:#efd8d8;
  --section-title:#606a7a;--copy:#4b566a;--code-text:#1d2a44;
  --help:#6a727f;--help-strong:#5a6478;
  --notice-code-bg:#f4f6f9;--guide-code-bg:#eef0f3;--label:#3c4656;
  --stepper-bg:#f5f6f8;--stepper-text:#4a5364;--stepper-hover:#e9eaec;
  --strong:#1d2740;--mini-text:#6a7281;--mini-hover:#f2f3f5;
  --done-text:#1e5628;--error-text:#7b5c1c;
  --field-text:#273247;--field-border:#868e9c;--field-focus-border:#4e7fd2;--placeholder:#5f6775;
  --stat:#697284;--stat-sep:#c8cdd6;--dot-ok:#3a9e4a;--dot-idle:#b6bdc9;
  --scroll-track:#f1f2f4;--chip-text:#5a6478;--chip-strong:#1e2d47;
  --toggle-shadow:0 1px 4px rgba(0,0,0,0.04);
  /* extras for this tool */
  --primary:#2f62b8;--primary-hover:#264f96;--primary-text:#ffffff;--bar-over:#c9524f;
  --selection-bg:rgba(78,127,210,0.25);--selection-text:inherit;
}
html[data-theme="dark"] .steganography-studio{
  color-scheme:dark;
  --bg:#0e131a;--panel:#161d28;--panel-2:#1b2330;--surface:#1f2836;
  --line:#2b3545;--line-2:#3a4658;--text:#e6ebf2;--muted:#a3aec0;
  --blue:#1d2b42;--blue-2:#3f5d8c;--blue-accent:#6f9ef0;
  --red:#3a2326;--red-2:#5c3439;--green:#16301f;--green-2:#2e5c3c;--amber:#382c14;--amber-2:#6b5524;
  --shadow-card:0 2px 4px rgba(0,0,0,0.25),0 8px 24px rgba(0,0,0,0.32),0 20px 48px rgba(0,0,0,0.22);
  --focus-ring:0 0 0 3px rgba(111,158,240,0.32),0 0 0 1px rgba(111,158,240,0.6);
  --soft-ring:0 0 0 3px rgba(111,158,240,0.16);
  --title:#f2f5fa;--heading:#e9eef5;--link:#8db6f7;
  --card-bg:#141b25;--card-border:#273141;
  --segment-bg:#10161f;--segment-text:#a8b3c4;
  --segment-active-shadow:0 1px 5px rgba(0,0,0,0.45),0 0 0 1px rgba(255,255,255,0.08);
  --btn-hover-shadow:0 2px 8px rgba(0,0,0,0.4);
  --btn-subtle-bg:#1c2532;--btn-subtle-text:#d5dce7;
  --danger-text:#f3c9c9;--danger-hover:#46292d;
  --section-title:#a8b3c4;--copy:#c5cedb;--code-text:#e6ecf5;
  --help:#9eaabd;--help-strong:#d0d8e4;
  --notice-code-bg:#263142;--guide-code-bg:#263142;--label:#d5dce7;
  --stepper-bg:#263040;--stepper-text:#dbe2ec;--stepper-hover:#2f3a4c;
  --strong:#eef2f8;--mini-text:#b9c3d2;--mini-hover:#283242;
  --done-text:#a6e3b6;--error-text:#f1d18f;
  --field-text:#e3e9f2;--field-border:#6e7a8d;--field-focus-border:#6f9ef0;--placeholder:#8d9aae;
  --stat:#a3aec0;--stat-sep:#4b5669;--dot-ok:#4cc264;--dot-idle:#6b778a;
  --scroll-track:#1a222e;--chip-text:#b9c3d2;--chip-strong:#eef2f8;
  --toggle-shadow:0 1px 4px rgba(0,0,0,0.3);
  --primary:#6f9ef0;--primary-hover:#8db6f7;--primary-text:#0b1220;--bar-over:#e07872;
  --selection-bg:rgba(111,158,240,0.4);--selection-text:#ffffff;
}
.steganography-studio ::selection{background:var(--selection-bg);color:var(--selection-text)}

.steganography-studio *{box-sizing:border-box}
.steganography-studio button,.steganography-studio input,.steganography-studio textarea,.steganography-studio select{font:inherit}
.steganography-studio button,.steganography-studio label{-webkit-tap-highlight-color:transparent}
.steganography-studio button{cursor:pointer}.steganography-studio button:disabled{cursor:not-allowed}
.steganography-studio button:focus-visible,.steganography-studio input:focus-visible,.steganography-studio textarea:focus-visible,.steganography-studio select:focus-visible,.steganography-studio a:focus-visible,.steganography-studio [role=button]:focus-visible,.steganography-studio summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.steganography-studio a{color:inherit}.steganography-studio a:focus-visible{border-radius:4px}
.steganography-studio h1,.steganography-studio h2,.steganography-studio h3,.steganography-studio h4,.steganography-studio p{margin-top:0}
.steganography-studio svg{display:block}
.steganography-studio .steg-hidden{display:none!important}
.steganography-studio .steg-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ─── Page header ─── */

/* ─── Card ─── */
.steganography-studio .steg-card{position:relative;background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:24px;width:100%;overflow:hidden}
.steganography-studio .steg-card+.steg-card{margin-top:20px}
.steganography-studio .card-head{margin-bottom:18px}
.steganography-studio .card-head h2{margin:0;font-size:1.05rem;font-weight:800;letter-spacing:-0.02em;color:var(--heading)}
.steganography-studio .card-head p{margin:5px 0 0;font-size:.9rem;color:var(--muted);line-height:1.55;max-width:75ch}

/* ─── Top controls / segment ─── */
.steganography-studio .top-controls{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;margin-bottom:24px}
.steganography-studio .steg-segment{display:inline-flex;gap:3px;padding:4px;background:var(--segment-bg);border:1px solid var(--line);border-radius:999px}
.steganography-studio .segment-btn{appearance:none;border:0;background:transparent;color:var(--segment-text);border-radius:999px;padding:9px 26px;font-size:.95rem;font-weight:700;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.steganography-studio .segment-btn svg{width:17px;height:17px}
.steganography-studio .segment-btn.active{background:var(--surface);color:var(--text);box-shadow:var(--segment-active-shadow)}
.steganography-studio .segment-btn:not(.active):hover:not(:disabled){color:var(--text)}
.steganography-studio .steg-segment.small .segment-btn{padding:6px 16px;min-height:34px;font-size:.82rem}
.steganography-studio .top-controls{flex-wrap:nowrap;gap:16px 24px}
.steganography-studio .pane-tools{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px 20px}
.steganography-studio .pane-tools .field-help{font-size:.8rem;max-width:62ch}
.steganography-studio .pane-tools .steg-actions{flex:none}
.steganography-studio .steg-actions{display:flex;flex-wrap:wrap;gap:6px}

/* ─── Buttons ─── */
.steganography-studio .steg-btn{appearance:none;border-radius:10px;padding:9px 15px;font-size:.875rem;font-weight:700;border:1px solid var(--line);background:var(--surface);color:var(--text);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.steganography-studio .steg-btn:hover:not(:disabled){border-color:var(--line-2);box-shadow:var(--btn-hover-shadow)}
.steganography-studio .steg-btn:disabled{opacity:.5}
.steganography-studio .steg-btn.subtle{background:var(--btn-subtle-bg);color:var(--btn-subtle-text)}
.steganography-studio .steg-btn.danger{background:var(--red);border-color:var(--red-2);color:var(--danger-text)}
.steganography-studio .steg-btn.danger:hover:not(:disabled){background:var(--danger-hover)}
.steganography-studio .steg-btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text);min-height:46px;padding:11px 20px}
.steganography-studio .steg-btn.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
.steganography-studio .steg-btn.block{width:100%}
.steganography-studio .steg-btn svg{width:17px;height:17px;flex:none;margin-right:8px}
.steganography-studio .spinner{height:15px;width:15px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:steg-spin .8s linear infinite;flex:none}
@keyframes steg-spin{to{transform:rotate(360deg)}}
.steganography-studio .mini-btn{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--mini-text);border-radius:999px;padding:5px 13px;font-size:.775rem;font-weight:700;transition:all .16s ease;min-height:28px;display:inline-flex;align-items:center;white-space:nowrap}
.steganography-studio .mini-btn:hover:not(:disabled){background:var(--mini-hover);border-color:var(--line-2)}
.steganography-studio .mini-btn.done{color:var(--done-text);border-color:var(--green-2);background:var(--green)}
.steganography-studio .mini-btn:disabled{opacity:.5}

/* ─── Layout ─── */
.steganography-studio .content-grid{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start;min-width:0}
.steganography-studio .steg-sidebar{display:flex;flex-direction:column;min-width:0}
.steganography-studio .sidebar-content{display:flex;flex-direction:column;gap:12px}
.steganography-studio .steg-workspace{display:grid;gap:14px;min-width:0}
.steganography-studio .steg-section{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:16px 18px;min-width:0}
.steganography-studio .section-title{margin:0 0 14px;font-size:.74rem;line-height:1.2;color:var(--section-title);font-weight:700;letter-spacing:.07em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.steganography-studio .section-title::before{content:'';display:inline-block;width:3px;height:13px;background:var(--blue-accent);border-radius:2px;opacity:.55;flex-shrink:0}
.steganography-studio .section-copy{margin:0 0 12px;color:var(--copy);font-size:.86rem;line-height:1.55}
.steganography-studio .field-help,.steganography-studio .helpnote{margin:0;color:var(--help);font-size:.76rem;line-height:1.45}
.steganography-studio .field-help strong{color:var(--help-strong)}
.steganography-studio .helpnote{margin:8px 0 0}
.steganography-studio .helpnote svg{display:inline-block;vertical-align:-2px;margin-right:6px}
.steganography-studio .steg-notice{margin:0;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--copy);font-size:.82rem;line-height:1.6}
.steganography-studio .steg-notice h3{margin:0 0 6px;font-size:.95rem;font-weight:800;color:var(--heading)}
.steganography-studio .steg-notice p{margin:0 0 8px}.steganography-studio .steg-notice p:last-child{margin-bottom:0}
.steganography-studio code,.steganography-studio .formula{font-family:var(--mono)}
.steganography-studio .section-copy code,.steganography-studio .steg-notice code,.steganography-studio .guide-body code{font-size:.85em;font-weight:700;color:var(--code-text);background:var(--notice-code-bg);border:1px solid var(--line);border-radius:6px;padding:1px 5px;white-space:nowrap}

/* ─── Chips / stats ─── */
.steganography-studio .chips{display:flex;flex-wrap:wrap;gap:6px}
.steganography-studio .steg-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--chip-text);font-size:.775rem;line-height:1.2;font-weight:600;max-width:100%;white-space:nowrap}
.steganography-studio .steg-chip strong{color:var(--chip-strong);font-weight:700}
.steganography-studio .steg-chip .status-dot{margin-right:4px}
.steganography-studio .status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;display:inline-block;background:var(--dot-ok)}
.steganography-studio .stat{display:inline-flex;align-items:center;gap:4px;color:var(--stat);font-size:.76rem;font-weight:600}
.steganography-studio .stat strong{color:var(--strong);font-weight:800}
.steganography-studio .stat-sep{color:var(--stat-sep);font-size:.8rem;user-select:none}
.steganography-studio .tag{display:inline-flex;align-items:center;font-size:.64rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--link);background:var(--blue);border:1px solid var(--blue-2);border-radius:999px;padding:2px 8px;line-height:1.3}
.steganography-studio .method.selected .tag{background:var(--surface)}
.steganography-studio .tag.warn{color:var(--error-text);background:var(--amber);border-color:var(--amber-2)}
.steganography-studio .steg-section.needs-attention{border-color:var(--amber-2);background:var(--amber);box-shadow:0 0 0 3px var(--amber)}
.steganography-studio .steg-section.needs-attention .password-row{border-color:var(--error-text)}
.steganography-studio .steg-section.needs-attention .field-help,.steganography-studio .steg-section.needs-attention .helpnote{color:var(--error-text)}

/* ─── I/O panels ─── */
.steganography-studio .io-grid{display:grid;grid-template-columns:1fr;gap:12px;min-width:0}
.steganography-studio .io{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0;transition:border-color .2s ease,box-shadow .2s ease}
.steganography-studio .io:focus-within{border-color:var(--blue-2);box-shadow:var(--soft-ring)}
.steganography-studio .io-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.steganography-studio .io-head h3{margin:0;font-size:.95rem;font-weight:700;color:var(--heading);letter-spacing:-.01em}
.steganography-studio .io-footer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding-top:8px;border-top:1px solid var(--line)}
.steganography-studio .io-actions{display:flex;flex-wrap:wrap;gap:6px}

/* ─── Form controls ─── */
.steganography-studio textarea,.steganography-studio select,.steganography-studio .text-input,.steganography-studio .password-row{border:1px solid var(--field-border);background:var(--panel-2);color:var(--field-text);border-radius:10px}
.steganography-studio textarea{width:100%;max-width:100%;flex-grow:1;min-height:210px;resize:vertical;border-radius:12px;padding:13px 14px;font-family:var(--mono);font-size:.92rem;line-height:1.56;transition:border-color .18s ease,box-shadow .18s ease}
.steganography-studio textarea:focus,.steganography-studio select:focus,.steganography-studio .text-input:focus{outline:none;border-color:var(--field-focus-border);box-shadow:var(--soft-ring)}
.steganography-studio textarea::placeholder,.steganography-studio input::placeholder{color:var(--placeholder)}
.steganography-studio select,.steganography-studio .text-input{padding:8px 12px;min-height:40px;font-size:.875rem;font-weight:600;max-width:100%}
.steganography-studio .text-input{width:100%}
.steganography-studio .fieldlabel{display:block;font-size:.82rem;font-weight:700;color:var(--label);margin-bottom:7px}
.steganography-studio .password-row{display:flex;overflow:hidden}
.steganography-studio .password-row:focus-within{border-color:var(--field-focus-border);box-shadow:var(--soft-ring)}
.steganography-studio .password-row input{border:0;background:transparent;color:var(--field-text);padding:10px 13px;min-width:0;flex:1;font-size:.9rem}
.steganography-studio .password-row input:focus-visible,.steganography-studio .password-row input:focus{box-shadow:none;outline:none}
.steganography-studio .eye-btn{border:0;background:transparent;color:var(--help-strong);padding:0 13px}
.steganography-studio .eye-btn:hover{color:var(--link)}
.steganography-studio .pw-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.steganography-studio .gen-note{color:var(--done-text);font-weight:600}
.steganography-studio .select-wrap{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:12px}
.steganography-studio .select-wrap label{font-size:.82rem;font-weight:700;color:var(--label)}
.steganography-studio input[type=range]{width:100%;accent-color:var(--blue-accent);cursor:pointer}
.steganography-studio input[type=file]{width:100%;font-size:.82rem;color:var(--copy);margin-bottom:14px}
.steganography-studio input[type=file]::file-selector-button{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--mini-text);border-radius:999px;padding:6px 14px;margin-right:10px;font:inherit;font-size:.775rem;font-weight:700;cursor:pointer}
.steganography-studio input[type=file]::file-selector-button:hover{background:var(--mini-hover);border-color:var(--line-2)}
.steganography-studio .input-file{position:absolute;inset-inline-start:0;width:1px;height:1px;clip-path:inset(50%);opacity:0;pointer-events:none}

/* ─── Method picker ─── */
.steganography-studio .method-list{display:grid;gap:8px}
.steganography-studio .method{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.steganography-studio .method:hover{border-color:var(--line-2)}
.steganography-studio .method.selected{border-color:var(--blue-accent);background:var(--blue)}
.steganography-studio .method input{margin:3px 0 0;accent-color:var(--blue-accent);flex-shrink:0;width:16px;height:16px}
.steganography-studio .method-main{flex:1;min-width:0}
.steganography-studio .method-title{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:.875rem;font-weight:700;color:var(--label)}
.steganography-studio .method.selected .method-title{color:var(--strong)}
.steganography-studio .method-desc{display:block;margin-top:4px;font-size:.76rem;line-height:1.45;color:var(--copy)}

/* ─── Capacity ─── */
.steganography-studio .cap-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:.82rem;font-weight:700;color:var(--label)}
.steganography-studio .cap-top span:last-child{color:var(--strong);font-variant-numeric:tabular-nums;text-align:right}
.steganography-studio .cap-sub{margin-top:6px;color:var(--help);font-size:.76rem;line-height:1.45}
.steganography-studio .meter{height:8px;border-radius:999px;background:var(--segment-bg);border:1px solid var(--line);overflow:hidden;margin:10px 0 2px}
.steganography-studio .meter div{height:100%;width:0;background:var(--blue-accent);border-radius:999px;transition:width .2s ease}
.steganography-studio .meter.over div{background:var(--bar-over)}
.steganography-studio .cap-breakdown{margin-top:12px}

/* ─── Drop zones ─── */
.steganography-studio .dropzone,.steganography-studio .file-zone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:24px 16px;min-height:170px;border:1.5px dashed var(--field-border);border-radius:12px;background:var(--panel-2);cursor:pointer;color:var(--copy);transition:background-color .2s ease,border-color .2s ease}
.steganography-studio .file-zone{min-height:150px}
.steganography-studio .dropzone:hover,.steganography-studio .dropzone.dragover,.steganography-studio .file-zone:hover,.steganography-studio .file-zone.dragover{border-color:var(--blue-accent);background:var(--blue)}
.steganography-studio .dropzone strong,.steganography-studio .file-zone strong{font-size:.9rem;color:var(--strong)}
.steganography-studio .dropzone small,.steganography-studio .file-zone small{color:var(--copy);font-size:.76rem}
.steganography-studio .browse{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.steganography-studio .drop-icon{height:44px;width:44px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--link);display:grid;place-items:center;margin-bottom:4px}
.steganography-studio .file-zone svg{color:var(--link)}
.steganography-studio .busy-panel .dropzone,.steganography-studio .busy-panel .file-zone{pointer-events:none;opacity:.6}
.steganography-studio .image-loaded{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.steganography-studio .image-loaded img,.steganography-studio .checker{background:repeating-conic-gradient(var(--stepper-hover) 0% 25%,var(--surface) 0% 50%) 50%/14px 14px}
.steganography-studio .image-loaded img{height:53px;width:73px;object-fit:contain;border-radius:8px;border:1px solid var(--line);flex:none}
.steganography-studio .upload-meta{min-width:0;flex:1}
.steganography-studio .upload-name{font-size:.875rem;font-weight:700;color:var(--strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.steganography-studio .upload-detail{font-size:.76rem;color:var(--help);margin:2px 0 6px}
.steganography-studio .cover-preview{display:grid;place-items:center;min-height:130px;max-height:270px;background:var(--segment-bg);border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.steganography-studio .cover-preview img{width:100%;height:240px;object-fit:contain}

/* ─── Status ─── */
.steganography-studio .steg-status{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border-radius:12px;font-size:.82rem;line-height:1.5;border:1px solid}
.steganography-studio .steg-status span:first-child{font-weight:800;flex:none}
.steganography-studio .steg-status.error{background:var(--red);border-color:var(--red-2);color:var(--danger-text)}
.steganography-studio .steg-status.success{background:var(--green);border-color:var(--green-2);color:var(--done-text)}
.steganography-studio .steg-status.info{background:var(--blue);border-color:var(--blue-2);color:var(--strong)}
.steganography-studio .action-stack{display:grid;gap:10px}
.steganography-studio .steg-workspace .action-stack{grid-template-columns:minmax(0,320px);justify-content:start}
.steganography-studio .steg-workspace .action-hint{text-align:left}
.steganography-studio .action-hint.warn{color:var(--error-text);font-weight:700;background:var(--amber);border:1px solid var(--amber-2);border-radius:10px;padding:8px 12px;line-height:1.45}
.steganography-studio .action-hint{font-size:.76rem;color:var(--help);text-align:center}

/* ─── Results ─── */
.steganography-studio .results{scroll-margin-top:16px;margin-top:20px;border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:18px}
.steganography-studio .results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.steganography-studio .results:not(.steg-hidden){animation:steg-resultsIn .45s ease}
@keyframes steg-resultsIn{from{opacity:.35;transform:translateY(10px)}to{opacity:1;transform:none}}
.steganography-studio .results-head .steg-actions{align-items:center;gap:10px}
.steganography-studio .results-title{display:flex;gap:12px;align-items:center}
.steganography-studio .success-mark{height:36px;width:36px;border-radius:50%;background:var(--green);border:1px solid var(--green-2);color:var(--done-text);display:grid;place-items:center;flex:none}
.steganography-studio .result-title{margin:0;font-size:1.05rem;font-weight:800;letter-spacing:-.02em;color:var(--heading)}
.steganography-studio .result-sub{font-size:.8rem;color:var(--help)}
.steganography-studio .comparison{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:14px;margin-bottom:14px}
.steganography-studio .comparison-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.steganography-studio .comparison-head strong{font-size:.9rem;color:var(--heading)}
.steganography-studio .comparison-label{font-size:.72rem;color:var(--help);white-space:nowrap;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.steganography-studio .compare-stage{position:relative;height:clamp(180px,32vw,350px);overflow:hidden;border-radius:10px;background:#182d39;touch-action:pan-y;cursor:ew-resize}
.steganography-studio .compare-stage>img,.steganography-studio .compare-clip img{width:100%;height:100%;object-fit:contain;display:block;position:absolute;inset:0}
.steganography-studio .compare-clip{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}
.steganography-studio .compare-line{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 4px #0008;pointer-events:none}
.steganography-studio .compare-line span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#19394c;box-shadow:0 2px 12px #0005;font-size:18px;font-weight:700}
.steganography-studio .compare-badge{position:absolute;top:12px;border-radius:6px;background:rgba(16,42,60,.86);color:#fff;padding:4px 9px;font-size:.72rem;font-weight:700;pointer-events:none}
.steganography-studio .compare-badge.before{left:12px}.steganography-studio .compare-badge.after{right:12px}
.steganography-studio .comparison input[type=range]{margin:12px 0 0}
.steganography-studio .result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.steganography-studio .result-tile{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.steganography-studio .tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;font-size:.82rem;font-weight:700;color:var(--heading);border-bottom:1px solid var(--line)}
.steganography-studio .tile-tag{color:var(--help);font-size:.72rem;font-weight:600}
.steganography-studio .tile-photo{height:160px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:repeating-conic-gradient(var(--stepper-hover) 0% 25%,var(--surface) 0% 50%) 50%/16px 16px}
.steganography-studio .tile-photo img{display:block;height:100%;width:100%;object-fit:contain}
.steganography-studio .tile-photo canvas{height:100%;width:100%;object-fit:contain;background:#122531;image-rendering:pixelated}
.steganography-studio .tile-photo .exact{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:100%;width:100%;background:var(--green);color:var(--done-text);font-weight:800;font-size:.82rem}
.steganography-studio .tile-photo .exact svg{height:27px;width:27px}
.steganography-studio .diff-caption{font-size:.76rem;color:var(--help);margin-top:10px;line-height:1.45}
.steganography-studio .kpi-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.steganography-studio .kpi{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:11px 14px}
.steganography-studio .kpi-value{font-weight:800;font-size:1.1rem;letter-spacing:-.02em;color:var(--strong);overflow-wrap:anywhere}
.steganography-studio .kpi-label{font-size:.74rem;color:var(--help);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.steganography-studio .kpi-extra{font-size:.76rem;color:var(--help)}
.steganography-studio .result-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.steganography-studio .result-tip{font-size:.76rem;color:var(--help);max-width:380px;line-height:1.45}

/* ─── Decode ─── */
.steganography-studio .detect-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;color:var(--section-title);font-weight:700}
.steganography-studio .detect-value{font-size:.95rem;margin-top:3px;font-weight:800;color:var(--strong)}
.steganography-studio .detect-small{font-size:.76rem;color:var(--help);margin-top:3px;line-height:1.45}
.steganography-studio .decoded-output{display:grid;gap:12px}
.steganography-studio .decoded-output h3{margin:0;font-size:.95rem;font-weight:700;color:var(--heading)}
.steganography-studio .output-desc{margin:2px 0 0;font-size:.76rem;color:var(--help)}
.steganography-studio .decoded-text{min-height:124px}
.steganography-studio .decoded-file{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);margin:10px 0 12px}
.steganography-studio .file-icon{height:40px;width:40px;display:grid;place-items:center;border-radius:10px;color:var(--link);background:var(--blue);flex:none}
.steganography-studio .decoded-filename{font-size:.875rem;font-weight:700;color:var(--strong);overflow-wrap:anywhere}
.steganography-studio .decoded-filemeta{font-size:.76rem;color:var(--help)}
.steganography-studio .output-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.steganography-studio .decoded-seal{font-size:.8rem;font-weight:600;color:var(--done-text);padding-top:10px;border-top:1px solid var(--line)}

/* ─── Learn / guide ─── */
.steganography-studio .info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.steganography-studio .info-icon{height:40px;width:40px;display:grid;place-items:center;background:var(--blue);border-radius:10px;color:var(--link);margin-bottom:12px}
.steganography-studio .info-card h3{margin:0 0 6px;font-size:.95rem;font-weight:800;color:var(--heading)}
.steganography-studio .info-card p{margin:0;font-size:.86rem;color:var(--copy);line-height:1.6}
.steganography-studio .science-panel,.steganography-studio .capacity-lesson,.steganography-studio .research-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.steganography-studio .science-copy h3,.steganography-studio .capacity-lesson h3,.steganography-studio .research-copy h3{margin:0 0 8px;font-size:1rem;font-weight:800;color:var(--heading);letter-spacing:-.01em}
.steganography-studio .science-copy p,.steganography-studio .capacity-lesson p,.steganography-studio .research-copy p{margin:0 0 12px;font-size:.86rem;line-height:1.65;color:var(--copy)}
.steganography-studio .eyebrow-dark{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--section-title);font-weight:700;margin-bottom:6px}
.steganography-studio .lab-label{display:flex;justify-content:space-between;font-size:.82rem;font-weight:700;color:var(--label);margin:16px 0 4px}
.steganography-studio .lab-controls,.steganography-studio .calc-fields{display:flex;gap:10px;margin:12px 0;flex-wrap:wrap}
.steganography-studio .lab-controls label,.steganography-studio .calc-fields label{font-size:.78rem;font-weight:700;color:var(--label);display:grid;gap:5px;flex:1;min-width:90px}
.steganography-studio .lab-controls select,.steganography-studio .calc-fields select,.steganography-studio .calc-fields input{width:100%}
.steganography-studio .formula{padding:10px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:.85rem;color:var(--code-text);overflow-wrap:anywhere;font-weight:700}
.steganography-studio .research .formula{text-align:center;margin:14px 0}
.steganography-studio .lab-foot{margin-top:12px!important;font-size:.76rem!important;color:var(--help)!important}
.steganography-studio .binary-diagram{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px}
.steganography-studio .binary-label{display:flex;justify-content:space-between;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:var(--section-title);font-weight:700}
.steganography-studio .binary-bits{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.steganography-studio .bit{height:38px;border-radius:8px;display:grid;place-items:center;font:800 1rem var(--mono);border:1px solid var(--line);background:var(--surface);color:var(--copy)}
.steganography-studio .bit.mut{background:var(--blue);color:var(--link);border-color:var(--blue-accent)}
.steganography-studio .bin-arrow{color:var(--help);font-size:.82rem;font-weight:700;text-align:center}
.steganography-studio .swatches{display:flex;gap:10px;margin-top:4px;text-align:center;font-size:.76rem;color:var(--help)}
.steganography-studio .swatches>div{flex:1}
.steganography-studio .swatch{height:54px;border-radius:10px;border:1px solid var(--line-2);margin-bottom:4px}
.steganography-studio .binary-note{font-size:.78rem;color:var(--help);text-align:center;font-weight:600}
.steganography-studio .calc-result{display:flex;flex-direction:column;justify-content:center;gap:4px}
.steganography-studio .calc-result>span{font-size:.78rem;color:var(--help);font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.steganography-studio .calc-result strong{font-size:2rem;line-height:1.1;color:var(--strong);letter-spacing:-.03em}
.steganography-studio .calc-result small{font-size:.8rem;color:var(--help)}
.steganography-studio .calc-note{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;font-size:.78rem;color:var(--help);line-height:1.5}
.steganography-studio .faq details{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 16px;margin-bottom:8px}
.steganography-studio .faq summary{cursor:pointer;font-weight:700;font-size:.92rem;color:var(--heading);padding:13px 0;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px}
.steganography-studio .faq summary::-webkit-details-marker{display:none}
.steganography-studio .faq summary::after{content:'+';font-size:1.2rem;line-height:1;color:var(--help);font-weight:500}
.steganography-studio .faq details[open] summary::after{content:'−'}
.steganography-studio .faq details p{margin:0 0 14px;font-size:.88rem;line-height:1.7;color:var(--copy)}
.steganography-studio .faq h3{margin:22px 0 10px;font-size:.95rem;font-weight:800;color:var(--heading)}

/* ─── Analysis lab ─── */
.steganography-studio .inspect-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.steganography-studio .inspect-upload{position:relative;cursor:pointer}
.steganography-studio .inspect-upload input{position:absolute;width:1px;height:1px;opacity:0}
.steganography-studio .inspect-upload:focus-within{box-shadow:var(--focus-ring)}
.steganography-studio #inspectStatus{margin-top:14px}
.steganography-studio .inspect-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:18px 0}
.steganography-studio .inspect-card,.steganography-studio .inspect-explain,.steganography-studio .inspect-chart{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--panel);min-width:0}
.steganography-studio .inspect-card{background:var(--surface)}
.steganography-studio .inspect-card h3,.steganography-studio .inspect-explain h3,.steganography-studio .inspect-chart h3{margin:0 0 10px;font-size:.92rem;font-weight:800;color:var(--heading);overflow-wrap:anywhere}
.steganography-studio .inspect-card dl{margin:0}
.steganography-studio .inspect-card dl div{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:8px 0;font-size:.8rem}
.steganography-studio .inspect-card dt{color:var(--help)}
.steganography-studio .inspect-card dd{margin:0;font-weight:700;color:var(--strong);font-variant-numeric:tabular-nums}
.steganography-studio .inspect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.steganography-studio .inspect-plane{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.steganography-studio .inspect-plane h3{margin:0;padding:10px 12px;font-size:.8rem;font-weight:700;color:var(--heading);overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
.steganography-studio .inspect-plane canvas{display:block;width:100%;height:auto;max-height:480px;object-fit:contain;image-rendering:pixelated;background:#243546}
.steganography-studio .inspect-plane .helpnote{padding:0 12px 10px}
.steganography-studio .inspect-charthead{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.steganography-studio .inspect-charthead h3{margin:0!important}
.steganography-studio .inspect-charthead label{font-size:.8rem;color:var(--label);font-weight:700;display:flex;align-items:center;gap:8px}
.steganography-studio .inspect-chart canvas,.steganography-studio .research canvas{display:block;width:100%;height:auto;max-height:310px;border-radius:10px;border:1px solid var(--line);background:var(--chart-bg)}
.steganography-studio .inspect-explain p{font-size:.84rem;color:var(--copy);line-height:1.65;margin:0 0 8px}
.steganography-studio .inspect-chunk{display:inline-block;font:700 .72rem var(--mono);background:var(--notice-code-bg);border:1px solid var(--line);color:var(--code-text);border-radius:6px;padding:3px 7px;margin:2px;overflow-wrap:anywhere}
.steganography-studio .bit-explorer{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:16px 18px;margin:14px 0}
.steganography-studio .bit-explorer-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.steganography-studio .bit-explorer-head h3{margin:2px 0 0;font-size:1rem;font-weight:800;color:var(--heading)}
.steganography-studio .bit-explorer-head p{margin:4px 0 0;font-size:.82rem;color:var(--help)}
.steganography-studio .bit-explorer h4{margin:20px 0 4px;font-size:.92rem;font-weight:800;color:var(--heading)}
.steganography-studio .bit-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:14px}
.steganography-studio .bit-controls label{font-weight:700;font-size:.78rem;display:grid;gap:5px;color:var(--label)}
.steganography-studio .bit-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:.78rem;color:var(--copy);margin:10px 0 16px}
.steganography-studio .bit-legend span{display:flex;align-items:center;gap:6px}
.steganography-studio .bit-key{width:13px;height:13px;border:1px solid var(--field-border);border-radius:3px;display:inline-block}
.steganography-studio .bit-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.steganography-studio .bit-thumb{border:1px solid var(--line);border-radius:10px;padding:7px;background:var(--surface);color:var(--copy);text-align:left;min-width:0}
.steganography-studio .bit-thumb:hover{border-color:var(--line-2)}
.steganography-studio .bit-thumb[aria-pressed=true]{border-color:var(--blue-accent);background:var(--blue)}
.steganography-studio .bit-thumb canvas{width:100%;height:auto;display:block;border-radius:5px;image-rendering:pixelated;background:#253746}
.steganography-studio .bit-thumb strong{display:block;font-size:.76rem;margin:5px 0 0;color:var(--strong)}
.steganography-studio .bit-thumb small{font-size:.68rem;color:var(--help)}
.steganography-studio .bit-freq{display:grid;gap:4px;margin:10px 0}
.steganography-studio .bit-freq-row{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;align-items:center;padding:7px 4px;border-bottom:1px solid var(--line)}
.steganography-studio .bit-freq-row strong{font-size:.8rem;color:var(--strong)}
.steganography-studio .bit-freq-row small{display:block;color:var(--help);font-size:.68rem}
.steganography-studio .bit-freq-series{display:grid;gap:5px}
.steganography-studio .bit-freq-line{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:8px;align-items:center}
.steganography-studio .bit-track{height:13px;background:var(--segment-bg);border:1px solid var(--line);border-radius:4px;position:relative;overflow:hidden}
.steganography-studio .bit-track::after{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed var(--help);opacity:.8}
.steganography-studio .bit-bar{display:block;height:100%;background:var(--series-1)}
.steganography-studio .bit-freq-line output{text-align:right;font-variant-numeric:tabular-nums;font-size:.72rem;font-weight:700;color:var(--strong)}
.steganography-studio .bit-freq-key{display:flex;flex-wrap:wrap;gap:14px;font-size:.76rem;color:var(--copy)}
.steganography-studio .bit-freq-key i{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:2px}
.steganography-studio .bit-axis{display:flex;justify-content:space-between;font-size:.68rem;color:var(--help);margin:8px 62px 0 95px}
.steganography-studio .bit-diff{margin-top:12px}
.steganography-studio .bit-diff canvas{width:100%;height:auto;max-height:420px;object-fit:contain;image-rendering:pixelated;background:#172b3b;border-radius:10px}
.steganography-studio .research-note{margin-top:14px}

/* ─── Benchmark ─── */
.steganography-studio .research-panel{margin-top:0}
.steganography-studio .research-panel+.research-panel{margin-top:12px}
.steganography-studio .research-input{min-width:0}
.steganography-studio .research .kpi-row{margin:0 0 14px}
.steganography-studio .research canvas{max-width:600px;margin:14px auto;max-height:none}

@media (min-width:721px){.steganography-studio .io-grid{grid-template-columns:1fr 1fr;align-items:stretch}}
@media (max-width:1100px){
  .steganography-studio .top-controls{flex-wrap:wrap}
  .steganography-studio .pane-tools{flex:1 1 100%}
}
@media (max-width:980px){
  .steganography-studio .content-grid{grid-template-columns:1fr}
  .steganography-studio .steg-sidebar{order:2}.steganography-studio .steg-workspace{order:1}
  .steganography-studio .content-grid.sidebar-first .steg-sidebar{order:0}
  .steganography-studio .info-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .steganography-studio .top-controls{flex-direction:column;align-items:stretch;gap:10px}
  .steganography-studio .steg-segment{display:flex;width:100%}.steganography-studio .segment-btn{flex:1}
  .steganography-studio .steg-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
  .steganography-studio .steg-actions .steg-btn{width:100%;padding:11px 8px}
  .steganography-studio .top-controls{flex-wrap:wrap}
  .steganography-studio .pane-tools{flex-direction:column;align-items:stretch;width:100%;flex:none}
  .steganography-studio textarea{min-height:150px;font-size:16px}
  .steganography-studio .mini-btn{min-height:36px;padding:6px 16px}
  .steganography-studio .science-panel,.steganography-studio .capacity-lesson,.steganography-studio .research-panel,.steganography-studio .inspect-grid{grid-template-columns:1fr}
  .steganography-studio .result-grid{grid-template-columns:1fr 1fr}.steganography-studio .result-tile:last-child{grid-column:1/-1}
  .steganography-studio .tile-photo{height:130px}
  .steganography-studio .kpi-row{gap:8px}.steganography-studio .kpi{padding:9px 10px}.steganography-studio .kpi-value{font-size:.95rem}
  .steganography-studio .comparison-label{display:none}
  .steganography-studio .results-head{flex-direction:column}
  .steganography-studio .results-head .steg-actions{display:flex;width:100%}
  .steganography-studio .results-head .steg-actions .steg-btn.primary{flex:1}
  .steganography-studio .bit-freq-row{grid-template-columns:49px minmax(0,1fr);gap:6px}.steganography-studio .bit-axis{margin-left:55px}
  .steganography-studio .bit-thumb{padding:4px}.steganography-studio .bit-thumb small{display:none}
  .steganography-studio .result-bottom .steg-btn.primary{width:100%}
}
@media (max-width:600px){
  .steganography-studio .steg-card{padding:18px 14px;border-radius:16px}
  .steganography-studio .steg-section,.steganography-studio .results,.steganography-studio .bit-explorer{padding:14px}
  .steganography-studio .io{padding:14px 12px}
}
@media (max-width:420px){
  .steganography-studio .result-grid{grid-template-columns:1fr}
  .steganography-studio .segment-btn{padding:9px 12px}
}
@media (prefers-reduced-motion:reduce){.steganography-studio *,.steganography-studio *::before,.steganography-studio *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* ─── v6 additions ─────────────────────────────────────────────────────── */
/* Chart tokens: canvases read these at draw time and redraw when the theme changes. */
.steganography-studio{
  --chart-bg:#f7f8fa;--chart-grid:#e1e5eb;--chart-axis:#a3abb8;--chart-text:#5a6478;--chart-ref:#8d96a5;
  --series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a;--series-4:#c98500;--series-5:#d55181;
}
html[data-theme="dark"] .steganography-studio{
  --chart-bg:#111821;--chart-grid:#28323f;--chart-axis:#566275;--chart-text:#a3aec0;--chart-ref:#6b778a;
  --series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500;--series-5:#d55181;
}
.steganography-studio .steg-status.warn{background:var(--amber);border-color:var(--amber-2);color:var(--error-text)}
.steganography-studio .steg-status a{color:inherit;font-weight:700}
.steganography-studio .status-stack{display:grid;gap:8px}
.steganography-studio .studio-alert{margin:-8px 0 18px}
.steganography-studio .cover-notes{display:grid;gap:8px}
.steganography-studio .cover-notes .steg-status{font-size:.78rem;padding:9px 11px}
.steganography-studio .method-cap{display:block;margin-top:5px;font-size:.72rem;font-weight:700;color:var(--help-strong)}
.steganography-studio .action-hint .hint-fix{margin:8px 8px 0 0}
.steganography-studio .action-hint .hint-list{display:block}
.steganography-studio .decode-hint{margin-top:2px}
.steganography-studio .pw-label-note{font-weight:600;color:var(--help)}
.steganography-studio .needs-attention .pw-label-note{color:var(--error-text)}

/* Method guide (learn) */
.steganography-studio .method-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.steganography-studio .method-guide .info-card h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.steganography-studio .facts{margin:12px 0 0;display:grid;gap:0}
.steganography-studio .facts div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;border-top:1px solid var(--line);padding:7px 0;font-size:.79rem;line-height:1.45}
.steganography-studio .facts dt{color:var(--help);font-weight:700}
.steganography-studio .facts dd{margin:0;color:var(--copy)}
.steganography-studio .learn-notice{margin-top:12px}

/* Checkbox chips (benchmark) */
.steganography-studio .check-grid{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.steganography-studio .check{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid var(--line);background:var(--surface);border-radius:999px;font-size:.78rem;font-weight:700;color:var(--label);cursor:pointer;transition:border-color .16s ease,background-color .16s ease}
.steganography-studio .check:hover{border-color:var(--line-2)}
.steganography-studio .check input{accent-color:var(--blue-accent);margin:0;width:15px;height:15px}
.steganography-studio .check:has(input:checked){border-color:var(--blue-accent);background:var(--blue);color:var(--strong)}
.steganography-studio .check:has(input:focus-visible){box-shadow:var(--focus-ring)}
.steganography-studio .bench-sub{margin:14px 0 8px;font-size:.78rem;font-weight:700;color:var(--label)}
.steganography-studio .bench-sub:first-child{margin-top:0}
.steganography-studio .bench-files{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.steganography-studio .bench-files .inspect-upload{min-height:36px}
.steganography-studio .bench-progress{margin-top:10px}
.steganography-studio .bench-progress .meter{margin:8px 0 0}

/* Charts */
.steganography-studio .chart-wrap{position:relative;max-width:760px;margin:14px auto 0}
.steganography-studio .chart-wrap canvas{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line);background:var(--chart-bg)}
.steganography-studio .chart-tip{position:absolute;z-index:2;pointer-events:none;background:var(--surface);border:1px solid var(--line-2);border-radius:8px;padding:6px 9px;font-size:.76rem;line-height:1.45;color:var(--text);box-shadow:var(--btn-hover-shadow);white-space:nowrap}
.steganography-studio .chart-tip strong{color:var(--strong)}
.steganography-studio .legend{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin-top:10px;font-size:.78rem;color:var(--copy)}
.steganography-studio .legend span{display:inline-flex;align-items:center;gap:6px}
.steganography-studio .legend i{display:inline-block;width:14px;height:3px;border-radius:2px}
.steganography-studio .table-scroll{overflow-x:auto;margin-top:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.steganography-studio .data-table{width:100%;border-collapse:collapse;font-size:.8rem;font-variant-numeric:tabular-nums}
.steganography-studio .data-table th,.steganography-studio .data-table td{padding:8px 12px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.steganography-studio .data-table th:first-child,.steganography-studio .data-table td:first-child{text-align:left}
.steganography-studio .data-table th{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--section-title);font-weight:700;background:var(--panel)}
.steganography-studio .data-table tr:last-child td{border-bottom:0}
.steganography-studio .data-table td{color:var(--copy)}
.steganography-studio .data-table td strong{color:var(--strong)}
.steganography-studio .data-table .sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:7px;vertical-align:-1px}

@media (max-width:980px){.steganography-studio .method-guide{grid-template-columns:1fr}}
@media (max-width:600px){.steganography-studio .facts div{grid-template-columns:88px minmax(0,1fr)}}

/* Presets + advanced disclosure */
.steganography-studio .advanced{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.steganography-studio .advanced>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-size:.82rem;font-weight:700;color:var(--label);padding:4px 0;border-radius:6px}
.steganography-studio .advanced>summary::-webkit-details-marker{display:none}
.steganography-studio .advanced>summary::before{content:'▸';color:var(--help);font-size:.8rem;transition:transform .16s ease}
.steganography-studio .advanced[open]>summary::before{transform:rotate(90deg)}
.steganography-studio .advanced .method-list{margin-top:10px}

/* Decoy */
.steganography-studio .decoy-fields{display:grid;gap:10px;margin-top:12px}
.steganography-studio textarea.decoy-text{min-height:90px}

/* Dismissible hints */
.steganography-studio .cover-notes .steg-status{position:relative;padding-right:34px}
.steganography-studio .note-x{position:absolute;top:5px;right:5px;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:inherit;opacity:.65;font-size:1rem;line-height:1;display:grid;place-items:center}
.steganography-studio .note-x:hover{opacity:1;background:var(--surface)}
.steganography-studio .steg-status.good{background:var(--green);border-color:var(--green-2);color:var(--done-text)}
.steganography-studio .pw-strength{font-weight:600}
.steganography-studio .pw-strength.weak{color:var(--error-text)}
.steganography-studio .pw-strength.good{color:var(--done-text)}

/* Result extras */
.steganography-studio .results-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px;align-items:start}
.steganography-studio details.steg-section.extra>summary{cursor:pointer;list-style:none;margin:0}
.steganography-studio details.steg-section.extra>summary::-webkit-details-marker{display:none}
.steganography-studio details.steg-section.extra>summary::after{content:'+';margin-left:auto;font-size:1.1rem;color:var(--help);font-weight:500;letter-spacing:0}
.steganography-studio details.steg-section.extra[open]>summary::after{content:'−'}
.steganography-studio details.steg-section.extra[open]>summary{margin-bottom:12px}
.steganography-studio textarea.send-note{min-height:240px;font-size:.84rem}
.steganography-studio a.mini-btn{text-decoration:none}
.steganography-studio .survive-out{margin-top:12px}
.steganography-studio .survive-out:empty{display:none}
.steganography-studio .survive-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:.82rem;color:var(--copy)}
.steganography-studio .survive-row strong{white-space:nowrap}
.steganography-studio .survive-row .ok{color:var(--done-text)}
.steganography-studio .survive-row .lost{color:var(--danger-text)}
.steganography-studio .decoded-hash{font-family:var(--mono);overflow-wrap:anywhere;margin-top:3px}

/* Share footer */
@media (max-width:720px){.steganography-studio .results-extra{grid-template-columns:1fr}}

.steganography-studio .chart-wrap canvas{max-width:none;margin:0;max-height:none}

/* ─── v6.1: split across images, method card header ─── */
.steganography-studio .io-grid.single{grid-template-columns:1fr!important}
.steganography-studio .split-fields{margin-top:12px;display:grid;gap:10px}
.steganography-studio .split-fields.dragover{outline:2px dashed var(--blue-accent);outline-offset:4px;border-radius:12px}
.steganography-studio .split-add{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.steganography-studio .split-list,.steganography-studio .split-out{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.steganography-studio .split-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.steganography-studio .split-item img{width:64px;height:46px;object-fit:cover;border-radius:8px;border:1px solid var(--line);flex:none;background:var(--segment-bg)}
.steganography-studio .split-meta{flex:1;min-width:0}
.steganography-studio .split-name{font-size:.85rem;font-weight:700;color:var(--strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.steganography-studio .split-detail{font-size:.76rem;color:var(--help)}
.steganography-studio .split-out{margin-bottom:12px}
@media (max-width:520px){.steganography-studio .split-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:6px 12px;align-items:start}.steganography-studio .split-item img{grid-row:1/3}.steganography-studio .split-name{white-space:normal;overflow-wrap:anywhere}.steganography-studio .split-item .steg-btn,.steganography-studio .split-item .mini-btn{grid-column:2;justify-self:start}}
.steganography-studio .method-guide .info-card{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:12px;align-items:center;align-content:start}
.steganography-studio .method-guide .info-card .info-icon{grid-row:1;grid-column:1;margin-bottom:0}
.steganography-studio .method-guide .info-card h3{grid-row:1;grid-column:2;margin:0}
.steganography-studio .method-guide .info-card p,.steganography-studio .method-guide .info-card .facts{grid-column:1/-1}
.steganography-studio .method-guide .info-card p{margin-top:12px}

/* Host page integration */
/* The studio already has its own cards; keep the shared wrapper for layout only. */
.tool-template.image-steganography-page > .tool-template-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.steganography-studio { width: 100%; min-width: 0; color: var(--text); font-family: var(--font); line-height: 1.5; }
.steganography-studio .steg-card { scroll-margin-top: 5rem; }
.steganography-studio .field-help, .steganography-studio .helpnote, .steganography-studio .pane-tools .field-help { font-size: .875rem; }
.steganography-studio .steg-btn { white-space: normal; text-align: center; }
.steganography-studio .steg-btn:focus-visible, .steganography-studio .mini-btn:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }
@media (max-width: 420px) { .steganography-studio .steg-segment.small { flex-wrap: wrap; } .steganography-studio .steg-segment.small .segment-btn { padding-inline: .5rem; } }
