:root {
  --sidebar-bg: #5b3df3;
  --sidebar-bg-2: #6b4aff;
  --sidebar-active: rgba(255, 255, 255, 0.18);
  --sidebar-text: #fff;
  --sidebar-muted: rgba(255, 255, 255, 0.7);
  --bg: #f7f8fb;
  --panel: #ffffff;
  --line: #e6e8ee;
  --line-2: #eef0f5;
  --text: #1f2330;
  --text-muted: #6a7080;
  --primary: #5b3df3;
  --bubble-user: #efeafe;
  --bubble-bot: transparent;
  --shadow: 0 8px 32px rgba(20, 20, 50, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
}

button { font-family: inherit; cursor: pointer; }

.app {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  padding: 20px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.brand-logo {
  width: 100px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.btn-newworker {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.btn-newworker .plus { font-size: 15px; }

.worker-block {
  background: rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.worker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 13px;
}
.worker-head .worker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bd47e;
  box-shadow: 0 0 0 2px rgba(43,212,126,0.25);
}
.worker-head .worker-meta {
  margin-left: auto;
  opacity: 0.7;
  cursor: pointer;
}
.worker-action {
  background: transparent;
  border: 0;
  color: var(--sidebar-text);
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.92;
}
.worker-action:hover { background: rgba(255,255,255,0.08); }
.worker-action .ico { width: 16px; opacity: 0.85; }

.session {
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}
.session:hover { background: rgba(255,255,255,0.08); }
.session.active { background: var(--sidebar-active); }

.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* ================= MAIN ================= */
.main {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  position: relative;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}
.topbar {
  height: 52px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 18px;
  justify-content: space-between;
  background: #fff;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
}
.topbar-title {
  font-weight: 600;
  font-size: 15px;
}
.plans-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.plans-btn .plans-ico { color: var(--primary); }
.plans-btn .caret { font-size: 10px; color: var(--text-muted); }
.plans-btn:hover { background: #f4f3ff; }

.chat {
  flex: 1;
  overflow-y: auto;
  padding: 24px 36px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============ MESSAGES ============ */
.msg-user {
  align-self: flex-end;
  background: var(--bubble-user);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  max-width: 65%;
  font-size: 14px;
}
.msg-bot {
  align-self: flex-start;
  max-width: 88%;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}

/* "thinking" bubble */
.msg-bot.thinking {
  width: auto;
  background: #f4f3ff;
  border: 1px solid #e1dafd;
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--primary);
}
.thinking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.thinking-row .dots {
  display: inline-flex;
  gap: 4px;
}
.thinking-row .dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: think-bounce 1.05s infinite ease-in-out;
}
.thinking-row .dots span:nth-child(2) { animation-delay: 0.18s; }
.thinking-row .dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes think-bounce {
  0%, 80%, 100% { transform: translateY(0);   opacity: 0.4; }
  40%           { transform: translateY(-4px); opacity: 1;   }
}
.msg-bot h2 {
  font-size: 18px;
  margin: 18px 0 10px 0;
  color: #1c1f2c;
  font-weight: 600;
}
.msg-bot h3 {
  font-size: 15px;
  margin: 14px 0 8px 0;
  color: #2a2d3a;
  font-weight: 600;
}
.msg-bot p {
  margin: 0 0 10px 0;
}
.msg-bot b, .msg-bot strong {
  color: #1c1f2c;
}
.msg-bot ul {
  padding-left: 20px;
  margin: 4px 0 12px 0;
}
.msg-bot li { margin: 2px 0; }
.msg-bot .filenote {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.msg-bot .filenote .file-chip {
  color: var(--primary);
  font-weight: 500;
  background: #f3f1ff;
  padding: 2px 8px;
  border-radius: 6px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 14px 0;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.kpi .label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kpi .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.kpi .delta {
  font-size: 11px;
  margin-top: 2px;
}
.kpi .delta.up { color: #119e54; }
.kpi .delta.down { color: #c93636; }

.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 14px 0;
  background: #fff;
}
.tbl-title {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: #fafafe;
  border-bottom: 1px solid var(--line);
  color: #1c1f2c;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.tbl th, table.tbl td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: right;
}
table.tbl th:first-child, table.tbl td:first-child {
  text-align: left;
}
table.tbl thead th {
  background: #fafafe;
  font-weight: 600;
  color: #2a2d3a;
  border-bottom: 1px solid var(--line);
}
table.tbl tr.total td {
  font-weight: 700;
  background: #f6f4ff;
  border-top: 1px solid var(--line);
}

.ninebox {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 14px 0;
  font-size: 12px;
}
.ninebox .nh {
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 6px;
}
.ninebox .ny {
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 6px;
}
.ninebox .cell {
  border-radius: 8px;
  padding: 10px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}
.ninebox .cell .cnt {
  font-weight: 700;
  font-size: 16px;
  color: #1c1f2c;
}
.ninebox .cell .v {
  font-size: 11px;
  color: var(--text-muted);
}
.ninebox .green { background: #e7f7ee; border-color: #b9e4c8; }
.ninebox .ylw   { background: #fff5dc; border-color: #f0d693; }
.ninebox .red   { background: #fde8e8; border-color: #f1bcbc; }
.ninebox .mid   { background: #f4f3ff; border-color: #d6cffb; }

.chart-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px 10px 16px;
  margin: 8px 0 14px 0;
}
.chart-wrap .chart-cap {
  font-size: 12.5px;
  font-weight: 600;
  color: #1c1f2c;
  margin-bottom: 8px;
}
.chart-wrap .chart-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 6px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px 0;
}
.chart-grid .chart-wrap { margin: 0; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px 0;
}
.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f1ff;
  color: var(--primary);
  border: 1px solid #e1dafd;
}

.callout {
  border-left: 3px solid var(--primary);
  background: #f8f7ff;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 13px;
}

/* ============ COMPOSER ============ */
.composer {
  border-top: 1px solid var(--line);
  padding: 12px 36px 16px 36px;
  background: #fff;
}
.composer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px 8px 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,20,50,0.04);
}
.composer-inner input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  padding: 6px 0;
  color: var(--text);
}
.composer-mic, .composer-send {
  border: 0;
  background: transparent;
  font-size: 16px;
  padding: 6px 8px;
  color: var(--text-muted);
}
.composer-send {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.quick-prompts button {
  background: #f3f1ff;
  border: 1px solid #e1dafd;
  color: var(--primary);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.quick-prompts button:hover { background: #e8e3ff; }

/* ============ PLANS POPOVER ============ */
.plans-popover {
  position: absolute;
  top: 60px;
  right: 24px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 30;
  overflow: hidden;
}
.plans-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fafafe;
}
.plans-card { padding: 6px; }
.plans-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.plans-row:hover { background: #f6f4ff; }
.plans-row.child { padding-left: 28px; font-size: 12.5px; color: var(--text-muted); }
.plans-fileico { color: var(--primary); }
.plans-name { font-weight: 500; }
.plans-ver {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.plans-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
}
.plans-actions .badge {
  background: #f0eefa;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.plans-actions .ic { cursor: pointer; }

/* ============ MODALS ============ */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 50, 0.45);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-back.hidden, .plans-popover.hidden, .hidden { display: none; }
.modal-card {
  width: 540px;
  max-width: 90vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.modal-head .modal-title { font-weight: 600; }
.modal-head .modal-sub { color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.modal-head .ic { color: var(--text-muted); cursor: pointer; padding: 4px 6px; }
.modal-head .ic.close { font-weight: 700; }
.modal-head .spacer { flex: 1; }

.modal-body {
  overflow-y: auto;
  padding: 8px 12px 16px 12px;
}
.file-section-title {
  padding: 14px 4px 6px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.file-section-title.chevron { color: #2a2d3a; text-transform: none; font-weight: 600; font-size: 12.5px; }
.file-section-title .muted { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.file-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  gap: 6px;
  font-size: 13px;
}
.file-row:hover { background: #fafafe; }
.file-row .ic { color: var(--primary); }
.file-row .fr-name { font-weight: 500; }
.file-row .fr-meta { color: var(--text-muted); font-size: 11.5px; }

/* ============ SOP MODAL ============ */
.sop-card {
  width: 92vw;
  max-width: 880px;
  height: 86vh;
  max-height: 86vh;
}
.sop-modal-head {
  padding: 18px 24px 14px 24px;
  border-bottom: 1px solid var(--line);
}
.sop-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.sop-modal-title-row .spacer { flex: 1; }
.sop-modal-title-row .ic.close {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 16px;
  font-weight: 700;
}
.sop-doc-ico {
  font-size: 18px;
}
.sop-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.sop-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.sop-body-stacked {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 24px 20px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 8px;
  overflow: hidden;
}
.sop-section-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.sop-section-label-modify {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sop-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ecebf5;
  color: var(--text-muted);
  font-size: 10px;
  cursor: help;
}
.sop-content {
  min-height: 0;
  height: 100%;
  padding: 18px 24px;
  overflow-y: auto;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.sop-modify-input {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.sop-modify-input::placeholder {
  color: var(--text-muted);
}
.sop-modify-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(120, 100, 240, 0.12);
}
.sop-modify-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.sop-coming-soon {
  font-size: 12px;
  color: var(--text-muted);
}
.sop-modify-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sop-modify-btn:disabled {
  background: #d6d3e8;
  color: #fafafe;
  cursor: not-allowed;
}
.sop-content h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1c1f2c;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.sop-content h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 18px 0 6px 0;
}
.sop-content h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 12px 0 4px 0;
  color: #2a2d3a;
}
.sop-content p {
  margin: 6px 0 8px 0;
}
.sop-content ul, .sop-content ol {
  padding-left: 22px;
  margin: 4px 0 10px 0;
}
.sop-content li { margin: 3px 0; }
.sop-content code {
  background: #f3f1ff;
  color: var(--primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.sop-content table {
  border-collapse: collapse;
  margin: 8px 0 14px 0;
  font-size: 12.5px;
  width: auto;
}
.sop-content th, .sop-content td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
}
.sop-content th {
  background: #fafafe;
  font-weight: 600;
}
.sop-loading {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ EXCEL MODAL ============ */
.excel-card {
  width: 92vw;
  max-width: 1100px;
  height: 80vh;
}
.excel-head {
  background: #1f7a3b;
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.excel-head .ic, .excel-head .close, .excel-dl {
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.excel-head .excel-search {
  background: rgba(255,255,255,0.18);
  border: 0;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  width: 180px;
}
.excel-head .excel-search::placeholder { color: rgba(255,255,255,0.7); }
.excel-head .excel-dl {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.excel-meta {
  background: #fff;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
}
.excel-table-wrap {
  flex: 1;
  overflow: auto;
  background: #fff;
}
.excel-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100%;
}
.excel-table th, .excel-table td {
  border: 1px solid #e0e3ea;
  padding: 4px 10px;
  white-space: nowrap;
  text-align: left;
}
.excel-table thead th {
  background: #f5f6f9;
  position: sticky;
  top: 0;
  font-weight: 600;
  color: #1c1f2c;
}
.excel-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}
.excel-table td.idx, .excel-table th.idx {
  background: #f0f1f5;
  color: var(--text-muted);
  text-align: center;
  position: sticky;
  left: 0;
  z-index: 1;
}
.excel-tabs {
  display: flex;
  background: #f0f1f5;
  border-top: 1px solid var(--line);
  padding: 0 8px;
  font-size: 12px;
}
.excel-tabs .tab {
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}
.excel-tabs .tab.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

/* ============== LOGIN GATE ============== */
.login-gate {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f6f5ff 0%, #eef0fb 100%);
  z-index: 9999;
}
.login-card {
  width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 26px;
  box-shadow: 0 12px 40px rgba(40, 30, 90, 0.12);
  display: flex; flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.login-logo-wrap {
  width: 84px; height: 84px;
  background: #5b3df3;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  padding: 14px;
  box-sizing: border-box;
}
.login-logo {
  width: 100%; height: 100%;
  object-fit: contain;
}
.login-title {
  margin: 0; font-size: 22px; font-weight: 700;
  color: #1c1f33; text-align: center;
}
.login-sub {
  margin: 4px 0 22px; font-size: 13px;
  color: #6b7186; text-align: center;
}
.login-label {
  font-size: 12px; font-weight: 600;
  color: #4a4f63; margin-bottom: 6px;
}
.login-card input {
  padding: 10px 12px;
  border: 1px solid #d8dbe8;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .15s;
}
.login-card input:focus { border-color: #5b3df3; }
.login-err {
  min-height: 18px;
  color: #d65c5c;
  font-size: 12px;
  margin-bottom: 8px;
}
.login-btn {
  background: #5b3df3;
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.login-btn:hover { background: #4a2fd6; }
