﻿:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --panel: rgba(20, 28, 55, 0.9);
  --panel-2: rgba(17, 24, 47, 0.95);
  --line: rgba(214, 180, 94, 0.22);
  --text: #f8f1e3;
  --muted: #c8c2b3;
  --gold: #e4c77e;
  --gold-strong: #f0d58d;
  --success: rgba(40, 163, 106, 0.22);
  --warning: rgba(211, 149, 33, 0.22);
  --danger: rgba(176, 55, 73, 0.24);
  --info: rgba(31, 106, 191, 0.24);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(34,45,89,.7), transparent 38%),
    linear-gradient(180deg, #05070d 0%, #04070f 100%);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: var(--gold-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { font-size: 22px; font-weight: 700; color: var(--gold-strong); }
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
}
.page { padding: 26px 0 44px; }
.panel {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}
.narrow { width: min(760px, 100%); margin: 0 auto 18px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 10px;
}
h1, h2, h3, p, pre { margin-top: 0; }
h1 { font-size: 28px; margin-bottom: 14px; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { color: var(--text); }
.feature-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.no-top-gap { margin-top: 0; }
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.dashboard-grid { align-items: start; }
.form-grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--text); }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(2, 6, 18, .9);
  color: var(--text);
}
textarea { resize: vertical; min-height: 110px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
button, .link-btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 15px;
}
.primary { background: var(--gold); color: #1e1607; }
.secondary, .link-btn {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.07);
}
.small { padding: 10px 12px; font-size: 13px; }
.wide-btn { width: 100%; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-links { display: grid; gap: 10px; margin-top: 14px; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.flash-success { background: var(--success); }
.flash-warning { background: var(--warning); }
.flash-danger { background: var(--danger); }
.flash-info { background: var(--info); word-break: break-all; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 18px; }
.compact-gap { grid-template-columns: repeat(4, 1fr); }
.smtp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card, .mini-card {
  background: linear-gradient(135deg, rgba(24,32,60,.95), rgba(18,26,48,.95));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.stat-card span, .mini-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong, .mini-card strong { font-size: 18px; }
.progress-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.filters-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.filters-actions { display: flex; gap: 10px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.admin-table th { text-align: left; color: var(--gold); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.cell-title { font-weight: 700; margin-bottom: 6px; }
.cell-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.actions-col { display: grid; gap: 10px; }
.actions-col form { display: grid; gap: 8px; }
.actions-col-v2 { min-width: 280px; }
.admin-action-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.action-pills { display: grid; gap: 8px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-actions form { display: block; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-active { background: rgba(40, 163, 106, .22); }
.badge-suspended { background: rgba(211, 149, 33, .22); }
.badge-blocked { background: rgba(176, 55, 73, .24); }
.badge-role { background: rgba(50, 96, 173, .24); }
.empty-row { text-align: center; color: var(--muted); }
.admin-head-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.smtp-mini-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.smtp-config-panel.smtp-ok { border-color: rgba(40, 163, 106, .35); }
.smtp-config-panel.smtp-dev { border-color: rgba(211, 149, 33, .35); }
.smtp-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.code-box {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 18, .9);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  white-space: pre-wrap;
}
.admin-detail-grid { align-items: start; }
.detail-grid-4 { grid-template-columns: repeat(4, 1fr); }
.detail-list { display: grid; gap: 12px; }
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.detail-list > div span { color: var(--muted); }
.detail-list > div strong { text-align: right; }
.detail-actions { align-content: start; }
@media (max-width: 980px) {
  .split-grid, .two-col, .filters-grid, .stats-grid, .compact-gap, .progress-grid, .smtp-grid-3, .detail-grid-4, .smtp-config-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner, .admin-head-panel, .smtp-mini-panel { flex-direction: column; align-items: stretch; }
  .nav { justify-content: center; }
  .split-grid, .two-col, .filters-grid, .stats-grid, .compact-gap, .progress-grid, .smtp-grid-3, .detail-grid-4, .smtp-config-grid { grid-template-columns: 1fr; }
  .filters-actions, .inline-actions, .admin-head-actions { flex-direction: column; }
  .actions-col form, .admin-action-row { grid-template-columns: 1fr; }
  .detail-list > div { flex-direction: column; }
}


.journal-filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.journal-list-grid { display: grid; gap: 18px; }
.journal-card { padding: 22px; }
.journal-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.journal-title { margin-bottom: 6px; }
.journal-title a { color: var(--text); }
.journal-title a:hover { color: var(--gold-strong); text-decoration: none; }
.journal-subtitle { color: var(--muted); margin-bottom: 0; }
.journal-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; color: var(--muted); font-size: 14px; }
.journal-description { color: var(--text); }
.transcript-box { padding: 16px; border-radius: 16px; background: rgba(2, 6, 18, .9); border: 1px solid rgba(255,255,255,.08); white-space: pre-wrap; line-height: 1.6; color: var(--muted); }
.transcript-detail { min-height: 180px; }
.journal-actions { margin-top: 14px; }
.empty-state { text-align: center; }
.record-card { display: grid; gap: 14px; }
.record-toolbar { display: flex; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--muted); }
.audio-player { width: 100%; margin-top: 4px; }
.journal-new-grid { align-items: start; }
@media (max-width: 980px) {
  .journal-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .journal-card-head { flex-direction: column; }
  .journal-meta { justify-content: flex-start; }
  .record-toolbar { flex-direction: column; }
  .journal-filters { grid-template-columns: 1fr; }
}

/* ==================================================
   Dashboard concept v8 â€” background image shell
   ================================================== */

body.concept-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(40, 60, 120, 0.25), transparent 35%),
    linear-gradient(180deg, #020611 0%, #040813 100%);
}

.concept-shell {
  width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 48px;
  display: grid;
  grid-template-columns: minmax(320px, 880px) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.concept-phone-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 176, 92, 0.2);
  background: #02050d;
}

.concept-background {
  display: block;
  width: 100%;
  height: auto;
}

.concept-top-button {
  position: absolute;
  top: 2.2%;
  width: 9.2%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.concept-top-button:hover {
  transform: scale(1.035);
  box-shadow: 0 0 0 2px rgba(61, 228, 255, 0.45);
  background: rgba(61, 228, 255, 0.08);
}

.concept-bell {
  right: 15.6%;
}

.concept-menu {
  right: 3.7%;
}

.concept-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8.7%;
}

.concept-nav-hit {
  position: absolute;
  bottom: 8%;
  width: 22%;
  height: 70%;
  border-radius: 999px;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
}

.concept-nav-hit:hover {
  box-shadow: inset 0 0 0 2px rgba(61, 228, 255, 0.55), 0 0 0 1px rgba(212, 176, 92, 0.3);
}

.concept-nav-1 { left: 3.8%; }
.concept-nav-2 { left: 27.8%; }
.concept-nav-3 { left: 51.8%; }
.concept-nav-4 { left: 75.8%; }

.concept-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(2px);
  z-index: 60;
}

.concept-panel {
  position: fixed;
  top: 16px;
  bottom: 16px;
  width: min(360px, calc(100% - 24px));
  background: linear-gradient(180deg, rgba(14, 24, 58, 0.97), rgba(7, 12, 28, 0.97));
  border: 1px solid rgba(212, 176, 92, 0.2);
  border-radius: 24px;
  padding: 20px;
  z-index: 70;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.concept-panel-right { right: 16px; }
.concept-panel-left { left: 16px; }

.concept-panel[hidden],
.concept-panel-backdrop[hidden] {
  display: none !important;
}

.concept-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.concept-panel-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.concept-panel-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
}

.concept-panel-note {
  color: var(--muted);
  margin: 0 0 16px;
}

.concept-panel-list,
.concept-notifications {
  display: grid;
  gap: 10px;
}

.concept-panel-list a,
.concept-notifications li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 176, 92, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
}

