/* ===================================================
   TOKENS
   =================================================== */
:root {
  --bg-0: #030712;
  --bg-1: #0a0f1a;
  --bg-2: #111827;
  --bg-3: #1a2234;
  --bg-4: #243044;

  --border-0: rgba(34,211,238,0.07);
  --border-1: rgba(34,211,238,0.12);
  --border-2: rgba(34,211,238,0.14);
  --border-3: rgba(34,211,238,0.22);

  --t1: #e2e8f0;
  --t2: #b0bfd0;
  --t3: #94a3b8;
  --t4: #7c8da0;
  --t5: #5e7085;

  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-dim: rgba(34,211,238,0.08);
  --cyan-glow: rgba(34,211,238,0.12);
  --cyan-glow2: rgba(34,211,238,0.06);

  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.08);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.08);
  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,0.08);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.08);

  --mono: 'Space Mono', monospace;
  --sans: 'Outfit', system-ui, sans-serif;

  --r: 6px;
  --r-lg: 10px;
}

/* ===================================================
   RESET
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-0);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan-glow); color: var(--cyan-bright); }

/* Scanlines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 9998;
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glowPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.7; } }
@keyframes typing { from { width: 0; } to { width: 100%; } }

.anim { animation: fadeIn 0.35s ease forwards; }
.a1 { animation-delay: 0.05s; opacity: 0; }
.a2 { animation-delay: 0.1s; opacity: 0; }
.a3 { animation-delay: 0.15s; opacity: 0; }
.a4 { animation-delay: 0.2s; opacity: 0; }

/* ===================================================
   CURSOR
   =================================================== */
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* ===================================================
   WINDOW CHROME
   =================================================== */
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #eab308; }
.dot-g { background: #22c55e; }
.win-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--t4);
}

/* ===================================================
   TERMINAL SYNTAX
   =================================================== */
.prompt { color: var(--cyan); }
.cmd { color: var(--t2); }
.flag { color: var(--purple); }
.str { color: var(--green); }
.val { color: var(--amber); }
.dim { color: var(--t5); }
.err { color: var(--red); }

/* ===================================================
   BUTTONS
   =================================================== */
.btn-term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-term:hover {
  background: var(--cyan-glow);
  border-color: var(--border-3);
  box-shadow: 0 0 20px var(--cyan-glow2);
}
.btn-term kbd {
  padding: 1px 7px;
  background: rgba(34,211,238,0.1);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  font-size: 10px;
}

.btn-ghost-t {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: var(--r);
  color: var(--t3);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost-t:hover { border-color: var(--border-2); color: var(--t2); background: rgba(255,255,255,0.02); }

.btn-danger-t {
  padding: 8px 16px;
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.15);
  border-radius: var(--r);
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger-t:hover { background: rgba(248,113,113,0.15); box-shadow: 0 0 16px rgba(248,113,113,0.1); }

/* ===================================================
   PILLS & LEDS
   =================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-lock { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--border-1); }
.pill-pub { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.1); }
.pill-off { background: rgba(255,255,255,0.03); color: var(--t4); border: 1px solid rgba(255,255,255,0.06); }

.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.led-on { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.led-off { background: var(--t5); }

/* ===================================================
   FORM FIELDS
   =================================================== */
.field-t label {
  display: block;
  font-size: 11px;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.field-t input, .field-t select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t1);
  outline: none;
  transition: all 0.2s;
}
.field-t input:focus, .field-t select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow2), 0 0 24px var(--cyan-glow2);
}
.field-t input::placeholder { color: var(--t5); }
.field-t select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field-t .help { font-size: 10px; color: var(--t5); margin-top: 4px; }

/* ===================================================
   ICON BUTTONS
   =================================================== */
.ibtn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--t4);
  cursor: pointer;
  transition: all 0.12s;
}
.ibtn:hover { background: rgba(255,255,255,0.04); border-color: var(--border-1); color: var(--t2); }
.ibtn.dng:hover { background: var(--red-dim); border-color: rgba(248,113,113,0.15); color: var(--red); }

/* ===================================================
   GATE SCREEN
   =================================================== */
.s-gate {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.s-gate .orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
  background: rgba(34,211,238,0.06);
  top: 25%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.gate-win {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 16px;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.gate-body {
  padding: 24px 22px;
}
.gate-line {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.8;
}
.gate-ascii {
  font-size: 9px;
  line-height: 1.2;
  color: var(--cyan);
  opacity: 0.4;
  margin: 12px 0;
  letter-spacing: 0.04em;
}
.gate-info {
  padding: 12px 0;
  border-top: 1px solid var(--border-0);
  border-bottom: 1px solid var(--border-0);
  margin: 8px 0 16px;
  font-size: 11px;
  line-height: 2;
}
.gate-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.gate-input-row input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--t1);
  outline: none;
  caret-color: var(--cyan);
}
.gate-input-row input::placeholder { color: var(--t5); }

/* ===================================================
   LOGIN SCREEN
   =================================================== */
