:root {
  color-scheme: light;
  --bg: #fafafa;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --border: #e8e8ec;
  --text: #111111;
  --text-secondary: #5f6368;
  --text-muted: #8c9097;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --orange-light: #60a5fa;
  --orange-dark: #1e40af;
  --shadow: rgba(17, 17, 17, 0.06);
  --sidebar: #ffffff;
  --input: #ffffff;
  --soft: #f4f4f5;
  --radius: 16px;
  --container: 1200px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18181b;
  --bg-secondary: #1f1f23;
  --card: #202024;
  --border: #303036;
  --text: #f7f7f8;
  --text-secondary: #c7c8cc;
  --text-muted: #92949b;
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --orange-light: #93c5fd;
  --orange-dark: #2563eb;
  --shadow: rgba(0, 0, 0, 0.22);
  --sidebar: #1c1c20;
  --input: #18181b;
  --soft: #27272a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.boot-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--text);
}

.boot-card p {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.boot-card h1 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
}

.boot-card > span {
  width: 160px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.boot-card > span::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: boot-progress 1s ease-in-out infinite alternate;
}

@keyframes boot-progress {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(150%);
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 20px 50px var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-type="error"] {
  border-color: #ef4444;
}

.presentation-page {
  min-height: 100vh;
  background: #f7f8fb;
  color: #12141a;
}

.presentation-hero,
.presentation-section,
.presentation-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.presentation-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 42px;
  padding: 72px 0 54px;
}

.presentation-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .94;
}

.presentation-hero p {
  max-width: 690px;
  color: #555d6b;
  font-size: 18px;
  line-height: 1.65;
}

.presentation-hero-screen,
.presentation-screen-card,
.presentation-billing-cards article,
.presentation-flow article,
.presentation-module-grid article {
  border: 1px solid #dde2ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(24, 35, 62, .08);
}

.presentation-hero-screen {
  overflow: hidden;
}

.presentation-window-bar,
.presentation-screen-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #e8ecf2;
  color: #596274;
}

.presentation-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f26a21;
}

.presentation-window-bar span:nth-child(2) {
  background: #00a884;
}

.presentation-window-bar span:nth-child(3) {
  background: #cfd6e2;
}

.presentation-window-bar strong,
.presentation-screen-top strong {
  margin-left: auto;
  font-size: 13px;
}

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

.presentation-hero-grid b,
.presentation-hero-grid i {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f6fa;
  color: #273142;
  font-style: normal;
}

.presentation-hero-grid i {
  min-height: 12px;
  background: linear-gradient(90deg, #f26a21, #00a884);
}

.presentation-band {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 58px;
}

.presentation-band span,
.presentation-flow span {
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.presentation-section {
  padding: 64px 0;
}

.presentation-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.presentation-heading h2,
.presentation-split h2,
.presentation-final h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.presentation-module-grid,
.presentation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.presentation-module-grid article,
.presentation-flow article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 156px;
  padding: 22px;
}

.presentation-module-grid p,
.presentation-flow p,
.presentation-split p,
.presentation-screen-card p,
.presentation-billing-cards span {
  margin: 0;
  color: #5d6574;
  line-height: 1.55;
}

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

.presentation-screen-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.presentation-screen-card h3 {
  margin: 0 0 6px;
}

.presentation-screen {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}

.presentation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.presentation-metrics b {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff4ee;
  color: #c75014;
}

.presentation-bars {
  height: 108px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 16px;
}

.presentation-bars i {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: #00a884;
}

.presentation-list,
.presentation-table,
.presentation-side-list,
.presentation-chat,
.presentation-editor {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.presentation-list span,
.presentation-table span,
.presentation-side-list span {
  border-radius: 8px;
  background: #eef2f7;
  padding: 10px 12px;
  color: #3f4858;
}

.presentation-chat p {
  width: fit-content;
  max-width: 78%;
  margin: 0;
  border-radius: 8px;
  background: #eef2f7;
  padding: 10px 12px;
}

.presentation-chat .bot {
  justify-self: end;
  background: #dcf7ee;
}

.presentation-editor header,
.presentation-invoice {
  display: grid;
  gap: 8px;
}

.presentation-editor header {
  border-bottom: 1px solid #e6eaf1;
  padding-bottom: 12px;
}

.presentation-editor p {
  margin: 0;
  border-radius: 8px;
  background: #eef2f7;
  padding: 12px;
}

.presentation-invoice {
  margin: 16px;
  padding: 20px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.presentation-invoice b {
  font-size: 30px;
}

.presentation-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.presentation-billing-cards {
  display: grid;
  gap: 14px;
}

.presentation-billing-cards article {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.presentation-flow span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
}

.presentation-plans {
  align-items: stretch;
}

.presentation-page .presentation-plans .plan-card {
  border: 1px solid #dde2ea !important;
  background: #fff !important;
  color: #12141a !important;
  box-shadow: 0 22px 70px rgba(24, 35, 62, .08) !important;
}

.presentation-page .presentation-plans .plan-card.recommended {
  border-color: #f26a21 !important;
}

.presentation-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  padding: 34px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.presentation-final .eyebrow {
  color: #fb8a3c;
}

@media (max-width: 900px) {
  .presentation-hero,
  .presentation-split {
    grid-template-columns: 1fr;
  }

  .presentation-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .presentation-module-grid,
  .presentation-screen-grid,
  .presentation-flow {
    grid-template-columns: 1fr;
  }

  .presentation-final {
    display: grid;
  }
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    var(--bg);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  backdrop-filter: blur(18px);
}

.public-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-nav nav button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 9px 10px;
}

.public-hero,
.public-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-hero {
  min-height: 62vh;
  display: grid;
  align-items: center;
  padding: 70px 0 44px;
}

.public-hero h1,
.public-section h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
}

.public-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 18px;
}

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

.public-section {
  padding: 42px 0;
}

.public-section.first {
  padding-top: 62px;
}

.public-section h2 {
  margin: 8px 0 20px;
  font-size: 34px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

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

.resource-grid article,
.selected-plan-notice,
.cart-summary div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 36px var(--shadow);
}

.resource-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.resource-grid span,
.selected-plan-notice span,
.selected-plan-notice small,
.cart-summary span {
  color: var(--text-secondary);
}

.selected-plan-notice {
  display: grid;
  gap: 5px;
  margin: 14px 0 18px;
  padding: 14px;
  border-color: rgba(37, 99, 235, 0.24);
}

.selected-plan-notice strong {
  color: var(--primary);
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.cart-summary .total {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
}

.auth-public-page {
  min-height: 100vh;
}

.auth-page {
  width: min(var(--container), calc(100% - 32px));
  margin: 34px auto 0;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 44px var(--shadow);
  overflow: hidden;
}

.register-page {
  min-height: 100vh;
  background: var(--bg);
}

.register-banner {
  width: min(var(--container), calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px var(--shadow);
}

.register-banner h1 {
  max-width: 760px;
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.register-banner p {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 17px;
}

.register-banner-media {
  min-height: 230px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
}

.register-banner-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.banner-placeholder {
  height: 100%;
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text-secondary);
}

.banner-placeholder strong {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary);
  color: white;
}

.register-content {
  width: min(860px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.register-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 44px var(--shadow);
}

.form-heading {
  margin-bottom: 20px;
}

.form-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.form-heading p {
  margin: 0;
  color: var(--text-secondary);
}

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

.form-section {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0;
  font-size: 15px;
}

.form-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-links.centered {
  justify-content: center;
}

.auth-hero {
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, transparent), transparent 58%),
    var(--bg-secondary);
}

.auth-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.brand-button:hover .brand-mark {
  background: var(--primary-hover);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ui-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: content-box;
  overflow: visible;
  color: currentColor;
  fill: none;
  stroke: currentColor;
}

.ui-icon path,
.ui-icon circle,
.ui-icon rect,
.ui-icon line,
.ui-icon polyline,
.ui-icon polygon {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.auth-brand strong,
.sidebar-brand strong {
  display: block;
  color: var(--text);
}

.auth-brand span,
.sidebar-brand span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-copy h1 {
  max-width: 620px;
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

.auth-copy p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 17px;
}

.auth-panel {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
}

.auth-tools {
  position: absolute;
  right: 24px;
  top: 24px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 24px 60px var(--shadow);
}

.auth-card > p span {
  color: var(--text-secondary);
}

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

.auth-card h2,
.panel h2,
.kanban-column h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.auth-card p,
.muted,
.empty {
  color: var(--text-secondary);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-links button,
.text-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
}

.text-btn.danger {
  color: #ef4444;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
}

.field input,
.field textarea,
.field select,
.search,
.chat-input-area textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  transition: border 150ms ease, box-shadow 150ms ease;
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled,
button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search:focus,
.chat-input-area textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.field-error {
  min-height: 16px;
  color: #ef4444;
}

.primary-btn,
.secondary-btn,
.icon-text {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 700;
}

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

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

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.primary-btn.small {
  min-height: 38px;
}

.secondary-btn,
.icon-text {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
}

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

.department-checks {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
}

.department-checks strong {
  font-size: 13px;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
}

.nav {
  display: grid;
  gap: 16px;
}

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

.nav-group > span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 12px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  padding: 0 12px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--soft);
}

.nav-item.logout {
  color: #ef4444;
}

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

.main {
  height: 100vh;
  overflow: auto;
  padding: 24px;
}

.main-fixed {
  overflow: hidden;
  padding: 0;
}

.home-shell {
  grid-template-columns: 76px minmax(0, 1fr);
  background: #eef2f8;
}

[data-theme="dark"] .home-shell {
  background: var(--bg);
}

.home-shell .sidebar {
  align-items: center;
  gap: 18px;
  padding: 24px 10px;
}

.home-shell .sidebar-header-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-shell .sidebar-workspace,
.home-shell .sidebar-brand strong,
.home-shell .sidebar-brand span,
.home-shell .nav-group > span,
.home-shell .nav-item span,
.home-shell .sidebar-user .user-copy,
.home-shell .sidebar-user > .ui-icon {
  display: none;
}

.home-shell .sidebar-brand,
.home-shell .sidebar-user,
.home-shell .nav-item {
  justify-content: center;
}

.home-shell .brand-mark,
.home-shell .user-avatar {
  width: 42px;
  height: 42px;
}

.home-shell .nav {
  width: 100%;
  gap: 8px;
}

.home-shell .nav-group {
  gap: 8px;
  margin-bottom: 0;
}

.home-shell .nav-item {
  min-height: 42px;
  padding: 0;
}

.home-shell .nav-item .ui-icon {
  width: 19px;
  height: 19px;
}

.home-shell .sidebar-footer {
  width: 100%;
  border: 0;
  padding-top: 0;
}

.home-shell .sidebar-utilities .nav-item {
  justify-content: center;
}

.home-shell .main {
  padding: 0;
  background: transparent;
}

.home-shell .workspace-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-dashboard {
  width: min(1432px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 72px;
}

.home-hero {
  min-height: 176px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 355px);
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border: 1px solid rgba(222, 227, 236, 0.9);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(39, 55, 86, 0.07);
}

.home-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #00a884;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 760px;
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.home-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-illustration {
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.75) 0 14px, transparent 15px),
    linear-gradient(135deg, #fff1ec, #ffd7ca);
}

.legal-paper {
  position: absolute;
  left: 58px;
  top: 36px;
  width: 184px;
  height: 112px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 26px 16px 0 rgba(242, 106, 33, 0.75);
  transform: rotate(-7deg);
}

.legal-paper span {
  height: 4px;
  border-radius: 999px;
  background: #d7dde8;
}

.legal-paper span:nth-child(2) {
  width: 78%;
}

.legal-paper span:nth-child(3) {
  width: 62%;
}

.legal-paper strong {
  position: absolute;
  right: 18px;
  top: -16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f26a21;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 0 0 7px rgba(242, 106, 33, 0.18);
}

.hero-seal {
  position: absolute;
  right: 48px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #00a884;
  color: #ffffff;
  font-weight: 900;
}

.home-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 24px 0 54px;
}

.home-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfd5df;
}

.home-dots span:first-child {
  background: #00a884;
}

.home-dots.small {
  margin: 18px 0 58px;
}

.home-section,
.ai-workspace-card {
  display: grid;
  gap: 18px;
}

.home-section-title,
.ai-workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-section-title h2,
.ai-workspace-heading h2 {
  margin: 0;
  font-size: 22px;
}

.home-section-controls {
  display: flex;
  gap: 8px;
}

.home-section-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
}

.quick-task-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(244px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.quick-task-card {
  min-height: 116px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 44px 18px 24px;
  border: 1px solid rgba(242, 106, 33, 0.35);
  border-radius: 8px;
  background: #fff3ee;
  color: var(--text);
  text-align: left;
}

.quick-task-card:hover {
  border-color: rgba(242, 106, 33, 0.8);
  transform: translateY(-1px);
}

.quick-task-card small {
  color: var(--text-secondary);
  line-height: 1.35;
}

.quick-task-icon {
  display: inline-flex;
  color: var(--text-muted);
}

.quick-task-card i,
.ai-action-button i {
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--primary);
  font-size: 28px;
  font-style: normal;
  transform: translateY(-50%);
}

.ai-workspace-card {
  padding: 24px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(39, 55, 86, 0.06);
}

.text-link {
  border: 0;
  background: transparent;
  color: #00a884;
  font-weight: 800;
}

.ai-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-action-button {
  min-height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 44px 10px 14px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #f9fbff;
  color: var(--text);
  text-align: left;
}

.ai-action-button .ui-icon {
  color: #00a884;
}

.ai-prompt-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
}

.ai-prompt-box textarea {
  min-height: 34px;
  max-height: 160px;
  resize: vertical;
  border: 0;
  background: transparent;
  outline: 0;
}

.ai-prompt-box button,
.floating-chat-button {
  border: 0;
  border-radius: 999px;
  background: #00a884;
  color: #ffffff;
}

.ai-prompt-box button {
  width: 42px;
  height: 42px;
}

.floating-chat-button {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 20;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px rgba(0, 168, 132, 0.34);
}

.home-insights-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-insights-grid .metric-card {
  box-shadow: 0 12px 34px rgba(39, 55, 86, 0.06);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.chart-bars {
  display: grid;
  gap: 13px;
}

.chart-bars div {
  display: grid;
  grid-template-columns: 140px minmax(120px, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.chart-bars strong {
  height: 10px;
  min-width: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.chart-bars em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.metric-card,
.panel,
.plan-card,
.kanban-column {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 36px var(--shadow);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--text-muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.dashboard-grid,
.settings-grid,
.invoice-detail,
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-hub-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 18px;
  text-align: left;
  box-shadow: 0 12px 32px var(--shadow);
}

.admin-hub-card span,
.admin-hub-card small {
  color: var(--text-secondary);
}

.admin-hub-card > .ui-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--primary);
  padding: 10px;
}

.admin-card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--primary);
}

.admin-card-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.admin-hub-card.locked {
  opacity: 0.68;
}

.admin-cms-grid .span-2 {
  grid-column: span 2;
}