.concept-panel-list a {
  color: var(--text);
  text-decoration: none;
}

.concept-panel-list a:hover {
  background: rgba(61, 228, 255, 0.08);
}

.concept-notifications {
  list-style: none;
  padding: 0;
  margin: 0;
}

.concept-notifications strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}

.concept-legend {
  display: grid;
  gap: 16px;
  align-self: stretch;
}

.concept-legend-card {
  background: linear-gradient(180deg, rgba(16, 28, 66, 0.92), rgba(9, 16, 34, 0.92));
  border: 1px solid rgba(212, 176, 92, 0.18);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.concept-legend-card h1,
.concept-legend-card h2 {
  margin-top: 0;
}

.concept-legend-card p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .concept-shell {
    grid-template-columns: 1fr;
  }

  .concept-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .concept-shell {
    width: min(100%, calc(100% - 8px));
    padding-top: 4px;
    gap: 14px;
  }

  .concept-phone-frame {
    border-radius: 18px;
  }

  .concept-legend {
    grid-template-columns: 1fr;
    padding: 0 8px;
  }
}


/* ==================================================
   Dashboard mobile-first v10
   ================================================== */
.mobile-dashboard-body {
  margin: 0;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(43, 59, 121, 0.20), transparent 34%), linear-gradient(180deg, #020611 0%, #050914 100%);
}
.mobile-dashboard-page {
  width: 100%;
  height: 100svh;
  margin: 0 auto;
  min-height: 100svh;
  padding: 0;
  display: grid;
  place-items: center;
}
.mobile-flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-dashboard-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.mobile-dashboard-frame {
  position: relative;
  width: min(100vw, calc(100svh * 1152 / 2048), 480px);
  margin: 0 auto;
  aspect-ratio: 1152 / 2048;
  height: min(100svh, calc(100vw * 2048 / 1152));
  max-height: 100svh;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 50% 18%, rgba(208, 79, 255, .24), transparent 18%),
    radial-gradient(circle at 50% 42%, rgba(0, 225, 255, .10), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(50, 255, 119, .11), transparent 34%),
    linear-gradient(180deg, #020611 0%, #040715 48%, #02040c 100%);
  box-shadow: 0 22px 48px rgba(0,0,0,.42);
}
.mobile-dashboard-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.10) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(209, 86, 255, .28), transparent 58%);
  background-size: 28px 28px, auto;
  filter: blur(.2px);
  opacity: .72;
  z-index: 0;
}
.mobile-dashboard-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 58%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 22px rgba(191, 77, 255, .045),
    0 0 0 48px rgba(43, 224, 255, .035),
    0 0 72px rgba(204, 76, 255, .24),
    inset 0 0 44px rgba(41, 224, 255, .10);
  opacity: .86;
  z-index: 0;
}
.mobile-dashboard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  z-index: 0;
  background: #020611;
  opacity: 0;
  visibility: hidden;
}
.mobile-dashboard-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.mobile-dashboard-topbar-right {
  justify-content: flex-end;
}
.mobile-top-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(21, 8, 55, .94), rgba(11, 5, 24, .96));
  border: 2px solid rgba(217, 92, 255, .72);
  backdrop-filter: blur(16px);
  color: #fff;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 24px rgba(199, 58, 255, .72),
    0 0 46px rgba(123, 56, 255, .34);
  text-shadow: 0 0 8px rgba(255,255,255,.72);
}
.mobile-bell-btn {
  color: #ffe681;
  border-color: rgba(255, 225, 91, .78);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 26px rgba(255, 215, 89, .66),
    0 0 46px rgba(255, 168, 46, .28),
    0 0 38px rgba(217, 92, 255, .22);
}
.mobile-menu-btn {
  border-color: rgba(78, 234, 255, .68);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 25px rgba(78, 234, 255, .60),
    0 0 44px rgba(78, 234, 255, .24),
    0 0 36px rgba(217, 92, 255, .22);
}
.mobile-top-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #dffbff;
  border-radius: 999px;
  margin: 2px 0 2px -5px;
  box-shadow: 0 0 8px rgba(255,255,255,.86), 0 0 16px rgba(78,234,255,.76), 0 0 22px rgba(217,92,255,.42);
}
.mobile-bell-btn::before {
  content: "\1F514";
  font-size: 20px;
  color: #ffe681;
  transform: translateX(-15%);
  filter:
    drop-shadow(0 0 5px rgba(255,255,255,.72))
    drop-shadow(0 0 10px rgba(255,219,84,.88))
    drop-shadow(0 0 18px rgba(255,73,119,.35));
}
.mobile-bell-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff315f;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  border: 1px solid rgba(255,255,255,.65);
  text-shadow: 0 0 7px rgba(255,255,255,.88);
  box-shadow: 0 0 10px rgba(255,49,95,.92), 0 0 18px rgba(255,49,95,.55);
}
.mobile-bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 76px;
  border-radius: 22px;
  background: rgba(5, 10, 25, 0.48);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 7px;
  z-index: 3;
}
.mobile-nav-item {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  text-align: center;
  border-radius: 18px;
  color: #fff;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(21, 8, 55, .96), rgba(23, 5, 23, .96));
  border: 2px solid rgba(217, 92, 255, .95);
  padding: 0 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.42) inset,
    0 0 22px rgba(199, 58, 255, .80),
    0 0 42px rgba(123, 56, 255, .36);
  text-shadow: 0 0 8px rgba(255,255,255,.80), 0 0 16px rgba(255,255,255,.45);
}
.mobile-nav-item:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.mobile-nav-finger {
  justify-content: flex-start;
  padding-left: clamp(8px, 2.4vw, 16px);
  padding-right: clamp(18px, 4vw, 30px);
}
.mobile-nav-item::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.mobile-nav-recordings {
  background: linear-gradient(90deg, rgba(2, 76, 33, .98), rgba(4, 52, 25, .98));
  border-color: rgba(44, 255, 97, .96);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.40) inset,
    0 0 24px rgba(45, 255, 97, .75),
    0 0 46px rgba(33, 212, 91, .34);
}
.mobile-nav-orb {
  flex: 0 0 auto;
  width: clamp(34px, 8vw, 44px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 0 14px rgba(255,255,255,.55), inset 0 0 18px rgba(255,255,255,.10);
}
.mobile-nav-orb svg {
  width: 63%;
  height: 63%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-panel-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(205, 79, 255, .16), transparent 28%),
    rgba(0,0,0,.62);
  z-index: 4;
}
.mobile-side-panel {
  position: absolute;
  top: 72px;
  bottom: 96px;
  width: min(86%, 340px);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 88, 255, .18), transparent 34%),
    linear-gradient(180deg, rgba(7, 10, 29, .97), rgba(3, 6, 16, .98));
  border: 1px solid rgba(217, 92, 255, .26);
  backdrop-filter: blur(18px);
  z-index: 5;
  padding: 18px;
  overflow: auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 34px rgba(199, 58, 255, .22),
    0 20px 60px rgba(0,0,0,.46);
}
.mobile-side-panel-left { left: 12px; border-radius: 24px 24px 24px 12px; }
.mobile-side-panel-right { right: 12px; border-radius: 24px 24px 12px 24px; }
.mobile-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.mobile-panel-header h2 {
  margin: 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.58), 0 0 22px rgba(217,92,255,.42);
}
.mobile-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(18, 8, 44, .86);
  color: #fff;
  border: 1px solid rgba(217, 92, 255, .58);
  box-shadow: 0 0 14px rgba(199,58,255,.42), inset 0 0 0 1px rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 2px 0 2px 0;
  text-indent: -5px;
}
.mobile-notification-block,
.mobile-menu-list {
  display: grid;
  gap: 12px;
}
.mobile-notification-item,
.mobile-menu-list a {
  position: relative;
  padding: 14px;
  border-radius: 17px;
  background: linear-gradient(90deg, rgba(21, 8, 55, .92), rgba(12, 8, 36, .94));
  border: 1px solid rgba(217, 92, 255, .46);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 18px rgba(199,58,255,.24);
  text-shadow: 0 0 8px rgba(255,255,255,.40);
  overflow: hidden;
  text-decoration: none;
}
.mobile-menu-list a:hover {
  text-decoration: none;
  transform: translateX(-2px);
}
.mobile-notification-item::before,
.mobile-menu-list a::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.mobile-notification-item strong { display: block; margin-bottom: 6px; color: #fff; }
.mobile-notification-item p { margin: 0; color: rgba(248,241,227,.82); }
.mobile-notification-item.kind-przypomnienie {
  border-color: rgba(255, 224, 105, .52);
  box-shadow: 0 0 18px rgba(255, 224, 105, .20), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mobile-notification-item.kind-zaleglosc {
  border-color: rgba(255, 49, 95, .50);
  box-shadow: 0 0 18px rgba(255, 49, 95, .22), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mobile-notification-item.kind-upgrade {
  border-color: rgba(78, 234, 255, .46);
  box-shadow: 0 0 18px rgba(78, 234, 255, .20), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mobile-notification-item.kind-nagranie {
  border-color: rgba(44, 255, 97, .46);
  box-shadow: 0 0 18px rgba(44, 255, 97, .20), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mobile-menu-list a.mobile-menu-admin-link {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
  color: rgba(248,241,227,.78);
  box-shadow: none;
  text-shadow: none;
}
.mobile-menu-list a.mobile-menu-admin-link::before {
  display: none;
}
.mobile-live-time-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(4, 42, 58, .48), rgba(23, 8, 56, .54));
  border: 1px solid rgba(78, 234, 255, .34);
  box-shadow: 0 0 22px rgba(78,234,255,.12), inset 0 0 0 1px rgba(255,255,255,.05);
}
.mobile-live-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mobile-live-time-row span {
  color: rgba(248,241,227,.76);
  font-size: 13px;
}
.mobile-live-time-row strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: .04em;
  text-shadow: 0 0 9px rgba(255,255,255,.52), 0 0 16px rgba(78,234,255,.32);
}

.mobile-dashboard-spacer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 420px) {
  .mobile-dashboard-page { padding-left: 0; padding-right: 0; }
  .mobile-dashboard-frame { border-radius: 0; width: min(100vw, calc(100svh * 1152 / 2048)); height: min(100svh, calc(100vw * 2048 / 1152)); max-height: 100svh; }
  .mobile-dashboard-topbar { top: 12px; left: 12px; right: 12px; }
  .mobile-top-icon { width: 48px; height: 48px; }
  .mobile-bottom-nav { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 70px; gap: 6px; padding: 6px; }
  .mobile-nav-item { font-size: 11px; }
}

/* ==================================================
   Voice journal simplification v10
   ================================================== */
.speech-instructions-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(228, 199, 126, .18);
  background: rgba(228, 199, 126, .08);
  margin-bottom: 16px;
}
.speech-instructions-box > strong {
  display: block;
  margin-bottom: 8px;
}
.speech-instructions-box li strong {
  display: inline;
  margin-bottom: 0;
}
.speech-instructions-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.cycle-report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cycle-report-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24,32,60,.95), rgba(18,26,48,.95));
  border: 1px solid var(--line);
}
.cycle-report-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.cycle-report-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}
.cycle-report-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
@media (max-width: 980px) {
  .cycle-report-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cycle-report-grid { grid-template-columns: 1fr; }
}

