@charset "UTF-8";
/*//////////////////////////////////
////  rogez digital studio  ////////
////// custom build v1.02 //////////
//////////  2026/08/29  ////////////
////////   rogez.design™    ////////
///////////////////////////////////*
*/

:root {
  /* default profile: Dracula (matches the JS fallback so there's no colour
     flash before design.js sets data-scheme on load) */
  --bg: #282a36;
  --bg-panel: #2f3140;
  --bg-panel-2: #343650;
  --bg-row-hover: #3f4160;
  --border: #44475a;
  --border-dim: #383a4d;
  --border-bright: #6272a4;
  --fg: #cbccc7;
  --fg-dim: #9a9cb8;
  --fg-faint: #6272a4;
  --fg-bright: #f8f8f2;
  --accent: #ff79c6;
  --accent-2: #bd93f9;
  --ok: #50fa7b;
  --danger: #ff5555;
  --glow: rgba(255, 121, 198, 0.16);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Consolas", monospace;
}

/* ---- colour schemes (Konsole/GNOME-Terminal style profiles) ---- */

:root[data-scheme="amber"] {
  --bg: #0b0904; --bg-panel: #120d07; --bg-panel-2: #1a130a; --bg-row-hover: #211708;
  --border: #4a3612; --border-dim: #2a1f0d; --border-bright: #8a641f;
  --fg: #d1a35e; --fg-dim: #7c5f36; --fg-faint: #56422a; --fg-bright: #ffd685;
  --accent: #ff9d3e; --accent-2: #ffc57a; --ok: #7fd08f; --danger: #ff7a6b;
  --glow: rgba(255, 157, 62, 0.16);
}

:root[data-scheme="phosphor"] {
  --bg: #040a04; --bg-panel: #0a140a; --bg-panel-2: #0f1f0f; --bg-row-hover: #132a13;
  --border: #1f4a1f; --border-dim: #122a12; --border-bright: #3f8a3f;
  --fg: #4fd167; --fg-dim: #328f47; --fg-faint: #1f4a2a; --fg-bright: #9dffb2;
  --accent: #39ff6a; --accent-2: #7dffa0; --ok: #7fd08f; --danger: #ff7a6b;
  --glow: rgba(57, 255, 106, 0.16);
}

:root[data-scheme="solarized"] {
  --bg: #002b36; --bg-panel: #04313d; --bg-panel-2: #073642; --bg-row-hover: #0a4655;
  --border: #0a4655; --border-dim: #073642; --border-bright: #586e75;
  --fg: #839496; --fg-dim: #5f7679; --fg-faint: #3c545a; --fg-bright: #93a1a1;
  --accent: #b58900; --accent-2: #cb4b16; --ok: #859900; --danger: #dc322f;
  --glow: rgba(181, 137, 0, 0.14);
}

:root[data-scheme="dracula"] {
  --bg: #282a36; --bg-panel: #2f3140; --bg-panel-2: #343650; --bg-row-hover: #3f4160;
  --border: #44475a; --border-dim: #383a4d; --border-bright: #6272a4;
  --fg: #cbccc7; --fg-dim: #9a9cb8; --fg-faint: #6272a4; --fg-bright: #f8f8f2;
  --accent: #ff79c6; --accent-2: #bd93f9; --ok: #50fa7b; --danger: #ff5555;
  --glow: rgba(255, 121, 198, 0.16);
}

:root[data-scheme="nord"] {
  --bg: #2e3440; --bg-panel: #333a48; --bg-panel-2: #3b4252; --bg-row-hover: #434c5e;
  --border: #4c566a; --border-dim: #3b4252; --border-bright: #67748c;
  --fg: #d8dee9; --fg-dim: #9aa5b8; --fg-faint: #4c566a; --fg-bright: #eceff4;
  --accent: #88c0d0; --accent-2: #81a1c1; --ok: #a3be8c; --danger: #bf616a;
  --glow: rgba(136, 192, 208, 0.16);
}

:root[data-scheme="linux"] {
  --bg: #000000; --bg-panel: #0c0c0c; --bg-panel-2: #141414; --bg-row-hover: #1e1e1e;
  --border: #3a3a3a; --border-dim: #232323; --border-bright: #7a7a7a;
  --fg: #aaaaaa; --fg-dim: #7d7d7d; --fg-faint: #4a4a4a; --fg-bright: #ffffff;
  --accent: #55ff55; --accent-2: #55ffff; --ok: #55ff55; --danger: #ff5555;
  --glow: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 20px 6vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.15s ease, color 0.15s ease;
}

/* faint vignette + scanlines, purely decorative */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.35) 3px
    );
  opacity: 0.05;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

.wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(1400px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.terminal {
  width: min(720px, 92vw);
  min-width: 360px;
  max-width: min(1400px, 96vw);
  min-height: 280px;
  max-height: 88vh;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--border-dim), 0 30px 70px -20px rgba(0,0,0,0.8), 0 0 90px -30px var(--glow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* ---- Linux/GTK style title bar ---- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.bar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.term-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.bar-title {
  font-size: 12.5px;
  color: var(--fg);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-title .sep { color: var(--fg-faint); }

.bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.scheme-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px 2px 7px;
  background: var(--bg-panel);
  cursor: pointer;
}

.scheme-ico {
  color: var(--fg-dim);
  font-size: 11px;
  line-height: 1;
}

#scheme-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 2px 14px 2px 2px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-faint) 50%), linear-gradient(135deg, var(--fg-faint) 50%, transparent 50%);
  background-position: right 4px top 55%, right 0.5px top 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

#scheme-select:hover, #scheme-select:focus-visible {
  color: var(--fg-bright);
}

#scheme-select option {
  background: var(--bg-panel);
  color: var(--fg);
}

.dims {
  font-size: 11px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  min-width: 3.6em;
  text-align: right;
}

/* ---- body ---- */

.body-pane {
  padding: 22px 22px 20px;
  font-size: 14px;
  line-height: 1.7;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.boot {
  color: var(--fg-dim);
  margin: 0 0 4px;
}

.boot .ok { color: var(--ok); }

.prompt-line {
  margin: 0 0 18px;
  color: var(--fg);
}

.prompt {
  color: var(--accent-2);
  font-weight: 700;
}

.prompt .path { color: var(--fg-bright); }

h1 {
  all: unset;
  display: block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-bright);
  text-wrap: balance;
  margin: 0 0 2px;
}

/* static (non-blinking) block cursor */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
}

h1 .cursor {
  width: 0.5em;
  height: 1em;
  vertical-align: -0.15em;
}

.subhead {
  color: var(--fg-dim);
  font-size: 12.5px;
  margin: 0 0 20px;
}

.section-label {
  color: var(--fg-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}

ul.tree {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

ul.tree ul.sub {
  list-style: none;
  margin: 2px 0 4px 0;
  padding: 0 0 0 0;
}

ul.tree li { position: relative; }

ul.tree > li:not(:last-child)::before { content: "├── "; }
ul.tree > li:last-child::before { content: "└── "; }
ul.tree > li::before {
  color: var(--fg-faint);
  font-weight: 400;
}

ul.tree > li.has-sub:not(:last-child)::before { content: "├── "; }

ul.sub li::before { content: "│    ├── "; color: var(--fg-faint); }
ul.sub li:last-child::before { content: "│    └── "; color: var(--fg-faint); }
li.no-branch ul.sub li::before { content: "     ├── "; }
li.no-branch ul.sub li:last-child::before { content: "     └── "; }

ul.tree li::before {
  display: inline-block;
  white-space: pre;
}

a.row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  padding: 3px 8px 3px 6px;
  margin: 1px 0;
  border-radius: 4px;
  color: inherit;
  outline-offset: 2px;
}

a.row:hover, a.row:focus-visible {
  background: var(--bg-row-hover);
}

a.row:focus-visible {
  outline: 2px solid var(--accent);
}

a.row .cmd {
  color: var(--fg-bright);
  font-weight: 700;
}

a.row:hover .cmd, a.row:focus-visible .cmd {
  color: var(--accent);
}

a.row .desc {
  color: var(--fg-dim);
  font-size: 12.5px;
}

a.row .go {
  color: var(--fg-faint);
  font-size: 12px;
  margin-left: auto;
  padding-left: 10px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

a.row:hover .go, a.row:focus-visible .go {
  opacity: 1;
  color: var(--accent);
}

.sub a.row .cmd { font-weight: 500; color: var(--fg); }
.sub a.row:hover .cmd, .sub a.row:focus-visible .cmd { color: var(--accent-2); }
.sub a.row .desc { display: none; }

.end-prompt {
  color: var(--accent-2);
  font-weight: 700;
}

.statusline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
  color: var(--fg-faint);
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  width: min(720px, 92vw);
  max-width: min(1400px, 96vw);
}

.statusline span strong { color: var(--fg-dim); font-weight: 500; }

/* ---- resize handle (bottom-right grip, Linux window-manager style) ---- */

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--border-bright) 42% 48%, transparent 48% 58%, var(--border-bright) 58% 64%, transparent 64% 74%, var(--border-bright) 74% 80%, transparent 80%);
  opacity: 0.6;
}

.resize-handle:hover { opacity: 1; }

.terminal.is-resizing { user-select: none; }

/* offscreen probe used to measure monospace character-cell size in JS */
#char-probe {
  position: fixed;
  visibility: hidden;
  white-space: pre;
  top: -999px;
  left: -999px;
  font-family: var(--mono);
  font-size: 14px;
}

@media (max-width: 520px) {
  .body-pane { padding: 18px 16px; font-size: 13.5px; }
  a.row .desc { display: none; }
  .sub { padding-left: 4px !important; }
  .bar-title { max-width: 40vw; }
  .scheme-ico { display: none; }
  .resize-handle { display: none; }
}
