:root {
  color-scheme: light;
  --bg: #f4f7f7;
  --panel: #ffffff;
  --panel-soft: #eef3f8;
  --line: #d9e1ea;
  --text: #17212b;
  --muted: #617081;
  --accent: #0f8f83;
  --accent-strong: #0b6b63;
  --warning: #b86b00;
  --danger: #b23a48;
  --info: #2f65b8;
  --shadow: 0 18px 48px rgba(20, 36, 56, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  box-sizing: border-box;
  max-width: 100%;
}

button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: rgba(15, 143, 131, 0.18);
}

button {
  -webkit-appearance: none;
  appearance: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  transition: grid-template-columns 0.2s ease;
}

.sidebar-collapsed .app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #10222d;
  color: #ecf5f5;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  gap: 22px;
  transition: padding 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.brand-home-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-home-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.topbar-logo {
  cursor: pointer;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-logo,
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f7f3;
  color: white;
  font-weight: 800;
}

.brand-logo {
  padding: 0;
  background: transparent;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-footer {
  color: rgba(236, 245, 245, 0.72);
  font-size: 0.86rem;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list.nested {
  gap: 8px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(236, 245, 245, 0.78);
  border-radius: 8px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-list.unlocked .nav-item {
  cursor: grab;
}

.nav-list.unlocked .nav-item:active {
  cursor: grabbing;
}

.nav-item.dragging {
  opacity: 0.55;
}

.nav-item.drag-over {
  border-color: #58d6c3;
  background: rgba(88, 214, 195, 0.16);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(15, 143, 131, 0.34), rgba(255, 255, 255, 0.1));
  border-color: rgba(88, 214, 195, 0.48);
  box-shadow: inset 4px 0 0 #58d6c3;
}

.nav-item.active .nav-icon {
  background: #58d6c3;
  border-color: #58d6c3;
  color: #10222d;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 245, 245, 0.9);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.nav-group.active .nav-group-toggle,
.nav-group-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-group-chevron {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(236, 245, 245, 0.64);
}

.nav-sublist {
  display: grid;
  gap: 4px;
  margin-left: 15px;
  padding-left: 12px;
  border-left: 1px solid rgba(88, 214, 195, 0.22);
}

.nav-group.collapsed .nav-sublist,
.nav-sublist[hidden] {
  display: none !important;
}

.nav-sublist .nav-item {
  padding: 9px 10px;
}

.nav-sublist .nav-icon {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-size: 1rem;
  flex: 0 0 auto;
}

.nav-label {
  min-width: 0;
  overflow: visible;
  text-overflow: ellipsis;
}

.nav-drag-handle {
  margin-left: auto;
  color: rgba(236, 245, 245, 0.52);
  font-size: 1.1rem;
  line-height: 1;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.menu-unlock-btn.active {
  border-color: rgba(88, 214, 195, 0.5);
  background: rgba(88, 214, 195, 0.16);
  color: #ecfdf5;
}

.sidebar-collapsed .sidebar {
  padding: 22px 14px;
  align-items: center;
}

.sidebar-collapsed .brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-collapsed .brand div,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-group-chevron,
.sidebar-collapsed .sidebar-footer {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  align-self: center;
  transform: rotate(180deg);
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 11px 0;
}

.sidebar-collapsed .nav-list {
  width: 100%;
}

.sidebar-collapsed .nav-group-toggle {
  justify-content: center;
  padding: 10px 0;
}

.sidebar-collapsed .nav-sublist {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.workspace {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: max(24px, env(safe-area-inset-top));
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.topbar-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.topbar-title h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.tenant-name-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 143, 131, 0.22);
  border-radius: 999px;
  background: #e7f7f3;
  color: var(--accent-dark);
  padding: 5px 10px;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.auth-screen h1 {
  max-width: 760px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.auth-screen .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.auth-screen .sidebar {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-bell,
.online-users-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.online-users-btn {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--primary);
}

.notification-bell em,
.online-users-btn em {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.online-users-btn em {
  background: var(--danger);
}

.dashboard-header-controls[hidden] {
  display: none;
}

.dashboard-header-menu {
  position: relative;
  z-index: 200;
  overflow: visible;
}

.dashboard-header-menu[open] {
  z-index: 10000;
}

.dashboard-header-menu summary {
  min-height: 40px;
  min-width: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 900;
  list-style: none;
  padding: 5px 10px;
}

.dashboard-header-menu summary::-webkit-details-marker {
  display: none;
}

.dashboard-widget-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10001;
  width: min(380px, calc(100vw - 80px));
  max-height: min(520px, 62vh);
  overflow: auto;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 34, 45, 0.16);
}

.dashboard-widget-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.dashboard-widget-menu input {
  flex: 0 0 auto;
}

.dashboard-widget-menu span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-widget-menu small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-edit-switch {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 0.92rem;
  font-weight: 900;
}

.dashboard-edit-switch input {
  accent-color: var(--accent);
}

.dashboard-column-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dashboard-column-switch .secondary-btn.active {
  border-color: var(--accent);
  background: #e7f7f3;
  color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(15, 143, 131, 0.08);
}

.top-login-btn {
  display: none;
  text-decoration: none;
}

.public-menu {
  display: none;
  align-items: center;
  gap: 8px;
}

.public-menu a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.public-menu a:hover {
  background: #e7f7f3;
  color: var(--accent-strong);
}

.auth-screen .public-menu {
  display: flex;
}

.auth-screen .top-login-btn {
  display: inline-grid;
  place-items: center;
}

.auth-screen .search-box,
.auth-screen #notificationBellBtn,
.auth-screen #onlineUsersBtn,
.auth-screen #dashboardHeaderControls,
.auth-screen #exportBtn,
.auth-screen #logoutBtn,
.auth-screen .import-label {
  display: none;
}

.auth-screen .sidebar-footer {
  display: none;
}

.search-box {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.search-box input {
  width: min(330px, 52vw);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  color: var(--text);
  max-width: 100%;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.content {
  padding: 28px 30px 48px;
  display: grid;
  gap: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metrics.compact {
  padding: 18px;
  background: #f9fbfd;
  border-bottom: 1px solid var(--line);
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(24, 39, 56, 0.05);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.metric strong {
  font-size: 1.7rem;
}

.backup-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.backup-status-grid .metric strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.restore-guide {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.restore-guide h3 {
  margin: 0 0 8px;
}

.restore-guide p {
  color: var(--muted);
  margin: 0 0 12px;
}

.restore-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.betatest-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.betatest-check {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.betatest-check strong,
.betatest-check span {
  display: block;
}

.betatest-check span {
  margin: 8px 0;
  font-weight: 800;
  color: #0f766e;
}

.betatest-check.warn span {
  color: #b45309;
}

.betatest-check.error span {
  color: #be123c;
}

.betatest-check p {
  margin: 0;
  color: var(--muted);
}

.member-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  background: linear-gradient(135deg, #0f766e 0%, #11343b 100%);
  color: #ffffff;
}

.member-profile-hero .eyebrow,
.member-profile-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.member-profile-hero h2 {
  margin: 8px 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.member-belonging-card {
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.member-belonging-card span,
.member-belonging-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.member-belonging-card strong {
  font-size: 1.7rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 20px 24px 24px;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.profile-panel h3 {
  margin-top: 0;
}

.finance-analysis {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f5fbfa 100%);
}

.finance-analysis-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 14px;
}

.finance-analysis-head h3,
.finance-chart-panel h3 {
  margin: 0;
}

.finance-analysis-balance {
  min-width: 180px;
  border: 1px solid rgba(15, 148, 129, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 148, 129, 0.08);
  text-align: right;
}

.finance-analysis-balance span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-analysis-balance strong {
  color: var(--accent-strong);
  font-size: 1.45rem;
}

.finance-analysis-balance.negative strong,
.finance-top-list em.negative {
  color: #b4233a;
}

.finance-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 0 24px 18px;
}

.finance-filter-grid .secondary-btn {
  min-height: 42px;
}

.finance-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  padding: 18px 24px 24px;
}

.finance-chart-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(24, 39, 56, 0.05);
}

.finance-bars,
.finance-top-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.finance-bars article,
.finance-top-list article {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.finance-bars article > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.finance-bars span,
.finance-bars small,
.finance-top-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.finance-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e6edf2;
}

.finance-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
}

.finance-bar .income {
  left: 0;
  background: linear-gradient(90deg, #0f9481, #57d3ba);
}

.finance-bar .expense {
  right: 0;
  background: linear-gradient(90deg, #ffb199, #d94b5d);
}

.finance-top-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.finance-top-list article strong,
.finance-top-list article span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-top-list article span {
  grid-column: 1;
}

.finance-top-list em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 900;
}

.document-storage-card {
  display: grid;
  gap: 10px;
  margin: 0 22px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-storage-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.document-storage-card span,
.document-storage-card small {
  color: var(--muted);
  font-weight: 800;
}

.storage-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef0;
}

.storage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2f65b8);
}

.document-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 22px 22px;
}

.document-folder-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.document-folder-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-folder-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.document-folder-grid p,
.document-folder-grid small {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.rental-metrics {
  border-top: 1px solid var(--line);
}

.rental-metric {
  display: grid;
  gap: 8px;
  align-content: start;
}

.rental-metric span {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-weight: 900;
}

.rental-metric strong {
  color: var(--text);
  line-height: 1;
}

.rental-metric small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(24, 39, 56, 0.05);
  overflow: hidden;
}

.panel-head,
.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.module-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.module-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn {
  background: var(--accent);
  color: white;
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.secondary-btn {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.danger-btn {
  background: #fff1f3;
  color: var(--danger);
  border-color: #f2c8ce;
}

.icon-btn {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  background: white;
  border-color: var(--line);
  color: var(--text);
  font-size: 1.25rem;
}

.month-nav-btn {
  font-size: 1.45rem;
  line-height: 1;
}

.status,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status.ok,
.badge.green {
  background: #e7f7f3;
  color: #087565;
}

.status.warn,
.badge.orange {
  background: #fff3df;
  color: var(--warning);
}

.status.danger,
.badge.red {
  background: #fff1f3;
  color: var(--danger);
}

.badge.blue {
  background: #eef4ff;
  color: var(--info);
}

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

.list li {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: 0;
}

.list strong {
  display: block;
  margin-bottom: 4px;
}

.list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.chart {
  width: 100%;
  height: 280px;
  padding: 18px;
}

.calendar {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  padding: 0 8px;
}

.calendar-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.calendar-cell {
  min-height: 118px;
  background: white;
  padding: 9px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.calendar-cell strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.calendar-add {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.muted-cell {
  background: #f8fafc;
}

.calendar-events {
  display: grid;
  gap: 5px;
}

.calendar-event-row {
  width: 100%;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: #e7f7f3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: stretch;
  overflow: hidden;
}

.calendar-event {
  width: 100%;
  border: 0;
  background: transparent;
  color: #075f55;
  padding: 5px 7px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
  cursor: pointer;
}

.calendar-delete {
  border: 0;
  border-left: 1px solid rgba(7, 95, 85, 0.14);
  background: rgba(255, 255, 255, 0.5);
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.calendar-delete:hover {
  background: #fff1f3;
}

.calendar-event small {
  display: block;
  margin-top: 2px;
  color: rgba(7, 95, 85, 0.75);
  font-weight: 700;
}

.color-swatch {
  display: inline-block;
  width: 28px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line);
  vertical-align: middle;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 0.88rem;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
}

.module {
  display: grid;
  gap: 0;
}

.filter-strip {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
  flex-wrap: wrap;
}

.member-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-filter-tab.is-active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--accent);
}

.compact-field {
  width: min(280px, 100%);
}

.member-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  flex-wrap: wrap;
}

.member-list-actions,
.member-list-config {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.column-picker {
  position: relative;
}

.column-picker summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 900;
}

.column-picker summary::-webkit-details-marker {
  display: none;
}

.column-picker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: min(320px, 82vw);
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}

.column-picker-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}

.table-sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.table-sort-btn.active {
  color: var(--accent);
}

tr.selected-row {
  background: rgba(15, 143, 131, 0.08);
  box-shadow: inset 4px 0 0 var(--accent);
}

tr[data-member-row] {
  cursor: pointer;
}

.subsection-head {
  padding: 18px 18px 8px;
}

.subsection-head.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subsection-head.list-head div {
  display: grid;
  gap: 4px;
}

.subsection-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.subsection-head span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 18px;
}

.pagination-bar span {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.84rem;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.import-textarea {
  min-height: 430px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  line-height: 1.45;
}

.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbfd;
}

.preview-panel h3 {
  margin: 0 0 14px;
}

.preview-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.preview-list dt {
  color: var(--muted);
  font-weight: 800;
}

.preview-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.import-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.import-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(15, 143, 131, 0.08), rgba(47, 101, 184, 0.06)),
    #fff;
}

.import-card h3 {
  margin: 8px 0 8px;
}

.import-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.import-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f4;
  color: var(--accent-strong);
  font-weight: 900;
}

.tenant-name-badge[hidden] {
  display: none !important;
}

.upload-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed rgba(15, 143, 131, 0.52);
  border-radius: 8px;
  background: rgba(15, 143, 131, 0.06);
  cursor: pointer;
  text-align: center;
  font-weight: 800;
}