.cms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.cms-list button,
.media-grid button {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.cms-list span,
.media-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.cms-form {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.panel {
  padding: 20px;
}

.panel-value,
.price {
  display: block;
  font-size: 30px;
  font-weight: 800;
}

.price small {
  color: var(--text-muted);
  font-size: 14px;
  margin-left: 4px;
}

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

.limit-grid span,
.invoice-summary span,
.mini-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  color: var(--text-secondary);
}

.limit-grid strong,
.invoice-summary strong,
.mini-row strong {
  display: block;
  color: var(--text);
}

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

.table-wrap {
  overflow: auto;
}

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

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

th {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status,
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

[data-theme="dark"] .status,
[data-theme="dark"] .badge {
  color: var(--orange-light);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(8, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.kanban-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.kanban-filters select {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input);
  color: var(--text);
  padding: 0 12px;
}

.kanban-column {
  min-height: 420px;
  padding: 14px;
}

.kanban-column h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-column h2 span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.kanban-card:hover {
  border-color: var(--primary);
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.kanban-card p {
  margin: 0;
  color: var(--text-secondary);
}

.attendance-detail {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.transfer-box {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.permission-note,
.muted-box {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
}

.permission-note span {
  color: var(--text-secondary);
  font-size: 13px;
}

.muted-box {
  opacity: 0.78;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.timeline div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--soft);
}

.timeline span,
.stage-list span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
}

.stage-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-list span {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--soft);
  color: var(--text);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.plan-card.recommended {
  border-color: var(--primary);
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.plan-card .primary-btn {
  margin-top: auto;
}

.chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.chat-header {
  flex-shrink: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.chat-header h1 {
  margin: 4px 0 0;
  font-size: 22px;
}

.chat-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
}

.conversation-list,
.client-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
}

.client-panel {
  border-right: 0;
  border-left: 1px solid var(--border);
}

.conversation-list button {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.conversation-list button.active,
.conversation-list button:hover {
  border-color: var(--border);
  background: var(--soft);
}

.conversation-list span,
.client-panel dd {
  color: var(--text-muted);
}

.chat-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.bubble {
  width: fit-content;
  max-width: min(680px, 82%);
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.bubble.out {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.22);
}

.integration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 24px;
}

.integration-summary h2,
.integration-summary p {
  margin: 6px 0 0;
}

.integration-summary p {
  color: var(--text-secondary);
}

.integration-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.integration-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.integration-status.own i { background: #16a34a; }
.integration-status.managed i { background: var(--primary); }

.integration-panel {
  padding: 0;
  overflow: hidden;
}

.integration-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.integration-mode label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.integration-mode span {
  display: grid;
  gap: 5px;
}

.integration-mode small {
  color: var(--text-secondary);
}

.integration-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 20px 0;
  border-bottom: 1px solid var(--border);
}

.integration-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 14px;
  font-weight: 700;
}

.integration-tabs button.active {
  border-color: var(--primary);
  color: var(--text);
}

.integration-tab {
  display: none;
  padding: 26px 20px;
}

.integration-tab.active {
  display: block;
}

.integration-panel > .form-actions {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
}

.test-result {
  display: inline-block;
  margin: 12px 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.test-result.connected { color: #15803d; }
.test-result.error { color: #dc2626; }

@media (max-width: 720px) {
  .integration-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-mode {
    grid-template-columns: 1fr;
  }
}

.bubble p {
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.bubble .transcription {
  color: var(--text-secondary);
  font-size: 14px;
}

.bubble span {
  color: var(--text-muted);
  font-size: 12px;
}

.chat-input-area {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
}

.chat-input-area textarea {
  min-height: 44px;
  max-height: 132px;
  resize: vertical;
  overflow-y: auto;
}

.client-panel dl {
  display: grid;
  gap: 8px;
}

.client-panel dt {
  color: var(--text-muted);
  font-size: 12px;
}

.client-panel dd {
  margin: 0 0 8px;
}

.totals {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

@media (max-width: 1180px) {
  .metrics-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

  .kanban-layout {
    grid-template-columns: 1fr;
  }

  .attendance-detail {
    position: static;
    max-height: none;
  }

  .client-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav nav {
    width: 100%;
  }

  .public-hero {
    min-height: auto;
    padding: 46px 0 26px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .register-banner,
  .admin-cms-grid {
    grid-template-columns: 1fr;
  }

  .register-banner {
    width: calc(100% - 24px);
    padding: 24px;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .admin-cms-grid .span-2 {
    grid-column: auto;
  }

  .auth-hero {
    min-height: 38vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .auth-page {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .auth-panel {
    min-height: auto;
    padding: 22px;
  }

  .form-grid.two,
  .dashboard-grid,
  .settings-grid,
  .invoice-detail,
  .checkout-grid,
  .metrics-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .sidebar {
    height: auto;
    max-height: 36vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .main {
    height: 64vh;
    padding: 16px;
  }

  .main-fixed {
    height: 64vh;
    padding: 0;
  }

  .chat-page {
    height: 64vh;
  }

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

  .conversation-list {
    display: none;
  }

  .chat-input-area {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

/* Public site 2026 */
.public-page {
  background: var(--bg);
}

.home-hero {
  position: relative;
  isolation: isolate;
  width: min(1440px, calc(100% - 32px));
  min-height: min(720px, calc(100svh - 118px));
  margin: 18px auto 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  padding: clamp(38px, 6vw, 84px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 12, 0.62);
}

.hero-content {
  width: min(800px, 100%);
  color: #ffffff;
}

.home-hero .eyebrow {
  color: #ffb27c;
}

.home-hero h1 {
  max-width: 780px;
  margin: 12px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero .hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-secondary {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(15, 15, 17, 0.3);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 700;
  transition: 220ms ease;
}

.hero-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-proof span::before {
  content: "✓";
  margin-right: 7px;
  color: #ff9a52;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-title {
  margin-bottom: 28px;
}

.section-intro {
  width: min(430px, 100%);
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 28px;
  transition: 220ms ease;
}

.feature-grid article:hover {
  background: var(--soft);
}

.feature-grid strong {
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-icon {
  min-width: 42px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  border-radius: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.feature-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.product-showcase {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
  align-items: center;
  gap: 56px;
}

.showcase-copy p,
.showcase-copy li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.showcase-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.showcase-copy li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--primary);
  font-weight: 800;
}

.dashboard-preview {
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 55px var(--shadow);
  padding: 36px;
}

.preview-window {
  width: 100%;
  min-height: 300px;
  display: grid;
  grid-template-columns: 72px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(24, 24, 27, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 10px;
}

.preview-sidebar span {
  width: 28px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
}

.preview-content {
  padding: 28px;
}

.preview-content small {
  color: rgba(255, 255, 255, 0.58);
}

.preview-content h3 {
  margin: 8px 0 24px;
  font-size: 24px;
}

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

.preview-metrics b {
  min-height: 72px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
}

.preview-chart {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.preview-chart i {
  flex: 1;
  height: 38%;
  border-radius: 3px 3px 0 0;
  background: #f26a21;
}

.preview-chart i:nth-child(2), .preview-chart i:nth-child(5) { height: 68%; }
.preview-chart i:nth-child(3) { height: 52%; }
.preview-chart i:nth-child(4) { height: 84%; }
.preview-chart i:nth-child(6) { height: 76%; }

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

.segments-grid article {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: #18181b;
}

.segments-grid article::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: rgba(10, 10, 12, 0.58);
}

.segments-grid img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 260ms ease;
}

.segments-grid article:hover img {
  transform: scale(1.035);
}

.segments-grid strong {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: #ffffff;
  font-size: 17px;
}

.plan-card {
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow);
}

.plan-card.recommended {
  border-color: color-mix(in srgb, var(--primary) 72%, var(--border));
  box-shadow: 0 18px 45px color-mix(in srgb, var(--primary) 13%, transparent);
}

.plan-card li::marker {
  color: var(--primary);
}

.final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 8px;
  padding: clamp(30px, 5vw, 54px);
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .feature-grid,
  .segments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-inner,
  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    width: calc(100% - 24px);
    min-height: min(650px, calc(100svh - 94px));
    margin-top: 12px;
    padding: 30px 22px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-actions,
  .hero-actions button {
    width: 100%;
  }

  .trust-strip {
    justify-content: flex-start;
  }

  .feature-grid,
  .segments-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .dashboard-preview {
    min-height: 380px;
    padding: 14px;
  }

  .preview-window {
    grid-template-columns: 48px 1fr;
  }

  .preview-content {
    padding: 20px 14px;
  }

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

  .preview-metrics b:nth-child(n+2) {
    display: none;
  }
}

/* Agenda, utilitarios e administracao documental */
.calendar-panel,
.calendar-detail,
.previdenciary-queue,
.utility-card,
.utility-result,
.admin-document-filters,
.admin-documents-table,
.admin-document-detail,
.processing-layout > .panel,
.pipeline-guide {
  border-radius: 8px;
}

.calendar-metrics .metric-card {
  min-height: 112px;
}

.calendar-notifications {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -4px 0 16px;
}
.calendar-notifications button {
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  color: var(--text);
  text-align: left;
}
.calendar-notifications button span { display: grid; gap: 2px; }
.calendar-notifications button small { color: var(--text-muted); }

.previdenciary-dashboard {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.previdenciary-dashboard > div:last-child {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.previdenciary-dashboard .metric-card { min-height: 92px; box-shadow: none; }

.calendar-layout,
.admin-documents-layout,
.processing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.calendar-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.calendar-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.calendar-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-toolbar strong {
  margin-left: 8px;
  text-transform: capitalize;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}

.segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
}

.segmented button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 3px var(--shadow);
}

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

.calendar-weekdays span {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.calendar-day {
  min-height: 128px;
  padding: 7px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.muted {
  background: color-mix(in srgb, var(--soft) 60%, var(--card));
  color: var(--text-muted);
}

.calendar-day.today > header > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
}

.calendar-day header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
}

.calendar-day header button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
}

.calendar-event {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin: 3px 0;
  padding: 5px 6px;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 5px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.calendar-event span { color: var(--text-muted); font-size: 10px; }
.calendar-event strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.calendar-event.cancelled { opacity: .45; text-decoration: line-through; }
.calendar-event.category-inss { border-left-color: #f26a21; }
.calendar-event.category-hearing { border-left-color: #7c3aed; }
.calendar-event.category-deadline { border-left-color: #dc2626; }
.calendar-event.category-meeting { border-left-color: #2563eb; }
.calendar-event.category-expert_exam { border-left-color: #059669; }

.calendar-detail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.calendar-detail section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.calendar-detail h3 { margin: 0 0 8px; font-size: 13px; }
.calendar-detail p { margin: 4px 0; color: var(--text-secondary); line-height: 1.5; }
.calendar-detail-time { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.reminder-list { display: flex; flex-wrap: wrap; gap: 6px; }
.reminder-list span { padding: 5px 7px; border-radius: 6px; background: var(--soft); color: var(--text-secondary); font-size: 11px; }

.document-mini-row {
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.document-mini-row span:last-child { display: grid; gap: 2px; }
.document-mini-row small { color: var(--text-muted); }

.calendar-list { display: grid; }
.calendar-list-row {
  display: grid;
  grid-template-columns: 58px minmax(220px, 1fr) 160px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.calendar-list-row:hover { background: var(--soft); }
.calendar-list-row time { display: grid; justify-items: center; }
.calendar-list-row time strong { font-size: 20px; }
.calendar-list-row time span, .calendar-list-row small { color: var(--text-muted); }
.calendar-list-row > div { display: grid; gap: 4px; }

.previdenciary-queue { margin-top: 16px; }
.compact-field { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.compact-field select { min-height: 36px; border: 1px solid var(--border); border-radius: 7px; background: var(--input); color: var(--text); padding: 0 9px; }
.previdenciary-queue tbody tr { cursor: pointer; }
.previdenciary-queue tbody tr:hover { background: var(--soft); }

.wide-dialog { width: min(900px, calc(100vw - 32px)); }
.calendar-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calendar-form-grid .field:has(textarea), .calendar-form-grid .span-2 { grid-column: 1 / -1; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.utility-card { display: grid; align-content: start; gap: 16px; padding: 18px; }
.utility-card h2 { margin: 0 0 6px; font-size: 17px; }
.utility-card p { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.utility-card form { display: grid; gap: 12px; }
.utility-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--soft)); color: var(--primary); }
.file-drop { display: grid; gap: 5px; padding: 14px; border: 1px dashed var(--border); border-radius: 8px; background: var(--soft); cursor: pointer; }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.file-drop span { font-weight: 800; }
.file-drop small { overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.utility-result { margin-top: 16px; padding: 18px; }
.utility-result > div { display: flex; gap: 10px; align-items: center; }
.utility-result textarea { width: 100%; margin: 14px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--input); color: var(--text); padding: 12px; }

.admin-document-filters { margin-bottom: 16px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.filter-grid .primary-btn { min-height: 44px; }
.admin-documents-table { min-width: 0; overflow: hidden; }
.admin-documents-table td:first-child { display: grid; gap: 3px; min-width: 220px; }
.admin-documents-table td:first-child small { color: var(--text-muted); }
.clickable-row { cursor: pointer; }
.clickable-row:hover, .clickable-row.selected { background: var(--soft); }
.admin-document-detail { position: sticky; top: 16px; display: grid; gap: 16px; padding: 18px; }
.document-detail-meta { display: grid; }
.document-summary { max-height: 180px; overflow: auto; color: var(--text-secondary); line-height: 1.55; }
.document-extracted-text summary { cursor: pointer; font-weight: 800; }
.document-extracted-text pre { max-height: 320px; overflow: auto; white-space: pre-wrap; font-family: inherit; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.document-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.processing-layout { margin-top: 16px; }
.processing-list { display: grid; }
.processing-list article { display: grid; grid-template-columns: 12px minmax(0, 1fr) 110px 130px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.processing-list article > div { display: grid; gap: 3px; }
.processing-list small, .processing-list p, .processing-list time { margin: 0; color: var(--text-muted); font-size: 12px; }
.processing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.processing-dot.status-completed { background: #16a34a; }
.processing-dot.status-error { background: #dc2626; }
.processing-dot.status-processing { background: #2563eb; }
.processing-dot.status-waiting, .processing-dot.status-pending { background: #d97706; }
.pipeline-guide { display: grid; gap: 8px; padding: 18px; }
.pipeline-guide h2 { margin: 0 0 8px; font-size: 17px; }
.pipeline-guide div { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; background: var(--soft); }
.pipeline-guide div span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--card); color: var(--primary); font-weight: 900; font-size: 11px; }

@media (max-width: 1180px) {
  .utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 900px) {
  .calendar-layout, .admin-documents-layout, .processing-layout { grid-template-columns: 1fr; }
  .previdenciary-dashboard > div:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-detail, .admin-document-detail { position: static; }
  .calendar-day { min-height: 104px; }
}

@media (max-width: 700px) {
  .utility-grid, .filter-grid, .calendar-form-grid { grid-template-columns: 1fr; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-weekdays { display: none; }
  .calendar-days { grid-template-columns: 1fr; }
  .calendar-day { min-height: auto; border-right: 0; }
  .calendar-day.muted { display: none; }
  .calendar-list-row { grid-template-columns: 48px 1fr; }
  .calendar-list-row > span { display: none; }
  .document-action-grid { grid-template-columns: 1fr; }
  .processing-list article { grid-template-columns: 10px 1fr; }
  .processing-list article > .status, .processing-list article > time { grid-column: 2; }
}

/* Editor Jurídico IA */
.legal-documents-panel { padding: 0; overflow: hidden; }
.legal-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }
.legal-list-toolbar .search { width: min(460px, 100%); }
.legal-document-list { display: grid; }
.legal-document-row { width: 100%; display: grid; grid-template-columns: 38px minmax(180px, 1fr) auto 150px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; }
.legal-document-row:hover { background: var(--soft); }
.legal-document-row > span:nth-child(2) { display: grid; gap: 5px; }
.legal-document-row small, .legal-document-meta { color: var(--text-secondary); }
.legal-document-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
.legal-editor-welcome { min-height: calc(100dvh - 40px); display: grid; place-items: center; padding: 32px; background: var(--soft); }
.legal-editor-welcome > div { width: min(620px, 100%); padding: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-shadow: 0 18px 50px var(--shadow); text-align: center; }
.legal-editor-welcome svg { color: var(--primary); }
.legal-editor-welcome p { color: var(--text-secondary); }
.legal-new-document-form { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; gap: 10px; margin-top: 26px; }
.legal-new-document-form input, .legal-new-document-form select { min-width: 0; height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: var(--card); color: var(--text); }
.legal-library-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); }
.thesis-list { display: grid; gap: 10px; }
.thesis-list > article { padding: 18px; border: 1px solid var(--border); border-radius: 8px; }
.thesis-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.thesis-list small, .thesis-list p { color: var(--text-secondary); }

.main-fixed { height: 100dvh; overflow: hidden; padding: 0; }
.legal-editor-shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--soft); }
.legal-editor-header { flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--card); z-index: 5; }
.legal-editor-header > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.legal-editor-header input { width: min(430px, 44vw); min-width: 180px; border: 0; background: transparent; color: var(--text); font-size: 16px; font-weight: 700; padding: 9px; }
.legal-editor-header input:focus { outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 6px; }
.icon-only { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); }
.editor-save-state { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.editor-panel-toggle { display: none; }
.legal-editor-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: 264px minmax(560px, 1fr) 330px; overflow: hidden; }
.legal-editor-context, .legal-ai-panel { min-height: 0; overflow-y: auto; background: var(--card); padding: 16px; }
.legal-editor-context { border-right: 1px solid var(--border); }
.legal-ai-panel { border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.editor-side-heading { display: grid; gap: 3px; margin-bottom: 18px; }
.editor-side-heading strong { font-size: 14px; }
.editor-side-heading small, .editor-sources-title small { color: var(--text-secondary); font-size: 12px; }
.legal-editor-context > label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.legal-editor-context input, .legal-editor-context select { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--border); border-radius: 7px; padding: 0 9px; background: var(--soft); color: var(--text); }
.editor-sources-title { display: grid; gap: 4px; margin: 22px 0 10px; }
.editor-source-group, .editor-version-list { border-top: 1px solid var(--border); }
.editor-source-group summary, .editor-version-list summary { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 700; }
.editor-source-group summary span, .editor-version-list summary span { color: var(--text-secondary); }
.editor-source-group > div { display: grid; gap: 8px; padding-bottom: 12px; }
.editor-source-group .check { align-items: start; font-size: 12px; line-height: 1.35; }
.editor-version-list button { width: 100%; display: flex; justify-content: space-between; padding: 9px 0; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--text); }
.editor-version-list button small { color: var(--text-secondary); }
.legal-editor-workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.legal-editor-toolbar { flex: 0 0 48px; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--card); overflow-x: auto; }
.legal-editor-toolbar button, .legal-editor-toolbar select { flex: 0 0 auto; min-width: 34px; height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); padding: 0 8px; }
.legal-editor-toolbar button:hover, .legal-editor-toolbar select:hover { border-color: var(--border); background: var(--soft); }
.legal-editor-toolbar > span { width: 1px; height: 22px; background: var(--border); margin: 0 3px; }
.legal-page-stage { min-height: 0; flex: 1; overflow: auto; padding: 30px max(24px, calc((100% - 794px) / 2)); background: #e9eaec; }
[data-theme="dark"] .legal-page-stage { background: #202125; }
.legal-word-page { width: 794px; min-height: 1123px; margin: 0 auto; padding: 92px 86px; background: #fff; color: #151515; box-shadow: 0 3px 20px rgba(17,17,17,.14); outline: none; font-family: "Times New Roman", serif; font-size: 12pt; line-height: 1.55; }
.legal-word-page p { margin: 0 0 12px; text-align: justify; }
.legal-word-page h1 { font-size: 20pt; text-align: center; }
.legal-word-page h2 { font-size: 15pt; }
.legal-word-page h3 { font-size: 13pt; }
.legal-editor-notice { flex: 0 0 auto; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--card); color: var(--text-secondary); font-size: 11px; text-align: center; }
.legal-ai-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.legal-ai-shortcuts button { border: 1px solid var(--border); border-radius: 7px; background: var(--soft); color: var(--text-secondary); padding: 7px 9px; font-size: 11px; text-align: left; }
.legal-ai-shortcuts button:hover { border-color: var(--primary); color: var(--text); }
.legal-ai-messages { min-height: 180px; flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 4px 2px 14px; }
.legal-ai-messages article { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: var(--soft); font-size: 13px; line-height: 1.5; }
.legal-ai-messages article.assistant { border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border)); background: color-mix(in srgb, var(--primary) 5%, var(--card)); }
.legal-ai-messages article small { color: var(--text-secondary); font-weight: 700; }
.legal-ai-messages article p { margin: 0; }
.legal-ai-messages article > div { display: flex; flex-wrap: wrap; gap: 5px; }
.legal-ai-messages article button { border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); padding: 5px 7px; font-size: 10px; }
.legal-ai-empty { align-self: center; display: grid; justify-items: center; gap: 7px; padding: 28px 12px; color: var(--text-secondary); text-align: center; }
.legal-ai-empty svg { color: var(--primary); }
.legal-ai-empty p { margin: 0; font-size: 12px; }
.legal-ai-composer { flex: 0 0 auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.legal-ai-composer textarea { width: 100%; max-height: 140px; resize: vertical; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--soft); color: var(--text); }
.editor-used-sources { flex: 0 0 auto; max-height: 160px; overflow-y: auto; display: grid; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.editor-used-sources > strong { font-size: 12px; }
.editor-used-sources > div { display: grid; gap: 2px; }
.editor-used-sources span { color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.editor-used-sources small, .editor-used-sources p { margin: 0; color: var(--text-secondary); font-size: 11px; }

.support-mode-banner { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -24px -24px 22px; padding: 12px 24px; border-bottom: 1px solid color-mix(in srgb, #f59e0b 40%, var(--border)); background: color-mix(in srgb, #f59e0b 12%, var(--card)); color: var(--text); }
.support-mode-banner > div { display: flex; align-items: baseline; gap: 10px; }
.support-mode-banner span { color: var(--text-secondary); font-size: 13px; }
.communication-metrics { margin-bottom: 18px; }
.communication-layout { display: grid; grid-template-columns: 260px minmax(480px, 1fr) 310px; gap: 16px; align-items: start; margin-bottom: 16px; }
.communication-template-list { display: grid; gap: 6px; padding: 12px; }
.communication-template-list .section-heading { padding: 8px; }
.communication-template-list > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); text-align: left; }
.communication-template-list > button:hover, .communication-template-list > button.active { border-color: var(--border); background: var(--soft); }
.communication-template-list button > span:first-child { display: grid; gap: 3px; }
.communication-template-list small { color: var(--text-secondary); }
.communication-template-editor textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.template-variables { display: grid; gap: 8px; }
.email-preview { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.email-preview iframe { width: 100%; min-height: 360px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.communication-smtp { position: sticky; top: 16px; }

@media (max-width: 1180px) {
  .communication-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .communication-smtp { position: static; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .support-mode-banner { align-items: stretch; flex-direction: column; margin: -16px -16px 16px; padding: 12px 16px; }
  .support-mode-banner > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .communication-layout { grid-template-columns: 1fr; }
  .communication-smtp { grid-column: auto; }
}

@media (max-width: 1280px) {
  .legal-editor-grid { grid-template-columns: 230px minmax(520px, 1fr) 300px; }
}
@media (max-width: 1050px) {
  .legal-editor-grid { grid-template-columns: 220px minmax(500px, 1fr); }
  .editor-panel-toggle { display: inline-flex; }
  .legal-ai-panel { position: fixed; z-index: 20; right: 0; top: 58px; bottom: 0; width: min(360px, 92vw); box-shadow: -12px 0 32px rgba(17,17,17,.16); transform: translateX(105%); transition: transform .22s ease; }
  .legal-editor-shell.ai-open .legal-ai-panel { transform: translateX(0); }
  .legal-word-page { width: 720px; padding: 78px 72px; }
}
@media (max-width: 760px) {
  .legal-editor-header { align-items: stretch; min-height: 102px; flex-direction: column; padding: 8px 12px; }
  .legal-editor-header input { width: 100%; }
  .editor-save-state { overflow-x: auto; }
  .legal-editor-grid { grid-template-columns: 1fr; }
  .legal-editor-context { display: block; position: fixed; z-index: 21; left: 0; top: 102px; bottom: 0; width: min(330px, 92vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 32px rgba(17,17,17,.16); }
  .legal-editor-shell.context-open .legal-editor-context { transform: translateX(0); }
  .legal-ai-panel { top: 102px; width: 100%; }
  .legal-editor-workspace { min-width: 0; }
  .legal-page-stage { padding: 16px; }
  .legal-word-page { width: 100%; min-height: calc(100dvh - 220px); padding: 48px 32px; box-shadow: none; }
  .legal-document-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .legal-document-meta { display: none; }
  .legal-list-toolbar { align-items: stretch; flex-direction: column; }
  .legal-new-document-form { grid-template-columns: 1fr; }
  .legal-library-grid { grid-template-columns: 1fr; }
}

/* Public CTA system */
.public-page .primary-btn,
.public-page .secondary-btn,
.public-page .hero-secondary,
.public-page .ghost-btn {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.public-page .primary-btn {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.public-page .primary-btn:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
  transform: translateY(-1px);
}

.public-page .secondary-btn,
.public-page .hero-secondary {
  border: 1px solid rgba(113, 113, 122, .32);
  background: rgba(255, 255, 255, .92);
  color: #27272a;
  box-shadow: 0 6px 16px rgba(24, 24, 27, .08);
}

.public-page .secondary-btn:hover,
.public-page .hero-secondary:hover {
  border-color: rgba(37, 99, 235, .42);
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.public-page button:active,
.public-page .primary-btn:active,
.public-page .secondary-btn:active {
  transform: translateY(0) scale(.985);
}

.public-page button:focus-visible,
.public-page a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 3px;
}

.public-page .home-hero .hero-secondary {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(8px);
}

.public-page .home-hero .hero-secondary:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

/* Operational console: denser, service-management inspired UI */
.main:not(.main-fixed) {
  background: color-mix(in srgb, var(--bg) 94%, #dfe6ee);
}

.topbar {
  min-height: 82px;
  margin-bottom: 20px;
  padding-block: 14px;
}

.topbar .eyebrow {
  color: var(--text-muted);
  font-size: 11px;
}

.topbar h1 {
  font-size: clamp(23px, 2vw, 29px);
}

.panel-compact {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 4px 16px var(--shadow);
}

.billing-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.billing-overview article {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 4px 14px var(--shadow);
}

.billing-overview article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #64748b;
}

.billing-overview article:nth-child(2)::before { background: #16a34a; }
.billing-overview article:nth-child(3)::before { background: #d97706; }
.billing-overview article.attention::before { background: #dc2626; }
.billing-overview span { color: var(--text-secondary); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.billing-overview strong { font-size: 25px; line-height: 1.1; }
.billing-overview small { color: var(--text-muted); }

.billing-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 12px 16px;
}

.toolbar-title,
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-title {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.toolbar-title span {
  color: var(--text-muted);
  font-size: 12px;
}

.toolbar-controls .search { width: min(300px, 30vw); }
.toolbar-controls select { min-height: 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); color: var(--text); padding: 0 34px 0 12px; }

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.billing-layout.with-editor {
  grid-template-columns: minmax(580px, 1fr) minmax(360px, 440px);
}

.billing-list-panel { padding: 0; overflow: hidden; }
.billing-list-panel .table-wrap { border: 0; border-radius: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table tbody tr { transition: background 160ms ease; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--soft) 72%, transparent); }
.data-table td { vertical-align: middle; }
.data-table td strong,
.data-table td small { display: block; }
.data-table td small { margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.money-cell { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }

.invoice-number {
  border: 0;
  background: transparent;
  color: #2563a8;
  padding: 0;
  font-weight: 780;
}

[data-theme="dark"] .invoice-number { color: #8bbcf1; }

.billing-actions { white-space: nowrap; }
.icon-btn.compact { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; }

.status-success { background: color-mix(in srgb, #16a34a 12%, var(--card)); color: #15803d; border-color: color-mix(in srgb, #16a34a 28%, var(--border)); }
.status-warning { background: color-mix(in srgb, #d97706 12%, var(--card)); color: #b45309; border-color: color-mix(in srgb, #d97706 28%, var(--border)); }
.status-danger { background: color-mix(in srgb, #dc2626 11%, var(--card)); color: #b91c1c; border-color: color-mix(in srgb, #dc2626 26%, var(--border)); }
.status-neutral { background: var(--soft); color: var(--text-secondary); border-color: var(--border); }

.billing-editor {
  position: sticky;
  top: 102px;
  max-height: calc(100dvh - 122px);
  overflow-y: auto;
  padding: 0;
}

.editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.editor-heading h2,
.editor-heading p { margin: 0; }
.editor-heading h2 { margin-top: 3px; font-size: 19px; }
.editor-heading > div > p:not(.eyebrow) { margin-top: 6px; color: var(--text-secondary); font-size: 13px; }

.operational-form { gap: 14px 16px; }
.billing-editor .operational-form { padding: 20px 22px; }

.form-section-header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 10px 0 0;
  padding: 14px 0 10px;
  border-top: 1px solid var(--border);
}

.form-section-header:first-of-type { margin-top: -8px; border-top: 0; padding-top: 0; }
.form-section-header .ui-icon { margin-top: 2px; color: var(--primary); }
.form-section-header h3,
.form-section-header p { margin: 0; }
.form-section-header h3 { font-size: 14px; }
.form-section-header p { margin-top: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.operational-form .field > span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.operational-form .field input,
.operational-form .field select,
.operational-form .field textarea {
  min-height: 43px;
  border-radius: 6px;
  background: var(--input);
}

.sticky-form-actions {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  margin: 8px -22px -20px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 -8px 20px var(--shadow);
}

.operational-editor { padding: 0; }
.operational-editor .operational-form { padding: 24px; }
.operational-editor .sticky-form-actions { bottom: -24px; margin: 8px -24px -24px; padding-inline: 24px; }

.invoice-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.invoice-document-main,
.invoice-document-side { display: grid; gap: 16px; }
.invoice-document-side { position: sticky; top: 102px; }
.invoice-identity { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.invoice-identity h2 { margin: 4px 0; font-size: 24px; }
.invoice-identity > div > span { color: var(--text-muted); font-size: 13px; }
.status-large { padding: 7px 12px; font-size: 12px; }

.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.invoice-parties section > span { color: var(--text-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.invoice-parties h3 { margin: 10px 0 7px; }
.invoice-parties p { margin: 3px 0; color: var(--text-secondary); }

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.info-row strong { color: var(--text); text-align: right; }
.invoice-totals { width: min(360px, 100%); margin: 20px 0 0 auto; }
.invoice-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-size: 18px; }
.invoice-total strong { font-size: 23px; }
.payment-total { display: block; margin: 10px 0 20px; font-size: 30px; }
.primary-btn.full { width: 100%; margin-top: 18px; }
.inline-alert { margin-top: 16px; padding: 12px; border: 1px solid color-mix(in srgb, #d97706 24%, var(--border)); border-radius: 6px; background: color-mix(in srgb, #d97706 7%, var(--card)); color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

.event-timeline { display: grid; gap: 0; margin-top: 14px; }
.event-timeline > div { position: relative; display: grid; gap: 3px; padding: 0 0 20px 22px; border-left: 1px solid var(--border); }
.event-timeline > div:last-child { padding-bottom: 0; }
.event-timeline i { position: absolute; left: -5px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.event-timeline strong { font-size: 13px; }
.event-timeline span { color: var(--text-muted); font-size: 12px; }

.finance-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.finance-form-panel { padding: 24px; }
.form-help-panel { position: sticky; top: 102px; }
.form-help-panel h2 { margin: 5px 0 20px; font-size: 19px; }
.help-steps { display: grid; gap: 18px; }
.help-steps > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.help-steps > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 11%, var(--card)); color: var(--primary); font-weight: 800; font-size: 12px; }
.help-steps p,
.help-steps strong { margin: 0; display: block; }
.help-steps p { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.help-steps strong { margin-bottom: 2px; color: var(--text); font-size: 13px; }

@media (max-width: 1280px) {
  .billing-layout.with-editor { grid-template-columns: 1fr; }
  .billing-editor { position: static; max-height: none; }
}

@media (max-width: 980px) {
  .billing-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-document,
  .finance-create-layout { grid-template-columns: 1fr; }
  .invoice-document-side,
  .form-help-panel { position: static; }
}

@media (max-width: 680px) {
  .billing-overview { grid-template-columns: 1fr; }
  .billing-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-controls { align-items: stretch; flex-direction: column; }
  .toolbar-controls .search { width: 100%; }
  .invoice-parties { grid-template-columns: 1fr; }
  .invoice-identity { align-items: flex-start; flex-direction: column; }
  .sticky-form-actions { position: static; margin-top: 8px; }
}

/* Internal product layout */
.app-shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  position: relative;
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  overflow: hidden;
}

.sidebar-brand {
  flex-shrink: 0;
  margin: 0 4px 18px;
}

.nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.nav-group {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
}

.nav-group > span {
  padding: 0 10px 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 620;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.nav-item .ui-icon {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.nav-item:hover {
  background: var(--soft);
  color: var(--text);
}

.nav-item.active {
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--orange-dark);
}

.nav-item.active .ui-icon {
  color: var(--primary);
}

.sidebar-footer {
  flex-shrink: 0;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.main {
  height: 100dvh;
  min-width: 0;
  overflow-y: auto;
  padding: 0 clamp(20px, 3vw, 40px) 40px;
}

.main > :not(.chat-page) {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.main-fixed {
  overflow: hidden;
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.topbar h1,
.chat-header h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.topbar-actions,
.chat-header-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.panel,
.metric-card,
.kanban-column,
.dialog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 7px 24px var(--shadow);
}

.panel {
  padding: clamp(18px, 2.2vw, 28px);
}

.metrics-grid,
.dashboard-grid,
.settings-grid,
.invoice-detail,
.checkout-grid,
.plans-grid {
  gap: 20px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
}

.metric-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
}

.metric-heading .ui-icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 9%, var(--card));
  color: var(--primary);
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 30px;
  line-height: 1;
}

.primary-btn,
.secondary-btn,
.icon-btn,
.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
}

.icon-btn,
.send-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
}

.icon-btn:hover {
  background: var(--soft);
  color: var(--text);
}

.send-btn {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin .7s linear infinite;
}

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

.empty-state-component {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 30px 20px;
  color: var(--text-secondary);
  text-align: center;
}

.empty-state-component h3,
.empty-state-component p {
  margin: 0;
}

.empty-state-component h3 {
  color: var(--text);
  font-size: 17px;
}

.empty-state-component p {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 9%, var(--soft));
  color: var(--primary);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
}

table th {
  background: var(--soft);
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

table th,
table td {
  padding: 14px 16px;
}

.chat-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.chat-header {
  min-height: 78px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.chat-header h1 {
  font-size: 21px;
}

.chat-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(360px, 1fr) minmax(220px, 280px);
  overflow: hidden;
}

.conversation-list,
.client-panel {
  min-height: 0;
  overflow-y: auto;
  background: var(--card);
}

.conversation-list {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.conversation-list button {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.conversation-list button.active {
  background: color-mix(in srgb, var(--primary) 9%, var(--soft));
}

.chat-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 24px clamp(18px, 4vw, 54px);
}

.bubble {
  width: fit-content;
  max-width: min(680px, 82%);
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: none;
}

.chat-input-area {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px clamp(18px, 4vw, 54px) max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
}

.chat-input-area textarea,
.dialog-card textarea {
  min-height: 44px;
  max-height: 144px;
  resize: none;
  overflow-y: auto;
  border-radius: 8px;
}

.client-panel {
  padding: 20px;
  border-left: 1px solid var(--border);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 18, 20, .48);
  backdrop-filter: blur(3px);
}

.dialog-card {
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 24px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog-header h2 {
  margin: 2px 0 0;
}

.dialog-actions {
  margin-top: 4px;
}

.temporary-password-modal {
  z-index: 120;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
}

.temporary-password-modal .temporary-password-card {
  width: min(520px, calc(100% - 24px));
  display: grid;
  gap: 18px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.temporary-password-card .dialog-header {
  margin-bottom: 0;
}

.temporary-password-card .eyebrow {
  color: #1f5eff;
}

.temporary-password-card p {
  margin: 0;
  color: #374151;
  line-height: 1.45;
}

.temporary-password-card .field span {
  color: #6b7280;
  font-weight: 700;
}

.temporary-password-card .field input {
  background: #f8fafc;
  color: #111827;
  border-color: #d8e1eb;
}

.temporary-password-card .secondary-btn,
.temporary-password-card .icon-btn {
  background: #ffffff;
  color: #111827;
  border-color: #d8e1eb;
}

.temporary-password-card .primary-btn {
  background: #1f5eff;
  color: #ffffff;
  border-color: #1f5eff;
}

.verification-card {
  max-width: 680px;
}

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

.verification-code {
  min-height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 7px;
}

.verification-notice {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
  color: var(--text-secondary);
  font-size: 13px;
}

.verification-notice strong {
  color: var(--text);
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .chat-workspace { grid-template-columns: 230px minmax(340px, 1fr); }
  .client-panel { display: none; }
}

@media (max-width: 820px) {
  .app-shell {
    height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-brand { margin: 0; }
  .sidebar-brand span { display: none; }
  .nav { display: flex; gap: 4px; overflow-x: auto; padding: 0; }
  .nav-group { display: contents; }
  .nav-group > span { display: none; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 0 10px; }
  .sidebar-footer { display: flex; padding: 0; border: 0; }
  .sidebar-footer .nav-item span { display: none; }
  .main { height: auto; min-height: 0; padding-inline: 18px; }
  .main-fixed { height: 100%; padding: 0; }
  .chat-page { height: 100%; }
}

@media (max-width: 640px) {
  .sidebar { grid-template-columns: auto minmax(0, 1fr); }
  .sidebar-footer { display: none; }
  .nav-item { min-height: 38px; }
  .nav-item span { display: none; }
  .nav-item.active span { display: inline; }
  .topbar { align-items: flex-start; min-height: 82px; }
  .topbar-actions { width: auto; }
  .chat-header { min-height: 70px; padding: 12px 14px; }
  .chat-header .primary-btn span { display: none; }
  .chat-header .primary-btn { width: 42px; height: 42px; padding: 0; }
  .chat-workspace { grid-template-columns: 86px minmax(0, 1fr); }
  .conversation-list { padding: 7px; }
  .conversation-list button { padding: 10px 7px; }
  .conversation-list button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conversation-list button span { display: none; }
  .chat-messages { padding: 18px 12px; }
  .bubble { max-width: 92%; }
  .chat-input-area { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .dialog-card { padding: 20px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .verification-grid { grid-template-columns: 1fr; }
  .verification-grid .span-2 { grid-column: auto; }
}

/* Product polish layer */
.public-page {
  background: var(--bg);
}

.public-nav,
.public-hero,
.public-section,
.footer-inner,
.footer-bottom {
  max-width: var(--container);
}

.public-nav {
  width: min(var(--container), calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 10px 30px var(--shadow);
}

.public-nav nav button:hover,
.site-footer button:hover,
.site-footer a:hover {
  color: var(--text);
}

.public-hero {
  width: min(var(--container), calc(100% - 32px));
  min-height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  padding: 72px 0 48px;
}

.public-hero h1,
.public-section h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0;
}

.public-section {
  width: min(var(--container), calc(100% - 32px));
  padding: 48px 0;
}

.hero-product,
.demo-panel,
.final-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 44px var(--shadow);
}

.hero-product {
  overflow: hidden;
}

.product-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.product-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
}

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

.product-grid article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--soft);
}

.product-grid .wide {
  grid-column: span 2;
}

.product-grid small {
  color: var(--text-muted);
}

.product-grid strong {
  font-size: 34px;
}

.product-grid p {
  margin: 0;
  color: var(--text-secondary);
}

.resource-grid article,
.faq-grid article,
.selected-plan-notice,
.cart-summary div,
.metric-card,
.panel,
.plan-card,
.kanban-column,
.auth-card {
  border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--shadow);
}

.resource-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

.faq-grid span {
  color: var(--text-secondary);
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 32px;
}

.demo-panel p {
  color: var(--text-secondary);
}

.demo-chat {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
}

.final-cta {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 36px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  background: var(--bg-secondary);
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 40px 0 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-inner p,
.footer-inner a,
.footer-inner button,
.footer-bottom {
  color: var(--text-secondary);
}

.footer-inner nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-inner button,
.footer-inner a {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  font-size: 13px;
}

.ghost-btn {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  padding: 0 14px;
  font-weight: 700;
}

.ghost-btn:hover {
  color: var(--text);
  background: var(--soft);
}

.primary-btn,
.secondary-btn,
.icon-text,
.field input,
.field select,
.search,
.chat-input-area textarea,
.nav-item,
.conversation-list button,
.kanban-card {
  border-radius: 12px;
}

.topbar,
.metrics-grid,
.dashboard-grid,
.settings-grid,
.invoice-detail,
.checkout-grid,
.plans-grid,
.kanban {
  gap: 16px;
}

.bubble {
  border-radius: 16px;
  box-shadow: 0 8px 18px var(--shadow);
}

.bubble.out {
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
}

@media (max-width: 1180px) {
  .public-hero,
  .demo-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* TippOS administrative workspace aligned with the public landing */
.product-shell.studio-shell {
  --admin-bg: #f7fafc;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f5f8fb;
  --admin-line: #dfe8f2;
  --admin-line-strong: #cfdbe8;
  --admin-text: #122033;
  --admin-muted: #66758a;
  --admin-subtle: #8492a6;
  --admin-accent: #2563eb;
  --admin-accent-soft: #eef5ff;
  --admin-blue: #0b2b4c;
  --tippos-admin-ink: #122033;
  --tippos-admin-muted: #66758a;
  --tippos-admin-line: #dfe8f2;
  --tippos-admin-soft: #f5f8fb;
  --tippos-admin-card: #ffffff;
  background: #f7fafc;
}

.product-shell.studio-shell .sidebar {
  width: 268px;
  gap: 10px;
  border-right: 1px solid rgba(223, 232, 242, .22);
  background: #081827;
  box-shadow: 12px 0 34px rgba(8, 24, 39, .16);
}

.product-shell.studio-shell .sidebar-header-card,
.product-shell.studio-shell .sidebar-footer.account-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.product-shell.studio-shell .brand-mark,
.product-shell.studio-shell .user-avatar {
  border-radius: 8px;
  background: #ffffff;
  color: #0b2b4c;
  box-shadow: none;
}

.product-shell.studio-shell .sidebar-workspace,
.product-shell.studio-shell .sidebar-utilities .icon-text,
.product-shell.studio-shell .sidebar-utilities .logout {
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.product-shell.studio-shell .nav-item {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 720;
}

.product-shell.studio-shell .nav-item .ui-icon {
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.product-shell.studio-shell .nav-item:hover,
.product-shell.studio-shell .nav-item.active {
  transform: none;
  background: rgba(255, 255, 255, .09);
}

.product-shell.studio-shell .nav-item.active {
  border-color: rgba(215, 169, 40, .42);
  box-shadow: inset 3px 0 0 #d7a928;
}

.product-shell.studio-shell .nav-item.active .ui-icon {
  background: transparent;
  color: #d7a928;
}

.product-shell.studio-shell .main {
  background: #f7fafc;
}

.product-shell.studio-shell .workspace-page {
  width: min(1400px, 100%);
}

.product-shell.studio-shell .topbar {
  min-height: 70px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 32, 51, .055);
  backdrop-filter: none;
}

.product-shell.studio-shell .page-breadcrumb,
.product-shell.studio-shell .topbar .eyebrow,
.product-shell.studio-shell .panel .eyebrow {
  color: #2563eb;
  letter-spacing: .04em;
}

.product-shell.studio-shell .topbar h1,
.product-shell.studio-shell .page-heading h1 {
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: 0;
}

.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card,
.product-shell.studio-shell .master-command,
.product-shell.studio-shell .master-kpi-ribbon article,
.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .promo-illustration {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 32, 51, .055);
}

.product-shell.studio-shell .panel:hover,
.product-shell.studio-shell .metric-card:hover,
.product-shell.studio-shell .quick-task-card:hover,
.product-shell.studio-shell .admin-hub-card:hover,
.product-shell.studio-shell .product-card:hover,
.product-shell.studio-shell .client-card:hover {
  transform: none;
  border-color: #cfdbe8;
  box-shadow: 0 12px 34px rgba(18, 32, 51, .065);
}

.product-shell.studio-shell .primary-btn {
  border: 1px solid #0b2b4c;
  border-radius: 8px;
  background: #0b2b4c;
  box-shadow: 0 10px 22px rgba(11, 43, 76, .14);
}

.product-shell.studio-shell .primary-btn:hover {
  background: #12395f;
}

.product-shell.studio-shell .secondary-btn,
.product-shell.studio-shell .icon-btn,
.product-shell.studio-shell .icon-text,
.product-shell.studio-shell .field input,
.product-shell.studio-shell .field textarea,
.product-shell.studio-shell .field select,
.product-shell.studio-shell .search,
.product-shell.studio-shell .compact-field select,
.product-shell.studio-shell .chat-input-area textarea {
  border-radius: 8px;
}

.product-shell.studio-shell .metric-heading .ui-icon,
.product-shell.studio-shell .admin-hub-card > .ui-icon,
.product-shell.studio-shell .admin-card-icon,
.product-shell.studio-shell .quick-task-icon,
.product-shell.studio-shell .resource-icon,
.product-shell.studio-shell .setting-icon {
  border-radius: 8px;
  background: #eef5ff;
  color: #2563eb;
}

.product-shell.studio-shell .chart-bars strong,
.product-shell.studio-shell .executive-chart i {
  background: #2563eb;
  box-shadow: none;
}

.product-shell.studio-shell .home-dashboard {
  width: min(1320px, 100%);
}

.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .master-command {
  background: #ffffff;
}

.product-shell.studio-shell .home-promo-banner h1,
.product-shell.studio-shell .master-command-copy h2 {
  font-size: clamp(28px, 3.8vw, 48px);
}

.product-shell.studio-shell .home-premium-pill,
.product-shell.studio-shell .tippos-pill,
.product-shell.studio-shell .signal-pill {
  border-color: #dfe8f2;
  background: #f5f8fb;
  color: #0b2b4c;
}

.product-shell.studio-shell .ai-command-center,
.product-shell.studio-shell .master-live-card {
  border-radius: 8px;
  background: #081827 !important;
  box-shadow: 0 14px 36px rgba(8, 24, 39, .14);
}

.product-shell.studio-shell .ai-prompt-box button {
  background: #2563eb;
  box-shadow: none;
}

.product-shell.studio-shell .ai-action-grid button,
.product-shell.studio-shell .ai-prompt-box {
  border-radius: 8px;
}

.product-shell.studio-shell table th {
  background: #f5f8fb;
}

.product-shell.studio-shell .status,
.product-shell.studio-shell .badge,
.product-shell.studio-shell .credit-pill,
.product-shell.studio-shell .integration-status,
.product-shell.studio-shell .sst-product-pill {
  border-radius: 8px;
}

@media (max-width: 820px) {
  .public-nav {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .resource-grid,
  .faq-grid,
  .product-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .product-grid .wide {
    grid-column: auto;
  }

  .public-hero,
  .public-section {
    width: calc(100% - 24px);
  }
}

/* Full-bleed responsive home banner */
.public-page .home-hero {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 88px);
  margin: 16px 0 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background-position: center 38%;
  padding-block: clamp(52px, 8vh, 96px);
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
}

.public-page .home-hero .hero-content {
  width: min(800px, 100%);
}

.public-page .home-hero::before {
  background: rgba(10, 10, 12, 0.4);
}

.public-page .home-hero h1,
.public-page .home-hero .hero-content > p,
.public-page .home-hero .hero-proof {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.dashboard-preview {
  background-position: center;
  box-shadow: 0 16px 38px rgba(17, 17, 17, 0.1);
}

.preview-window {
  background: rgba(24, 24, 27, 0.82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(5px);
}

.segments-grid article {
  background: var(--soft);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.08);
}

.segments-grid article::after {
  inset: 52% 0 0;
  background: rgba(10, 10, 12, 0.36);
}

.segments-grid img {
  filter: saturate(1.08) brightness(1.04);
}

.segments-grid strong {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 980px) {
  .public-page .home-hero {
    min-height: calc(100svh - 82px);
    background-position: 58% center;
    padding-inline: clamp(24px, 6vw, 56px);
  }
}

@media (max-width: 640px) {
  .public-page .home-hero {
    width: 100%;
    min-height: calc(100svh - 72px);
    margin-top: 12px;
    align-items: flex-end;
    background-position: 62% center;
    padding: 42px 20px max(38px, env(safe-area-inset-bottom));
  }

  .public-page .home-hero::before {
    background: rgba(10, 10, 12, 0.48);
  }

  .public-page .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1;
  }

  .public-page .home-hero .hero-content > p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 17px;
    line-height: 1.5;
  }

  .public-page .home-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-page .home-hero .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }
}

/* Document signatures */
.signature-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.signature-layout .span-2 {
  grid-column: span 2;
}

.signature-form-panel,
.audit-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.signature-pendente,
.signature-enviado {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.signature-assinado {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.signature-recusado,
.signature-expirado {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

[data-theme="dark"] .signature-pendente,
[data-theme="dark"] .signature-enviado {
  color: #fbbf24;
}

[data-theme="dark"] .signature-assinado {
  color: #86efac;
}

[data-theme="dark"] .signature-recusado,
[data-theme="dark"] .signature-expirado {
  color: #fca5a5;
}

@media (max-width: 1180px) {
  .signature-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .signature-layout,
  .signature-layout .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

/* CELHOST professional refinement */
:root {
  --surface-strong: #ffffff;
  --surface-soft: #f7f8fa;
  --line-soft: rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 16px 42px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --surface-strong: #111827;
  --surface-soft: #0b1220;
  --line-soft: rgba(226, 232, 240, 0.12);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.app-shell {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.98));
}

[data-theme="dark"] .app-shell {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
}

.panel,
.metric-card,
.plan-card,
.legal-resource-card,
.jurisprudence-card,
.calendar-day,
.calendar-detail,
.utility-card,
.auth-card,
.register-card,
.dialog-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel,
.metric-card,
.calendar-day,
.dialog-card {
  background: var(--surface-strong);
}

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

.page-heading h1,
.section-heading h2,
.dialog-heading h2 {
  letter-spacing: 0;
}

.nav-item,
.primary-btn,
.secondary-btn,
.icon-btn,
.text-btn,
.segmented button {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.calendar-list-row:hover,
.legal-process-row:hover {
  transform: translateY(-1px);
}

.field input,
.field select,
.field textarea,
.search,
.compact-field select,
.legal-ai-composer textarea,
#generated-draft {
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: var(--surface-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search:focus,
.legal-ai-composer textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table-wrap td,
.table-wrap th {
  border-bottom: 1px solid var(--line-soft);
}

.calendar-layout {
  align-items: start;
}

.calendar-list-row,
.calendar-event,
.document-mini-row,
.process-document-row {
  border-radius: 7px;
}

.calendar-list-row small {
  line-height: 1.45;
}

.calendar-detail section {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.signature-link-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.08);
  word-break: break-word;
}

.signature-link-box a {
  color: inherit;
  font-size: 13px;
}

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

.signature-public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.signature-public-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.signature-public-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.signature-token-box,
.signature-public-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.signature-token-box {
  display: inline-grid;
  gap: 4px;
  margin-top: 18px;
  padding: 12px 14px;
}

.signature-token-box span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.signature-public-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

@media (max-width: 900px) {
  .signature-public-hero {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .topbar {
    align-items: stretch;
  }

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

/* Public premium refinement layer */
:root {
  --premium-ink: #121826;
  --premium-muted: #5b6575;
  --premium-line: #dde3ea;
  --premium-warm: #e86524;
  --premium-blue: #2f6f9f;
  --premium-green: #16835c;
}

.public-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(243, 245, 248, .92)),
    var(--bg);
}

.public-nav {
  border-bottom-color: color-mix(in srgb, var(--premium-line) 80%, transparent);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
}

.public-nav nav button:hover {
  border-radius: 8px;
  background: color-mix(in srgb, var(--premium-warm) 8%, transparent);
  color: var(--text);
}

.public-hero {
  min-height: 68vh;
}

.public-hero h1,
.public-section h1,
.register-banner h1 {
  letter-spacing: 0;
}

.public-hero p,
.register-banner p,
.public-section p {
  line-height: 1.65;
}

.resource-grid article,
.selected-plan-notice,
.register-card,
.auth-page,
.demo-panel {
  border-color: color-mix(in srgb, var(--premium-line) 88%, transparent);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.resource-grid article:hover,
.plan-card:hover,
.register-card:hover {
  border-color: color-mix(in srgb, var(--premium-warm) 24%, var(--premium-line));
}

.primary-btn,
.secondary-btn {
  border-radius: 8px;
}

.public-page .primary-btn,
.auth-page .primary-btn,
.register-page .primary-btn {
  box-shadow: 0 10px 22px rgba(232, 101, 36, .18);
}

.public-page .secondary-btn,
.auth-page .secondary-btn,
.register-page .secondary-btn {
  border-color: color-mix(in srgb, var(--premium-line) 92%, transparent);
}

.field input,
.field select,
.field textarea,
.search {
  border-radius: 8px;
}

.signature-public-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(242, 245, 248, .96)),
    var(--bg);
}

.signature-public-hero {
  gap: 42px;
}

.signature-public-card,
.signature-token-box {
  border-color: color-mix(in srgb, var(--premium-line) 84%, transparent);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
}

.signature-token-box strong {
  color: var(--premium-warm);
}

@media (max-width: 760px) {
  .public-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .public-nav {
    align-items: flex-start;
  }
}

/* Polished public components */
.public-section,
.register-content,
.auth-page,
.signature-public-hero {
  isolation: isolate;
}

.public-nav,
.resource-grid article,
.plan-card,
.register-card,
.auth-page,
.signature-public-card,
.signature-token-box {
  border-radius: 8px;
}

.public-nav .brand-mark,
.banner-placeholder strong {
  border-radius: 8px;
  background: #e86524;
}

.public-section h2,
.form-heading h2,
.signature-public-card h2 {
  letter-spacing: 0;
}

.signature-public-card {
  align-content: start;
}

.signature-file-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--premium-blue) 26%, var(--premium-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--premium-blue) 7%, #fff);
  color: inherit;
  text-decoration: none;
}

.signature-file-card strong {
  color: var(--premium-ink);
}

.signature-file-card span,
.signature-file-card small {
  color: var(--premium-muted);
}

.signature-file-card:hover {
  border-color: color-mix(in srgb, var(--premium-blue) 48%, var(--premium-line));
}

.signature-upload-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--premium-blue) 24%, var(--premium-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--premium-blue) 5%, #fff);
}

.signature-upload-preview[hidden] {
  display: none;
}

.signature-preview-header,
.rubric-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signature-preview-header strong,
.rubric-pad strong {
  display: block;
  color: var(--premium-ink);
}

.signature-preview-header small,
.signature-preview-header span,
.rubric-pad small {
  color: var(--premium-muted);
  font-size: 12px;
}

.signature-preview-document,
.signature-document-frame-wrap {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #f8fafc;
}

.signature-preview-content,
.signature-local-frame,
.signature-document-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.signature-document-frame-wrap {
  min-height: 540px;
}

.signature-document-frame {
  min-height: 540px;
  background: #fff;
}

.signature-placement-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: crosshair;
}

.signature-target-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(232, 101, 36, .48);
  border-radius: 8px;
  background: rgba(232, 101, 36, .13);
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(154, 52, 18, .12);
}

.signature-public-marker {
  min-width: 132px;
  background: rgba(22, 131, 92, .14);
  border-color: rgba(22, 131, 92, .42);
  color: #166534;
}

.signature-preview-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--premium-muted);
  text-align: center;
}

.signature-preview-placeholder strong {
  color: var(--premium-ink);
}

.signature-signing-layout {
  grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr);
  align-items: start;
}

.signature-public-card-wide {
  max-width: none;
}

.signature-document-viewer {
  display: grid;
  gap: 12px;
}

.rubric-pad {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--premium-green) 24%, var(--premium-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--premium-green) 5%, #fff);
}

.rubric-pad canvas {
  width: 100%;
  height: 180px;
  border: 1px dashed color-mix(in srgb, var(--premium-green) 34%, var(--premium-line));
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.signature-proof-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(22, 163, 74, .26);
  border-radius: 8px;
  background: rgba(22, 163, 74, .08);
}

.signature-proof-box span {
  color: var(--premium-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.signature-proof-box strong {
  overflow-wrap: anywhere;
  color: var(--premium-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.signature-layout-modern {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.signature-layout-list {
  grid-template-columns: 1fr;
}

.signature-link-success {
  margin-bottom: 16px;
}

.signature-create-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.signature-create-card,
.signature-create-guide {
  align-content: start;
}

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

.signature-form-grid .span-2,
.signature-create-actions {
  grid-column: 1 / -1;
}

.signature-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.signature-create-guide {
  display: grid;
  gap: 12px;
}

.signature-create-guide h2 {
  margin: 0 0 4px;
}

.signature-create-guide div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.signature-create-guide strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1f5eff;
  color: #fff;
  font-size: 12px;
}

.signature-create-guide span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.signature-envelope-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-strong);
}

.signature-envelope-main {
  display: grid;
  gap: 4px;
}

.signature-envelope-main strong,
.signature-envelope-main small,
.signature-envelope-main p {
  display: block;
  margin: 0;
}

.signature-envelope-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signature-audit-line {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.signature-position-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #eef2f6;
  color: #121826;
}

.signature-position-empty {
  place-items: center;
  padding: 24px;
  text-align: center;
}

.signature-position-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce3ea;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.signature-position-toolbar h1 {
  margin: 0;
  font-size: 18px;
}

.signature-position-shell,
.signature-public-full {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.signature-position-sidebar,
.signature-client-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid #dce3ea;
  background: #fff;
  overflow: auto;
}

.signature-position-document,
.signature-client-document {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: auto;
}

.signature-position-document {
  padding: 18px;
}

.signature-client-document {
  padding: 18px;
}

.signature-client-document {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.signature-client-document header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signature-client-document h1 {
  margin: 0;
  font-size: 20px;
}

.signature-position-frame,
.signature-client-frame-wrap .signature-document-frame,
.signature-client-frame-wrap {
  width: 100%;
  min-height: calc(100vh - 112px);
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.signature-position-frame {
  min-height: calc(100vh - 72px);
  border-radius: 0;
}

.signature-client-frame-wrap {
  position: relative;
  overflow: auto;
  padding: 18px;
}

.signature-pdf-board {
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
  margin-inline: auto;
}

.signature-pdf-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--page-ratio, 595 / 842);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.signature-pdf-page canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.signature-page-overlay,
.signature-position-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: crosshair;
}

.signature-sidebar-heading,
.signature-field-list {
  display: grid;
  gap: 6px;
}

.signature-sidebar-heading span {
  color: #647084;
  font-size: 13px;
}

.signature-field-list {
  max-height: 220px;
  overflow: auto;
}

.signature-field-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #121826;
  padding: 10px 12px;
  text-align: left;
}

.signature-field-list button.active {
  border-color: rgba(31, 94, 255, .42);
  background: #edf4ff;
  box-shadow: inset 3px 0 0 #1f5eff;
}

.signature-field-list span {
  color: #647084;
  font-size: 12px;
}

.signature-position-marker {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 38px;
  border: 2px solid rgba(22, 131, 92, .72);
  border-radius: 8px;
  background: rgba(22, 131, 92, .15);
  color: #14532d;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(20, 83, 45, .18);
  cursor: grab;
  touch-action: none;
}

.signature-position-marker.active {
  border-color: #1f5eff;
  background: rgba(31, 94, 255, .14);
  color: #0b2b4c;
  box-shadow: 0 14px 34px rgba(31, 94, 255, .2);
}

.signature-public-marker {
  pointer-events: none;
}

.signature-position-readout {
  padding: 10px;
  border-radius: 8px;
  background: #eef7f2;
  color: #14532d;
  font-size: 12px;
  line-height: 1.45;
}

.signature-pdf-loading,
.signature-pdf-fallback {
  min-height: 420px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #cbd6e2;
  border-radius: 8px;
  background: #ffffff;
  color: #647084;
  text-align: center;
}

.signature-pdf-fallback iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
}

@media (max-width: 900px) {
  .signature-layout-modern,
  .signature-create-page,
  .signature-position-shell,
  .signature-public-full {
    grid-template-columns: 1fr;
  }

  .signature-position-sidebar,
  .signature-client-sidebar {
    border-left: 0;
    border-top: 1px solid #dce3ea;
  }

  .signature-position-document,
  .signature-client-document {
    min-height: 62vh;
  }

  .signature-form-grid {
    grid-template-columns: 1fr;
  }
}

.skeleton-line,
.skeleton-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e5eaf0;
}

.skeleton-line {
  height: 14px;
}

.skeleton-line.short {
  width: 64%;
}

.skeleton-box {
  height: 128px;
}

.skeleton-line::after,
.skeleton-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
  animation: public-skeleton-shimmer 1.35s infinite;
}

@keyframes public-skeleton-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 760px) {
  .signature-public-card {
    padding: 18px;
  }

  .signature-signing-layout {
    grid-template-columns: 1fr;
  }

  .signature-document-frame-wrap,
  .signature-document-frame {
    min-height: 440px;
  }

  .signature-preview-document,
  .signature-preview-content,
  .signature-local-frame {
    min-height: 360px;
  }

  .signature-preview-header,
  .rubric-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Premium landing, master dashboard and legal AI credit workbench */
.launch-badge,
.storage-packages span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--premium-orange) 24%, var(--premium-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--premium-orange) 10%, #fff);
  color: var(--premium-orange);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.premium-feature-matrix,
.storage-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.premium-feature-matrix article,
.storage-choice-grid article,
.connector-panel,
.master-hero-panel {
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--premium-shadow);
}

.premium-feature-matrix article {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.premium-feature-matrix article:hover,
.storage-choice-grid article:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--premium-orange) 38%, var(--premium-line));
}

.premium-feature-matrix .ui-icon {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--premium-orange) 24%, var(--premium-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--premium-orange) 10%, #fff);
  color: var(--premium-orange);
  padding: 7px;
}

.premium-feature-matrix strong,
.storage-choice-grid h3 {
  color: var(--premium-ink);
  font-size: 16px;
}

.premium-feature-matrix span,
.storage-choice-grid p,
.connector-panel p {
  color: var(--premium-muted);
  line-height: 1.55;
}

.storage-choice-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.storage-choice-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--premium-muted);
}

.storage-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
}

.storage-logo.google-drive {
  background: linear-gradient(135deg, #1a73e8, #34a853 52%, #fbbc04);
}

.storage-logo.onedrive {
  background: linear-gradient(135deg, #0078d4, #50a5f1);
}

.storage-logo.celhost {
  background: linear-gradient(135deg, var(--premium-orange), var(--premium-blue));
}

.connector-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: 28px;
  align-items: center;
  margin-top: 16px;
  padding: 30px;
}

.connector-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.2fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.connector-map div {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: var(--premium-surface-muted);
  padding: 14px;
  text-align: center;
}

.connector-map .core {
  background: color-mix(in srgb, var(--premium-orange) 10%, #fff);
}

.connector-map i {
  height: 2px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--premium-orange), var(--premium-blue));
}

.storage-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.master-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 28px;
}

.master-hero-panel h2 {
  max-width: 760px;
  margin: 14px 0 8px;
  color: var(--premium-ink);
  font-size: 34px;
  line-height: 1.14;
}

.platform-health,
.integration-status-grid div,
.credit-estimate {
  display: grid;
  gap: 10px;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: var(--premium-surface-muted);
  padding: 12px;
}

.platform-health {
  padding: 18px;
}

.platform-health span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.platform-health i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16835c, var(--premium-blue));
}

.integration-status-grid {
  display: grid;
  gap: 10px;
}

.integration-status-grid div {
  grid-template-columns: 1fr auto;
}

.integration-status-grid small {
  grid-column: 1 / -1;
  color: var(--premium-muted);
}

.premium-timeline div {
  position: relative;
  padding-left: 18px;
}

.premium-timeline div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--premium-orange);
}

.ai-credit-workbench {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(420px, 1.25fr);
  gap: 22px;
  align-items: start;
}

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

.credit-estimate span {
  color: var(--premium-orange);
  font-weight: 850;
}

.privacy-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-color: color-mix(in srgb, var(--premium-blue) 30%, var(--premium-line));
}

.privacy-panel > .ui-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--premium-blue) 12%, #fff);
  color: var(--premium-blue);
  padding: 9px;
}

@media (max-width: 1180px) {
  .connector-panel,
  .master-hero-panel,
  .ai-credit-workbench {
    grid-template-columns: 1fr;
  }

  .premium-feature-matrix,
  .storage-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .premium-feature-matrix,
  .storage-choice-grid,
  .credit-form-preview,
  .connector-map {
    grid-template-columns: 1fr;
  }

  .connector-map i {
    width: 2px;
    height: 20px;
    justify-self: center;
  }

  .master-hero-panel h2 {
    font-size: 26px;
  }
}

/* CELHOST V2 full product redesign */
:root {
  --v2-ink: #11151f;
  --v2-muted: #626d7d;
  --v2-line: #dfe5ed;
  --v2-paper: #ffffff;
  --v2-soft: #f4f7fb;
  --v2-orange: #2563eb;
  --v2-blue: #0ea5e9;
  --v2-green: #16835c;
  --v2-lime: #b7d75b;
  --v2-shadow: 0 24px 80px rgba(17, 24, 39, .12);
}

[data-theme="dark"] {
  --v2-ink: #f4f7fb;
  --v2-muted: #aab4c3;
  --v2-line: #303846;
  --v2-paper: #171c24;
  --v2-soft: #202733;
  --v2-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.brand-landing {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #090b10 0, #121722 680px, #f4f7fb 681px, #eef3f8 100%);
  color: #f8fafc;
}

.landing-nav {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(11, 14, 20, .72);
  padding: 10px 14px;
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
}

.landing-nav .auth-brand strong,
.landing-nav .auth-brand span {
  color: #fff;
}

.landing-nav nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-nav nav button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  padding: 0 12px;
  font-weight: 750;
}

.landing-nav nav button:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.landing-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .75fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  background-position: center;
  background-size: cover;
  padding: 132px clamp(22px, 6vw, 88px) 64px;
}

.landing-hero-copy {
  max-width: 900px;
}

.signal-pill,
.section-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ffd8bf;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 920px;
  margin: 22px 0;
  color: #fff;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .91;
}

.landing-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.62;
}

.secondary-btn.dark,
.ghost-btn.dark {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hero-proof-bar,
.landing-strip,
.capacity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof-bar {
  margin-top: 28px;
}

.hero-proof-bar span,
.landing-strip span,
.capacity-row span {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.legal-command-console {
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 24, 34, .88), rgba(8, 11, 16, .92));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 0 16px;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
}

.console-top strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.console-metrics article,
.console-flow div {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  padding: 14px;
}

.console-metrics small,
.console-flow span,
.console-flow time {
  color: rgba(255, 255, 255, .58);
}

.console-metrics strong {
  display: block;
  margin: 8px 0 3px;
  color: #fff;
  font-size: 30px;
}

.console-metrics span {
  color: #b7d75b;
  font-size: 12px;
  font-weight: 850;
}

.console-flow {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.console-flow div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 4px 12px;
}

.console-flow span {
  grid-column: 2;
}

.landing-strip {
  justify-content: center;
  margin: -30px auto 0;
  width: min(1180px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  padding: 14px;
  backdrop-filter: blur(18px);
}

.landing-section,
.landing-final {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
  color: var(--v2-ink);
}

.brand-landing .section-kicker {
  border-color: color-mix(in srgb, var(--v2-orange) 24%, var(--v2-line));
  background: color-mix(in srgb, var(--v2-orange) 10%, #fff);
  color: var(--v2-orange);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: 28px;
  align-items: end;
  margin: 14px 0 28px;
}

.split-heading h2,
.intelligence-copy h2,
.cloud-stage h2,
.landing-final h2 {
  margin: 0;
  color: var(--v2-ink);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
}

.split-heading p,
.intelligence-copy p,
.cloud-stage p {
  color: var(--v2-muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.lane-grid article {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-paper);
  padding: 22px;
  box-shadow: var(--v2-shadow);
}

.lane-grid .ui-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 10px;
}

.lane-grid strong {
  color: var(--v2-ink);
  font-size: 18px;
}

.lane-grid p {
  color: var(--v2-muted);
  line-height: 1.55;
}

.intelligence-wall,
.cloud-stage {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 26px;
  align-items: center;
}

.intelligence-board,
.cloud-route {
  display: grid;
  gap: 12px;
}

.case-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-paper);
  padding: 18px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .07);
}

.case-card.active {
  border-color: color-mix(in srgb, var(--v2-orange) 48%, var(--v2-line));
  background: color-mix(in srgb, var(--v2-orange) 9%, #fff);
}

.case-card small {
  grid-row: span 2;
  color: var(--v2-orange);
  font-weight: 900;
}

.case-card span {
  color: var(--v2-muted);
}

.cloud-stage {
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #1f2937 54%, #223048);
  color: #fff;
  padding: clamp(26px, 5vw, 48px);
  box-shadow: var(--v2-shadow);
}

.cloud-stage h2,
.cloud-stage p {
  color: #fff;
}

.cloud-stage p {
  opacity: .76;
}

.cloud-route {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.15fr) 34px minmax(0, 1fr);
  align-items: center;
}

.cloud-route article {
  min-height: 94px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  padding: 14px;
  text-align: center;
}

.cloud-route .hub {
  background: rgba(232, 95, 24, .22);
}

.cloud-route i {
  height: 2px;
  background: linear-gradient(90deg, var(--v2-orange), var(--v2-lime));
}

.editorial-plans .plan-card {
  border-radius: 18px;
  box-shadow: var(--v2-shadow);
}

.editorial-plans .plan-card .primary-btn,
.plans-grid .plan-card .primary-btn,
.brand-landing .plan-card .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 30px rgba(232, 95, 24, .28);
}

.editorial-plans .plan-card.recommended .primary-btn,
.plans-grid .plan-card.recommended .primary-btn {
  background: linear-gradient(135deg, #111827, #1f6fbe);
  color: #fff;
  box-shadow: 0 16px 34px rgba(31, 111, 190, .28);
}

.editorial-plans .plan-card .secondary-btn,
.plans-grid .plan-card .secondary-btn {
  border-color: color-mix(in srgb, var(--v2-orange) 34%, var(--v2-line));
  color: var(--v2-orange);
}

.capacity-row {
  margin-top: 18px;
}

.capacity-row span {
  border-color: var(--v2-line);
  background: #fff;
  color: var(--v2-muted);
}

.landing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: #fff;
  padding: 34px;
  box-shadow: var(--v2-shadow);
}

.brand-landing .site-footer {
  background: #0d1118;
  color: #fff;
}

.studio-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--v2-orange) 7%, var(--bg)) 0, var(--bg) 300px);
}

.studio-shell .sidebar {
  background: #111827;
  color: #e5e7eb;
  border-right: 0;
  box-shadow: 14px 0 40px rgba(17, 24, 39, .12);
}

.studio-shell .sidebar-brand strong,
.studio-shell .sidebar-brand span,
.studio-shell .nav-group > span {
  color: #fff;
}

.studio-shell .nav-item {
  color: rgba(255, 255, 255, .72);
}

.studio-shell .nav-item:hover,
.studio-shell .nav-item.active {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.studio-shell .topbar {
  border: 1px solid color-mix(in srgb, var(--v2-line) 80%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  padding: 18px 20px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, .06);
}

.studio-shell .panel,
.studio-shell .metric-card,
.studio-shell .admin-hub-card {
  border-radius: 16px;
  box-shadow: 0 14px 46px rgba(17, 24, 39, .08);
}

.master-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #1f2937 58%, #263449);
  color: #fff;
  padding: 28px;
  box-shadow: var(--v2-shadow);
}

.master-command h2 {
  max-width: 760px;
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.master-command p {
  max-width: 720px;
  color: rgba(255, 255, 255, .74);
  line-height: 1.65;
}

.master-live-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  padding: 20px;
}

.master-live-card strong {
  color: #fff;
  font-size: 56px;
  line-height: 1;
}

.master-live-card span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.master-live-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v2-lime), var(--v2-orange));
}

