/* =====================================================================
   Mixie AI — Dark theme, swoosh-orange accent
   ===================================================================== */

:root {
  --bg:           #07080d;
  --bg-2:         #0d0f17;
  --surface:      #11141f;
  --surface-2:    #161a27;
  --border:       #1f2434;
  --border-soft:  #161a27;
  --text:         #e8ebf3;
  --text-dim:     #8a92a8;
  --text-faint:   #5b6379;

  --accent:       #ff8500;
  --accent-warm:  #ffaa1a;
  --accent-bright:#ffc700;
  --accent-grad:  linear-gradient(135deg, #ff5e00 0%, #ff8500 35%, #ffaa1a 65%, #ffc700 100%);

  --ok:           #4ade80;
  --warn:         #f59e0b;
  --err:          #ef4444;

  --radius:       14px;
  --radius-sm:    8px;
  --shadow-1:     0 1px 0 rgba(255,255,255,0.03), 0 8px 24px rgba(0,0,0,0.45);
  --shadow-glow:  0 0 0 1px rgba(255,133,0,0.35), 0 8px 32px rgba(255,133,0,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255,133,0,0.08), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(255,199,0,0.05), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter",
               "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

.app { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================ TOPBAR ============================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,15,23,0.6);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; }
.topbar-meta { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.chip-success { color: var(--ok); }
.chip .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 6px;
  box-shadow: 0 0 10px var(--ok);
}
.version { font-size: 11px; color: var(--text-faint); margin-right: 4px; }
.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 12px;
}
#user-name { color: var(--text-dim); }
.user-pill button {
  background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 999px;
  padding: 3px 10px; font-size: 11px; cursor: pointer;
  transition: background 120ms;
}
.user-pill button:hover { background: var(--surface-2); border-color: rgba(255,133,0,0.4); }

/* ============================ LAYOUT ============================== */
.layout { display: grid; grid-template-columns: 280px 1fr; flex: 1; min-height: 0; }

/* ============================ SIDEBAR ============================= */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 100%;
}
.sidebar-title {
  font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint);
  padding: 0 8px;
}
.catalog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.catalog li {
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, transform 120ms;
}
.catalog li:hover { background: var(--surface); }
.catalog li.active {
  background: linear-gradient(180deg, rgba(255,133,0,0.10), rgba(255,133,0,0.02));
  border-color: rgba(255,133,0,0.35);
}
.catalog .swatch {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent-grad);
  flex: 0 0 18px;
  box-shadow: 0 0 12px rgba(255,133,0,0.35);
}
.catalog .name { font-weight: 600; font-size: 13.5px; }
.catalog .cat { font-size: 11px; color: var(--text-faint); }
.catalog .meta { display: flex; flex-direction: column; }

.sidebar-foot {
  margin-top: auto; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 6px;
}
.meta-row { display: flex; justify-content: space-between; }
.ok { color: var(--ok); }

/* ============================ WORKSPACE =========================== */
.workspace { display: flex; flex-direction: column; min-height: 0; }

/* ----- Hero (replaces the old workspace-header) ----- */
.workspace-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,133,0,0.06), rgba(255,133,0,0.01));
}
.hero-mark {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 14px;
  background: var(--accent-grad);
  box-shadow: 0 0 30px rgba(255,133,0,0.4);
  position: relative; overflow: hidden;
}
.hero-mark::after {
  content: "M";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-weight: 800; font-size: 26px; color: rgba(26,13,0,0.7);
  letter-spacing: -0.02em;
}
.hero-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.hero-info h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
.hero-info p  { margin: 2px 0 0; color: var(--text-dim); font-size: 13px; }
.hero-body .ws-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* legacy fallback if anything still references workspace-header */
.workspace-header { display: none; }
.ghost-btn {
  background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-size: 12.5px;
  transition: border-color 120ms, background 120ms;
}
.ghost-btn:hover { border-color: rgba(255,133,0,0.45); background: rgba(255,133,0,0.06); }
.ghost-btn-warn { color: #fca5a5; }
.ghost-btn-warn:hover { border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.06); }
.ws-actions { display: flex; gap: 8px; }