.s-login {
  align-items: center;
  justify-content: center;
}
.login-win {
  width: 100%;
  max-width: 400px;
  margin: 0 16px;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.login-body {
  padding: 24px 22px;
}
.login-body .login-head {
  text-align: center;
  margin-bottom: 28px;
}
.login-body .login-head .logo-ascii {
  font-size: 10px;
  color: var(--cyan);
  opacity: 0.5;
  margin-bottom: 12px;
  line-height: 1.2;
}
.login-body .login-head h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.login-body .login-head p { font-size: 12px; color: var(--t4); }
.login-body .field-t { margin-bottom: 16px; }

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--cyan);
  color: var(--bg-0);
  border: none;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover {
  box-shadow: 0 0 28px var(--cyan-glow);
}

/* ===================================================
   SIDEBAR
   =================================================== */
.s-dash { flex-direction: row !important; }

.side {
  width: 220px;
  border-right: 1px solid var(--border-0);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  background: rgba(255,255,255,0.01);
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
}
.side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 24px;
  text-decoration: none;
}
.side-logo .sl-sq {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}
.side-logo span {
  font-size: 13px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: -0.01em;
}

.side-sec { margin-bottom: 20px; }
.side-sec-t {
  font-size: 9px;
  font-weight: 700;
  color: var(--t5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 10px;
  margin-bottom: 4px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--t4);
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}
.side-link:hover { background: rgba(255,255,255,0.03); color: var(--t2); }
.side-link.act { background: var(--cyan-dim); color: var(--cyan); }
.side-link svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.side-link.act svg { opacity: 1; }
.side-link .cnt {
  margin-left: auto;
  font-size: 10px;
  color: var(--t5);
  background: rgba(255,255,255,0.03);
  padding: 0px 6px;
  border-radius: 3px;
}

.side-spacer { flex: 1; }

.side-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-0);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.12s;
}
.side-user:hover { background: rgba(255,255,255,0.02); }
.side-user .su-av {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.side-user .su-name { font-size: 12px; color: var(--t2); }
.side-user .su-email { font-size: 10px; color: var(--t5); }

/* ===================================================
   MAIN CONTENT
   =================================================== */
.content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  max-height: 100vh;
}

.c-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.c-head h1 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.c-head .c-sub { font-size: 12px; color: var(--t4); margin-top: 4px; font-family: var(--mono); }

/* ===================================================
   STATS
   =================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.stat-c {
  background: var(--bg-1);
  border: 1px solid var(--border-0);
  border-radius: var(--r);
  padding: 14px 16px;
}
.stat-c .sc-label {
  font-size: 10px;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.stat-c .sc-val {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--t1);
}

/* ===================================================
   TABLE
   =================================================== */
.tbl-wrap {
  background: var(--bg-1);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tbl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-0);
}
.search-t {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r);
  width: 220px;
}
.search-t svg { color: var(--t5); flex-shrink: 0; }
.search-t input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t1);
  outline: none;
}
.search-t input::placeholder { color: var(--t5); }
.search-t:focus-within { border-color: var(--cyan); }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.03);
  color: var(--t4);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { background: rgba(255,255,255,0.05); color: var(--t2); border-color: var(--border-1); }
.filter-btn.active { background: var(--cyan-dim); color: var(--cyan); border-color: var(--border-1); }

.ftabs {
  display: flex;
  gap: 2px;
  background: var(--bg-0);
  padding: 2px;
  border-radius: var(--r);
  border: 1px solid var(--border-0);
}
.ftab {
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--t4);
  transition: all 0.12s;
}
.ftab:hover { color: var(--t2); }
.ftab.on { background: var(--bg-3); color: var(--t1); }

table.dt {
  width: 100%;
  border-collapse: collapse;
}
table.dt thead th {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--t5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border-bottom: 1px solid var(--border-0);
}
table.dt thead th:last-child { text-align: right; }
table.dt tbody tr { transition: background 0.1s; }
table.dt tbody tr:hover { background: rgba(255,255,255,0.015); }
table.dt tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border-0); }
table.dt tbody td { padding: 12px 16px; vertical-align: middle; }

.cn { font-size: 13px; color: var(--t1); }
.cn .cn-sub { font-size: 11px; color: var(--t5); margin-top: 2px; }

.slug-c {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-3);
  border: 1px solid var(--border-0);
  border-radius: 4px;
  font-size: 11px;
  color: var(--t3);
}

.dt-date { font-size: 12px; color: var(--t4); }
.dt-acts { display: flex; justify-content: flex-end; gap: 2px; }
.row-off { opacity: 0.35; }

/* ===================================================
   FORM SCREEN
   =================================================== */
.s-form {
  background: var(--bg-0);
}
.form-inner {
  width: 100%;
  padding: 0 0 80px;
}
.form-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t4);
  cursor: pointer;
  margin-bottom: 14px;
  text-decoration: none;
  transition: color 0.12s;
}
.form-back:hover { color: var(--t2); }
.form-h { margin-bottom: 28px; }
.form-h h1 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.form-h p { font-size: 12px; color: var(--t4); margin-top: 4px; }