.speech-instructions-box ol { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.speech-instructions-box p { margin-top: 10px; margin-bottom: 0; }


/* V15 fix: keep full V12 layout and add V14 recorder overlay only */
.journal-new-grid-mobile-order {
  align-items: start;
}

.speech-instructions-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.speech-instructions-box ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.journal-mobile-first-panel .form-grid {
  margin-top: 18px;
}

.record-card {
  display: grid;
  gap: 16px;
}

.record-intro {
  margin: 0;
}

.record-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.record-result {
  display: grid;
  gap: 14px;
}

.transcript-live-box {
  display: grid;
  gap: 8px;
}

.transcript-live-box textarea {
  min-height: 180px;
}

.transcript-hint {
  margin: 0;
}

.audio-player {
  width: 100%;
}

.recorder-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}

.recorder-overlay[hidden] {
  display: none !important;
}

.mobile-panel-backdrop[hidden],
.mobile-side-panel[hidden] {
  display: none !important;
}

.recorder-modal {
  width: min(520px, 100%);
  margin: 0;
}

.recorder-timer {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--gold-strong, #f0d58d);
  margin: 10px 0 14px;
}

.overlay-toolbar {
  justify-content: center;
}

.overlay-warning {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(176, 55, 73, 0.18);
  border: 1px solid rgba(176, 55, 73, 0.32);
  color: var(--text, #f8f1e3);
}

body.overlay-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .journal-new-grid-mobile-order {
    grid-template-columns: 1fr;
  }

  .record-toolbar {
    flex-direction: column;
  }

  .recorder-modal {
    width: 100%;
    padding: 20px;
  }

  .recorder-timer {
    font-size: 34px;
  }
}


