/* Application windows + boot / login / lock / shutdown */

/* ---------- Nemo file manager ---------- */
.nemo { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.nemo .nemo-toolbar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--header); border-bottom: 1px solid var(--separator); }
.nemo .nav-btn {
  width: 28px; height: 28px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; color: var(--fg);
}
.nemo .nav-btn svg { width: 15px; height: 15px; }
.nemo .nav-btn:hover { background: var(--button-bg-hover); border: 1px solid var(--button-border); }
.nemo .nav-btn.disabled { opacity: 0.35; }
.nemo .path-bar {
  flex: 1; display: flex; align-items: center; background: var(--base);
  border: 1px solid var(--borders); border-radius: 4px; height: 28px; padding: 0 4px;
  overflow: hidden; font-size: 12.5px;
}
.nemo .path-crumb { display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.nemo .path-crumb svg { width: 14px; height: 14px; }
.nemo .path-crumb:hover { background: color-mix(in srgb, var(--accent) 18%, var(--base)); }
.nemo .path-crumb.current { font-weight: 700; background: color-mix(in srgb, var(--accent) 30%, var(--base)); }
.nemo .path-sep { color: var(--fg-dim); font-size: 10px; padding: 0 1px; }
.nemo .view-toggle { display: flex; gap: 2px; }
.nemo .view-toggle .nav-btn.sel { background: color-mix(in srgb, var(--accent) 22%, var(--base)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--borders)); }
.nemo .nemo-main { flex: 1; display: flex; min-height: 0; }
.nemo .nemo-places { width: 168px; flex: none; background: var(--sidebar); border-right: 1px solid var(--separator); overflow-y: auto; padding: 8px 6px; }
.nemo .place-group { font-size: 11px; font-weight: 700; color: var(--fg-dim); padding: 8px 8px 4px; text-transform: none; }
.nemo .place { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; font-size: 12.5px; }
.nemo .place svg { width: 15px; height: 15px; flex: none; }
.nemo .place:hover { background: color-mix(in srgb, var(--accent) 14%, var(--sidebar)); }
.nemo .place.selected { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.nemo .nemo-files { flex: 1; overflow-y: auto; position: relative; padding: 8px; outline: none; }
.nemo .files-grid { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px; }
.nemo .file-tile { width: 96px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; border-radius: 6px; user-select: none; }
.nemo .file-tile .ft-ic { width: 44px; height: 44px; }
.nemo .file-tile .ft-ic svg { width: 100%; height: 100%; }
.nemo .file-tile .ft-name { font-size: 12px; text-align: center; line-height: 1.2; max-height: 30px; overflow: hidden; }
.nemo .file-tile:hover { background: color-mix(in srgb, var(--accent) 14%, var(--base)); }
.nemo .file-tile.selected { background: var(--accent); color: var(--accent-fg); }
.nemo .file-tile.drop-target { outline: 2px dashed var(--accent); }
.nemo .files-list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.nemo .files-list th { text-align: left; font-size: 11px; color: var(--fg-dim); padding: 4px 8px; border-bottom: 1px solid var(--separator); font-weight: 700; position: sticky; top: 0; background: var(--base); }
.nemo .files-list td { padding: 4px 8px; white-space: nowrap; }
.nemo .files-list tr { border-radius: 4px; }
.nemo .files-list tr:hover td { background: color-mix(in srgb, var(--accent) 12%, var(--base)); }
.nemo .files-list tr.selected td { background: var(--accent); color: var(--accent-fg); }
.nemo .files-list .fl-icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 7px; }
.nemo .files-list .fl-icon svg { width: 100%; height: 100%; }
.nemo .nemo-statusbar { height: 26px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--header); border-top: 1px solid var(--separator); font-size: 11.5px; color: var(--fg-dim); }
.nemo .empty-folder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--fg-dim); }
.nemo .empty-folder svg { width: 72px; height: 72px; opacity: 0.4; }