.master-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.master-kpi-ribbon article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-paper);
  padding: 16px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .07);
}

.master-kpi-ribbon .ui-icon {
  color: var(--v2-orange);
}

.master-kpi-ribbon span,
.master-kpi-ribbon small {
  color: var(--v2-muted);
}

.master-kpi-ribbon strong {
  color: var(--v2-ink);
  font-size: 26px;
}

.master-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.executive-chart {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--v2-soft);
}

.executive-chart i {
  min-height: 42px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--v2-orange), var(--v2-blue));
}

.login-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 95, 24, .22), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(31, 111, 190, .18), transparent 28%),
    #0a0d13;
  color: #fff;
}

.login-v2-visual {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
}

.login-v2-visual .auth-brand strong,
.login-v2-visual .auth-brand span {
  color: #fff;
}

.login-v2-copy {
  max-width: 760px;
  padding: 56px 0;
}

.login-v2-copy h1 {
  max-width: 760px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 86px);
  line-height: .94;
}

.login-v2-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.7;
}

.login-product-card {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
  animation: celhost-rise .72s cubic-bezier(.2, .8, .2, 1) both;
}

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

.login-product-grid article {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  padding: 14px;
}

.login-product-grid .wide {
  grid-column: span 2;
}

.login-product-grid small,
.login-product-grid p {
  color: rgba(255, 255, 255, .62);
}

