:root {
  color-scheme: light;
  --ink: #10202b;
  --ink-2: #183543;
  --panel: #ffffff;
  --paper: #f4f7f7;
  --line: #dce6e6;
  --muted: #64737c;
  --brand: #0f8f84;
  --brand-dark: #0a6f68;
  --coral: #e9785f;
  --gold: #c79b4b;
  --green: #4b9b69;
  --blue: #477cae;
  --danger: #c85555;
  --shadow: 0 18px 55px rgba(16, 32, 43, 0.14);
  --radius: 8px;
  --sidebar-width: 286px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(125deg, rgba(15, 143, 132, 0.09), transparent 34%),
    linear-gradient(225deg, rgba(233, 120, 95, 0.1), transparent 42%),
    var(--paper);
  color: var(--ink);
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  overflow-x: hidden;
}

.workspace,
.page-stack,
.page,
.panel,
.client-layout,
.dashboard-layout,
.worker-workspace-body,
.worker-workspace-clients {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  color: #f8fbfb;
  background:
    linear-gradient(160deg, rgba(15, 143, 132, 0.22), transparent 32%),
    linear-gradient(340deg, rgba(199, 155, 75, 0.16), transparent 42%),
    var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-lockup small {
  display: block;
  margin-top: 2px;
  color: rgba(248, 251, 251, 0.64);
  font-size: 0.78rem;
}

.brand-mark,
.logo-preview,
.document-logo,
.avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), var(--coral));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.brand-mark img,
.logo-preview img,
.document-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.main-nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-link {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(248, 251, 251, 0.78);
  background: transparent;
  text-align: left;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-icon {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #dff7f4;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer p {
  margin: 0;
  color: rgba(248, 251, 251, 0.74);
  font-size: 0.78rem;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 3vw, 34px);
  background: rgba(244, 247, 247, 0.86);
  border-bottom: 1px solid rgba(220, 230, 230, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-title p,
.section-kicker {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1,
.section-heading h2,
.dialog-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

label,
.company-switcher,
.search-field {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.82rem;
}

label span,
.company-switcher span,
.search-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 65%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

.company-switcher {
  min-width: min(270px, 36vw);
}

.company-workspace-label strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px 12px;
  color: var(--ink);
  cursor: default;
}

.icon-button,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: color-mix(in srgb, var(--brand) 76%, black);
  box-shadow: 0 16px 28px rgba(15, 143, 132, 0.2);
}

.secondary-button {
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.ghost-button {
  width: 100%;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.secondary-button .button-icon {
  background: rgba(15, 143, 132, 0.1);
  color: var(--brand-dark);
}

.icon-button.has-badge span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.page-stack {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.lock-screen {
  margin: clamp(16px, 3vw, 34px);
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid color-mix(in srgb, var(--coral) 42%, white);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(233, 120, 95, 0.16), rgba(15, 143, 132, 0.1)),
    #fff;
  box-shadow: var(--shadow);
}

.lock-screen[hidden] {
  display: none;
}

.lock-screen h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lock-screen p:not(.section-kicker) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
}

.page {
  display: none;
  min-height: calc(100vh - 116px);
}

.page.is-active {
  display: block;
}

.section-heading,
.panel-heading,
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel {
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(16, 32, 43, 0.06);
}

.landing-hero {
  min-height: min(700px, calc(100vh - 138px));
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(16, 32, 43, 0.96), rgba(16, 32, 43, 0.78) 48%, rgba(16, 32, 43, 0.18)),
    #10202b;
  box-shadow: var(--shadow);
}

.landing-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 72px);
  color: #fff;
}

.landing-copy .section-kicker {
  color: #7ee5dc;
}

.landing-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.landing-copy p:not(.section-kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.landing-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.hero-actions,
.segmented-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.module-grid {
  margin-top: 16px;
}

.module-tile,
.stat-card,
.worker-card,
.plan-card,
.notification-item,
.priority-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 32, 43, 0.06);
}

.module-tile {
  min-height: 166px;
  padding: 18px;
}

.module-tile span,
.plan-card span,
.worker-card .role,
.stat-card span {
  display: block;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.module-tile p,
.plan-card p,
.priority-item p,
.notification-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.stat-grid {
  margin-bottom: 18px;
}

.stat-card {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
}

.stat-card strong {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
  font-weight: 750;
}

.dashboard-layout,
.client-layout,
.document-layout,
.settings-layout,
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
}

.pipeline-bars {
  display: grid;
  gap: 14px;
}

.pipeline-row {
  display: grid;
  gap: 8px;
}

.pipeline-row header {
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-weight: 900;
}

.meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f2;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--coral));
}

.priority-list,
.notification-list,
.permission-list {
  display: grid;
  gap: 10px;
}

.priority-item {
  padding: 14px;
}

.priority-item header,
.notification-item header,
.worker-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.priority-item strong,
.notification-item strong {
  display: block;
}

.status-pill,
.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf2f2;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.status-pill.completed {
  color: #185d35;
  background: #dff3e6;
}

.status-pill.pending {
  color: #75520e;
  background: #fff2d6;
}