/* ---------- Text editor ---------- */
.editor { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.editor .ed-menubar { display: flex; gap: 2px; padding: 2px 4px; background: var(--header); border-bottom: 1px solid var(--separator); }
.editor .ed-menu-label { padding: 4px 9px; border-radius: 4px; font-size: 12.5px; }
.editor .ed-menu-label:hover, .editor .ed-menu-label.open { background: color-mix(in srgb, var(--accent) 18%, var(--header)); }
.editor .ed-toolbar { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--header); border-bottom: 1px solid var(--separator); }
.editor .ed-area { flex: 1; display: flex; min-height: 0; }
.editor .ed-gutter {
  flex: none; width: 44px; background: var(--base); color: var(--fg-dim);
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  padding: 8px 8px 8px 0; text-align: right; overflow: hidden; user-select: none;
  border-right: 1px solid var(--separator);
}
.editor .ed-input {
  flex: 1; background: var(--base); border: none; outline: none; resize: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.55; padding: 8px 10px;
  color: var(--text); white-space: pre; overflow: auto;
}
.editor .ed-input.wrap { white-space: pre-wrap; }
.editor .ed-status { height: 26px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--header); border-top: 1px solid var(--separator); font-size: 11.5px; color: var(--fg-dim); }
.editor .readonly-banner { background: #fdf5d8; color: #6a5b1f; font-size: 11.5px; padding: 3px 12px; border-bottom: 1px solid #ecd98f; }
body[data-theme='dark'] .editor .readonly-banner { background: #4a4327; color: #e8d98a; border-color: #5c5433; }

/* ---------- Terminal ---------- */
.term-win { background: #2f2f2f; }
.term { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #300a24; }
.term .term-headbar { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: #3d3d3d; color: #e8e8e8; font-size: 12px; border-bottom: 1px solid #262626; }
.term .term-body { user-select: text; cursor: text;
  --s: 1;
  flex: 1; overflow-y: auto; padding: 6px 8px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.42;
  color: #ffffff; white-space: pre-wrap; word-break: break-word; cursor: text;
}
.term .t-line { min-height: 19px; }
.term .t-prompt-user { color: #8ae234; font-weight: 700; }
.term .t-prompt-path { color: #729fcf; font-weight: 700; }
.term .t-green { color: #8ae234; }
.term .t-yellow { color: #fce94f; }
.term .t-red { color: #ef2929; }
.term .t-blue { color: #729fcf; }
.term .t-dim { color: #a8a8a8; }
.term .t-white { color: #ffffff; }
.term .cursor { display: inline-block; width: 8px; height: 16px; background: #aaaaaa; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- System Settings ---------- */
.settings { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.settings .set-header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--header); border-bottom: 1px solid var(--separator); }
.settings .set-header h2 { font-size: 14px; font-weight: 700; }
.settings .set-search { margin-left: auto; width: 190px; }
.settings .set-body { flex: 1; display: flex; min-height: 0; }
.settings .set-side { width: 190px; flex: none; background: var(--sidebar); border-right: 1px solid var(--separator); padding: 10px 6px; overflow-y: auto; }
.settings .set-group { font-size: 11px; font-weight: 700; color: var(--fg-dim); padding: 10px 10px 4px; }
.settings .set-nav { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 4px; font-size: 13px; }
.settings .set-nav svg { width: 16px; height: 16px; flex: none; }
.settings .set-nav:hover { background: color-mix(in srgb, var(--accent) 14%, var(--sidebar)); }
.settings .set-nav.selected { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.settings .set-main { flex: 1; overflow-y: auto; padding: 18px 22px; }
.settings .set-section { margin-bottom: 26px; }
.settings .set-section h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.settings .frame-box { background: var(--base); border: 1px solid var(--separator); border-radius: 6px; padding: 14px 16px; }
.settings .set-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 34px; }
.settings .set-row + .set-row { border-top: 1px solid var(--separator); }
.settings .set-row .row-label { flex: 1; }
.settings .set-row .row-label .sub { display: block; color: var(--fg-dim); font-size: 11.5px; margin-top: 2px; }
.theme-card { border: 2px solid transparent; border-radius: 6px; padding: 4px; cursor: default; width: 108px; text-align: center; }
.theme-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.theme-card.sel { border-color: var(--accent); }
.theme-card .thumb { height: 64px; border-radius: 4px; border: 1px solid var(--separator); overflow: hidden; display: flex; flex-direction: column; }
.theme-card .thumb .t-titlebar { height: 12px; flex: none; }
.theme-card .thumb .t-body { flex: 1; padding: 3px; }
.theme-card .thumb .t-btn { width: 14px; height: 8px; border-radius: 2px; margin: 2px; }
.theme-card .t-name { font-size: 11.5px; margin-top: 5px; }
.accent-row { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; padding: 2px; }
.accent-dot i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.accent-dot:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.accent-dot.sel { border-color: var(--accent); }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wall-thumb { border-radius: 6px; overflow: hidden; border: 2px solid transparent; position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.wall-thumb:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.wall-thumb.sel { border-color: var(--accent); }
.wall-thumb .check { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; }
.wall-thumb.sel .check { display: flex; }
.wall-thumb .check::after { content: '✓'; font-size: 11px; }

/* ---------- Software Manager ---------- */
.software { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.software .sw-header { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--header); border-bottom: 1px solid var(--separator); }
.software .sw-header .sw-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.software .sw-header .sw-logo svg { width: 22px; height: 22px; }
.software .sw-search { flex: 1; max-width: 330px; position: relative; margin-left: auto; }
.software .sw-search svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--fg-dim); }
.software .sw-search input { width: 100%; height: 30px; border-radius: 4px; border: 1px solid var(--borders); background: var(--bg); padding: 0 8px 0 30px; outline: none; }
.software .sw-body { flex: 1; display: flex; min-height: 0; }
.software .sw-side { width: 172px; flex: none; background: var(--sidebar); border-right: 1px solid var(--separator); padding: 10px 6px; overflow-y: auto; }
.software .sw-main { flex: 1; overflow-y: auto; padding: 16px 18px; }
.software .featured { border-radius: 8px; overflow: hidden; margin-bottom: 18px; padding: 26px 22px; color: #fff; background: linear-gradient(120deg, #2f7d3f, #4faf59 55%, #87cf3e); position: relative; }
.software .featured h3 { font-size: 20px; margin-bottom: 6px; }
.software .featured p { font-size: 13px; max-width: 420px; opacity: 0.92; }
.software .featured .btn { margin-top: 12px; background: #fff; color: #1d5c2c; border: none; font-weight: 700; }
.software .featured .feat-art { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 88px; height: 88px; opacity: 0.9; }
.software .app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 8px; }
.software .sw-card { display: flex; gap: 10px; padding: 10px; border-radius: 6px; align-items: center; }
.software .sw-card:hover { background: color-mix(in srgb, var(--accent) 10%, var(--base)); outline: 1px solid var(--separator); }
.software .sw-card .sw-ic { width: 38px; height: 38px; flex: none; }
.software .sw-card .sw-ic svg { width: 100%; height: 100%; }
.software .sw-card .sw-info { flex: 1; min-width: 0; }
.software .sw-card .sw-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.software .sw-card .sw-cat { font-size: 11.5px; color: var(--fg-dim); }
.software .sw-card .sw-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fg-dim); margin-top: 2px; }
.software .sw-card .stars { color: #f5a623; letter-spacing: 1px; font-size: 10px; }
.software .sw-card .btn { min-height: 24px; padding: 1px 10px; font-size: 12px; flex: none; }
.software .sw-detail { max-width: 620px; margin: 0 auto; }
.software .sw-detail .hero { width: 100%; border-radius: 8px; border: 1px solid var(--separator); margin-bottom: 14px; }
.software .sw-detail .d-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.software .sw-detail .d-head .sw-ic { width: 64px; height: 64px; }
.software .sw-detail h3 { font-size: 19px; }
.software .sw-detail .d-desc { font-size: 13.5px; line-height: 1.5; margin: 10px 0 14px; }
.software .progress-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 15%, var(--base)); overflow: hidden; }
.software .progress-track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.2s; }

/* ---------- Firefox shell ---------- */
.browser { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--chrome, #f9f9fb); }
.browser .ff-navbar { background: linear-gradient(180deg, #2b2a33 0%, #1c1b22 100%); padding: 4px 8px 0; display: flex; flex-direction: column; }
.browser .ff-row1 { display: flex; align-items: center; gap: 6px; padding: 2px 0 6px; }
.browser .ff-btn { width: 30px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #e0e0e6; }
.browser .ff-btn:hover { background: rgba(255,255,255,0.12); }
.browser .ff-btn.disabled { opacity: 0.4; }
.browser .ff-btn svg { width: 15px; height: 15px; }
.browser .ff-urlbar {
  flex: 1; height: 30px; border-radius: 6px; background: #42414d; color: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12.5px;
  border: 1px solid transparent;
}
.browser .ff-urlbar:focus-within { background: #fff; color: #15141a; }
.browser .ff-urlbar svg { width: 13px; height: 13px; flex: none; opacity: 0.8; }
.browser .ff-urlbar input { flex: 1; background: none; border: none; outline: none; color: inherit; font-size: 12.5px; }
.browser .ff-tabs { display: flex; gap: 2px; align-items: stretch; height: 33px; padding: 0 2px; }
.browser .ff-tab {
  display: flex; align-items: center; gap: 7px; padding: 0 10px; min-width: 130px; max-width: 210px;
  border-radius: 6px 6px 0 0; color: #cbcbd4; font-size: 12px; position: relative; user-select: none;
}
.browser .ff-tab:hover { background: rgba(255,255,255,0.08); }
.browser .ff-tab.active { background: var(--ff-page-bg, #f9f9fb); color: #15141a; }
.browser .ff-tab svg { width: 13px; height: 13px; flex: none; }
.browser .ff-tab span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .ff-tab .tab-close { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; opacity: 0.7; }
.browser .ff-tab .tab-close:hover { background: rgba(128,128,140,0.4); opacity: 1; }
.browser .ff-tab .tab-close svg { width: 10px; height: 10px; }
.browser .ff-content { flex: 1; overflow-y: auto; background: var(--ff-page-bg, #f9f9fb); color: #20123a; }
.ff-start { min-height: 100%; background: linear-gradient(180deg, #e6f2e9 0%, #f9f9fb 45%); display: flex; flex-direction: column; align-items: center; padding: 44px 24px; }
.ff-start .ff-logo-big { width: 84px; height: 84px; margin-bottom: 10px; }
.ff-start .ff-logo-big svg { width: 100%; height: 100%; }
.ff-start h1 { color: #234d31; font-size: 23px; margin: 8px 0 2px; }
.ff-start .ff-sub { color: #4e6b59; font-size: 13px; margin-bottom: 24px; }
.ff-start .ff-search { width: min(520px, 90%); height: 44px; border-radius: 10px; border: 1px solid #cfe0d5; background: #fff; box-shadow: 0 3px 10px rgba(35,77,49,0.12); display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.ff-start .ff-search svg { width: 16px; height: 16px; color: #5f9e77; }
.ff-start .ff-search input { flex: 1; border: none; outline: none; font-size: 14px; background: none; color: #233; }
.ff-tiles { display: grid; grid-template-columns: repeat(4, 108px); gap: 14px; margin-top: 30px; }
.ff-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 8px; }
.ff-tile:hover { background: rgba(53,168,84,0.10); }
.ff-tile .ft-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(35,77,49,0.16); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ff-tile .ft-circle svg { width: 100%; height: 100%; }
.ff-tile span { font-size: 11.5px; color: #3a4; color: #2f5c40; }
.ff-page { padding: 34px 44px; max-width: 860px; margin: 0 auto; line-height: 1.55; font-size: 13.5px; }
.ff-page h1 { font-size: 25px; margin-bottom: 14px; color: #1c2b22; }
.ff-page h2 { font-size: 17px; margin: 20px 0 8px; }
.ff-page p { margin: 8px 0; }
.ff-page ul { margin: 8px 0 8px 22px; }
.ff-page .hero-band { border-radius: 10px; background: linear-gradient(120deg, #1f6d34, #4faf59 60%, #87cf3e); color: #fff; padding: 30px 28px; margin-bottom: 22px; }
.ff-page .hero-band h1 { color: #fff; margin: 0 0 8px; }
.ff-page .btn { border-radius: 6px; }
.ff-error { text-align: center; padding-top: 70px; }
.ff-error .ff-err-icon { width: 64px; height: 64px; margin: 0 auto 18px; opacity: 0.7; }
.ff-error h1 { font-size: 20px; }
.ff-error p { color: #555; margin-top: 8px; }

/* ---------- Image viewer ---------- */
.viewer { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #232326; }
.viewer .vw-toolbar { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px; background: var(--header); border-bottom: 1px solid var(--separator); }
.viewer .vw-canvas { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.viewer .vw-canvas .vw-img { background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 0.15s ease-out; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)); }
.viewer .vw-status { height: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--header); border-top: 1px solid var(--separator); font-size: 11.5px; color: var(--fg-dim); }

/* ---------- Calculator ---------- */
.calc { flex: 1; display: flex; flex-direction: column; background: var(--bg); padding: 10px; gap: 8px; }
.calc .calc-screen { background: var(--base); border: 1px solid var(--borders); border-radius: 6px; padding: 10px 14px; text-align: right; }
.calc .calc-expr { font-size: 12px; color: var(--fg-dim); min-height: 16px; font-family: var(--mono); }
.calc .calc-display { font-size: 30px; font-weight: 300; font-family: var(--mono); overflow: hidden; }
.calc .calc-pad { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc .calc-key {
  border-radius: 6px; font-size: 16px;
  background: var(--button-bg); border: 1px solid var(--button-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
  display: flex; align-items: center; justify-content: center; user-select: none;
}
.calc .calc-key:hover { background: var(--button-bg-hover); }
.calc .calc-key:active { background: var(--button-bg-active); box-shadow: none; }
.calc .calc-key.op { color: #1f6d34; font-weight: 700; }
body[data-theme='dark'] .calc .calc-key.op { color: #8fd8a0; }
.calc .calc-key.eq { background: var(--accent); color: #fff; border-color: var(--accent-active); font-weight: 700; }
.calc .calc-key.eq:hover { background: var(--accent-hover); }

/* ---------- System monitor ---------- */
.sysmon { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.sysmon .sm-tabs { display: flex; gap: 2px; background: var(--header); border-bottom: 1px solid var(--separator); padding: 4px 6px 0; }
.sysmon .sm-tab { padding: 5px 14px; border-radius: 6px 6px 0 0; font-size: 12.5px; }
.sysmon .sm-tab:hover { background: color-mix(in srgb, var(--accent) 12%, var(--header)); }
.sysmon .sm-tab.active { background: var(--base); border: 1px solid var(--separator); border-bottom: 1px solid var(--base); font-weight: 700; margin-bottom: -1px; }
.sysmon .sm-body { flex: 1; display: flex; min-height: 0; }
.sysmon .sm-side { width: 150px; flex: none; background: var(--sidebar); border-right: 1px solid var(--separator); padding: 10px 6px; }
.sysmon .sm-cat { padding: 6px 10px; border-radius: 4px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.sysmon .sm-cat svg { width: 14px; height: 14px; }
.sysmon .sm-cat.sel { background: var(--accent); color: #fff; }
.sysmon .sm-main { flex: 1; overflow-y: auto; padding: 14px 16px; min-width: 0; }
.sysmon .sm-graph-box { background: #101418; border-radius: 6px; border: 1px solid var(--separator); padding: 8px; margin-bottom: 12px; }
.sysmon .sm-graph-box .sm-gtitle { color: #9ad9a9; font-size: 11.5px; display: flex; justify-content: space-between; margin-bottom: 4px; padding: 0 2px; }
.sysmon canvas { width: 100%; height: 80px; display: block; border-radius: 4px; }
.sysmon table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sysmon th { text-align: left; color: var(--fg-dim); font-size: 11px; padding: 4px 8px; border-bottom: 1px solid var(--separator); }
.sysmon td { padding: 3.5px 8px; }
.sysmon tr:hover td { background: color-mix(in srgb, var(--accent) 10%, var(--base)); }

/* ---------- Update manager ---------- */
.updates { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.updates .up-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--header); border-bottom: 1px solid var(--separator); }
.updates .up-toolbar svg { width: 20px; height: 20px; }
.updates .up-list { flex: 1; overflow-y: auto; padding: 8px; }
.updates .up-item { display: flex; gap: 10px; padding: 8px 10px; border-radius: 6px; align-items: flex-start; }
.updates .up-item:hover { background: color-mix(in srgb, var(--accent) 10%, var(--base)); }
.updates .up-item .check { margin-top: 2px; }
.updates .up-name { font-size: 13px; font-weight: 700; }
.updates .up-sub { font-size: 11.5px; color: var(--fg-dim); }
.updates .up-status { padding: 12px; border-top: 1px solid var(--separator); display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.updates .ok-band { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--fg-dim); }
.updates .ok-band svg { width: 56px; height: 56px; opacity: 0.8; }

/* ---------- Welcome ---------- */
.welcome { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--base); }
.welcome .wl-hero { padding: 22px 26px 18px; background: linear-gradient(120deg, #1f6d34, #4faf59 60%, #87cf3e); color: #fff; }
.welcome .wl-hero h2 { font-size: 21px; }
.welcome .wl-hero p { font-size: 12.5px; opacity: 0.92; margin-top: 4px; }
.welcome .wl-body { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.welcome .wl-card { border: 1px solid var(--separator); border-radius: 8px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.welcome .wl-card svg { width: 30px; height: 30px; flex: none; }
.welcome .wl-card h4 { font-size: 13.5px; margin-bottom: 3px; }
.welcome .wl-card p { font-size: 12px; color: var(--fg-dim); line-height: 1.4; }
.welcome .wl-card .btn { margin-top: 8px; }
.welcome .wl-foot { padding: 10px 24px 14px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--separator); }

/* ---------- Drawing (paint) ---------- */
.paint { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.paint .pt-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--header); border-bottom: 1px solid var(--separator); flex-wrap: wrap; }
.paint .pt-colors { display: flex; gap: 4px; }
.paint .pt-color { width: 20px; height: 20px; border-radius: 4px; border: 2px solid transparent; padding: 1px; }
.paint .pt-color.sel { border-color: var(--accent); }
.paint .pt-color i { display: block; width: 100%; height: 100%; border-radius: 2px; }
.paint .pt-canvas-wrap { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--text) 12%, var(--bg)); }
.paint canvas { background: #fff; box-shadow: var(--shadow); cursor: crosshair; border-radius: 2px; }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 5000;
  background: #000000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  transition: opacity 0.5s ease;
}
.boot.fade-out { opacity: 0; pointer-events: none; }
.boot-logo { width: 340px; height: 130px; }
.boot-dots { display: flex; gap: 10px; }
.boot-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  transition: background 0.3s;
}
.boot-dots i.on { background: #ffffff; }
.boot-hint { position: absolute; bottom: 28px; color: rgba(255,255,255,0.35); font-size: 13px; letter-spacing: 0.4px; }

/* ---------- Login (MDM style) ---------- */
.login {
  position: fixed; inset: 0; z-index: 4000;
  background:
    radial-gradient(1200px 700px at 70% 20%, rgba(135, 207, 62, 0.10), transparent 60%),
    radial-gradient(900px 600px at 20% 85%, rgba(53, 168, 84, 0.12), transparent 55%),
    linear-gradient(160deg, #101a13 0%, #0a100c 55%, #06100a 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.login.fade-out { opacity: 0; pointer-events: none; }
.login .login-card { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #e8f2e8; }
.login .login-clock { position: absolute; top: 34px; text-align: center; color: rgba(255,255,255,0.85); }
.login .login-clock .lg-time { font-size: 44px; font-weight: 300; }
.login .login-clock .lg-date { font-size: 14px; opacity: 0.7; margin-top: 2px; }
.login .avatar-ring {
  width: 108px; height: 108px; border-radius: 50%;
  padding: 4px; border: 2px solid rgba(135, 207, 62, 0.55);
  box-shadow: 0 0 30px rgba(53, 168, 84, 0.25);
}
.login .avatar-ring .avatar { width: 100%; height: 100%; border-radius: 50%; background: #1c2b21; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login .avatar-ring .avatar svg { width: 64px; height: 64px; }
.login .login-user { font-size: 19px; font-weight: 700; }
.login .login-pass { display: flex; gap: 8px; }
.login .login-pass input {
  width: 230px; height: 34px; border-radius: 17px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.09); color: #fff; padding: 0 16px; outline: none; font-size: 13px;
  transition: border 0.15s, background 0.15s;
}
.login .login-pass input:focus { border-color: #87cf3e; background: rgba(255,255,255,0.13); }
.login .login-go {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(135,207,62,0.85);
  display: flex; align-items: center; justify-content: center; color: #0a1a0e;
}
.login .login-go:hover { background: #9ade57; }
.login .login-go svg { width: 16px; height: 16px; }
.login .login-hint { font-size: 12px; color: rgba(255,255,255,0.45); }
.login .login-msg { font-size: 12.5px; color: #f0a5a8; min-height: 16px; }
.login .login-session { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.login .login-power { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 10px; }
.login .login-power button {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
}
.login .login-power button:hover { background: rgba(255,255,255,0.16); color: #fff; }
.login .login-power svg { width: 17px; height: 17px; }
.login .login-brand { position: absolute; left: 26px; bottom: 22px; opacity: 0.85; }

/* ---------- Lock screen ---------- */
.lock {
  position: fixed; inset: 0; z-index: 4500;
  background: rgba(6, 12, 8, 0.88);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.lock .lock-card { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lock .lock-clock { text-align: center; margin-bottom: 12px; }
.lock .lock-clock .lk-time { font-size: 56px; font-weight: 200; }
.lock .lock-clock .lk-date { font-size: 15px; opacity: 0.7; }
.lock .avatar-ring { width: 86px; height: 86px; border-radius: 50%; border: 2px solid rgba(135,207,62,0.5); padding: 3px; }
.lock .avatar-ring .avatar { width: 100%; height: 100%; border-radius: 50%; background: #1c2b21; display: flex; align-items: center; justify-content: center; }
.lock .avatar-ring .avatar svg { width: 48px; height: 48px; }
.lock .lock-user { font-size: 16px; font-weight: 700; }
.lock .lock-pass { display: flex; gap: 8px; }
.lock .lock-pass input {
  width: 210px; height: 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: #fff; padding: 0 14px; outline: none;
}
.lock .lock-pass input:focus { border-color: #87cf3e; }

/* ---------- Shutdown / restart screens ---------- */
.shutdown-screen {
  position: fixed; inset: 0; z-index: 6000;
  background: #000; color: rgba(255,255,255,0.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.6s ease;
  cursor: default;
}
.shutdown-screen .sd-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); border-top-color: #87cf3e; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shutdown-screen .sd-text { font-size: 15px; letter-spacing: 0.3px; }
.shutdown-screen .sd-sub { font-size: 12px; color: rgba(255,255,255,0.35); }
.shutdown-screen svg { width: 60px; height: 60px; opacity: 0.9; }
