:root {
  --bg: #0b0d10;
  --fg: #c9d1d9;
  --dim: #6e7681;
  --ok: #3fb950;
  --warn: #d29922;
  --accent: #58d6c8;
  --prompt: #7ee787;
  --path: #79c0ff;
  --win-bg: #14181f;
  --win-border: #2b313b;
  --title-bg: #1c222b;
  --panel-bg: rgba(14, 17, 22, 0.88);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.6 var(--mono);
  overflow: hidden;
}
.hidden { display: none !important; }

/* ---------- boot / tty ---------- */
.screen {
  position: fixed; inset: 0;
  padding: 16px;
  overflow-y: auto;
}
#boot-log { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.p-user { color: var(--prompt); font-weight: 700; }
.p-path { color: var(--path); font-weight: 700; }

/* CRT 風の走査線（控えめ） */
#boot::after, #tty::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
}

.term-out { white-space: pre-wrap; word-break: break-word; }
.term-line { display: flex; gap: 0; }
.term-line input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0; padding: 0;
  color: var(--fg); font: inherit; caret-color: var(--fg);
}
.term-out a { color: var(--accent); }

.startx-btn {
  position: fixed; right: 16px; bottom: 16px;
  font: 700 14px var(--mono);
  color: var(--bg); background: var(--accent);
  border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer;
}

/* ---------- X init ---------- */
#xinit {
  background:
    repeating-conic-gradient(#222 0 25%, #333 0 50%) 0 0 / 4px 4px; /* 古い X の灰色網目 */
  display: grid; place-items: center;
  animation: xfade 0.55s ease-in forwards;
}
.x-cursor { font-size: 22px; color: #000; text-shadow: 0 0 1px #fff; }
@keyframes xfade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* 太字はフォント読み込み前に代替フォントで出て崩れるので、色で強調する */
#boot-log b, #tty-out b { font-weight: 400; color: #fff; }

/* ---------- desktop（Ubuntu / GNOME 風。配色は Yaru） ---------- */
#desktop {
  --orange: #E95420;
  --aubergine: #2c001e;
  --y-bg: #fafafa;
  --y-hb: #ebebeb;
  --y-border: #d8d8d8;
  --y-text: #3d3d3d;
  --y-muted: #8a8a8a;
  --y-shadow: 0 2px 6px rgba(0,0,0,.25), 0 18px 48px rgba(0,0,0,.35);
  position: fixed; inset: 0;
  font-family: "Ubuntu", var(--sans);
  color: var(--y-text);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233,84,32,.9), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #5e2750 0%, transparent 70%),
    linear-gradient(135deg, #77216f 0%, #2c001e 100%);
  animation: fadein .6s ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* top bar */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 32px; z-index: 5000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #000; color: #fff; font: 500 13.5px "Ubuntu", var(--sans);
  padding: 0 6px;
}
#topbar button {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  height: 24px; padding: 0 12px; border-radius: 12px;
}
#topbar button:hover { background: rgba(255,255,255,.16); }
#activities { justify-self: start; }
#clock { justify-self: center; white-space: nowrap; }
#tray { justify-self: end; position: relative; }
#power-btn { display: flex; align-items: center; gap: 8px; }
.popover {
  position: absolute; right: 0; top: 30px; min-width: 240px;
  background: #383838; color: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.popover button { width: 100%; text-align: left; display: flex; justify-content: space-between; height: 36px !important; border-radius: 8px !important; }
.popover hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 6px 0; }
kbd { font: 11px var(--mono); padding: 1px 5px; border-radius: 4px; background: rgba(127,127,127,.25); }

/* dock */
#dock {
  position: absolute; top: 32px; left: 0; bottom: 0; width: 72px; z-index: 4000;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0;
  background: rgba(30, 30, 30, .78); backdrop-filter: blur(10px);
}
.dock-item {
  position: relative; width: 56px; height: 56px; padding: 6px;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.dock-item:hover { background: rgba(255,255,255,.12); }
.dock-item svg { width: 100%; height: 100%; display: block; }
.dock-item.apps { padding: 12px; }
.dock-item.running::before {
  content: ""; position: absolute; left: 1px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--orange);
}
.dock-item.on { background: rgba(255,255,255,.18); }
.dock-sp { flex: 1; }

/* overview (Activities / アプリを表示) */
#overview {
  position: absolute; inset: 32px 0 0 72px; z-index: 4500;
  background: rgba(0,0,0,.55); backdrop-filter: blur(16px);
  display: grid; place-items: center; animation: fadein .15s;
}
.ov-grid { display: grid; grid-template-columns: repeat(4, 120px); gap: 16px; }
.ov-app {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px; background: none; border: 0; border-radius: 16px; cursor: pointer;
  color: #fff; font: 14px "Ubuntu", var(--sans);
}
.ov-app:hover { background: rgba(255,255,255,.14); }
.ov-app svg { width: 72px; height: 72px; }

/* windows */
.window {
  position: absolute;
  min-width: 280px; min-height: 160px;
  display: flex; flex-direction: column;
  background: var(--y-bg);
  border-radius: 12px;
  box-shadow: var(--y-shadow);
  overflow: hidden;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.window:not(.active) { box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25); }
