/* ============================================================
   SJD OS 11 — shared app chrome + per-app styles
   ============================================================ */

input, textarea, select, button { user-select: text; }
input:focus, textarea:focus { outline: none; }

/* search glyph for start menu input (vars cannot hold currentColor) */
.sm-search input {
  --search-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.8-4.8'/%3E%3C/svg%3E");
}

/* ---------- shared toolbar / status ---------- */
.app-toolbar {
  flex: none; height: 42px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  background: var(--win-chrome);
  border-bottom: 1px solid var(--stroke);
}
.app-toolbar.wrap { height: auto; flex-wrap: wrap; padding: 5px 8px; }
.tbtn {
  height: 30px; min-width: 30px; padding: 0 6px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--text);
}
.tbtn:hover { background: var(--hover); }
.tbtn:active { background: var(--pressed); }
.tbtn.on { background: color-mix(in srgb, var(--accent) 88%, #000); color: #fff; }
.tbtn svg { width: 16px; height: 16px; }
.tbtn.bold-t { font-weight: 700; font-size: 14px; }
.tbtn.italic-t { font-style: italic; font-size: 14px; }
.tbtn.under-t { text-decoration: underline; font-size: 14px; }
.tbtn.strike-t { text-decoration: line-through; font-size: 14px; }
.tsep { width: 1px; height: 22px; background: var(--stroke); margin: 0 5px; flex: none; }
.tsel {
  height: 28px; border-radius: 4px;
  border: 1px solid var(--stroke);
  background: var(--input); color: var(--text);
  padding: 0 4px; font-size: 12.5px;
}
.tcolor {
  width: 28px; height: 28px; padding: 2px;
  border-radius: 4px; border: 1px solid var(--stroke);
  background: var(--input); cursor: default;
}
.tcolor::-webkit-color-swatch-wrapper { padding: 0; }
.tcolor::-webkit-color-swatch { border: none; border-radius: 2px; }
.tlabel { font-size: 11.5px; color: var(--text-2); margin: 0 2px 0 6px; white-space: nowrap; }
.trange { width: 90px; accent-color: var(--accent); }

.app-status {
  flex: none; height: 26px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 12px;
  background: var(--win-chrome);
  border-top: 1px solid var(--stroke);
  font-size: 11.5px; color: var(--text-2);
}
.app-status .grow { flex: 1; }

.side-panel {
  flex: none; width: 232px;
  background: var(--win-chrome);
  border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.side-panel.right { border-right: 0; border-left: 1px solid var(--stroke); }
.panel-title {
  flex: none; padding: 10px 12px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--text-2); text-transform: uppercase;
}

/* color swatches */
.swatch {
  width: 18px; height: 18px; border-radius: 3px;
  border: 1px solid var(--stroke); cursor: default; padding: 0;
}
.swatch:hover { transform: scale(1.12); }

/* ============================================================
   WRITER (Word-style)
   ============================================================ */
.wr-scroll {
  flex: 1; min-height: 0; overflow: auto;
  background: color-mix(in srgb, var(--text) 6%, var(--win-bg));
  display: flex; justify-content: center;
  padding: 26px 16px 60px;
}
.wr-page {
  width: 816px; max-width: 100%;
  min-height: 1056px;
  background: var(--card);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
  padding: 90px 84px;
  outline: none;
  user-select: text;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 14.7px;
  line-height: 1.5;
  color: var(--text);
  cursor: text;
}
.wr-page h1 { font-size: 2em; margin: .4em 0; }
.wr-page h2 { font-size: 1.5em; margin: .4em 0; }
.wr-page h3 { font-size: 1.2em; margin: .4em 0; }
.wr-page blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 14px; margin: 1em 0; color: var(--text-2);
}
.wr-page ul, .wr-page ol { padding-left: 28px; margin: .5em 0; }
.wr-page p { margin: .3em 0; }

/* ============================================================
   SHEETS (Excel-style)
   ============================================================ */
.sh-bar { gap: 0; }
.sh-name {
  width: 86px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--stroke);
  font-size: 12.5px; font-weight: 600;
}
.sh-fx { flex: 1; height: 32px; margin-left: 8px; }
.sh-fx input {
  width: 100%; height: 100%;
  border: 1px solid var(--stroke); border-radius: 4px;
  background: var(--input); padding: 0 10px; font-size: 12.5px;
  font-family: ui-monospace, Consolas, monospace;
}
.sh-fx input:focus { border-color: var(--accent); }