.form-sec {
  background: var(--bg-1);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  margin-bottom: 14px;
}
.form-sec .fs-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.form-sec .fs-top .fs-prompt { color: var(--cyan); font-size: 12px; }
.form-sec .fs-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.form-sec .fs-desc { font-size: 11px; color: var(--t5); margin-bottom: 20px; }

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fg.single { grid-template-columns: 1fr; }

/* ===================================================
   FORM LAYOUT (2-column)
   =================================================== */
.form-layout {
	display: grid;
	grid-template-columns: 1fr 500px;
	gap: 20px;
	align-items: start;
}
.form-main-col { min-width: 0; }
.form-side-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 28px;
}
.form-foot-side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}
@media (max-width: 900px) {
	.form-layout { grid-template-columns: 1fr; }
	.form-side-col { position: static; }
}

/* ===================================================
   DROPZONE
   =================================================== */
.dzone {
  border: 1.5px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg-0);
}
.dzone:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow2);
}
.dzone.done {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-dim);
}
.dzone .dz-ic {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.dzone .dz-ic svg { color: var(--t4); }
.dzone.done .dz-ic { background: var(--green-dim); border-color: rgba(52,211,153,0.15); }
.dzone.done .dz-ic svg { color: var(--green); }
.dzone h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--t2); margin-bottom: 4px; }
.dzone p { font-size: 11px; color: var(--t5); }
.dzone .browse { color: var(--cyan); }
.dzone .fmeta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--t3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dzone .fmeta .rm { color: var(--red); cursor: pointer; }

/* ===================================================
   TOGGLE
   =================================================== */
.tgl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tgl-info .tgl-l { font-size: 13px; color: var(--t2); }
.tgl-info .tgl-d { font-size: 10px; color: var(--t5); margin-top: 2px; }
.tgl {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.tgl input { display: none; }
.tgl .tk {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 11px;
  border: 1px solid var(--border-1);
  transition: all 0.25s;
}
.tgl .tk::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--t4);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.25s;
}
.tgl input:checked + .tk { background: rgba(34,211,238,0.15); border-color: var(--cyan); }
.tgl input:checked + .tk::after { transform: translateX(18px); background: var(--cyan); }

.pw-col {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.pw-col.open { max-height: 120px; opacity: 1; }

/* ===================================================
   SHARE BLOCK
   =================================================== */
.share-blk {
  background: var(--bg-0);
  border: 1px solid var(--border-0);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 12px;
}
.share-blk .sb-t {
  font-size: 9px;
  font-weight: 700;
  color: var(--t5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.sh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.sh-row:first-of-type { border-bottom: 1px solid var(--border-0); padding-bottom: 8px; margin-bottom: 4px; }
.sh-row .sh-type { font-size: 9px; font-weight: 700; color: var(--t5); text-transform: uppercase; letter-spacing: 0.06em; width: 44px; flex-shrink: 0; }
.sh-row .sh-url { font-size: 11px; color: var(--t4); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row .sh-copy {
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t3);
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}
.sh-row .sh-copy:hover { background: var(--cyan-dim); border-color: var(--border-2); color: var(--cyan); }

.form-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
}

/* ===================================================
   VIEWER
   =================================================== */
.s-view { background: var(--bg-2); }
.view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 44px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
}
.view-bar .vb-t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--t2);
}
.view-bar .vb-pill {
  padding: 2px 8px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.view-bar .vb-acts { display: flex; gap: 6px; }

.view-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.view-mock {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16/9;
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--cyan-glow2);
}
.view-mock .vm-ascii {
  font-size: 10px;
  color: var(--cyan);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1.2;
  text-align: center;
}
.view-mock h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 4px;
}
.view-mock p { font-size: 12px; color: var(--t5); }

/* ===================================================
   MODAL
   =================================================== */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-bg.open { display: flex; }
.modal-c {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.modal-c .m-ic {
  width: 40px;
  height: 40px;
  background: var(--red-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.modal-c .m-ic svg { color: var(--red); }
.modal-c h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.modal-c p { font-size: 12px; color: var(--t3); margin-bottom: 20px; line-height: 1.7; }
.modal-c p strong { color: var(--t1); }
.m-acts { display: flex; gap: 8px; justify-content: flex-end; }
.del-form-inline {
	display: inline;
}

/* ===================================================
   FLASH MESSAGES
   =================================================== */
.flash {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flash-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 12px;
  animation: fadeIn 0.3s ease forwards;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.flash-msg.success {
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.15);
  color: var(--green);
}
.flash-msg.error {
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.15);
  color: var(--red);
}
.flash-success {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--green-dim);
	border: 1px solid rgba(52,211,153,0.15);
	border-radius: var(--r);
	color: var(--green);
	font-size: 12px;
	margin-bottom: 16px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 20px; }
  .fg { grid-template-columns: 1fr; }
}