.window.max {
  left: 72px !important; top: 32px !important; right: 0; bottom: 0;
  width: auto !important; height: auto !important; border-radius: 0;
}
.hb {
  position: relative; flex: none; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--y-hb); border-bottom: 1px solid var(--y-border);
  cursor: grab; user-select: none; touch-action: none;
  font: 700 14px "Ubuntu", var(--sans);
}
.window:not(.active) .hb { color: var(--y-muted); }
.hb .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 110px; }
.hb-btns { position: absolute; right: 10px; top: 0; bottom: 0; display: flex; align-items: center; gap: 10px; }
.wb {
  width: 24px; height: 24px; padding: 4px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.08); color: inherit; display: grid; place-items: center;
}
.wb svg { width: 16px; height: 16px; }
.wb:hover { background: rgba(0,0,0,.16); }
.wb.close:hover { background: var(--orange); color: #fff; }
.window.dark .hb { background: #2b2b2b; border-color: #1a1a1a; color: #eee; }
.window.dark:not(.active) .hb { color: #999; }
.window.dark .wb { background: rgba(255,255,255,.1); }
.window.dark .wb:hover { background: rgba(255,255,255,.2); }
.window.dark .wb.close:hover { background: var(--orange); }
.wbody { flex: 1; min-height: 0; overflow: auto; position: relative; }

/* terminal app（Ubuntu の紫の端末） */
.term-app { background: #300a24; color: #eee; font: 13px/1.55 var(--mono); padding: 8px 12px; cursor: text; }
.term-app .p-user, .vsc-panel .p-user { color: #8ae234; }
.term-app .p-path, .vsc-panel .p-path { color: #729fcf; }

/* files app */
.files-app { display: flex; background: #fff; }
.f-side { width: 190px; flex: none; background: #f2f2f2; border-right: 1px solid var(--y-border); padding: 8px; font-size: 13.5px; }
.f-item { padding: 8px 10px; border-radius: 6px; color: var(--y-text); }
.f-item.on { background: #e1e1e1; font-weight: 500; }
.f-main { flex: 1; padding: 12px 16px; min-width: 0; }
.f-path { display: flex; gap: 10px; align-items: baseline; font-weight: 500; margin-bottom: 12px; }
.dim2 { color: var(--y-muted); font: 12px var(--mono); }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.f-file {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; background: none; border: 0; border-radius: 8px; cursor: pointer;
  font: 13px "Ubuntu", var(--sans); color: var(--y-text);
}
.f-file:hover { background: rgba(233,84,32,.1); }
.f-file svg { width: 56px; height: 56px; }
.f-hint { color: var(--y-muted); font-size: 12px; }

/* code（VS Code 風エディタ） */
.vsc {
  display: grid; grid-template-columns: 48px 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 22px;
  background: #1f1f1f; color: #cccccc; font: 13px var(--mono); overflow: hidden;
}
.vsc.side-closed { grid-template-columns: 48px 0 minmax(0, 1fr); }
.vsc.side-closed .vsc-side { visibility: hidden; }
.vsc-act { background: #181818; border-right: 1px solid #2b2b2b; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.act { width: 48px; height: 46px; background: none; border: 0; border-left: 2px solid transparent; color: #868686; cursor: pointer; padding: 11px; }
.act svg { width: 24px; height: 24px; }
.act:hover { color: #fff; }
.act.on { color: #fff; border-left-color: #0078d4; }
.act-sp { flex: 1; }
.vsc-side { background: #181818; border-right: 1px solid #2b2b2b; overflow: auto; font-size: 13px; }
.vsc-side-h { padding: 10px 20px; font-size: 11px; letter-spacing: .04em; color: #bbb; }
.vsc-root { padding: 3px 8px; font-weight: 700; font-size: 11px; color: #ccc; }
.vsc-file {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 3px 8px 3px 22px; background: none; border: 1px solid transparent;
  color: #ccc; font: inherit; cursor: pointer; text-align: left;
}
.vsc-file:hover { background: #2a2d2e; }
.vsc-file.on { background: #37373d; border-color: #0078d4; color: #fff; }
.md-ico { color: #519aba; font-size: 10px; font-weight: 700; }
.vsc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vsc-tabs { display: flex; background: #181818; border-bottom: 1px solid #2b2b2b; flex: none; }
.vsc-tablist { display: flex; overflow-x: auto; flex: 1; min-width: 0; }
.vsc-tab {
  display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; height: 35px; flex: none;
  color: #9d9d9d; border-right: 1px solid #2b2b2b; border-top: 1px solid transparent; cursor: pointer;
}
.vsc-tab.on { background: #1f1f1f; color: #fff; border-top-color: #0078d4; }
.tab-x { width: 20px; height: 20px; border: 0; border-radius: 4px; background: none; color: inherit; cursor: pointer; opacity: .6; }
.tab-x:hover { background: #3a3a3a; opacity: 1; }
.vsc-prev { flex: none; background: none; border: 0; color: #9d9d9d; font: 12px var(--mono); padding: 0 12px; cursor: pointer; }
.vsc-prev:hover, .vsc-prev.on { color: #fff; }
.vsc-crumb { padding: 3px 16px; color: #a9a9a9; font-size: 12px; flex: none; }
.vsc-ed { flex: 1; overflow: auto; min-height: 0; padding-bottom: 12px; outline: none; }
.ln { display: flex; line-height: 20px; }
.ln .no { width: 56px; flex: none; text-align: right; padding-right: 22px; color: #6e7681; user-select: none; }
.ln .tx { flex: 1; white-space: pre-wrap; word-break: break-word; padding-right: 16px; }
.ln.cur { background: #282828; outline: 1px solid #303030; }
.ln.cur .no { color: #ccc; }
.md-h { color: #569cd6; font-weight: 700; }
.md-li { color: #6796e6; }
.md-b { color: #569cd6; font-weight: 700; }
.md-code { color: #ce9178; }
.md-todo { color: #1e1e1e; background: #dcdcaa; padding: 0 2px; border-radius: 2px; }
.vsc a { color: #4daafc; }
.vsc-ed.md-prev { font: 14px/1.8 var(--sans); padding: 16px 32px; color: #ccc; }
.md-prev h1 { font-size: 26px; border-bottom: 1px solid #3a3a3a; padding-bottom: 6px; margin: 4px 0 14px; color: #fff; }
.md-prev h2 { font-size: 19px; border-bottom: 1px solid #333; padding-bottom: 4px; margin: 22px 0 10px; color: #fff; }
.md-prev code { background: #2d2d2d; padding: 1px 5px; border-radius: 4px; font: 13px var(--mono); }
.md-prev strong { color: #fff; }
.vsc-ed.empty { display: grid; place-items: center; color: #777; text-align: center; }
.vsc-welcome svg { width: 96px; opacity: .25; }
.vsc-panel { height: 34%; min-height: 120px; flex: none; display: flex; flex-direction: column; border-top: 1px solid #2b2b2b; background: #181818; }
.vsc-panel-h { display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 34px; flex: none; font-size: 11px; color: #9d9d9d; }
.vsc-panel-h .on { color: #e7e7e7; border-bottom: 1px solid #0078d4; padding: 6px 0; }
.vsc-panel-x { margin-left: auto; background: none; border: 0; color: #9d9d9d; font-size: 16px; cursor: pointer; }
.vsc-panel-body { flex: 1; overflow: auto; padding: 4px 16px 8px; font-size: 12.5px; line-height: 1.55; cursor: text; }
.vsc-status {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 10px;
  background: #007acc; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden;
}
.st-sp { flex: 1; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  #topbar { font-size: 12.5px; }
  #activities { padding: 0 8px !important; }
  #dock {
    top: auto; right: 0; width: auto; height: 64px;
    flex-direction: row; justify-content: center; padding: 0 8px;
  }
  .dock-item { width: 52px; height: 52px; }
  .dock-item.running::before { left: 50%; top: auto; bottom: 1px; margin: 0 0 0 -2.5px; }
  .dock-sp { flex: 0 0 8px; }
  #overview { inset: 32px 0 64px 0; }
  .ov-grid { grid-template-columns: repeat(2, 120px); }
  .window, .window.max {
    left: 0 !important; top: 32px !important; right: 0; bottom: 64px;
    width: auto !important; height: auto !important; min-width: 0; border-radius: 0;
  }
  .hb { cursor: default; }
  .hb .t { padding: 0 100px 0 12px; }
  .f-side { display: none; }
  .vsc { grid-template-columns: 44px minmax(0, 1fr); }
  .vsc .vsc-act { grid-row: 1; }
  .vsc .vsc-side {
    position: absolute; left: 44px; top: 0; bottom: 22px; width: 220px; z-index: 2;
    box-shadow: 8px 0 24px rgba(0,0,0,.4);
  }
  .vsc.side-closed { grid-template-columns: 44px minmax(0, 1fr); }
  .vsc .vsc-main { grid-column: 2; grid-row: 1; }
  .act { width: 44px; padding: 10px; }
  .ln .no { width: 36px; padding-right: 12px; }
  .vsc-panel { height: 42%; }
  .vsc-ed.md-prev { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ---------- shell: 透かし候補・クリックできるコマンド ---------- */
.term-line .ps { flex: none; white-space: pre; }
.cmd { position: relative; flex: 1; min-width: 0; display: flex; }
.cmd input { position: relative; z-index: 1; width: 100%; }
.ghost { position: absolute; left: 0; top: 0; white-space: pre; pointer-events: none; }
.ghost .gv { visibility: hidden; }
.ghost .g { color: #6e7681; }
.ghost .gk {
  margin-left: 10px; padding: 0 5px; border: 1px solid #4a4f57; border-radius: 4px;
  color: #8b949e; font-size: .85em;
}
.cl { color: var(--accent); cursor: pointer; text-decoration: underline dotted rgba(127,127,127,.6); text-underline-offset: 3px; }
.cl:hover { text-decoration-style: solid; }
.term-out .h { color: #fff; font-weight: 700; }
.term-app .cl, .vsc-panel .cl { color: #4ec9b0; }

/* IDE ターミナルの歓迎ボックス（Claude Code の起動画面風） */
.welcome {
  border: 1px solid #d97757; border-radius: 8px; padding: 10px 14px; margin: 8px 0 10px;
  max-width: 640px;
}
.w-title { color: #fff; font-weight: 700; }
.w-star { color: #d97757; margin-right: 4px; }
.w-sub { color: #9d9d9d; margin-top: 2px; }
.w-tips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: #9d9d9d; font-size: 12px; }
.vsc-shell { margin-left: auto; }
.vsc-panel-x { margin-left: 10px !important; }

/* dock の区切りと app ごとの細かい差 */
.window.app-browser .hb, .window.app-settings .hb, .window.app-appcenter .hb { background: #f2f2f2; }

/* ---------- 設定（このシステムについて） ---------- */
.settings-app { display: flex; background: #fafafa; }
.s-side { width: 210px; flex: none; background: #ebebeb; border-right: 1px solid var(--y-border); padding: 8px; font-size: 13.5px; overflow: auto; }
.s-item { padding: 9px 12px; border-radius: 8px; color: var(--y-text); }
.s-item.on { background: #d6d6d6; font-weight: 500; }
.s-main { flex: 1; overflow: auto; padding: 28px 32px; min-width: 0; }
.s-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.s-avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), #77216f); color: #fff;
  font: 700 42px "Ubuntu", sans-serif; box-shadow: 0 6px 20px rgba(119,33,111,.35);
}
.s-os { font: 300 30px "Ubuntu", sans-serif; letter-spacing: .02em; }
.s-os span { color: var(--orange); font-weight: 500; }
.s-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; margin: 0 auto 16px; max-width: 560px; overflow: hidden; }
.s-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #ececec; font-size: 14px; }
.s-row:last-child { border-bottom: 0; }
.s-k { font-weight: 500; flex: none; }
.s-v { color: #666; text-align: right; overflow-wrap: anywhere; }
.s-v a { color: var(--orange); }
button.s-row { width: 100%; background: none; border: 0; border-bottom: 1px solid #ececec; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.s-row:hover { background: #f6f6f6; }

/* ---------- ブラウザ（Works） ---------- */
.browser-app { display: flex; flex-direction: column; background: #f9f9fb; overflow: hidden; }
.b-tabs { display: flex; gap: 4px; padding: 6px 8px 0; background: #e8e8ed; flex: none; }
.b-tab { padding: 7px 16px; border-radius: 8px 8px 0 0; font-size: 12.5px; color: #555; cursor: pointer; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-tab.on { background: #fff; color: #222; box-shadow: 0 -1px 3px rgba(0,0,0,.06); cursor: default; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #e3e3e8; flex: none; }
.b-nav { width: 28px; height: 28px; display: grid; place-items: center; color: #777; border-radius: 6px; font-size: 16px; }
.b-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: #f0f0f4; border-radius: 8px; font: 13px var(--mono); color: #222; white-space: nowrap; overflow: hidden; }
.b-lock { font-size: 11px; }
.b-page { flex: 1; overflow: auto; padding: 32px 40px 48px; font-family: var(--sans); color: #1d1d1f; }
.b-hero { margin-bottom: 26px; }
.b-eyebrow { margin: 0; font: 700 12px var(--mono); letter-spacing: .18em; color: var(--orange); }
.b-hero h1 { margin: 4px 0; font-size: 30px; }
.b-hero p:last-child { margin: 0; color: #6e6e73; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.b-card { background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.b-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.b-thumb {
  height: 110px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 50%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
}
.b-thumb span { color: rgba(255,255,255,.92); font: 700 44px "Ubuntu", var(--sans); }
.b-body { padding: 14px 16px 16px; }
.b-kind { margin: 0; font: 700 11px var(--mono); color: var(--c); letter-spacing: .06em; }
.b-body h2 { margin: 4px 0 6px; font-size: 16px; }
.b-body h2 a { color: inherit; text-decoration: none; }
.b-body h2 a:hover { color: var(--orange); }
.b-body p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #515154; }
.b-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.b-tags span { font: 11.5px var(--mono); padding: 2px 8px; border-radius: 999px; background: #f2f2f5; color: #444; }

/* ---------- App Center（スキル） ---------- */
.appcenter-app { display: flex; flex-direction: column; background: #fafafa; overflow: hidden; }
.ac-head { padding: 14px 20px 10px; border-bottom: 1px solid #e6e6e6; flex: none; background: #fff; }
.ac-search { padding: 8px 14px; border-radius: 10px; background: #f0f0f0; color: #888; font-size: 13.5px; max-width: 420px; }
.ac-cats { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
.ac-cat { padding: 5px 14px; border-radius: 999px; border: 1px solid #ddd; background: #fff; font: 13px "Ubuntu", var(--sans); color: #444; cursor: pointer; white-space: nowrap; }
.ac-cat.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.ac-body { flex: 1; overflow: auto; padding: 16px 20px 28px; }
.ac-body h2 { font-size: 16px; margin: 0 0 12px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ac-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; position: relative; animation: pop .2s ease-out; }
.ac-icon { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 17px "Ubuntu", sans-serif; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ac-info { display: flex; flex-direction: column; min-width: 0; }
.ac-info b { font-size: 14.5px; }
.ac-info span { font-size: 12.5px; color: #777; }
.ac-badge { position: absolute; right: 10px; bottom: 8px; font-size: 10.5px; color: #26a269; }
.ac-info { padding-bottom: 12px; }

/* ---------- Notebook（研究） ---------- */
.nb-app { display: flex; flex-direction: column; background: #fff; overflow: hidden; font-family: var(--sans); }
.nb-menu { display: flex; gap: 16px; padding: 6px 14px; font-size: 13px; color: #444; border-bottom: 1px solid #eee; flex: none; }
.nb-tool { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid #e0e0e0; flex: none; background: #fafafa; }
.nb-run { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 4px 12px; font: 12.5px var(--mono); cursor: pointer; }
.nb-run:hover { border-color: #f37726; color: #f37726; }
.nb-sp { flex: 1; }
.nb-kernel { font: 12px var(--mono); color: #555; display: flex; align-items: center; gap: 6px; }
.nb-kernel i { width: 8px; height: 8px; border-radius: 50%; background: #26a269; }
.nb-doc { flex: 1; overflow: auto; padding: 18px 24px 40px 8px; }
.nb-cell { display: flex; gap: 8px; margin-bottom: 8px; border-left: 3px solid transparent; padding-left: 6px; transition: border-color .15s, background .15s; }
.nb-cell.running { border-left-color: #f37726; background: #fff8f2; }
.nb-prompt { width: 72px; flex: none; text-align: right; font: 12px var(--mono); color: #303f9f; padding-top: 8px; }
.nb-prompt.o { color: #d84315; }
.nb-src { flex: 1; min-width: 0; background: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 4px; min-height: 34px; }
.nb-src pre { margin: 0; padding: 8px 10px; font: 12.5px/1.6 var(--mono); color: #222; white-space: pre-wrap; word-break: break-word; }
.nb-src .k { color: #008000; font-weight: 700; }
.nb-src .s { color: #ba2121; }
.nb-src .c { color: #3d7b7b; font-style: italic; }
.nb-out { flex: 1; min-width: 0; padding: 4px 0; }
.nb-md { flex: 1; min-width: 0; font-size: 14px; line-height: 1.8; color: #222; }
.nb-md h1 { font-size: 26px; margin: 4px 0 6px; }
.nb-md h2 { font-size: 18px; margin: 16px 0 2px; }
.nb-md p { margin: 4px 0; }
.nb-md .todo { color: #9a6700; background: #fff8c5; display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 13px; }
.plot { width: 100%; max-width: 640px; height: auto; display: block; }
.plot .pg { stroke: #eee; }
.plot .pv { stroke: #bbb; stroke-dasharray: 3 3; }
.plot .pt { font: 10.5px var(--mono); fill: #888; }

@media (max-width: 640px) {
  .dock-item.extra { display: none; }
  .s-side { display: none; }
  .s-main { padding: 20px 14px; }
  .b-page { padding: 20px 16px 32px; }
  .b-tabs .b-tab:not(.on) { display: none; }
  .nb-prompt { width: 0; overflow: hidden; }
  .nb-doc { padding: 12px 12px 32px 4px; }
  .ghost .gk { display: none; }
  .welcome { padding: 8px 10px; }
}

/* ---------- code: メニューバー・レイアウト切り替え・サイズ変更・クイックオープン ---------- */
.vsc {
  grid-template-columns: 48px var(--side-w, 220px) minmax(0, 1fr);
  grid-template-rows: 34px minmax(0, 1fr) 22px;
}
.vsc.side-closed { grid-template-columns: 48px 0 minmax(0, 1fr); }
.vsc-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 8px;
  background: #181818; border-bottom: 1px solid #2b2b2b; min-width: 0;
}
.vsc-menubar { display: flex; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mb { flex: none; background: none; border: 0; color: #ccc; font: 12.5px "Ubuntu", var(--sans); padding: 4px 8px; border-radius: 5px; cursor: pointer; }
.mb:hover, .mb.on { background: #2e2e2e; color: #fff; }
.vsc-cmd {
  flex: 0 1 420px; min-width: 120px; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #222; border: 1px solid #3a3a3a; border-radius: 6px; color: #9d9d9d; font: 12px var(--mono); cursor: pointer;
}
.vsc-cmd:hover { background: #2a2a2a; color: #ccc; }
.vsc-cmd svg { width: 13px; height: 13px; }
.vsc-layout { flex: 1 1 0; display: flex; justify-content: flex-end; gap: 2px; }
.lay, .pb { width: 26px; height: 24px; padding: 4px; background: none; border: 0; border-radius: 5px; color: #9d9d9d; cursor: pointer; display: grid; place-items: center; }
.lay svg, .pb svg { width: 16px; height: 16px; }
.lay:hover, .pb:hover { background: #2e2e2e; color: #fff; }
.lay.on { color: #e7e7e7; }
.lay.on svg rect, .lay.on svg path { stroke: currentColor; }

.vsc-act { grid-row: 2; }
.vsc-side { grid-row: 2; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.vsc-tree { overflow: auto; flex: 1; }
.vsc-main { grid-row: 2; }
.vsc-status { grid-row: 3; }

.sash { position: absolute; z-index: 3; touch-action: none; transition: background .1s .15s; }
.sash:hover, .sash.drag { background: #0078d4; }
.sash-v { top: 0; right: 0; bottom: 0; width: 4px; cursor: ew-resize; }
.vsc-panel { position: relative; }
.sash-h { left: 0; right: 0; top: -2px; height: 4px; cursor: ns-resize; }
.vsc-panel-h { gap: 16px; }
.vsc-panel-h > span:not(.ph-sp):not(.vsc-shell) { white-space: nowrap; }
.ph-sp { flex: 1; }
.vsc-shell { margin-left: 0 !important; color: #9d9d9d; }
.vsc-panel-x { display: none; }
.vsc-main.panel-max .vsc-tabs, .vsc-main.panel-max .vsc-crumb, .vsc-main.panel-max .vsc-ed { display: none; }
.vsc-main.panel-max .vsc-panel { flex: 1; height: auto !important; }
.vsc-main.panel-max .sash-h { display: none; }

.vsc-menu {
  position: absolute; z-index: 20; min-width: 240px; padding: 4px;
  background: #1f1f1f; border: 1px solid #454545; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  font: 12.5px "Ubuntu", var(--sans);
}
.mi { display: flex; justify-content: space-between; gap: 24px; width: 100%; padding: 5px 10px; border: 0; border-radius: 4px; background: none; color: #ccc; font: inherit; cursor: pointer; text-align: left; }
.mi:hover:not(:disabled) { background: #0078d4; color: #fff; }
.mi:disabled { color: #6b6b6b; cursor: default; }
.mi kbd { background: none; color: inherit; opacity: .7; padding: 0; }
.vsc-menu hr { border: 0; border-top: 1px solid #454545; margin: 4px 6px; }

.vsc-qo {
  position: absolute; z-index: 21; top: 6px; left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); padding: 6px;
  background: #222; border: 1px solid #454545; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.qo-in { width: 100%; padding: 6px 8px; background: #313131; border: 1px solid #0078d4; border-radius: 4px; color: #eee; font: 13px "Ubuntu", var(--sans); outline: 0; }
.qo-list { margin-top: 4px; max-height: 280px; overflow: auto; }
.qo-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px; border-radius: 4px; color: #ccc; font-size: 13px; cursor: pointer; }
.qo-item.on, .qo-item:hover { background: #04395e; color: #fff; }
.qo-sub { color: #8b8b8b; font-size: 12px; }
.qo-empty { padding: 6px 8px; color: #8b8b8b; font-size: 13px; }

@media (max-width: 640px) {
  .vsc { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 34px minmax(0, 1fr) 22px; }
  .vsc.side-closed { grid-template-columns: 44px minmax(0, 1fr); }
  .vsc .vsc-act { grid-row: 2; }
  .vsc .vsc-main { grid-column: 2; grid-row: 2; }
  .vsc .vsc-side { top: 34px; }
  .vsc-cmd, .vsc-layout { display: none; }
  .sash-v { display: none; }
  .vsc-panel-h > span:nth-child(n+3):not(.ph-sp):not(.vsc-shell) { display: none; }
  .vsc-shell { display: none; }
}

/* ---------- ネタ系コマンド（eggs.js） ---------- */
.err { color: #f85149; }
.egg { position: fixed; inset: 0; z-index: 100000; }
.egg-sl { pointer-events: none; overflow: hidden; display: flex; align-items: center; background: rgba(0,0,0,.25); }
.egg-sl pre { margin: 0; color: #fff; font: 15px/1.25 var(--mono); text-shadow: 0 0 6px rgba(0,0,0,.8); white-space: pre; will-change: transform; }
.egg-matrix { background: #000; cursor: pointer; }
.egg-matrix canvas { display: block; }
.egg-matrix p { position: absolute; right: 16px; bottom: 12px; margin: 0; color: #22c55e; font: 12px var(--mono); opacity: .7; }
.egg-panic { background: #000; color: #ddd; padding: 16px; font: 13px/1.6 var(--mono); cursor: pointer; animation: fadein .3s; }
.egg-panic pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.egg-after { margin-top: 24px; color: #8b949e; opacity: 0; transition: opacity .6s; }
.egg-after.show { opacity: 1; }
.egg-fork { position: fixed; width: 260px; background: #300a24; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); overflow: hidden; animation: pop .12s; }
.ef-hb { background: #2b2b2b; color: #ddd; font: 700 12px "Ubuntu", sans-serif; padding: 6px 10px; text-align: center; }
.egg-fork pre { margin: 0; padding: 8px 10px; color: #eee; font: 12px var(--mono); }

/* rm -rf / で壊れていく画面 */
.egg-nofont, .egg-nofont * { font-family: "Times New Roman", serif !important; }
.egg-noicons .dock-item svg, .egg-noicons .ov-app svg, .egg-noicons .act svg, .egg-noicons .wb svg { visibility: hidden; }
.egg-falling .window { transition: transform 1.6s cubic-bezier(.5,0,.9,.4), opacity 1.6s; transform: translateY(120vh) rotate(14deg) !important; opacity: .3; }
.egg-falling #dock { transition: transform 1.2s ease-in; transform: translateX(-120%); }
#desktop.egg-fade { transition: filter 1.2s, opacity 1.2s; filter: grayscale(1) brightness(.2); }

.egg-party #desktop { animation: party 1.2s linear infinite; }
@keyframes party { from { filter: hue-rotate(0deg) saturate(1.6); } to { filter: hue-rotate(360deg) saturate(1.6); } }

/* vim ごっこ */
.egg-vim {
  position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: #1e1e1e; color: #4f6aff; font: 13px/1.45 var(--mono); cursor: text;
}
.v-body { flex: 1; margin: 0; padding: 4px 8px; overflow: hidden; color: #4f6aff; }
.v-splash { position: absolute; left: 0; right: 0; top: 30%; text-align: center; color: #ccc; line-height: 1.7; }
.v-status { display: flex; justify-content: space-between; padding: 2px 8px; color: #ddd; background: #1e1e1e; border-top: 1px solid #333; }
.v-err { color: #fff; background: #c4282f; padding: 0 4px; }
.v-in { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
/* フォントを消した後でも、カーネルのコンソールは組み込みの等幅フォントで出る */
.egg-nofont .egg-panic, .egg-nofont .egg-panic * { font-family: ui-monospace, Menlo, monospace !important; }

/* ---------- ファイルシステム関連 ---------- */
.fs-dir { color: #79c0ff; font-weight: 700; }
.term-app .fs-dir, .vsc-panel .fs-dir { color: #729fcf; }
.fs-file { color: inherit; }
.cl .fs-file, .cl .fs-dir { text-decoration: none; }
.grep-hit { color: #f85149; font-weight: 700; }

/* エクスプローラーのツリー */
.vsc-side-h { display: flex; align-items: center; }
.sh-acts { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.vsc-side:hover .sh-acts, .vsc-side:focus-within .sh-acts { opacity: 1; }
.sa { width: 22px; height: 22px; padding: 3px; background: none; border: 0; border-radius: 4px; color: #ccc; cursor: pointer; }
.sa:hover { background: #2e2e2e; }
.sa svg { width: 16px; height: 16px; }
.vsc-row {
  display: flex; align-items: center; gap: 4px; width: 100%; height: 22px;
  padding: 0 8px 0 calc(8px + var(--d, 0) * 12px); background: none; border: 1px solid transparent;
  color: #ccc; font: 13px "Ubuntu", var(--sans); cursor: pointer; text-align: left; white-space: nowrap;
}
.vsc-row:hover { background: #2a2d2e; }
.vsc-row.dir.sel { background: #2a2d2e; }
.vsc-row.vsc-file.on { background: #37373d; border-color: #0078d4; color: #fff; }
.vsc-row .tw { width: 14px; flex: none; color: #9d9d9d; text-align: center; }
.vsc-row .fn { overflow: hidden; text-overflow: ellipsis; }
.vsc-row .dot { margin-left: auto; color: #e2c08d; font-size: 10px; }
.ro-lock { margin-left: auto; font-size: 9px; opacity: .45; }
.vsc-new { flex: 1; min-width: 0; height: 20px; background: #313131; border: 1px solid #0078d4; color: #eee; font: 13px "Ubuntu", var(--sans); padding: 0 4px; outline: 0; }
.f-ico { display: inline-block; width: 18px; flex: none; font: 700 10px var(--mono); text-align: center; }
.vsc-file { padding-left: calc(8px + var(--d, 0) * 12px); }

/* タブ: × は通常ホバー時、未保存なら ● */
.tab-x::before { content: "×"; }
.vsc-tab:not(.on):not(:hover) .tab-x { visibility: hidden; }
.vsc-tab.dirty .tab-x { visibility: visible; }
.vsc-tab.dirty .tab-x::before { content: "●"; font-size: 10px; }
.vsc-tab.dirty .tab-x:hover::before { content: "×"; font-size: inherit; }

/* 編集できるエディタ */
.vsc-ed.editable { display: flex; padding: 0; overflow: hidden; }
.vsc-ed.editable .gutter { width: 56px; flex: none; padding: 6px 22px 0 0; text-align: right; color: #6e7681; font: 13px/20px var(--mono); overflow: hidden; user-select: none; }
.vsc-ed.editable .ta {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; padding: 6px 16px 40px 0; margin: 0;
  background: transparent; color: #d4d4d4; font: 13px/20px var(--mono); caret-color: #aeafad; white-space: pre; overflow: auto; tab-size: 2;
}
.vsc-toast {
  position: absolute; right: 16px; bottom: 34px; z-index: 30; max-width: 360px;
  padding: 8px 12px; background: #252526; border: 1px solid #454545; border-left: 3px solid #f14c4c; border-radius: 4px;
  color: #ddd; font: 12.5px "Ubuntu", var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: pop .15s;
}
.st-ro:empty { display: none; }

/* ファイルアプリ */
.f-item { display: flex; gap: 10px; width: 100%; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.f-item span { width: 16px; text-align: center; color: #777; }
.f-item:hover { background: #e6e6e6; }
.f-main { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.f-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #e6e6e6; flex: none; }
.f-nav { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #ececec; color: #444; font-size: 16px; cursor: pointer; flex: none; }
.f-nav:hover { background: #e0e0e0; }
.f-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 3px 6px; background: #f2f2f2; border-radius: 8px; font-size: 13px; color: #999; white-space: nowrap; }
.f-crumb { background: none; border: 0; padding: 2px 6px; border-radius: 6px; font: inherit; color: var(--y-text); cursor: pointer; }
.f-crumb:hover { background: #e2e2e2; }
.f-crumb:last-child { font-weight: 700; }
.files-app .f-grid { flex: 1; overflow: auto; padding: 12px 14px; align-content: start; }
.f-file span { word-break: break-all; text-align: center; line-height: 1.3; }
.f-empty { color: var(--y-muted); grid-column: 1 / -1; text-align: center; margin-top: 40px; }
.f-foot { flex: none; padding: 4px 14px; border-top: 1px solid #eee; font-size: 12px; color: var(--y-muted); }

/* ---------- ブラウザ（本物のページを iframe で表示） ---------- */
.b-tabs { align-items: flex-end; }
.b-tablist { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
.b-tab { display: flex; align-items: center; gap: 6px; max-width: 220px; min-width: 120px; padding: 6px 6px 6px 12px; }
.b-tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.b-tx { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: #777; cursor: pointer; flex: none; line-height: 1; }
.b-tx:hover { background: #ddd; }
.b-newtab { width: 28px; height: 28px; margin: 0 0 3px 2px; border: 0; border-radius: 6px; background: none; color: #555; font-size: 16px; cursor: pointer; }
.b-newtab:hover { background: #d8d8de; }
.b-fav { width: 16px; height: 16px; flex: none; border-radius: 4px; display: grid; place-items: center; background: var(--orange); color: #fff; font: 700 10px "Ubuntu", sans-serif; }
.b-nav { border: 0; background: none; cursor: pointer; flex: none; }
.b-nav:hover:not(:disabled) { background: #eee; }
.b-nav:disabled { opacity: .35; cursor: default; }
.b-url { margin: 0; }
.b-addr { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 13px var(--mono); color: #222; }
.b-url:focus-within { box-shadow: 0 0 0 2px #0060df; background: #fff; }
.b-marks { display: flex; gap: 2px; padding: 3px 8px; background: #fff; border-bottom: 1px solid #e3e3e8; overflow-x: auto; flex: none; }
.b-mark { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: 0; border-radius: 6px; background: none; font: 12.5px "Ubuntu", var(--sans); color: #333; cursor: pointer; white-space: nowrap; }
.b-mark:hover { background: #ececf0; }
.b-view { flex: 1; min-height: 0; position: relative; display: flex; background: #fff; }
.b-view .b-page { flex: 1; }
.b-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.b-view.loaded iframe { background: #fff; }
.b-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #888; font-size: 13px; text-align: center; padding: 16px; }
.b-spin { width: 28px; height: 28px; border: 3px solid #e3e3e8; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.b-new { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 10vh; gap: 22px; }
.b-logo { font: 700 44px "Ubuntu", sans-serif; color: #2c001e; letter-spacing: -.02em; }
.b-logo span { color: var(--orange); }
.b-search { width: min(560px, 100%); }
.b-search input { width: 100%; padding: 12px 18px; border: 1px solid #ddd; border-radius: 999px; font: 15px "Ubuntu", var(--sans); outline: 0; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.b-search input:focus { border-color: var(--orange); }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; width: min(620px, 100%); }
.b-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 0; border-radius: 12px; background: #f4f4f7; font: 12.5px "Ubuntu", var(--sans); color: #333; cursor: pointer; }
.b-tile:hover { background: #ebebf0; }
.b-tile .b-fav { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.b-err { max-width: 560px; margin: 8vh auto 0; padding: 0 16px; color: #333; }
.b-err-ico { font-size: 42px; }
.b-err h1 { font-size: 22px; margin: 10px 0; }
.b-err p { color: #555; line-height: 1.8; }
.b-btn { display: inline-block; padding: 8px 16px; border-radius: 8px; background: #0060df; color: #fff !important; text-decoration: none; font-weight: 500; }
.b-err-code { font: 12px var(--mono); color: #999 !important; }

/* ---------- more.js: ロック画面・サスペンド・通知・ダイアログ・xkill・xeyes・xclock ---------- */
.egg-lock {
  z-index: 200000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  color: #fff; font-family: "Ubuntu", var(--sans); cursor: default;
  background: radial-gradient(120% 90% at 100% 0%, rgba(233,84,32,.75), transparent 55%), linear-gradient(135deg, #3b0f37, #12000c);
  backdrop-filter: blur(20px); animation: fadein .3s;
}
.egg-lock.bye { transition: transform .35s ease-in, opacity .35s; transform: translateY(-100%); opacity: 0; }
.lk-clock { text-align: center; transition: transform .3s; }
.egg-lock.up .lk-clock { transform: translateY(-20px) scale(.7); }
.lk-time { font-size: clamp(64px, 14vw, 120px); font-weight: 300; line-height: 1; }
.lk-date { font-size: 20px; opacity: .85; margin-top: 8px; }
.lk-login { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: fadein .25s; }
.lk-name { font-size: 18px; font-weight: 500; }
.lk-form input { width: 260px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font: 14px "Ubuntu", var(--sans); outline: 0; text-align: center; }
.lk-form input::placeholder { color: rgba(255,255,255,.6); }
.lk-form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lk-hint { margin: 0; font-size: 12px; opacity: .7; }
.lk-foot { position: absolute; bottom: 28px; margin: 0; font-size: 13px; opacity: .7; }
.egg-suspend { z-index: 200000; background: #000; animation: fadein .6s; cursor: none; }

.notif-stack { position: fixed; top: 40px; left: 50%; transform: translateX(-50%); z-index: 150000; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: rgba(40,40,40,.96); color: #fff; font: 13.5px "Ubuntu", var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: notif-in .25s ease-out; cursor: pointer; transition: opacity .35s, transform .35s;
}
.notif.out { opacity: 0; transform: translateY(-10px); }
.notif p { margin: 2px 0 0; color: #ccc; }
.nf-ico { font-size: 20px; line-height: 1.1; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.dlg-wrap { z-index: 160000; display: grid; place-items: center; background: rgba(0,0,0,.35); animation: fadein .15s; }
.dlg { width: min(380px, calc(100vw - 32px)); padding: 22px 22px 16px; border-radius: 14px; background: #fafafa; color: #333; font-family: "Ubuntu", var(--sans); box-shadow: 0 20px 50px rgba(0,0,0,.4); text-align: center; animation: pop .15s; }
.dlg h2 { margin: 0 0 8px; font-size: 16px; }
.dlg p { margin: 0 0 18px; font-size: 14px; color: #555; }
.dlg-btns { display: flex; gap: 8px; }
.dlg-btns button { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: #e8e8e8; font: 500 14px "Ubuntu", var(--sans); cursor: pointer; }
.dlg-btns button.pri { background: var(--orange, #E95420); color: #fff; }

body.xkill-mode, body.xkill-mode * { cursor: crosshair !important; }
.window.killed { transition: transform .25s, opacity .25s; transform: scale(.6) rotate(-4deg) !important; opacity: 0; }

.xeyes-app { background: transparent; display: grid; place-items: center; padding: 8px; }
.window.app-xeyes { background: rgba(250,250,250,.92); }
.xeyes-app svg { width: 100%; height: 100%; }
.xeyes-app .xe { fill: #fff; stroke: #111; stroke-width: 6; }
.xeyes-app .xp { fill: #111; }
.xclock-app { display: grid; place-items: center; padding: 10px; background: #fafafa; }
.xclock-app svg { width: 100%; height: 100%; }
.xc-face { fill: #fff; stroke: #222; stroke-width: 2; }
.xc-ticks line { stroke: #222; stroke-width: 1; }
.xc-h { stroke: #222; stroke-width: 3.5; stroke-linecap: round; }
.xc-m { stroke: #222; stroke-width: 2.2; stroke-linecap: round; }
.xc-s { stroke: var(--orange, #E95420); stroke-width: 1; }

.cal-today { background: #eee; color: #111; }
.figlet { display: inline-block; font: 900 clamp(28px, 6vw, 56px)/1.1 "Ubuntu", sans-serif; letter-spacing: .04em; background: linear-gradient(90deg, #E95420, #f7c548, #4ec9b0, #79c0ff, #c678dd); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 4px 0; }

/* ---------- Notebook（本物の Python で実行） ---------- */
.nb-menu { flex-wrap: wrap; gap: 2px; padding: 4px 8px; }
.nb-menu button { background: none; border: 0; border-radius: 4px; padding: 3px 8px; font: 12.5px var(--sans); color: #444; cursor: pointer; }
.nb-menu button:hover { background: #eee; }
.nb-btn { border: 1px solid #ddd; background: #fff; border-radius: 6px; min-width: 30px; height: 28px; padding: 0 8px; font: 13px var(--mono); cursor: pointer; }
.nb-btn:hover { border-color: #f37726; color: #f37726; }
.nb-app.busy .nb-kernel i { background: #f37726; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.nb-cell.sel { border-left-color: #42a5f5; }
.nb-cell.sel .nb-src { border-color: #42a5f5; }
.nb-src { position: relative; }
.nb-src.ro { background: #fafafa; }
.nb-badge { position: absolute; right: 6px; top: 6px; font: 10.5px var(--sans); color: #9a6700; background: #fff8c5; padding: 1px 6px; border-radius: 4px; }
.nb-ta { display: block; width: 100%; min-height: 34px; border: 0; outline: 0; resize: none; padding: 8px 10px; background: transparent; font: 12.5px/1.6 var(--mono); color: #222; overflow: hidden; tab-size: 4; }
.nb-cell.md .nb-ta { border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.nb-out pre { margin: 0; padding: 1px 0; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }
.nb-out .nb-err { color: #c62828; background: #fdecea; padding: 2px 6px; }
.nb-out .nb-val { color: #333; }
.plot .pt-title { font-weight: 700; fill: #555; }

/* =====================================================================
   desktop.js / apps.js / cmds.js で増えたもの
   ===================================================================== */

/* ---------- アクティビティの検索 ---------- */
#overview { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6vh 16px 24px; gap: 28px; overflow: auto; }
#overview.hidden { display: none; }
.ov-search { width: min(440px, 100%); padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: 15px "Ubuntu", var(--sans); outline: 0; text-align: center; }
.ov-search:focus { background: rgba(255,255,255,.22); box-shadow: 0 0 0 2px var(--orange); }
.ov-search::placeholder { color: rgba(255,255,255,.6); }
.ov-grid { grid-template-columns: repeat(auto-fill, 120px); width: min(900px, 100%); justify-content: center; }
.ov-row { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding: 10px 16px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font: 14px var(--mono); text-align: left; cursor: pointer; }
.ov-row:hover { background: rgba(255,255,255,.18); }
.ov-k { flex: none; width: 88px; font: 12px "Ubuntu", var(--sans); color: rgba(255,255,255,.6); }
.ov-none { grid-column: 1 / -1; color: rgba(255,255,255,.7); text-align: center; font-family: "Ubuntu", var(--sans); }

/* ---------- ウィンドウ: サイズ変更・端に寄せる ---------- */
.wresize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 6; touch-action: none; }
.wresize::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-right: 2px solid rgba(127,127,127,.5); border-bottom: 2px solid rgba(127,127,127,.5); }
.window.max .wresize { display: none; }
.snap-hint { position: absolute; z-index: 3999; border-radius: 12px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35); pointer-events: none; transition: all .12s; }

/* ---------- 右クリックメニュー・入力ダイアログ ---------- */
.ctx { position: fixed; z-index: 170000; min-width: 210px; padding: 6px; background: #303030; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 13.5px "Ubuntu", var(--sans); animation: pop .1s; }
.ctx button { display: flex; justify-content: space-between; gap: 24px; width: 100%; padding: 7px 12px; border: 0; border-radius: 6px; background: none; color: #f2f2f2; font: inherit; text-align: left; cursor: pointer; }
.ctx button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.ctx button:disabled { color: #7a7a7a; cursor: default; }
.ctx kbd { background: none; color: #aaa; padding: 0; }
.ctx hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 5px 4px; }
.dlg p { white-space: pre-line; }
.dlg-in { width: 100%; margin: 4px 0 16px; padding: 9px 12px; border: 1px solid #ccc; border-radius: 8px; font: 14px "Ubuntu", var(--sans); outline: 0; }
.dlg-in:focus { border-color: var(--orange, #E95420); box-shadow: 0 0 0 2px rgba(233,84,32,.25); }

/* ---------- トップバー: カレンダー・通知・クイック設定 ---------- */
#clock { cursor: pointer; padding: 2px 12px; border-radius: 12px; position: relative; }
#clock:hover { background: rgba(255,255,255,.16); }
#clock.has-notif::after { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }
.cal-pop { left: 50%; right: auto; transform: translateX(-50%); display: flex; gap: 0; padding: 0; width: min(640px, calc(100vw - 16px)); overflow: hidden; font: 13.5px "Ubuntu", var(--sans); }
.cal-pop.hidden { display: none; }
.cal-notifs { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.cal-notifs h3 { margin: 0 0 4px; font-size: 13px; color: #bbb; font-weight: 500; }
.cn { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.07); }
.cn b { display: block; font-weight: 500; }
.cn p { margin: 2px 0 0; color: #bbb; font-size: 12.5px; }
.cn small { color: #888; font-size: 11px; }
.cn-none { margin: auto; color: #888; }
.cn-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.cn-foot button { width: auto !important; height: 30px !important; padding: 0 14px !important; background: rgba(255,255,255,.1) !important; border-radius: 15px !important; }
.qs-sw { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.qs-sw small { color: #888; font-size: 11px; margin-left: 4px; }
.qs-sw input { accent-color: var(--orange); width: 16px; height: 16px; }
.cal-side { width: 250px; flex: none; padding: 14px; background: rgba(255,255,255,.04); border-left: 1px solid rgba(255,255,255,.08); }
.cal-today-l { margin: 0 0 8px; color: #bbb; font-size: 12.5px; }
.cal-today-l b { color: #fff; font-size: 16px; font-weight: 500; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-h button { width: 28px !important; height: 28px !important; padding: 0 !important; justify-content: center !important; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12.5px; }
.cal-w { color: #888; font-size: 11px; }
.cal-d { padding: 4px 0; border-radius: 50%; }
.cal-d.today { background: var(--orange); color: #fff; font-weight: 700; }
.cal-d.dl { color: #ff7b63; text-decoration: underline wavy; text-underline-offset: 3px; }
.cal-d.fri:not(.today) { color: #f6d32d; }
.cal-ev { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 12.5px; }
.cal-ev p { margin: 2px 0 0; color: #ccc; }

#power-btn svg.off { opacity: .35; }
#power-menu { width: 300px; }
.qs { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.qs-vol { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.qs-vol input { flex: 1; accent-color: var(--orange); }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qs-b { flex-direction: column; justify-content: center !important; align-items: flex-start; height: 48px !important; padding: 0 12px !important; border-radius: 24px !important; background: rgba(255,255,255,.1) !important; font-size: 13px !important; }
.qs-b small { font-size: 10.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qs-b.on { background: var(--orange) !important; }
.qs-b:hover { filter: brightness(1.15); }
.qs-set { font-size: 13px !important; }

/* ---------- デスクトップのアイコン ---------- */
#desk-icons { position: absolute; top: 44px; right: 12px; bottom: 12px; display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; gap: 6px; z-index: 1; }
.di { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 1px solid transparent; border-radius: 8px; background: none; color: #fff; font: 12.5px "Ubuntu", var(--sans); text-shadow: 0 1px 3px rgba(0,0,0,.8); cursor: pointer; }
.di svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.di span { word-break: break-all; line-height: 1.25; text-align: center; }
.di:hover { background: rgba(255,255,255,.12); }
.di.sel { background: rgba(233,84,32,.35); border-color: rgba(233,84,32,.7); }

/* ---------- 表示モード（クイック設定・設定・roz://flags） ---------- */
body.qs-night #desktop, body.qs-night .egg-lock { filter: sepia(.35) saturate(1.2) hue-rotate(-12deg) brightness(.95); }
body.qs-crt #desktop::after { content: ""; position: fixed; inset: 0; z-index: 99999; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.22) 2px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45)); }
body.qs-crt #desktop { filter: contrast(1.1) saturate(1.25); text-shadow: 0 0 2px rgba(255,255,255,.25); }
body.qs-flip #desktop { transform: rotate(180deg); }
body.qs-big #desktop { zoom: 1.25; }
body.qs-comic, body.qs-comic * { font-family: "Comic Sans MS", "Comic Neue", cursive !important; }
body.qs-vga #desktop { filter: blur(1.2px) contrast(1.3) saturate(.7); image-rendering: pixelated; }
body.flash::after { content: ""; position: fixed; inset: 0; z-index: 300000; background: #fff; pointer-events: none; animation: flash .3s ease-out forwards; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }

/* ダークスタイル: 明るいアプリを暗くする */
body.qs-dark .window:not(.dark) { --y-bg: #242424; --y-hb: #303030; --y-border: #1c1c1c; --y-text: #eee; --y-muted: #999; color: #eee; }
body.qs-dark .window:not(.dark) .hb { background: #303030; border-color: #1c1c1c; color: #eee; }
body.qs-dark .window:not(.dark) .wb { background: rgba(255,255,255,.1); }
body.qs-dark .files-app, body.qs-dark .settings-app, body.qs-dark .s-main, body.qs-dark .memo-app .mm-main, body.qs-dark .appcenter-app, body.qs-dark .ac-body { background: #242424; color: #eee; }
body.qs-dark .f-side, body.qs-dark .s-side, body.qs-dark .mm-side, body.qs-dark .ac-head { background: #2c2c2c; color: #eee; border-color: #1c1c1c; }
body.qs-dark .f-item, body.qs-dark .s-item, body.qs-dark .f-file, body.qs-dark .f-crumb { color: #eee; }
body.qs-dark .s-card, body.qs-dark .ac-card { background: #303030; border-color: #3a3a3a; color: #eee; }
body.qs-dark .s-row, body.qs-dark button.s-row { border-color: #3a3a3a; }
body.qs-dark button.s-row:hover, body.qs-dark .f-item:hover, body.qs-dark .f-file:hover { background: #3a3a3a; }
body.qs-dark .f-crumbs, body.qs-dark .f-nav, body.qs-dark .ac-search { background: #333; color: #ddd; }
body.qs-dark .f-bar, body.qs-dark .f-foot { border-color: #333; }
body.qs-dark .mm-ta { background: #242424; color: #eee; }
body.qs-dark .mm-bar, body.qs-dark .mm-status { background: #2c2c2c; border-color: #1c1c1c; color: #ddd; }

/* ---------- 設定アプリ ---------- */
.s-side { display: flex; flex-direction: column; gap: 2px; }
.s-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.s-item:hover { background: #e0e0e0; }
.s-ic { width: 18px; text-align: center; flex: none; font-size: 13px; }
.s-title { margin: 0 auto 18px; max-width: 560px; font: 500 20px "Ubuntu", var(--sans); }
.s-main h2 { max-width: 560px; margin: 18px auto 8px; font: 500 14px "Ubuntu", var(--sans); color: #777; }
.s-k small { display: block; font-weight: 400; color: #888; font-size: 12px; margin-top: 2px; }
.s-sw { align-items: center; cursor: pointer; }
.s-sw input { position: absolute; opacity: 0; pointer-events: none; }
.s-sw i { width: 42px; height: 24px; flex: none; border-radius: 12px; background: #ccc; position: relative; transition: background .15s; }
.s-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.s-sw input:checked + i { background: var(--orange); }
.s-sw input:checked + i::after { transform: translateX(18px); }
.s-sw input:focus-visible + i { box-shadow: 0 0 0 2px var(--orange); }
.s-v select { font: 13.5px "Ubuntu", var(--sans); padding: 4px 8px; border-radius: 6px; border: 1px solid #ccc; background: #fff; }
.s-range input { width: 200px; accent-color: var(--orange); }
.s-os { border: 0; background: none; cursor: pointer; color: inherit; user-select: none; }
.s-copy .s-v { pointer-events: none; }
.s-copy .s-v a { pointer-events: auto; }
.s-danger .s-k { color: #c01c28; }
.s-note { max-width: 560px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 10px; background: #fff3cd; color: #7a5b00; font-size: 13.5px; }
.s-app { display: flex; align-items: center; gap: 10px; }
.s-app svg { width: 26px; height: 26px; }
.s-styles { display: flex; gap: 14px; max-width: 560px; margin: 0 auto 8px; }
.s-styles button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: none; font: 13px "Ubuntu", var(--sans); color: inherit; cursor: pointer; }
.s-styles button.on { border-color: var(--orange); }
.s-styles i { width: 120px; height: 72px; border-radius: 8px; border: 1px solid #ccc; }
.sty-l { background: linear-gradient(#ebebeb 0 18%, #fafafa 18%); }
.sty-d { background: linear-gradient(#303030 0 18%, #242424 18%); }
.s-accents { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 8px; }
.s-accents button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px #ccc; cursor: pointer; }
.s-accents button.on { box-shadow: 0 0 0 2px var(--c); }
.s-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.s-walls button { height: 72px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 4px 6px; background-size: cover !important; }
.s-walls button.on { border-color: var(--orange); }
.s-walls span { font: 11px var(--mono); color: #fff; text-shadow: 0 1px 2px #000; }

/* ---------- メモ帳 ---------- */
.memo-app { display: flex; flex-direction: column; background: #fff; overflow: hidden; font-family: "Ubuntu", var(--sans); }
.mm-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #f2f2f2; border-bottom: 1px solid #ddd; flex: none; }
.mm-bar button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: #e4e4e4; font: 13px "Ubuntu", var(--sans); color: #333; cursor: pointer; }
.mm-bar button:hover:not(:disabled) { background: #d8d8d8; }
.mm-bar button:disabled { opacity: .45; cursor: default; }
.mm-save { background: var(--orange) !important; color: #fff !important; }
.mm-title { flex: 1; min-width: 0; text-align: center; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-wrap { flex: 1; min-height: 0; display: flex; }
.mm-side { width: 190px; flex: none; overflow: auto; background: #f7f7f7; border-right: 1px solid #e3e3e3; padding: 6px; }
.mm-h { margin: 4px 6px 6px; font-size: 11.5px; color: #888; letter-spacing: .05em; }
.mm-item { display: flex; flex-direction: column; width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font: 13px "Ubuntu", var(--sans); color: #333; }
.mm-item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-item small { color: #888; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-item:hover { background: #ececec; }
.mm-item.on { background: #fde3d7; }
.mm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.mm-ro { padding: 6px 12px; background: #fff8c5; color: #7a5b00; font-size: 12.5px; display: flex; align-items: center; gap: 10px; flex: none; }
.mm-ro button { border: 0; border-radius: 6px; padding: 3px 10px; background: #f6d32d; cursor: pointer; font: 12px "Ubuntu", var(--sans); }
.mm-find { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #e3e3e3; flex: none; }
.mm-find input { flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; font: 13px "Ubuntu", var(--sans); outline: 0; }
.mm-find button { border: 0; border-radius: 6px; padding: 3px 10px; background: #e4e4e4; cursor: pointer; }
.mm-hits { font-size: 12px; color: #888; min-width: 70px; }
.mm-ta { flex: 1; min-height: 0; resize: none; border: 0; outline: 0; padding: 12px 16px; font: 14px/1.75 "JetBrains Mono", "Noto Sans JP", monospace; color: #222; background: #fff; tab-size: 4; }
.nowrap .mm-ta { white-space: pre; overflow-x: auto; }
.mm-status { display: flex; gap: 16px; padding: 3px 12px; font-size: 11.5px; color: #777; background: #f2f2f2; border-top: 1px solid #ddd; flex: none; }
.mm-msg { margin-left: auto; color: var(--orange); }

/* ---------- 電卓 ---------- */
.calc-app { display: flex; flex-direction: column; background: #2a2a2a; padding: 10px; gap: 10px; font-family: "Ubuntu", var(--sans); }
.cc-disp { background: #1c1c1c; border-radius: 10px; padding: 10px 14px; text-align: right; }
.cc-hist { min-height: 18px; color: #888; font-size: 13px; }
.cc-in { width: 100%; border: 0; outline: 0; background: none; color: #fff; font: 30px "Ubuntu", var(--sans); text-align: right; }
.cc-note { min-height: 16px; color: var(--orange); font-size: 12px; }
.cc-keys { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cc-keys button { border: 0; border-radius: 10px; background: #3d3d3d; color: #fff; font: 20px "Ubuntu", var(--sans); cursor: pointer; min-height: 44px; }
.cc-keys button:hover { filter: brightness(1.2); }
.cc-keys .op { background: #4a4a4a; color: #ffbe6f; }
.cc-keys .clr { background: #c01c28; }
.cc-keys .eq { background: var(--orange); color: #fff; }

/* ---------- システムモニター ---------- */
.sysmon-app { display: flex; flex-direction: column; background: #fafafa; overflow: hidden; font-family: "Ubuntu", var(--sans); }
.sm-tabs { display: flex; justify-content: center; gap: 4px; padding: 8px; background: #ebebeb; border-bottom: 1px solid #d8d8d8; flex: none; }
.sm-tabs button { padding: 5px 16px; border: 0; border-radius: 8px; background: none; font: 13.5px "Ubuntu", var(--sans); color: #444; cursor: pointer; }
.sm-tabs button.on { background: #d6d6d6; font-weight: 500; }
.sm-body { flex: 1; overflow: auto; padding: 10px 14px; }
.sm-body h3 { margin: 6px 0 4px; font-size: 14px; font-weight: 500; }
.sm-body h3 small { color: #888; font-weight: 400; margin-left: 6px; }
.sm-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.sm-t th { text-align: left; font-weight: 500; color: #777; padding: 6px 8px; border-bottom: 1px solid #ddd; }
.sm-t td { padding: 6px 8px; border-bottom: 1px solid #eee; white-space: nowrap; }
.sm-t td:first-child { white-space: normal; }
.sm-t tbody tr { cursor: pointer; }
.sm-t tbody tr:hover { background: #f0f0f0; }
.sm-t tr.sel { background: var(--orange) !important; color: #fff; }
.sm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: #888; }
.sm-foot button { border: 0; border-radius: 8px; padding: 7px 14px; background: #c01c28; color: #fff; font: 500 13px "Ubuntu", var(--sans); cursor: pointer; }
.sm-foot button:disabled { opacity: .4; cursor: default; }
.sm-graph { width: 100%; height: 110px; display: block; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; }
.sm-real { font-size: 12px; color: #888; }
.sm-bar { display: inline-block; vertical-align: middle; width: 100px; height: 8px; margin-right: 8px; border-radius: 4px; background: #e3e3e3; overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: #3584e4; }
.sm-bar.warn i { background: #c01c28; }

/* ---------- マインスイーパー ---------- */
.mines-app { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; background: #e9e9e9; font-family: "Ubuntu", var(--sans); }
.mn-bar { display: flex; align-items: center; justify-content: space-between; width: min(100%, 320px); font: 15px var(--mono); }
.mn-face { font-size: 22px; border: 0; border-radius: 8px; background: #fff; width: 40px; height: 36px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.mn-grid { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 2px; width: min(100%, 320px); }
.mn-c { aspect-ratio: 1; border: 0; border-radius: 4px; background: #9c9c9c; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); font: 700 15px var(--mono); cursor: pointer; padding: 0; color: #222; }
.mn-c:hover:not(.o) { background: #aaa; }
.mn-c.o { background: #f6f5f4; box-shadow: none; cursor: default; }
.mn-c.boom { background: #e01b24; }
.mn-c[data-n="1"] { color: #1c71d8; } .mn-c[data-n="2"] { color: #26a269; } .mn-c[data-n="3"] { color: #c01c28; }
.mn-c[data-n="4"] { color: #613583; } .mn-c[data-n="5"] { color: #a51d2d; } .mn-c[data-n="6"] { color: #0d7377; }
.mn-foot { display: flex; align-items: center; justify-content: space-between; width: min(100%, 320px); font-size: 12.5px; color: #666; }
.mn-flag { border: 0; border-radius: 8px; padding: 5px 10px; background: #fff; cursor: pointer; font: 12.5px "Ubuntu", var(--sans); }
.mn-flag.on { background: var(--orange); color: #fff; }

/* ---------- スネーク・2048 ---------- */
.game-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; background: #1d1d1d; color: #eee; font-family: "Ubuntu", var(--sans); }
.gm-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 400px); font-size: 14px; }
.gm-best { color: #999; font-size: 12.5px; }
.gm-help { margin: 0; color: #888; font-size: 12px; }
.gm-new { border: 0; border-radius: 8px; padding: 5px 12px; background: var(--orange); color: #fff; cursor: pointer; font: 13px "Ubuntu", var(--sans); }
.sn-cv { width: min(100%, 400px); aspect-ratio: 1; border-radius: 8px; outline: 0; image-rendering: pixelated; }
.sn-cv:focus { box-shadow: 0 0 0 2px var(--orange); }
.g2048 { background: #faf8ef; color: #776e65; }
.g-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; width: min(100%, 360px); aspect-ratio: 1; border-radius: 10px; background: #bbada0; outline: 0; }
.g-board:focus { box-shadow: 0 0 0 3px var(--orange); }
.g-t { display: grid; place-items: center; border-radius: 6px; background: rgba(238,228,218,.35); font: 700 clamp(18px, 6vw, 32px) "Ubuntu", sans-serif; color: #776e65; animation: pop .1s; }
.g-t[data-v="2"] { background: #eee4da; } .g-t[data-v="4"] { background: #ede0c8; }
.g-t[data-v="8"] { background: #f2b179; color: #fff; } .g-t[data-v="16"] { background: #f59563; color: #fff; }
.g-t[data-v="32"] { background: #f67c5f; color: #fff; } .g-t[data-v="64"] { background: #f65e3b; color: #fff; }
.g-t[data-v="128"] { background: #edcf72; color: #fff; font-size: clamp(16px, 5vw, 26px); } .g-t[data-v="256"] { background: #edcc61; color: #fff; font-size: clamp(16px, 5vw, 26px); }
.g-t[data-v="512"] { background: #edc850; color: #fff; font-size: clamp(16px, 5vw, 26px); } .g-t[data-v="1024"] { background: #edc53f; color: #fff; font-size: clamp(13px, 4vw, 22px); }
.g-t[data-v="2048"] { background: #edc22e; color: #fff; font-size: clamp(13px, 4vw, 22px); box-shadow: 0 0 20px #edc22e; }
.g2048 .gm-best { color: #998; }

/* ---------- 端末の小物 ---------- */
.top-live { white-space: pre; }
.egg-gs { z-index: 140000; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font: 16px "Ubuntu", var(--sans); animation: fadein .2s; }
.egg-butterfly { pointer-events: none; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font: 14px var(--mono); }
.egg-butterfly p { position: absolute; bottom: 30%; }
.bf { font-size: 64px; animation: flap .25s ease-in-out infinite alternate, fly 2.6s ease-in-out forwards; }
@keyframes flap { to { transform: scaleX(.3); } }
@keyframes fly { from { translate: -40vw 20vh; } 50% { translate: 0 -10vh; } to { translate: 40vw 0; } }
.ghost .gk { font-size: 11px; }

/* ---------- ブラウザ: 内蔵ページ・証明書・経歴書・オフライン ---------- */
.b-url { position: relative; }
.b-lock { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: 11px; }
.b-cert { position: absolute; z-index: 5; top: 84px; left: 110px; width: min(320px, calc(100% - 24px)); padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.18); border: 1px solid #e3e3e8; font: 13px/1.6 "Ubuntu", var(--sans); color: #333; }
.b-cert p { margin: 6px 0 0; color: #555; }
.browser-app { position: relative; }
.dim-p { color: #888 !important; font-size: 12.5px; }
.b-doc { max-width: 680px; margin: 0 auto; }
.b-doc h1 { font-size: 24px; }
.b-doc a { color: #0060df; }
.b-hist { list-style: none; padding: 0; }
.b-hist li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #eee; font-size: 13.5px; }
.b-hist small { color: #999; flex: none; }
.b-hist span { color: #999; font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-flags { color: #ddd; }
.browser-app .b-page:has(.b-flags) { background: #202124; }
.b-flags h1 { color: #fff; }
.b-warn { padding: 10px 14px; border-radius: 8px; background: #3c2a00; color: #fdd663; }
.b-flag { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #3c4043; }
.b-flag b { color: #fff; }
.b-flag p { margin: 2px 0; color: #aaa; font-size: 13px; }
.b-flag code { color: #8ab4f8; font-size: 12px; }
.b-flag select { background: #303134; color: #eee; border: 1px solid #5f6368; border-radius: 4px; padding: 4px 8px; }
.b-off { max-width: 600px; margin: 6vh auto 0; color: #333; outline: 0; }
.b-off canvas { width: 100%; height: auto; display: block; margin-bottom: 20px; cursor: pointer; }
.b-off h1 { font-size: 22px; }
.b-off li { margin: 4px 0; color: #555; }
.b-page:focus { outline: 0; }
.b-cv-bar { max-width: 760px; margin: 0 auto 8px; text-align: right; }
.b-cv-bar .b-btn { border: 0; cursor: pointer; font: 500 13.5px "Ubuntu", var(--sans); }
.cv { max-width: 760px; margin: 0 auto; font: 14px/1.75 var(--sans); color: #222; }
.cv h1 { margin: 0; font: 700 30px "Ubuntu", var(--sans); }
.cv header p { margin: 2px 0 0; color: #666; }
.cv h2 { font-size: 15px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--orange, #E95420); }
.cv table { width: 100%; border-collapse: collapse; }
.cv th { width: 9.5em; text-align: left; vertical-align: top; color: #666; font-weight: 500; padding: 4px 0; }
.cv td { padding: 4px 0; overflow-wrap: anywhere; }
.cv ul { padding-left: 1.2em; }
.cv li { margin: 6px 0; }
.cv small { color: #777; }
.cv a { color: #c34113; }
.cv-skills { columns: 2; }
.cv footer { margin-top: 28px; color: #999; font-size: 12px; }

/* ---------- App Center: 検索と詳細 ---------- */
.ac-search { display: flex; align-items: center; gap: 8px; }
.ac-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 13.5px "Ubuntu", var(--sans); color: inherit; }
button.ac-card { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
button.ac-card:hover { border-color: var(--orange); }
.ac-svg { background: none; box-shadow: none; padding: 2px; }
.ac-svg svg { width: 100%; height: 100%; }
.ac-body h2 { margin-top: 18px; }
.ac-body h2:first-child { margin-top: 0; }
.ac-none { padding: 16px; margin-bottom: 14px; border-radius: 12px; background: #fff; border: 1px dashed #ccc; color: #555; }
.ac-none p { margin: 4px 0 0; }
.ac-back { border: 0; border-radius: 8px; padding: 6px 12px; background: #ececec; cursor: pointer; font: 13px "Ubuntu", var(--sans); margin-bottom: 12px; }
.ac-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ac-hero h1 { margin: 0; font-size: 24px; }
.ac-hero p { margin: 2px 0 0; color: #777; }
.ac-icon.big { width: 88px; height: 88px; font-size: 28px; border-radius: 20px; }
.ac-acts { margin-left: auto; display: flex; gap: 8px; }
.ac-acts button { border: 0; border-radius: 8px; padding: 8px 18px; font: 500 14px "Ubuntu", var(--sans); cursor: pointer; }
.ac-open { background: var(--orange); color: #fff; }
.ac-un { background: #e8e8e8; color: #c01c28; }
.ac-p { color: #555; line-height: 1.8; }

/* ---------- ファイル: ゴミ箱・隠しファイル ---------- */
.f-nav.on { background: var(--orange); color: #fff; }
.f-trash { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; background: #fff3cd; color: #7a5b00; font-size: 12.5px; flex: none; }
.f-trash button { border: 0; border-radius: 6px; padding: 4px 10px; background: #c01c28; color: #fff; cursor: pointer; font: 12.5px "Ubuntu", var(--sans); }
.f-file.dot { opacity: .6; }
.f-file.sel { background: rgba(233,84,32,.18); }
.f-main:focus { outline: 0; }

/* ---------- Code: 検索・ソース管理・パネルのタブ・ステータスバー ---------- */
.vsc-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vsc-view.hidden { display: none; }
.vs-in, .scm-msg { margin: 0 12px 8px; padding: 5px 8px; background: #313131; border: 1px solid #3c3c3c; border-radius: 4px; color: #ddd; font: 13px "Ubuntu", var(--sans); outline: 0; }
.vs-in:focus, .scm-msg:focus { border-color: #0078d4; }
.scm-msg { min-height: 54px; resize: vertical; }
.scm-commit { margin: 0 12px 10px; padding: 5px; border: 0; border-radius: 4px; background: #0078d4; color: #fff; font: 13px "Ubuntu", var(--sans); cursor: pointer; }
.scm-commit:hover { background: #026ec1; }
.vs-res, .scm-list { overflow: auto; flex: 1; font: 13px "Ubuntu", var(--sans); }
.vs-sum, .scm-h { margin: 0; padding: 0 12px 6px; color: #9d9d9d; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.vs-file { display: flex; align-items: center; gap: 4px; padding: 3px 12px; color: #ddd; }
.vs-file small { color: #8b8b8b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-n { margin-left: auto; padding: 0 6px; border-radius: 9px; background: #4d4d4d; color: #fff; font-size: 11px; }
.vs-hit, .scm-f { display: flex; align-items: center; gap: 4px; width: 100%; padding: 2px 12px 2px 30px; border: 0; background: none; color: #bbb; font: 12.5px "Ubuntu", var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scm-f { padding-left: 16px; }
.scm-f small { color: #8b8b8b; overflow: hidden; text-overflow: ellipsis; }
.vs-hit:hover, .scm-f:hover { background: #2a2d2e; }
.vs-hit .grep-hit { color: #fff; background: rgba(234,92,0,.45); font-weight: 400; }
.scm-st { margin-left: auto; font: 700 11px var(--mono); }
.scm-st.m { color: #e2c08d; }
.scm-st.u { color: #73c991; }
.ptab { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; letter-spacing: .02em; }
.ptab:hover { color: #e7e7e7; }
.vsc-shell { background: none; border: 0; color: #9d9d9d; font: inherit; cursor: pointer; border-radius: 4px; padding: 2px 6px; }
.vsc-shell:hover { background: #2e2e2e; color: #fff; }
.vsc-pane { flex: 1; overflow: auto; padding: 6px 16px 8px; font-size: 12.5px; line-height: 1.6; }
.vsc-pane.hidden { display: none; }
.pp-h { margin: 0 0 6px; color: #ccc; }
.pp-i { display: block; width: 100%; padding: 2px 4px; border: 0; background: none; color: #ccc; font: inherit; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-i:hover { background: #2a2d2e; }
.p-dbg { cursor: text; }
.st-b { height: 100%; padding: 0 6px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.st-b:hover { background: rgba(255,255,255,.12); }
.vsc-status { gap: 4px; padding: 0 4px; }
button.vsc-root { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--mono); }
.vsc-root:hover { color: #fff; }
.vsc-crumb { cursor: pointer; }
.vsc-crumb:hover { color: #fff; }
.vsc .ta.garbled { color: transparent; text-shadow: 0 0 6px #d4d4d4; }
.vsc[data-theme="Light Modern"] .vsc-ed, .vsc[data-theme="Light Modern"] .vsc-tab.on { background: #fff; color: #333; }
.vsc[data-theme="Light Modern"] .vsc-ed .ta { color: #222; }
.vsc[data-theme="Light Modern"] .ln.cur { background: #eef; outline-color: #dde; }
.vsc[data-theme="roz Aubergine"] .vsc-ed, .vsc[data-theme="roz Aubergine"] .vsc-tab.on { background: #2c001e; }
.vsc[data-theme="roz Aubergine"] .vsc-status { background: var(--orange); }

/* ---------- tty の 1 ページ版リンク・1 ページ版 ---------- */
.plain-link { position: fixed; left: 16px; bottom: 16px; color: var(--dim); font: 12px var(--mono); text-decoration: none; border-bottom: 1px dotted; }
.plain-link:hover { color: var(--accent); }
body.plain { overflow: auto; background: #fbfbfa; color: #222; font: 14px/1.75 var(--sans); }
.pl { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.pl-top a, .pl-top button { color: #c34113; font: 13px var(--sans); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.pl > h2 { font-size: 15px; margin: 26px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #E95420; }
@media print { .pl-top { display: none; } body.plain { background: #fff; } }

@media (max-width: 640px) {
  #desk-icons { display: none; }
  .cal-side { display: none; }
  .cal-pop { left: 8px; right: 8px; transform: none; width: auto; }
  #power-menu { width: calc(100vw - 16px); right: -6px; }
  .mm-side { display: none; }
  .ptab[data-pt="out"], .ptab[data-pt="dbg"] { display: none; }
  .ac-acts { margin-left: 0; }
  .wresize { display: none; }
  .vsc-status .st-ind, .vsc-status .st-enc { display: none; }
  .ov-grid { grid-template-columns: repeat(3, 1fr); }
  .ov-app svg { width: 56px; height: 56px; }
}

.vsc-shell { white-space: nowrap; }
.popover button kbd { align-self: center; }
.qs-b { white-space: nowrap; }
.ov-grid { grid-template-columns: repeat(auto-fill, 136px); }
.ov-app span { font-size: 13.5px; white-space: nowrap; }
@media (max-width: 640px) {
  .mm-title { display: none; }
  .mm-wrap { flex-direction: column; }
  .mm-side { display: flex; gap: 4px; width: auto; overflow-x: auto; overflow-y: hidden; padding: 4px 6px; border-right: 0; border-bottom: 1px solid #e3e3e3; flex: none; }
  .mm-h { display: none; }
  .mm-item { width: auto; flex: none; max-width: 150px; padding: 4px 10px; }
  .mm-item small { display: none; }
}
body.qs-dark .s-item.on, body.qs-dark .f-item.on, body.qs-dark .sm-tabs button.on { background: #474747; color: #fff; }
body.qs-dark .s-item:hover { background: #3a3a3a; }
body.qs-dark .mm-item { color: #eee; }
body.qs-dark .mm-item.on { background: #5a3324; }
body.qs-dark .s-title, body.qs-dark .ac-hero h1 { color: #fff; }

/* ---------- Code: 構文ハイライト・ミニマップ・このサイトのソース ---------- */
.vsc-edrow { flex: 1; min-height: 0; display: flex; position: relative; }
.vsc-edrow .vsc-ed { flex: 1; min-width: 0; }
.vsc-mini { width: 72px; flex: none; cursor: pointer; border-left: 1px solid #2b2b2b; background: #1f1f1f; }
.vsc-mini.hidden { display: none; }
.vsc-main.panel-max .vsc-edrow { display: none; }
.vsc-ed.empty + .vsc-mini { display: none; }
.h-k, .h-l { color: #569cd6; }
.h-kc { color: #c586c0; }
.h-s { color: #ce9178; }
.h-n { color: #b5cea8; }
.h-c { color: #6a9955; font-style: italic; }
.h-f { color: #dcdcaa; }
.h-t { color: #4ec9b0; }
.h-p, .h-v { color: #9cdcfe; }
.h-b { font-weight: 700; }
.h-todo { color: #1e1e1e; background: #dcdcaa; padding: 0 2px; border-radius: 2px; }
.ln .tx { color: #d4d4d4; }
.vsc-ed.editable .ed-area { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.vsc-ed.editable .ed-hl, .vsc-ed.editable .ta {
  position: absolute; inset: 0; margin: 0; padding: 6px 16px 40px 0;
  font: 13px/20px var(--mono); white-space: pre; tab-size: 2; letter-spacing: 0;
}
.vsc-ed.editable .ed-hl { color: #d4d4d4; pointer-events: none; overflow: visible; inset: 0 auto auto 0; min-width: 100%; }
.vsc-ed.editable .ta { color: transparent; background: transparent; caret-color: #aeafad; width: 100%; height: 100%; }
.vsc-ed.editable .ta::selection { background: rgba(38,79,120,.85); color: transparent; }
.dim-row { color: #777; cursor: default; }
.src-tree .vsc-row { font-family: var(--mono); font-size: 12.5px; }
.vsc-root[data-root="src"] { margin-top: 6px; border-top: 1px solid #2b2b2b; padding-top: 6px; color: #e2c08d; }
@media (max-width: 640px) { .vsc-mini { display: none; } }

/* =====================================================================
   ブラウザ（Works・詳細・GitHub ライブ・候補・読み込みバー）
   ===================================================================== */
.b-bar { position: relative; }
.b-star { border: 0; background: none; color: #888; font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }
.b-star:hover { color: #e5a50a; }
.b-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); opacity: 0; pointer-events: none; }
.b-prog.go { opacity: 1; width: 70%; transition: width 2.5s cubic-bezier(.1,.6,.3,1); }
.b-prog.go.done { width: 100%; opacity: 0; transition: width .2s, opacity .4s .2s; }
.b-sugg { position: absolute; z-index: 8; left: 132px; right: 46px; top: 38px; padding: 6px; background: #fff; border: 1px solid #e3e3e8; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.b-si { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; font: 13px "Ubuntu", var(--sans); color: #222; overflow: hidden; }
.b-si:hover, .b-si.on { background: #f0f0f4; }
.b-si b { font-weight: 500; flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-si small { color: #888; font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-sk { flex: none; width: 76px; font-size: 11px; color: #999; }

.b-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b-stats span { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #e6e6ea; font-size: 13px; color: #555; }
.b-stats b { color: #1d1d1f; font: 700 15px "Ubuntu", var(--sans); margin-right: 2px; }
.b-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.b-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.b-chips button { padding: 5px 14px; border-radius: 999px; border: 1px solid #ddd; background: #fff; font: 13px "Ubuntu", var(--sans); color: #444; cursor: pointer; }
.b-chips button.on { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
.w-search { flex: 1; min-width: 180px; max-width: 320px; margin-left: auto; padding: 7px 14px; border: 1px solid #ddd; border-radius: 999px; font: 13px "Ubuntu", var(--sans); outline: 0; background: #fff; }
.w-search:focus { border-color: var(--orange); }
.b-card { cursor: pointer; text-align: left; }
.b-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.b-card.hidden { display: none; }
.b-thumb { position: relative; }
.b-pub { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: #26a269; font: 700 11px "Ubuntu", var(--sans); font-style: normal; }
.b-none { color: #888; text-align: center; padding: 20px; }
.b-sec { margin-top: 34px; }
.b-sec h2 { font-size: 17px; margin: 0 0 12px; }
.b-sec h2 small { font-weight: 400; color: #999; font-size: 12px; margin-left: 6px; }
.gh-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gh-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid #e6e6ea; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.gh-card:hover { border-color: #0060df; transform: translateY(-2px); }
.gh-card b { color: #0060df; font: 600 14px var(--mono); }
.gh-card p { margin: 0; font-size: 13px; color: #555; line-height: 1.6; flex: 1; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #777; }
.gh-meta i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.gh-skel { height: 104px; border-radius: 12px; background: linear-gradient(90deg, #f0f0f3 25%, #e6e6ea 50%, #f0f0f3 75%) 0 0 / 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.gh-err { color: #888; font-size: 13px; grid-column: 1 / -1; }
.gh-err a { color: #0060df; }
.b-back { display: inline-block; margin-bottom: 14px; color: #555; text-decoration: none; font-size: 13px; }
.b-back:hover { color: var(--orange); }
.w-hero { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 18px; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.25), transparent 50%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); color: #fff; }
.w-hero .b-kind { color: rgba(255,255,255,.8); }
.w-hero h1 { margin: 4px 0 6px; font: 700 28px "Ubuntu", var(--sans); }
.w-hero p { margin: 0; color: rgba(255,255,255,.9); line-height: 1.7; }
.w-ico { width: 96px; height: 96px; flex: none; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.18); font: 700 48px "Ubuntu", sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.w-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.w-acts .b-btn { background: #fff; color: #1d1d1f !important; }
.b-btn2 { padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: 500 14px "Ubuntu", var(--sans); cursor: pointer; }
.b-btn2:hover { background: rgba(255,255,255,.15); }
.w-priv { font-size: 13px; color: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.18); }
.b-tags.big span { font-size: 13px; padding: 4px 12px; }
.w-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.w-skill, .w-other { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e6e6ea; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.w-skill:hover, .w-other:hover { border-color: var(--orange); }
.w-skill i, .w-other i { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 14px "Ubuntu", sans-serif; font-style: normal; }
.w-other i { background: var(--c); }
.w-skill span, .w-other span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.w-skill small, .w-other small { color: #888; font-size: 12px; }
.w-skill em { font-style: normal; font-size: 11.5px; color: #999; }
.w-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.b-hello { margin: 0; color: #888; font: 15px "Ubuntu", var(--sans); }
.b-new { padding-bottom: 24px; }
.b-new-gh { width: min(760px, 100%); }
@media (max-width: 640px) {
  .w-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .w-ico { width: 64px; height: 64px; font-size: 30px; }
  .b-sugg { left: 8px; right: 8px; }
  .w-search { margin-left: 0; max-width: none; }
  [data-nav="home"] { display: none; }
}

/* =====================================================================
   App Center（左ナビ・おすすめの帯・詳細・インストール）
   ===================================================================== */
.appcenter-app { flex-direction: row; }
.ac-nav { width: 200px; flex: none; padding: 10px 8px; background: #f2f2f2; border-right: 1px solid #e0e0e0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ac-ni { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: 14px "Ubuntu", var(--sans); color: #333; text-align: left; cursor: pointer; }
.ac-ni span { width: 16px; text-align: center; color: #777; }
.ac-ni:hover { background: #e6e6e6; }
.ac-ni.on { background: #fde3d7; color: #b83c10; font-weight: 500; }
.ac-ni.on span { color: inherit; }
.ac-badge-n { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font: 700 11px/18px "Ubuntu", sans-serif; font-style: normal; text-align: center; }
.ac-nh { margin: 14px 12px 4px; font-size: 11.5px; color: #999; letter-spacing: .05em; }
.ac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-head { display: flex; justify-content: center; }
.ac-search { width: min(460px, 100%); }
.ac-body h2 { margin: 26px 0 12px; font-size: 16px; }
.ac-body h2 small { font-weight: 400; color: #999; font-size: 12px; margin-left: 6px; }
.ac-h1 { margin: 4px 0 16px; font: 500 22px "Ubuntu", var(--sans); }
.ac-h1 small { color: #999; font-size: 14px; font-weight: 400; margin-left: 6px; }
.ac-card { padding: 14px; align-items: flex-start; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.ac-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-1px); }
.ac-info small { font-size: 11.5px; color: #999; margin-top: 2px; }
.ac-info span { line-height: 1.5; }
.ac-badge.get { color: #fff; background: var(--orange); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.ac-hero-car { position: relative; height: 210px; border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
.ac-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 34px; color: #fff; opacity: 0; transition: opacity .6s; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.25), transparent 45%), linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 40%, #1a0010)); }
.ac-slide.on { opacity: 1; pointer-events: auto; }
.ac-slide h1 { margin: 2px 0 6px; font: 700 30px "Ubuntu", var(--sans); }
.ac-slide p { margin: 0 0 14px; color: rgba(255,255,255,.9); max-width: 460px; line-height: 1.6; font-size: 14px; }
.ac-eyebrow { margin: 0 !important; font: 700 11px var(--mono) !important; letter-spacing: .18em; opacity: .85; }
.ac-slide .ac-open { background: #fff; color: #1d1d1f; }
.ac-icon.huge { width: 120px; height: 120px; border-radius: 28px; font-size: 40px; box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.ac-dots { position: absolute; left: 34px; bottom: 14px; display: flex; gap: 6px; }
.ac-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.ac-dots button.on { background: #fff; width: 20px; border-radius: 4px; }
.ac-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; border-radius: 16px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.22), transparent 50%), linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 40%, #111)); }
.ac-banner .ac-icon.big { box-shadow: 0 8px 22px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.3); }
.ac-banner .ac-svg { background: rgba(255,255,255,.15); padding: 10px; }
.ac-bt h1 { margin: 0; font: 700 26px "Ubuntu", var(--sans); }
.ac-bt p { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.ac-banner .ac-acts { margin-left: auto; align-items: center; }
.ac-banner .ac-un { background: rgba(255,255,255,.18); color: #fff; }
.ac-inst { font-size: 13px; color: rgba(255,255,255,.9); }
.ac-get { position: relative; overflow: hidden; min-width: 120px; }
.ac-get i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.35); transition: width .1s; }
.ac-get span { position: relative; }
.ac-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 0 4px; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; background: #e6e6e6; }
.ac-facts div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; }
.ac-facts small { color: #999; font-size: 11.5px; }
.ac-facts b { font: 500 15px "Ubuntu", var(--sans); }
.ac-list { border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; background: #fff; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eee; cursor: pointer; }
.ac-row:last-child { border-bottom: 0; }
.ac-row:hover { background: #fafafa; }
.ac-row .ac-info { flex: 1; padding: 0; }
.ac-row .ac-acts { margin-left: auto; }
.ac-icon.sm { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
.ac-mini { border: 0; border-radius: 6px; padding: 5px 12px; background: #ececec; font: 13px "Ubuntu", var(--sans); cursor: pointer; }
.ac-mini.red { color: #c01c28; }
.ac-empty { text-align: center; padding: 60px 0; color: #666; }
.ac-big { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #e6f4ea; color: #26a269; font-size: 34px; }
.ac-empty h1 { font: 500 20px "Ubuntu", var(--sans); margin: 0; color: #333; }
body.qs-dark .ac-nav { background: #2c2c2c; border-color: #1c1c1c; }
body.qs-dark .ac-ni { color: #eee; }
body.qs-dark .ac-ni.on { background: #5a3324; color: #ffb38a; }
body.qs-dark .ac-facts div, body.qs-dark .ac-list { background: #303030; border-color: #3a3a3a; }
body.qs-dark .ac-row { border-color: #3a3a3a; }
@media (max-width: 640px) {
  .ac-nav { display: none; }
  .ac-slide { padding: 18px; }
  .ac-icon.huge { display: none; }
  .ac-facts { grid-template-columns: repeat(2, 1fr); }
  .ac-banner .ac-acts { margin-left: 0; }
}
.ac-open { border: 0; border-radius: 8px; padding: 8px 18px; font: 500 14px "Ubuntu", var(--sans); cursor: pointer; background: var(--orange); color: #fff; }
.ac-slide .ac-open { background: #fff; color: #1d1d1f; }
.ac-open:hover { filter: brightness(1.08); }

/* ---------- リリース（テーマ）。壁紙の絵は release.js の WALL_ART ---------- */
#wall-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#wall-art svg { width: 100%; height: 100%; display: block; }
#desktop.custom-wall #wall-art { display: none; }
body.rel-jammy #desktop { background: radial-gradient(70% 80% at 66% 30%, #6d1a4a 0%, transparent 70%), radial-gradient(60% 60% at 10% 100%, #3a0a2e 0%, transparent 70%), linear-gradient(160deg, #2a0020 0%, #12000e 100%); }
body.rel-noble #desktop { background: linear-gradient(140deg, #f26b2f 0%, #d8344d 34%, #6b1146 66%, #1c0016 100%); }
body.rel-lucid #desktop { background: radial-gradient(90% 80% at 60% 40%, #7a2a6a 0%, transparent 70%), linear-gradient(170deg, #4a1340 0%, #2c001e 60%, #1a0012 100%); }
body.rel-warty #desktop { background: radial-gradient(80% 90% at 65% 45%, #9a6a3c 0%, #6b4422 45%, #3a2410 100%); }

/* Warty: GNOME 2 の明るいパネルと、茶色い Human テーマの窓 */
body.rel-warty #topbar { background: linear-gradient(#f3ede2, #dcd0bb); color: #3c2f22; border-bottom: 1px solid #b4a58b; }
body.rel-warty #topbar button:hover { background: rgba(60, 40, 20, .1); }
body.rel-warty #dock { background: rgba(70, 46, 22, .72); }
body.rel-warty .window:not(.dark) .hb { background: linear-gradient(#ecdfc7, #d6c3a2); border-color: #b9a27d; color: #3c2f22; }
body.rel-warty .window:not(.dark):not(.active) .hb { color: #8a7656; }
body.rel-warty .window.dark .hb { background: linear-gradient(#6b5236, #4d3a25); border-color: #3a2b1a; }

/* Lucid: Ambiance の暗い窓枠と、左に引っ越したボタン（閉じる・最小化・最大化の順） */
body.rel-lucid #topbar { background: linear-gradient(#4f4e48, #3c3b37); }
body.rel-lucid .window .hb { background: linear-gradient(#5a5952, #3c3b37); border-color: #2b2a27; color: #dfdbd2; }
body.rel-lucid .window:not(.active) .hb { color: #9a968c; }
body.rel-lucid .hb-btns { right: auto; left: 10px; }
body.rel-lucid .hb-btns .close { order: -1; }
body.rel-lucid .wb { background: rgba(255, 255, 255, .1); }
body.rel-lucid .wb:hover { background: rgba(255, 255, 255, .2); }

/* README などのプレビュー（ポートフォリオの表紙として読ませる） */
.md-prev .md-cmd { color: #f0a070; background: rgba(233, 84, 32, .14); cursor: pointer; border-bottom: 1px dashed rgba(240, 160, 112, .6); }
.md-prev .md-cmd:hover { background: rgba(233, 84, 32, .28); color: #fff; }
.vsc-ed.md-prev { max-width: 860px; }
.md-prev h1 + p { font-size: 15px; color: #ddd; }

/* スマホの補完候補と「止める」ボタン（main.js の drawChips / submit） */
.term-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.term-chips::-webkit-scrollbar { display: none; }
.term-chips .tc { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: 13px var(--mono); white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.term-chips .tc.on { border-color: var(--accent, #E95420); background: rgba(233,84,32,.18); }
.term-chips .tc.sp { color: #e5c07b; }
.term-chips .tc.stop { border-color: #e06c75; color: #e06c75; }