.login-product-grid strong {
  display: block;
  margin: 7px 0 2px;
  color: #fff;
  font-size: 28px;
}

.login-product-grid span {
  color: var(--v2-lime);
  font-size: 12px;
  font-weight: 850;
}

.login-v2-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 247, 251, .96));
  color: var(--v2-ink);
}

.login-v2-card {
  width: min(100%, 500px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--v2-line);
  border-radius: 24px;
  background: #fff;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 30px 100px rgba(17, 24, 39, .16);
  animation: celhost-fade-scale .58s cubic-bezier(.2, .8, .2, 1) both;
}

.login-card-heading h2 {
  margin: 8px 0 5px;
  color: var(--v2-ink);
  font-size: 34px;
  line-height: 1;
}

.login-card-heading span {
  color: var(--v2-muted);
}

.login-v2-card .field span {
  color: var(--v2-muted);
  font-weight: 800;
}

.login-v2-card .field input {
  min-height: 48px;
  border-radius: 12px;
  background: #f8fafc;
}

.login-v2-card .primary-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v2-orange), #0ea5e9);
  color: #fff;
  box-shadow: 0 16px 34px rgba(232, 95, 24, .28);
}

.login-v2-links {
  margin-top: 0;
}

.login-v2-links button {
  font-weight: 800;
}

.login-security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--v2-blue) 26%, var(--v2-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--v2-blue) 8%, #fff);
  color: var(--v2-muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 750;
}

@keyframes celhost-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes celhost-fade-scale {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes celhost-pulse-line {
  0%, 100% {
    opacity: .45;
    transform: scaleX(.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes celhost-bar-grow {
  from {
    transform: scaleY(.18);
  }
  to {
    transform: scaleY(1);
  }
}

.landing-hero-copy,
.legal-command-console,
.landing-section,
.landing-final,
.master-command,
.master-kpi-ribbon article,
.master-grid-v2 .panel {
  animation: celhost-rise .72s cubic-bezier(.2, .8, .2, 1) both;
}

.legal-command-console {
  animation-delay: .12s;
}

.landing-section:nth-of-type(2) {
  animation-delay: .08s;
}

.landing-section:nth-of-type(3) {
  animation-delay: .14s;
}

.landing-section:nth-of-type(4) {
  animation-delay: .2s;
}

.lane-grid article,
.case-card,
.cloud-route article,
.editorial-plans .plan-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.lane-grid article:hover,
.case-card:hover,
.cloud-route article:hover,
.editorial-plans .plan-card:hover,
.master-kpi-ribbon article:hover,
.master-grid-v2 .panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(17, 24, 39, .13);
}

.console-flow div,
.console-metrics article {
  animation: celhost-fade-scale .58s cubic-bezier(.2, .8, .2, 1) both;
}

.console-flow div:nth-child(2),
.console-metrics article:nth-child(2) {
  animation-delay: .1s;
}

.console-flow div:nth-child(3),
.console-metrics article:nth-child(3) {
  animation-delay: .2s;
}

.cloud-route i,
.connector-map i {
  transform-origin: left center;
  animation: celhost-pulse-line 2.4s ease-in-out infinite;
}

.executive-chart i,
.chart-bars strong {
  transform-origin: bottom;
  animation: celhost-bar-grow .74s cubic-bezier(.2, .8, .2, 1) both;
}

.executive-chart i:nth-child(2) { animation-delay: .05s; }
.executive-chart i:nth-child(3) { animation-delay: .1s; }
.executive-chart i:nth-child(4) { animation-delay: .15s; }
.executive-chart i:nth-child(5) { animation-delay: .2s; }
.executive-chart i:nth-child(6) { animation-delay: .25s; }
.executive-chart i:nth-child(7) { animation-delay: .3s; }

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-text {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.icon-text:hover {
  transform: translateY(-2px);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.icon-text:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1180px) {
  .landing-hero,
  .intelligence-wall,
  .cloud-stage,
  .master-command,
  .login-v2 {
    grid-template-columns: 1fr;
  }

  .lane-grid,
  .master-kpi-ribbon,
  .master-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing-nav {
    position: static;
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .landing-nav nav {
    justify-content: flex-start;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .console-metrics,
  .split-heading,
  .lane-grid,
  .cloud-route,
  .master-kpi-ribbon,
  .master-grid-v2 {
    grid-template-columns: 1fr;
  }

  .cloud-route i {
    width: 2px;
    height: 20px;
    justify-self: center;
  }

  .landing-final {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-v2-visual,
  .login-v2-panel {
    min-height: auto;
  }

  .login-v2-visual {
    padding: 24px 18px;
  }

  .login-v2-copy {
    padding: 34px 0;
  }

  .login-product-grid {
    grid-template-columns: 1fr;
  }

  .login-product-grid .wide {
    grid-column: auto;
  }
}

/* Premium multi-segment SaaS landing */
.brand-landing {
  background:
    linear-gradient(180deg, #f8fbff 0, #eef6ff 690px, #ffffff 691px, #f8fbff 100%);
  color: #0f172a;
}

.brand-landing .brand-mark {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
}

.brand-landing .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.brand-landing .secondary-btn {
  border-color: #dbeafe;
  background: #fff;
  color: #1e3a8a;
}

.brand-landing .ghost-btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.landing-nav {
  grid-template-columns: minmax(220px, auto) 1fr auto;
  border-color: rgba(37, 99, 235, .14);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .1);
}

.landing-nav .auth-brand strong {
  color: #0f172a;
}

.landing-nav .auth-brand span,
.landing-nav nav button {
  color: #475569;
}

.landing-nav nav button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.landing-nav .primary-btn {
  min-width: 132px;
}

.premium-hero {
  grid-template-columns: minmax(0, .9fr) minmax(420px, .86fr);
  align-items: center;
  min-height: 100svh;
  padding-bottom: 92px;
}

.premium-hero .landing-hero-copy {
  padding-top: 20px;
}

.premium-hero h1 {
  max-width: 860px;
  color: #0f172a;
  font-size: clamp(48px, 6.8vw, 96px);
  letter-spacing: 0;
}

.premium-hero p {
  max-width: 700px;
  color: #475569;
}

.premium-hero .signal-pill {
  border-color: rgba(37, 99, 235, .18);
  background: rgba(255, 255, 255, .72);
  color: #1d4ed8;
}

.premium-hero .secondary-btn.dark,
.premium-hero .ghost-btn.dark {
  border-color: #dbeafe;
  background: rgba(255, 255, 255, .82);
  color: #1e3a8a;
}

.premium-hero .hero-proof-bar span {
  border-color: rgba(37, 99, 235, .16);
  background: rgba(255, 255, 255, .7);
  color: #334155;
}

.brand-landing .section-kicker {
  border-color: rgba(37, 99, 235, .18);
  background: #eff6ff;
  color: #1d4ed8;
}

.hero-product-stage {
  position: relative;
  min-height: 620px;
  animation: celhost-rise .82s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: .12s;
}

.people-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.people-collage img {
  position: absolute;
  display: block;
  width: 32%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .14);
}

.people-collage img:nth-child(1) {
  top: 0;
  right: 2%;
  width: 40%;
}

.people-collage img:nth-child(2) {
  bottom: 6%;
  left: 0;
  width: 34%;
}

.people-collage img:nth-child(3) {
  right: 0;
  bottom: 0;
  width: 30%;
}

.product-mockup {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 249, 252, .98));
  color: #111827;
  box-shadow: 0 34px 100px rgba(37, 99, 235, .18);
  transform: perspective(1200px) rotateX(3deg) rotateY(-5deg);
}

.product-mockup .console-top {
  background: #1e3a8a;
}

.mockup-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 420px;
}

.mockup-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 18px 12px;
  background: #1e3a8a;
}

.mockup-sidebar b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa, #0ea5e9);
  color: #fff;
}

.mockup-sidebar i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .11);
}

.mockup-main {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.mockup-header small,
.mockup-metrics span,
.mockup-kanban span {
  color: #697386;
  font-weight: 750;
}

.mockup-header strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 28px;
  line-height: 1.05;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mockup-metrics article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .08);
}

.mockup-metrics strong {
  color: #101828;
  font-size: 34px;
  line-height: 1;
}

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

.mockup-kanban,
.mockup-chat {
  display: grid;
  gap: 10px;
  min-height: 176px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.mockup-kanban b,
.mockup-chat p {
  display: block;
  margin: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .07);
}

.mockup-kanban b {
  min-height: 32px;
}