.status-pill.follow-up,
.status-pill.followup {
  color: #8a3c2d;
  background: #ffe2db;
}

.client-tools,
.log-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr;
  gap: 12px;
  margin-bottom: 14px;
}

.log-filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

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

td {
  color: var(--ink-2);
  font-size: 0.9rem;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover,
tbody tr.is-selected {
  background: color-mix(in srgb, var(--brand) 8%, white);
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 0.76rem;
}

.client-profile {
  align-self: start;
}

.client-profile h3,
.panel h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

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

.meta-box {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfb;
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-box strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

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

.profile-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.history-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.document-layout {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
}

.document-controls {
  display: grid;
  gap: 14px;
}

.document-preview-shell {
  display: grid;
  justify-items: center;
}

.document-preview {
  width: min(860px, 100%);
  min-height: 960px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid #ccd6d7;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #1e2d34;
}

.document-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--brand);
}

.document-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.document-company {
  text-align: right;
  color: var(--muted);
  line-height: 1.45;
}

.document-company strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.document-title {
  margin: 34px 0 20px;
}

.document-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.document-title p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.document-field {
  padding: 13px;
  border: 1px solid #dce6e6;
  border-radius: 4px;
}

.document-field span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-field strong {
  display: block;
  margin-top: 6px;
}

.confirmation-box {
  margin: 26px 0;
  padding: 18px;
  border-left: 5px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, white);
  line-height: 1.65;
}

.document-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid #dce6e6;
}

.signature-line {
  min-height: 70px;
  display: grid;
  align-content: end;
  border-bottom: 1px solid var(--ink);
  font-weight: 900;
}

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

.worker-card {
  padding: 18px;
}

.worker-card .score {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--coral));
  font-size: 1.18rem;
  font-weight: 950;
}

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

.worker-metrics div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfb;
}

.worker-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.worker-metrics strong {
  display: block;
  margin-top: 5px;
}

.notification-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-left: 5px solid var(--brand);
}

.notification-item.is-read {
  opacity: 0.66;
  border-left-color: var(--line);
}

.notification-item time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.assistant-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.assistant-context {
  min-width: min(320px, 36vw);
}

.chat-box,
.assistant-prompts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 32, 43, 0.06);
}

.chat-box {
  min-height: 670px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.chat-stream {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
}

.message {
  width: min(720px, 92%);
  padding: 13px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
}

.message.assistant {
  background: #f0f7f6;
  border: 1px solid #d7ebe8;
}

.message.user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}

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

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #f9fbfb;
}

.assistant-prompts {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.assistant-prompts button {
  min-height: 50px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.assistant-prompts button:hover,
.assistant-prompts button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 55%, white);
  outline: none;
}

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

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

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

.logo-uploader {
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: end;
}

.logo-uploader > span:first-child {
  grid-column: 1 / -1;
}

.logo-preview {
  width: 76px;
  height: 76px;
  justify-self: end;
}

.permission-list label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfb;
}

.permission-list input {
  width: 18px;
  min-height: 18px;
}

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

.plan-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
}

.plan-card strong {
  font-size: 2rem;
}

.plan-card.is-featured {
  border-color: color-mix(in srgb, var(--brand) 50%, white);
  box-shadow: 0 20px 55px rgba(15, 143, 132, 0.16);
}

.client-dialog {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.client-dialog::backdrop {
  background: rgba(16, 32, 43, 0.58);
  backdrop-filter: blur(8px);
}

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

.dialog-heading,
.dialog-actions {
  grid-column: 1 / -1;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.email-chooser-dialog {
  width: min(650px, calc(100vw - 28px));
}

.email-chooser-form {
  width: 100%;
}

.email-recipient-summary,
.email-chooser-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.email-provider-button {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.email-provider-button strong { font-size: .95rem; }
.email-provider-button span { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.email-provider-button:hover,
.email-provider-button:focus-visible {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  outline: none;
}
.email-provider-button.copy { grid-column: 1 / -1; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

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

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

  .landing-hero,
  .dashboard-layout,
  .client-layout,
  .document-layout,
  .settings-layout,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

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

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

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .brand-lockup {
    grid-template-columns: 42px 1fr;
  }

  .main-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, max-content);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .company-switcher {
    min-width: 0;
    flex: 1 1 auto;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero img {
    min-height: 260px;
  }

  .client-tools,
  .log-filters,
  .document-controls,
  .settings-form,
  .dialog-form,
  .profile-form .row,
  .document-grid,
  .document-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-stack {
    padding: 12px;
  }

  .section-heading,
  .panel-heading,
  .dialog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .module-grid,
  .stat-grid,
  .worker-grid,
  .plan-grid,
  .profile-meta {
    grid-template-columns: 1fr;
  }

  .segmented-actions,
  .hero-actions,
  .profile-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

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

@media print {
  body {
    background: #fff;
  }

  .app-shell,
  .toast,
  dialog {
    display: none !important;
  }

  .print-document {
    display: block;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   JOYCELINK CRM — NEW COMPONENTS (Worker Login, Workspaces, AI Guide, Admin)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Worker Login Screen ─────────────────────────────────────────────────── */
.worker-login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1e2e 60%, #0a2a1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
}
.worker-login-screen[hidden] { display: none !important; }

.worker-login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(12px);
}

.worker-login-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.worker-login-brand .brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand, #0f8f84);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.worker-login-brand h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
}
.worker-login-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin: 0;
}

.worker-login-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.worker-login-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.1s;
  width: 100%;
  text-align: left;
}
.worker-login-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--brand, #0f8f84);
  transform: translateY(-1px);
}
.worker-login-btn:active { transform: translateY(0); }

.worker-login-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand, #0f8f84);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.worker-login-info {
  flex: 1;
}
.worker-login-info strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.worker-login-info span {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}

