*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* wallust palette from your config */
  --wb-bg:       rgba(31,31,31,0.55);
  --wb-fg:       #D7C1BE;
  --wb-active:   rgba(120,79,120,0.6);   /* color12 accent */
  --wb-hover:    rgba(255,255,255,0.08);
  --wb-border:   rgba(255,255,255,0.1);

  /* terminal */
  --term-bg:     rgba(15,15,15,0.92);
  --term-fg:     #D7C1BE;
  --term-dim:    rgba(215,193,190,0.4);
  --term-magenta:#BD9E99;
  --term-blue:   #8B9EC9;

  --font-ui:   'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  background-color: #000;
  user-select: none;
  background: #0a0a0a;
}

/* ── Wallpaper ── */
.wallpaper {
  position: fixed; inset: 0;
  background-color: #000;
  background-image: url('wallpaper.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ══════════════════════════════
   WAYBAR  — floating top bar
   ══════════════════════════════ */
.waybar {
  position: fixed;
  top: 6px; left: 10px; right: 10px;
  height: 34px;
  background: rgba(18,18,20,0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  color: var(--wb-fg);
  font-size: 12px;
  gap: 8px;
}

.waybar-left,
.waybar-right  { display: flex; align-items: center; gap: 6px; flex: 1; }
.waybar-right  { justify-content: flex-end; }
.waybar-center { display: flex; align-items: center; justify-content: center; }

/* ── workspaces ── */
.wb-workspaces { display: flex; align-items: center; gap: 3px; }

.ws {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: rgba(215,193,190,0.3);
  font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  transition: all 0.2s ease;
  letter-spacing: 0;
}
.ws.active {
  width: 28px;
  background: rgba(189,158,153,0.25);
  color: #D7C1BE;
}
.ws:hover { background: rgba(255,255,255,0.12); color: #D7C1BE; }

/* ── separator ── */
.wb-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ── mpris ── */
.wb-mpris {
  display: flex; align-items: center; gap: 5px;
  color: rgba(215,193,190,0.5);
  font-size: 11px;
  max-width: 180px;
}
.mpris-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 150px;
}

/* ── clock ── */
.wb-clock {
  font-size: 12px;
  color: var(--wb-fg);
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0 4px;
}

/* ── right group (status chips) ── */
.wb-group {
  display: flex; align-items: center; gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 2px 4px;
}

.wb-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  color: rgba(215,193,190,0.7);
  cursor: default;
  transition: background 0.15s;
}
.wb-chip:hover { background: rgba(255,255,255,0.08); color: #D7C1BE; }
.wb-chip svg   { flex-shrink: 0; opacity: 0.8; }
.wb-chip span  { font-variant-numeric: tabular-nums; }

/* ── power ── */
.wb-power {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px;
  border: none; background: rgba(255,255,255,0.05);
  color: rgba(215,193,190,0.6);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.wb-power:hover { background: rgba(255,80,80,0.2); color: #ff8080; }

/* ══════════════════════════════
   DESKTOP ICONS
   ══════════════════════════════ */
.desktop-icons {
  position: fixed;
  top: 52px; right: 16px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 10;
}

.icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: default; width: 68px; padding: 4px;
  border-radius: 6px; transition: background 0.1s;
}
.icon:hover  { background: rgba(255,255,255,0.1); }
.icon:active { background: rgba(255,255,255,0.2); }

.icon-img { width: 48px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.icon-img svg { width: 100%; height: 100%; }

.icon-label {
  font-size: 10px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  text-align: center; line-height: 1.3;
  max-width: 66px; word-break: break-all;
}

/* ══════════════════════════════
   TERMINAL WINDOW
   ══════════════════════════════ */
.term-window {
  position: fixed;
  top: 50px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 480px;
  min-width: 420px; min-height: 300px;
  background: var(--term-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  overflow: visible;  /* allow resize handle to sit at corner */
  display: flex; flex-direction: column;
  z-index: 100;
  border: 0.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.75);
}

/* clip content but not the resize handle */
.term-titlebar,
.term-body {
  overflow: hidden;
}
.term-titlebar { border-radius: 10px 10px 0 0; cursor: grab; }
.term-body     { border-radius: 0 0 10px 10px; }
/* on mobile, increase touch target for resize grip */
@media (max-width: 800px) {
  .term-resize-handle { width: 40px; height: 40px; bottom: -10px; right: -10px; }
}

/* resize grip — bottom-right corner, positioned on window */
.term-resize-handle {
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  cursor: se-resize;
  z-index: 200;
}
.term-resize-handle::after {
  content: '';
  position: absolute;
  bottom: 5px; right: 5px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent rgba(255,255,255,0.25) transparent;
}

/* ── Title bar ── */
.term-titlebar {
  background: rgba(30,30,30,0.95);
  height: 34px; flex-shrink: 0;
  display: flex; align-items: center; padding: 0 12px;
  position: relative;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  cursor: default;
}

.traffic-lights { display: flex; gap: 8px; align-items: center; }

.tl {
  width: 12px; height: 12px; border-radius: 50%;
  cursor: pointer; transition: filter 0.1s;
}
.tl:hover      { filter: brightness(1.2); }
.tl-close      { background: #ff5f57; }
.tl-min        { background: #febc2e; }
.tl-max        { background: #28c840; }

.term-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(215,193,190,0.35);
  pointer-events: none; font-family: var(--font-ui);
}

/* ── Term body ── */
.term-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px 18px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
  color: var(--term-fg); cursor: text;
}

.term-body::-webkit-scrollbar       { width: 4px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

#output { white-space: pre-wrap; word-break: break-word; }

.line         { display: block; }
.line-system  { color: var(--term-dim); }
.line-ok      { color: var(--term-fg); }
.line-error   { color: var(--term-fg); text-decoration: underline; }
.line-blank   { display: block; height: 0.5em; }

/* ── Refined prompt — two-line layout ── */
.input-block     { display: flex; flex-direction: column; margin-top: 4px; }
.ps1-line        { display: flex; align-items: center; gap: 6px; }
.ps1-arrow-line  { display: flex; align-items: center; gap: 0; }

/* top line: path + branch (printed in output as a separate line) */
.ps1-path     { color: var(--term-blue); font-weight: 500; }
.ps1-branch   { color: var(--term-dim); font-size: 12px; }
.ps1-arrow    { color: var(--term-magenta); white-space: pre; }
.typed        { color: var(--term-fg); white-space: pre; }

.cursor {
  display: inline-block; width: 8px; height: 1em;
  background: var(--term-fg); vertical-align: middle;
  animation: blink 1.1s step-end infinite; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ══════════════════════════════
   MOBILE INPUT & RESPONSIVE
   ══════════════════════════════ */
.mobile-input {
  position: absolute;
  opacity: 0;
  top: -9999px;
  left: -9999px;
  pointer-events: none;
}
@media (max-width: 800px) {
  .term-window { 
    width: 92vw !important; 
    height: 80vh !important; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 10px !important; 
  }
  .term-titlebar { border-radius: 10px 10px 0 0 !important; }
  .term-body { border-radius: 0 0 10px 10px !important; }
  .desktop-icons { 
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 30px;
    padding: 60px 20px;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 100%;
    flex-direction: row;
  }
  .icon { flex: 0 0 80px; margin: 0; }
  .waybar { 
    height: 24px; 
    top: 0; left: 0; right: 0; width: 100%;
    margin: 0;
    padding: 0 12px;
    font-size: 11px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    justify-content: space-between;
  }
  .waybar-left { display: none; }
  .waybar-center { position: static; transform: none; display: flex; align-items: center; }
  .waybar-right { display: flex; align-items: center; }
  .wb-group { background: transparent; box-shadow: none; padding: 0; }
  .wb-chip { background: transparent; padding: 0 4px; font-weight: 600; }
  .wb-workspaces, .wb-sep, .wb-mpris { display: none; }
  .traffic-lights { padding-left: 8px; }
  .tl { width: 14px; height: 14px; margin-right: 12px; }
  .picker-overlay { align-items: flex-end; }
  .picker-modal { 
    width: 100vw; 
    border-radius: 20px 20px 0 0; 
    padding: 30px 20px 50px 20px; 
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .picker-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .reg-modal { width: 90%; border-radius: 12px; }
}

/* ══════════════════════════════
   WALLPAPER PICKER
   ══════════════════════════════ */

/* wallpaper transition */
.wallpaper {
  transition: opacity 0.5s ease;
}
.wallpaper.fading { opacity: 0; }

/* overlay backdrop */
.picker-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.picker-overlay.open { display: flex; }

/* floating window */
.picker-window {
  width: min(820px, 94vw);
  max-height: 80vh;
  background: rgba(16,16,18,0.92);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  animation: pickerIn 0.2s ease;
}

@keyframes pickerIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* title bar */
.picker-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.picker-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(215,193,190,0.6);
  letter-spacing: 0.04em;
}

.picker-close {
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.5);
  width: 24px; height: 24px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.picker-close:hover { background: rgba(255,80,80,0.25); color: #ff8080; }

/* wallpaper grid */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.picker-grid::-webkit-scrollbar       { width: 4px; }
.picker-grid::-webkit-scrollbar-track { background: transparent; }
.picker-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* individual wallpaper card */
.wp-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
  background: rgba(255,255,255,0.04);
}

.wp-card:hover { transform: scale(1.03); border-color: rgba(255,255,255,0.3); }
.wp-card.active { border-color: #BD9E99; }

.wp-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.15s;
}
.wp-card:hover img { filter: brightness(1.1); }

.wp-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.15s;
}
.wp-card:hover .wp-label { opacity: 1; }

.wp-active-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #BD9E99;
  display: none;
  align-items: center; justify-content: center;
  font-size: 10px;
}
.wp-card.active .wp-active-badge { display: flex; }

/* ══════════════════════════════
   NEOVIM WINDOW
   ══════════════════════════════ */
.nvim-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.nvim-overlay.open { display: flex; }

.nvim-window {
  width: min(760px, 94vw);
  height: min(500px, 85vh);
  background: #1a1b26;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  animation: pickerIn 0.18s ease;
  font-family: var(--font-mono);
}

.nvim-titlebar {
  background: #16161e;
  height: 34px; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 12px; gap: 10px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  cursor: default;
}

.nvim-title {
  flex: 1; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

.nvim-mode {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(166,227,161,0.15);
  color: #a6e3a1;
}
.nvim-mode.insert {
  background: rgba(137,180,250,0.15);
  color: #89b4fa;
}
.nvim-mode.visual {
  background: rgba(203,166,247,0.15);
  color: #cba6f7;
}

/* editor area */
.nvim-body {
  flex: 1; display: flex; overflow: hidden;
  background: #1a1b26;
}

.nvim-gutter {
  width: 44px; flex-shrink: 0;
  padding: 10px 0;
  background: #1a1b26;
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; line-height: 1.7;
  color: #3d3d5c;
  text-align: right;
  padding-right: 10px;
  overflow: hidden;
  user-select: none;
}

.nvim-editor {
  flex: 1;
  background: #1a1b26;
  color: #cdd6f4;
  border: none; outline: none; resize: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7;
  caret-color: #cdd6f4;
  tab-size: 2;
}

/* status line */
.nvim-statusline {
  height: 22px; flex-shrink: 0;
  background: #16161e;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  border-top: 0.5px solid rgba(255,255,255,0.07);
}
.nvim-sl-left  { color: rgba(255,255,255,0.4); }
.nvim-sl-right { color: rgba(255,255,255,0.3); font-variant-numeric: tabular-nums; }

/* cmdline (shows :w messages) */
.nvim-cmdline {
  height: 20px; flex-shrink: 0;
  background: #1a1b26;
  padding: 0 12px;
  font-size: 12px; line-height: 20px;
  color: #a6e3a1;
  border-top: 0.5px solid rgba(255,255,255,0.04);
  min-height: 20px;
}


/* ══════════════════════════════
   IN-TERMINAL NEOVIM
   ══════════════════════════════ */
.nvim-interm {
  display: flex;
  flex-direction: column;
  /* fill the term-body completely — term-body sets overflow:hidden when nvim opens via JS */
  flex: 1;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  background: #1e1e2e;
  color: #cdd6f4;
  overflow: hidden;
}

/* no fancy header — real nvim has none */
.nvim-header { display: none; }

.nvim-editorwrap {
  display: flex;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #1e1e2e;
}
.nvim-editorwrap::-webkit-scrollbar       { width: 4px; }
.nvim-editorwrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* line numbers */
.nvim-gutter {
  width: 42px;
  flex-shrink: 0;
  padding: 6px 8px 6px 0;
  text-align: right;
  color: #45475a;
  line-height: 1.65;
  user-select: none;
  background: #1e1e2e;
  font-size: 13px;
  white-space: pre;
}

/* content */
.nvim-lines {
  flex: 1;
  padding: 6px 10px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
  color: #cdd6f4;
  font-size: 13px;
}

/* normal-mode block cursor: sits over the char using mix-blend-mode */
.nvim-cur {
  position: relative;
  display: inline;
}
.nvim-cur-block {
  display: inline-block;
  position: relative;
  color: #cdd6f4;
}
.nvim-cur-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1ch; height: 100%;
  background: #cdd6f4;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* insert-mode thin beam */
.nvim-cur-insert {
  display: inline-block;
  width: 0;
  border-left: 2px solid #cdd6f4;
  height: 1.2em;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* statusline */
.nvim-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  height: 20px;
  background: #313244;
  font-size: 12px;
  color: #cdd6f4;
  flex-shrink: 0;
  line-height: 20px;
  font-weight: 500;
}
.nvim-sl-right { color: #a6adc8; font-variant-numeric: tabular-nums; }

/* cmdline — bottom left, exactly like nvim */
.nvim-cmdline {
  padding: 0 10px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: #cdd6f4;
  background: #1e1e2e;
  flex-shrink: 0;
  white-space: pre;
}

/* mode indicator colours in cmdline */
.nvim-cmdline.mode-insert { color: #a6e3a1; }
.nvim-cmdline.mode-visual { color: #cba6f7; }

/* hide old modebadge */
.nvim-modebadge { display: none !important; }


/* ══════════════════════════════
   REGISTER MODAL — system dialog
   ══════════════════════════════ */
.reg-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.reg-overlay.open { display: flex; }

/* looks like a native app window — same glass as terminal */
.reg-modal {
  position: relative;
  width: min(380px, 92vw);
  background: rgba(18,18,20,0.96);
  backdrop-filter: blur(24px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.75),
    0 0 0 0.5px rgba(255,255,255,0.04);
  animation: regIn 0.18s ease;
}

@keyframes regIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* title bar — matches terminal */
.reg-titlebar {
  background: rgba(30,30,32,0.98);
  height: 34px; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 12px; gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  position: relative;
  cursor: default;
}
.reg-tl-row { display: flex; gap: 8px; align-items: center; }
.reg-tl {
  width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
}
.reg-tl-close { background: #ff5f57; }
.reg-tl-min   { background: #febc2e; opacity: 0.4; cursor: default; }
.reg-tl-max   { background: #28c840; opacity: 0.4; cursor: default; }
.reg-wintitle {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,0.3);
  font-family: var(--font-ui); pointer-events: none;
}

/* body */
.reg-body {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 16px;
}

.reg-prompt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.reg-prompt strong { color: rgba(255,255,255,0.75); font-weight: 500; }

/* input row — same style as terminal input */
.reg-field {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  transition: border-color 0.15s;
}
.reg-field:focus-within { border-color: rgba(255,255,255,0.45); }

.reg-prompt-sym {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  user-select: none;
}

.reg-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 4px 0;
  font-size: 13px; font-family: var(--font-mono);
  color: #fff; caret-color: #fff;
}
.reg-input::placeholder { color: rgba(255,255,255,0.2); }

/* button row */
.reg-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 4px;
}

.reg-btn-cancel {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 16px; border-radius: 6px;
  cursor: pointer; transition: background 0.15s;
}
.reg-btn-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }

.reg-btn-ok {
  background: rgba(255,255,255,0.9);
  border: none; color: #111;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 6px 20px; border-radius: 6px;
  cursor: pointer; transition: opacity 0.15s;
}
.reg-btn-ok:hover    { opacity: 0.85; }
.reg-btn-ok:disabled { opacity: 0.3; cursor: not-allowed; }

/* status line below input */
.reg-msg {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.35); min-height: 16px;
  letter-spacing: 0.02em;
}
.reg-msg.ok  { color: rgba(166,227,161,0.8); }
.reg-msg.err { color: rgba(243,139,168,0.8); }

/* success state */
.reg-success {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 6px;
  animation: regIn 0.18s ease;
}
.reg-success p     { color: rgba(255,255,255,0.75); font-family: var(--font-mono); font-size: 13px; margin: 0; }
.reg-success small { color: rgba(255,255,255,0.3);  font-family: var(--font-mono); font-size: 11px; }
