/* Central Telecoms theme — tokens and components shared with the
   AI Call Analytics portal. Keep in sync when either changes. */

:root {
  --cyan:       #00B4ED;
  --navy:       #0E263F;
  --navy-deep:  #081828;
  --navy-mid:   #122d4a;
  --navy-light: #183657;
  --orange:     #F47B20;
  --white:      #ffffff;
  --text:       #bdd4e8;
  --dim:        #5f7f9a;
  --border:     #1a3554;
  --border-hi:  #24466e;
  --green:      #22c55e;
  --red:        #ef4444;
  --amber:      #f59e0b;
  --grad:       linear-gradient(135deg, #00B4ED 0%, #78b8cc 50%, #F47B20 100%);
  --surface:    linear-gradient(180deg, var(--navy-mid) 0%, #112942 100%);
  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.24), 0 2px 8px rgba(0,0,0,0.18);
  --shadow-md:  0 4px 14px rgba(0,0,0,0.28), 0 8px 28px rgba(0,0,0,0.22);
  --display:    'Poppins', sans-serif;
  --body:       'Source Sans 3', sans-serif;
  --sidebar-w:  254px;
}

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

html, body { height: 100%; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════
   LOGIN
══════════════════════════════════════ */
#login-screen {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: 1fr 440px;
  z-index: 100;
  overflow-y: auto;
}
.login-left {
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: center;
  padding: 48px 56px 0;
  position: relative; overflow: hidden;
}
.login-left::before, .login-left::after {
  content: ''; position: absolute; border-radius: 50%;
}
.login-left::before { width: 420px; height: 420px; border: 1px solid rgba(0,180,237,0.1); right: -140px; top: -100px; }
.login-left::after  { width: 260px; height: 260px; border: 1px solid rgba(0,180,237,0.07); right: -60px; top: -20px; }
.login-left-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; flex: 1; }
.login-logo { height: 40px; width: auto; margin-bottom: 32px; }

.login-brand {
  font-family: var(--display);
  font-size: 60px; font-weight: 900; line-height: 1; letter-spacing: -2px;
  margin-bottom: 20px;
}
.login-brand span { display: block; }
.login-brand .l1 { color: var(--orange); }
.login-brand .l2 { color: var(--white); }
.login-brand .l3 { color: var(--cyan); }

.login-divider-bar { width: 48px; height: 3px; background: var(--orange); border-radius: 2px; margin: 20px 0; }
.login-tagline { font-size: 14px; line-height: 1.7; max-width: 280px; font-weight: 300; }
.login-tagline.cyan { color: var(--cyan); margin-bottom: 8px; }
.login-tagline.orange { color: var(--orange); font-weight: 500; }

#login-waveform { display: block; width: 100%; margin: 32px 0; }

.login-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 1;
}
.login-feature {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 8px;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; color: var(--white); line-height: 1.5;
}
.login-feature:last-child { border-right: none; }
.login-feature-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.login-right {
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 48px;
  border-left: 1px solid rgba(0,180,237,0.12);
}
.login-form { width: 100%; animation: fadeUp 0.25s ease both; }
.login-welcome { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.login-sub-text { font-size: 14px; color: var(--text); margin-bottom: 32px; font-weight: 300; line-height: 1.55; }
.login-sub-text strong { color: var(--white); font-weight: 600; }
.login-error { margin-top: 14px; color: var(--red); font-size: 13px; text-align: center; min-height: 20px; }
.login-note { margin-top: 18px; font-size: 13px; color: var(--dim); text-align: center; line-height: 1.5; }
.login-links { margin-top: 16px; text-align: center; }

.qr-box {
  display: flex; justify-content: center;
  background: #fff; border-radius: var(--radius);
  padding: 10px; margin: 0 auto 14px; width: fit-content;
}
.qr-box svg { display: block; width: 180px; height: 180px; }
.secret-key {
  font-family: var(--display); font-size: 12px; letter-spacing: 1.5px;
  color: var(--white); background: var(--navy-mid);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; text-align: center; word-break: break-all; margin-bottom: 22px;
}
.code-input { letter-spacing: 6px; text-align: center; font-family: var(--display) !important; font-weight: 700; }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.field { margin-bottom: 20px; }
.field > label, .label {
  display: block;
  font-size: 11px; font-weight: 600; color: var(--dim);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; font-family: var(--display);
}
.field .hint { font-size: 12px; color: var(--dim); margin-top: 6px; line-height: 1.45; }

.input, .field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--body); font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.modal .input, .modal .field input, .modal .field select, .modal .field textarea { background: var(--navy); }
.field textarea { min-height: 80px; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-hi); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px #00B4ED22;
}
.input::placeholder, .field input::placeholder { color: var(--dim); }
select.input, .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f7f9a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 34px;
}

.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap input { padding-right: 40px; }
.pwd-toggle {
  position: absolute; right: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--dim); padding: 4px; line-height: 0;
}
.pwd-toggle:hover { color: var(--text); }

