@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;700;800&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --muted: #5f6d7a;
  --line: #dbe3eb;
  --accent: #b89b5b;
  --accent-soft: #f5f1e7;
  --danger: #cc3a2d;
  --radius: 14px;
  --shadow: 0 18px 42px rgba(13, 27, 42, 0.07);
  --font-heading: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

.auth-page {
  min-height: 100vh;
  background: var(--surface);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand {
  position: relative;
  background: var(--ink);
  color: #f6f8fb;
  border-right: 2px solid #0f1c2b;
  padding: clamp(32px, 8vh, 86px) 0 clamp(40px, 8vh, 86px) clamp(42px, 13vw, 220px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  top: -110px;
  left: -110px;
  width: 245px;
  height: 245px;
  border-radius: 999px;
  background: rgba(120, 140, 163, 0.2);
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  transform: translateY(34px);
}

.auth-logo {
  font-size: clamp(3.9rem, 4.2vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0 0 22px;
}

.auth-divider {
  display: block;
  width: 92px;
  height: 7px;
  background: var(--accent);
  margin-bottom: 30px;
}

.auth-brand-title {
  font-size: clamp(2.45rem, 2.5vw, 3.05rem);
  font-weight: 500;
  line-height: 1.12;
  color: #d3ddeb;
  margin: 0 0 20px;
}

.auth-brand-copy {
  color: #a8b6c9;
  line-height: 1.46;
  font-size: clamp(1.05rem, 1.1vw, 1.22rem);
  max-width: 500px;
}

.auth-login {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 8vh, 90px) clamp(20px, 8vw, 150px);
}

.auth-card {
  width: min(100%, 430px);
}

.auth-card h2 {
  text-align: center;
  font-size: clamp(2.95rem, 3vw, 3.55rem);
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-heading);
}

.auth-subtitle {
  text-align: center;
  color: #7087a6;
  margin-bottom: 42px;
  font-size: 1.08rem;
  font-family: var(--font-body);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: block;
}

.auth-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: #4f6685;
  margin-bottom: 9px;
}

.auth-field input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  color: #334b67;
  font: inherit;
  font-size: 1.06rem;
  line-height: 1;
  padding: 16px 14px;
  height: 54px;
}

.auth-field input::placeholder {
  color: #8ea2bb;
  font-size: 1.06rem;
  line-height: 1;
}

.auth-field input:focus {
  outline: none;
  border-color: #8ea8c5;
  box-shadow: 0 0 0 3px rgba(142, 168, 197, 0.14);
}

.auth-password-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.auth-forgot {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-submit {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #f9fbff;
  text-transform: uppercase;
  letter-spacing: 0.115em;
  font-weight: 800;
  font-size: 1.03rem;
  padding: 16px 16px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(7, 19, 39, 0.16);
  font-family: var(--font-heading);
}

.auth-submit:hover {
  filter: brightness(1.03);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-foot {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: #8fa1b9;
  text-align: center;
  font-size: 0.93rem;
}

.auth-error {
  margin: 0 0 10px;
  color: #b73a31;
  background: #fff4f3;
  border: 1px solid #f1ccc8;
  padding: 11px 13px;
  font-size: 0.95rem;
}

.workspace-page {
  margin: 0;
  background: #f1f4f8;
  color: var(--ink);
}

.workspace-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.workspace-sidebar {
  background: var(--ink);
  color: #d9e4f0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1d3047;
}

.workspace-brand {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-logo {
  font-family: var(--font-heading);
  font-size: 2.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.07em;
  margin: 0 0 6px;
}

.workspace-logo-sub {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.workspace-nav {
  display: grid;
  gap: 6px;
  padding: 14px 10px;
}

.workspace-nav-item {
  padding: 12px 12px;
  border-radius: 12px;
  color: #b8c8dd;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.workspace-nav-item.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.workspace-user {
  margin-top: auto;
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 22, 37, 0.45);
}

.workspace-profile-link.is-active {
  border-color: rgba(184, 155, 91, 0.46);
  background: rgba(184, 155, 91, 0.12);
}

.workspace-profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(184, 155, 91, 0.58);
  background: rgba(184, 155, 91, 0.13);
  color: #d9c08d;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-profile-meta {
  display: grid;
  gap: 2px;
}

.workspace-user-name {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.workspace-user-role {
  color: #a5bbd3;
  font-size: 0.82rem;
  line-height: 1.2;
}

.workspace-user-email {
  margin: 0 0 10px;
  color: #a5bbd3;
  font-size: 0.82rem;
}

.workspace-logout {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: #afc3da;
  text-decoration: none;
  font-size: 0.94rem;
  padding: 6px 8px;
  border-radius: 10px;
}

.workspace-logout:hover {
  background: rgba(255, 255, 255, 0.07);
}

.workspace-main {
  padding: 34px clamp(18px, 3vw, 40px);
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.workspace-head h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.4vw, 2.7rem);
  line-height: 1.1;
  color: var(--ink);
}

.workspace-head p {
  margin-top: 7px;
  color: #6f8095;
}

.workspace-main-profile .workspace-head {
  margin-bottom: 10px;
}

.workspace-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.05);
  overflow: hidden;
}