.upload-drop input {
  width: 100%;
  max-width: 260px;
}

.import-hints,
.notice {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #f9fbfd;
}

.import-hints p,
.notice {
  color: var(--muted);
  line-height: 1.55;
}

.notice.success {
  border-color: rgba(15, 143, 131, 0.3);
  background: #e9f7f4;
  color: var(--accent-strong);
  font-weight: 800;
}

.settings-panel {
  display: grid;
  gap: 0;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.settings-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

.settings-tab.active {
  border-color: var(--accent);
  background: #e7f7f3;
  color: var(--accent-dark);
}

.admin-section-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(249, 251, 253, 0.97);
  box-shadow: 0 10px 28px rgba(16, 34, 45, 0.08);
}

.admin-section-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-section-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.admin-section-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 143, 131, 0.18);
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 20px 18px;
  border-top: 1px solid var(--line);
}

.settings-section h3 {
  margin: 0;
  font-size: 1.06rem;
}

.settings-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 1 / -1;
}

.settings-import-row .upload-drop {
  flex: 1 1 220px;
}

.settings-save-footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.settings-info {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  padding: 14px;
}

.settings-info span,
.settings-info small {
  color: var(--muted);
  font-weight: 700;
}

.danger-zone {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #f2c8ce;
  border-radius: 8px;
  background: #fff7f8;
}

