/* dmx.css — Krank'd DMX tools. Layers on app.css (shared design tokens).
   Patch Studio (dmx.html) + standalone dip-switch calculator (dipswitch.html). */

/* ===================== base utils ===================== */
.cross-link { text-decoration: none; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-variant-ligatures: none; letter-spacing: .03em; }
.no-print { }
.hidden { display: none !important; }
.ic { display: inline-flex; align-items: center; justify-content: center; }
.ic svg { display: block; }

:where(button, a, input, select, [tabindex]):focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(155, 77, 255, .45); border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== Krank'd branding ===================== */
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
/* the monogram art is dark — invert to white for the dark UI + purple glow */
.brand-logo { width: 48px; height: 48px; flex: none; object-fit: contain;
  filter: invert(1) drop-shadow(0 3px 14px rgba(125, 40, 219, .6)); }
.brand .title { line-height: 1.12; }
.brand .title b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.015em; display: block; }
.brand .title small { color: var(--tx-dim); font-size: 12px; }

.kd-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(125, 40, 219, .28), transparent 60%),
    radial-gradient(760px 460px at 92% 4%, rgba(155, 77, 255, .12), transparent 60%);
}
.shell { position: relative; z-index: 1; }
.shell-narrow { max-width: 760px; }

/* buttons (extend app.css .btn with icon support) */
.btn { display: inline-flex; align-items: center; gap: 7px; transition: background .15s, border-color .15s, transform .08s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--tx-dim); }
.btn.ghost:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.card-head .ic { color: var(--purple-xl); }
.card-head h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-dim); font-weight: 700; }
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--tx-dim); margin-bottom: 8px; letter-spacing: .02em; }
.hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--tx-faint); }

/* =====================================================================
   DECODER (standalone dipswitch.html) — kept intact
   ===================================================================== */
.dmx-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1020px) { .dmx-grid { grid-template-columns: 1fr; } }

details.adv { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
details.adv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--tx-dim); font-size: 12.5px; font-weight: 600; user-select: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: '▸'; color: var(--purple-l); transition: transform .15s; font-size: 11px; }
details.adv[open] > summary::before { transform: rotate(90deg); }
details.adv > summary:hover { color: var(--tx); }
details.adv .adv-label { color: var(--tx); }

.addr-row { gap: 8px; }
.addr-box { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; text-align: center; padding: 8px 10px; letter-spacing: .02em; }
.addr-box::-webkit-outer-spin-button, .addr-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn.step { font-size: 20px; line-height: 1; width: 46px; padding: 6px 0; flex: none; font-weight: 700; justify-content: center; }
.hero-card .result-hero .num { font-size: 64px; }