/* ============================ GUIDE =============================== */
.guide {
  padding: 10px 28px 8px;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.guide-col { display: flex; flex-direction: column; gap: 8px; }
.guide-title {
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-faint);
}
.guide-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.guide-list li {
  font-size: 13px; color: var(--text-dim); position: relative; padding-left: 14px;
}
.guide-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-grad); position: absolute; left: 0; top: 7px;
}

.caps { display: flex; flex-wrap: wrap; gap: 6px; }
.cap {
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,133,0,0.08); color: var(--accent-bright);
  border: 1px solid rgba(255,133,0,0.25);
  cursor: pointer; user-select: none;
  transition: background 120ms, border-color 120ms, transform 120ms;
}
.cap:hover    { background: rgba(255,133,0,0.18); border-color: rgba(255,133,0,0.5); }
.cap:active   { transform: translateY(1px); }
.cap.disabled { opacity: 0.5; cursor: not-allowed; }

.examples { display: flex; flex-direction: column; gap: 6px; }
.example {
  text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; line-height: 1.4;
  transition: background 120ms, border-color 120ms;
}
.example:hover { background: var(--surface-2); border-color: rgba(255,133,0,0.4); }

/* ============================ PANELS ============================== */
.panel { flex: 1; min-height: 0; padding: 12px 28px 20px; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ============================ CHAT ================================ */
.panel-chat {
  /* Top-anchored: composer sits right under the guide row.
     Messages, when present, expand below the composer up to 60vh and scroll. */
  justify-content: flex-start;
  gap: 10px;
}
.panel-chat .composer { order: 1; }       /* composer rendered FIRST in flow */
.panel-chat .messages {
  order: 2;                                /* messages render after composer */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 4px 8px;
  display: flex; flex-direction: column-reverse; gap: 14px;
}
/* No messages yet → no box at all, no padding, no gap from composer. */
.panel-chat .messages:empty { display: none; }

/* (welcome card removed — its content moved into the hero at the top) */
.bubble {
  max-width: 78%;
  padding: 12px 14px; border-radius: var(--radius);
  white-space: pre-wrap; line-height: 1.5; font-size: 14px;
  border: 1px solid var(--border);
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(255,133,0,0.14), rgba(255,133,0,0.04));
  border-color: rgba(255,133,0,0.35);
}
.bubble.assistant {
  align-self: flex-start; background: var(--surface);
}
.bubble .role {
  display: block; font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--text-faint); margin-bottom: 4px; text-transform: uppercase;
}

.composer {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
/* Orange gradient box, bold black paperclip — high contrast, on-brand. */
.attach-btn {
  background: var(--accent-grad);
  border: none;
  width: 42px; height: 42px;
  border-radius: 11px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(255,133,0,0.28);
  transition: filter 120ms, transform 120ms, box-shadow 120ms;
}
.attach-btn:hover  { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(255,133,0,0.4); }
.attach-btn:active { transform: translateY(1px); }
.attach-btn svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.18));   /* tiny inner glow for legibility */
}

/* Attachment chips above the composer */
.attachments {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.attachments.hidden { display: none; }
.attachment-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text);
}
.attachment-chip .name { font-weight: 600; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip .meta { color: var(--text-faint); font-size: 11px; }
.attachment-chip .remove {
  background: transparent; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 14px; padding: 0 4px; line-height: 1;
}
.attachment-chip .remove:hover { color: #f87171; }
.attachment-chip.error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.attachment-chip.loading { opacity: 0.6; }

/* Drop zone overlay */
.dropzone {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,133,0,0.08); border: 2px dashed rgba(255,133,0,0.5);
  border-radius: var(--radius);
  color: var(--accent-bright); font-weight: 600; letter-spacing: 0.06em;
  pointer-events: none; z-index: 10;
}
.dropzone.hidden { display: none; }
.composer:focus-within { box-shadow: var(--shadow-glow); border-color: rgba(255,133,0,0.45); }
.composer textarea {
  flex: 1; resize: none; max-height: 200px;
  background: transparent; border: none; outline: none;
  color: var(--text); font: inherit; line-height: 1.5;
}
.composer button, #img-go, .voice-btn {
  background: var(--accent-grad);
  border: none; color: #1a0d00; font-weight: 700; letter-spacing: 0.04em;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  transition: filter 120ms, transform 120ms;
}
.composer button:hover, #img-go:hover, .voice-btn:hover { filter: brightness(1.08); }
.composer button:active { transform: translateY(1px); }
.composer button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================ IMAGE =============================== */
.image-controls {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.image-controls textarea {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font: inherit; padding: 10px; resize: vertical; min-height: 70px;
}
.image-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.image-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}
.image-row input {
  width: 80px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 6px 8px; border-radius: 6px; font: inherit;
}
.image-row #img-go { margin-left: auto; padding: 8px 18px; }
.image-result {
  margin-top: 16px; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  color: var(--text-faint);
}
.image-result img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.image-result.loading::after {
  content: "Generating with Mixie Vision…"; color: var(--accent-bright);
}

