/* ── WINAMP ────────────────────────────────────────────────────── */
.winamp-frame { width: 340px; }
.winamp-frame .titlebar { background: linear-gradient(#3f3f52, #23232e); font-size: 10px; letter-spacing: 3px; }
.winamp { background: #23232e; color: #ccc; }
.wa-main { padding: 8px; background: linear-gradient(#33333f, #23232e); border-bottom: 2px solid #16161d; }
.wa-display { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto auto; gap: 4px 8px; background: #000; border: 2px inset #4a4a5a; padding: 6px; }
.wa-time { grid-row: 1 / 3; font-family: "Lucida Console", monospace; font-size: 30px; color: #00e800; text-shadow: 0 0 6px #00e80088; display: flex; align-items: center; }
.wa-vis { grid-column: 2; background: #000; width: 100%; height: 32px; image-rendering: pixelated; }
.wa-song { grid-column: 1 / 3; overflow: hidden; }
.wa-marquee { font-family: "Lucida Console", monospace; font-size: 10px; color: #00e800; white-space: nowrap; }
.wa-info { grid-column: 1 / 3; font-family: "Lucida Console", monospace; font-size: 9px; color: #00e800; }
.wa-seek { margin: 8px 0 4px; }
.wa-seek input, .wa-vol { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; background: linear-gradient(#111, #333); border: 1px solid #000; border-radius: 3px; }
.wa-seek input::-webkit-slider-thumb, .wa-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 12px; background: linear-gradient(#8a8aa0, #55556a); border: 1px outset #9a9ab0; border-radius: 2px; cursor: pointer; }
.wa-controls { display: flex; align-items: center; gap: 3px; margin-top: 6px; }
.wa-controls > button { width: 30px; height: 22px; background: linear-gradient(#5a5a6e, #3a3a48); color: #ddd; border: 1px outset #6a6a80; border-radius: 3px; cursor: pointer; font-size: 10px; }
.wa-controls > button:active { border-style: inset; }
.wa-controls > button.lit { color: #00e800; text-shadow: 0 0 5px #00e800; }
.wa-toggles { display: flex; gap: 3px; margin-left: 6px; }
.wa-toggles button { width: 38px; height: 22px; font-size: 8px; letter-spacing: 1px; background: linear-gradient(#4a4a5c, #32323e); color: #888; border: 1px outset #5a5a70; border-radius: 3px; cursor: pointer; }
.wa-toggles button.lit { color: #00e800; text-shadow: 0 0 5px #00e800; }
.wa-vol { width: 68px; margin-left: auto; }
.wa-pl { background: #16161d; }
.wa-pl-title { text-align: center; font-size: 9px; letter-spacing: 3px; color: #8a8aa0; padding: 4px; background: linear-gradient(#33333f, #23232e); }
.wa-pl-list { max-height: 190px; overflow-y: auto; padding: 3px 0; }
.wa-row { font-family: "Lucida Console", monospace; font-size: 11px; color: #00b400; padding: 2px 10px; cursor: pointer; display: flex; gap: 6px; white-space: nowrap; }
.wa-row:hover { background: #00330a; }
.wa-row.current { color: #fff; background: #0000c8; }
.wa-num { color: #007800; } .wa-row.current .wa-num { color: #9a9aff; }
.wa-dur { margin-left: auto; }
.wa-pl-foot { display: flex; justify-content: space-between; padding: 5px 10px; font-size: 9px; color: #667; background: linear-gradient(#2a2a35, #1c1c24); }
.wa-pl-tip a { color: #6a9aff; }

/* ── CUBASE ────────────────────────────────────────────────────── */
.cubase-frame .titlebar { background: linear-gradient(#9aa2b0, #6d7686); color: #101418; text-shadow: none; }
.cubase { background: #aab2be; display: flex; flex-direction: column; height: 100%; font-size: 11px; }
.cb-toolbar { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: linear-gradient(#cfd5dd, #aab2be); border-bottom: 1px solid #7a828e; flex: none; }
.cb-tool { width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(#e8ecf0, #c4cad2); border: 1px outset #dde; cursor: pointer; font-size: 12px; }
.cb-tool.active { border-style: inset; background: #9fb6d8; }
.cb-snap { margin-left: 12px; color: #333; font-size: 10px; }
.cb-song { margin-left: auto; font-weight: bold; color: #1a2a4a; }
.cb-arrange { flex: 1; display: flex; min-height: 0; border-bottom: 2px solid #7a828e; }
.cb-tracklist { width: 190px; flex: none; background: #c4cad2; border-right: 2px solid #7a828e; overflow: hidden; }
.cb-th, .cb-tr { display: grid; grid-template-columns: 18px 18px 18px 1fr 30px; align-items: center; height: 26px; padding: 0 4px; border-bottom: 1px solid #a5adb8; font-size: 10px; }
.cb-th { background: #8f96a3; color: #fff; font-weight: bold; height: 22px; }
.cb-tr .cb-led { width: 8px; height: 8px; border-radius: 50%; background: #4a9; box-shadow: 0 0 3px #4a9; }
.cb-tr .cb-m, .cb-tr .cb-c { color: #555; font-weight: bold; cursor: pointer; }
.cb-tr .cb-name { font-weight: bold; color: #223; overflow: hidden; white-space: nowrap; }
.cb-grid-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cb-ruler { height: 22px; background: linear-gradient(#dde2e8, #c0c6ce); border-bottom: 1px solid #7a828e; display: flex; flex: none; }
.cb-tick { flex: 1; border-left: 1px solid #8a929e; font-size: 9px; color: #445; padding: 4px 0 0 3px; }
.cb-grid { flex: 1; position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, #e8ecf0 0 1px, transparent 1px 6.25%),
              repeating-linear-gradient(#f4f6f8 0 25px, #d8dde3 25px 26px); }
.cb-part { position: absolute; height: 22px; margin-top: 2px; border: 1px solid #0006; border-radius: 2px; overflow: hidden; opacity: .92; cursor: pointer;
  background-image: repeating-linear-gradient(0deg, #ffffff30 0 2px, transparent 2px 5px); }
.cb-part span { font-size: 8px; color: #fff; padding-left: 3px; text-shadow: 1px 1px 1px #0008; white-space: nowrap; }
.cb-part:hover { opacity: 1; box-shadow: 0 0 0 1px #fff8; }
.cb-playhead { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #e11; z-index: 5; box-shadow: 0 0 4px #e11; left: 0; }
.cb-transport { flex: none; display: flex; align-items: center; gap: 14px; padding: 7px 12px; background: linear-gradient(#3c414a, #23262c); }
.cb-lcd { display: flex; gap: 10px; }
.lcd-block { background: #0a0f0a; border: 1px inset #555; padding: 3px 8px; }
.lcd-label { display: block; font-size: 7px; color: #6a8; letter-spacing: 1px; }
.lcd-val { font-family: "Lucida Console", monospace; font-size: 13px; color: #6f6; text-shadow: 0 0 4px #6f68; }
.cb-tbtns { display: flex; gap: 4px; }
.cb-tbtns button { width: 36px; height: 26px; background: linear-gradient(#6a7078, #464b52); color: #ddd; border: 1px outset #7a8088; border-radius: 3px; cursor: pointer; }
.cb-tbtns button:active { border-style: inset; }
.cb-tbtns .cb-rec { color: #f55; }
.cb-meters { display: flex; flex-direction: column; gap: 3px; width: 110px; }
.cb-meter { height: 7px; background: #111; border: 1px inset #555; }
.cb-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2c2 60%, #cc2 85%, #c22); transition: width 60ms linear; }
.cb-meter-label { font-size: 7px; color: #9ab; letter-spacing: 1px; }
.cb-perf { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #9ab; font-size: 9px; }
.cb-cpu { width: 60px; height: 8px; background: #111; border: 1px inset #555; }
.cb-cpu i { display: block; height: 100%; width: 3%; background: #2c2; transition: width 100ms; }
.cb-open { padding: 8px; }
.cb-open-head { padding: 4px 6px; background: #fff; border: 1px solid #7f9db9; margin-bottom: 6px; }
.cb-open-list { background: #fff; border: 1px solid #7f9db9; max-height: 240px; overflow-y: auto; }
.cb-open-row { display: flex; align-items: center; gap: 7px; padding: 4px 8px; cursor: pointer; }
.cb-open-row:hover { background: #316ac5; color: #fff; }
.cb-open-row .ic svg { width: 18px; height: 18px; }
.cb-open-meta { margin-left: auto; font-size: 10px; color: #888; }
.cb-open-row:hover .cb-open-meta { color: #cfe0ff; }
.cb-open-foot { padding: 5px 2px 0; font-size: 10px; color: #555; }

/* ── EXPLORER ──────────────────────────────────────────────────── */
.explorer-frame .win-body { background: #fff; }
.exp-addr { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; flex: none !important; }
.exp-addr-box { flex: 1; background: #fff; border: 1px solid #7f9db9; padding: 3px 6px; display: flex; align-items: center; gap: 6px; }
.exp-addr-box svg { width: 16px; height: 16px; }
.exp-go { min-width: 0; }
.explorer { display: flex; height: 100%; min-height: 0; }
.exp-side { width: 190px; flex: none; padding: 12px; overflow-y: auto;
  background: linear-gradient(180deg, #7aa7e0 0%, #6f9fdd 100%); }
.exp-pane { background: #f2f7fe; border-radius: 6px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 4px #0003; }
.exp-pane-title { padding: 6px 10px; font-weight: bold; font-size: 11px; color: #215dc6; background: linear-gradient(#fff, #cfdef7); }
.exp-pane-body { padding: 8px 10px; font-size: 11px; color: #215dc6; }
.exp-details { color: #444; line-height: 1.5; }
.exp-link { padding: 3px 0; cursor: pointer; }
.exp-link:hover { text-decoration: underline; color: #4a90e2; }
.exp-main { flex: 1; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; overflow-y: auto; background: #fff; }
.exp-item { width: 120px; text-align: center; padding: 8px 4px; cursor: pointer; border-radius: 4px; align-self: flex-start; }
.exp-item:hover { background: #e8f0fc; }
.exp-item.sel { background: #316ac5; color: #fff; }
.exp-item.sel .exp-sub { color: #cfe0ff; }
.exp-ic { display: block; height: 44px; margin-bottom: 5px; }
.exp-ic svg { width: 42px; height: 42px; }
.exp-art { width: 44px; height: 44px; object-fit: cover; border: 1px solid #aaa; }
.exp-label { font-size: 11px; line-height: 1.3; word-wrap: break-word; display: block; }
.exp-sub { font-size: 10px; color: #888; display: block; margin-top: 2px; }
.imgview { padding: 10px; background: #4a4a52; text-align: center; }
.imgview img { max-width: 100%; border: 1px solid #222; }
.imgview-cap { color: #ddd; font-size: 11px; padding-top: 8px; }

/* ── NOTEPAD ───────────────────────────────────────────────────── */
.notepad { height: 100%; }
.notepad textarea { width: 100%; height: 100%; border: none; resize: none; outline: none; padding: 8px; font-family: "Lucida Console", Consolas, monospace; font-size: 12px; line-height: 1.5; background: #fff; color: #111; user-select: text; }

/* ── INTERNET EXPLORER ─────────────────────────────────────────── */
.ie { display: flex; flex-direction: column; height: 100%; }
.ie-toolbar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; flex: none; font-size: 11px; }
.ie-addr { flex: 1; background: #fff; border: 1px solid #7f9db9; padding: 3px 8px; font-size: 11px; color: #333; }
.ie-page { flex: 1; overflow-y: auto; background: #008080; padding: 14px; }
.ie-inner { max-width: 600px; margin: 0 auto; background: #fffff0; border: 3px ridge #c0c0c0; padding: 12px; font-family: "Times New Roman", serif; font-size: 14px; user-select: text; }
.ie-banner { text-align: center; font-family: "Comic Sans MS", cursive; font-size: 15px; font-weight: bold; color: #f0f; background: #000; padding: 8px; animation: rainbow 3s linear infinite; }
@keyframes rainbow { 0% { color: #f0f; } 25% { color: #0ff; } 50% { color: #ff0; } 75% { color: #0f0; } 100% { color: #f0f; } }
.ie-marquee { overflow: hidden; background: #000080; color: #ff0; padding: 4px 0; margin: 8px 0; white-space: nowrap; }
.ie-marquee span { display: inline-block; padding-left: 100%; animation: marq 22s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.ie-table { width: 100%; border-collapse: collapse; }
.ie-nav { width: 150px; vertical-align: top; background: #e0e0ff; border: 2px inset #c0c0c0; padding: 8px; font-size: 12px; }
.ie-nav a { display: block; padding: 4px 0; }
.ie-construction { margin-top: 10px; text-align: center; font-size: 10px; font-weight: bold; color: #b00;
  background: repeating-linear-gradient(45deg, #ff0 0 8px, #000 8px 16px); padding: 6px 2px; -webkit-text-stroke: 3px #ff0; paint-order: stroke fill; }
.ie-content { vertical-align: top; padding: 8px 12px; }
.ie-content h2 { font-size: 18px; color: #000080; margin-bottom: 8px; }
.ie-content p { margin: 8px 0; line-height: 1.5; }
.ie-tip { background: #ffffcc; border: 1px dashed #cc9; padding: 6px; font-size: 12px; }
.ie-footer { text-align: center; margin-top: 12px; border-top: 1px solid #999; padding-top: 8px; font-size: 12px; }
.ie-counter i { font-style: normal; background: #000; color: #0f0; font-family: "Lucida Console", monospace; padding: 1px 3px; margin: 0 1px; }

/* ── A DIFFERENT DRUM (store replica) ──────────────────────────── */
.add-page { background: #99cccc !important; padding: 0 !important; }
.add-store { font-family: Verdana, Arial, sans-serif; background: #99cccc; color: #111; min-height: 100%; }
.add-header { display: flex; align-items: center; gap: 14px; background: #000; padding: 8px 14px; }
.add-logo { flex: none; }
.add-logo img { height: 54px; width: auto; display: block; filter: invert(1); }
.add-word { color: #8ecccc; font-size: 22px; font-weight: bold; font-style: italic; letter-spacing: 1px; font-family: Arial, sans-serif; }
.add-tag { color: #6fb0b0; font-size: 11px; font-style: italic; font-family: Georgia, serif; }
.add-phone { margin-left: auto; color: #8ecccc; font-size: 10px; text-align: right; line-height: 1.5; }
.add-nav { display: flex; flex-wrap: wrap; background: #003333; padding: 4px 8px; }
.add-nav a { color: #bfe6e6; font-size: 11px; font-weight: bold; text-decoration: none; padding: 3px 9px; }
.add-nav a:hover { background: #8ecccc; color: #003333; }
.add-body { display: flex; }
.add-side { width: 158px; flex: none; background: #e8f4f4; padding: 10px; font-size: 11px; border-right: 2px solid #6fb0b0; }
.add-side-h { font-weight: bold; color: #006666; margin-bottom: 6px; }
.add-side a { display: block; color: #0a4a8a; padding: 2px 0; text-decoration: none; }
.add-side a:hover { text-decoration: underline; }
.add-az { margin-top: 10px; font-size: 10px; letter-spacing: 1px; color: #006666; border-top: 1px solid #9cc; padding-top: 6px; }
.add-main { flex: 1; padding: 12px; min-width: 0; }
.add-welcome { background: #fff; border: 1px solid #6fb0b0; padding: 8px 10px; font-size: 11px; margin-bottom: 10px; user-select: text; }
.add-spotlight { display: flex; gap: 12px; align-items: center; background: #000; color: #cde; padding: 10px; margin-bottom: 12px; border: 2px ridge #8ecccc; }
.add-spotlight img { width: 78px; height: 78px; border: 1px solid #8ecccc; flex: none; }
.add-spot-h { color: #ffd700; font-weight: bold; font-size: 12px; margin-bottom: 4px; }
.add-spotlight p { font-size: 11px; line-height: 1.5; user-select: text; }
.add-catalog { width: 100%; border-collapse: collapse; background: #000; }
.add-catalog td { padding: 4px 8px; border-bottom: 1px solid #0a2a2a; font-size: 11px; color: #bfe6e6; user-select: text; }
.add-catalog tr:nth-child(even) td { background: #061414; }
.add-item b { color: #fff; }
.add-ttl { color: #8ecccc; }
.add-catalog tr.add-mine td { background: #14300f; }
.add-catalog tr.add-mine .add-item b { color: #ffe66a; }
.add-price { color: #ff5b5b !important; font-weight: bold; text-align: right; white-space: nowrap; }
.add-buy { white-space: nowrap; }
.add-buy a { color: #ffd700; font-weight: bold; text-decoration: none; }
.add-buy a:hover { text-decoration: underline; color: #fff; }
.add-foot { margin-top: 12px; font-size: 10px; color: #024; background: #cfe8e8; border: 1px solid #6fb0b0; padding: 8px 10px; line-height: 1.6; user-select: text; }

/* ── PATRON CENTER ─────────────────────────────────────────────── */
.pc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; font-size: 13px;
  background: linear-gradient(90deg, #1c3f94, #4a7fd4); }
.pc-shield { font-size: 30px; }
.pc-body { padding: 14px 16px; background: #fff; }
.pc-intro { font-size: 11px; color: #444; line-height: 1.5; margin-bottom: 12px; }
.pc-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 5px; border: 1px solid #c5d5ea; border-radius: 4px; background: linear-gradient(#f4f8fd, #e2edf9); font-size: 12px; }
.pc-row .pc-status { margin-left: auto; font-weight: bold; font-size: 11px; }
.pc-row.on .pc-status { color: #2d7a2d; }
.pc-row.off { background: linear-gradient(#fdf4f4, #f9e2e2); border-color: #eac5c5; }
.pc-row.off .pc-status { color: #b02020; }
.pc-dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8f8, #2d7a2d); flex: none; }
.pc-row.off .pc-dot { background: radial-gradient(circle at 35% 35%, #f88, #b02020); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px #b0202033; } }
.pc-alert { background: #fff7dc; border: 1px solid #e0c56a; padding: 9px 12px; font-size: 11px; border-radius: 4px; margin: 10px 0; line-height: 1.5; }
.pc-cta { display: block; width: 100%; padding: 9px; font-size: 13px; font-weight: bold; background: linear-gradient(#8fd66f, #3f9f3f); color: #fff; border-color: #2d6a2d; }
.pc-cta:hover { filter: brightness(1.07); }
.pc-fine { font-size: 9.5px; color: #999; margin-top: 8px; text-align: center; line-height: 1.5; }

/* ── MINESWEEPER ───────────────────────────────────────────────── */
.mines { background: #c0c0c0; padding: 8px; border: 3px outset #fff; }
.ms-top { display: flex; justify-content: space-between; align-items: center; border: 2px inset #fff; padding: 5px 7px; margin-bottom: 8px; }
.ms-lcd { font-family: "Lucida Console", monospace; background: #000; color: #f00; font-size: 20px; padding: 1px 4px; letter-spacing: 2px; }
.ms-face { width: 30px; height: 30px; font-size: 17px; border: 2px outset #fff; background: #c0c0c0; cursor: pointer; }
.ms-face:active { border-style: inset; }
.ms-grid { border: 2px inset #fff; line-height: 0; display: inline-block; }
.ms-cell { width: 24px; height: 24px; border: 2px outset #fff; background: #c0c0c0; font-size: 13px; font-weight: bold; cursor: pointer; vertical-align: top; font-family: "Lucida Console", monospace; padding: 0; }
.ms-cell.open { border: 1px solid #999; background: #bdbdbd; }
.ms-cell.boom { background: #f00; }
.ms-cell[data-n="1"] { color: #00f; } .ms-cell[data-n="2"] { color: #080; } .ms-cell[data-n="3"] { color: #f00; }
.ms-cell[data-n="4"] { color: #008; } .ms-cell[data-n="5"] { color: #800; } .ms-cell[data-n="6"] { color: #088; }

/* ── MS PAINT ──────────────────────────────────────────────────── */
.paint { background: #c0c0c0; display: flex; flex-direction: column; }
.pt-toolbar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 2px groove #fff; flex: none; }
.pt-tool, .pt-size { width: 30px; height: 28px; border: 2px outset #fff; background: #c0c0c0; cursor: pointer; font-size: 14px; }
.pt-tool.active, .pt-size.active { border-style: inset; background: #dcdcdc; }
.pt-sizes { margin-left: 10px; display: flex; gap: 3px; }
.pt-size { font-size: 16px; line-height: 1; }
.pt-hint { margin-left: auto; font-size: 10px; color: #444; font-style: italic; }
.pt-canvas-wrap { position: relative; margin: 8px auto; border: 2px inset #fff; line-height: 0; background: #fff; }
.pt-canvas-wrap canvas { display: block; }
#ptTop { position: absolute; inset: 0; cursor: crosshair; }
.pt-palette { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px 8px; border-top: 2px groove #fff; flex: none; }
.pt-swatch { width: 20px; height: 20px; border: 2px outset #fff; cursor: pointer; }
.pt-swatch.active { border: 2px inset #333; outline: 1px solid #fff; }
.pt-status { padding: 4px 10px; font-size: 11px; border-top: 2px groove #fff; background: #c0c0c0; flex: none; }

/* ── 3D PINBALL ────────────────────────────────────────────────── */
.pinball { display: flex; flex-direction: column; height: 100%; background: #000; }
.pb-note { flex: none; padding: 6px 30px 6px 10px; font-size: 10.5px; color: #cdd6e8; background: #10102a; line-height: 1.6; position: relative; }
.pb-note-x { position: absolute; top: 5px; right: 6px; width: 20px; height: 20px; border: 1px solid #3a3a5e; border-radius: 3px; background: #1c1c40; color: #cdd6e8; font-size: 11px; line-height: 1; cursor: pointer; }
.pb-note-x:hover { background: #2a2a55; color: #fff; }
.pb-note b { color: #ffd24d; }
.pb-note a { color: #7fb0f0; }
.pb-credit { color: #667; font-size: 9px; }
.pinball iframe { flex: 1; width: 100%; border: none; background: #000; }

/* ── CUBASE stem mode (live M/S) ───────────────────────────────── */
.cb-tr.cb-live .cb-m, .cb-tr.cb-live .cb-c { cursor: pointer; border: 1px outset #dde; background: #d4dae2; text-align: center; border-radius: 2px; font-size: 9px; line-height: 14px; width: 15px; height: 15px; }
.cb-tr.cb-live .cb-m.on { background: #e6c832; border-style: inset; color: #402; }
.cb-tr.cb-live .cb-c.on { background: #4caf50; border-style: inset; color: #fff; }
.cb-tr.cb-silent .cb-name { opacity: .38; }
.cb-tr.cb-silent .cb-led { background: #888; box-shadow: none; }
.cb-part-silent { opacity: .22 !important; }
.cb-open-single { background: #fff8dc; font-weight: bold; }
.ie-single { background: #ffe9e0; border: 2px dashed #e0475b; padding: 8px; }

/* ── PATRON CD CASE ────────────────────────────────────────────── */
.cdcase-frame .win-body { background: #fff; }
.cdcase { display: flex; flex-direction: column; height: 100%; }
.cd-case-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; flex: none;
  background: linear-gradient(120deg, #2f8f2f, #1c6a94 70%, #24478c); }
.cd-disc { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 1px 3px #0006); }
.cd-disc svg { width: 46px; height: 46px; }
.cd-vol { font-size: 15px; font-weight: bold; text-shadow: 1px 1px 2px #0006; }
.cd-sub { font-size: 10px; color: #dfeee0; margin-top: 2px; }
.cd-tracklist { flex: 1; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: #fff; }
.cd-tracklist li { display: flex; align-items: center; gap: 8px; padding: 5px 14px; font-size: 12px; border-bottom: 1px solid #eef1f5; color: #333; }
.cd-tracklist li:nth-child(even) { background: #f6f9fc; }
.cd-tn { color: #9aa5b1; font-family: "Lucida Console", monospace; font-size: 11px; flex: none; width: 20px; }
.cd-tt { flex: 1; user-select: text; }
.cd-tracklist li.playable { cursor: pointer; color: #1a5c1a; font-weight: bold; }
.cd-tracklist li.playable:hover { background: #e6f6e6; }
.cd-play { font-size: 10px; color: #2f8f2f; flex: none; }
.cd-foot { flex: none; padding: 7px 12px; font-size: 10px; color: #667; background: #eef2f7; border-top: 1px solid #d4d0c8; line-height: 1.5; }
.cd-foot a { color: #2f8f2f; }

/* ── GUESTBOOK / MAILING LIST ──────────────────────────────────── */
.guestbook { background: #fffef7; height: 100%; overflow-y: auto; }
.gb-banner { text-align: center; font-family: "Comic Sans MS", cursive; font-size: 17px; font-weight: bold; color: #fff; padding: 10px; text-shadow: 1px 1px 2px #0006;
  background: repeating-linear-gradient(90deg, #b53fa0, #6a3fd4 40%, #3f6ad4 60%, #b53fa0); }
.gb-body { padding: 14px 18px; }
.gb-pitch { font-size: 13px; line-height: 1.6; color: #333; margin-bottom: 14px; background: #fffbe6; border: 1px dashed #d9c46a; padding: 10px 12px; border-radius: 4px; user-select: text; }
.gb-form { display: flex; flex-direction: column; gap: 9px; }
.gb-form label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: bold; color: #24478c; }
.gb-form input { flex: 1; padding: 5px 8px; border: 1px solid #7f9db9; border-radius: 2px; font-size: 12px; user-select: text; }
.gb-actions { margin-top: 4px; }
.gb-actions .xp-btn { padding: 6px 16px; font-size: 12px; font-weight: bold; background: linear-gradient(#8fd66f, #3f9f3f); color: #fff; border-color: #2d6a2d; }
.gb-actions .xp-btn:hover { filter: brightness(1.07); }
.gb-entries { margin-top: 18px; border-top: 2px groove #ddd; padding-top: 10px; }
.gb-entries-title { text-align: center; font-size: 11px; color: #999; margin-bottom: 8px; letter-spacing: 1px; }
.gb-entry { font-size: 12px; line-height: 1.5; padding: 7px 10px; margin-bottom: 6px; background: #f2f5fb; border-left: 3px solid #7aa7e0; border-radius: 0 4px 4px 0; user-select: text; }
.gb-entry b { color: #6a3fd4; } .gb-entry span { color: #999; font-style: italic; }

/* ── CMD ───────────────────────────────────────────────────────── */
.cmd { background: #000; height: 100%; display: flex; flex-direction: column; padding: 4px 6px; cursor: text; }
.cmd-out { flex: 1; overflow-y: auto; color: #ccc; font-family: "Lucida Console", Consolas, monospace; font-size: 12px; white-space: pre-wrap; user-select: text; line-height: 1.35; }
.cmd-line { display: flex; color: #ccc; font-family: "Lucida Console", Consolas, monospace; font-size: 12px; flex: none; }
.cmd-line input { flex: 1; background: none; border: none; outline: none; color: #ccc; font: inherit; caret-color: #ccc; }

/* ── Mobile assist (small screens only) ────────────────────────── */
#ptTop { touch-action: none; }
@media (max-width: 700px) {
  .explorer { flex-direction: column; }
  .exp-side { width: 100%; display: flex; gap: 8px; overflow-x: auto; padding: 8px; }
  /* flex-basis 0, NOT auto: a pane must never size itself to its content —
     the Details pane holds a width:100% cover whose intrinsic width is the
     full-resolution image (~1000px), which blew the pane past the screen */
  .exp-pane { flex: 1 1 0; min-width: 170px; max-width: 260px; margin-bottom: 0; }
  .pb-note { padding-right: 40px; }
  .pb-note-x { width: 28px; height: 28px; font-size: 14px; }  /* thumb-sized */
  .exp-main { padding: 10px; gap: 6px; }
  .exp-item { width: 30%; min-width: 96px; }
  .cb-tracklist { width: 128px; }
  .cb-th span:last-child, .cb-tr .cb-chn { display: none; }
  .cb-transport { flex-wrap: wrap; gap: 8px; padding: 6px 8px; }
  .cb-lcd { flex-wrap: wrap; gap: 6px; }
  .cb-perf { display: none; }
  .cb-tr.cb-live .cb-m, .cb-tr.cb-live .cb-c { width: 19px; height: 19px; line-height: 18px; font-size: 11px; }
  .pt-canvas-wrap { max-width: calc(100vw - 20px); overflow: hidden; }
  .pt-canvas-wrap canvas { max-width: 100%; height: auto; }
  #ptTop { width: 100%; height: 100%; }
  .wa-pl-list { max-height: none; }
  .winamp-frame:not(.maximized) { width: 96vw; }
  .add-body { flex-direction: column; }
  .add-side { width: 100%; }
  .ie-table, .ie-table tr, .ie-nav, .ie-content { display: block; width: 100%; }
  .gb-form label { flex-direction: column; align-items: stretch; }
}

/* ── Cubase on phones: transport must always be reachable ─────────
   Covers portrait (narrow) AND landscape (short) — a landscape phone is
   812px wide, so a width-only query missed it entirely. */
@media (max-width: 700px), (max-height: 460px) {
  .cb-transport { flex-wrap: wrap; gap: 6px 10px; padding: 6px 8px; }
  .lcd-pos, .lcd-sign, .cb-meters, .cb-perf { display: none; }  /* keep TIME + TEMPO + buttons */
  .lcd-val { font-size: 12px; }
  .cb-tbtns button { width: 44px; height: 30px; }               /* fatter tap targets */
  .cb-arrange { overflow-y: auto; }                             /* track rows scroll; transport stays */
  .cb-grid { min-height: 262px; }
  .cb-tracklist { width: 128px; overflow: visible; }
  .cb-th span:last-child, .cb-tr .cb-chn { display: none; }
  .cb-tr.cb-live .cb-m, .cb-tr.cb-live .cb-c { width: 19px; height: 19px; line-height: 18px; font-size: 11px; }
  .cb-toolbar { flex-wrap: wrap; }
  .cb-song { flex-basis: 100%; margin-left: 0; font-size: 10px; }
}

/* Minesweeper on touch screens (phones AND tablets — anything that gets a
   maximized window per IS_MOBILE's <900px rule): bigger cells, board centered
   in the window. Auto margins center the group but collapse to 0 when space
   is tight, so nothing clips off-screen. */
@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {
  .mines { display: flex; flex-direction: column; align-items: center; }
  .ms-top { width: 328px; max-width: 88vw; margin: auto 0 8px; }
  .ms-grid { margin-bottom: auto; }
  .ms-cell { width: 36px; height: 36px; font-size: 17px; }
}

/* Minesweeper in landscape (short viewport): controls sit beside the grid
   so the whole board fits the height; scroll as a last resort */
@media (max-height: 460px) {
  /* flex-direction must be EXPLICIT: on landscape phones the touch rule above
     also matches and would otherwise leave the board in column layout.
     Vertical centering via auto margins — they collapse to 0 on overflow so
     the top of the grid stays reachable (align-items: center would clip it). */
  .mines { display: flex; flex-direction: row; justify-content: center; gap: 14px; overflow: auto; }
  .ms-top { flex-direction: column; gap: 10px; margin: auto 0; width: auto; padding: 8px; }
  .ms-grid { flex: none; margin: auto 0; }
  .ms-cell { width: 24px; height: 24px; font-size: 13px; }  /* 9 rows must fit the short viewport */
}