.mockup-kanban b:nth-child(2) {
  background: linear-gradient(90deg, #dbeafe, #fff);
}

.mockup-kanban b:nth-child(3) {
  background: linear-gradient(90deg, #dcfce7, #fff);
}

.mockup-chat p {
  padding: 10px;
  color: #475467;
  font-size: 12px;
}

.landing-strip {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 50px rgba(17, 24, 39, .1);
}

.landing-strip span {
  border-color: #dde5ef;
  background: #f8fafc;
  color: #3d4658;
}

.visual-workflow,
.segments-stage,
.proof-gallery {
  color: var(--v2-ink);
}

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

.workflow-grid article,
.premium-segments article {
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.workflow-grid article:hover,
.premium-segments article:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, #2563eb 30%, #dfe7f1);
  box-shadow: 0 26px 78px rgba(37, 99, 235, .14);
}

.brand-landing .case-card.active {
  border-color: color-mix(in srgb, #2563eb 42%, #dfe7f1);
  background: #eff6ff;
}

.brand-landing .case-card small,
.brand-landing .case-card.active small {
  color: #2563eb;
}

.brand-landing .cloud-route .hub {
  background: rgba(37, 99, 235, .28);
}

.brand-landing .cloud-route i,
.brand-landing .connector-map i {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.brand-landing .editorial-plans .plan-card .primary-btn,
.brand-landing .plans-grid .plan-card .primary-btn,
.brand-landing .plan-card .primary-btn,
.brand-landing .editorial-plans .plan-card.recommended .primary-btn,
.brand-landing .plans-grid .plan-card.recommended .primary-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.brand-landing .editorial-plans .plan-card .secondary-btn,
.brand-landing .plans-grid .plan-card .secondary-btn {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.workflow-grid img,
.premium-segments img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.workflow-grid div,
.premium-segments div {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.workflow-grid strong,
.premium-segments strong {
  color: #111827;
  font-size: 18px;
}

.workflow-grid p,
.premium-segments p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.premium-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.premium-segments article:nth-child(1),
.premium-segments article:nth-child(5) {
  grid-row: span 2;
}

.premium-segments article:nth-child(1) img,
.premium-segments article:nth-child(5) img {
  aspect-ratio: 4 / 5;
}

.proof-gallery {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.gallery-copy h2 {
  margin: 14px 0;
  color: var(--v2-ink);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
}

.gallery-copy p {
  max-width: 560px;
  color: var(--v2-muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(37, 99, 235, .1);
  border-radius: 8px;
  box-shadow: 0 18px 58px rgba(15, 23, 42, .11);
}

.gallery-grid img:first-child {
  grid-row: span 2;
  min-height: 458px;
}

.case-card small {
  font-size: 12px;
}

.cloud-stage {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, .94), rgba(14, 116, 144, .88)),
    url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}

.landing-final {
  background:
    linear-gradient(135deg, #ffffff, #f7fbff 64%, #eff6ff);
}

.reveal-on-scroll,
.workflow-grid article,
.premium-segments article,
.proof-gallery img {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-on-scroll.is-visible,
.workflow-grid article.is-visible,
.premium-segments article.is-visible,
.proof-gallery img.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(.2, .8, .2, 1);
}

.workflow-grid article:nth-child(2),
.premium-segments article:nth-child(2),
.proof-gallery img:nth-child(2) {
  transition-delay: 70ms;
}

.workflow-grid article:nth-child(3),
.premium-segments article:nth-child(3),
.proof-gallery img:nth-child(3) {
  transition-delay: 140ms;
}

.workflow-grid article:nth-child(4),
.premium-segments article:nth-child(4) {
  transition-delay: 210ms;
}

.product-mockup {
  animation: product-mockup-enter 900ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes product-mockup-enter {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(8deg) rotateY(-12deg) translateY(34px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(3deg) rotateY(-5deg) translateY(0);
  }
}

@media (max-width: 1180px) {
  .premium-hero,
  .proof-gallery {
    grid-template-columns: 1fr;
  }

  .hero-product-stage {
    min-height: 500px;
  }

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

@media (max-width: 760px) {
  .brand-landing {
    background: linear-gradient(180deg, #f8fbff 0, #eef6ff 820px, #ffffff 821px, #f8fbff 100%);
  }

  .landing-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .landing-nav .auth-brand {
    min-width: 0;
  }

  .landing-nav .auth-brand span {
    font-size: 11px;
  }

  .landing-nav nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .landing-nav nav button {
    min-height: 34px;
    padding: 0 6px;
    font-size: 12px;
  }

  .landing-nav .primary-btn {
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .premium-hero {
    padding: 30px 18px 54px;
  }

  .premium-hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .hero-product-stage {
    min-height: 620px;
  }

  .people-collage img:nth-child(1) {
    width: 52%;
    right: 0;
  }

  .people-collage img:nth-child(2) {
    width: 45%;
  }

  .people-collage img:nth-child(3) {
    width: 42%;
  }

  .product-mockup {
    left: 0;
    right: 0;
    top: 28%;
    transform: none;
  }

  .mockup-body {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 330px;
  }

  .mockup-main {
    gap: 12px;
    padding: 14px;
  }

  .workflow-grid,
  .premium-segments,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .mockup-header strong {
    font-size: 20px;
  }

  .mockup-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mockup-metrics article {
    min-height: 92px;
    padding: 10px;
  }

  .mockup-metrics strong {
    font-size: 24px;
  }

  .mockup-metrics span {
    font-size: 10px;
    line-height: 1.25;
  }

  .mockup-grid {
    display: none;
  }

  .premium-segments article:nth-child(1),
  .premium-segments article:nth-child(5) {
    grid-row: auto;
  }

  .premium-segments article:nth-child(1) img,
  .premium-segments article:nth-child(5) img,
  .gallery-grid img:first-child {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}

.whatsapp-simple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 16px;
}

.whatsapp-connection-panel,
.whatsapp-summary {
  display: grid;
  gap: 14px;
}

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

.whatsapp-summary div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}

/* TippOS premium public landing */
.tippos-landing {
  --tippos-green: #052b23;
  --tippos-green-2: #073d31;
  --tippos-mint: #72e3b5;
  --tippos-blue: #2563eb;
  --tippos-ink: #101828;
  --tippos-muted: #667085;
  --tippos-line: #dce7e2;
  background: #f5faf8;
  color: var(--tippos-ink);
  overflow: hidden;
}

.tippos-landing .brand-mark {
  background: linear-gradient(135deg, #0c5b48, #78e0b7);
  color: #fff;
}

.tippos-landing .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #0e6b55, #57c99d);
  color: #fff;
  box-shadow: 0 18px 40px rgba(5, 43, 35, .22);
}

.tippos-nav .primary-btn,
.tippos-hero .primary-btn {
  background: linear-gradient(135deg, #0d6a54, #2f8fed 52%, #67ddb0);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .28), 0 8px 22px rgba(5, 43, 35, .18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tippos-nav .primary-btn:hover,
.tippos-hero .primary-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 24px 54px rgba(37, 99, 235, .34), 0 12px 28px rgba(5, 43, 35, .2);
}

.tippos-landing .secondary-btn {
  border-color: rgba(5, 43, 35, .16);
  background: #fff;
  color: var(--tippos-green);
}

.tippos-landing .secondary-btn.dark {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.tippos-nav {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 60px rgba(5, 43, 35, .12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: min-height 220ms ease, top 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tippos-nav.is-scrolled {
  top: 10px;
  min-height: 56px;
  border-color: rgba(5, 43, 35, .12);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 46px rgba(5, 43, 35, .14);
}

.tippos-nav nav,
.tippos-nav > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tippos-nav nav button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 12px;
  color: #345047;
  font-weight: 800;
  cursor: pointer;
}

.tippos-nav nav button:hover {
  background: #edf7f2;
  color: var(--tippos-green);
}

.tippos-hero {
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  padding: 126px max(28px, calc((100vw - 1180px) / 2)) 58px;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tippos-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(245, 250, 248, .95));
  pointer-events: none;
}

.tippos-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.tippos-pill,
.tippos-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(114, 227, 181, .32);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(114, 227, 181, .12);
  color: var(--tippos-mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tippos-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(46px, 5.7vw, 78px);
  line-height: .95;
  letter-spacing: 0;
  text-wrap: balance;
}

.tippos-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.tippos-hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 720px;
}

.tippos-hero-stack span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.tippos-hero-stack svg {
  color: var(--tippos-mint);
}

.tippos-hero .hero-actions {
  margin-top: 2px;
  gap: 12px;
}

.tippos-hero .hero-primary {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.tippos-hero .hero-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg);
  animation: tippos-shine 4.8s ease-in-out infinite;
}

.tippos-hero-screen {
  position: relative;
  perspective: 1400px;
  animation: tippos-float 7s ease-in-out infinite;
}

.tippos-hero-screen::before,
.tippos-hero-screen::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  pointer-events: none;
}

.tippos-hero-screen::before {
  inset: 28px -18px -22px 32px;
  background: rgba(114, 227, 181, .18);
  filter: blur(24px);
}

.tippos-hero-screen::after {
  right: -16px;
  top: 52px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, rgba(37, 99, 235, .42), rgba(114, 227, 181, .22));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.tippos-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  color: var(--tippos-ink);
  box-shadow: 0 52px 120px rgba(0, 0, 0, .34), 0 18px 46px rgba(5, 43, 35, .22);
  transform: rotateX(2deg) rotateY(-4deg);
  transform-origin: center;
}

.tippos-hero-screen .tippos-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, .42) 42%, transparent 62%);
  opacity: .34;
  transform: translateX(-80%);
  animation: tippos-screen-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.tippos-window-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #f7faf8;
  border-bottom: 1px solid #e3ece7;
}

.tippos-window-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d0d9d5;
}

.tippos-window-top strong {
  margin-left: auto;
  color: #315349;
  font-size: 12px;
}

.tippos-dashboard {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 480px;
}

.tippos-dashboard nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding: 22px 12px;
  background: var(--tippos-green);
}

.tippos-dashboard nav b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tippos-mint);
  color: var(--tippos-green);
}

.tippos-dashboard nav i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.tippos-dashboard section {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #f8fbf9;
}

.tippos-dashboard small {
  color: #698078;
  font-weight: 800;
}

.tippos-dashboard h2 {
  margin: 0;
  color: #10251f;
  font-size: 34px;
  line-height: 1.05;
}

.tippos-live-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d8ebe2;
  border-radius: 8px;
  background: linear-gradient(90deg, #ecfff6, #f8fbf9);
  color: #315349;
  box-shadow: 0 10px 24px rgba(5, 43, 35, .06);
}

.tippos-live-row span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
  animation: tippos-pulse 1.8s ease-in-out infinite;
}

.tippos-live-row strong,
.tippos-live-row i {
  font-size: 12px;
}

.tippos-live-row i {
  margin-left: auto;
  color: #607970;
  font-style: normal;
}

.tippos-metrics,
.tippos-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tippos-metrics article,
.tippos-board div,
.tippos-shot-grid article {
  border: 1px solid #e1ebe6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(5, 43, 35, .08);
}

.tippos-metrics article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.tippos-metrics strong {
  color: var(--tippos-green);
  font-size: 34px;
}

.tippos-metrics span,
.tippos-board b {
  color: #607970;
  font-size: 12px;
  font-weight: 800;
}

.tippos-board div {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 14px;
}

.tippos-board span {
  display: block;
  min-height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e6f7ef, #fff);
  background-size: 220% 100%;
  animation: tippos-card-flow 4.2s ease-in-out infinite;
}

.tippos-hero-modules {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: -28px max(20px, calc((100vw - 1180px) / 2)) 0;
  position: relative;
  z-index: 4;
}

.tippos-hero-modules article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(220, 231, 226, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 46px rgba(5, 43, 35, .1);
  backdrop-filter: blur(16px);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
  cursor: pointer;
}

.tippos-hero-modules article:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, .26);
  box-shadow: 0 26px 62px rgba(5, 43, 35, .14), 0 10px 24px rgba(37, 99, 235, .1);
}

.tippos-hero-modules svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 43, 35, .09), rgba(37, 99, 235, .1));
  color: var(--tippos-green);
}

.tippos-hero-modules strong {
  color: var(--tippos-ink);
  font-size: 16px;
  line-height: 1.2;
}

.tippos-hero-modules span {
  color: var(--tippos-muted);
  font-size: 13px;
  line-height: 1.38;
}

.tippos-stats article {
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #f8fcfa;
  color: #345047;
  font-weight: 900;
}

.tippos-section {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
}

.tippos-hero-modules + .tippos-section {
  padding-top: 72px;
}

.tippos-split,
.tippos-people,
.tippos-ai,
.tippos-screenshot-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: center;
}

.tippos-split {
  position: relative;
}

.tippos-performance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.tippos-performance-strip span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  border: 1px solid rgba(220, 231, 226, .94);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f5fbf8);
  padding: 14px;
  box-shadow: 0 18px 42px rgba(5, 43, 35, .08);
}

.tippos-performance-strip strong {
  color: var(--tippos-green);
  font-size: 24px;
}

.tippos-performance-strip small {
  color: var(--tippos-muted);
  font-weight: 800;
}

.tippos-enterprise-panel {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(220, 231, 226, .94);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 248, 243, .9)),
    linear-gradient(90deg, rgba(37, 99, 235, .08), transparent);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 26px 74px rgba(5, 43, 35, .1);
}

.tippos-enterprise-panel p {
  margin: 0;
}

.tippos-enterprise-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tippos-enterprise-flow span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  background: #fff;
  color: #244a3f;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 30px rgba(5, 43, 35, .07);
}

.tippos-enterprise-flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--tippos-green), var(--tippos-blue), var(--tippos-mint));
}

.tippos-heading {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: 34px;
}

.tippos-section h2,
.tippos-final h2 {
  margin: 14px 0 0;
  color: var(--tippos-ink);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.tippos-section p,
.tippos-split > p {
  color: var(--tippos-muted);
  font-size: 18px;
  line-height: 1.7;
}

.tippos-screenshot-row img,
.tippos-people img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(5, 43, 35, .14);
}

.tippos-large-shot {
  padding: 24px;
  border-radius: 8px;
  background: var(--tippos-green);
}

.tippos-window.mini {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.tippos-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
}

.tippos-shot-grid article {
  min-height: 160px;
}

.tippos-dark {
  background: var(--tippos-green);
  color: #fff;
}

.tippos-dark h2,
.tippos-final h2 {
  color: #fff;
}

.tippos-dark .tippos-kicker {
  background: rgba(114, 227, 181, .12);
}

.tippos-steps,
.tippos-modules,
.tippos-testimonial-grid,
.tippos-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tippos-steps article,
.tippos-modules article,
.tippos-testimonial-grid article,
.tippos-faq-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 230px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 18px 58px rgba(5, 43, 35, .08);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.tippos-modules article:hover,
.tippos-steps article:hover,
.tippos-testimonial-grid article:hover,
.tippos-faq-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 28px 74px rgba(5, 43, 35, .12), 0 10px 24px rgba(37, 99, 235, .08);
}

.tippos-dark .tippos-steps article {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.tippos-steps span {
  color: var(--tippos-mint);
  font-size: 13px;
  font-weight: 900;
}

.tippos-steps strong,
.tippos-modules strong,
.tippos-testimonial-grid strong,
.tippos-faq-grid strong {
  color: var(--tippos-ink);
  font-size: 22px;
  line-height: 1.12;
}

.tippos-dark .tippos-steps strong,
.tippos-dark .tippos-steps p {
  color: #fff;
}

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

.tippos-modules svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 43, 35, .08), rgba(37, 99, 235, .1));
  color: var(--tippos-green);
}

.tippos-product-screens {
  background: #fff;
}

.tippos-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tippos-screen-card {
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(5, 43, 35, .08);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.tippos-screen-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 30px 78px rgba(5, 43, 35, .13);
}

.tippos-screen-copy {
  display: grid;
  gap: 8px;
}

.tippos-screen-copy svg {
  color: var(--tippos-green);
}

.tippos-screen-copy strong {
  color: var(--tippos-ink);
  font-size: 18px;
}

.tippos-screen-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.tippos-system-shot {
  overflow: hidden;
  min-height: 170px;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  background: #f7fbf9;
}

.tippos-system-shot header {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid #dfe9e4;
  background: #fff;
}

.tippos-system-shot header span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd8d2;
}

.tippos-system-shot header b {
  margin-left: auto;
  color: #47665d;
  font-size: 11px;
}

.tippos-system-shot section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-auto-rows: 28px;
  gap: 10px;
  padding: 14px;
}

.tippos-system-shot i {
  border-radius: 8px;
  background: linear-gradient(90deg, #e7f5ef, #fff);
  box-shadow: inset 0 0 0 1px rgba(5, 43, 35, .04);
}

.tippos-system-shot i:nth-child(1),
.tippos-system-shot i:nth-child(4) {
  grid-row: span 2;
}

.tippos-system-shot.shot-1 section,
.tippos-system-shot.shot-2 section,
.tippos-system-shot.shot-3 section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tippos-system-shot.shot-2 i:nth-child(2),
.tippos-system-shot.shot-3 i:nth-child(5) {
  background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(114, 227, 181, .22));
}

.tippos-ai {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 43, 35, .96), rgba(5, 43, 35, .88)),
    #052b23;
  color: #fff;
}

.tippos-ai .tippos-kicker,
.tippos-ai h2,
.tippos-ai p {
  color: #fff;
}

.tippos-ai .tippos-kicker {
  background: rgba(114, 227, 181, .12);
}

.tippos-ai-particles {
  position: absolute;
  inset: 24px;
  pointer-events: none;
}

.tippos-ai-particles span {
  position: absolute;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(114, 227, 181, .52), transparent);
  animation: tippos-particle 6s ease-in-out infinite;
}

.tippos-ai-particles span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.tippos-ai-particles span:nth-child(2) {
  right: 16%;
  top: 12%;
  animation-delay: 1.1s;
}

.tippos-ai-particles span:nth-child(3) {
  left: 34%;
  bottom: 16%;
  animation-delay: 2s;
}

.tippos-ai-particles span:nth-child(4) {
  right: 8%;
  bottom: 24%;
  animation-delay: 3s;
}

.tippos-ai ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, .86);
  font-weight: 800;
}

.tippos-ai-speed {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(114, 227, 181, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.tippos-ai-speed span {
  color: var(--tippos-mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tippos-ai-speed strong {
  color: #fff;
  font-size: 18px;
}

.tippos-chat-shot {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .24);
}

.tippos-chat-shot div {
  max-width: 78%;
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: #f0f6f3;
  padding: 14px;
  animation: tippos-chat-in 5.4s ease-in-out infinite;
}

.tippos-chat-shot .ai {
  justify-self: end;
  background: var(--tippos-green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(5, 43, 35, .2);
}

.tippos-chat-shot div:nth-child(2) {
  animation-delay: .3s;
}

.tippos-chat-shot div:nth-child(3) {
  animation-delay: .6s;
}

.tippos-chat-shot div:nth-child(4) {
  animation-delay: .9s;
}

.tippos-chat-shot small {
  font-weight: 900;
  opacity: .75;
}

.tippos-chat-shot p {
  margin: 0;
  color: inherit;
}

.tippos-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tippos-stats article {
  display: grid;
  gap: 8px;
  min-height: 170px;
  align-content: center;
  padding: 26px;
}

.tippos-stats strong {
  color: var(--tippos-green);
  font-size: clamp(36px, 4vw, 62px);
}

.tippos-people {
  background: #fff;
}

.tippos-testimonials,
.tippos-pricing {
  background: #f7fbf8;
}

.tippos-trust {
  background: #fff;
}

.tippos-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tippos-trust-grid article {
  display: grid;
  gap: 8px;
  min-height: 178px;
  align-content: center;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbf9);
  padding: 24px;
  box-shadow: 0 18px 48px rgba(5, 43, 35, .08);
}

.tippos-trust-grid strong {
  color: var(--tippos-green);
  font-size: clamp(24px, 3vw, 34px);
}

.tippos-trust-grid span {
  color: var(--tippos-ink);
  font-weight: 900;
}

.tippos-trust-grid p {
  margin: 0;
  font-size: 14px;
}

.tippos-logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tippos-logo-wall span {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed #cfded8;
  border-radius: 8px;
  background: #f8fcfa;
  color: #6c7f78;
  font-weight: 900;
}

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

.tippos-testimonial-grid p {
  color: #344840;
  font-size: 18px;
}

.tippos-testimonial-grid span {
  color: var(--tippos-muted);
}

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

.tippos-faq-grid article {
  min-height: 180px;
}

.tippos-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 0 max(24px, calc((100vw - 1180px) / 2)) 80px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 43, 35, .96), rgba(6, 61, 49, .9)),
    url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1500&q=82");
  background-size: cover;
  background-position: center;
  padding: 70px;
}

.tippos-final .tippos-kicker {
  background: rgba(255, 255, 255, .1);
}

.tippos-pricing .editorial-plans {
  gap: 22px;
  align-items: stretch;
}

.tippos-pricing .plan-card {
  min-height: 520px;
  padding: 30px;
  border-radius: 8px;
  border-color: rgba(220, 231, 226, .98);
  box-shadow: 0 24px 70px rgba(5, 43, 35, .1);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.tippos-pricing .plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 36px 90px rgba(5, 43, 35, .15);
}

.tippos-pricing .plan-card.recommended {
  border-color: rgba(37, 99, 235, .44);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .06), transparent 28%),
    #fff;
}

.tippos-pricing .badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #052b23;
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.plan-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.plan-compare span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  background: rgba(37, 99, 235, .06);
  color: #22463c;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
}

.tippos-pricing .plan-card .primary-btn {
  min-height: 50px;
  flex: 1 1 170px;
}

.tippos-pricing .empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37, 99, 235, .24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f3fbf8);
  color: var(--tippos-muted);
  box-shadow: 0 18px 44px rgba(5, 43, 35, .08);
}

.tippos-landing .site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(135deg, #041f1a, #071a22 72%, #0b2b3d);
  color: #fff;
}