.bank-card { padding: 18px; }
.bank-stage { display: flex; justify-content: center; padding: 22px 10px 10px; border-radius: 14px;
  background: radial-gradient(120% 90% at 50% -10%, rgba(155,77,255,.10), transparent 60%), linear-gradient(180deg, #0e1120, #0a0c16); border: 1px solid var(--line); }
.bank-hint { text-align: center; margin: 12px 0 0; }
.dipbank { display: inline-flex; gap: 6px; padding: 14px 14px 10px; border-radius: 12px;
  background: linear-gradient(180deg, #2b3666 0%, #202a52 40%, #1a2244 100%); border: 1px solid #3a478a;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.10), inset 0 -3px 8px rgba(0,0,0,.5), 0 10px 28px -10px rgba(0,0,0,.8); }
.dipsw { appearance: none; border: 0; background: transparent; cursor: default; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 42px; color: var(--tx); }
.dipbank button.dipsw { cursor: pointer; }
button.dipsw:focus-visible { outline: none; box-shadow: none; }
button.dipsw:focus-visible .dip-track { box-shadow: 0 0 0 2px var(--purple-l), inset 0 2px 6px rgba(0,0,0,.7); }
.dip-on { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #6f7aa8; transition: color .18s; }
.dip-track { position: relative; width: 26px; height: 82px; border-radius: 6px; background: linear-gradient(180deg, #07090f, #0c1020); box-shadow: inset 0 2px 7px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; }
.dip-rocker { position: absolute; left: 3px; right: 3px; top: 3px; height: 40px; border-radius: 4px;
  background: linear-gradient(180deg, #fdfbf4 0%, #ece6d4 55%, #cfc8b4 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 3px rgba(0,0,0,.18);
  transform: translateY(36px); transition: transform .18s cubic-bezier(.34,1.4,.5,1), background .18s; }
.dip-rocker::after { content: ''; position: absolute; left: 5px; right: 5px; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(0,0,0,.16) 0 1.5px, transparent 1.5px 3px); }
.dipsw.on .dip-rocker { transform: translateY(0); background: linear-gradient(180deg, #ffffff 0%, #f3eefd 55%, #d9ccff 100%); }
.dipsw.on .dip-track { box-shadow: inset 0 2px 7px rgba(0,0,0,.8), inset 0 0 14px rgba(155,77,255,.55), inset 0 0 0 1px rgba(155,77,255,.5); }
.dipsw.on .dip-on { color: var(--purple-xl); }
.dipsw.hl .dip-track { animation: dip-pop .5s ease; }
@keyframes dip-pop { 0%,100% { } 30% { box-shadow: inset 0 2px 7px rgba(0,0,0,.8), inset 0 0 20px rgba(155,77,255,.9), inset 0 0 0 1px rgba(155,77,255,.8); } }
button.dipsw:hover .dip-track { box-shadow: inset 0 2px 7px rgba(0,0,0,.8), inset 0 0 0 1px rgba(155,77,255,.35); }
.dip-num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; line-height: 1; }
.dip-wt { font-size: 10px; color: var(--tx-faint); font-variant-numeric: tabular-nums; }
.sumline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: 'Poppins', sans-serif; }
.sum-eq { font-weight: 800; font-size: 30px; color: #fff; }
.sum-eq::after { content: '='; margin-left: 9px; color: var(--tx-faint); font-weight: 600; }
.sum-op { color: var(--tx-faint); font-weight: 700; font-size: 18px; }
.sum-chip { display: inline-flex; padding: 5px 12px; border-radius: 9px; font-weight: 700; font-size: 16px; background: #1a1430; color: var(--purple-xl); border: 1px solid #3a2a66; font-variant-numeric: tabular-nums; }
.copied-note { margin-left: 4px; }

/* =====================================================================
   PATCH STUDIO (dmx.html)
   ===================================================================== */
.studio-grid { display: grid; gap: 20px; grid-template-columns: minmax(310px, 350px) minmax(0, 1fr); align-items: start; }
.studio-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 18px; min-width: 0; }
.studio-main { min-width: 0; }
@media (max-width: 980px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } .studio-side { position: static; } }

/* patch header (show / venue / date / LD) */
.meta-card { display: grid; grid-template-columns: 1.5fr 1.5fr .9fr 1.1fr; gap: 16px; padding: 16px 18px; margin-bottom: 18px; }
@media (max-width: 760px) { .meta-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .meta-card { grid-template-columns: 1fr; } }
.meta-field { display: flex; flex-direction: column; gap: 6px; }
.meta-field > span { font-size: 11px; font-weight: 600; color: var(--tx-faint); text-transform: uppercase; letter-spacing: .06em; }

/* ---- add card ---- */
.add-card .field { margin-bottom: 18px; }
.add-card .field:last-child { margin-bottom: 0; }
.pos-input { font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { appearance: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--el); color: var(--tx-dim);
  transition: all .14s; }
.chip:hover { color: var(--tx); border-color: var(--purple-l); }
.chip.active { background: linear-gradient(145deg, var(--purple-l), var(--purple)); border-color: transparent; color: #fff; box-shadow: 0 3px 12px -4px rgba(125,40,219,.8); }

/* searchable fixture combobox */
.combo { position: relative; }
.combo-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--tx-faint); pointer-events: none; }
.combo-input { width: 100%; padding-left: 36px; }
.combo-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 320px; overflow-y: auto;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.combo-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-faint); padding: 9px 10px 4px; font-weight: 700; }
.combo-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-opt:hover { background: var(--el-2); }
.combo-opt .co-name { font-weight: 600; font-size: 13.5px; }
.combo-opt.custom { border-top: 1px solid var(--line); margin-top: 4px; }
.combo-opt.custom .co-name { color: var(--purple-xl); }
.ch-in { width: 90px; text-align: center; }
.custom-wrap { margin-top: 10px; }

/* mode pills */
.mode-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-pill { appearance: none; cursor: pointer; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--el); color: var(--tx); transition: all .14s; }
.mode-pill:hover { border-color: var(--purple-l); }
.mode-pill.active { border-color: var(--purple-l); background: linear-gradient(180deg, #241640, var(--el)); box-shadow: inset 0 0 0 1px rgba(155,77,255,.4); }
.mode-pill b { font-weight: 600; font-size: 13px; }
.mode-pill small { color: var(--tx-dim); font-size: 11px; }

/* qty stepper + add */
.qty-add { display: flex; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; }
.step-btn { appearance: none; cursor: pointer; border: 0; background: transparent; color: var(--tx-dim); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; transition: all .14s; }
.step-btn:hover { color: #fff; background: var(--el-2); }
.qty-out { min-width: 34px; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.add-btn { flex: 1; justify-content: center; font-size: 14.5px; padding: 11px 16px; }

/* settings */
.settings-card .field { margin-bottom: 16px; }
.settings-card .field:last-child { margin-bottom: 0; }

/* ---- summary card ---- */
.summary-card { padding: 20px 22px; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stats .stat { display: flex; flex-direction: column; line-height: 1.05; }
.stats .stat b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px;
  background: linear-gradient(160deg, #fff, var(--purple-xl)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats .stat span { font-size: 12px; color: var(--tx-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* universe selector tabs */
.uni-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.uni-tab { appearance: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--el); color: var(--tx-dim); transition: all .14s; }
.uni-tab:hover { color: var(--tx); border-color: var(--purple-l); }
.uni-tab.active { background: linear-gradient(145deg, var(--purple-l), var(--purple)); border-color: transparent; color: #fff; box-shadow: 0 3px 12px -4px rgba(125,40,219,.8); }
.uni-tab .ic { opacity: .85; }
.uni-tab .dot-u { width: 8px; height: 8px; border-radius: 50%; }
.uni-tab-pct { font-variant-numeric: tabular-nums; opacity: .7; font-size: 11px; }
.uni-tab.active .uni-tab-pct { opacity: .9; }

/* per-universe fill bars */
.universe-row { margin-top: 16px; }
.uni-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.uni-row-head b { font-family: 'Poppins', sans-serif; font-weight: 700; }
.universe-track { position: relative; height: 32px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px calc(100%/32)), var(--bg); }
.universe-bar { position: absolute; inset: 0; }
.uni-seg { position: absolute; top: 0; bottom: 0; border-right: 1px solid rgba(0,0,0,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: width .2s ease; }

/* ---- sheet card ---- */
.sheet-card { padding: 20px 22px; }
.sheet-card .card-head { margin-bottom: 6px; }
.tag-filter { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--purple-xl); background: #1a1430; border: 1px solid #3a2a66; padding: 3px 10px; border-radius: 999px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 20px; color: var(--tx-dim); }
.empty .ic { color: var(--purple-l); opacity: .8; }
.empty p { margin: 4px 0 0; font-weight: 600; color: var(--tx); }

.patch-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.patch-table thead th { text-align: left; color: var(--tx-faint); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.patch-table th.c-n, .patch-table td.c-n { width: 30px; text-align: right; color: var(--tx-faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.patch-table th.c-mode, .patch-table td.c-mode { white-space: nowrap; }
.patch-table th.c-uni, .patch-table td.c-uni { width: 52px; text-align: center; }
.patch-table th.c-addr, .patch-table td.c-addr { text-align: right; white-space: nowrap; }
.patch-table th.c-ch, .patch-table td.c-ch { text-align: right; white-space: nowrap; color: var(--tx-dim); font-variant-numeric: tabular-nums; }
.patch-table th.c-x, .patch-table td.c-x { width: 36px; text-align: right; }
.patch-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.patch-table .fx-row { transition: background .12s; }
.patch-table .fx-row:hover td { background: rgba(155,77,255,.05); }
.patch-table .fx-row td b { font-weight: 600; }
.patch-table .fx-row.over td { background: rgba(252,165,165,.06); }
.uni-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #1a1430; color: var(--purple-xl); border: 1px solid #3a2a66; font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; }
.addr-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #fff, var(--purple-xl)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pos-row td { padding: 0; border-bottom: 0; }
.pos-head-inner { display: flex; align-items: center; gap: 10px; margin: 20px 0 4px; padding: 0 4px 8px; border-bottom: 1px solid var(--line-2); }
.pos-group:first-child .pos-head-inner { margin-top: 6px; }
.pos-head-inner .dot { width: 11px; height: 11px; border-radius: 3px; box-shadow: 0 0 0 3px rgba(255,255,255,.06); flex: none; }
.pos-head-inner .pos-name { font-family: 'Poppins', sans-serif; font-size: 15.5px; font-weight: 700; }
.reorder { display: inline-flex; gap: 2px; }

.icon-btn { appearance: none; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--tx-faint);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; transition: all .14s; }
.icon-btn:hover:not(:disabled) { color: #fff; background: var(--el-2); border-color: var(--line-2); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* conflict / clash signalling */
.stats .stat.conflict b { background: none; -webkit-text-fill-color: var(--bad); color: var(--bad); }
.fx-row.clash td { background: rgba(252,165,165,.08) !important; }
.uni-seg.clash { outline: 1px solid #fff; outline-offset: -1px; }

/* per-position pin control (manual addressing) */
.pin-ctl { display: inline-flex; align-items: center; gap: 6px; }
.pin-lbl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--tx-faint); font-weight: 600; }
.pin-lbl .ic { color: var(--tx-faint); }
.pin-uni { width: auto; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.pin-addr { width: 64px; padding: 4px 8px; font-size: 12px; text-align: center; }

/* inline mode select on a row (blends in until focused) */
.mode-select { appearance: none; background: transparent; border: 1px solid transparent; color: var(--tx-dim); font: inherit; font-size: 12.5px;
  padding: 3px 22px 3px 7px; border-radius: 7px; cursor: pointer; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; }
.mode-select:hover { border-color: var(--line-2); color: var(--tx); }
.mode-select:focus { border-color: var(--purple-l); color: var(--tx); }

/* inline rename input */
.rename-in { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; padding: 2px 8px; width: 180px; }

/* undo / status toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -10px rgba(0,0,0,.8); font-size: 13.5px; }
.toast-undo { appearance: none; cursor: pointer; border: 0; background: transparent; color: var(--purple-xl); font: inherit; font-weight: 700; }
.toast-undo:hover { text-decoration: underline; }

/* help button + guided tour */
.help-btn { display: inline-flex; align-items: center; gap: 5px; appearance: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--el); color: var(--tx-dim); transition: all .14s; }
.help-btn:hover { color: #fff; border-color: var(--purple-l); }
.help-btn .ic { color: var(--purple-xl); }

.tour-overlay { position: fixed; inset: 0; z-index: 300; }
.tour-spot { position: fixed; display: none; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(8, 8, 14, .66), 0 0 0 2px var(--purple-l), 0 0 24px 4px rgba(155, 77, 255, .5);
  transition: top .25s cubic-bezier(.4,0,.2,1), left .25s cubic-bezier(.4,0,.2,1), width .25s, height .25s; }
.tour-card { position: fixed; width: 330px; max-width: calc(100vw - 28px); z-index: 301; padding: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 60px -12px rgba(0,0,0,.85); }
.tour-card:focus { outline: none; }
.tour-step { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-xl); }
.tour-card h4 { margin: 7px 0 6px; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tour-card p { margin: 0; color: var(--tx-dim); font-size: 13.5px; line-height: 1.55; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

@media (max-width: 700px) { .pin-lbl { display: none; } }
@media (max-width: 560px) {
  .c-mode { display: none; }
  .summary-card, .sheet-card { padding: 16px 14px; }
  .pos-head-inner { flex-wrap: wrap; row-gap: 8px; }
  .sheet-card { overflow-x: auto; }                 /* table scrolls inside its card, never the page */
  .patch-table { min-width: 320px; }
  .patch-table td, .patch-table thead th { padding: 9px 6px; }
  .stats { gap: 20px; }
  .stats .stat b { font-size: 28px; }
}

/* =====================================================================
   branded print patch sheet
   ===================================================================== */
.print-only { display: none; }
.print-header { align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid #111; }
.print-header .print-logo { width: 56px; height: 56px; object-fit: contain; }
.print-header .print-title { flex: 1; }
.print-header .print-title b { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 800; display: block; }
.print-header .print-meta { font-size: 12px; color: #444; margin-top: 3px; }
.print-header .print-brand { text-align: right; line-height: 1.15; }
.print-header .print-brand b { font-family: 'Poppins', sans-serif; font-size: 15px; letter-spacing: .04em; display: block; }
.print-header .print-brand span { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: .12em; }
.print-footer { margin-top: 16px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 10px; color: #666; text-align: center; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111; }
  .kd-ambient, .topbar, .meta-card, .studio-side, .actions, .uni-tabs, .footer-note, .no-print, .tour-overlay, .toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 0; }
  .print-only { display: flex; }
  .print-footer { display: block; }
  .card { box-shadow: none; border: 0; background: #fff; color: #111; padding: 0; margin: 0 0 16px; break-inside: avoid; }
  .card-head .ic, .card-head h3 { color: #333; }
  .stats .stat b, .addr-num { color: #111 !important; -webkit-text-fill-color: #111; background: none; }
  .stats .stat span { color: #555; }
  .uni-tag { background: #eee; color: #333; border-color: #ccc; }
  .patch-table thead th, .pos-head-inner { border-color: #999; color: #333; }
  .patch-table td { border-color: #ddd; }
  .patch-table .fx-row:hover td { background: none; }
  .universe-track { border-color: #bbb; background: #f4f4f7; }
  .uni-row-head b { color: #111; }
  .c-mode { display: table-cell; }
  .mode-select { -webkit-appearance: none; appearance: none; background: none; border: 0; color: #333; padding: 0; }
}