/* V16 nagrania flow fix */
.compact-under-title {
  margin-top: 10px;
  margin-bottom: 18px;
}

.compact-under-title > strong {
  display: block;
  margin-bottom: 6px;
}

.recorder-inline-instructions {
  margin-bottom: 12px;
}

.compact-under-title ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.journal-recorder-panel h2 {
  margin-bottom: 10px;
}

.record-toolbar.overlay-toolbar {
  display: grid;
  grid-template-columns: 1fr;
}

.record-toolbar.overlay-toolbar button {
  width: 100%;
}

.record-result[hidden] {
  display: none !important;
}

.recorder-modal.busy {
  pointer-events: auto;
}

@media (max-width: 720px) {
  .compact-under-title {
    padding: 16px;
  }
}


/* V17 mobile recorder stability */
.record-hidden-input { display: none !important; }
button[data-toggle-password].is-active { background: rgba(255,255,255,.14); }
.recorder-modal.busy .primary,
.recorder-modal.busy .secondary { opacity: .9; }
.recorder-modal .overlay-toolbar button:disabled { opacity: .55; cursor: not-allowed; }


/* Mobile voice journal neon screen */
.voice-mobile-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(65, 255, 149, .18), transparent 34%),
    radial-gradient(circle at 80% 24%, rgba(195, 74, 255, .18), transparent 30%),
    linear-gradient(180deg, #030815 0%, #02040d 100%);
  color: #fff;
}