.worker-login-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2em 0.55em;
  border-radius: 6px;
  background: rgba(15,143,132,0.25);
  color: #4ecdc4;
  border: 1px solid rgba(78,205,196,0.3);
}

.worker-login-hint {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.worker-pin-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.worker-pin-panel[hidden] { display: none !important; }
.worker-pin-panel strong { color: #fff; }
.worker-pin-panel p { margin: 0; color: rgba(255,255,255,.5); font-size: .8rem; }
.worker-pin-panel input { width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; }
.worker-pin-panel .worker-pin-error { min-height: 1.1rem; color: #fca5a5; }

/* ─── Worker Tap Hint & Open Workspace Button ─────────────────────────────── */
.worker-tap-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.worker-open-workspace-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--brand, #0f8f84);
  background: transparent;
  color: var(--brand, #0f8f84);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.worker-open-workspace-btn:hover {
  background: color-mix(in srgb, var(--brand, #0f8f84) 12%, transparent);
}

/* ─── Active Worker Badge (Sidebar Footer) ────────────────────────────────── */
.active-worker-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  background: rgba(15,143,132,0.12);
  border: 1px solid rgba(15,143,132,0.25);
  margin-bottom: 0.5rem;
}
.active-worker-badge .aw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand, #0f8f84);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.active-worker-badge .aw-info {
  flex: 1;
  min-width: 0;
}
.active-worker-badge .aw-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-worker-badge .aw-info span {
  font-size: 0.72rem;
  color: var(--muted);
}
.active-worker-badge button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.15rem 0.35rem;
  border-radius: 5px;
  transition: background 0.15s;
  white-space: nowrap;
}
.active-worker-badge button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
}

/* ─── Worker Workspace Overlay ────────────────────────────────────────────── */
.worker-workspace-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  animation: wsOverlayIn 0.2s ease;
}
.worker-workspace-overlay[hidden] { display: none !important; }