.danger-zone strong {
  color: var(--danger);
}

.danger-zone span {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.danger-zone .danger-btn {
  justify-self: start;
}

.dashboard-control-panel {
  margin-bottom: 18px;
  overflow: visible;
  position: relative;
  z-index: 35;
}

.dashboard-control-panel .panel-head {
  overflow: visible;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 12px;
  padding: 0 18px 16px;
}

.dashboard-toolbar .field {
  margin: 0;
}

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

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

.dashboard-widget-full {
  grid-column: 1 / -1;
}

.dashboard-widget-double {
  grid-column: span 2;
}

.dashboard-grid.columns-2 .dashboard-widget-double {
  grid-column: 1 / -1;
}

.dashboard-widget {
  min-width: 0;
}

.dashboard-widget .panel-head {
  align-items: flex-start;
}

.dashboard-widget .module-tools {
  min-width: 0;
  justify-content: flex-end;
}

.dashboard-widget .compact-action {
  padding: 8px 10px;
}

.dashboard-widget .list strong,
.dashboard-widget .list span,
.dashboard-widget .metric strong,
.dashboard-widget td,
.dashboard-widget th {
  overflow-wrap: anywhere;
}

.dashboard-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.86rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px;
}

.dashboard-grid.columns-3 .dashboard-widget-single .panel-head {
  display: grid;
}

.dashboard-grid.columns-3 .dashboard-widget-single .module-tools {
  justify-content: flex-start;
}

.dashboard-grid.columns-3 .dashboard-widget-single .dashboard-table {
  font-size: 0.78rem;
}

.dashboard-grid.columns-3 .dashboard-widget-single .dashboard-table th,
.dashboard-grid.columns-3 .dashboard-widget-single .dashboard-table td {
  padding: 8px 7px;
}

.dashboard-calendar-mini .calendar {
  max-height: 360px;
  overflow: auto;
}

.dashboard-calendar-mini .calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.dashboard-calendar-mini .calendar-cell {
  min-height: 84px;
  padding: 7px;
}

.dashboard-calendar-mini .calendar-event-row {
  font-size: 0.76rem;
}

.dashboard-calendar-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.dashboard-calendar-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.dashboard-calendar-list summary::-webkit-details-marker {
  display: none;
}

.dashboard-calendar-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-dark);
  background: #fff;
}

.dashboard-calendar-list[open] summary::after {
  content: "-";
}

.dashboard-calendar-list .list {
  border-top: 1px solid var(--line);
}