/* ============================ VOICE =============================== */
.panel-voice {
  justify-content: flex-start;
  padding-top: 14px;
}
.voice-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%; align-items: stretch;
}
.voice-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.voice-section-title {
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-faint);
  text-transform: uppercase; align-self: flex-start;
}
.composer-voice { width: 100%; }
.voice-result-tts audio { width: 100%; }
@media (max-width: 880px) {
  .voice-grid { grid-template-columns: 1fr; }
}

/* ============================ MODAL =============================== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 8, 13, 0.78); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: min(720px, 92vw); max-height: 80vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-1); display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.all-chats-list {
  overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px;
}
.all-chats-item {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: grid;
  grid-template-columns: 1fr auto; gap: 8px; align-items: center;
}
.all-chats-item .system { font-weight: 600; font-size: 13.5px; }
.all-chats-item .preview { color: var(--text-dim); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 56ch; }
.all-chats-item .actions { display: flex; gap: 6px; }
.all-chats-item .open-btn,
.all-chats-item .del-btn {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.all-chats-item .open-btn:hover { border-color: rgba(255,133,0,0.4); }
.all-chats-item .del-btn:hover  { border-color: rgba(239,68,68,0.45); color: #fca5a5; }
.all-chats-empty { color: var(--text-faint); text-align: center; padding: 30px; font-style: italic; }
.voice-btn {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 6px auto 4px;
}
.voice-btn.recording { animation: pulse 1.4s ease-in-out infinite; }
.voice-mic {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  position: relative;
}
.voice-mic::before {
  content: ""; position: absolute; inset: 6px;
  border-radius: 4px; background: var(--accent-bright);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,133,0,0.45); }
  50%      { box-shadow: 0 0 0 22px rgba(255,133,0,0.0); }
}
.voice-result {
  max-width: 640px; min-height: 80px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  color: var(--text);
}

/* ============================ OPS DASHBOARD ======================= */
:root {
  --ops-bg:        #050b18;
  --ops-surface:   #0a1426;
  --ops-surface-2: #0f1d33;
  --ops-border:    #16273f;
  --ops-cyan:      #22d3ee;
  --ops-cyan-dim:  #67e8f9;
  --ops-amber:     #f59e0b;
  --ops-grad:      linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #818cf8 100%);
}

.panel-ops {
  background: radial-gradient(1000px 500px at 90% -10%, rgba(34,211,238,0.08), transparent 60%),
              radial-gradient(800px 400px at 0% 110%, rgba(129,140,248,0.05), transparent 60%),
              var(--ops-bg);
  padding: 18px 28px 24px;
  gap: 14px;
}

.ops-tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.ops-tile {
  background: var(--ops-surface); border: 1px solid var(--ops-border);
  border-radius: 12px; padding: 12px 14px;
  position: relative; overflow: hidden;
}
.ops-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--ops-grad);
}
.ops-tile .t-label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ops-cyan-dim); margin-bottom: 6px;
}
.ops-tile .t-value {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 22px; font-weight: 600; color: #e0f2fe;
}

