/* ============ Files ============ */
.files-side {
  width: 190px; flex: none; background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 8px 6px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.files-place {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 7px; border: none;
  background: transparent; color: var(--fg); font-size: 13.5px; text-align: left;
}
.files-place svg { width: 16px; height: 16px; color: var(--fg-dim); flex: none; }
.files-place:hover { background: var(--view-hover); }
.files-place.active { background: var(--accent-subtle); color: var(--fg); font-weight: 500; }
.files-place.active svg { color: var(--accent); }
.files-side-label { font-size: 11px; font-weight: 700; color: var(--fg-faint); padding: 12px 10px 4px; text-transform: uppercase; letter-spacing: .04em; }

.files-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.files-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--headerbar);
  border-bottom: 1px solid var(--border); flex: none;
}
.files-crumbs {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  background: var(--entry-bg); border: 1px solid var(--entry-border);
  border-radius: 7px; padding: 3px 8px; overflow: hidden;
}
.crumb {
  border: none; background: none; color: var(--fg-dim); font-size: 13px;
  padding: 2px 5px; border-radius: 5px; white-space: nowrap;
}
.crumb:hover { background: var(--view-hover); color: var(--fg); }
.crumb.current { color: var(--fg); font-weight: 500; }
.crumb-sep { display: flex; color: var(--fg-faint); }
.crumb-sep svg { width: 11px; height: 11px; }
.files-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--entry-bg); border: 1px solid var(--entry-border);
  border-radius: 7px; padding: 0 8px; width: 190px;
}
.files-search svg { width: 14px; height: 14px; color: var(--fg-faint); flex: none; }
.files-search-input { border: none; background: none; color: var(--fg); font-size: 13px; height: 30px; width: 100%; outline: none; }
.files-content { flex: 1; overflow-y: auto; padding: 10px; min-height: 0; }
.files-status {
  flex: none; padding: 4px 12px; font-size: 12px; color: var(--fg-dim);
  border-top: 1px solid var(--border); background: var(--bg-raised);
  text-align: center;
}