.profile-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #ffffff;
  color: #8aa0bd;
  padding: 18px 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.profile-tab.is-active {
  color: #0d1b2a;
  border-bottom-color: #0d1b2a;
}

.profile-tab-panel {
  display: none;
  padding: 30px 42px 36px;
}

.profile-tab-panel.is-active {
  display: block;
}

.profile-label {
  display: block;
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8aa0bd;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.profile-input {
  width: min(100%, 740px);
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid #d4dde7;
  background: #ffffff;
  padding: 0 18px;
  color: #1f3046;
  font: inherit;
  font-size: 1.02rem;
}

.profile-input:focus {
  outline: 2px solid rgba(13, 27, 42, 0.12);
  border-color: #a4b5c9;
}

.profile-input-readonly {
  background: #eef3f9;
  color: #5e7594;
}

.profile-btn-primary,
.profile-btn-secondary {
  margin-top: 24px;
  min-height: 56px;
  min-width: 250px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-btn-primary {
  background: #0d1b2a;
  color: #ffffff;
}

.profile-btn-secondary {
  background: #d7c29b;
  color: #354e6d;
}

.profile-security-note {
  width: min(100%, 740px);
  border: 1px solid #f0dfbc;
  border-radius: 18px;
  background: #fff8e8;
  padding: 18px 22px;
  margin: 8px 0 10px;
}

.profile-security-note h3 {
  margin: 0 0 8px;
  color: #8f4d15;
  font-size: 1.75rem;
}

.profile-security-note p {
  color: #a56630;
}

.profile-feedback {
  margin-top: 12px;
  width: min(100%, 740px);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.profile-feedback.is-success {
  background: #eef8f2;
  border: 1px solid #cae9d7;
  color: #2f7c54;
}

.profile-feedback.is-error {
  background: #fff3f2;
  border: 1px solid #f2d0cd;
  color: #b53f34;
}

.profile-connection {
  margin-top: 30px;
  width: min(100%, 740px);
  border: 1px solid #dce4ee;
  border-radius: 20px;
  padding: 18px 22px;
  background: #f8fbff;
}

.profile-connection-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8aa0bd;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-connection-line {
  margin-top: 8px;
  color: #0f7d53;
  font-size: 1.07rem;
  font-weight: 700;
}

.profile-connection-meta {
  margin-top: 4px;
  color: #5c7291;
}

.is-hidden {
  display: none !important;
}

.inside-hub {
  margin: 16px auto 0;
  max-width: 560px;
  min-height: min(72vh, 680px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.06);
  text-align: center;
}

.inside-record-btn {
  width: min(86vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.inside-record-icon {
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.inside-record-label {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3.3vw, 1.38rem);
  letter-spacing: 0.02em;
  font-weight: 800;
}

.inside-record-timer {
  font-family: var(--font-heading);
  color: #7d8fa5;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
}

.inside-record-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.inside-record-btn.is-recording {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(184, 155, 91, 0.18);
}

.inside-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
}

.inside-wave span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: insideWave 0.95s ease-in-out infinite;
}

.inside-wave span:nth-child(2) {
  animation-delay: 0.1s;
}

.inside-wave span:nth-child(3) {
  animation-delay: 0.2s;
}

.inside-wave span:nth-child(4) {
  animation-delay: 0.3s;
}

.inside-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

.inside-fallback-btn {
  min-height: 44px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.inside-status {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.inside-processing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 500;
}

.inside-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #d7dfe8;
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

.inside-success {
  margin: 0;
  color: #2f7c54;
  font-weight: 600;
}

.inside-error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  text-align: center;
}

.inside-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 25, 0.52);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 16px;
  z-index: 80;
}

.inside-modal-card {
  width: min(680px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.inside-modal-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--ink);
}

.inside-modal-card textarea {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.inside-modal-card textarea:focus {
  outline: 2px solid rgba(184, 155, 91, 0.22);
  border-color: var(--accent);
}

.inside-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ffffff;
  color: #607286;
}

.workspace-chip strong {
  font-family: var(--font-heading);
  margin-left: 3px;
}

.workspace-chip.pending {
  border-color: #ead8ae;
  background: #faf4e5;
  color: #957539;
}

.workspace-chip.done {
  border-color: #cbe8d9;
  background: #edf7f1;
  color: #2f7c54;
}

.workspace-chip.total {
  border-color: var(--line);
  background: #f4f7fa;
  color: #5d6f84;
}

.workspace-filters {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 9px;
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.05);
}