input[type="checkbox"].check {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: var(--navy); cursor: pointer;
  position: relative; flex-shrink: 0; vertical-align: middle;
  transition: border-color 0.15s, background 0.15s;
}
input[type="checkbox"].check:hover { border-color: var(--cyan); }
input[type="checkbox"].check:checked { background: var(--cyan); border-color: var(--cyan); }
input[type="checkbox"].check:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid var(--navy); border-top: none; border-left: none;
  transform: rotate(45deg);
}
input[type="checkbox"].check:disabled { opacity: 0.35; cursor: not-allowed; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius);
  font-family: var(--display); font-size: 12px; font-weight: 700;
  padding: 9px 18px; cursor: pointer; white-space: nowrap;
  transition: opacity 0.18s, transform 0.14s, box-shadow 0.18s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #14bef4 0%, var(--cyan) 100%);
  color: var(--navy); font-size: 14px; padding: 13px;
  box-shadow: 0 2px 8px rgba(0,180,237,0.28);
}
.btn-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,180,237,0.40); filter: brightness(1.05); }
.btn-secondary { background: var(--cyan); color: var(--navy); }
.btn-secondary:not(:disabled):hover { opacity: 0.88; }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:not(:disabled):hover { opacity: 0.88; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.btn-ghost:not(:disabled):hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:not(:disabled):hover { opacity: 0.85; }
.btn-sm { padding: 6px 12px; font-size: 11.5px; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-family: var(--body); font-size: 13px; text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

/* ══════════════════════════════════════
   APP SHELL
══════════════════════════════════════ */
#app { min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy-mid);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 10;
}
.sidebar-header { padding: 22px 0 0; border-bottom: 1px solid var(--border); }
.sidebar-logo { padding: 0 20px; margin-bottom: 12px; }
.sidebar-logo img { height: 40px; width: auto; max-width: 100%; }
.sidebar-tagline {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,180,237,0.1);
  border-top: 1px solid rgba(0,180,237,0.25);
  border-bottom: 1px solid rgba(0,180,237,0.25);
  padding: 8px 20px; margin-bottom: 18px;
  font-size: 13px; color: var(--white);
  font-family: var(--display); font-weight: 600; letter-spacing: 0.04em;
}
.env-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: var(--amber);
  border-radius: 10px; padding: 1px 8px;
}
.sidebar-accent { height: 3px; background: var(--grad); }

.sidebar-nav { flex: 1; padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-section-label {
  font-size: 10px; font-weight: 600; color: var(--dim);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: var(--display);
  padding: 12px 10px 6px;
}
.nav-section-label:first-child { padding-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text); background: none; border: none; width: 100%; text-align: left;
  cursor: pointer; font-size: 15px; font-family: var(--body); font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--navy-light); }
.nav-item.active { background: var(--navy-light); color: var(--cyan); font-weight: 600; }
.nav-item.child { padding-left: 28px; padding-right: 8px; font-size: 13.5px; position: relative; white-space: nowrap; }
.nav-item.child::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 50%;
  width: 10px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-soon {
  margin-left: auto; font-size: 10px; color: var(--dim);
  border: 1px solid var(--border); border-radius: 10px; padding: 0 7px; font-weight: 600;
}