.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.files-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 9px; cursor: default;
}
.files-item:hover { background: var(--view-hover); }
.files-item.selected { background: var(--accent-subtle); }
.files-item-ico svg { width: 52px; height: 52px; }
.files-item-name {
  font-size: 12.5px; text-align: center; word-break: break-word;
  max-height: 34px; overflow: hidden; line-height: 1.3;
}
.files-star { position: absolute; top: 4px; right: 6px; }
.files-star svg { width: 13px; height: 13px; color: var(--fg-faint); }
.files-star.on svg { color: #f5c211; fill: #f5c211; }

.files-list { display: flex; flex-direction: column; }
.files-list-head {
  display: grid; grid-template-columns: 1fr 90px 90px 130px;
  border-bottom: 1px solid var(--border); position: sticky; top: -10px;
  background: var(--bg); z-index: 2;
}
.files-th {
  display: flex; align-items: center; gap: 4px;
  border: none; background: none; color: var(--fg-dim);
  font-size: 12px; font-weight: 500; padding: 6px 10px; text-align: left;
}
.files-th:hover { color: var(--fg); }
.files-th.sorted { color: var(--fg); }
.files-row {
  display: grid; grid-template-columns: 1fr 90px 90px 130px;
  border-radius: 7px; cursor: default; align-items: center;
}
.files-row:hover { background: var(--view-hover); }
.files-row.selected { background: var(--accent-subtle); }
.files-cell { font-size: 13px; padding: 5px 10px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-cell.name { display: flex; align-items: center; gap: 8px; color: var(--fg); position: relative; }
.files-row-ico svg { width: 20px; height: 20px; flex: none; }
.files-row .files-star { position: static; margin-left: 4px; }

/* picker */
.picker-modal { width: 560px; max-width: 92vw; display: flex; flex-direction: column; }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.picker-title { font-weight: 700; }
.picker-crumbs { display: flex; align-items: center; gap: 2px; padding: 8px 14px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.picker-list { height: 300px; overflow-y: auto; padding: 6px; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; cursor: default; }
.picker-row:hover { background: var(--view-hover); }
.picker-row.selected { background: var(--accent); color: var(--accent-fg); }
.picker-ico svg { width: 20px; height: 20px; }
.picker-empty { padding: 30px; text-align: center; color: var(--fg-faint); }

/* ============ Terminal ============ */
.terminal-body { background: var(--terminal-bg); }
.term {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.45;
  color: var(--terminal-fg);
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-row { display: flex; align-items: baseline; }
.term-prompt { white-space: pre; }
.tp-user { color: #8ae234; font-weight: 700; }
.tp-path { color: #729fcf; font-weight: 700; }
.term-input {
  flex: 1; border: none; background: transparent; color: var(--terminal-fg);
  font-family: var(--font-mono); font-size: 13.5px; outline: none; caret-color: #fff;
}
.t-dim { color: #9a9996; }
.t-err { color: #f66151; }
.t-ok { color: #8ff0a4; }
.t-dir { color: #729fcf; font-weight: 700; }
.t-bold { font-weight: 700; }
.t-rev { background: var(--terminal-fg); color: var(--terminal-bg); }
.t-match { color: #f66151; font-weight: 700; }
.t-logo { color: #E95420; }
.t-user { color: #8ae234; }

/* ============ Text Editor ============ */
.gedit-body { background: var(--base); }
.gedit-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 8px; background: var(--headerbar);
  border-bottom: 1px solid var(--border); flex: none;
}
.gedit-spacer { flex: 1; }
.gedit-text {
  flex: 1; border: none; outline: none; resize: none;
  background: var(--base); color: var(--fg);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.6;
  padding: 14px 18px;
}
.gedit-body.gedit-dark .gedit-text { background: #1a1a1a; color: #ddd; }
.gedit-status {
  flex: none; padding: 4px 14px; font-size: 12px; color: var(--fg-dim);
  background: var(--headerbar); border-top: 1px solid var(--border);
}

/* ============ Settings ============ */
.settings-body { background: var(--bg); }
.set-side {
  width: 230px; flex: none; background: var(--bg-raised);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 10px 8px; gap: 8px;
}
.set-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--entry-bg); border: 1px solid var(--entry-border);
  border-radius: 7px; padding: 0 8px;
}
.set-search svg { width: 14px; height: 14px; color: var(--fg-faint); }
.set-search-input { border: none; background: none; color: var(--fg); height: 30px; width: 100%; outline: none; font-size: 13px; }
.set-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.set-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px; border: none;
  background: transparent; color: var(--fg); font-size: 13.5px; text-align: left;
}
.set-nav-item svg { width: 16px; height: 16px; color: var(--fg-dim); }
.set-nav-item:hover { background: var(--view-hover); }
.set-nav-item.active { background: var(--accent); color: var(--accent-fg); }
.set-nav-item.active svg { color: var(--accent-fg); }
.set-content { flex: 1; overflow-y: auto; padding: 22px 28px; min-width: 0; }
.set-head { margin-bottom: 16px; }
.set-head-title { font-size: 20px; font-weight: 700; }
.set-head-sub { font-size: 13px; color: var(--fg-dim); margin-top: 2px; }
.set-section-label { font-size: 12px; font-weight: 700; color: var(--fg-dim); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.set-note { font-size: 12.5px; color: var(--fg-faint); margin-top: 10px; line-height: 1.5; }
.row-ico { display: flex; }
.row-ico svg { width: 18px; height: 18px; color: var(--fg-dim); }
.row-check svg { width: 16px; height: 16px; color: var(--accent); }
.set-slider { width: 220px; }
.set-sim-row {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
  padding: 10px 16px; background: var(--card); border-radius: 10px; font-size: 13px;
}
.set-sim-row .set-slider { flex: 1; }
.set-sim-charge { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* appearance */
.style-row { display: flex; gap: 14px; }
.style-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: none; background: none; color: var(--fg); font-size: 13px; cursor: pointer;
}
.style-preview {
  width: 150px; height: 96px; border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.style-preview.light { background: linear-gradient(#f5f5f5 30%, #e8e8e8 30%); }
.style-preview.dark { background: linear-gradient(#303030 30%, #242424 30%); }
.style-card.selected .style-preview { border-color: var(--accent); }
.accent-row { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-dot {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  transition: transform var(--dur-fast);
}
.accent-dot:hover { transform: scale(1.1); }
.accent-dot.selected { box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--fg); }
.wp-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.wp-card {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.wp-thumb {
  height: 84px; border-radius: 9px; background-size: cover; background-position: center;
  border: 2px solid transparent;
}
.wp-card.selected .wp-thumb { border-color: var(--accent); }
.wp-name { font-size: 12px; color: var(--fg-dim); text-align: left; }
.wp-card.selected .wp-name { color: var(--fg); font-weight: 500; }

/* power */
.batt-card { background: var(--card); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.batt-ico svg { width: 40px; height: 40px; color: var(--fg-dim); }
.batt-info { flex: 1; }
.batt-pct { font-size: 22px; font-weight: 700; }
.batt-sub { font-size: 12.5px; color: var(--fg-dim); }
.batt-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--view-active); overflow: hidden; }
.batt-fill { height: 100%; border-radius: 4px; transition: width var(--dur-med); }

/* displays */
.disp-preview { display: flex; justify-content: center; padding: 18px 0; }
.disp-screen {
  width: 260px; height: 150px; border-radius: 10px;
  background: linear-gradient(135deg, var(--yaru-aubergine), var(--yaru-orange));
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.disp-screen-label { font-size: 11px; color: rgba(255,255,255,.85); padding-bottom: 8px; }

/* users */
.user-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yaru-aubergine), var(--yaru-orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 500; color: #fff;
}
.user-name { font-size: 17px; font-weight: 700; }
.user-sub { font-size: 12.5px; color: var(--fg-dim); }

/* datetime */
.dt-clock { font-size: 44px; font-weight: 300; text-align: center; padding: 10px 0 18px; font-variant-numeric: tabular-nums; }

/* about */
.about-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 18px; }
.about-logo {
  width: 84px; height: 84px;
  background: url("../assets/ubuntu-logo.svg") center/contain no-repeat;
}
.about-dev { font-size: 17px; font-weight: 700; }

/* ============ Calculator ============ */
.calc-body { background: var(--bg); padding: 12px; gap: 12px; }
.calc-display {
  background: var(--card); border-radius: 10px; padding: 14px 18px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  min-height: 84px; justify-content: flex-end;
}
.calc-expr { font-size: 14px; color: var(--fg-dim); min-height: 18px; }
.calc-main { font-size: 38px; font-weight: 300; font-variant-numeric: tabular-nums; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; }
.calc-key {
  border: none; border-radius: 9px; font-size: 18px;
  background: var(--card); color: var(--fg);
  min-height: 44px;
  transition: background var(--dur-fast);
}
.calc-key:hover { background: var(--card-hover); }
.calc-key:active { background: var(--view-active); }
.calc-key.op { color: var(--accent); font-weight: 500; }
.calc-key.eq { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.calc-key.eq:hover { background: var(--accent-hover); }
.calc-key.fn { color: var(--fg-dim); }

/* ============ Browser ============ */
.web-body { background: var(--bg); }
.web-chrome { flex: none; background: var(--headerbar); border-bottom: 1px solid var(--border); }
.web-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px 0; overflow-x: auto; }
.web-tab {
  display: flex; align-items: center; gap: 7px;
  min-width: 120px; max-width: 200px; padding: 6px 10px;
  border-radius: 8px 8px 0 0; font-size: 12.5px;
  background: transparent; color: var(--fg-dim); cursor: default;
}
.web-tab:hover { background: var(--view-hover); }
.web-tab.active { background: var(--base); color: var(--fg); }
.web-tab-fav svg { width: 13px; height: 13px; flex: none; }
.web-tab-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-tab-close {
  border: none; background: none; color: var(--fg-faint);
  width: 18px; height: 18px; border-radius: 50%; font-size: 10px; flex: none;
}
.web-tab-close:hover { background: var(--view-active); color: var(--fg); }
.web-newtab {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: none; color: var(--fg-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px; flex: none;
}
.web-newtab:hover { background: var(--view-hover); }
.web-newtab svg { width: 14px; height: 14px; }
.web-nav { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.web-url-wrap {
  flex: 1; display: flex; align-items: center; gap: 7px;
  background: var(--entry-bg); border: 1px solid var(--entry-border);
  border-radius: 999px; padding: 0 12px;
}
.web-url-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.web-lock svg { width: 12px; height: 12px; color: var(--fg-faint); }
.web-url { flex: 1; border: none; background: none; color: var(--fg); font-size: 13px; height: 30px; outline: none; }
.web-content { flex: 1; overflow-y: auto; background: var(--base); position: relative; }
.web-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: var(--fg-dim);
}
.web-page { padding: 0; }
.web-error {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 10px; color: var(--fg-dim); text-align: center; padding: 30px;
}
.web-error svg { width: 52px; height: 52px; opacity: .5; }
.web-error h2 { color: var(--fg); font-size: 18px; }
.web-error p { max-width: 420px; font-size: 13.5px; line-height: 1.5; }

/* start page */
.start-page {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px 30px; gap: 26px;
}
.start-logo svg { width: 64px; height: 64px; color: var(--accent); }
.start-search {
  display: flex; align-items: center; gap: 10px;
  width: min(520px, 90%); padding: 0 16px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.start-search svg { width: 16px; height: 16px; color: var(--fg-faint); }
.start-search input { flex: 1; border: none; background: none; color: var(--fg); font-size: 14.5px; height: 44px; outline: none; }
.start-tiles { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.start-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: none; background: none; color: var(--fg); font-size: 12.5px; cursor: pointer;
  width: 84px;
}
.start-tile-ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: transform var(--dur-fast);
}
.start-tile:hover .start-tile-ico { transform: scale(1.07); }
.start-note { font-size: 12px; color: var(--fg-faint); }

/* fake sites */
.site-hero { padding: 56px 32px; text-align: center; color: #fff; }
.ubuntu-hero { background: linear-gradient(135deg, #77216F, #E95420); }
.gnome-hero { background: linear-gradient(135deg, #1c3d6e, #4a86cf); }
.canonical-hero { background: linear-gradient(135deg, #2C001E, #77216F); }
.site-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 10px; }
.site-tag { font-size: 16px; opacity: .9; max-width: 560px; margin: 0 auto; line-height: 1.5; }
.site-logo-circle { font-size: 44px; margin-bottom: 6px; }
.site-btns { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.site-btn {
  padding: 9px 20px; border-radius: 7px; font-size: 14px; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff;
}
.site-btn.primary { background: var(--yaru-orange); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 28px 32px; }
.site-card { background: var(--card); border-radius: 10px; padding: 18px; }
.site-card h3 { margin-bottom: 6px; font-size: 15px; }
.site-card p { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.wiki { padding: 28px 36px; max-width: 760px; }
.wiki h1 { font-size: 26px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.wiki h2 { font-size: 19px; margin-top: 20px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.wiki-sub { font-size: 12px; color: var(--fg-faint); font-style: italic; margin: 4px 0 14px; }
.wiki p { font-size: 14px; line-height: 1.65; margin-bottom: 10px; }

/* search results */
.search-page { padding: 24px 36px; max-width: 720px; }
.search-meta { font-size: 12px; color: var(--fg-faint); margin-bottom: 18px; }
.search-result { margin-bottom: 22px; }
.sr-url { font-size: 12px; color: var(--fg-dim); }
.sr-title { font-size: 16px; color: var(--link); cursor: pointer; margin: 2px 0; }
.sr-title:hover { text-decoration: underline; }
.sr-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }

/* ============ Software / App Center ============ */
.sw-body { background: var(--bg); }
.sw-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; background: var(--headerbar);
  border-bottom: 1px solid var(--border); flex: none;
}
.sw-nav { display: flex; gap: 4px; }
.sw-nav-btn {
  border: none; background: none; color: var(--fg-dim);
  font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 7px;
}
.sw-nav-btn:hover { background: var(--view-hover); }
.sw-nav-btn.active { background: var(--accent); color: var(--accent-fg); }
.sw-search {
  display: flex; align-items: center; gap: 7px; width: 240px;
  background: var(--entry-bg); border: 1px solid var(--entry-border);
  border-radius: 999px; padding: 0 12px;
}
.sw-search svg { width: 14px; height: 14px; color: var(--fg-faint); }
.sw-search-input { flex: 1; border: none; background: none; color: var(--fg); height: 30px; outline: none; font-size: 13px; }
.sw-main { flex: 1; overflow-y: auto; padding: 16px 20px; }
.sw-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sw-cat {
  border: 1px solid var(--border-strong); background: var(--card); color: var(--fg);
  font-size: 12.5px; padding: 5px 13px; border-radius: 999px;
}
.sw-cat:hover { background: var(--card-hover); }
.sw-cat.active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.sw-hero {
  background: linear-gradient(120deg, var(--yaru-aubergine), var(--yaru-orange));
  border-radius: 14px; padding: 26px; color: #fff; margin-bottom: 18px;
}
.sw-hero-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.sw-hero h2 { font-size: 24px; margin-bottom: 6px; }
.sw-hero p { opacity: .92; font-size: 13.5px; max-width: 520px; margin-bottom: 14px; line-height: 1.5; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sw-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: none; border-radius: 11px; padding: 12px;
  cursor: pointer; text-align: left; color: var(--fg);
  transition: background var(--dur-fast);
}
.sw-card:hover { background: var(--card-hover); }
.sw-card-ico svg.app-icon { width: 44px; height: 44px; }
.sw-card-info { flex: 1; min-width: 0; }
.sw-card-name { font-size: 14px; font-weight: 500; }
.sw-card-dev { font-size: 12px; color: var(--fg-dim); }
.sw-card-stars { font-size: 11.5px; color: #f5c211; margin-top: 2px; }
.sw-section-head { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--fg-dim); }
.sw-installed { display: flex; flex-direction: column; gap: 6px; }
.sw-inst-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 10px; padding: 10px 14px; }
.sw-inst-ico svg.app-icon { width: 36px; height: 36px; }

/* detail */
.sw-detail { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.sw-detail-head { display: flex; align-items: center; gap: 18px; }
.sw-detail-ico svg.app-icon { width: 84px; height: 84px; }
.sw-detail h2 { font-size: 24px; }
.sw-detail-dev { font-size: 13px; color: var(--accent); margin-top: 2px; }
.sw-detail-meta { font-size: 12.5px; color: var(--fg-dim); margin-top: 4px; }
.sw-shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.sw-shot {
  width: 260px; height: 160px; flex: none; border-radius: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
}
.sw-shot-bar { height: 22px; background: var(--headerbar); border-bottom: 1px solid var(--border); }
.sw-shot-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sw-shot-line { height: 10px; border-radius: 5px; background: var(--view-active); }
.sw-detail-h { font-size: 15px; }
.sw-detail-desc { font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; }
.sw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sw-fact { background: var(--card); border-radius: 9px; padding: 10px 14px; }
.sw-fact-k { font-size: 11px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: .04em; }
.sw-fact-v { font-size: 13.5px; margin-top: 2px; }

/* ============ Clocks ============ */
.clock-body { background: var(--bg); }
.clock-tabs { display: flex; gap: 4px; padding: 8px 10px; background: var(--headerbar); border-bottom: 1px solid var(--border); flex: none; }
.clock-tab {
  border: none; background: none; color: var(--fg-dim);
  padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
}
.clock-tab:hover { background: var(--view-hover); }
.clock-tab.active { background: var(--accent); color: var(--accent-fg); }
.clock-content { flex: 1; overflow-y: auto; padding: 18px; }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.world-card { background: var(--card); border-radius: 12px; padding: 18px; text-align: center; }
.world-time { font-size: 30px; font-weight: 300; font-variant-numeric: tabular-nums; }
.world-city { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.sw-wrap, .timer-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 20px; }
.sw-display, .timer-display { font-size: 56px; font-weight: 300; font-variant-numeric: tabular-nums; }
.sw-btns { display: flex; gap: 10px; }
.timer-presets { display: flex; gap: 8px; }
.alarm-wrap { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 0 auto; }
.alarm-item { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 11px; padding: 14px 18px; }
.alarm-time { font-size: 28px; font-weight: 300; }
.alarm-sub { font-size: 12px; color: var(--fg-dim); }

/* ============ Image Viewer ============ */
.eog-body { background: #1a1a1a; }
.eog-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: var(--headerbar); border-bottom: 1px solid var(--border); flex: none; }
.eog-label { margin-left: auto; font-size: 12.5px; color: var(--fg-dim); padding-right: 8px; }
.eog-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
.eog-canvas { border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.5); transition: transform var(--dur-fast); }

/* ============ System Monitor ============ */
.mon-body { background: var(--bg); padding: 12px; gap: 12px; }
.mon-graphs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: none; }
.mon-card { background: var(--card); border-radius: 10px; padding: 10px; }
.mon-card-label { font-size: 12px; color: var(--fg-dim); margin-bottom: 6px; }
.mon-card canvas { width: 100%; height: 70px; }
.mon-procs { flex: 1; overflow-y: auto; background: var(--card); border-radius: 10px; padding: 6px 0; min-height: 0; }
.mon-proc-head, .mon-proc-row {
  display: flex; gap: 10px; padding: 6px 14px; font-size: 12.5px;
}
.mon-proc-head { color: var(--fg-dim); font-weight: 700; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); }
.mon-proc-row:hover { background: var(--view-hover); }
.mon-proc-row span:not(:first-child) { width: 70px; text-align: right; color: var(--fg-dim); }
.mon-proc-head span:not(:first-child) { width: 70px; text-align: right; }

/* ============ stubs / misc ============ */
.stub-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; color: var(--fg-dim); text-align: center;
}
.stub-wrap svg { width: 56px; height: 56px; opacity: .5; }
.stub-wrap .big { font-size: 17px; font-weight: 500; color: var(--fg); }
.stub-sub { font-size: 12.5px; color: var(--fg-faint); }
.stub-bar { width: min(360px, 90%); height: 10px; border-radius: 5px; background: var(--view-active); overflow: hidden; }

.help-wrap { padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.help-wrap h2 { margin-bottom: 6px; }
.help-card { background: var(--card); border-radius: 10px; padding: 14px 18px; cursor: pointer; }
.help-card:hover { background: var(--card-hover); }
.help-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.help-card p { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }

.logs-wrap { padding: 10px; font-family: var(--font-mono); font-size: 12px; overflow-y: auto; }
.log-row { display: flex; gap: 12px; padding: 3px 8px; border-radius: 5px; }
.log-row:hover { background: var(--view-hover); }
.log-time { color: var(--fg-faint); flex: none; }
.log-src { color: var(--accent); flex: none; width: 130px; overflow: hidden; text-overflow: ellipsis; }
.log-msg { color: var(--fg-dim); }

.chars-wrap { padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.chars-row { display: flex; flex-wrap: wrap; gap: 4px; }
.char-btn {
  width: 42px; height: 42px; font-size: 22px; border: none; border-radius: 8px;
  background: var(--card); cursor: pointer;
}
.char-btn:hover { background: var(--card-hover); }

.media-body { background: #151515; }
.media-stage { flex: 1; display: flex; align-items: center; justify-content: center; }
.media-screen {
  width: 70%; aspect-ratio: 16/9; background: #000; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.media-screen svg { width: 54px; height: 54px; color: rgba(255,255,255,.4); }
.media-controls { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--headerbar); border-top: 1px solid var(--border); flex: none; }
.media-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--view-active); overflow: hidden; }
.media-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1s linear; }
.media-time { font-size: 12px; color: var(--fg-dim); font-variant-numeric: tabular-nums; }

.weather-body { background: linear-gradient(180deg, #2a5d9f, #1c3d6e); color: #fff; }
.weather-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; }
.weather-city { font-size: 15px; opacity: .85; }
.weather-temp { font-size: 64px; font-weight: 300; }
.weather-cond { font-size: 15px; opacity: .9; }
.weather-days { display: flex; gap: 10px; margin-top: 20px; }
.weather-day {
  background: rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px;
}
.weather-day-ico { font-size: 20px; }
.weather-body .stub-sub { color: rgba(255,255,255,.6); margin-top: 16px; }

.notes-body { background: #3d3846; }
.notes-ta {
  flex: 1; border: none; outline: none; resize: none;
  background: #f6f0d8; color: #3d3216;
  font-family: var(--font-ui); font-size: 14.5px; line-height: 1.7; padding: 18px;
}

/* responsive */
@media (max-width: 760px) {
  .files-side { width: 52px; }
  .files-place span, .files-side-label { display: none; }
  .set-side { width: 60px; }
  .set-nav-item span, .set-search { display: none; }
  .mon-graphs { grid-template-columns: 1fr; }
  .files-list-head, .files-row { grid-template-columns: 1fr 70px; }
  .files-cell:nth-child(3), .files-cell:nth-child(4), .files-th:nth-child(3), .files-th:nth-child(4) { display: none; }
}