.workspace-search {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.workspace-search span {
  color: #8ca0b8;
  font-size: 0.9rem;
}

.workspace-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.workspace-search input:focus {
  outline: none;
}

.workspace-select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  color: var(--ink);
  padding: 0 10px;
}

.workspace-refresh {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.02rem;
  cursor: pointer;
}

.workspace-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.06);
}

.workspace-table {
  width: 100%;
  border-collapse: collapse;
}

.workspace-table th {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8497ae;
  text-align: left;
  background: #f7f9fc;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.workspace-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #2f4057;
  font-weight: 500;
}

.workspace-table tbody tr:last-child td {
  border-bottom: 0;
}

.workspace-origin {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #edf3ff;
  color: #2d5ec3;
  border: 1px solid #cfddfb;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #fdf2de;
  color: #9a6a16;
  border: 1px solid #f0deb4;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}

.workspace-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 700;
  background: #ffffff;
}

.barometer-hub {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.barometer-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.05);
}

.barometer-panel h2 {
  margin: 2px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.barometer-builder-grid,
.barometer-dashboard-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.barometer-field {
  display: grid;
  gap: 6px;
}

.barometer-field span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  color: #7e91a8;
  font-family: var(--font-heading);
  font-weight: 700;
}

.barometer-field input,
.barometer-field select,
.barometer-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.barometer-field textarea {
  min-height: 94px;
  resize: vertical;
}

.barometer-field input:focus,
.barometer-field select:focus,
.barometer-field textarea:focus {
  outline: 2px solid rgba(13, 27, 42, 0.11);
  border-color: #9fb1c7;
}

.barometer-field-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 18px;
}

.barometer-field-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.barometer-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.barometer-builder-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.barometer-questions {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.barometer-question-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fcfdff;
}

.barometer-question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.barometer-question-head h4 {
  margin: 0;
  font-size: 1rem;
}

.barometer-builder-actions,
.barometer-dashboard-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.barometer-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.barometer-kpis article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
}

.barometer-kpis p {
  margin: 0;
  color: #7388a0;
  font-size: 0.8rem;
}

.barometer-kpis h3 {
  margin-top: 4px;
  font-size: 1.46rem;
}

.barometer-charts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.barometer-analytics-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.barometer-analytics-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.barometer-bars {
  display: grid;
  gap: 6px;
}

.barometer-bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  color: #4b6079;
}

.barometer-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}

.barometer-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d1b2a 0%, #3f5f82 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.brand-line,
.step-tag,
.auth-logo,
.auth-brand-title,
.cta-btn,
.auth-submit {
  font-family: var(--font-heading);
}

.site-shell {
  width: min(1080px, 92vw);
  margin: 28px auto 64px;
}

.admin-head {
  margin-bottom: 18px;
}

.brand-line {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.admin-head h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.admin-head p {
  color: var(--muted);
  max-width: 760px;
}

.quiz-shell {
  width: min(900px, 92vw);
  margin: 24px auto 56px;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-wrap.hidden {
  display: none;
}

.progress-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5ebf1;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 220ms ease;
}

.screen {
  min-height: 460px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 34px);
}

.panel-animated {
  animation: panelIn 260ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-tag {
  margin-bottom: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}

.panel h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
}

.helper {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 20px;
  max-width: 720px;
}

.cards-grid {
  display: grid;
  gap: 10px;
}