.voice-mobile-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));
}

.voice-mobile-shell {
  width: min(470px, 100%);
  min-height: calc(100svh - 20px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(43, 255, 112, .34);
  background:
    radial-gradient(circle at 50% 16%, rgba(45, 255, 121, .18), transparent 32%),
    radial-gradient(circle at 50% 84%, rgba(189, 55, 255, .17), transparent 34%),
    rgba(5, 10, 24, .88);
  box-shadow:
    0 0 36px rgba(43, 255, 112, .16),
    0 0 72px rgba(173, 54, 255, .12),
    inset 0 0 0 1px rgba(255,255,255,.05);
}

.voice-mobile-flashes {
  width: min(470px, 100%);
  margin-bottom: 12px;
}

.voice-mobile-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 6px 4px 2px;
}

.voice-mobile-back {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(47, 255, 113, .75);
  background: rgba(4, 47, 24, .88);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    0 0 16px rgba(45,255,105,.50),
    inset 0 0 18px rgba(255,255,255,.08);
}

.voice-mobile-kicker {
  display: block;
  color: #6dff9d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(72,255,130,.64);
}

.voice-mobile-head h1,
.voice-mobile-modal-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255,255,255,.24);
}

.voice-mobile-card {
  border-radius: 22px;
  border: 1px solid rgba(47, 255, 113, .24);
  background: rgba(8, 16, 35, .82);
  box-shadow:
    0 0 24px rgba(43,255,112,.10),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.voice-mobile-form-card {
  padding: 16px;
}

.voice-mobile-form-card label {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.voice-mobile-form-card input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(44,255,97,.40);
  background: rgba(1, 5, 14, .86);
  color: #fff;
  padding: 0 14px;
  box-shadow: inset 0 0 14px rgba(42,255,102,.08);
}

.voice-mobile-form-card input:focus {
  outline: none;
  border-color: rgba(44,255,97,.92);
  box-shadow: 0 0 18px rgba(42,255,102,.30), inset 0 0 14px rgba(42,255,102,.10);
}

.voice-mobile-recorder-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 20px 16px 18px;
}

.voice-mobile-guide {
  padding: 14px 16px;
  color: rgba(226,255,236,.88);
}

.voice-mobile-guide strong {
  display: block;
  margin-bottom: 8px;
  color: #7dffad;
  text-shadow: 0 0 12px rgba(45,255,105,.55);
}

.voice-mobile-guide ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.voice-mobile-orb {
  width: 114px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.58);
  background: radial-gradient(circle, rgba(54,255,126,.28), rgba(4,60,28,.90) 62%, rgba(2,27,17,.98));
  box-shadow:
    0 0 22px rgba(44,255,97,.70),
    0 0 46px rgba(44,255,97,.28),
    inset 0 0 20px rgba(255,255,255,.13);
}

.voice-mobile-orb svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.78)) drop-shadow(0 0 18px rgba(48,255,112,.84));
}

.voice-mobile-record-card {
  width: 100%;
}