.tippos-landing .site-footer .brand-mark {
  background: linear-gradient(135deg, #0e6b55, #2f8fed);
}

.tippos-landing .footer-inner p,
.tippos-landing .footer-inner a,
.tippos-landing .footer-inner button,
.tippos-landing .footer-bottom {
  color: rgba(255, 255, 255, .72);
}

.tippos-landing .footer-inner strong,
.tippos-landing .footer-brand strong {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.tippos-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.tippos-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes tippos-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes tippos-shine {
  0%,
  55% {
    transform: translateX(0) skewX(-18deg);
  }
  78%,
  100% {
    transform: translateX(360%) skewX(-18deg);
  }
}

@keyframes tippos-screen-glow {
  0%,
  42% {
    transform: translateX(-90%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes tippos-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: .82;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes tippos-card-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes tippos-particle {
  0%,
  100% {
    opacity: .22;
    transform: translateY(0) translateX(0);
  }
  50% {
    opacity: .7;
    transform: translateY(-12px) translateX(10px);
  }
}

@keyframes tippos-chat-in {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 1120px) {
  .tippos-hero,
  .tippos-split,
  .tippos-people,
  .tippos-ai,
  .tippos-screenshot-row,
  .tippos-final {
    grid-template-columns: 1fr;
  }

  .tippos-steps,
  .tippos-modules,
  .tippos-stats,
  .tippos-screen-grid,
  .tippos-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .tippos-nav {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    transform: none;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .tippos-nav {
    grid-template-columns: 1fr;
  }

  .tippos-nav nav,
  .tippos-nav > div {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tippos-hero,
  .tippos-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tippos-hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .tippos-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tippos-hero-screen {
    display: none;
  }

  .tippos-hero-modules {
    margin-top: -22px;
  }

  .tippos-dashboard {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .tippos-metrics,
  .tippos-board,
  .tippos-hero-modules,
  .tippos-steps,
  .tippos-modules,
  .tippos-screen-grid,
  .tippos-trust-grid,
  .tippos-logo-wall,
  .tippos-testimonial-grid,
  .tippos-faq-grid,
  .tippos-stats {
    grid-template-columns: 1fr;
  }

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

  .tippos-enterprise-flow {
    grid-template-columns: 1fr;
  }

  .tippos-enterprise-flow i {
    width: 2px;
    height: 22px;
    justify-self: center;
  }

  .tippos-screen-card {
    min-height: auto;
  }

  .tippos-board {
    display: none;
  }

  .tippos-screenshot-row img,
  .tippos-people img {
    min-height: 300px;
  }

  .tippos-final {
    margin: 0 18px 42px;
    padding: 34px 22px;
  }
}

/* TippOS EasyJus-style public landing refresh */
.tippos-landing {
  --tippos-green: #052b23;
  --tippos-green-2: #0b3b35;
  --tippos-blue: #2563eb;
  --tippos-gold: #d7a928;
  --tippos-ink: #122033;
  --tippos-muted: #6b7789;
  --tippos-soft: #f5f8fb;
  --tippos-line: #e6ebf2;
  background: #fff;
}

.tippos-nav {
  min-height: 58px;
  border-color: rgba(16, 32, 51, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 50px rgba(18, 32, 51, .08);
}

.tippos-nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
}

.tippos-nav nav button {
  color: #405267;
  font-size: 13px;
}

.tippos-nav .primary-btn {
  background: #0b2b4c;
  box-shadow: 0 12px 26px rgba(11, 43, 76, .18);
}

.tippos-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 34px;
  padding: 138px max(24px, calc((100vw - 1120px) / 2)) 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .08), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdff 70%, #f7fafc);
  color: var(--tippos-ink);
}

.tippos-hero::after,
.tippos-hero-screen {
  display: none;
}

.tippos-hero-copy {
  max-width: 900px;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.tippos-pill,
.tippos-kicker {
  min-height: 28px;
  border-color: rgba(37, 99, 235, .12);
  background: #f4f8ff;
  color: var(--tippos-blue);
  font-size: 10px;
  letter-spacing: .04em;
}

.tippos-hero h1 {
  max-width: 800px;
  color: var(--tippos-ink);
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: .96;
}

.tippos-hero p {
  max-width: 700px;
  color: var(--tippos-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}

.tippos-hero .hero-actions {
  justify-content: center;
  margin-top: 4px;
}

.tippos-hero .primary-btn,
.tippos-hero .hero-primary {
  min-height: 46px;
  border-radius: 8px;
  background: #0b2b4c;
  box-shadow: 0 18px 34px rgba(11, 43, 76, .18);
}

.tippos-hero .secondary-btn {
  min-height: 46px;
  border-color: var(--tippos-line);
  background: #fff;
  color: #23364d;
  box-shadow: 0 12px 26px rgba(18, 32, 51, .06);
}

.tippos-hero-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.tippos-hero-seals span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #788599;
  font-size: 12px;
  font-weight: 800;
}

.tippos-hero-seals svg {
  color: var(--tippos-gold);
}

.tippos-main-mockup {
  position: relative;
  width: min(920px, 100%);
  margin-top: 8px;
}

.tippos-product-window {
  overflow: hidden;
  border: 1px solid rgba(224, 232, 242, .95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(18, 32, 51, .14);
}

.tippos-product-window header {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--tippos-line);
  padding: 0 16px;
  background: #fbfdff;
}

.tippos-product-window header span,
.tippos-floating-note::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ccd7e3;
}

.tippos-product-window header strong {
  margin-left: auto;
  color: #4c5b6f;
  font-size: 12px;
}

.tippos-product-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 420px;
}

.tippos-product-body aside {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 20px 10px;
  background: #f4f7fb;
}

.tippos-product-body aside b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b3b35, #2563eb);
  color: #fff;
}

.tippos-product-body aside i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #dfe7f0;
}

.tippos-product-body section {
  display: grid;
  gap: 18px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}

.tippos-product-top,
.tippos-product-metrics,
.tippos-product-grid {
  display: grid;
  gap: 14px;
}

.tippos-product-top {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tippos-product-top small {
  color: #738096;
  font-weight: 900;
}

.tippos-product-top button {
  min-height: 32px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  color: #516176;
  font-size: 12px;
  font-weight: 900;
}

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

.tippos-product-metrics article,
.tippos-product-grid > div {
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(18, 32, 51, .05);
}

.tippos-product-metrics strong {
  display: block;
  color: var(--tippos-ink);
  font-size: clamp(20px, 3vw, 34px);
}

.tippos-product-metrics span,
.tippos-product-grid b,
.tippos-product-grid p {
  color: var(--tippos-muted);
  font-size: 13px;
  font-weight: 800;
}

.tippos-product-grid {
  grid-template-columns: 1.1fr .9fr 1fr;
  align-items: stretch;
}

.tippos-product-grid div {
  display: grid;
  gap: 12px;
}

.tippos-product-grid span {
  min-height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef5f8, #fff);
}

.tippos-product-grid p {
  margin: 0;
  line-height: 1.5;
}

.tippos-floating-note {
  position: absolute;
  z-index: 2;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  color: #1d334b;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(18, 32, 51, .12);
}

.tippos-floating-note.left {
  left: -32px;
  top: 74px;
}

.tippos-floating-note.right {
  right: -26px;
  top: 32px;
}

.tippos-credibility {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 34px max(24px, calc((100vw - 1120px) / 2)) 72px;
  background: #fff;
  text-align: center;
}

.tippos-credibility p {
  margin: 0;
  color: var(--tippos-muted);
  font-weight: 800;
}

.tippos-credibility div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tippos-credibility span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fbfdff;
  color: #516176;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.tippos-section {
  padding: 92px max(24px, calc((100vw - 1120px) / 2));
}

.tippos-heading.centered {
  justify-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.tippos-section h2,
.tippos-final h2 {
  color: var(--tippos-ink);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
}

.tippos-section p {
  color: var(--tippos-muted);
  font-size: 16px;
  line-height: 1.65;
}

.tippos-overview {
  background: #f8fbfe;
}

.tippos-card-grid,
.tippos-dark-grid,
.tippos-segment-grid,
.tippos-plan-grid {
  display: grid;
  gap: 16px;
}

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

.tippos-card-grid article,
.tippos-segment-grid article,
.tippos-faq-list article {
  display: grid;
  gap: 12px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(18, 32, 51, .05);
}

.tippos-card-grid article {
  min-height: 210px;
}

.tippos-card-grid svg,
.tippos-segment-grid svg {
  color: var(--tippos-blue);
}

.tippos-card-grid strong,
.tippos-segment-grid strong,
.tippos-faq-list strong {
  color: var(--tippos-ink);
  font-size: 18px;
}

.tippos-card-grid p,
.tippos-segment-grid p,
.tippos-faq-list p {
  margin: 0;
  font-size: 14px;
}

.tippos-dark,
.tippos-connected {
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, .16), transparent 28%),
    #081827;
  color: #fff;
}

.tippos-dark .tippos-kicker,
.tippos-connected .tippos-kicker {
  border-color: rgba(215, 169, 40, .24);
  background: rgba(215, 169, 40, .1);
  color: #f0c85b;
}

.tippos-dark h2,
.tippos-dark p,
.tippos-connected h2,
.tippos-connected p {
  color: #fff;
}

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

.tippos-dark-grid article {
  display: grid;
  gap: 12px;
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  padding: 24px;
}

.tippos-dark-grid svg {
  color: #f0c85b;
}

.tippos-dark-grid strong {
  color: #fff;
  font-size: 17px;
}

.tippos-dark-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.tippos-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 44px;
  align-items: center;
  margin-top: 78px;
}

.tippos-field h3 {
  max-width: 520px;
  margin: 14px 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.tippos-phone-mockup {
  justify-self: center;
  width: min(270px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .26);
}

.tippos-phone-shell {
  overflow: hidden;
  border-radius: 22px;
  background: #102338;
  padding: 16px;
}

.tippos-phone-shell header,
.tippos-phone-shell article,
.tippos-phone-shell footer {
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.tippos-phone-shell header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: #fff;
}

.tippos-phone-shell header span {
  color: #f0c85b;
  font-size: 12px;
  font-weight: 900;
}

.tippos-phone-shell section {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.tippos-phone-shell article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.tippos-phone-shell b {
  color: #fff;
  font-size: 13px;
}

.tippos-phone-shell span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.tippos-phone-shell footer {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.tippos-phone-shell footer i {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0c85b, #2563eb);
}

.tippos-human,
.tippos-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 56px;
  align-items: center;
  background: #fff;
}

.tippos-human-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.tippos-human-list span,
.tippos-time-list article {
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px 16px;
  color: #2a415a;
  font-weight: 900;
}

.tippos-chat-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 26px 72px rgba(18, 32, 51, .09);
}

.tippos-chat-panel div:not(.float-card) {
  width: fit-content;
  max-width: 82%;
  border-radius: 8px;
  background: #f3f7fb;
  padding: 14px;
}

.tippos-chat-panel .ai {
  justify-self: end;
  background: #0b2b4c !important;
  color: #fff;
}

.tippos-chat-panel small {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
  opacity: .72;
}

.tippos-chat-panel p {
  margin: 0;
  color: inherit;
}

.tippos-chat-panel .float-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  color: #1d334b;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(18, 32, 51, .11);
}

.tippos-chat-panel .float-card.second {
  right: auto;
  left: -18px;
  bottom: 82px;
}

.tippos-time {
  background: #f8fbfe;
}

.tippos-time-list {
  display: grid;
  gap: 12px;
}

.tippos-time-list article {
  display: grid;
  gap: 4px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 32, 51, .05);
}

.tippos-time-list span {
  color: var(--tippos-muted);
  font-size: 13px;
  font-weight: 700;
}

.tippos-metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 42px max(24px, calc((100vw - 1120px) / 2));
  background: #081827;
  color: #fff;
}

.tippos-metric-band article {
  display: grid;
  justify-items: center;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
}

.tippos-metric-band article:last-child {
  border-right: 0;
}

.tippos-metric-band strong {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}

.tippos-metric-band span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 800;
}

.tippos-segments {
  background: #fff;
}

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

.tippos-pricing {
  background: #f8fbfe;
}

.tippos-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.tippos-plan-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 430px;
  border: 1px solid var(--tippos-line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(18, 32, 51, .06);
}

.tippos-plan-card.recommended {
  transform: translateY(-12px);
  border-color: rgba(11, 43, 76, .22);
  box-shadow: 0 28px 74px rgba(11, 43, 76, .14);
}

.tippos-plan-card .badge {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #0b2b4c;
  color: #fff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.tippos-plan-card h3 {
  margin: 0;
  color: var(--tippos-ink);
  font-size: 20px;
}

.tippos-plan-card p {
  margin: 0;
  font-size: 14px;
}

.tippos-plan-card > strong {
  color: var(--tippos-ink);
  font-size: 30px;
  line-height: 1;
}

.tippos-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--tippos-muted);
  font-size: 13px;
}

.tippos-plan-card button {
  align-self: end;
  margin-top: auto;
}

.tippos-faq {
  background: #fff;
}

.tippos-faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.tippos-faq-list article {
  padding: 20px 22px;
  box-shadow: none;
}

.tippos-landing .site-footer {
  background: #081827;
}

@media (max-width: 1120px) {
  .tippos-card-grid,
  .tippos-dark-grid,
  .tippos-segment-grid,
  .tippos-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tippos-field,
  .tippos-human,
  .tippos-time {
    grid-template-columns: 1fr;
  }

  .tippos-floating-note.left {
    left: 10px;
  }

  .tippos-floating-note.right {
    right: 10px;
  }
}

@media (max-width: 760px) {
  .tippos-nav {
    position: sticky;
    top: 0;
    width: 100%;
    transform: none;
    border-radius: 0;
  }

  .tippos-hero {
    padding: 44px 18px 34px;
  }

  .tippos-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tippos-main-mockup {
    margin-top: 4px;
  }

  .tippos-product-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tippos-product-body aside,
  .tippos-floating-note {
    display: none;
  }

  .tippos-product-metrics,
  .tippos-product-grid,
  .tippos-card-grid,
  .tippos-dark-grid,
  .tippos-segment-grid,
  .tippos-plan-grid,
  .tippos-metric-band {
    grid-template-columns: 1fr;
  }

  .tippos-section {
    padding: 62px 18px;
  }

  .tippos-credibility {
    padding: 28px 18px 52px;
  }

  .tippos-field {
    margin-top: 48px;
  }

  .tippos-chat-panel .float-card {
    position: static;
  }

  .tippos-metric-band {
    gap: 22px;
  }

  .tippos-metric-band article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: 18px;
  }

  .tippos-plan-card.recommended {
    transform: none;
  }
}

.whatsapp-summary span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.qr-panel {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--soft);
}

.qr-code {
  width: min(260px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 10px solid var(--surface, #fff);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--text) 50%, transparent 0) 0 0 / 28px 28px,
    linear-gradient(var(--text) 50%, transparent 0) 0 0 / 28px 28px,
    var(--surface, #fff);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.qr-image {
  width: min(260px, 100%);
  aspect-ratio: 1;
  display: block;
  padding: 12px;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.secondary-btn.danger {
  color: #dc2626;
}

.company-list-panel {
  overflow: hidden;
  padding: 22px;
}

.company-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.company-list-head,
.company-list-row {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.35fr)
    minmax(170px, .74fr)
    minmax(150px, .72fr)
    minmax(150px, .72fr)
    minmax(150px, .58fr);
  align-items: start;
  gap: 14px;
}

.company-list-head {
  align-items: center;
  padding: 14px 16px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  color: color-mix(in srgb, var(--text-secondary) 88%, #64748b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.company-list-head span:last-child {
  display: none;
}

.company-list-row {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 96%, var(--card)), color-mix(in srgb, #f8fbff 58%, var(--card)));
  box-shadow: 0 14px 36px rgba(18, 32, 51, .055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.company-list-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background:
    linear-gradient(180deg, #fff, color-mix(in srgb, #f4f8ff 74%, var(--card)));
  box-shadow: 0 22px 52px rgba(18, 32, 51, .09);
}

.company-main-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.company-main-cell strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 880;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-main-cell small {
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-segment-cell {
  min-width: 0;
}

.company-segment-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  color: color-mix(in srgb, var(--primary) 76%, #0f172a);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
}

.company-meta-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  color: var(--text-secondary);
}

.company-meta-cell .ui-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
}

.company-meta-cell span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.company-meta-cell small {
  color: var(--text-tertiary, var(--text-secondary));
  font-size: 10px;
  font-weight: 860;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.company-meta-cell strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.company-usage-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.company-usage-cell span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 840;
  box-shadow: 0 8px 18px rgba(18, 32, 51, .04);
}

.company-usage-cell .ui-icon {
  color: var(--primary);
}

.company-actions-cell {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  white-space: normal;
}

.company-actions-cell .icon-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 840;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease;
}

.company-actions-cell .icon-action:hover {
  transform: translateY(-1px);
}

.company-actions-cell .primary-login {
  padding-inline: 15px;
  background: linear-gradient(135deg, #0b2b4c, var(--primary));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 22%, transparent);
}

.company-actions-cell .danger {
  border-color: color-mix(in srgb, #dc2626 24%, var(--border));
  background: color-mix(in srgb, #dc2626 6%, var(--card));
  color: #b91c1c;
}

.company-actions-cell .danger:hover {
  border-color: color-mix(in srgb, #dc2626 38%, var(--border));
  background: color-mix(in srgb, #dc2626 10%, var(--card));
  color: #991b1b;
}

.company-list-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 1240px) {
  .company-list-head {
    display: none;
  }

  .company-list-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .company-actions-cell {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
}

.sst-product-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, #15803d 24%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 10%, var(--card));
  color: #15803d;
  font-size: 12px;
  font-weight: 850;
}

.sst-primary {
  border-color: #15803d;
  background: #15803d;
}

.sst-primary:hover {
  border-color: #166534;
  background: #166534;
}

.sst-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .36fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, #16a34a 18%, var(--border));
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0%, color-mix(in srgb, #bbf7d0 42%, transparent), transparent 34%), linear-gradient(135deg, color-mix(in srgb, #ecfdf5 72%, var(--card)), var(--card));
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 48px rgba(21, 128, 61, .10);
}

.sst-hero h2 {
  max-width: 780px;
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.sst-hero p {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sst-hero-mark {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid color-mix(in srgb, #16a34a 20%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, #ffffff 76%, #dcfce7);
  padding: 18px;
  color: #166534;
}

.sst-hero-mark strong {
  color: #14532d;
  font-size: 20px;
}

.sst-hero-mark span,
.sst-stack-list span {
  color: var(--text-secondary);
  font-size: 13px;
}

.sst-metrics .metric-heading .ui-icon {
  border-color: color-mix(in srgb, #16a34a 24%, var(--border));
  background: color-mix(in srgb, #16a34a 10%, var(--card));
  color: #15803d;
}

.sst-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
  gap: 18px;
  align-items: start;
}

.sst-stack-list {
  display: grid;
  gap: 10px;
}

.sst-stack-list span {
  padding: 12px;
  border: 1px solid color-mix(in srgb, #16a34a 14%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, #16a34a 6%, var(--card));
}

.sst-ai-welcome {
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, #86efac 22%, transparent), transparent 42%), var(--card);
}

.sst-portal-page {
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
}

.sst-portal-hero {
  background: linear-gradient(140deg, #064e3b, #059669);
}

.sst-client-portal-shell .content {
  background: #f6fbf8;
}

.sst-client-portal-shell .sidebar-workspace span {
  color: #059669;
}

@media (max-width: 900px) {
  .sst-hero,
  .sst-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .whatsapp-simple-grid,
  .whatsapp-summary {
    grid-template-columns: 1fr;
  }
}

/* Dashboard inicial CELHOST IA */
.app-shell.home-shell {
  grid-template-columns: 76px minmax(0, 1fr);
  background: #eef2f8;
}

.home-shell .main {
  padding: 0;
}

.home-shell .workspace-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-shell .sidebar {
  align-items: center;
  padding: 24px 10px;
}

.home-shell .sidebar-header-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-shell .sidebar-workspace,
.home-shell .sidebar-brand strong,
.home-shell .sidebar-brand span,
.home-shell .nav-group > span,
.home-shell .nav-item span,
.home-shell .sidebar-user .user-copy,
.home-shell .sidebar-user > .ui-icon {
  display: none;
}

.home-shell .sidebar-brand,
.home-shell .sidebar-user,
.home-shell .nav-item,
.home-shell .sidebar-utilities .nav-item {
  justify-content: center;
}

.home-shell .nav {
  width: 100%;
  gap: 8px;
}

.home-shell .nav-item {
  min-height: 42px;
  padding: 0;
}

.home-shell .sidebar-footer {
  width: 100%;
  border: 0;
  padding-top: 0;
}

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

  .ai-action-grid,
  .home-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell.home-shell {
    grid-template-columns: 1fr;
  }

  .home-shell .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 14px;
    overflow-x: auto;
  }

  .home-shell .sidebar-header-card,
  .home-shell .nav,
  .home-shell .sidebar-footer,
  .home-shell .sidebar-utilities {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .home-shell .nav-group {
    flex-direction: row;
  }

  .home-dashboard {
    padding: 18px;
  }

  .home-hero,
  .ai-workspace-card {
    border-radius: 14px;
    padding: 18px;
  }

  .quick-task-row {
    grid-template-columns: 1fr;
  }

  .ai-action-grid,
  .home-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile overflow and grid safety layer */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
#app,
main,
section,
header,
footer,
nav,
div,
article,
aside,
form {
  min-width: 0;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.send-btn,
.text-btn,
.nav-item,
.segmented button,
[role="button"] {
  min-height: 44px;
}

.icon-btn.compact {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.public-page,
.auth-page,
.register-page,
.presentation-page,
.brand-landing,
.landing-page,
.sst-portal-page,
.app-shell,
.home-shell,
.workspace-page,
.content,
.main,
.panel,
.card,
.metric-card,
.plan-card,
.product-card,
.client-card,
.admin-hub-card,
.quick-task-card,
.dialog-card,
.table-wrap {
  max-width: 100%;
}

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

@media (max-width: 768px) {
  :root {
    --container: 100%;
  }

  .presentation-hero,
  .presentation-section,
  .presentation-band,
  .public-nav,
  .public-hero,
  .public-section,
  .footer-inner,
  .landing-nav,
  .premium-hero,
  .brand-section,
  .brand-landing section,
  .auth-card,
  .register-card,
  .login-v2-card,
  .app-dialog,
  .process-import-dialog {
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    margin-inline: auto;
  }

  .presentation-hero,
  .presentation-hero-grid,
  .presentation-flow,
  .presentation-module-grid,
  .presentation-billing-cards,
  .public-hero,
  .public-feature-grid,
  .public-plans-grid,
  .public-contact-grid,
  .footer-inner,
  .landing-nav,
  .premium-hero,
  .brand-hero,
  .brand-grid,
  .plans-grid,
  .editorial-plans,
  .master-command,
  .master-kpi-ribbon,
  .master-grid-v2,
  .dashboard-grid,
  .settings-grid,
  .metrics-grid,
  .admin-hub-grid,
  .checkout-grid,
  .invoice-detail,
  .billing-overview,
  .billing-layout,
  .billing-layout.with-editor,
  .invoice-document,
  .invoice-parties,
  .finance-create-layout,
  .form-grid.two,
  .register-grid,
  .limit-grid,
  .chat-workspace,
  .verification-grid,
  .sst-hero,
  .sst-layout,
  .whatsapp-simple-grid,
  .whatsapp-summary,
  .company-list-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .span-2,
  .form-grid.two .span-2,
  .register-grid .span-2 {
    grid-column: auto !important;
  }

  .panel,
  .card,
  .metric-card,
  .plan-card,
  .product-card,
  .client-card,
  .admin-hub-card,
  .quick-task-card,
  .billing-card,
  .company-list-row,
  .action-container {
    width: 100%;
    max-width: 100%;
  }

  .app-shell,
  .main,
  .content,
  .workspace-page,
  .home-dashboard {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar,
  .toolbar-controls,
  .billing-toolbar,
  .kanban-filters,
  .button-row,
  .action-cluster {
    width: 100%;
    max-width: 100%;
  }

  .toolbar-controls .search,
  .kanban-filters .search,
  .kanban-filters select,
  .landing-nav .primary-btn,
  .public-nav nav,
  .footer-inner button {
    width: 100%;
    min-width: 0;
  }

  .home-shell .sidebar {
    max-width: 100vw;
  }

  .home-shell .nav {
    overflow-x: auto;
    max-width: 100%;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 430px) {
  .presentation-hero,
  .presentation-section,
  .presentation-band,
  .public-nav,
  .public-hero,
  .public-section,
  .footer-inner,
  .landing-nav,
  .premium-hero,
  .brand-section,
  .brand-landing section {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .panel,
  .card,
  .metric-card,
  .plan-card,
  .product-card,
  .client-card,
  .quick-task-card {
    padding-inline: 14px;
  }
}

/* TippOS internal premium workspace */
.product-shell.studio-shell {
  --tippos-admin-ink: #122033;
  --tippos-admin-muted: #66758a;
  --tippos-admin-line: #e3eaf2;
  --tippos-admin-soft: #f6f9fc;
  --tippos-admin-card: #ffffff;
  --tippos-admin-green: #052b23;
  --tippos-admin-blue: #2563eb;
  --tippos-admin-navy: #081827;
  --tippos-admin-gold: #d7a928;
  background:
    radial-gradient(circle at 44% -10%, rgba(37, 99, 235, .12), transparent 30%),
    linear-gradient(180deg, #f7fafc 0, #eef4f8 100%);
  color: var(--tippos-admin-ink);
}

.product-shell.studio-shell .sidebar {
  gap: 14px;
  padding: 16px 12px;
  border-right: 0;
  background:
    radial-gradient(circle at 28% 0%, rgba(37, 99, 235, .28), transparent 30%),
    radial-gradient(circle at 110% 76%, rgba(6, 95, 70, .42), transparent 34%),
    linear-gradient(180deg, #071827, #081320 58%, #041f1a);
  color: #fff;
  box-shadow: 18px 0 56px rgba(8, 24, 39, .22);
}

.product-shell.studio-shell .sidebar-header-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .055));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.product-shell.studio-shell .sidebar-brand {
  width: 100%;
  min-height: 44px;
  gap: 10px;
}

.product-shell.studio-shell .brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0b3b35, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.product-shell.studio-shell .sidebar-brand strong,
.product-shell.studio-shell .sidebar-brand span,
.product-shell.studio-shell .nav-group > span,
.product-shell.studio-shell .nav-group summary span {
  color: #fff;
}

.product-shell.studio-shell .sidebar-workspace {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  padding: 10px 11px;
}

.product-shell.studio-shell .sidebar-workspace span {
  color: #79dcb8;
}

.product-shell.studio-shell .sidebar-workspace small,
.product-shell.studio-shell .sidebar-workspace strong {
  color: rgba(255, 255, 255, .78);
}

.product-shell.studio-shell .nav {
  gap: 9px;
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.product-shell.studio-shell .nav-group {
  gap: 6px;
}

.product-shell.studio-shell .nav-group summary {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  padding: 0 9px;
  cursor: pointer;
}

.product-shell.studio-shell .nav-group summary .ui-icon {
  color: rgba(255, 255, 255, .32);
}

.product-shell.studio-shell .nav-item {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 780;
  padding: 0 10px;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

.product-shell.studio-shell .nav-item .ui-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .68);
  box-sizing: border-box;
}

.product-shell.studio-shell .nav-item:hover,
.product-shell.studio-shell .nav-item.active {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, .14);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .22), rgba(255, 255, 255, .075));
  color: #fff;
}

.product-shell.studio-shell .nav-item.active {
  box-shadow: inset 3px 0 0 #d7a928, 0 12px 26px rgba(0, 0, 0, .12);
}

.product-shell.studio-shell .nav-item:hover .ui-icon,
.product-shell.studio-shell .nav-item.active .ui-icon {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.product-shell.studio-shell .sidebar-footer {
  gap: 10px;
}

.product-shell.studio-shell .account-card,
.product-shell.studio-shell .action-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  padding: 10px;
}

.product-shell.studio-shell .sidebar-user {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}

.product-shell.studio-shell .user-avatar {
  background: linear-gradient(135deg, #2563eb, #0b3b35);
  color: #fff;
}

.product-shell.studio-shell .sidebar-utilities {
  display: grid;
  gap: 6px;
}

.product-shell.studio-shell .sidebar-utilities .theme-toggle,
.product-shell.studio-shell .sidebar-utilities .logout {
  border-radius: 10px;
}

.product-shell.studio-shell .main {
  padding: 24px;
  background: transparent;
}

.product-shell.studio-shell .workspace-page {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.product-shell.studio-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(227, 234, 242, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  padding: 16px 18px;
  box-shadow: 0 18px 48px rgba(18, 32, 51, .07);
  backdrop-filter: blur(18px);
}

.product-shell.studio-shell .page-breadcrumb {
  color: var(--tippos-admin-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-shell.studio-shell .topbar h1,
.product-shell.studio-shell .page-heading h1 {
  margin: 5px 0 4px;
  color: var(--tippos-admin-ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.product-shell.studio-shell .topbar p,
.product-shell.studio-shell .page-heading p {
  color: var(--tippos-admin-muted);
}

.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card {
  border: 1px solid var(--tippos-admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(18, 32, 51, .07);
}

.product-shell.studio-shell .panel:hover,
.product-shell.studio-shell .metric-card:hover,
.product-shell.studio-shell .quick-task-card:hover,
.product-shell.studio-shell .admin-hub-card:hover,
.product-shell.studio-shell .product-card:hover,
.product-shell.studio-shell .client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .18);
  box-shadow: 0 24px 64px rgba(18, 32, 51, .1);
}

.product-shell.studio-shell .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #0b2b4c, #2563eb);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .2);
}

.product-shell.studio-shell .secondary-btn,
.product-shell.studio-shell .icon-text {
  border-color: var(--tippos-admin-line);
  background: #fff;
  color: #21364f;
}

.product-shell.studio-shell .text-btn,
.product-shell.studio-shell .text-link {
  color: var(--tippos-admin-blue);
  font-weight: 850;
}

.product-shell.studio-shell .field input,
.product-shell.studio-shell .field textarea,
.product-shell.studio-shell .field select,
.product-shell.studio-shell .search,
.product-shell.studio-shell .compact-field select,
.product-shell.studio-shell .chat-input-area textarea {
  border-color: var(--tippos-admin-line);
  border-radius: 8px;
  background: #fff;
}

.product-shell.studio-shell .table-wrap {
  overflow: hidden;
}

.product-shell.studio-shell .table-wrap th {
  background: #f6f9fc;
  color: #65748a;
  font-size: 11px;
  letter-spacing: .04em;
}

.product-shell.studio-shell .table-wrap td {
  border-bottom-color: var(--tippos-admin-line);
}

.product-shell.studio-shell .badge,
.product-shell.studio-shell .credit-pill,
.product-shell.studio-shell .sst-product-pill {
  border-radius: 999px;
}

.product-shell.studio-shell .home-dashboard {
  width: min(1280px, calc(100% - 36px));
  padding: 32px 0 68px;
}

.product-shell.studio-shell .home-promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(227, 234, 242, .9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, .18), transparent 26%),
    linear-gradient(135deg, #ffffff, #f4f8fb 58%, #edf6f3);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 28px 84px rgba(18, 32, 51, .09);
}

.home-premium-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--tippos-admin-blue);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-shell.studio-shell .home-promo-banner h1 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--tippos-admin-ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
}

.product-shell.studio-shell .home-promo-banner p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--tippos-admin-muted);
  font-size: 17px;
  line-height: 1.6;
}

.product-shell.studio-shell .promo-illustration {
  min-height: 260px;
  border: 1px solid rgba(227, 234, 242, .86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .48)),
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, .22), transparent 32%),
    #f8fbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.product-shell.studio-shell .promo-illustration strong {
  background: linear-gradient(135deg, #0b3b35, #2563eb);
  color: #fff;
}

.product-shell.studio-shell .home-section-title h2,
.product-shell.studio-shell .ai-workspace-heading h2 {
  color: var(--tippos-admin-ink);
}

.product-shell.studio-shell .quick-task-card {
  min-height: 150px;
  padding: 18px;
  cursor: pointer;
}

.product-shell.studio-shell .quick-task-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(5, 43, 35, .08));
  color: var(--tippos-admin-blue);
}

.product-shell.studio-shell .ai-command-center {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, .16), transparent 28%),
    linear-gradient(135deg, #081827, #0b2b4c 72%, #052b23) !important;
  color: #fff;
  box-shadow: 0 28px 78px rgba(8, 24, 39, .18);
}

.product-shell.studio-shell .ai-command-center h2,
.product-shell.studio-shell .ai-command-center .text-link,
.product-shell.studio-shell .ai-command-center strong,
.product-shell.studio-shell .ai-command-center span {
  color: #fff !important;
}

.product-shell.studio-shell .ai-action-grid button,
.product-shell.studio-shell .ai-prompt-box {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .09) !important;
  color: #fff !important;
}

.product-shell.studio-shell .ai-action-grid button .ui-icon {
  color: #79dcb8;
}

.product-shell.studio-shell .ai-action-grid button i {
  color: #fff;
}

.product-shell.studio-shell .ai-prompt-box textarea {
  color: #fff !important;
}

.product-shell.studio-shell .ai-prompt-box textarea::placeholder {
  color: rgba(255, 255, 255, .56);
}

.product-shell.studio-shell .ai-prompt-box button {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
}

.product-shell.studio-shell .home-insights-grid {
  gap: 16px;
}

.product-shell.studio-shell .metric-card {
  min-height: 148px;
}

.product-shell.studio-shell .metric-heading .ui-icon {
  color: var(--tippos-admin-blue);
}

.product-shell.studio-shell .metric-card strong {
  color: var(--tippos-admin-ink);
}

@media (max-width: 1180px) {
  .product-shell.studio-shell .home-promo-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .product-shell.studio-shell .main {
    padding: 14px;
  }

  .product-shell.studio-shell .topbar {
    position: static;
    display: grid;
  }

  .product-shell.studio-shell .home-dashboard {
    width: 100%;
    padding: 18px 0 42px;
  }

  .product-shell.studio-shell .home-promo-banner {
    padding: 22px;
  }

  .product-shell.studio-shell .home-promo-banner h1 {
    font-size: clamp(32px, 11vw, 46px);
  }
}

/* TippOS SaaS workspace refinement */
.product-shell.studio-shell {
  --tippos-admin-line: #dfe8f2;
  --tippos-admin-soft: #f6f9fc;
  --tippos-admin-card: #ffffff;
  background:
    radial-gradient(circle at 28% -12%, rgba(37, 99, 235, .12), transparent 28%),
    radial-gradient(circle at 96% 12%, rgba(5, 43, 35, .08), transparent 26%),
    linear-gradient(180deg, #f8fbfe 0, #eef4f8 100%);
}

.product-shell.studio-shell .sidebar {
  width: 276px;
  gap: 12px;
  padding: 14px 12px;
  border-right: 1px solid rgba(195, 209, 225, .35);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .16), transparent 34%),
    radial-gradient(circle at 90% 76%, rgba(6, 95, 70, .18), transparent 36%),
    linear-gradient(180deg, #102942 0, #0d2237 58%, #0b2f2a 100%);
  box-shadow: 14px 0 44px rgba(18, 32, 51, .14);
}

.product-shell.studio-shell .sidebar-header-card {
  gap: 10px;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .075);
  padding: 10px;
}

.product-shell.studio-shell .sidebar-brand {
  min-height: 42px;
}

.product-shell.studio-shell .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #dbeafe);
  color: #0b2b4c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.product-shell.studio-shell .sidebar-brand strong {
  color: #f8fbff;
  letter-spacing: 0;
}

.product-shell.studio-shell .sidebar-brand span {
  color: rgba(232, 241, 250, .68);
}

.product-shell.studio-shell .sidebar-workspace {
  min-height: 46px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.product-shell.studio-shell .nav {
  gap: 7px;
  padding: 2px 0;
}

.product-shell.studio-shell .nav-group {
  gap: 5px;
}

.product-shell.studio-shell .nav-group summary {
  min-height: 25px;
  color: rgba(232, 241, 250, .52);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 0 8px;
}

.product-shell.studio-shell .nav-group summary .ui-icon {
  width: 10px;
  height: 10px;
}

.product-shell.studio-shell .nav-item {
  min-height: 40px;
  border-radius: 12px;
  color: rgba(248, 251, 255, .72);
  font-size: 12.5px;
  font-weight: 800;
  padding: 0 9px;
}

.product-shell.studio-shell .nav-item .ui-icon {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .07);
}

.product-shell.studio-shell .nav-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
}

.product-shell.studio-shell .nav-item.active {
  transform: none;
  border-color: rgba(255, 255, 255, .22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08));
  box-shadow: inset 3px 0 0 #7dd3fc, 0 14px 28px rgba(0, 0, 0, .12);
}

.product-shell.studio-shell .nav-item.active .ui-icon {
  background: #fff;
  color: #2563eb;
}

.product-shell.studio-shell .sidebar-footer.account-card {
  gap: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  padding: 9px;
}

.product-shell.studio-shell .sidebar-user {
  min-height: 42px;
  border-radius: 12px;
  padding: 4px;
}

.product-shell.studio-shell .sidebar-user:hover {
  background: rgba(255, 255, 255, .08);
}

.product-shell.studio-shell .user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #fff, #dbeafe);
  color: #0b2b4c;
  font-size: 12px;
}

.product-shell.studio-shell .sidebar-utilities.action-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.product-shell.studio-shell .sidebar-utilities .icon-text,
.product-shell.studio-shell .sidebar-utilities .logout {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: rgba(248, 251, 255, .72);
}

.product-shell.studio-shell .sidebar-utilities .logout {
  width: 42px;
  padding: 0;
}

.product-shell.studio-shell .sidebar-utilities .logout span {
  display: none;
}

.product-shell.studio-shell .main {
  padding: 22px;
}

.product-shell.studio-shell .topbar {
  min-height: 76px;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 18px 48px rgba(18, 32, 51, .065);
}

.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card {
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(18, 32, 51, .06);
}

.product-shell.studio-shell .primary-btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #0b2b4c, #2563eb 72%, #0ea5e9);
}

.product-shell.studio-shell .secondary-btn,
.product-shell.studio-shell .icon-text {
  border-radius: 12px;
}

.product-shell.studio-shell .field input,
.product-shell.studio-shell .field textarea,
.product-shell.studio-shell .field select,
.product-shell.studio-shell .search,
.product-shell.studio-shell .compact-field select,
.product-shell.studio-shell .chat-input-area textarea {
  border-radius: 12px;
}

.product-shell.studio-shell .home-dashboard {
  width: min(1340px, 100%);
  padding: 10px 0 46px;
}

.product-shell.studio-shell .home-promo-banner {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  border-radius: 18px;
  padding: 22px 24px;
}

.product-shell.studio-shell .home-promo-banner h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.02;
}

.product-shell.studio-shell .home-promo-banner p {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: 15px;
}

.product-shell.studio-shell .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-shell.studio-shell .promo-illustration {
  min-height: 182px;
  border-radius: 18px;
}

.product-shell.studio-shell .quick-task-card {
  min-height: 128px;
  border-radius: 16px;
  padding: 16px;
}

.product-shell.studio-shell .home-section-title {
  margin: 18px 0 12px;
}

.product-shell.studio-shell .ai-command-center {
  border-radius: 18px;
  padding: 24px;
}

.product-shell.studio-shell .metric-card {
  min-height: 132px;
  padding: 18px;
}

.product-shell.studio-shell .metric-card strong {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: 0;
}

.product-shell.studio-shell .master-command {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(227, 234, 242, .92);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f5f9fc 62%, #edf7f3);
  padding: 28px;
  box-shadow: 0 24px 76px rgba(18, 32, 51, .09);
}

.product-shell.studio-shell .master-command-copy h2 {
  max-width: 780px;
  margin: 14px 0 10px;
  color: var(--tippos-admin-ink);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1;
}

.product-shell.studio-shell .master-command-copy p {
  max-width: 720px;
  color: var(--tippos-admin-muted);
  font-size: 16px;
  line-height: 1.6;
}

.product-shell.studio-shell .master-live-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(11, 43, 76, .94), rgba(8, 24, 39, .96));
  box-shadow: 0 22px 58px rgba(11, 43, 76, .2);
}

