/* ── 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; }

/* ── 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; }

/* ── 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; }