.voice-neon-primary,
.voice-neon-submit,
.voice-mobile-secondary {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 2px solid rgba(44, 255, 97, .96);
  background: linear-gradient(90deg, rgba(2, 76, 33, .98), rgba(4, 52, 25, .98));
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.42) inset,
    0 0 22px rgba(44,255,97,.78),
    0 0 44px rgba(44,255,97,.34);
  text-shadow: 0 0 10px rgba(255,255,255,.82), 0 0 20px rgba(44,255,97,.70);
}

.voice-neon-primary {
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 0 18px 0 8px;
  cursor: pointer;
}

.voice-neon-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.86);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 14px rgba(255,255,255,.56), inset 0 0 12px rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}

.voice-neon-dot svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.72)) drop-shadow(0 0 12px rgba(45,255,105,.76));
}

.voice-mobile-status {
  margin: 0;
  color: rgba(226,255,236,.78);
  text-align: center;
}

.voice-mobile-modal [data-overlay-status] {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin: 2px 0 18px;
  line-height: 1.28;
}

.voice-mobile-modal .overlay-toolbar .voice-neon-primary,
.voice-mobile-modal .overlay-toolbar .secondary {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0 16px;
  text-align: center;
  white-space: nowrap;
  min-height: 54px;
  width: 100%;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.voice-mobile-modal .overlay-toolbar .secondary {
  border: 2px solid rgba(44, 255, 97, .76);
  background: linear-gradient(90deg, rgba(2, 54, 28, .94), rgba(5, 31, 20, .96));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.24) inset,
    0 0 18px rgba(44,255,97,.38);
  text-shadow: 0 0 9px rgba(255,255,255,.66), 0 0 16px rgba(44,255,97,.45);
}

.voice-mobile-modal .overlay-toolbar .voice-neon-stop {
  border-color: rgba(217, 92, 255, .96);
  background: linear-gradient(90deg, rgba(51, 12, 96, .96), rgba(24, 6, 50, .98));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.30) inset,
    0 0 22px rgba(199,58,255,.76),
    0 0 42px rgba(123,56,255,.34);
  text-shadow: 0 0 10px rgba(255,255,255,.78), 0 0 18px rgba(217,92,255,.72);
}

.voice-mobile-modal .overlay-toolbar .voice-neon-close {
  border-color: rgba(255, 68, 92, .98);
  background: linear-gradient(90deg, rgba(120, 12, 24, .96), rgba(54, 4, 15, .98));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.30) inset,
    0 0 22px rgba(255,68,92,.78),
    0 0 42px rgba(255,35,78,.35);
  text-shadow: 0 0 10px rgba(255,255,255,.78), 0 0 18px rgba(255,68,92,.72);
}

.voice-technical-hint[hidden] {
  display: none !important;
}

.voice-mobile-result {
  width: 100%;
}

.voice-mobile-secondary {
  min-height: 48px;
  border-color: rgba(201, 80, 255, .76);
  background: linear-gradient(90deg, rgba(42, 12, 86, .88), rgba(22, 7, 43, .92));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.28) inset,
    0 0 18px rgba(199,58,255,.42);
}

.voice-journal-user-shell {
  align-content: start;
  border-color: rgba(217, 92, 255, .52);
  background:
    radial-gradient(circle at 50% 16%, rgba(199, 58, 255, .18), transparent 32%),
    radial-gradient(circle at 50% 84%, rgba(45, 255, 121, .13), transparent 34%),
    rgba(5, 10, 24, .88);
  box-shadow:
    0 0 36px rgba(199, 58, 255, .20),
    0 0 72px rgba(123, 56, 255, .14),
    inset 0 0 0 1px rgba(255,255,255,.05);
}

.voice-journal-user-list {
  display: grid;
  gap: 14px;
}

.voice-journal-user-card {
  padding: 16px;
}

.voice-journal-card-head,
.admin-voice-test-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voice-journal-card-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.16;
}

.voice-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.22);
}

.voice-status-pill.is-ready {
  color: #d9ffe5;
  background: rgba(25, 140, 61, .34);
  border-color: rgba(55,255,115,.55);
  box-shadow: 0 0 16px rgba(44,255,97,.25);
}

.voice-status-pill.is-pending {
  color: #fff0bf;
  background: rgba(130, 95, 18, .34);
  border-color: rgba(255,216,91,.52);
  box-shadow: 0 0 16px rgba(255,216,91,.18);
}

.voice-status-pill.is-empty {
  color: #ffd4dc;
  background: rgba(116, 21, 42, .34);
  border-color: rgba(255,68,92,.50);
}

.voice-journal-snippet {
  margin: 12px 0 0;
  color: rgba(226,255,236,.84);
  line-height: 1.45;
}

.voice-journal-snippet.muted {
  color: rgba(226,255,236,.64);
}

.admin-voice-test-panel {
  margin-top: 20px;
}

.admin-voice-test-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-voice-test-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.admin-voice-test-head strong,
.admin-voice-test-head span {
  display: block;
}

.admin-voice-test-head span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.admin-voice-test-title {
  color: #eec7ff !important;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(199,58,255,.45);
}

.admin-voice-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-voice-test-text {
  max-height: 220px;
  overflow: auto;
}

.admin-voice-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(199,58,255,.28);
  box-shadow: inset 0 0 10px rgba(0,0,0,.35);
}