@keyframes wsOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.worker-workspace-panel {
  background: var(--surface, #1a1f2e);
  width: min(1180px, 100vw);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: wsPanelIn 0.22s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ─── Worker spreadsheet and access controls ─────────────────────────────── */
[data-owner-only][hidden] { display: none !important; }

.company-switcher.is-restricted select {
  cursor: not-allowed;
  opacity: 0.82;
}

.worker-contact-actions {
  flex-wrap: wrap;
}

.my-workspace-profile {
  margin-bottom: 16px;
  padding: 18px;
}

.my-workspace-profile .workspace-profile-avatar {
  width: 54px;
  height: 54px;
}

.my-workspace-profile .role,
.my-workspace-profile small,
#wsWorkerContact {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.my-workspace-stats {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.spreadsheet-panel,
.my-workspace-activity-panel {
  margin-top: 16px;
  padding: 18px;
}

.spreadsheet-help {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.spreadsheet-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.worker-spreadsheet {
  min-width: 2440px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.worker-workspace-sheet .worker-spreadsheet {
  min-width: 2440px;
}

.worker-spreadsheet th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: color-mix(in srgb, var(--brand) 9%, #f8fbfb);
  color: var(--brand-dark);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.worker-spreadsheet td {
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.worker-spreadsheet tbody tr:hover {
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}

.worker-spreadsheet input,
.worker-spreadsheet select {
  min-width: 120px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.worker-spreadsheet [data-sheet-ref] { min-width: 150px; width: 150px; }
.worker-spreadsheet [data-sheet-name] { min-width: 170px; }
.worker-spreadsheet [data-sheet-phone] { min-width: 150px; }
.worker-spreadsheet [data-sheet-email] { min-width: 210px; }
.worker-spreadsheet [data-sheet-service] { min-width: 210px; }
.worker-spreadsheet [data-sheet-amount],
.worker-spreadsheet [data-sheet-paid] { min-width: 92px; width: 92px; }
.worker-spreadsheet [data-sheet-followup] { min-width: 136px; }
.worker-spreadsheet [data-sheet-note] { min-width: 220px; width: 260px; }
.worker-spreadsheet [data-sheet-details] { min-width: 220px; width: 260px; }

.sheet-share-actions {
  display: flex;
  gap: 5px;
}

.sheet-share-actions button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sheet-share-actions button:hover,
.sheet-share-actions button:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.sheet-share-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.sheet-save-button {
  min-height: 32px;
  padding: 5px 10px;
}

.file-count-pill {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-dark);
  font-weight: 900;
}

.sheet-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-file-actions button,
.attachment-item button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  padding: 5px 8px;
  color: var(--brand-dark);
  font-weight: 900;
}

.client-attachments {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 3%, #fff);
  padding: 14px;
}

.attachment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.attachment-heading span,
.attachment-heading strong { display: block; }
.attachment-heading span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.attachment-heading strong { margin-top: 3px; }
.attachment-list { display: grid; gap: 7px; }
.attachment-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 7px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.attachment-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.attachment-item small,.attachment-empty { color: var(--muted); }
.attachment-empty { margin: 0; padding: 8px; }

.spreadsheet-empty {
  padding: 28px !important;
  color: var(--muted);
  text-align: center;
}

.worker-workspace-sheet {
  min-width: 0;
}

.worker-workspace-body {
  overflow-x: hidden;
}

@media (max-width: 760px) {
  .email-provider-grid { grid-template-columns: 1fr; }
  .email-provider-button.copy { grid-column: auto; }
  .spreadsheet-help { max-width: none; text-align: left; }
  .worker-contact-actions { width: 100%; }
  .worker-contact-actions > * { flex: 1 1 auto; }
  .worker-workspace-header { align-items: flex-start; flex-direction: column; }
  .worker-spreadsheet { min-width: 2160px; }
  .attachment-heading { align-items: stretch; flex-direction: column; }
  .attachment-item { grid-template-columns: minmax(0,1fr) auto; }
  .attachment-item small { grid-column: 1 / -1; }
}

@keyframes wsPanelIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.worker-workspace-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--surface, #1a1f2e);
  z-index: 1;
}
.worker-workspace-header .ws-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand, #0f8f84);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.worker-workspace-header .ws-meta { flex: 1; }
.worker-workspace-header .ws-meta h2 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.worker-workspace-header .ws-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.worker-workspace-header .ws-close {
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.worker-workspace-header .ws-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
}

.worker-workspace-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.ws-stat {
  background: var(--surface2, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 0.875rem 0.75rem;
  text-align: center;
}
.ws-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand, #0f8f84);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ws-stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.worker-workspace-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.worker-workspace-clients h3,
.worker-workspace-activity h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.worker-workspace-clients {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ws-client-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.ws-client-item:last-child { border-bottom: none; }
.ws-client-item .ws-ci-name { flex: 1; }
.ws-client-item .ws-ci-name strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}
.ws-client-item .ws-ci-name span {
  font-size: 0.75rem;
  color: var(--muted);
}
.ws-client-item .ws-ci-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  text-transform: capitalize;
}
.ws-ci-status.status-completed {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.ws-ci-status.status-pending {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}
.ws-ci-status.status-in-progress {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.worker-workspace-activity { display: flex; flex-direction: column; gap: 0; }

.ws-activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  font-size: 0.82rem;
}
.ws-activity-item:last-child { border-bottom: none; }
.ws-activity-item .ws-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #0f8f84);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.ws-activity-item .ws-ai-body { flex: 1; }
.ws-activity-item .ws-ai-body strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
}
.ws-activity-item .ws-ai-body span { color: var(--muted); font-size: 0.76rem; }

.ws-empty {
  color: var(--muted);
  font-size: 0.83rem;
  font-style: italic;
  padding: 0.5rem 0;
}

/* ─── AI Guide Banner ─────────────────────────────────────────────────────── */
.ai-guide-banner {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand, #0f8f84) 18%, transparent) 0%,
    color-mix(in srgb, var(--brand, #0f8f84) 8%,  transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--brand, #0f8f84) 35%, transparent);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.ai-guide-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.ai-guide-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand, #0f8f84) 30%, transparent);
  color: var(--brand, #0f8f84);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ai-guide-text {
  flex: 1;
}
.ai-guide-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.ai-guide-text p {
  margin: 0 0 0.625rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.ai-guide-text button {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--brand, #0f8f84) 50%, transparent);
  background: color-mix(in srgb, var(--brand, #0f8f84) 20%, transparent);
  color: var(--brand, #0f8f84);
  cursor: pointer;
  transition: background 0.15s;
}
.ai-guide-text button:hover {
  background: color-mix(in srgb, var(--brand, #0f8f84) 30%, transparent);
}

/* ─── Hero Stats Preview (Landing Page) ──────────────────────────────────── */
.hero-stats-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.18s;
}
.hero-stat:hover {
  background: rgba(255,255,255,0.1);
}
.hero-stat .hs-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand, #0f8f84);
  line-height: 1;
  min-width: 2.5rem;
}
.hero-stat .hs-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}
.hero-stat .hs-label strong {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
}

/* ─── Admin Panel (standalone /admin page) ────────────────────────────────── */
.admin-shell {
  min-height: 100vh;
  background: #0a0e1a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0;
  margin: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar .at-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.admin-topbar .at-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #0f8f84;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-topbar .at-title { font-weight: 700; font-size: 1rem; }
.admin-topbar .at-sub   { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.admin-topbar .at-back  {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s;
}
.admin-topbar .at-back:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.admin-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.admin-section-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-section-head h2 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}
.admin-section-icon {
  font-size: 1rem;
  width: 30px;
  text-align: center;
}
.admin-section-body { padding: 1.25rem; }

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.admin-field:last-child { margin-bottom: 0; }
.admin-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  color: #e2e8f0;
  padding: 0.625rem 0.875rem;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.admin-field input:focus,
.admin-field select,
.admin-field textarea:focus {
  border-color: #0f8f84;
}
.admin-field select option { background: #1a1f2e; }
.admin-field textarea { resize: vertical; min-height: 72px; }

.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.admin-company-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-company-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.admin-company-card.is-locked {
  border-color: rgba(239,68,68,0.35);
}
.admin-company-card.is-active {
  border-color: rgba(15,143,132,0.45);
}

.admin-co-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  user-select: none;
}
.admin-co-header:hover { background: rgba(255,255,255,0.03); }
.admin-co-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-co-meta { flex: 1; min-width: 0; }
.admin-co-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-co-meta span { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.admin-co-pills { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.admin-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18em 0.55em;
  border-radius: 5px;
}
.admin-pill.paid    { background: rgba(34,197,94,0.15);  color: #4ade80; }
.admin-pill.unpaid  { background: rgba(239,68,68,0.18);  color: #f87171; }
.admin-pill.locked  { background: rgba(239,68,68,0.18);  color: #f87171; }
.admin-pill.basic   { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.admin-pill.calls   { background: rgba(15,143,132,0.2);  color: #4ecdc4; }
.admin-pill.chevron { background: none; color: rgba(255,255,255,0.3); font-size: 0.78rem; padding: 0; }

.admin-co-body {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem;
  display: none;
}
.admin-co-body.open { display: block; }

.admin-co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-primary {
  background: #0f8f84;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0.55rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 0.55rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 9px;
  padding: 0.55rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-success {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 9px;
  padding: 0.55rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-success:hover { background: rgba(34,197,94,0.2); }

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f8f84;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  white-space: nowrap;
}
.admin-toast.show { opacity: 1; pointer-events: auto; }

.admin-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 1rem 0;
}

.admin-backup-btns {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .worker-workspace-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-row { grid-template-columns: 1fr; }
  .worker-login-card { padding: 1.75rem 1.25rem; }
  .admin-body { padding: 1rem 1rem 3rem; }
  .admin-co-actions { flex-direction: column; }
}

/* Owner admin company and worker spreadsheet */
.admin-top-actions { display:flex; gap:.6rem; align-items:center; }
.admin-top-actions button { font:inherit; cursor:pointer; }
.admin-spreadsheet-head .btn-primary { margin-left:auto; }
.admin-table-wrap { width:100%; overflow-x:auto; border:1px solid rgba(255,255,255,.08); border-radius:10px; }
.admin-worker-table { min-width:1250px; width:100%; border-collapse:collapse; font-size:.78rem; }
.admin-worker-table th { padding:10px; background:rgba(15,143,132,.16); color:#9ee7df; text-align:left; white-space:nowrap; }
.admin-worker-table td { padding:10px; border-top:1px solid rgba(255,255,255,.07); color:#dbe5ea; white-space:nowrap; }
.admin-worker-table tbody tr:hover { background:rgba(255,255,255,.035); }

/* ═══════════════════════════════════════════════════════════════════════════
   v14 PUBLIC LANDING + COMPANY LOGIN
   ═══════════════════════════════════════════════════════════════════════════ */
.public-site { min-height:100vh; background:#f7faf9; color:#10202b; }
.public-nav { position:sticky; top:0; z-index:1200; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; padding:16px clamp(20px,5vw,76px); background:rgba(247,250,249,.92); backdrop-filter:blur(18px); border-bottom:1px solid rgba(16,32,43,.08); }
.public-brand { display:flex; align-items:center; gap:11px; text-decoration:none; }
.public-brand-mark { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:#fff; font-weight:900; background:linear-gradient(145deg,#0f8f84,#e9785f); box-shadow:0 8px 24px rgba(15,143,132,.22); }
.public-brand strong,.public-brand small { display:block; }.public-brand strong{font-size:.96rem}.public-brand small{font-size:.7rem;color:#6d7e86;margin-top:2px}
.public-nav-links { justify-self:center; display:flex; gap:28px; }.public-nav-links a,.public-admin-link{font-size:.84rem;font-weight:700;text-decoration:none;color:#445862}.public-nav-links a:hover,.public-admin-link:hover{color:#0f8f84}
.public-nav-actions { display:flex; align-items:center; gap:14px; }.public-login-button,.public-primary{border:0;border-radius:12px;padding:12px 18px;background:#10202b;color:#fff;font-weight:800;box-shadow:0 10px 28px rgba(16,32,43,.15)}.public-login-button:hover,.public-primary:hover{transform:translateY(-1px);background:#0f8f84}
.public-hero { max-width:1280px; margin:0 auto; min-height:680px; padding:82px clamp(22px,5vw,72px) 68px; display:grid; grid-template-columns:minmax(0,.95fr) minmax(460px,1.05fr); align-items:center; gap:58px; position:relative; overflow:hidden; }
.public-hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(15,143,132,.14),rgba(15,143,132,0) 70%);left:-260px;top:40px;pointer-events:none}
.public-pill { display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border-radius:999px; background:#eaf5f3; color:#0a6f68; font-weight:800; font-size:.73rem; letter-spacing:.04em; text-transform:uppercase; }
.public-hero h1{font-size:clamp(2.8rem,5.2vw,5rem);line-height:.98;letter-spacing:-.055em;margin:20px 0 24px;max-width:760px}.public-hero-copy>p{font-size:1.12rem;line-height:1.75;color:#5a6e77;max-width:690px;margin:0}
.public-hero-actions{display:flex;gap:12px;align-items:center;margin-top:30px;flex-wrap:wrap}.public-primary{font-size:.9rem;padding:14px 20px;background:#0f8f84}.public-secondary{padding:13px 18px;border:1px solid #d7e4e3;border-radius:12px;text-decoration:none;font-weight:800;font-size:.88rem;background:#fff}
.public-trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:28px;color:#61757d;font-size:.77rem;font-weight:700}.public-trust-row span:before{color:#0f8f84}
.public-hero-art{position:relative}.public-hero-art:after{content:"";position:absolute;inset:9% -3% -5% 10%;border-radius:36px;background:linear-gradient(145deg,rgba(15,143,132,.16),rgba(233,120,95,.12));z-index:-1;filter:blur(3px)}.public-hero-art img{width:100%;filter:drop-shadow(0 26px 50px rgba(16,32,43,.17))}
.public-logo-strip{display:flex;justify-content:center;gap:clamp(24px,5vw,70px);flex-wrap:wrap;padding:22px clamp(20px,5vw,70px);border-top:1px solid #e1e9e8;border-bottom:1px solid #e1e9e8;background:#fff;color:#8a999f;font-size:.68rem;font-weight:900;letter-spacing:.12em}
.public-section{max-width:1280px;margin:0 auto;padding:100px clamp(22px,5vw,72px)}.public-section-heading{max-width:760px;margin-bottom:46px}.public-section-heading>span{color:#0f8f84;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.public-section-heading h2,.security-layout h2,.public-cta h2{font-size:clamp(2rem,3.8vw,3.5rem);letter-spacing:-.045em;line-height:1.04;margin:12px 0 16px}.public-section-heading p,.security-layout p,.public-cta p{color:#65777e;line-height:1.7;margin:0;font-size:1rem}
.public-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.public-feature-grid article{padding:28px;border:1px solid #dee9e8;border-radius:20px;background:#fff;min-height:230px;box-shadow:0 14px 40px rgba(16,32,43,.045);transition:.2s}.public-feature-grid article:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(16,32,43,.08);border-color:#b8d9d5}.feature-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#edf7f5;color:#0f8f84;font-size:.72rem;font-weight:900}.public-feature-grid h3{margin:22px 0 9px;font-size:1.05rem}.public-feature-grid p{color:#6b7c83;line-height:1.65;font-size:.88rem;margin:0}
.public-workflow{max-width:none;background:#10202b;color:#fff}.public-workflow>.public-section-heading,.public-workflow>.workflow-layout{max-width:1136px;margin-left:auto;margin-right:auto}.public-workflow .public-section-heading>span{color:#54c4b8}.public-workflow .public-section-heading p{color:#9fb1b7}.workflow-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center}.workflow-layout>img{border-radius:24px}.workflow-steps{display:grid;gap:14px}.workflow-steps>div{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:start;padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.04)}.workflow-steps b{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#0f8f84;color:#fff}.workflow-steps strong,.workflow-steps small{display:block}.workflow-steps strong{font-size:.92rem}.workflow-steps small{margin-top:4px;color:#9db0b6;font-size:.78rem;line-height:1.5}
.security-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:center}.security-layout>img{width:100%}.security-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.security-points span{padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #dce8e7;font-size:.76rem;font-weight:800;color:#40545d}
.public-cta{max-width:1136px;margin:0 auto 90px;padding:42px 48px;display:flex;align-items:center;justify-content:space-between;gap:32px;border-radius:28px;background:linear-gradient(125deg,#e9f5f3,#fff5f2);border:1px solid #dce9e7}.public-cta>div>span{font-size:.7rem;font-weight:900;color:#0f8f84;text-transform:uppercase;letter-spacing:.12em}.public-cta h2{font-size:2.2rem;margin:8px 0}.public-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:30px clamp(22px,5vw,72px);background:#10202b;color:#aebcc1;font-size:.78rem}.public-footer strong{color:#fff}
.company-login-modal{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:20px}.company-login-modal[hidden]{display:none!important}.company-login-backdrop{position:absolute;inset:0;background:rgba(7,18,24,.74);backdrop-filter:blur(10px)}.company-login-dialog{position:relative;z-index:1;width:min(880px,100%);max-height:min(720px,92vh);overflow:auto;background:#fff;border-radius:26px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.28)}.company-login-close{position:absolute;top:18px;right:18px;border:0;background:#eef3f3;width:36px;height:36px;border-radius:50%;font-size:1.35rem;line-height:1}.company-login-heading{max-width:600px}.company-login-heading h2{font-size:2rem;letter-spacing:-.04em;margin:12px 0 8px}.company-login-heading p,.company-login-help{color:#697a82;line-height:1.55;font-size:.86rem}.company-login-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:26px}.company-login-company{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:14px;padding:16px;border:1px solid #dce7e6;border-radius:16px;background:#fbfdfd;text-align:left;transition:.18s}.company-login-company:hover{border-color:#0f8f84;background:#f0f8f7;transform:translateY(-1px)}.company-login-company-logo{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:900;overflow:hidden}.company-login-company-logo img{width:100%;height:100%;object-fit:cover}.company-login-company strong,.company-login-company small{display:block}.company-login-company strong{font-size:.92rem}.company-login-company small{margin-top:4px;color:#75878e;font-size:.75rem}.company-login-arrow{font-size:1.3rem;color:#0f8f84}.company-login-loading{grid-column:1/-1;padding:40px;text-align:center;color:#6c7e85}.worker-back-site{width:100%;margin-top:12px;padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:transparent;color:rgba(255,255,255,.7);font-size:.8rem}.worker-back-site:hover{background:rgba(255,255,255,.06);color:#fff}
@media(max-width:980px){.public-nav-links{display:none}.public-hero{grid-template-columns:1fr;padding-top:58px}.public-hero-art{max-width:780px}.public-feature-grid{grid-template-columns:repeat(2,1fr)}.workflow-layout,.security-layout{grid-template-columns:1fr}.public-cta{margin-left:20px;margin-right:20px}}
@media(max-width:640px){.public-nav{grid-template-columns:1fr auto}.public-admin-link{display:none}.public-hero{min-height:auto;padding-top:44px}.public-hero h1{font-size:2.7rem}.public-feature-grid,.company-login-grid{grid-template-columns:1fr}.public-section{padding:72px 20px}.public-cta{padding:30px 24px;align-items:flex-start;flex-direction:column}.public-footer{flex-direction:column}.company-login-dialog{padding:28px 20px}.public-logo-strip{justify-content:flex-start;overflow:hidden;flex-wrap:nowrap}}

/* v15 private company login */
.private-company-login{display:grid;gap:14px;margin-top:18px}.private-company-login label{display:grid;gap:7px;text-align:left}.private-company-login label span{font-size:.78rem;font-weight:800;color:var(--muted);letter-spacing:.02em}.private-company-login input{width:100%;box-sizing:border-box;border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px 14px;font:inherit;color:var(--ink);outline:none}.private-company-login input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,143,132,.12)}.company-login-error{min-height:20px;margin:0;color:#b42318;font-size:.82rem;font-weight:700}.private-company-login .public-primary{width:100%;justify-content:center;border:0;cursor:pointer}

/* ═══════════════════════════════════════════════════════════════════════════
   v16 FINAL LANDING VISUALS — logo + real picture assets
   Landing only. Does not change app/D1/R2 behaviour.
   ═══════════════════════════════════════════════════════════════════════════ */
.public-site-v16{background:#07131f;color:#eef7ff;}
.public-site-v16 .public-nav{background:rgba(7,19,31,.92);border-bottom:1px solid rgba(109,190,255,.16);box-shadow:0 8px 36px rgba(0,0,0,.18)}
.public-site-v16 .public-brand{gap:13px}.public-brand-logo-wrap{width:62px;height:46px;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:#050b14;border:1px solid rgba(101,188,255,.25);box-shadow:0 8px 24px rgba(40,117,255,.16)}
.public-brand-logo{width:100%;height:100%;object-fit:cover;object-position:center}.public-site-v16 .public-brand strong{color:#fff;font-size:1rem}.public-site-v16 .public-brand small{color:#8ba7bd}
.public-site-v16 .public-nav-links a,.public-site-v16 .public-admin-link{color:#b7c9d7}.public-site-v16 .public-nav-links a:hover,.public-site-v16 .public-admin-link:hover{color:#63c5ff}
.public-site-v16 .public-login-button,.public-site-v16 .public-primary{background:linear-gradient(135deg,#168cff,#5d55ff);box-shadow:0 12px 28px rgba(29,126,255,.26)}
.public-site-v16 .public-login-button:hover,.public-site-v16 .public-primary:hover{background:linear-gradient(135deg,#2ca2ff,#7567ff)}
.public-site-v16 .public-hero{max-width:1380px;min-height:720px;padding-top:78px;background:radial-gradient(circle at 82% 35%,rgba(41,116,255,.18),transparent 34%),radial-gradient(circle at 8% 20%,rgba(106,76,255,.13),transparent 30%)}
.public-site-v16 .public-hero:before{background:radial-gradient(circle,rgba(43,165,255,.14),transparent 70%)}
.public-site-v16 .public-pill{background:rgba(45,151,255,.12);border:1px solid rgba(82,180,255,.2);color:#79ceff}
.public-site-v16 .public-hero h1{color:#fff;text-shadow:0 8px 40px rgba(0,0,0,.3)}.public-site-v16 .public-hero-copy>p{color:#adc0cf}
.public-site-v16 .public-secondary{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.14);color:#fff}.public-site-v16 .public-secondary:hover{background:rgba(255,255,255,.08)}
.public-site-v16 .public-trust-row{color:#9db4c5}
.public-hero-picture-frame{position:relative;border:1px solid rgba(102,190,255,.26);border-radius:28px;padding:10px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02));box-shadow:0 32px 70px rgba(0,0,0,.4);overflow:hidden}
.public-site-v16 .public-hero-art:after{background:linear-gradient(145deg,rgba(31,145,255,.26),rgba(109,79,255,.2));inset:7% -5% -7% 8%;filter:blur(15px)}.public-site-v16 .public-hero-art img{width:100%;border-radius:20px;display:block;filter:none}
.public-picture-badge{position:absolute;right:24px;bottom:24px;padding:10px 13px;border-radius:999px;background:rgba(4,15,26,.82);border:1px solid rgba(107,199,255,.3);color:#cdeaff;font-size:.72rem;font-weight:800;backdrop-filter:blur(10px)}
.public-site-v16 .public-logo-strip{background:#0a1c2c;border-color:rgba(95,177,240,.15);color:#7895aa}
.public-site-v16 .public-section{color:#eaf5ff}.public-site-v16 .public-section-heading>span{color:#64c5ff}.public-site-v16 .public-section-heading h2,.public-site-v16 .security-layout h2,.public-site-v16 .public-cta h2{color:#fff}.public-site-v16 .public-section-heading p,.public-site-v16 .security-layout p,.public-site-v16 .public-cta p{color:#9eb4c5}
.public-feature-grid-images article{padding:0 0 25px;overflow:hidden;background:#0c2032;border-color:rgba(109,186,238,.16);box-shadow:0 16px 45px rgba(0,0,0,.2);min-height:390px}.public-feature-grid-images article:hover{border-color:rgba(104,196,255,.5);box-shadow:0 24px 55px rgba(0,0,0,.34)}
.public-feature-image{width:100%;height:180px;object-fit:cover;display:block;border-bottom:1px solid rgba(255,255,255,.08)}.public-feature-grid-images .feature-icon,.public-feature-grid-images h3,.public-feature-grid-images p{margin-left:24px;margin-right:24px}.public-feature-grid-images .feature-icon{margin-top:-21px;position:relative;z-index:2;border:1px solid rgba(100,198,255,.26);background:#0b2238;color:#78ceff;box-shadow:0 8px 22px rgba(0,0,0,.25)}.public-feature-grid-images h3{color:#fff;margin-top:15px}.public-feature-grid-images p{color:#9db3c3}
.public-photo-band{max-width:1280px;margin:12px auto 90px;padding:0 22px;position:relative}.public-photo-band img{width:100%;height:250px;object-fit:cover;border-radius:26px;opacity:.68;filter:saturate(.9);border:1px solid rgba(83,176,239,.18)}.public-photo-band:after{content:"";position:absolute;inset:0 22px;border-radius:26px;background:linear-gradient(90deg,rgba(4,14,24,.78),rgba(4,14,24,.18),rgba(4,14,24,.72))}.public-photo-band>div{position:absolute;z-index:2;left:70px;bottom:50px;display:grid;gap:9px;max-width:700px}.public-photo-band span{font-size:.72rem;font-weight:900;letter-spacing:.14em;color:#67c6ff}.public-photo-band strong{font-size:clamp(1.45rem,3vw,2.45rem);color:#fff;line-height:1.08}
.public-site-v16 .public-workflow{background:#06111c}.public-site-v16 .workflow-layout>img,.public-site-v16 .security-layout>img{width:100%;border-radius:26px;border:1px solid rgba(98,184,244,.18);box-shadow:0 22px 50px rgba(0,0,0,.24)}.public-site-v16 .workflow-steps>div{background:#0b1f31;border-color:rgba(104,190,248,.13)}.public-site-v16 .workflow-steps b{background:linear-gradient(135deg,#168cff,#6457ff)}.public-site-v16 .workflow-steps small{color:#91aabd}
.public-site-v16 .security-points span{background:#0d2234;border-color:rgba(103,188,244,.17);color:#bad0df}.public-site-v16 .public-cta{background:linear-gradient(125deg,#0d2942,#17234b);border-color:rgba(111,196,255,.2);box-shadow:0 25px 65px rgba(0,0,0,.22)}.public-site-v16 .public-cta>div>span{color:#66c8ff}.public-site-v16 .public-footer{background:#040d16;border-top:1px solid rgba(103,185,238,.12);color:#819bad}.public-site-v16 .public-footer strong{color:#dff2ff}
@media(max-width:980px){.public-site-v16 .public-hero{min-height:auto}.public-photo-band>div{left:45px;right:45px}.public-feature-grid-images article{min-height:360px}}
@media(max-width:640px){.public-brand-logo-wrap{width:48px;height:40px}.public-site-v16 .public-brand small{display:none}.public-photo-band{margin-bottom:60px;padding:0 20px}.public-photo-band:after{inset:0 20px}.public-photo-band img{height:300px}.public-photo-band>div{left:42px;right:42px;bottom:38px}.public-picture-badge{right:18px;bottom:18px}.public-feature-image{height:200px}}
