/* Copyright (C) 2026 Pierre Arnaud GUYOT (OktoPierre)
   SPDX-License-Identifier: GPL-3.0-or-later */
/* Okto MultiWave Synth — created by Pierre Arnaud GUYOT (OktoPierre); based on his Wavelet Synthesizer (beta 0.7). Release beta 0.2.
   Web UI. The device is a fixed 1100×860 panel (+ 120 with CHORD MODE) scaled to fit. */
:root {
  --page: #0b0d10;
  --panel: #171a20;
  --panel-2: #1b1f26;
  --card: #1f242c;
  --card-edge: #2b313b;
  --inset: #101317;
  --text: #d5dce6;
  --dim: #8792a1;
  --faint: #566070;
  --accent-a: #2fd4c6;
  --accent-b: #ffae42;
  --accent: var(--accent-a);
  --accent-soft: rgba(47, 212, 198, 0.16);
  --danger: #ff5d5d;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); font-family: var(--font); overflow: hidden; }
body { display: flex; flex-direction: column; }
button { font-family: inherit; }

#stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
#device {
  position: absolute; left: 0; top: 0; width: 1100px; height: 860px; transform-origin: 0 0;   /* ui.js sets 980 with CHORD MODE (the chord card) */
  background: linear-gradient(180deg, #1c2027 0%, var(--panel) 9%, #14171c 100%);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
#device.mode-b { --accent: var(--accent-b); --accent-soft: rgba(255, 174, 66, 0.16); }

/* beta 0.3: the preset browser at the right of the panel (as in the VST plug-in), selection only */
#browser { position: absolute; left: 0; top: 0; width: 348px; height: 844px; transform-origin: 0 0; display: flex; flex-direction: column;
  padding: 6px 12px 10px; background: linear-gradient(180deg, var(--card) 0%, #1a1e25 100%); border: 1px solid var(--card-edge);
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04); user-select: none; -webkit-user-select: none; }
#browser.mode-b { --accent: var(--accent-b); }
#browser .bhead { display: flex; align-items: center; justify-content: space-between; height: 22px; }
#browser .btitle { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
#browser .bhide { height: 20px; padding: 0 8px; border: 1px solid #262c35; border-radius: 5px; background: var(--inset); color: var(--dim);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; }
#browser .bhide:hover { color: var(--text); border-color: #3a4250; }
#browser .btabs { display: flex; gap: 2px; height: 28px; margin-top: 6px; padding: 2px; background: var(--inset); border: 1px solid #262c35; border-radius: 7px; }
#browser .btabs button { flex: 1; border: 0; border-radius: 5px; background: transparent; color: var(--dim); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; white-space: pre; }
#browser .btabs button:hover { color: var(--text); }
#browser .btabs button.on { background: var(--accent); color: #0d1014; }
#browser .bcols { flex: 1; display: flex; gap: 8px; margin-top: 8px; min-height: 0; }
#browser .bcats { width: 122px; padding: 4px; background: var(--inset); border: 1px solid #262c35; border-radius: 7px; overflow-y: auto; }
#browser .bcat { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 6px 0 9px; margin-bottom: 2px;
  border-radius: 5px; font-size: 11px; color: #aeb7c4; cursor: pointer; white-space: nowrap; }
#browser .bcat .n { font-size: 9.5px; color: var(--dim); }
#browser .bcat:hover { background: rgba(255,255,255,0.04); color: var(--text); }
#browser .bcat.sel { background: var(--accent-soft); color: #eef2f7; font-weight: 700; box-shadow: inset 2.5px 0 0 var(--accent); }
#browser .bcat.empty { color: var(--faint); }
#browser .bright { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#browser .bhd { height: 20px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--dim); white-space: pre; overflow: hidden; }
#browser .blist { flex: 1; padding: 4px; background: var(--inset); border: 1px solid #262c35; border-radius: 7px; overflow-y: auto; }
/* beta 0.4: a wide scroll bar, always shown, easy to drag with a trackpad (as in the plug-in) */
#browser .blist::-webkit-scrollbar { width: 12px; }
#browser .blist::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 6px; }
#browser .blist::-webkit-scrollbar-thumb { min-height: 28px; background: rgba(255,255,255,0.27); border: 1px solid transparent; background-clip: padding-box; border-radius: 6px; }
#browser .blist::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.43); }
#browser .bsnd { display: flex; align-items: center; height: 22px; padding: 0 6px 0 9px; border-radius: 4px; font-size: 11.5px; color: #d5dce6;
  cursor: pointer; white-space: nowrap; }