.admin-voice-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37ff77, #d95cff);
  box-shadow: 0 0 14px rgba(55,255,119,.62), 0 0 22px rgba(217,92,255,.35);
}

.voice-mobile-overlay {
  padding: 10px 16px;
  align-items: stretch;
  justify-items: center;
}

.voice-mobile-modal {
  width: min(520px, 100%);
  height: calc(100svh - 20px);
  max-height: calc(100svh - 20px);
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(47,255,113,.32);
  background: rgba(6, 11, 28, .96);
  box-shadow: 0 0 40px rgba(43,255,112,.20), 0 0 80px rgba(173,54,255,.16);
  display: grid;
  align-content: center;
  gap: 14px;
}

.voice-mobile-timer {
  color: #7dffad;
  text-shadow: 0 0 16px rgba(45,255,105,.70);
}

@media (min-width: 760px) {
  .voice-mobile-page {
    align-items: stretch;
  }

  .voice-mobile-shell {
    min-height: calc(100svh - 20px);
  }

  .voice-mobile-overlay {
    align-items: stretch;
  }

  .voice-mobile-modal {
    align-self: center;
    height: calc(100svh - 20px);
  }
}

@media (max-width: 520px) {
  .voice-mobile-page {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    place-items: stretch;
  }

  .voice-mobile-shell {
    width: 100%;
    min-height: 100svh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 18px 14px;
  }

  .voice-mobile-overlay {
    padding: 0;
  }

  .voice-mobile-modal {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }

  .voice-mobile-flashes {
    width: 100%;
    padding: 0 14px;
  }

  .voice-mobile-head h1 {
    font-size: 24px;
  }

  .voice-mobile-orb {
    width: 104px;
  }
}



.voice-journal-transcript-scroll {
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(55,255,115,.28);
  background: rgba(3, 8, 22, .78);
  color: rgba(226,255,236,.9);
  line-height: 1.5;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(55,255,115,.75) rgba(3,8,22,.6);
}

.voice-journal-transcript-scroll::-webkit-scrollbar {
  width: 8px;
}

.voice-journal-transcript-scroll::-webkit-scrollbar-track {
  background: rgba(3,8,22,.6);
  border-radius: 999px;
}

.voice-journal-transcript-scroll::-webkit-scrollbar-thumb {
  background: rgba(55,255,115,.75);
  border-radius: 999px;
}

/* Popup zapisywania relacji i statusu transkrypcji */
.voice-save-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(172, 80, 255, .18), transparent 34%),
    rgba(13, 5, 28, .64);
  backdrop-filter: blur(8px);
}

.voice-save-overlay[hidden] {
  display: none !important;
}

.voice-save-modal {
  width: min(92vw, 420px);
  border: 1px solid rgba(215, 130, 255, .62);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  color: rgba(255,255,255,.94);
  background:
    linear-gradient(145deg, rgba(37, 10, 68, .96), rgba(13, 5, 32, .96)),
    radial-gradient(circle at top, rgba(255, 72, 220, .22), transparent 45%);
  box-shadow:
    0 0 24px rgba(190, 74, 255, .45),
    0 0 70px rgba(74, 154, 255, .22),
    inset 0 0 24px rgba(255,255,255,.05);
}

.voice-save-kicker {
  margin-bottom: 8px;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(234, 197, 255, .82);
}

.voice-save-modal h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(232, 116, 255, .72);
}

.voice-save-modal p {
  margin: 0;
  color: rgba(244, 236, 255, .82);
  line-height: 1.45;
}

.voice-save-loader {
  width: 42px;
  height: 42px;
  margin: 18px auto 0;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.16);
  border-top-color: rgba(245, 118, 255, .95);
  border-right-color: rgba(112, 190, 255, .88);
  animation: voiceSaveSpin 1s linear infinite;
  box-shadow: 0 0 22px rgba(211, 87, 255, .4);
}

@keyframes voiceSaveSpin {
  to { transform: rotate(360deg); }
}

.voice-progress-wrap {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.voice-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
  font-size: .88rem;
}

.voice-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 12px rgba(0,0,0,.35);
}

.voice-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 93, 255, .95), rgba(255, 92, 226, .95), rgba(92, 203, 255, .95));
  box-shadow: 0 0 18px rgba(232, 96, 255, .72);
  transition: width .35s ease;
}

.voice-progress-small {
  margin-top: 8px !important;
  font-size: .78rem;
  opacity: .72;
}

.voice-popup-close {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}

.voice-popup-close:hover {
  background: rgba(255,255,255,.14);
}

/* Admin: raport techniczny nagrań */
.technical-recordings-panel {
  border-color: rgba(127, 209, 116, .24);
  background:
    radial-gradient(circle at 20% 0%, rgba(127, 209, 116, .10), transparent 38%),
    rgba(255,255,255,.035);
}