.sh-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--card); }
.sh-table { border-collapse: collapse; table-layout: fixed; }
.sh-table th, .sh-table td {
  border: 1px solid var(--stroke);
  height: 26px;
  font-size: 12.5px;
  font-weight: 400;
  padding: 0 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  text-align: left;
}
.sh-table th {
  background: var(--win-chrome);
  color: var(--text-2);
  text-align: center;
  font-size: 11.5px;
  position: sticky; top: 0; z-index: 2;
  user-select: none;
}
.sh-table td.num { text-align: right; }
.sh-table td.err { color: #c42b1c; }
.sh-table th.rh { position: sticky; left: 0; z-index: 3; width: 42px; }
.sh-table td { width: 94px; max-width: 94px; background: var(--card); }
.sh-table td.headcol { position: sticky; left: 0; z-index: 1; background: var(--win-chrome); }
.sh-table td.sel {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.sh-table td.in-range { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.sh-cell-input {
  width: 100%; height: 100%;
  border: 0; background: transparent;
  font: inherit; color: inherit; padding: 0;
}
.sh-func-hint {
  position: absolute; z-index: 5;
  background: var(--menu); border: 1px solid var(--stroke); border-radius: 4px;
  padding: 4px 8px; font-size: 11.5px; color: var(--text-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

/* ============================================================
   SLIDES (PowerPoint-style)
   ============================================================ */
.sl-main { flex: 1; min-height: 0; display: flex; }
.sl-side {
  flex: none; width: 176px;
  background: var(--win-chrome); border-right: 1px solid var(--stroke);
  overflow: auto; padding: 10px 10px 6px;
}
.sl-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 2px solid transparent; border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.sl-thumb.on { border-color: var(--accent); }
.sl-thumb-inner {
  width: 960px; height: 540px;
  transform-origin: top left;
  pointer-events: none;
}
.sl-side-btns { display: flex; gap: 4px; margin-top: 2px; }
.sl-side-btns .tbtn { flex: 1; }

.sl-editor {
  flex: 1; min-width: 0;
  display: grid; place-items: center;
  padding: 22px;
  background: color-mix(in srgb, var(--text) 8%, var(--win-bg));
}
.sl-canvas {
  width: min(100%, calc((100vh - 260px) * 16 / 9));
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column;
  overflow: hidden;
  --sl-bg: #ffffff; --sl-fg: #222; --sl-accent: #0067c0; --sl-bg2: #eaf3fc;
  background: var(--sl-bg);
  color: var(--sl-fg);
}
.sl-canvas .sl-title {
  font-size: clamp(18px, 3.6vw, 44px);
  font-weight: 700;
  padding: 4% 7% 1%;
  outline: none;
}
.sl-canvas .sl-body {
  font-size: clamp(11px, 1.8vw, 22px);
  padding: 1% 7%;
  outline: none;
  flex: 1;
}
.sl-canvas .sl-body ul { padding-left: 6%; }
.sl-canvas .sl-body li { margin: .5em 0; }
.sl-canvas.layout-title { justify-content: center; text-align: center; }
.sl-canvas.layout-title .sl-title { padding: 0 10%; font-size: clamp(22px, 4.4vw, 54px); }
.sl-canvas.layout-title .sl-body { text-align: center; padding: 0 12%; }
.sl-canvas.layout-blank .sl-title, .sl-canvas.layout-blank .sl-body { display: none; }

.sl-design {
  flex: none; width: 190px;
  background: var(--win-chrome); border-left: 1px solid var(--stroke);
  padding: 12px; overflow: auto;
}
.sl-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sl-theme {
  height: 48px; border-radius: 5px;
  border: 2px solid var(--stroke);
  display: flex; flex-direction: column; overflow: hidden;
}
.sl-theme .t1 { height: 24px; }
.sl-theme .t2 { flex: 1; }
.sl-theme.on { border-color: var(--accent); }
.sl-layouts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.sl-present {
  position: fixed; inset: 0; z-index: 1600;
  background: #000;
  display: grid; place-items: center;
}
.sl-stage { width: 960px; height: 540px; transform-origin: center; }
.sl-present .sl-canvas { width: 960px; height: 540px; box-shadow: none; }
.sl-present .sl-title, .sl-present .sl-body { pointer-events: none; }
.sl-present-bar {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
  background: rgba(20, 20, 20, .8); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 6px 14px;
  color: #ddd; font-size: 12.5px;
}
.sl-present-bar .tbtn { color: #ddd; }
.sl-present-bar .tbtn:hover { background: rgba(255, 255, 255, .12); }

/* ============================================================
   PIXEL STUDIO (Photoshop-style)
   ============================================================ */
.px-main { flex: 1; min-height: 0; display: flex; }
.px-tools {
  flex: none; width: 46px;
  background: var(--win-chrome); border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 0; gap: 2px; overflow: auto;
}
.px-tools .tbtn { width: 36px; height: 34px; padding: 0; }
.px-tools .tbtn svg { width: 17px; height: 17px; }
.px-canvas-wrap {
  flex: 1; min-width: 0; overflow: auto;
  background: #2b2f36;
  display: grid; place-items: center;
}
.px-canvas-box {
  position: relative;
  margin: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 30px rgba(0, 0, 0, .5);
  background:
    repeating-conic-gradient(#cfcfcf 0% 25%, #ffffff 0% 50%) 0 0 / 16px 16px;
}
.px-canvas-box canvas { display: block; position: absolute; inset: 0; }
.px-canvas-box canvas.base { position: relative; }

.px-right {
  flex: none; width: 244px;
  background: var(--win-chrome); border-left: 1px solid var(--stroke);
  display: flex; flex-direction: column; overflow: hidden;
}
.px-layer-list { flex: 1; min-height: 60px; overflow: auto; padding: 2px 6px; }
.px-layer {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px; border-radius: 5px;
  margin-bottom: 2px; font-size: 12.5px;
}
.px-layer.on { background: color-mix(in srgb, var(--accent) 20%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.px-layer .eye { width: 24px; height: 24px; flex: none; opacity: .9; }
.px-layer .eye.off { opacity: .3; }
.px-layer canvas {
  width: 36px; height: 27px; border-radius: 3px;
  background: repeating-conic-gradient(#d8d8d8 0% 25%, #f4f4f4 0% 50%) 0 0 / 8px 8px;
  border: 1px solid var(--stroke); flex: none;
}
.px-layer .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-layer-btns { display: flex; gap: 2px; padding: 4px 8px; border-top: 1px solid var(--stroke); }
.px-layer-btns .tbtn { flex: 1; }
.px-opacity-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--stroke); font-size: 11.5px; color: var(--text-2); }
.px-opacity-row input { flex: 1; accent-color: var(--accent); }

.px-color-panel { padding: 8px 12px 10px; border-top: 1px solid var(--stroke); }
.px-fgbg { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.px-fgbg .big { width: 34px; height: 34px; border-radius: 5px; border: 2px solid var(--stroke); }
.px-swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.px-swatches button { height: 16px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .2); }

.px-adjust { border-top: 1px solid var(--stroke); padding: 8px 10px; }
.px-adjust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.px-adjust-grid .tbtn { justify-content: flex-start; height: 27px; font-size: 11.5px; }

/* ============================================================
   CAD STUDIO (AutoCAD-style)
   ============================================================ */
.cd-main { flex: 1; min-height: 0; display: flex; }
.cd-layers {
  flex: none; width: 198px;
  background: var(--win-chrome); border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column;
}
.cd-layer-list { flex: 1; overflow: auto; padding: 2px 8px; }
.cd-layer {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 5px; font-size: 12.5px;
  margin-bottom: 2px;
}
.cd-layer.on { background: color-mix(in srgb, var(--accent) 20%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.cd-layer .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .4); flex: none; }
.cd-layer .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-layer .eye { width: 22px; height: 22px; flex: none; opacity: .9; }
.cd-layer .eye.off { opacity: .3; }
.cd-layer-add { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--stroke); }
.cd-layer-add input {
  flex: 1; height: 28px; border-radius: 4px;
  border: 1px solid var(--stroke); background: var(--input);
  padding: 0 8px; font-size: 12px;
}
.cd-canvas-wrap {
  flex: 1; min-width: 0; position: relative;
  background: #1a1e24;
  overflow: hidden;
}
.cd-canvas-wrap canvas { position: absolute; inset: 0; cursor: crosshair; }

.cd-cmd {
  flex: none; height: 96px;
  background: var(--win-chrome); border-top: 1px solid var(--stroke);
  display: flex; flex-direction: column;
}
.cd-log {
  flex: 1; overflow: auto; padding: 5px 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; color: var(--text-2);
  user-select: text;
}
.cd-log .in { color: var(--text); }
.cd-log .err { color: #e0563c; }
.cd-cmd-row { display: flex; align-items: center; border-top: 1px solid var(--stroke); }
.cd-cmd-row .pfx {
  padding: 0 6px 0 10px; font-size: 12px; color: var(--accent); font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}
.cd-cmd-row input {
  flex: 1; height: 30px; border: 0; background: transparent;
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--text);
}

/* ============================================================
   BROWSER (Edge-style)
   ============================================================ */
.br-tabs {
  flex: none; height: 38px;
  display: flex; align-items: flex-end; gap: 4px;
  padding: 6px 8px 0;
  background: var(--win-chrome);
}
.br-tab {
  width: 178px; height: 30px;
  border-radius: 7px 7px 0 0;
  display: flex; align-items: center; gap: 7px;
  padding: 0 8px;
  font-size: 12px; color: var(--text);
  background: transparent;
}
.br-tab:hover { background: var(--hover); }
.br-tab.on { background: var(--app-bg); box-shadow: 0 -1px 3px rgba(0, 0, 0, .08); }
.br-tab .fav { width: 14px; height: 14px; flex: none; }
.br-tab .fav img { width: 14px; height: 14px; }
.br-tab .fav svg { width: 14px; height: 14px; }
.br-tab .ttl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.br-tab .x { width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; flex: none; }
.br-tab .x:hover { background: var(--pressed); }
.br-tab .x svg { width: 9px; height: 9px; }
.br-newtab { width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; margin-bottom: 1px; }
.br-newtab:hover { background: var(--hover); }
.br-newtab svg { width: 14px; height: 14px; }

.br-bar { height: 44px; }
.br-addr {
  flex: 1; height: 30px;
  border-radius: 15px;
  border: 1px solid var(--stroke);
  background: var(--input);
  display: flex; align-items: center;
  padding: 0 4px 0 10px; gap: 8px;
  margin: 0 6px;
}
.br-addr:focus-within { border-color: var(--accent); }
.br-addr .lock { width: 13px; height: 13px; color: var(--text-2); flex: none; }
.br-addr input {
  flex: 1; border: 0; background: transparent;
  font-size: 12.5px; min-width: 40px;
}
.br-addr .star { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.br-addr .star:hover { background: var(--hover); }
.br-addr .star svg { width: 14px; height: 14px; }
.br-addr .star.on svg { fill: var(--accent); stroke: var(--accent); }

.br-hint {
  flex: none; height: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  background: var(--win-chrome);
  border-bottom: 1px solid var(--stroke);
  font-size: 11px; color: var(--text-2);
}
.br-hint a { color: var(--accent); cursor: pointer; text-decoration: underline; }
.br-hint .grow { flex: 1; }

.br-view { flex: 1; min-height: 0; position: relative; background: var(--card); }
.br-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.br-home {
  position: absolute; inset: 0; overflow: auto;
  background:
    radial-gradient(800px 420px at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(700px 420px at 85% 10%, color-mix(in srgb, #7c3aed 10%, transparent), transparent 60%),
    var(--card);
  display: flex; flex-direction: column; align-items: center;
  padding: 44px 30px 60px; gap: 26px;
}
.br-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 300; letter-spacing: .5px; }
.br-brand .ic { width: 34px; height: 34px; }
.br-search {
  width: min(560px, 92%);
  height: 46px; border-radius: 23px;
  border: 1px solid var(--stroke);
  background: var(--input);
  display: flex; align-items: center; padding: 0 8px 0 16px; gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}
.br-search svg { width: 16px; height: 16px; color: var(--text-2); }
.br-search input { flex: 1; border: 0; background: transparent; font-size: 14px; height: 100%; }
.br-search select {
  border: 0; background: transparent; font-size: 12px; color: var(--text-2);
  height: 100%; padding: 0 4px;
}
.br-links { display: grid; grid-template-columns: repeat(auto-fit, 96px); gap: 14px; justify-content: center; width: min(640px, 100%); }
.br-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text);
  padding: 12px 4px; border-radius: 8px;
}
.br-link:hover { background: var(--hover); }
.br-link .ic { width: 34px; height: 34px; }
.br-bm-title { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .5px; }
.br-bm-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 640px; }
.br-bm {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--stroke); border-radius: 6px;
  padding: 6px 12px; font-size: 12.5px;
}
.br-bm:hover { background: var(--hover); }
.br-note { font-size: 12px; color: var(--text-2); text-align: center; max-width: 520px; line-height: 1.6; }

/* ============================================================
   NOTEPAD
   ============================================================ */
.np-area {
  flex: 1; min-height: 0;
  border: 0; resize: none;
  background: var(--card); color: var(--text);
  padding: 12px 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13.5px; line-height: 1.55;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.cl-main { flex: 1; display: flex; flex-direction: column; padding: 10px; gap: 8px; background: var(--win-bg); }
.cl-display {
  text-align: right;
  padding: 14px 12px 10px;
  min-height: 84px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cl-expr { font-size: 12.5px; color: var(--text-2); min-height: 17px; }
.cl-val { font-size: 40px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cl-btn {
  border-radius: 5px;
  border: 1px solid var(--stroke);
  background: var(--card);
  font-size: 15.5px;
  display: grid; place-items: center;
}
.cl-btn:hover { background: var(--card-2); }
.cl-btn:active { transform: scale(.96); }
.cl-btn.fn { background: var(--win-chrome); font-size: 13px; }
.cl-btn.eq { background: var(--accent); color: #fff; border-color: transparent; }

/* ============================================================
   SETTINGS
   ============================================================ */
.st-main { flex: 1; min-height: 0; display: flex; }
.st-nav {
  flex: none; width: 190px;
  background: var(--win-chrome); border-right: 1px solid var(--stroke);
  padding: 14px 8px; display: flex; flex-direction: column; gap: 2px;
}
.st-nav .tbtn { justify-content: flex-start; height: 36px; padding: 0 12px; font-size: 13px; gap: 10px; }
.st-page { flex: 1; min-width: 0; overflow: auto; padding: 26px 34px; }
.st-h { font-size: 26px; font-weight: 600; margin-bottom: 20px; }
.st-card {
  background: var(--card); border: 1px solid var(--stroke);
  border-radius: 7px; padding: 18px 20px; margin-bottom: 14px;
  max-width: 660px;
}
.st-card h3 { font-size: 14.5px; margin-bottom: 12px; }
.st-sub { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.st-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, 128px); gap: 12px; }
.st-wall {
  height: 76px; border-radius: 6px;
  border: 2px solid var(--stroke);
  overflow: hidden; position: relative;
  background-size: cover; background-position: center;
}
.st-wall.on { border-color: var(--accent); }
.st-wall span {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 10.5px; padding: 3px 6px; text-align: center;
}
.st-accents { display: flex; gap: 8px; flex-wrap: wrap; }
.st-accents button {
  width: 30px; height: 30px; border-radius: 5px;
  border: 2px solid transparent;
}
.st-accents button.on { border-color: var(--text); outline: 2px solid var(--card); }
.st-theme-row { display: flex; gap: 12px; }
.st-theme-card {
  flex: 1; max-width: 220px;
  border: 2px solid var(--stroke); border-radius: 7px;
  overflow: hidden; padding: 8px;
  background: var(--card);
}
.st-theme-card.on { border-color: var(--accent); }
.st-prev { height: 76px; border-radius: 4px; margin-bottom: 8px; border: 1px solid var(--stroke); }
.st-prev.l { background: linear-gradient(#e8f0fb, #d7e4f5); }
.st-prev.d { background: linear-gradient(#2a2a30, #16161a); }
.st-row { display: flex; align-items: center; gap: 14px; }

/* wallpaper previews reuse the real gradient recipes */
.st-wall[data-wp="bloom"] { background: radial-gradient(120px 80px at 66% 30%, rgba(64,156,255,.5), transparent 62%), radial-gradient(100px 76px at 44% 62%, rgba(122,82,255,.42), transparent 62%), linear-gradient(165deg, #0e2a63, #050b21); }
.st-wall[data-wp="sunrise"] { background: radial-gradient(120px 80px at 74% 24%, rgba(255,176,92,.55), transparent 62%), linear-gradient(170deg, #48234b, #7a3553 48%, #2b1638); }
.st-wall[data-wp="emerald"] { background: radial-gradient(120px 80px at 64% 30%, rgba(64,224,164,.42), transparent 62%), linear-gradient(165deg, #0b3d33, #031512); }
.st-wall[data-wp="midnight"] { background: radial-gradient(140px 70px at 50% -10%, rgba(90,110,170,.35), transparent 60%), linear-gradient(180deg, #10101c, #04040a); }
.st-wall[data-wp="aurora"] { background: radial-gradient(120px 66px at 24% 20%, rgba(92,255,192,.28), transparent 56%), radial-gradient(130px 86px at 76% 36%, rgba(122,102,255,.36), transparent 60%), linear-gradient(160deg, #07102b, #04070f); }
.st-wall[data-wp="flow"] { background: radial-gradient(100px 66px at 70% 22%, rgba(255,255,255,.85), transparent 62%), linear-gradient(160deg, #cfe0f5, #e8f0fb); }

/* ============================================================
   RECYCLE BIN
   ============================================================ */
.rb-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--text-2); font-size: 13px;
}
.rb-empty .ic { width: 64px; height: 64px; opacity: .8; }