.product-shell.studio-shell .master-kpi-ribbon {
  gap: 12px;
  margin: 16px 0;
}

.product-shell.studio-shell .master-kpi-ribbon article {
  border: 1px solid rgba(227, 234, 242, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  padding: 18px;
  box-shadow: 0 16px 42px rgba(18, 32, 51, .06);
}

.product-shell.studio-shell .master-kpi-ribbon article .ui-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f2f7ff;
  color: #2563eb;
  padding: 8px;
}

.product-shell.studio-shell .master-kpi-ribbon strong {
  margin-top: 8px;
  color: var(--tippos-admin-ink);
  font-size: clamp(24px, 2.5vw, 34px);
}

.product-shell.studio-shell .master-grid-v2 {
  gap: 16px;
}

.product-shell.studio-shell .executive-chart {
  min-height: 230px;
  align-items: end;
  padding: 20px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .06), transparent),
    repeating-linear-gradient(0deg, rgba(18, 32, 51, .06), rgba(18, 32, 51, .06) 1px, transparent 1px, transparent 46px);
}

.product-shell.studio-shell .executive-chart i {
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}

.login-v2 {
  background:
    radial-gradient(circle at 20% 12%, rgba(37, 99, 235, .22), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(6, 95, 70, .18), transparent 30%),
    linear-gradient(135deg, #071827, #0b2b4c 58%, #052b23);
}

.login-v2-visual,
.login-v2-panel {
  padding-block: clamp(34px, 6vw, 72px);
}

.login-v2-copy h1 {
  max-width: 660px;
  font-size: clamp(38px, 5vw, 68px);
}

.login-product-card,
.login-v2-card {
  border-radius: 20px;
  box-shadow: 0 30px 84px rgba(0, 0, 0, .2);
}

.login-v2-card .primary-btn {
  min-height: 48px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .tippos-hero {
    gap: 22px;
    padding: 32px 16px 24px;
  }

  .tippos-hero h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.02;
  }

  .tippos-hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .tippos-hero-seals {
    gap: 9px;
  }

  .tippos-hero-seals span {
    min-height: 30px;
    border: 1px solid var(--tippos-line);
    border-radius: 999px;
    background: #fff;
    padding: 0 10px;
  }

  .tippos-product-window {
    border-radius: 14px;
    max-height: 390px;
  }

  .tippos-product-body section {
    gap: 12px;
    padding: 16px;
  }

  .tippos-product-metrics article,
  .tippos-product-grid > div {
    padding: 14px;
  }

  .tippos-product-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tippos-product-metrics article {
    min-width: 0;
    padding: 10px 8px;
  }

  .tippos-product-metrics strong {
    font-size: 20px;
  }

  .tippos-product-metrics span {
    font-size: 10px;
  }

  .tippos-product-grid {
    display: none;
  }

  .tippos-credibility {
    padding: 22px 16px 34px;
  }

  .tippos-section {
    padding: 38px 16px;
  }

  .tippos-section h2,
  .tippos-final h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .tippos-card-grid,
  .tippos-dark-grid,
  .tippos-segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tippos-dark,
  .tippos-connected {
    padding-block: 42px;
  }

  .tippos-dark-grid article,
  .tippos-card-grid article,
  .tippos-segment-grid article {
    min-height: auto;
    gap: 8px;
    padding: 14px;
  }

  .tippos-dark-grid strong,
  .tippos-card-grid strong,
  .tippos-segment-grid strong {
    font-size: 14px;
  }

  .tippos-dark-grid p,
  .tippos-card-grid p,
  .tippos-segment-grid p {
    font-size: 12px;
    line-height: 1.45;
  }

  .tippos-dark-grid svg,
  .tippos-card-grid svg,
  .tippos-segment-grid svg {
    width: 18px;
    height: 18px;
  }

  .tippos-field {
    gap: 22px;
    margin-top: 30px;
  }

  .tippos-field h3 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .tippos-field p {
    font-size: 14px;
  }

  .tippos-phone-mockup {
    width: min(210px, 100%);
    padding: 8px;
    border-radius: 24px;
  }

  .tippos-phone-shell {
    border-radius: 18px;
    padding: 12px;
  }

  .tippos-phone-shell section {
    gap: 8px;
    margin: 10px 0;
  }

  .tippos-phone-shell article,
  .tippos-phone-shell header,
  .tippos-phone-shell footer {
    padding: 10px;
  }

  .tippos-metric-band {
    gap: 0;
    padding: 30px 16px;
  }

  .tippos-plan-card {
    min-height: auto;
  }

  .tippos-plan-card.recommended {
    transform: none;
  }

  .product-shell.studio-shell .sidebar {
    width: 288px;
  }

  .product-shell.studio-shell .main {
    padding: 12px;
  }

  .product-shell.studio-shell .home-promo-banner,
  .product-shell.studio-shell .master-command {
    padding: 18px;
  }

  .product-shell.studio-shell .home-promo-banner {
    grid-template-columns: 1fr;
  }

  .product-shell.studio-shell .promo-illustration {
    min-height: 130px;
  }

  .product-shell.studio-shell .master-command-copy h2 {
    font-size: clamp(28px, 10vw, 42px);
  }
}

/* Final admin skin: sober TippOS product UI, matching the public landing */
.product-shell.studio-shell {
  --admin-bg: #f7fafc;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f5f8fb;
  --admin-line: #dfe8f2;
  --admin-line-strong: #cfdbe8;
  --admin-text: #122033;
  --admin-muted: #66758a;
  --admin-subtle: #8492a6;
  --admin-accent: #2563eb;
  --admin-accent-soft: #eef5ff;
  --admin-blue: #0b2b4c;
  --tippos-admin-ink: #122033;
  --tippos-admin-muted: #66758a;
  --tippos-admin-line: #dfe8f2;
  --tippos-admin-soft: #f5f8fb;
  --tippos-admin-card: #ffffff;
  background: #f7fafc;
}

.product-shell.studio-shell .sidebar {
  width: 268px;
  border-right: 1px solid rgba(223, 232, 242, .18);
  background: #081827;
  box-shadow: 12px 0 34px rgba(8, 24, 39, .16);
}

.product-shell.studio-shell .sidebar-header-card,
.product-shell.studio-shell .sidebar-footer.account-card,
.product-shell.studio-shell .sidebar-workspace,
.product-shell.studio-shell .sidebar-utilities .icon-text,
.product-shell.studio-shell .sidebar-utilities .logout,
.product-shell.studio-shell .nav-item,
.product-shell.studio-shell .nav-item .ui-icon,
.product-shell.studio-shell .brand-mark,
.product-shell.studio-shell .user-avatar,
.product-shell.studio-shell .topbar,
.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card,
.product-shell.studio-shell .master-command,
.product-shell.studio-shell .master-kpi-ribbon article,
.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .promo-illustration,
.product-shell.studio-shell .primary-btn,
.product-shell.studio-shell .secondary-btn,
.product-shell.studio-shell .icon-btn,
.product-shell.studio-shell .icon-text,
.product-shell.studio-shell .field input,
.product-shell.studio-shell .field textarea,
.product-shell.studio-shell .field select,
.product-shell.studio-shell .search,
.product-shell.studio-shell .compact-field select,
.product-shell.studio-shell .chat-input-area textarea,
.product-shell.studio-shell .metric-heading .ui-icon,
.product-shell.studio-shell .admin-hub-card > .ui-icon,
.product-shell.studio-shell .admin-card-icon,
.product-shell.studio-shell .quick-task-icon,
.product-shell.studio-shell .resource-icon,
.product-shell.studio-shell .setting-icon,
.product-shell.studio-shell .ai-command-center,
.product-shell.studio-shell .ai-action-grid button,
.product-shell.studio-shell .ai-prompt-box,
.product-shell.studio-shell .master-live-card,
.product-shell.studio-shell .status,
.product-shell.studio-shell .badge,
.product-shell.studio-shell .credit-pill,
.product-shell.studio-shell .integration-status,
.product-shell.studio-shell .sst-product-pill {
  border-radius: 8px;
}

.product-shell.studio-shell .topbar,
.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card,
.product-shell.studio-shell .master-command,
.product-shell.studio-shell .master-kpi-ribbon article,
.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .promo-illustration {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(18, 32, 51, .055);
}

.product-shell.studio-shell .panel:hover,
.product-shell.studio-shell .metric-card:hover,
.product-shell.studio-shell .quick-task-card:hover,
.product-shell.studio-shell .admin-hub-card:hover,
.product-shell.studio-shell .product-card:hover,
.product-shell.studio-shell .client-card:hover {
  transform: none;
  border-color: #cfdbe8;
  box-shadow: 0 12px 34px rgba(18, 32, 51, .065);
}

.product-shell.studio-shell .main {
  background: #f7fafc;
}

.product-shell.studio-shell .topbar {
  min-height: 70px;
  backdrop-filter: none;
}

.product-shell.studio-shell .topbar h1,
.product-shell.studio-shell .page-heading h1 {
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: 0;
}

.product-shell.studio-shell .nav-item:hover,
.product-shell.studio-shell .nav-item.active {
  transform: none;
  background: rgba(255, 255, 255, .09);
}

.product-shell.studio-shell .nav-item.active {
  border-color: rgba(215, 169, 40, .42);
  box-shadow: inset 3px 0 0 #d7a928;
}

.product-shell.studio-shell .nav-item.active .ui-icon {
  background: transparent;
  color: #d7a928;
}

.product-shell.studio-shell .primary-btn {
  border: 1px solid #0b2b4c;
  background: #0b2b4c;
  box-shadow: 0 10px 22px rgba(11, 43, 76, .14);
}

.product-shell.studio-shell .metric-heading .ui-icon,
.product-shell.studio-shell .admin-hub-card > .ui-icon,
.product-shell.studio-shell .admin-card-icon,
.product-shell.studio-shell .quick-task-icon,
.product-shell.studio-shell .resource-icon,
.product-shell.studio-shell .setting-icon {
  background: #eef5ff;
  color: #2563eb;
}

.product-shell.studio-shell .ai-command-center,
.product-shell.studio-shell .master-live-card {
  background: #081827 !important;
  box-shadow: 0 14px 36px rgba(8, 24, 39, .14);
}

/* Clean admin rebuild */
.product-shell.studio-shell {
  --admin-bg: #f6f8fb;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f4f7fa;
  --admin-line: #e0e7ef;
  --admin-line-strong: #cbd6e2;
  --admin-text: #111827;
  --admin-muted: #5f6b7a;
  --admin-subtle: #8793a3;
  --admin-accent: #1f5eff;
  --admin-accent-soft: #edf4ff;
  --admin-blue: #0b2b4c;
  --tippos-admin-ink: #111827;
  --tippos-admin-muted: #5f6b7a;
  --tippos-admin-line: #e0e7ef;
  --tippos-admin-soft: #f4f7fa;
  --tippos-admin-card: #ffffff;
  grid-template-columns: 252px minmax(0, 1fr);
  background: #f6f8fb;
}

.product-shell.studio-shell .sidebar {
  width: 252px;
  gap: 8px;
  padding: 14px 12px;
  border-right: 1px solid #e0e7ef;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.product-shell.studio-shell .sidebar-topbar,
.product-shell.studio-shell .sidebar-header-card,
.product-shell.studio-shell .sidebar-footer.account-card,
.product-shell.studio-shell .sidebar-utilities.action-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.product-shell.studio-shell .sidebar-brand strong,
.product-shell.studio-shell .sidebar-brand span,
.product-shell.studio-shell .nav-group > span,
.product-shell.studio-shell .nav-group summary span,
.product-shell.studio-shell .user-copy strong,
.product-shell.studio-shell .user-copy small {
  color: inherit;
}

.product-shell.studio-shell .sidebar-brand span,
.product-shell.studio-shell .user-copy small,
.product-shell.studio-shell .nav-group-label,
.product-shell.studio-shell .nav-group summary {
  color: #8793a3;
}

.product-shell.studio-shell .brand-mark,
.product-shell.studio-shell .user-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0b2b4c;
  box-shadow: none;
}

.product-shell.studio-shell .sidebar-collapse-btn,
.product-shell.studio-shell .sidebar-workspace,
.product-shell.studio-shell .sidebar-utilities .icon-text,
.product-shell.studio-shell .sidebar-utilities .logout {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
  color: #5f6b7a;
  box-shadow: none;
}

.product-shell.studio-shell .sidebar-workspace {
  min-height: 46px;
  margin: 6px 0 10px;
}

.product-shell.studio-shell .sidebar-workspace > span,
.product-shell.studio-shell .sidebar-workspace span {
  background: #f4f7fa;
  color: #0b2b4c;
}

.product-shell.studio-shell .sidebar-workspace small,
.product-shell.studio-shell .sidebar-workspace strong {
  color: #111827;
}

.product-shell.studio-shell .nav {
  padding: 0;
  gap: 14px;
}

.product-shell.studio-shell .nav-group {
  gap: 3px;
  margin-bottom: 12px;
}