.ops-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ops-card {
  background: var(--ops-surface); border: 1px solid var(--ops-border);
  border-radius: 12px; overflow: hidden;
}
.ops-card-wide { grid-column: 1 / -1; }
.ops-card-title {
  padding: 10px 14px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ops-cyan-dim);
  border-bottom: 1px solid var(--ops-border); background: var(--ops-surface-2);
}

.ops-table {
  width: 100%; border-collapse: collapse;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 12.5px; color: #cfeafd;
}
.ops-table th {
  text-align: left; padding: 8px 12px;
  background: rgba(34,211,238,0.04); color: var(--ops-cyan);
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ops-border);
}
.ops-table td {
  padding: 8px 12px; border-top: 1px solid rgba(22,39,63,0.6);
}
.ops-table tr:hover td { background: rgba(34,211,238,0.04); }
.ops-empty { color: #5b738f; text-align: center; font-style: italic; }
.ops-status-online  { color: var(--ops-cyan); }
.ops-status-lazy    { color: #94a3b8; }
.ops-status-error   { color: #f87171; }
.ops-ok             { color: #4ade80; }
.ops-fail           { color: #f87171; }

.composer-ops { background: var(--ops-surface); border-color: var(--ops-border); }
.composer-ops:focus-within {
  border-color: var(--ops-cyan);
  box-shadow: 0 0 0 1px var(--ops-cyan), 0 8px 32px rgba(34,211,238,0.18);
}
.composer-ops button {
  background: var(--ops-grad); color: #051420;
}

.ops-answer {
  background: var(--ops-surface); border: 1px solid var(--ops-border);
  border-radius: 12px; padding: 14px;
  white-space: pre-wrap; line-height: 1.5; color: #e0f2fe;
  min-height: 60px; font-size: 13.5px;
}
.ops-answer:empty::before {
  content: "Mixie Ops will answer here, grounded in the live snapshot above.";
  color: #5b738f; font-style: italic;
}

@media (max-width: 1100px) {
  .ops-tiles { grid-template-columns: repeat(3, 1fr); }
  .ops-grid  { grid-template-columns: 1fr; }
}

/* ============================ FOOTER ============================== */
.footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 11.5px; text-align: center;
}

/* ============================ AUTH / LOGIN ======================== */
.auth-body {
  background: radial-gradient(800px 400px at 50% -5%, rgba(255,133,0,0.18), transparent 60%),
              radial-gradient(900px 500px at 50% 105%, rgba(255,199,0,0.06), transparent 60%),
              var(--bg);
  min-height: 100vh; margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter",
               "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
.auth-shell {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, rgba(22,26,39,0.85), rgba(13,15,23,0.92));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow-1);
  text-align: center;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo img { height: 56px; width: auto; }
.auth-title { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.auth-sub   { font-size: 13px; color: var(--text-dim); margin: 0 0 22px; }
.auth-form  { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-form label { display: flex; flex-direction: column; gap: 4px; }
.auth-form label span { font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em; }
.auth-form input {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font: inherit;
}
.auth-form input:focus { outline: none; border-color: rgba(255,133,0,0.55); box-shadow: var(--shadow-glow); }
.auth-form button {
  margin-top: 6px;
  background: var(--accent-grad);
  border: none; color: #1a0d00; font-weight: 700; letter-spacing: 0.04em;
  padding: 11px 16px; border-radius: 10px; cursor: pointer;
  transition: filter 120ms, transform 120ms;
}
.auth-form button:hover  { filter: brightness(1.08); }
.auth-form button:active { transform: translateY(1px); }
.auth-error {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(239,68,68,0.1); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3); font-size: 12.5px;
}
.auth-demo {
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-dim); text-align: left;
}
.auth-demo-title { font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-faint); margin-bottom: 8px; }
.auth-demo-grid  { display: flex; flex-direction: column; gap: 4px; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
.auth-demo .k { color: var(--accent-bright); }
.auth-demo .v { color: var(--text); }
.auth-foot { margin-top: 22px; font-size: 11.5px; color: var(--text-faint); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #1c2030; border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #262b3e; }

/* responsive */
@media (max-width: 1100px) {
  .guide { grid-template-columns: 1fr 1fr; }
  .guide-col:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; min-height: auto; }
  .guide { grid-template-columns: 1fr; }
}