.dashboard-widget-single .dashboard-calendar-mini .calendar {
  max-height: 300px;
  padding: 10px;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-weekdays span {
  padding: 0 2px;
  text-align: center;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-cell {
  min-height: 58px;
  padding: 5px;
  gap: 4px;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-day-head {
  gap: 3px;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-add {
  display: none;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-event-row {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-event {
  padding: 3px 4px;
  font-size: 0.68rem;
}

.dashboard-widget-single .dashboard-calendar-mini .calendar-event small,
.dashboard-widget-single .dashboard-calendar-list {
  display: none;
}

.dashboard-widget-double .dashboard-calendar-mini .calendar {
  max-height: 340px;
}

.dashboard-widget-double .dashboard-calendar-mini .calendar-cell {
  min-height: 76px;
}

.dashboard-grid.is-draggable .dashboard-widget {
  cursor: grab;
}

.dashboard-widget.dragging {
  opacity: 0.55;
}

.dashboard-widget.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
}

.drag-handle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.chat-sidebar,
.chat-panel,
.chat-create,
.chat-thread-list,
.chat-messages,
.chat-compose {
  display: grid;
  gap: 12px;
}

.chat-create {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f9fbfd;
}

.chat-form-error,
.chat-form-note {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  line-height: 1.35;
}

.chat-form-error {
  border: 1px solid rgba(225, 29, 72, 0.22);
  background: #fff1f3;
  color: var(--danger);
}

.chat-form-note {
  border: 1px solid rgba(15, 143, 131, 0.22);
  background: #e7f7f3;
  color: var(--accent-dark);
}

.chat-user-picker {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.chat-user-picker label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.chat-user-picker small {
  display: block;
  color: var(--muted);
}

.chat-all-users {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.chat-thread-list {
  max-height: 480px;
  overflow: auto;
  align-content: start;
}

.chat-thread {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.chat-thread.active {
  border-color: var(--accent);
  background: #e7f7f3;
}

.chat-thread span {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-thread em {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-style: normal;
  font-weight: 900;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.chat-head h2 {
  margin: 0;
}

.chat-head span {
  color: var(--muted);
}

.chat-messages {
  align-content: start;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.chat-message {
  display: grid;
  gap: 8px;
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.chat-message.mine {
  justify-self: end;
  border-color: rgba(15, 143, 131, 0.28);
  background: #eaf8f5;
}

.chat-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-message p {
  margin: 0;
  line-height: 1.45;
}

.chat-message small {
  color: var(--muted);
}

.quick-link-btn {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.chat-compose {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chat-compose-hint {
  color: var(--muted);
  font-weight: 800;
}

.notification-panel,
.online-users-panel {
  position: fixed;
  top: max(88px, calc(env(safe-area-inset-top) + 72px));
  right: max(16px, env(safe-area-inset-right));
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 34, 45, 0.22);
  overflow: hidden;
}

.notification-head,
.notification-actions,
.floating-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
}

.online-users-panel .notification-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.online-users-panel .notification-actions .secondary-btn {
  min-width: 0;
  width: 100%;
  white-space: normal;
  line-height: 1.15;
}

.notification-list,
.online-users-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  max-height: 360px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.notification-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.online-user-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.online-user-item:disabled {
  cursor: default;
  opacity: 0.72;
}

.online-user-item strong,
.online-user-item small {
  grid-column: 2;
}

.online-user-item small {
  color: var(--muted);
  font-weight: 800;
}

.online-dot {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.floating-chat-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 64px));
  z-index: 39;
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 120px));
  max-height: min(760px, calc(100dvh - 120px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 34, 45, 0.24);
  overflow: hidden;
}

.floating-chat-head div {
  display: flex;
  gap: 8px;
}

.floating-chat-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.floating-chat-list,
.floating-chat-conversation {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.floating-chat-panel .chat-messages {
  max-height: 330px;
}

.todo-create {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 280px) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.todo-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.todo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.todo-head span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.todo-share-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f9fbfd;
}

.task-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.marketing-page .module-head {
  border-bottom: 1px solid var(--line);
}

.marketing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08)),
    #f9fbfd;
}

.marketing-page .info-box {
  margin: 18px;
}

.tax-prep-page .table-wrap {
  border-top: 1px solid var(--line);
}

.tax-notice {
  display: grid;
  gap: 4px;
  margin: 18px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.tax-check-grid,
.tax-area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.tax-check-grid article,
.tax-area-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.tax-check-grid article.ok {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.tax-check-grid article.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.tax-check-grid span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.tax-check-grid article.warn span {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.tax-check-grid p,
.tax-area-grid p {
  margin: 0;
  color: var(--muted);
}

.todo-share-form .field {
  margin: 0;
}

.todo-items {
  display: grid;
  gap: 8px;
}

.todo-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #f9fbfd;
}

.todo-delete-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  font-size: 1rem;
}

.todo-item.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.todo-item-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.small-empty {
  padding: 16px;
}

.affiliate-card {
  background: linear-gradient(135deg, #f9fbfd 0%, #edf9f6 100%);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.copy-row input {
  width: 100%;
}

.settings-calendar-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.settings-calendar-list .table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.settings-calendar-list th {
  position: relative;
  z-index: 3;
}

.settings-calendar-list th:hover,
.settings-calendar-list th:focus-within {
  z-index: 90;
}

.settings-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.settings-calendar-head div {
  display: grid;
  gap: 4px;
}

.settings-calendar-head span {
  color: var(--muted);
  font-weight: 700;
}

.settings-calendar-list input,
.settings-calendar-list select {
  width: 100%;
  min-width: 140px;
}

.settings-calendar-list .compact-color {
  width: 48px;
  min-width: 48px;
  height: 38px;
  padding: 4px;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 50%;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: help;
  vertical-align: middle;
  z-index: 100;
}

.help-tooltip::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 9999;
  width: min(280px, 70vw);
  padding: 9px 10px;
  border-radius: 8px;
  background: #10222d;
  color: #ecf5f5;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: normal;
}

.help-tooltip:hover::after,
.help-tooltip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.inline-filter {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.inline-filter select {
  min-width: 190px;
}

.settings-logo-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  padding: 14px;
}

.settings-logo-card img {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  padding: 6px;
}

.settings-logo-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-logo-card strong,
.settings-logo-card span,
.settings-logo-card small {
  flex-basis: 100%;
}

.settings-logo-card small {
  color: var(--muted);
  font-weight: 700;
}

.logo-upload-btn {
  width: fit-content;
}

.contact-person-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.contact-person-block h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.permission-table-wrap {
  width: 100%;
  overflow-x: auto;
  grid-column: 1 / -1;
}

.permission-table {
  min-width: 880px;
}

.permission-table th span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.permission-table td:first-child {
  font-weight: 900;
}

.permission-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.permission-check input {
  width: auto;
}

.compact-upload {
  min-height: 82px;
  padding: 12px;
}

.inline-empty {
  padding: 18px;
}

.compact-input {
  width: 100%;
  max-width: 120px;
}

.tenant-name-input {
  width: min(260px, 100%);
  margin-bottom: 6px;
}

.matrix-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input span {
  color: var(--muted);
  font-weight: 800;
}

.user-form {
  border-bottom: 1px solid var(--line);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.checkbox-field input {
  width: auto;
}

.inline-actions {
  align-items: end;
  padding: 0;
}

.role-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
}

.role-help div {
  display: grid;
  gap: 4px;
}

.role-help span {
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-panel {
  max-width: 520px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
  min-height: min(680px, calc(100vh - 150px));
  padding: 38px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(15, 143, 131, 0.12), rgba(47, 101, 184, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.online-users-panel {
  right: 16px;
  left: auto;
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 143, 131, 0.18), transparent 64%);
  animation: pulseGlow 6s ease-in-out infinite;
}

.landing-copy,
.landing-stage {
  position: relative;
  z-index: 1;
}

.landing-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
}

.landing-copy h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 1.02;
  color: #10222d;
}

.landing-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.landing-actions,
.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-actions a {
  text-decoration: none;
}

.landing-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-proof span:hover {
  border-color: rgba(15, 143, 131, 0.34);
  box-shadow: 0 10px 24px rgba(15, 143, 131, 0.12);
  transform: translateY(-2px);
}

.landing-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    #10222d;
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 22px;
}

.stage-ribbon {
  display: inline-flex;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(183, 241, 220, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(183, 241, 220, 0.12);
  color: #b7f1dc;
  font-size: 0.8rem;
  font-weight: 900;
}

.stage-highlight {
  position: absolute;
  border: 1px solid rgba(183, 241, 220, 0.42);
  border-radius: 8px;
  opacity: 0.5;
  transform: rotate(12deg);
}

.highlight-a {
  width: 120px;
  height: 120px;
  right: 28px;
  top: 46px;
  animation: floatTile 5s ease-in-out infinite;
}

.highlight-b {
  width: 72px;
  height: 72px;
  left: 26px;
  bottom: 116px;
  animation: floatTile 6s ease-in-out infinite reverse;
}

.feature-slider {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  margin-top: 30px;
  animation: featureSlide 30s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 0.72, 0.18, 1);
}

.slider-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: 276px;
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.slider-card:hover {
  border-color: rgba(183, 241, 220, 0.52);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.slider-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.slider-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #b7f1dc;
  color: #063f3a;
  font-size: 0.78rem;
  font-weight: 900;
}

.slider-index {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  font-weight: 900;
}

.slider-card strong {
  font-size: 2rem;
  line-height: 1;
}

.slider-card em {
  color: #b7f1dc;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 900;
}

.slider-card p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.48;
}

.slider-proof {
  display: grid;
  gap: 3px;
  width: min(100%, 320px);
  border-left: 3px solid #b7f1dc;
  padding: 10px 12px;
  background: rgba(183, 241, 220, 0.1);
}

.slider-proof b {
  color: #ffffff;
  font-size: 0.95rem;
}

.slider-proof small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.slider-cta {
  align-self: end;
  width: fit-content;
  margin-top: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #b7f1dc;
  color: #063f3a;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.slider-cta:hover {
  box-shadow: 0 12px 28px rgba(183, 241, 220, 0.22);
  transform: translateY(-2px);
}

.mini-dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.mini-dashboard div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-dashboard div:hover {
  background: rgba(183, 241, 220, 0.12);
  transform: translateY(-4px);
}

.mini-dashboard span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 800;
}

.mini-dashboard strong {
  display: block;
  margin-top: 7px;
  font-size: 1.2rem;
}

@keyframes featureSlide {
  0%, 12% { transform: translateX(0); }
  16%, 28% { transform: translateX(-100%); }
  32%, 44% { transform: translateX(-200%); }
  48%, 60% { transform: translateX(-300%); }
  64%, 76% { transform: translateX(-400%); }
  80%, 92% { transform: translateX(-500%); }
  100% { transform: translateX(0); }
}

@keyframes floatTile {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-16px) rotate(18deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.56; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.08); }
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b7f1dc;
}

.preview-toolbar strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-metrics div,
.preview-listing div {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.preview-metrics span,
.preview-listing span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.preview-listing {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  padding-top: 1px;
}

.preview-listing div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-listing strong {
  color: #b7f1dc;
}

.landing-features,
.landing-section {
  display: grid;
  gap: 14px;
  padding: 18px 30px;
}

.landing-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.home-flow-section,
.visual-example-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-flow-section {
  background: #ffffff;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-steps article,
.feature-demo-row article,
.role-paths article,
.pricing-story article,
.onboarding-line article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 34, 45, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.flow-steps article::after,
.topic-grid article::after,
.audience-list article::after,
.price-cards article::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--accent), #2f65b8);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.flow-steps article:hover,
.feature-demo-row article:hover,
.role-paths article:hover,
.pricing-story article:hover,
.onboarding-line article:hover,
.topic-grid article:hover,
.audience-list article:hover,
.price-cards article:hover {
  border-color: rgba(15, 143, 131, 0.34);
  box-shadow: 0 18px 42px rgba(16, 34, 45, 0.1);
  transform: translateY(-5px);
}

.flow-steps article:hover::after,
.topic-grid article:hover::after,
.audience-list article:hover::after,
.price-cards article:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.flow-steps span,
.feature-demo-row span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.flow-steps strong,
.feature-demo-row strong,
.role-paths strong,
.pricing-story strong,
.onboarding-line strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.flow-steps p,
.feature-demo-row p,
.role-paths p,
.onboarding-line p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.visual-example-section {
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(16, 34, 45, 0.96), rgba(15, 143, 131, 0.9)),
    #10222d;
  color: white;
}

.visual-example-section .eyebrow,
.visual-example-section .landing-text {
  color: rgba(255, 255, 255, 0.76);
}

.visual-example-section h2 {
  color: white;
}

.visual-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  perspective: 1200px;
}