.sidebar-footer { padding: 14px 12px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--navy); border: 1px solid var(--border);
  margin-bottom: 10px; min-width: 0;
}
.user-chip > div:last-child { min-width: 0; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--display); flex-shrink: 0;
}
.user-name { color: var(--white); font-size: 13px; font-weight: 600; font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { color: var(--dim); font-size: 11px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-side {
  width: 100%;
  background: transparent; border: 1px solid var(--border);
  color: var(--dim); font-family: var(--body); font-size: 12px;
  padding: 8px; border-radius: var(--radius); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-side + .btn-side { margin-top: 8px; }
.btn-side:hover { color: var(--cyan); border-color: var(--cyan); }
.btn-side.signout:hover { color: var(--red); border-color: var(--red); }

.main { margin-left: var(--sidebar-w); padding: 36px 40px; min-height: 100vh; }
#view { animation: fadeUp 0.3s ease both; }

.hamburger {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 50;
  background: var(--navy-mid); border: 1px solid var(--border); border-radius: var(--radius);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9; }

/* ══════════════════════════════════════
   PAGE
══════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.page-title { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.page-sub { font-size: 13px; color: var(--text); margin-top: 4px; font-weight: 300; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--navy-deep); border: 1px solid var(--border);
  border-radius: 22px; padding: 4px; width: fit-content;
  margin-bottom: 24px;
}
.tab {
  background: transparent; border: none; border-radius: 18px;
  color: var(--dim); font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 7px 16px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--cyan); color: var(--navy); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 220px; padding: 9px 14px; }
.toolbar .spacer { flex: 1; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-title { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.card-sub { font-size: 13px; color: var(--text); font-weight: 300; line-height: 1.55; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.service-list { display: grid; gap: 12px; }
.service-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 20px; text-decoration: none; color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
a.service-row:hover { border-color: var(--border-hi); box-shadow: inset 3px 0 0 var(--cyan), var(--shadow-sm); }
.service-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service-name { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 15px; }
.service-desc { font-size: 13px; color: var(--text); font-weight: 300; margin-top: 2px; }

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.table-wrap { border-radius: var(--radius-lg); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.table thead th {
  text-align: left; padding: 13px 18px;
  font-size: 10.5px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: rgba(10,24,40,0.55);
  font-family: var(--display); font-weight: 600; white-space: nowrap;
}
.table tbody td { padding: 13px 18px; vertical-align: middle; border-bottom: 1px solid rgba(26,53,84,0.55); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.14s ease, box-shadow 0.14s ease; }
.table tbody tr:hover { background: var(--navy-light); box-shadow: inset 3px 0 0 var(--cyan); }
.table tbody tr.clickable { cursor: pointer; }
.table .strong { color: var(--white); font-weight: 600; }
.table .muted { color: var(--dim); font-size: 12.5px; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }

/* ══════════════════════════════════════
   PILLS
══════════════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; border: 1px solid;
  font-family: var(--display); white-space: nowrap;
}
.pill.ok      { color: var(--green); border-color: var(--green); background: #22c55e12; }
.pill.bad     { color: var(--red);   border-color: var(--red);   background: #ef444412; }
.pill.warn    { color: var(--amber); border-color: var(--amber); background: #f59e0b12; }
.pill.neutral { color: var(--dim);   border-color: var(--border); background: #1a355412; }
.pill.info    { color: var(--cyan);  border-color: var(--cyan);  background: #00B4ED12; }
.pill.accent  { color: var(--orange); border-color: var(--orange); background: #F47B2012; }

/* ══════════════════════════════════════
   STATES
══════════════════════════════════════ */
.loading-state, .empty-state { text-align: center; padding: 56px 24px; color: var(--dim); font-size: 13px; }
.empty-state .empty-title { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.empty-state p { max-width: 440px; margin: 0 auto; line-height: 1.6; color: var(--text); font-weight: 300; }
.empty-state .btn { margin-top: 18px; }
.loading-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border); border-top-color: var(--cyan); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 12px;
}
.notice {
  border-radius: var(--radius); padding: 12px 16px; font-size: 13px; line-height: 1.5;
  border: 1px solid var(--border); background: var(--navy-deep); color: var(--text);
}
.notice.ok   { border-color: var(--green); color: var(--green); background: #22c55e10; }
.notice.bad  { border-color: var(--red); color: var(--red); background: #ef444410; }
.notice.warn { border-color: var(--amber); color: var(--amber); background: #f59e0b10; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,16,28,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeUp 0.2s ease both;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 460px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  position: relative;
}
.modal.wide { max-width: 720px; }
.modal-head { padding: 24px 28px 0; }
.modal-title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--white); padding-right: 24px; }
.modal-sub { font-size: 12.5px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
.modal-body { padding: 20px 28px; overflow-y: auto; }
.modal-foot { padding: 0 28px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-foot .btn { min-width: 96px; padding: 10px 18px; font-size: 13px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--dim); cursor: pointer; line-height: 0; padding: 4px;
}
.modal-close:hover { color: var(--white); }
.modal .confirm-message { font-size: 13.5px; color: var(--text); line-height: 1.6; font-weight: 300; }

.secret-reveal {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); border: 1px dashed var(--cyan); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 14px;
}
.secret-reveal code { flex: 1; font-family: var(--display); font-weight: 700; color: var(--white); font-size: 16px; letter-spacing: 1px; }

/* Permissions editor */
.perm-group { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.perm-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--navy-deep);
  font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--white);
}
.perm-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 14px; border-top: 1px solid rgba(26,53,84,0.55);
  font-size: 13.5px; cursor: pointer;
}
.perm-row.disabled { cursor: not-allowed; opacity: 0.55; }
.perm-row .perm-note { font-size: 11.5px; color: var(--dim); margin-left: auto; white-space: nowrap; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { color: var(--white); word-break: break-word; }

/* Toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy-mid); border: 1px solid var(--border); border-left: 3px solid var(--cyan);
  border-radius: var(--radius); padding: 11px 16px; font-size: 13px; color: var(--white);
  box-shadow: var(--shadow-md); max-width: 360px; animation: fadeUp 0.2s ease both;
}
.toast.bad { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1000px) {
  .login-features { grid-template-columns: repeat(2, 1fr); }
  .login-feature:nth-child(2) { border-right: none; }
  .login-feature:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 768px) {
  #login-screen { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-left { padding: 32px 28px 12px; }
  .login-brand { font-size: 36px; letter-spacing: -1px; }
  .login-features { display: none; }
  #login-waveform { margin: 16px 0; }
  .login-right { padding: 28px 24px 40px; }
  .login-welcome { font-size: 20px; }

  .hamburger { display: flex; }
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; z-index: 20; width: 280px; }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; padding: 64px 16px 24px; }
  .page-header { flex-direction: column; }
  .toolbar .input { min-width: 0; flex: 1 1 160px; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row > :last-child { grid-column: 2; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