.product-shell.studio-shell .nav-group-label,
.product-shell.studio-shell .nav-group summary {
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.product-shell.studio-shell .nav-item {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 650;
  padding: 0 8px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.product-shell.studio-shell .nav-item .ui-icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8793a3;
}

.product-shell.studio-shell .nav-item:hover {
  transform: none;
  border-color: #e0e7ef;
  background: #f6f8fb;
  color: #111827;
}

.product-shell.studio-shell .nav-item.active {
  transform: none;
  border-color: #cfe0ff;
  background: #edf4ff;
  color: #0b2b4c;
  box-shadow: inset 3px 0 0 #1f5eff;
}

.product-shell.studio-shell .nav-item:hover .ui-icon,
.product-shell.studio-shell .nav-item.active .ui-icon {
  background: transparent;
  color: #1f5eff;
}

.product-shell.studio-shell .sidebar-user {
  color: #111827;
}

.product-shell.studio-shell .sidebar-user:hover,
.product-shell.studio-shell .sidebar-utilities .icon-text:hover,
.product-shell.studio-shell .sidebar-utilities .logout:hover {
  background: #f6f8fb;
}

.product-shell.studio-shell .main {
  padding: 18px 22px 44px;
  background: #f6f8fb;
}

.product-shell.studio-shell .workspace-page,
.product-shell.studio-shell .main > :not(.chat-page),
.product-shell.studio-shell .home-dashboard {
  width: min(1360px, 100%);
  margin-inline: auto;
}

.product-shell.studio-shell .topbar {
  position: static;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: none;
  backdrop-filter: none;
}

.product-shell.studio-shell .page-breadcrumb,
.product-shell.studio-shell .topbar .eyebrow,
.product-shell.studio-shell .panel .eyebrow {
  color: #1f5eff;
  font-size: 10px;
  letter-spacing: .06em;
}

.product-shell.studio-shell .topbar h1,
.product-shell.studio-shell .page-heading h1 {
  margin: 2px 0 3px;
  color: #111827;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
}

.product-shell.studio-shell .topbar p,
.product-shell.studio-shell .page-heading p {
  color: #5f6b7a;
  font-size: 13px;
}

.product-shell.studio-shell .panel,
.product-shell.studio-shell .metric-card,
.product-shell.studio-shell .admin-hub-card,
.product-shell.studio-shell .product-card,
.product-shell.studio-shell .client-card,
.product-shell.studio-shell .quick-task-card,
.product-shell.studio-shell .billing-card,
.product-shell.studio-shell .calendar-panel,
.product-shell.studio-shell .calendar-day,
.product-shell.studio-shell .calendar-detail,
.product-shell.studio-shell .utility-card,
.product-shell.studio-shell .table-wrap,
.product-shell.studio-shell .dialog-card,
.product-shell.studio-shell .master-command,
.product-shell.studio-shell .master-kpi-ribbon article,
.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .promo-illustration,
.product-shell.studio-shell .legal-resource-card,
.product-shell.studio-shell .jurisprudence-card,
.product-shell.studio-shell .publication-oab-panel,
.product-shell.studio-shell .publication-log-panel,
.product-shell.studio-shell .publication-filter-panel,
.product-shell.studio-shell .publication-list-panel,
.product-shell.studio-shell .publication-detail {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.product-shell.studio-shell .panel:hover,
.product-shell.studio-shell .metric-card:hover,
.product-shell.studio-shell .quick-task-card:hover,
.product-shell.studio-shell .admin-hub-card:hover,
.product-shell.studio-shell .product-card:hover,
.product-shell.studio-shell .client-card:hover {
  transform: none;
  border-color: #cbd6e2;
  box-shadow: none;
}

.product-shell.studio-shell .home-promo-banner,
.product-shell.studio-shell .master-command {
  display: block;
  padding: 20px;
}

.product-shell.studio-shell .promo-illustration,
.product-shell.studio-shell .master-live-card {
  display: none;
}

.product-shell.studio-shell .home-premium-pill,
.product-shell.studio-shell .tippos-pill,
.product-shell.studio-shell .signal-pill,
.product-shell.studio-shell .credit-pill,
.product-shell.studio-shell .integration-status,
.product-shell.studio-shell .sst-product-pill {
  min-height: 26px;
  border: 1px solid #e0e7ef;
  border-radius: 999px;
  background: #f6f8fb;
  color: #4b5563;
  box-shadow: none;
}

.product-shell.studio-shell .home-promo-banner h1,
.product-shell.studio-shell .master-command-copy h2 {
  max-width: 780px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.product-shell.studio-shell .home-promo-banner p,
.product-shell.studio-shell .master-command-copy p {
  max-width: 760px;
  color: #5f6b7a;
  font-size: 14px;
}

.product-shell.studio-shell .primary-btn {
  border: 1px solid #0b2b4c;
  border-radius: 8px;
  background: #0b2b4c;
  color: #ffffff;
  box-shadow: none;
}

.product-shell.studio-shell .primary-btn:hover {
  border-color: #12395f;
  background: #12395f;
}

.product-shell.studio-shell .secondary-btn,
.product-shell.studio-shell .icon-btn,
.product-shell.studio-shell .icon-text {
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  box-shadow: none;
}

.product-shell.studio-shell .field input,
.product-shell.studio-shell .field textarea,
.product-shell.studio-shell .field select,
.product-shell.studio-shell .search,
.product-shell.studio-shell .compact-field select,
.product-shell.studio-shell .chat-input-area textarea {
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.product-shell.studio-shell .field input:focus,
.product-shell.studio-shell .field textarea:focus,
.product-shell.studio-shell .field select:focus,
.product-shell.studio-shell .search:focus {
  border-color: #1f5eff;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, .1);
}

.product-shell.studio-shell .metric-card {
  min-height: 112px;
  padding: 16px;
}

.product-shell.studio-shell .metric-card > strong,
.product-shell.studio-shell .metric-card strong {
  color: #111827;
  font-size: clamp(24px, 2.3vw, 32px);
  letter-spacing: 0;
}

.product-shell.studio-shell .metric-heading .ui-icon,
.product-shell.studio-shell .admin-hub-card > .ui-icon,
.product-shell.studio-shell .admin-card-icon,
.product-shell.studio-shell .quick-task-icon,
.product-shell.studio-shell .resource-icon,
.product-shell.studio-shell .setting-icon {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #f6f8fb;
  color: #1f5eff;
  box-shadow: none;
}

.product-shell.studio-shell .chart-bars strong,
.product-shell.studio-shell .executive-chart i {
  background: #1f5eff;
  box-shadow: none;
}

.product-shell.studio-shell .table-wrap {
  overflow: auto;
}

.product-shell.studio-shell table th {
  background: #f6f8fb;
  color: #6b7280;
}

.product-shell.studio-shell table td {
  color: #4b5563;
}

.product-shell.studio-shell .status,
.product-shell.studio-shell .badge {
  border-radius: 6px;
}

.product-shell.studio-shell .ai-command-center {
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #ffffff !important;
  color: #111827;
  box-shadow: none;
}

.product-shell.studio-shell .ai-command-center h2,
.product-shell.studio-shell .ai-command-center .text-link,
.product-shell.studio-shell .ai-command-center strong,
.product-shell.studio-shell .ai-command-center span {
  color: #111827 !important;
}

.product-shell.studio-shell .ai-action-grid button,
.product-shell.studio-shell .ai-prompt-box {
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #f6f8fb !important;
  color: #111827 !important;
}

.product-shell.studio-shell .ai-prompt-box textarea,
.product-shell.studio-shell .ai-prompt-box textarea::placeholder {
  color: #5f6b7a !important;
}

.product-shell.studio-shell .ai-prompt-box button {
  background: #0b2b4c;
  box-shadow: none;
}

@media (max-width: 760px) {
  .product-shell.studio-shell {
    grid-template-columns: 1fr;
  }

  .product-shell.studio-shell .sidebar {
    width: 288px;
  }

  .product-shell.studio-shell .main {
    padding: 12px;
  }

  .product-shell.studio-shell .topbar {
    display: grid;
  }
}

/* ForPoint brand refresh */
:root {
  --bg: #f5f8ff;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --border: #dce6f5;
  --text: #071225;
  --text-secondary: #42526a;
  --text-muted: #7b8798;
  --primary: #246bff;
  --primary-hover: #1556d9;
  --orange-light: #18b8ff;
  --orange-dark: #6f38f6;
  --shadow: rgba(8, 18, 39, .08);
  --sidebar: #ffffff;
  --input: #ffffff;
  --soft: #edf4ff;
  --radius: 10px;
}

[data-theme="dark"] {
  --bg: #020817;
  --bg-secondary: #071225;
  --card: #0b1528;
  --border: #1a2a46;
  --text: #f7fbff;
  --text-secondary: #c4d2e7;
  --text-muted: #8798b4;
  --primary: #28a8ff;
  --primary-hover: #4f7cff;
  --orange-light: #18b8ff;
  --orange-dark: #7a46ff;
  --shadow: rgba(0, 0, 0, .28);
  --sidebar: #071225;
  --input: #081427;
  --soft: #101d33;
}

.brand-logo-mark {
  overflow: hidden;
  border: 1px solid rgba(36, 107, 255, .14);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 107, 255, .12);
}

.brand-logo-mark img {
  width: 82%;
  height: 82%;
  margin: auto;
  display: block;
  object-fit: contain;
}

.boot-screen {
  background:
    radial-gradient(circle at 50% 10%, rgba(24, 184, 255, .18), transparent 32%),
    radial-gradient(circle at 72% 38%, rgba(111, 56, 246, .16), transparent 30%),
    #020817;
}

.boot-card {
  color: #ffffff;
}

.boot-card .brand-logo-mark {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 255, 255, .12);
  background: #ffffff;
}

.boot-card p {
  color: #6bd2ff;
}

.boot-card h1 {
  color: rgba(255, 255, 255, .76);
}

.primary-btn,
.public-page .primary-btn,
.auth-page .primary-btn,
.register-page .primary-btn,
.product-shell.studio-shell .primary-btn {
  border: 1px solid #246bff;
  background: linear-gradient(135deg, #18b8ff 0%, #246bff 52%, #6f38f6 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(36, 107, 255, .22);
}

.primary-btn:hover,
.product-shell.studio-shell .primary-btn:hover {
  background: linear-gradient(135deg, #22c1ff 0%, #1d5fff 50%, #7a46ff 100%);
  box-shadow: 0 16px 34px rgba(36, 107, 255, .28);
}

.secondary-btn {
  border-color: #cddbf0;
  background: #ffffff;
  color: #12233f;
}

.public-nav,
.tippos-nav {
  border-color: rgba(36, 107, 255, .12);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 46px rgba(8, 18, 39, .08);
}

.tippos-landing {
  --tippos-green: #020817;
  --tippos-green-2: #071225;
  --tippos-blue: #246bff;
  --tippos-gold: #18b8ff;
  --tippos-ink: #071225;
  --tippos-muted: #60708a;
  --tippos-soft: #f3f7ff;
  --tippos-line: #dce6f5;
}

.tippos-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 184, 255, .16), transparent 32%),
    radial-gradient(circle at 85% 22%, rgba(111, 56, 246, .12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 68%, #edf4ff 100%);
}

.forpoint-hero-wordmark {
  width: min(520px, 90vw);
  height: auto;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 18px 34px rgba(36, 107, 255, .12));
}

.tippos-pill,
.tippos-kicker,
.home-premium-pill {
  border-color: rgba(36, 107, 255, .16);
  background: #eef7ff;
  color: #246bff;
}

.tippos-hero .primary-btn,
.tippos-hero .hero-primary,
.tippos-nav .primary-btn {
  background: linear-gradient(135deg, #18b8ff, #246bff 52%, #6f38f6);
  box-shadow: 0 18px 36px rgba(36, 107, 255, .22);
}

.tippos-dark,
.tippos-connected,
.product-shell.studio-shell .ai-command-center,
.product-shell.studio-shell .master-live-card {
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 184, 255, .18), transparent 36%),
    radial-gradient(circle at 92% 24%, rgba(111, 56, 246, .18), transparent 34%),
    linear-gradient(135deg, #020817, #071225 52%, #0a1630) !important;
}

.product-shell.studio-shell {
  --admin-bg: #f4f7ff;
  --admin-surface: #ffffff;
  --admin-surface-muted: #eef4ff;
  --admin-line: #dce6f5;
  --admin-line-strong: #bfd0ea;
  --admin-text: #071225;
  --admin-muted: #60708a;
  --admin-subtle: #8798b4;
  --admin-accent: #246bff;
  --admin-accent-soft: #edf5ff;
  --admin-blue: #071225;
  --tippos-admin-ink: #071225;
  --tippos-admin-muted: #60708a;
  --tippos-admin-line: #dce6f5;
  --tippos-admin-soft: #f4f7ff;
  background:
    radial-gradient(circle at 32% -10%, rgba(24, 184, 255, .13), transparent 28%),
    linear-gradient(180deg, #f7faff, #edf3ff);
}

.product-shell.studio-shell .sidebar {
  border-right-color: rgba(220, 230, 245, .9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.clean-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clean-wordmark .brand-logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.clean-wordmark-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.clean-wordmark-copy strong {
  color: #071225;
  font-size: 15px;
  line-height: 1.1;
}

.clean-wordmark-copy small {
  color: #7b8798;
  font-size: 11px;
  font-weight: 700;
}

.product-shell.studio-shell .nav-item.active {
  border-color: rgba(36, 107, 255, .3);
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #246bff;
}

.product-shell.studio-shell .nav-item.active .ui-icon,
.product-shell.studio-shell .metric-heading .ui-icon,
.product-shell.studio-shell .admin-hub-card > .ui-icon,
.product-shell.studio-shell .admin-card-icon,
.product-shell.studio-shell .quick-task-icon,
.product-shell.studio-shell .resource-icon,
.product-shell.studio-shell .setting-icon {
  background: #edf5ff;
  color: #246bff;
}

/* ForPoint Design System 1.0 */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-secondary: #fafafb;
  --card: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-secondary: #71717a;
  --text-muted: #a1a1aa;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-blue: #0ea5e9;
  --accent-purple: #8b5cf6;
  --gradient-brand: linear-gradient(135deg, #00aeef 0%, #6366f1 52%, #8b5cf6 100%);
  --shadow: rgba(9, 9, 11, .06);
  --sidebar: #ffffff;
  --input: #f4f4f5;
  --soft: #f4f4f5;
  --radius: 10px;
  --container: 1200px;
  --motion: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-secondary: #0f0f12;
  --card: #141416;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --primary: #818cf8;
  --primary-hover: #a78bfa;
  --shadow: rgba(0, 0, 0, .22);
  --sidebar: #0f0f12;
  --input: #18181b;
  --soft: #18181b;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: Geist, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-logo-mark {
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.brand-button {
  color: inherit;
}

.primary-btn,
.public-page .primary-btn,
.auth-page .primary-btn,
.register-page .primary-btn,
.login-v2 .primary-btn,
.app-shell .primary-btn {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: none;
  transition: transform 120ms ease-out, filter 120ms ease-out;
}

.primary-btn:hover,
.login-v2 .primary-btn:hover,
.app-shell .primary-btn:hover {
  background: var(--gradient-brand);
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: none;
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active {
  transform: scale(.98);
}

.secondary-btn,
.login-v2 .secondary-btn,
.app-shell .secondary-btn {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}

.field span {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.search,
.app-shell input,
.app-shell select,
.app-shell textarea {
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  box-shadow: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: rgba(99, 102, 241, .45);
  outline: 3px solid rgba(99, 102, 241, .18);
}

.toast {
  border-color: var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(9, 9, 11, .08);
}

.login-v2 {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 50vw);
  background: var(--bg-secondary);
  color: var(--text);
}

.login-v2-visual {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 86%, rgba(0, 174, 239, .28), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(139, 92, 246, .22), transparent 32%),
    #09090b;
  color: #fafafa;
}

.login-v2-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -28% 10%;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 62%);
  pointer-events: none;
}

.login-v2-visual .auth-brand {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: #fff;
}

.login-v2-visual .auth-brand span,
.login-v2-visual .auth-brand strong {
  color: #fff;
}

.login-v2-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.login-v2-copy h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-family: "Plus Jakarta Sans", Geist, sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.login-v2-copy p {
  max-width: 500px;
  margin: 0;
  color: rgba(250, 250, 250, .68);
  font-size: 16px;
  line-height: 1.65;
}

.signal-pill,
.home-premium-pill,
.tippos-pill,
.tippos-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 999px;
  background: rgba(99, 102, 241, .08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.login-product-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.console-top {
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
}

.login-product-grid {
  padding: 20px;
  gap: 12px;
}

.login-product-grid article {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.login-v2-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg-secondary);
}

.login-v2-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: none;
}

.login-card-heading h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.login-card-heading span,
.login-security-note {
  color: var(--text-secondary);
}

.login-security-note {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.tippos-landing {
  --tippos-ink: #09090b;
  --tippos-muted: #71717a;
  --tippos-soft: #fafafb;
  --tippos-line: #e4e4e7;
  background: #fff;
  color: #09090b;
  font-family: Geist, Inter, sans-serif;
}

.tippos-nav {
  width: min(1440px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  border: 0;
  border-bottom: 1px solid rgba(228, 228, 231, .8);
  border-radius: 0;
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.tippos-nav nav button {
  color: #71717a;
  font-size: 14px;
  font-weight: 600;
}

.tippos-nav nav button:hover {
  color: #09090b;
}

.tippos-hero {
  width: min(1440px, calc(100% - 96px));
  min-height: min(100vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr);
  align-items: center;
  gap: 64px;
  margin: 0 auto;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 92% 8%, rgba(99, 102, 241, .08), transparent 28%),
    #fff;
}

.tippos-hero-copy h1 {
  max-width: 760px;
  margin: 16px 0;
  color: #09090b;
  font-family: "Plus Jakarta Sans", Geist, sans-serif;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.tippos-hero-copy p {
  max-width: 560px;
  color: #71717a;
  font-size: 18px;
  line-height: 1.65;
}

.forpoint-hero-wordmark {
  width: min(360px, 76vw);
  filter: none;
}

.tippos-hero-seals,
.landing-strip,
.tippos-credibility {
  color: #71717a;
}

.tippos-main-mockup,
.tippos-product-shell,
.presentation-hero-screen {
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(9, 9, 11, .08);
}

.tippos-product-shell {
  overflow: hidden;
}

.tippos-product-top,
.presentation-window-bar {
  border-bottom-color: #e4e4e7;
  background: #fafafb;
}

.tippos-product-metrics article,
.tippos-product-panel,
.tippos-card-grid article,
.tippos-segment-grid article,
.tippos-plan-card,
.tippos-faq-list article {
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.tippos-card-grid article:hover,
.tippos-segment-grid article:hover,
.tippos-plan-card:hover {
  border-color: rgba(99, 102, 241, .36);
}

.tippos-section {
  width: min(1200px, calc(100% - 96px));
  padding: 96px 0;
}

.tippos-heading h2,
.tippos-human-copy h2,
.tippos-time-copy h2,
.tippos-pricing h2,
.tippos-faq h2 {
  color: #09090b;
  font-family: "Plus Jakarta Sans", Geist, sans-serif;
  letter-spacing: -.02em;
}

.tippos-dark,
.tippos-connected {
  width: 100%;
  max-width: none;
  padding: 96px max(48px, calc((100vw - 1200px) / 2));
  background: #09090b !important;
  color: #fafafa;
}

.tippos-dark .tippos-heading h2,
.tippos-dark h3 {
  color: #fafafa;
}

.tippos-dark .tippos-heading p,
.tippos-dark p {
  color: #a1a1aa;
}

.tippos-dark-grid article,
.tippos-field,
.tippos-chat-panel {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}

.tippos-metric-band {
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fafafb;
  box-shadow: none;
}

.tippos-plan-card.recommended {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand) border-box;
}

.tippos-plan-card .badge,
.badge {
  border-radius: 999px;
  background: #f4f4f5;
  color: #6366f1;
}

.app-shell,
.app-shell.home-shell {
  --admin-bg: #fafafb;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f4f4f5;
  --admin-line: #e4e4e7;
  --admin-line-strong: #d4d4d8;
  --admin-text: #09090b;
  --admin-muted: #71717a;
  --admin-subtle: #a1a1aa;
  --admin-accent: #6366f1;
  --admin-accent-soft: #f4f4f5;
  --admin-shadow: none;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--admin-bg);
}

[data-theme="dark"] .app-shell {
  --admin-bg: #09090b;
  --admin-surface: #0f0f12;
  --admin-surface-muted: #18181b;
  --admin-line: #27272a;
  --admin-line-strong: #3f3f46;
  --admin-text: #fafafa;
  --admin-muted: #a1a1aa;
  --admin-subtle: #71717a;
  --admin-accent-soft: #18181b;
}

.app-shell .sidebar {
  width: 240px;
  padding: 18px 12px 14px;
  border-right: 1px solid var(--admin-line);
  background: var(--admin-surface);
}

.clean-wordmark {
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}

.clean-wordmark-copy strong,
.app-shell .sidebar-brand strong {
  color: var(--admin-text);
  font-size: 15px;
}

.clean-wordmark-copy small {
  color: var(--admin-subtle);
  font-size: 11px;
}

.clean-context,
.sidebar-workspace {
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-surface-muted);
  box-shadow: none;
}

.nav-group-label,
.nav-group > span {
  color: var(--admin-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-shell .nav-item,
[data-theme="dark"] .app-shell .nav-item {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}

.app-shell .nav-item:hover,
[data-theme="dark"] .app-shell .nav-item:hover {
  background: var(--admin-surface-muted);
  color: var(--admin-text);
}

.app-shell .nav-item.active,
[data-theme="dark"] .app-shell .nav-item.active {
  position: relative;
  border: 0;
  background: var(--admin-surface-muted);
  color: var(--admin-text);
  box-shadow: none;
}

.app-shell .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: var(--gradient-brand);
}

.app-shell .nav-item.active .ui-icon {
  color: #6366f1;
}

.app-shell .main {
  padding: 0 clamp(24px, 3vw, 48px) 56px;
  background: var(--admin-bg);
}

.app-shell .workspace-page {
  width: min(1200px, 100%);
  padding-top: 32px;
}

.home-promo-banner {
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--admin-surface);
  box-shadow: none;
}

.home-promo-banner h1 {
  max-width: 760px;
  color: var(--admin-text);
  font-family: "Plus Jakarta Sans", Geist, sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

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

.metric-card,
.quick-task-card,
.ai-command-center,
.panel,
.action-card,
.table-wrap {
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--admin-surface);
  box-shadow: none;
}

.metric-card > strong {
  color: var(--admin-text);
  font-size: 28px;
}

.floating-chat-button {
  background: var(--gradient-brand);
  box-shadow: 0 12px 40px rgba(99, 102, 241, .22);
}

@media (max-width: 1023px) {
  .login-v2,
  .tippos-hero {
    grid-template-columns: 1fr;
  }

  .tippos-hero {
    width: min(100% - 40px, 760px);
    min-height: auto;
    padding: 48px 0 72px;
  }

  .tippos-section {
    width: min(100% - 40px, 760px);
    padding: 72px 0;
  }

  .tippos-dark,
  .tippos-connected {
    padding-inline: 20px;
  }

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

@media (max-width: 760px) {
  .login-v2 {
    display: block;
  }

  .login-v2-visual {
    min-height: 180px;
    padding: 22px 20px;
  }

  .login-v2-copy h1,
  .login-v2-copy p,
  .login-product-card {
    display: none;
  }

  .login-v2-panel {
    min-height: calc(100dvh - 180px);
    padding: 20px;
  }

  .login-v2-card {
    padding: 22px;
  }

  .tippos-nav {
    width: 100%;
    padding-inline: 20px;
  }

  .tippos-nav nav {
    display: none;
  }

  .tippos-nav > div {
    gap: 8px;
  }

  .tippos-nav .secondary-btn {
    display: none;
  }

  .tippos-hero-copy h1 {
    font-size: 42px;
  }

  .home-insights-grid,
  .tippos-card-grid,
  .tippos-segment-grid,
  .tippos-plan-grid,
  .tippos-dark-grid {
    grid-template-columns: 1fr;
  }

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

  .app-shell .main {
    padding: 0 20px 40px;
  }
}

/* Landing visibility guard: screenshots, slow JS, or blocked IntersectionObserver must not hide content. */
.tippos-landing .tippos-reveal,
.tippos-landing .reveal-on-scroll,
.tippos-reveal,
.reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

.tippos-landing .tippos-reveal.is-visible,
.tippos-landing .reveal-on-scroll.is-visible {
  transition: opacity 200ms ease-out, transform 200ms cubic-bezier(.16, 1, .3, 1);
}

.tippos-landing .tippos-hero {
  min-height: 0;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.tippos-landing .tippos-dark,
.tippos-landing .tippos-connected {
  min-height: 0;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.tippos-landing .tippos-section {
  min-height: 0;
}

@media (max-width: 1023px) {
  .tippos-landing .tippos-hero {
    min-height: auto;
  }
}

/* Emergency public landing compact mode: no blank bands, no animation dependency. */
.tippos-landing .tippos-nav {
  position: sticky;
  top: 0;
}

.tippos-landing .tippos-hero {
  width: min(1180px, calc(100% - 40px)) !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
  align-items: center !important;
  gap: clamp(24px, 4vw, 48px) !important;
  padding: clamp(28px, 5vw, 56px) 0 !important;
}

.tippos-landing .tippos-hero-copy {
  align-content: center !important;
  min-height: 0 !important;
}

.tippos-landing .tippos-hero-copy h1 {
  font-size: clamp(40px, 6vw, 64px) !important;
  line-height: 1.02 !important;
}

.tippos-landing .tippos-main-mockup,
.tippos-landing .tippos-product-shell {
  max-height: 460px !important;
  overflow: hidden !important;
}

.tippos-landing .tippos-credibility {
  min-height: 0 !important;
  padding: 22px 0 !important;
}

.tippos-landing .tippos-section,
.tippos-landing .tippos-dark,
.tippos-landing .tippos-connected {
  width: min(1180px, calc(100% - 40px)) !important;
  min-height: 0 !important;
  height: auto !important;
  margin-inline: auto !important;
  padding: clamp(40px, 6vw, 72px) 0 !important;
}

.tippos-landing .tippos-dark,
.tippos-landing .tippos-connected {
  width: 100% !important;
  padding-inline: max(20px, calc((100vw - 1180px) / 2)) !important;
}

.tippos-landing .tippos-card-grid article,
.tippos-landing .tippos-dark-grid article {
  min-height: 0 !important;
}

.tippos-landing .tippos-field {
  display: none !important;
}

@media (max-width: 760px) {
  .tippos-landing .tippos-hero {
    display: block !important;
    width: min(100% - 32px, 560px) !important;
  }

  .tippos-landing .tippos-main-mockup {
    display: none !important;
  }

  .tippos-landing .tippos-hero-copy h1 {
    font-size: 38px !important;
  }
}