.visual-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.visual-card:hover {
  border-color: rgba(183, 241, 220, 0.54);
  background: rgba(255, 255, 255, 0.16);
  transform: rotateX(4deg) translateY(-6px);
}

.visual-card.accent {
  background: #b7f1dc;
  color: #063f3a;
}

.visual-card.wide {
  grid-column: 1 / -1;
}

.visual-card span,
.visual-card small {
  color: inherit;
  opacity: 0.78;
  font-weight: 900;
}

.visual-card strong {
  font-size: 2.1rem;
}

.fake-calendar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.fake-calendar i {
  display: block;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
}

.fake-calendar i:nth-child(3n) {
  background: rgba(183, 241, 220, 0.42);
}

.page-section {
  min-height: min(820px, calc(100vh - 120px));
  align-content: center;
  background:
    radial-gradient(circle at 12% 4%, rgba(88, 214, 195, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(47, 101, 184, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(15, 143, 131, 0.1), rgba(47, 101, 184, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.feature-sales-page,
.audience-sales-page,
.help-sales-page {
  position: relative;
  gap: 24px;
  align-content: start;
  padding-top: 56px;
  padding-bottom: 64px;
  overflow: hidden;
}

.feature-sales-page::before,
.audience-sales-page::before,
.help-sales-page::before {
  content: "";
  position: absolute;
  right: -110px;
  top: 70px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(15, 143, 131, 0.12);
  border-radius: 8px;
  transform: rotate(18deg);
  animation: floatTile 8s ease-in-out infinite;
}

.sales-hero-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(15, 143, 131, 0.14);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 70px rgba(16, 34, 45, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sales-hero-line h2 {
  margin-top: 0;
  font-size: clamp(2.05rem, 5vw, 4.45rem);
  line-height: 0.96;
}

.sales-hero-line .landing-text {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.sales-signal-board,
.audience-orbit {
  position: relative;
  min-height: 290px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 15%, rgba(183, 241, 220, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(16, 34, 45, 0.98), rgba(15, 143, 131, 0.92)),
    #10222d;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.sales-signal-board {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 12px 16px;
  padding: 28px;
}

.sales-signal-board::after,
.audience-orbit::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183, 241, 220, 0.36), rgba(183, 241, 220, 0));
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.sales-signal-board strong {
  color: #b7f1dc;
  font-size: 3rem;
  line-height: 0.92;
}

.sales-signal-board span {
  align-self: center;
  color: #fff;
  font-weight: 900;
}

.feature-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  padding-top: 4px;
}

.feature-section-heading span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.feature-section-heading strong {
  max-width: 680px;
  color: var(--text);
  font-size: clamp(1.22rem, 2vw, 1.85rem);
  line-height: 1.15;
  text-align: right;
}

.feature-heading-dark {
  margin: 14px calc(clamp(18px, 4vw, 42px) * -1) 0;
  padding: 26px clamp(18px, 4vw, 42px) 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(183, 241, 220, 0.22), transparent 30%),
    linear-gradient(135deg, #10222d, #0a403d 62%, #14345a);
}

.feature-heading-dark span {
  background: rgba(183, 241, 220, 0.16);
  color: #b7f1dc;
}

.feature-heading-dark strong {
  color: #fff;
}

.feature-heading-light {
  padding-top: 24px;
}

.feature-heading-proof {
  margin-top: 24px;
}

.feature-lane {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-lane-dark {
  margin: 0 calc(clamp(18px, 4vw, 42px) * -1);
  padding: 16px clamp(18px, 4vw, 42px) 34px;
  background:
    radial-gradient(circle at 85% 70%, rgba(255, 176, 77, 0.12), transparent 28%),
    linear-gradient(135deg, #10222d, #0a403d 62%, #14345a);
}

.feature-lane article,
.feature-module-grid article,
.sales-proof-strip article,
.audience-card-grid article,
.role-story-grid article,
.sales-cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(16, 34, 45, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.feature-lane article {
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-lane-dark article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.feature-lane-dark span {
  background: rgba(183, 241, 220, 0.16);
  color: #b7f1dc;
}

.feature-lane-dark strong {
  color: #fff;
}

.feature-lane-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-lane article i {
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #2f65b8);
  opacity: 0.45;
  transition: width 0.18s ease, opacity 0.18s ease;
}

.feature-lane article:hover,
.feature-module-grid article:hover,
.sales-proof-strip article:hover,
.audience-card-grid article:hover,
.role-story-grid article:hover {
  border-color: rgba(15, 143, 131, 0.34);
  box-shadow: 0 22px 54px rgba(16, 34, 45, 0.12);
  transform: translateY(-5px);
}

.feature-lane article:hover i {
  width: 74px;
  opacity: 0.95;
}

.feature-lane span,
.sales-proof-strip span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-lane strong,
.feature-module-grid strong,
.sales-proof-strip strong,
.audience-card-grid strong,
.role-story-grid strong,
.sales-cta-panel strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.2;
}

.feature-lane strong,
.sales-proof-strip strong {
  margin: 12px 0 8px;
}

.feature-lane p,
.feature-module-grid p,
.sales-proof-strip p,
.audience-card-grid p,
.role-story-grid p,
.sales-cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-module-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-module-grid article {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 251, 0.94)),
    #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-module-mosaic article:nth-child(4),
.feature-module-mosaic article:nth-child(9) {
  border-color: rgba(16, 34, 45, 0.24);
  background:
    radial-gradient(circle at 85% 18%, rgba(183, 241, 220, 0.18), transparent 34%),
    linear-gradient(145deg, #10222d, #0f766e);
  box-shadow: 0 22px 58px rgba(16, 34, 45, 0.18);
}

.feature-module-mosaic article:nth-child(4) em,
.feature-module-mosaic article:nth-child(9) em {
  background: rgba(183, 241, 220, 0.18);
  color: #b7f1dc;
}

.feature-module-mosaic article:nth-child(4) strong,
.feature-module-mosaic article:nth-child(9) strong {
  color: #fff;
}

.feature-module-mosaic article:nth-child(4) p,
.feature-module-mosaic article:nth-child(9) p {
  color: rgba(255, 255, 255, 0.76);
}

.feature-module-mosaic article:nth-child(4) div span,
.feature-module-mosaic article:nth-child(9) div span {
  background: rgba(255, 255, 255, 0.13);
  color: #d9fff0;
}

.feature-module-grid article em {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #10222d;
  color: #b7f1dc;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-module-grid article::before,
.audience-card-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2f65b8, #b7f1dc);
}

.feature-module-grid article div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.feature-module-grid article div span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f0f7fb;
  color: #315467;
  font-size: 0.74rem;
  font-weight: 900;
}

.sales-proof-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sales-proof-strip article {
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sales-proof-dark {
  margin: 0 calc(clamp(18px, 4vw, 42px) * -1);
  padding: 16px clamp(18px, 4vw, 42px) 34px;
  background:
    radial-gradient(circle at 12% 80%, rgba(183, 241, 220, 0.18), transparent 28%),
    linear-gradient(135deg, #10222d, #14345a);
}

.sales-proof-dark article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.sales-proof-dark span {
  background: rgba(183, 241, 220, 0.16);
  color: #b7f1dc;
}

.sales-proof-dark strong {
  color: #fff;
}

.sales-proof-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-lane.feature-lane-dark article strong,
.feature-lane.feature-lane-dark article p,
.sales-proof-strip.sales-proof-dark article strong,
.sales-proof-strip.sales-proof-dark article p {
  color: #fff;
}

.feature-lane.feature-lane-dark article p,
.sales-proof-strip.sales-proof-dark article p,
.feature-module-mosaic article:nth-child(4) p,
.feature-module-mosaic article:nth-child(9) p {
  color: rgba(255, 255, 255, 0.82);
}

.sales-cta-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(183, 241, 220, 0.24), transparent 28%),
    linear-gradient(135deg, #10222d, #0f766e);
  color: #fff;
}

.sales-cta-panel strong {
  color: #fff;
}

.sales-cta-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.sales-cta-panel .primary-btn {
  text-decoration: none;
  white-space: normal;
  text-align: center;
}

.audience-orbit {
  display: grid;
  place-items: center;
  padding: 24px;
}

.audience-orbit strong {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(183, 241, 220, 0.42);
  border-radius: 999px;
  background: rgba(183, 241, 220, 0.16);
  color: #b7f1dc;
  text-align: center;
  line-height: 1.12;
}

.audience-orbit span {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 900;
  animation: orbitPulse 5s ease-in-out infinite;
}

.audience-orbit span:nth-child(1) { top: 30px; left: 50%; transform: translateX(-50%); }
.audience-orbit span:nth-child(2) { right: 28px; top: 50%; transform: translateY(-50%); animation-delay: 0.4s; }
.audience-orbit span:nth-child(3) { bottom: 30px; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.audience-orbit span:nth-child(4) { left: 28px; top: 50%; transform: translateY(-50%); animation-delay: 1.2s; }

@keyframes orbitPulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); }
  50% { border-color: rgba(183, 241, 220, 0.54); background: rgba(183, 241, 220, 0.15); }
}

.audience-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.audience-card-grid article {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.audience-card-grid em {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.role-story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.role-story-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.role-story-grid article span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 131, 0.92), rgba(47, 101, 184, 0.86));
  box-shadow: 0 12px 22px rgba(15, 143, 131, 0.18);
}

.role-story-grid article:nth-child(2) span { background: linear-gradient(135deg, #2f65b8, #7bb5ff); }
.role-story-grid article:nth-child(3) span { background: linear-gradient(135deg, #0f8f83, #b7f1dc); }
.role-story-grid article:nth-child(4) span { background: linear-gradient(135deg, #10222d, #2f65b8); }

.help-start-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 290px;
  align-content: center;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(16, 34, 45, 0.96), rgba(47, 101, 184, 0.9)),
    #10222d;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.help-start-card::after {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183, 241, 220, 0.36), rgba(183, 241, 220, 0));
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.help-start-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #b7f1dc;
  color: #063f3a;
  font-size: 0.78rem;
  font-weight: 900;
}

.help-start-card strong {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.help-roadmap,
.help-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.help-roadmap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.help-roadmap article,
.help-grid article,
.help-choice-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(16, 34, 45, 0.07);
}

.help-roadmap article,
.help-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.help-roadmap article:hover,
.help-grid article:hover {
  border-color: rgba(15, 143, 131, 0.34);
  box-shadow: 0 22px 54px rgba(16, 34, 45, 0.12);
  transform: translateY(-5px);
}

.help-roadmap span,
.help-grid em {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.help-roadmap strong,
.help-grid strong,
.help-choice-band strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.help-roadmap p,
.help-grid p,
.help-choice-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.help-choice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(16, 34, 45, 0.96), rgba(15, 143, 131, 0.9)),
    #10222d;
}

.help-choice-band strong,
.help-choice-band p {
  color: #fff;
}

.help-choice-band p {
  opacity: 0.78;
}

.help-choice-band .primary-btn,
.help-cta .primary-btn {
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.help-checks article {
  border-top: 4px solid rgba(15, 143, 131, 0.34);
}

.login-page-panel {
  margin: 44px auto;
  width: min(560px, calc(100vw - 34px));
}

.landing-section h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
}

.topic-grid,
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid article,
.landing-features article,
.audience-list article,
.price-cards article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-grid strong,
.landing-features strong {
  display: block;
  margin-bottom: 8px;
}

.topic-grid p,
.landing-features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.feature-demo-row,
.role-paths,
.pricing-story,
.onboarding-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.pricing-story,
.onboarding-line {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-story span {
  color: var(--muted);
  line-height: 1.45;
}

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

.audience-list article {
  display: grid;
  gap: 8px;
}

.audience-list span {
  color: var(--muted);
  line-height: 1.45;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-slider-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 241, 220, 0.55), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(255, 176, 77, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 251, 0.96));
  box-shadow: 0 22px 58px rgba(16, 34, 45, 0.1);
}

.pricing-controls {
  display: grid;
  gap: 18px;
}

.pricing-controls .field span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e7f7f3;
  color: var(--accent-dark);
  font-weight: 900;
}

.pricing-slider-box input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
}

.pricing-dynamic-card {
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 10%, rgba(183, 241, 220, 0.22), transparent 31%),
    radial-gradient(circle at 92% 88%, rgba(255, 176, 77, 0.16), transparent 28%),
    linear-gradient(145deg, #10222d, #063f3a);
  color: white;
  box-shadow: 0 22px 54px rgba(16, 34, 45, 0.22);
}

.pricing-dynamic-card span {
  color: #b7f1dc;
  font-weight: 900;
}

.pricing-dynamic-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2.4rem;
}

.pricing-dynamic-card small,
.price-cards small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.pricing-dynamic-card p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.detected-version-box {
  display: grid !important;
  gap: 7px !important;
  margin: 16px 0;
  border: 1px solid rgba(183, 241, 220, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(183, 241, 220, 0.1);
}

.detected-version-box b {
  color: #b7f1dc;
}

.detected-version-box span,
.detected-version-box small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.detected-version-box em {
  width: fit-content;
  margin-top: 3px;
  background: #b7f1dc;
  color: #063f3a;
}

.pricing-dynamic-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-dynamic-card em {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(183, 241, 220, 0.14);
  color: #b7f1dc;
  font-style: normal;
  font-weight: 800;
}

.pricing-dynamic-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-dynamic-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.pricing-dynamic-card li b {
  color: rgba(255, 255, 255, 0.76);
}

.pricing-dynamic-card li span {
  color: #b7f1dc;
  font-weight: 900;
  text-align: right;
}

.pricing-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.pricing-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.pricing-dynamic-card .pricing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pricing-dynamic-card .pricing-actions .secondary-btn {
  border-color: rgba(183, 241, 220, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #b7f1dc;
}

.price-cards article {
  min-height: 265px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.96)),
    #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.price-cards article:hover {
  border-color: rgba(15, 143, 131, 0.35);
  box-shadow: 0 18px 42px rgba(16, 34, 45, 0.12);
  transform: translateY(-5px);
}

.price-cards span {
  color: var(--accent-strong);
  font-weight: 900;
}

.price-cards .featured-price {
  border-color: rgba(15, 143, 131, 0.45);
  box-shadow: 0 16px 42px rgba(15, 143, 131, 0.16);
}

.price-cards .active-price {
  border-color: rgba(15, 143, 131, 0.68);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 176, 77, 0.2), transparent 30%),
    linear-gradient(180deg, #ffffff, #e7f7f3);
  box-shadow: 0 22px 54px rgba(15, 143, 131, 0.22);
  transform: translateY(-4px);
}

.price-cards .active-price span::after {
  content: "Auswahl";
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
}

.price-cards strong {
  font-size: 2.2rem;
}

.price-cards small {
  color: var(--muted);
}

.price-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-cards .pricing-actions {
  align-self: end;
}

.checkout-section {
  align-content: start;
}

.checkout-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(260px, 0.75fr) minmax(360px, 1.25fr);
  gap: 16px;
  align-items: start;
}

.checkout-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(16, 34, 45, 0.07);
}

