: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;
  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;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.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);
}

.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;
}

.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 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(560px, 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);
}

@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; }
}