.technical-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.technical-report-card {
  padding: .85rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.technical-report-card span {
  display: block;
  font-size: .78rem;
  opacity: .72;
  margin-bottom: .25rem;
}

.technical-report-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.technical-report-card.good {
  border-color: rgba(127, 209, 116, .35);
  box-shadow: 0 0 18px rgba(127, 209, 116, .10);
}

.technical-report-card.warning {
  border-color: rgba(255, 211, 105, .35);
}

.technical-report-card.danger {
  border-color: rgba(255, 102, 128, .35);
}

.technical-report-columns {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.technical-source-list {
  display: grid;
  gap: .5rem;
  padding: 0;
  margin: .75rem 0 0;
  list-style: none;
}

.technical-source-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .75rem;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.technical-attention-list {
  display: grid;
  gap: .65rem;
  margin-top: .75rem;
}

.technical-attention-item {
  padding: .75rem .85rem;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.technical-attention-item strong,
.technical-attention-item span {
  display: block;
}

.technical-attention-item span {
  margin-top: .15rem;
  font-size: .78rem;
  opacity: .72;
}

.technical-attention-item p {
  margin: .5rem 0 0;
  font-size: .82rem;
  opacity: .86;
}

@media (max-width: 780px) {
  .technical-report-columns {
    grid-template-columns: 1fr;
  }
}


/* === PLAZMATYCZNI 15B — WSPOLNY SZABLON PRZYCISKOW APLIKACJI === */
/*
  Wzorzec oparty o zaakceptowane przyciski z dashboardu:
  - Palec: fioletowy neon
  - Nagrania: zielony neon
  Warianty dodatkowe:
  - gold: złoty neon
  - danger: czerwony neon
*/

.plasma-action-btn {
  position: relative;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  text-align: center;
  color: #fff;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid rgba(217, 92, 255, .95);
  background: linear-gradient(90deg, rgba(21, 8, 55, .96), rgba(23, 5, 23, .96));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.42) inset,
    0 0 22px rgba(199, 58, 255, .80),
    0 0 42px rgba(123, 56, 255, .36);
  text-shadow:
    0 0 8px rgba(255,255,255,.80),
    0 0 16px rgba(255,255,255,.45);
  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease;
}

.plasma-action-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.plasma-action-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}

.plasma-action-btn__orb {
  flex: 0 0 auto;
  width: clamp(32px, 7vw, 40px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow:
    0 0 14px rgba(255,255,255,.55),
    inset 0 0 18px rgba(255,255,255,.10);
}

.plasma-action-btn__orb svg {
  width: 63%;
  height: 63%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wariant jak Palec — fioletowy neon */
.plasma-action-btn--violet {
  background: linear-gradient(90deg, rgba(21, 8, 55, .96), rgba(23, 5, 23, .96));
  border-color: rgba(217, 92, 255, .95);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.42) inset,
    0 0 22px rgba(199, 58, 255, .80),
    0 0 42px rgba(123, 56, 255, .36);
}

/* Wariant jak Nagrania — zielony neon */
.plasma-action-btn--green {
  background: linear-gradient(90deg, rgba(2, 76, 33, .98), rgba(4, 52, 25, .98));
  border-color: rgba(44, 255, 97, .96);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.40) inset,
    0 0 24px rgba(45, 255, 97, .75),
    0 0 46px rgba(33, 212, 91, .34);
  text-shadow:
    0 0 10px rgba(255,255,255,.82),
    0 0 20px rgba(44,255,97,.70);
}

/* Wariant złoty — dla profilu, zapisu, akcji premium */
.plasma-action-btn--gold {
  color: #2b1900;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,230,.62), transparent 42%),
    linear-gradient(135deg, rgba(255, 229, 126, .96), rgba(255, 174, 32, .92));
  border-color: rgba(255, 224, 132, .95);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.42) inset,
    0 0 18px rgba(255, 205, 80, .70),
    0 0 38px rgba(255, 190, 53, .46),
    0 0 74px rgba(255, 176, 28, .24),
    inset 0 0 22px rgba(255, 255, 220, .28);
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.plasma-action-btn--gold:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.45) inset,
    0 0 24px rgba(255, 217, 105, .82),
    0 0 52px rgba(255, 190, 53, .58),
    0 0 92px rgba(255, 176, 28, .34),
    inset 0 0 28px rgba(255, 255, 220, .36);
}

/* Wariant czerwony — powrót, zamknięcie, ostrożne akcje */
.plasma-action-btn--danger {
  color: #f6d66b;
  background: linear-gradient(180deg, rgba(14, 14, 18, .96), rgba(8, 8, 12, .98));
  border-color: rgba(255, 84, 84, .92);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.28) inset,
    0 0 22px rgba(255,68,92,.78),
    0 0 42px rgba(255,35,78,.35);
  text-shadow:
    0 0 10px rgba(255,255,255,.50),
    0 0 18px rgba(255,68,92,.52);
}

.plasma-action-btn--danger:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.30) inset,
    0 0 28px rgba(255,68,92,.92),
    0 0 56px rgba(255,35,78,.46);
}

.plasma-action-btn--full {
  width: 100%;
}

.plasma-action-btn--compact {
  min-height: 44px;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .plasma-action-btn {
    min-height: 46px;
    border-radius: 17px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .plasma-action-btn::before {
    border-radius: 13px;
  }
}
/* === /PLAZMATYCZNI 15B — WSPOLNY SZABLON PRZYCISKOW APLIKACJI === */