#browser .bsnd:hover { background: rgba(255,255,255,0.05); }
#browser .bsnd.cur { background: var(--accent-soft); color: #fff; font-weight: 700; box-shadow: inset 2.5px 0 0 var(--accent); }
#browser .bsnd .eng { font-weight: 800; margin-right: 3px; }
#browser .bsnd .eng .a { color: var(--accent-a); }
#browser .bsnd .eng .b { color: var(--accent-b); }
#browser .bsnd .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; }
#browser .bsnd .mk { margin-left: 6px; color: #ffcf4a; font-size: 10px; }
#browser .bsnd .mk.vote { opacity: 0.8; font-size: 9.5px; font-weight: 700; }
#browser .bnone { padding: 8px; font-size: 10.5px; color: var(--faint); white-space: normal; }
#browser .bstatus { margin-top: 6px; font-size: 9px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section { position: absolute; }
.section.card { background: linear-gradient(180deg, var(--card) 0%, #1a1e25 100%); border: 1px solid var(--card-edge); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.section .title { position: absolute; left: 12px; top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); white-space: nowrap; }
.section .title b { color: var(--accent); font-weight: 700; }
.section.hidden { display: none; }
.w { position: absolute; }

/* knobs */
.knob { cursor: ns-resize; }
.knob svg { position: absolute; left: 0; top: 0; overflow: visible; }
.knob .label { position: absolute; left: -6px; right: -6px; text-align: center; font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--dim); white-space: nowrap; overflow: hidden; }
.knob.active .label, .knob:hover .label { color: var(--text); }
.knob .label.value { color: var(--accent); }
.knob.disabled { opacity: 0.35; }
.knobS .label { display: none; }

/* segmented & stepper */
.seg { display: flex; background: var(--inset); border: 1px solid #262c35; border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 5px; cursor: pointer; padding: 0; }
.seg button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.seg button.on { color: #0d1014; background: var(--accent); box-shadow: 0 0 12px var(--accent-soft); }
.seg.engine { padding: 3px; border-radius: 9px; }
.seg.engine button { font-size: 11px; letter-spacing: 0.1em; }
.seg.engine button:nth-child(1).on, .seg.engine button:nth-child(2).on { background: var(--accent-a); }   /* A1 A2 */
.seg.engine button:nth-child(3).on, .seg.engine button:nth-child(4).on { background: var(--accent-b); }   /* B1 B2 */
.seg.engine button:nth-child(2), .seg.engine button:nth-child(4) { margin-right: 4px; }   /* the two engines apart */
.seg.engine button:nth-child(1), .seg.engine button:nth-child(3) { color: var(--text); }

/* beta 0.3: drop-down menu widget (LFO 2 TARGET) */
.menu button { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px;
  background: var(--inset); border: 1px solid #262c35; border-radius: 5px; color: var(--accent); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; }
.menu button:hover { border-color: #3a4250; }
.menu button span { color: var(--dim); font-size: 9px; }
.menu .mcap { position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--dim); pointer-events: none; }
.menu .mpop { position: absolute; left: 0; bottom: calc(100% + 4px); min-width: 140px; background: #1d2129; border: 1px solid #343b47;
  border-radius: 8px; padding: 4px 0; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.menu .mpop .it { padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.menu .mpop .it:hover { background: rgba(255,255,255,0.06); }
.menu .mpop .it.cur { color: var(--accent); }
.step { display: flex; align-items: stretch; background: var(--inset); border: 1px solid #262c35; border-radius: 7px; overflow: hidden; }
.step button { width: 30px; border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 12px; }
.step button:hover { color: var(--accent); background: rgba(255,255,255,0.04); }
.step .name { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text); cursor: pointer; white-space: nowrap; }
.step .name small { color: var(--faint); font-weight: 600; font-size: 9.5px; letter-spacing: 0.12em; }

/* drawbars */
.drawbar { cursor: ns-resize; }
.drawbar .track { position: absolute; left: 7px; right: 7px; top: 0; bottom: 0; background: var(--inset); border-radius: 5px; border: 1px solid #262c35; overflow: hidden; }
.drawbar .fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--accent), rgba(255,174,66,0.35)); opacity: 0.85; }
.drawbar .cap { position: absolute; left: 0; right: 0; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #f1f4f8, #b9c1cc);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.drawbar .num { position: absolute; left: -4px; right: -4px; bottom: -16px; text-align: center; font-size: 9.5px; font-weight: 700; color: var(--dim); }
.drawbar:hover .num, .drawbar.active .num { color: var(--accent); }

/* canvases */
canvas.disp { position: absolute; left: 0; top: 0; border-radius: 6px; }
.screen { background: #0c0f13; border: 1px solid #252b34; border-radius: 7px; box-shadow: inset 0 0 18px rgba(0,0,0,0.6); }

/* header widgets */
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--inset); border: 1px solid #2a303a; display: flex; align-items: center; justify-content: center; }
.logo .txt { line-height: 1.05; }
.logo .txt b { display: block; font-size: 13.5px; letter-spacing: 0.22em; color: #eef2f7; }
.logo .txt span { font-size: 9px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; white-space: nowrap; }
.presets { display: flex; background: var(--inset); border: 1px solid #262c35; border-radius: 8px; overflow: visible; position: relative; }
.presets button.arrow { width: 30px; border: 0; background: transparent; color: var(--dim); cursor: pointer; }
.presets button.arrow:hover { color: var(--accent); }
.presets .pname { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #eef2f7; }
.presets .pname .dirty { color: var(--accent); font-size: 14px; line-height: 1; }
.presets .pname .chev { color: var(--faint); font-size: 10px; }
.pmenu { position: absolute; top: 34px; left: 0; right: 0; background: #1d2129; border: 1px solid #343b47; border-radius: 8px; padding: 6px 0;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6); z-index: 50; max-height: 520px; overflow-y: auto; }
.pmenu .grp { font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint); padding: 8px 14px 4px; font-weight: 700; }
.pmenu .grp.fold { cursor: pointer; display: flex; align-items: baseline; gap: 6px; user-select: none; color: #8b94a3; }
.pmenu .grp.fold:hover, .pmenu .grp.fold.open { color: #b9c0cc; }
.pmenu .grp .tw { width: 10px; display: inline-block; }
.pmenu .grp .cnt { margin-left: auto; font-weight: 400; letter-spacing: 0; }
.pmenu .it { padding: 6px 14px; font-size: 12.5px; cursor: pointer; display: flex; justify-content: space-between; }
.pmenu .it:hover { background: rgba(255,255,255,0.06); }
.pmenu .it.cur { color: var(--accent); }
.pmenu .eng { display: inline-block; min-width: 24px; font-weight: 800; }
.pmenu .eng .d, #browser .bsnd .eng .d { color: var(--dim); font-weight: 600; }
.pmenu .eng .a { color: var(--accent-a); }
.pmenu .eng .b { color: var(--accent-b); }
.pmenu .it .del { color: var(--faint); visibility: hidden; }
.pmenu .it:hover .del { visibility: visible; }
.pmenu .it .del:hover { color: var(--danger); }
.hbtn { border: 1px solid #2c333e; background: var(--inset); color: var(--dim); border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  cursor: pointer; line-height: 1.15; }
.hbtn:hover { color: var(--text); border-color: #3a4250; }
.hbtn b { display: block; font-size: 12px; color: var(--accent-a); }
/* beta 0.6: MANUAL in the colour of the engine shown (its manual opens); DOWNLOAD VST is a link styled as a button */
.hbtn.manual b { color: var(--accent); }
.hbtn.evalbtn b { color: #ffcf4a; }
.hbtn.evalbtn.running { color: #0d1014; background: #ffcf4a; border-color: #ffcf4a; }
.hbtn.evalbtn.running b { color: #0d1014; }
a.hbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; }
.hbtn.dl { letter-spacing: 0.04em; }   /* DOWNLOAD fills the 68 px button otherwise */
.hbtn.dl b { color: #f2b04a; letter-spacing: 0.1em; }
.zoom { display: none; }
/* demo */
.demo-btn { position: absolute; left: 222px; top: 12px; width: 50px; height: 24px; white-space: nowrap; padding: 0; color: var(--accent); border-color: var(--accent);
  font-size: 10px; letter-spacing: 0.1em; z-index: 5; }
.demo-btn:hover { color: #0d1014; background: var(--accent); }
.demo-btn.running { color: #0d1014; background: var(--accent); box-shadow: 0 0 14px var(--accent-soft); }
.demo-arrow { position: absolute; left: 274px; top: 12px; width: 14px; height: 24px; padding: 0; color: var(--accent); border-color: var(--accent);
  font-size: 9px; z-index: 5; }
.demo-arrow:hover { color: #0d1014; background: var(--accent); }
.demo-menu .tag { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-left: 6px; }
.demo-menu { position: absolute; left: 222px; top: 40px; width: 360px; right: auto; z-index: 60; }
.demo-menu .it b { font-weight: 600; color: #eef2f7; }
.demo-menu .dur { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 12px; }
.demo-menu .sep { height: 1px; background: #343b47; margin: 6px 0; }
.demo-win { position: absolute; left: 700px; top: 330px; width: 386px; display: none; z-index: 40; background: rgba(13, 16, 20, 0.95);
  border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 24px var(--accent-soft); }
.dw-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; cursor: move;
  border-bottom: 1px solid #262c35; }
.dw-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-stop { flex: none; border: 1px solid #343b47; background: #161a20; color: var(--text); border-radius: 5px; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; padding: 3px 8px; cursor: pointer; }
.dw-stop:hover { border-color: var(--accent); color: var(--accent); }
.dw-body { padding: 8px 12px 9px; }
.dw-sec { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.dw-param { font-size: 14px; font-weight: 700; color: #eef2f7; margin-top: 4px; }
.dw-val { font-size: 12px; color: var(--accent); margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-text { font-size: 11.5px; line-height: 1.4; color: var(--text); margin-top: 6px; min-height: 48px; }
.dw-prog { height: 3px; background: #262c35; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.dw-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.dw-foot { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--faint); margin-top: 5px; }
.knob.hot svg { filter: drop-shadow(0 0 6px var(--accent)); }
.knob.hot .label { color: var(--accent); }
.seg.hot, .step.hot { box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent-soft); }
.drawbar.hot .track { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-soft); }
.credit { font-size: 9.5px; line-height: 15px; color: var(--faint); text-align: left; letter-spacing: 0.04em; white-space: nowrap; }
.credit b { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
/* Okto MultiWave Synth: on / off buttons (CHORD ON, BASS), the chord pads and the strum plate */
.toggle button { width: 100%; height: 100%; padding: 0; border: 1px solid #262c35; border-radius: 5px; background: var(--inset); color: var(--dim);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; }
.toggle button:hover { color: var(--text); border-color: #3a4250; background: #262c35; }
.toggle button.on { background: var(--accent); border-color: var(--accent); color: #0d1014; box-shadow: 0 0 12px var(--accent-soft); }
.chordpads canvas, .strumplate canvas, .chordname canvas { border-radius: 7px; }
/* a caption written like a section title (beta 0.6: SCALOGRAM inside the SCOPE card) */
.wlabel { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; line-height: 14px; color: var(--dim); white-space: nowrap; }

/* status bar */
#statusbar { height: 38px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 12px; color: var(--dim);
  border-top: 1px solid #1d2128; background: #0e1014; }
.st-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st-item b { color: var(--text); }
.st-keys { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
#st-midi { flex: none; max-width: 460px; overflow: hidden; text-overflow: ellipsis; display: block; }
.st-sel { flex: none; border: 1px solid #2c333e; background: #161a20; color: var(--text); border-radius: 6px; padding: 4px 6px; font-size: 12px; cursor: pointer; }
.st-sel:hover { border-color: var(--accent-a); }
#st-audio { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #444b57; display: inline-block; }
.st-item.on .dot { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.st-spacer { flex: 1; }
.st-btn { flex: none; white-space: nowrap; border: 1px solid #2c333e; background: #161a20; color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.st-btn:hover { border-color: var(--accent-a); }

/* overlays */
/* beta 0.6: the welcome window (browsers need a click before any sound): run the demo, play, or download the VST.
   margin: auto centres it and still lets a short screen scroll to its top. */
#start-overlay { position: fixed; inset: 0; display: flex; padding: 16px; overflow-y: auto;
  background: rgba(8, 10, 13, 0.55); backdrop-filter: blur(2px); z-index: 80; }
#start-overlay.gone { display: none; }
.welcome { width: 640px; max-width: 100%; margin: auto; padding: 26px 28px 20px; background: #161a20; border: 1px solid #2c333e; border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65); color: #eef2f7; }
.welcome h1 { margin: 0; font-size: 22px; letter-spacing: 0.02em; }
.welcome h1 span { color: var(--accent-a); }
.welcome .sub { margin: 6px 0 20px; color: var(--dim); font-size: 13px; }
.welcome .sub.msg { color: var(--accent-b); }
.welcome .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.welcome .choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; border: 1px solid #2c333e;
  border-radius: 12px; background: #1b2028; color: #eef2f7; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.welcome .choice:hover { border-color: var(--accent-a); background: #1e252e; }
.welcome .choice.main { border-color: var(--accent-a); box-shadow: 0 0 30px rgba(47,212,198,0.18); }
.welcome .choice svg { width: 30px; height: 30px; flex: none; color: var(--accent-a); }
.welcome .choice.dl svg { color: #f2b04a; }
.welcome .choice b { font-size: 15px; }
.welcome .choice small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.welcome .foot { margin: 16px 0 0; color: var(--dim); font-size: 11.5px; }
.welcome .foot a { color: var(--accent-a); }
.welcome .choice:focus-visible, .welcome a:focus-visible { outline: 2px solid #eef2f7; outline-offset: 3px; }
@media (max-width: 560px) {
  .welcome { padding: 20px 16px 16px; }
  .welcome h1 { font-size: 19px; }
  .welcome .choices { grid-template-columns: 1fr; gap: 8px; }
  .welcome .choice { padding: 12px 14px; }
}
#manual-overlay { position: fixed; inset: 0; background: rgba(5, 6, 8, 0.72); z-index: 90; display: flex; align-items: center; justify-content: center; }
#manual-overlay[hidden] { display: none; }
.manual-frame { width: min(1100px, 94vw); height: 90vh; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.manual-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 10px 0 18px; background: #14171c; color: #eef2f7; font-size: 13px; font-weight: 600; }
.manual-bar a { color: var(--accent-a); font-weight: 500; text-decoration: none; }
.manual-bar button { border: 0; background: transparent; color: #c0c8d4; font-size: 18px; cursor: pointer; width: 34px; height: 34px; border-radius: 6px; }
.manual-bar button:hover { background: rgba(255,255,255,0.08); }
#manual-iframe { flex: 1; border: 0; width: 100%; background: #fff; }

.tip { position: fixed; pointer-events: none; z-index: 60; background: #0b0d10; color: var(--text); border: 1px solid #343b47; border-radius: 6px;
  padding: 4px 8px; font-size: 11.5px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.tip b { color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
  .st-keys { display: none; }
  #statusbar { gap: 10px; padding: 0 10px; }
}