.option-card {
  appearance: none;
  border: 1.4px solid var(--line);
  background: #ffffff;
  border-radius: 12px;
  min-height: 54px;
  text-align: left;
  padding: 0 14px;
  display: flex;
  align-items: center;
  width: 100%;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.option-card:hover {
  border-color: var(--ink);
  background: var(--accent-soft);
}

.option-card:active {
  transform: scale(0.996);
}

.option-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.actions-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.cta-btn,
.ghost-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn {
  background: var(--ink);
  color: #fff;
}

.cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ghost-btn {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.select-wrap {
  margin-top: 4px;
}

.select-input,
.email-input,
.admin-form input {
  width: 100%;
  appearance: none;
  border: 1.4px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

.select-input:focus,
.email-input:focus,
.admin-form input:focus {
  outline: 2px solid rgba(184, 155, 91, 0.22);
  border-color: var(--accent);
}

.input-label {
  display: block;
}

.loading-panel {
  text-align: center;
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid #d7dfe8;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

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

@keyframes insideWave {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

.narrow {
  max-width: 620px;
}

.welcome-panel {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.full-width {
  width: 100%;
}

.quiz-shell-campaign .screen {
  min-height: 520px;
}

.campaign-textarea {
  width: 100%;
  min-height: 190px;
  border: 1.4px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.campaign-textarea:focus {
  outline: 2px solid rgba(184, 155, 91, 0.22);
  border-color: var(--accent);
}

.dashboard-panel {
  display: grid;
  gap: 14px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpis div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
}

.dashboard-kpis p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-kpis strong {
  font-family: var(--font-heading);
  font-size: 1.52rem;
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.dashboard-card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.dashboard-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #44566a;
  margin-bottom: 6px;
}

.dashboard-line strong {
  color: var(--ink);
}

.dashboard-status {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card.status-red {
  border-color: #efc7c3;
  background: #fff7f6;
}

.dashboard-card.status-red .dashboard-status {
  color: #b83d31;
}

.dashboard-card.status-yellow {
  border-color: #efdfb6;
  background: #fffaf0;
}

.dashboard-card.status-yellow .dashboard-status {
  color: #9f741f;
}

.dashboard-card.status-green {
  border-color: #bde5cd;
  background: #f2fbf6;
}

.dashboard-card.status-green .dashboard-status {
  color: #2f7c54;
}

.dashboard-card.status-neutral .dashboard-status {
  color: #647689;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(92vw, 420px);
  border-radius: 999px;
  border: 1px solid #0e2a47;
  background: #0d1b2a;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(13, 27, 42, 0.26);
  z-index: 90;
}

.error-text,
.error-box {
  color: var(--danger);
  background: #fff4f3;
  border: 1px solid #f0cbc7;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.87rem;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-kpis article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.admin-kpis p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.admin-kpis h3,
.auth-logo,
.auth-brand-title {
  font-family: var(--font-heading);
}

.admin-kpis h3 {
  font-size: 1.5rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
}

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

  .workspace-sidebar {
    min-height: auto;
  }

  .workspace-nav {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-main {
    padding-top: 22px;
  }

  .profile-tab-panel {
    padding: 22px;
  }

  .profile-input,
  .profile-security-note,
  .profile-connection,
  .profile-feedback {
    width: 100%;
  }

  .workspace-filters {
    grid-template-columns: 1fr 1fr;
  }

  .barometer-builder-grid,
  .barometer-dashboard-controls,
  .barometer-charts {
    grid-template-columns: 1fr;
  }

  .barometer-kpis {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .workspace-search {
    grid-column: 1 / -1;
  }

  .inside-record-btn {
    width: min(84vw, 290px);
  }

  .inside-modal-card {
    padding: 16px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    border-right: 0;
    border-bottom: 2px solid #0d1622;
    min-height: 42vh;
    padding: 54px 24px 44px;
    align-items: center;
  }

  .auth-login {
    min-height: 58vh;
    justify-content: center;
    padding: 40px 24px 52px;
  }

  .auth-card {
    width: min(100%, 520px);
  }

  .auth-brand-inner {
    width: min(560px, 100%);
    transform: none;
  }

  .auth-logo {
    font-size: 3.4rem;
  }

  .auth-brand-title {
    font-size: 2.2rem;
  }

  .auth-brand-copy {
    font-size: 1.06rem;
  }

  .auth-subtitle {
    margin-bottom: 34px;
  }

  .auth-foot {
    margin-top: 44px;
  }

  .quiz-shell,
  .site-shell {
    width: 94vw;
    margin-top: 16px;
  }

  .screen {
    min-height: 420px;
  }

  .panel {
    padding: 18px;
  }

  .actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .inside-hub {
    min-height: min(68vh, 620px);
  }

  .inside-record-btn {
    width: min(90vw, 244px);
  }

  .inside-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .workspace-nav {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    grid-template-columns: 1fr;
  }

  .workspace-filters {
    grid-template-columns: 1fr;
  }

  .barometer-kpis {
    grid-template-columns: 1fr;
  }

  .workspace-table-wrap {
    overflow-x: auto;
  }

  .workspace-table {
    min-width: 720px;
  }

  .auth-brand {
    min-height: 36vh;
    align-items: center;
  }

  .auth-logo {
    font-size: 2.7rem;
    margin-bottom: 20px;
  }

  .auth-brand-title {
    font-size: 1.9rem;
  }

  .auth-brand-copy {
    font-size: 1rem;
  }

  .auth-label {
    font-size: 0.82rem;
    letter-spacing: 0.055em;
  }

  .auth-field input {
    height: 52px;
    font-size: 1rem;
  }

  .auth-field input::placeholder {
    font-size: 1rem;
  }

  .auth-password-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-submit {
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    padding: 14px 12px;
  }

  .auth-foot {
    font-size: 0.82rem;
    margin-top: 34px;
    padding-top: 22px;
  }

  .admin-kpis {
    grid-template-columns: 1fr;
  }
}