.checkout-card h3 {
  margin: 0;
}

.payment-choice {
  display: grid;
  gap: 10px;
}

.payment-choice label {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.payment-choice label:has(input:checked) {
  border-color: rgba(15, 143, 131, 0.62);
  background: #e7f7f3;
}

.payment-choice span {
  color: var(--muted);
  font-weight: 800;
}

.billing-window {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.billing-window > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-radius: 8px;
  background: white;
  padding: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.billing-segment label {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-radius: 8px;
  padding: 11px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.billing-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-segment label:has(input:checked) {
  background: #10222d;
  color: white;
  box-shadow: 0 10px 24px rgba(16, 34, 45, 0.18);
}

.billing-segment small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.billing-segment label:has(input:checked) small {
  color: #b7f1dc;
}

.coupon-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 143, 131, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: #edf9f6;
}

.coupon-box .field {
  margin: 0;
}

.coupon-box small {
  color: var(--muted);
  font-weight: 800;
}

.trial-warning,
.payment-details {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 122, 0, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
}

.trial-warning strong {
  color: #9a3412;
}

.trial-warning p {
  margin: 0;
  color: #7c2d12;
  font-weight: 800;
  line-height: 1.45;
}

.payment-details {
  border-color: rgba(15, 143, 131, 0.22);
  background: #f4fcfa;
}

.payment-details .field {
  margin: 0;
}

.payment-details small {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 16px;
  background: #10222d;
  color: white;
}

.checkout-summary span,
.checkout-summary small {
  color: #b7f1dc;
  font-weight: 900;
}

.checkout-summary strong {
  font-size: 1.6rem;
}

.checkout-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.summary-line.discount span,
.summary-line.discount small {
  color: #b7f1dc;
}

.summary-line.invalid span,
.summary-line.invalid small {
  color: #ffd7a8;
}

.checkout-summary b {
  display: block;
  font-size: 1.9rem;
}

.checkout-data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-data h3,
.checkout-data .full {
  grid-column: 1 / -1;
}

.pricing-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.public-matrix {
  margin-top: 18px;
  border: 1px solid rgba(15, 143, 131, 0.18);
  border-radius: 8px;
  background: white;
  overflow: auto;
  box-shadow: 0 18px 48px rgba(16, 34, 45, 0.09);
}

.public-matrix .active-plan-column {
  background: linear-gradient(180deg, #e7f7f3, #f4fcfa);
  color: var(--accent-dark);
  font-weight: 900;
}

.public-matrix .matrix-cloud-row td {
  background:
    linear-gradient(90deg, rgba(183, 241, 220, 0.24), rgba(255, 255, 255, 0.94));
}

.public-matrix .matrix-cloud-row td:first-child strong::after {
  content: "Cloud";
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  background: #10222d;
  color: #b7f1dc;
  font-size: 0.66rem;
  font-weight: 900;
  vertical-align: middle;
}

.public-matrix table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.public-matrix th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.public-matrix td:not(:first-child),
.public-matrix th:not(:first-child) {
  text-align: center;
}

.help-section {
  padding-bottom: 70px;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.forgot-password-btn {
  justify-self: start;
  margin-top: -6px;
}

.forgot-password-panel {
  display: grid;
  gap: 8px;
  margin: 0 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f9fbfd;
}

.forgot-password-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.password-reset-request-form {
  display: grid;
  gap: 12px;
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.msg,
.err {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.msg {
  background: #e7f7f3;
  color: #087565;
}

.err {
  background: #fff1f3;
  color: var(--danger);
}

.feedback-bar {
  position: sticky;
  top: 92px;
  z-index: 4;
  margin: 0 0 16px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.12);
}

.feedback-bar.success {
  border: 1px solid rgba(15, 143, 131, 0.28);
  background: #e7f7f3;
  color: #087565;
}

.feedback-bar.error {
  border: 1px solid rgba(225, 29, 72, 0.25);
  background: #fff1f3;
  color: var(--danger);
}

.dialog {
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.dialog::backdrop {
  background: rgba(13, 25, 34, 0.46);
}

.dialog form {
  padding: 0;
  max-height: inherit;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field > input,
.field > select,
.field > textarea {
  width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.field.full {
  grid-column: 1 / -1;
}

.bulk-editor-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--text);
}

.bulk-editor-note span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.field-help-btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 50%;
  background: #eaf7f4;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.field-help-btn:hover,
.field-help-btn:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.info-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 25, 34, 0.46);
}

.info-popup {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-popup h2 {
  margin: 4px 0 10px;
  color: var(--ink);
}

.info-popup p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.info-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.wysiwyg-shell {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.wysiwyg-source {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.wysiwyg-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.wysiwyg-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wysiwyg-editor {
  min-height: 140px;
  padding: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  outline: none;
}

.wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.22);
}

.wysiwyg-editor p,
.wysiwyg-editor ul,
.wysiwyg-editor ol,
.wysiwyg-editor blockquote {
  margin: 0 0 10px;
}

.wysiwyg-editor ul,
.wysiwyg-editor ol {
  padding-left: 22px;
}

.file-attachment-field {
  grid-column: span 1;
}

.file-attachment-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-attachment-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker-label,
.file-attachment-link {
  width: fit-content;
}

.file-attachment-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 6px;
}

.password-control input {
  min-width: 0;
}

.password-action {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.danger-password-action {
  background: #fff1f3;
  border-color: #f2c8ce;
  color: var(--danger);
  font-size: 1.25rem;
}

.member-edit-section {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.member-edit-section + .member-edit-section {
  margin-top: 4px;
}

.member-edit-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 900;
  list-style: none;
}

.member-edit-section summary::-webkit-details-marker {
  display: none;
}

.member-edit-section summary::after {
  content: "v";
  color: var(--muted);
  font-size: 1rem;
}

.member-edit-section[open] summary::after {
  transform: rotate(180deg);
}

.member-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}

.dialog-actions {
  margin: 0;
  padding: 16px 22px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.empty {
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

.info-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #eefaf7;
  color: var(--ink);
}

.info-box p {
  margin: 5px 0 0;
  color: var(--muted);
}

.select-col {
  width: 42px;
  text-align: center;
}

.selection-note {
  align-self: end;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
  font-weight: 700;
}

.warn-text {
  color: #b45309;
  font-weight: 800;
}

.danger-text {
  color: var(--danger);
  font-weight: 800;
}

.import-label {
  display: inline-grid;
  place-items: center;
}

.legal-bar {
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 18px auto 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(24, 39, 56, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-bar a,
.legal-bar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-bar a:hover,
.legal-bar button:hover {
  color: var(--accent-strong);
}

.version-badge {
  position: fixed;
  right: 16px;
  bottom: 14px;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 8px 28px rgba(24, 39, 56, 0.08);
  font-size: 0.7rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.version-badge a {
  color: var(--accent-strong);
  text-decoration: none;
}

.version-badge a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 62px;
  bottom: max(62px, calc(env(safe-area-inset-bottom) + 48px));
  z-index: 30;
  width: min(760px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 14px;
  color: var(--text);
  font-weight: 800;
}

.cookie-check input {
  width: auto;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-page {
  background: #f4f7f7;
}

.legal-document {
  width: min(860px, calc(100vw - 32px));
  margin: 40px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: white;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin-bottom: 20px;
}

.legal-document h2 {
  margin-top: 26px;
  font-size: 1.1rem;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-note {
  margin-top: 26px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    height: auto;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .import-layout,
  .import-cards,
  .section-grid,
  .checkout-grid,
  .landing-hero,
  .visual-example-section,
  .sales-hero-line,
  .flow-steps,
  .feature-lane,
  .feature-module-grid,
  .sales-proof-strip,
  .audience-card-grid,
  .role-story-grid,
  .help-roadmap,
  .help-grid,
  .feature-demo-row,
  .role-paths,
  .pricing-story,
  .onboarding-line,
  .landing-features,
  .split-section,
  .topic-grid,
  .price-cards,
  .audience-list,
  .pricing-slider-box,
  .member-profile-hero,
  .profile-grid,
  .finance-filter-grid,
  .finance-analysis-grid,
  .document-folder-grid,
  .dashboard-toolbar,
  .dashboard-grid,
  .chat-layout,
  .chat-compose,
  .floating-chat-body,
  .todo-create,
  .todo-grid,
  .task-status-strip,
  .tax-check-grid,
  .tax-area-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .checkout-head {
    display: grid;
  }

  .landing-copy h2 {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }

  .auth-screen .topbar {
    align-items: start;
    gap: 14px;
  }

  .auth-screen .topbar-actions {
    justify-content: flex-start;
  }

  .auth-screen .landing-stage {
    min-height: 420px;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .landing-stage {
    min-height: min(460px, calc(100dvh - 220px));
  }

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

  .visual-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-cta-panel {
    display: grid;
    justify-items: start;
  }

  .feature-section-heading {
    display: grid;
    justify-content: start;
  }

  .feature-section-heading strong {
    text-align: left;
  }

  .help-choice-band {
    display: grid;
    justify-items: start;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-analysis-head {
    display: grid;
  }

  .finance-analysis-balance {
    width: 100%;
    text-align: left;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(82px, 1fr));
  }

  .calendar {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .content,
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .nav-list,
  .metrics,
  .form-grid,
  .checkout-grid,
  .contact-person-block,
  .member-edit-grid,
  .checkout-data,
  .landing-features,
  .topic-grid,
  .sales-hero-line,
  .feature-lane,
  .feature-module-grid,
  .sales-proof-strip,
  .audience-card-grid,
  .role-story-grid,
  .help-roadmap,
  .help-grid,
  .price-cards,
  .audience-list,
  .pricing-slider-box,
  .finance-filter-grid,
  .finance-analysis-grid,
  .document-folder-grid,
  .flow-steps,
  .feature-demo-row,
  .role-paths,
  .pricing-story,
  .onboarding-line,
  .visual-dashboard {
    grid-template-columns: 1fr;
  }

  .feature-sales-page,
  .audience-sales-page {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .sales-signal-board,
  .audience-orbit,
  .help-start-card {
    min-height: 230px;
  }

  .sales-cta-panel {
    display: grid;
    justify-items: stretch;
  }

  .feature-section-heading span {
    white-space: normal;
  }

  .help-choice-band {
    display: grid;
    justify-items: stretch;
  }

  .public-menu {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .notification-panel,
  .online-users-panel,
  .floating-chat-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .notification-panel,
  .online-users-panel {
    top: max(76px, calc(env(safe-area-inset-top) + 64px));
  }

  .floating-chat-panel {
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 52px));
  }

  .dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .public-menu a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .auth-screen h1 {
    font-size: clamp(1.18rem, 5.4vw, 1.55rem);
  }

  .landing-hero {
    padding: 22px 16px;
    min-height: auto;
    gap: 18px;
  }

  .landing-logo {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
  }

  .landing-copy h2 {
    font-size: clamp(2rem, 11vw, 2.85rem);
    line-height: 1.05;
  }

  .landing-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-proof {
    gap: 8px;
  }

  .landing-proof span {
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .landing-stage {
    min-height: 360px;
    overflow: hidden;
  }

  .home-flow-section,
  .visual-example-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .visual-card {
    min-height: 112px;
  }

  .slider-card {
    max-width: none;
    min-height: 286px;
    padding: 18px;
  }

  .stage-ribbon {
    left: 14px;
    top: 14px;
  }

  .landing-actions > *,
  .landing-actions a {
    width: 100%;
    text-align: center;
  }

  .search-box input {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .topbar-actions > :not(.public-menu) {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .danger-btn {
    width: 100%;
  }

  .legal-bar,
  .version-badge {
    margin: 12px 16px;
    justify-content: center;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
