/* Portal overlays on zm-agency */
.zm-portal-body {
  min-height: 100vh;
  color-scheme: dark;
  --zm-input-bg: #0a0f1c;
  --zm-input-bg-hover: #0c1424;
  --zm-input-bg-disabled: #070b14;
  --zm-input-border: rgba(120, 200, 255, 0.16);
  --zm-input-border-focus: rgba(61, 224, 255, 0.55);
  --zm-input-text: #e8eef7;
  --zm-input-placeholder: rgba(139, 155, 180, 0.78);
  --zm-input-caret: #3de0ff;
}

/* Auth + portal typed fields — Pečať dark (no bright white boxes) */
.zm-portal-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="reset"]):not([type="color"]),
.zm-portal-body textarea,
.zm-portal-body select,
.zm-portal-body [contenteditable="true"] {
  background: var(--zm-input-bg) !important;
  background-color: var(--zm-input-bg) !important;
  border: 1px solid var(--zm-input-border) !important;
  color: var(--zm-input-text) !important;
  caret-color: var(--zm-input-caret);
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}
.zm-portal-body input::placeholder,
.zm-portal-body textarea::placeholder {
  color: var(--zm-input-placeholder) !important;
  opacity: 1;
}
.zm-portal-body input:focus,
.zm-portal-body textarea:focus,
.zm-portal-body select:focus,
.zm-portal-body [contenteditable="true"]:focus {
  outline: none !important;
  border-color: var(--zm-input-border-focus) !important;
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.14) !important;
}
.zm-portal-body input:disabled,
.zm-portal-body textarea:disabled,
.zm-portal-body select:disabled,
.zm-portal-body input[readonly],
.zm-portal-body textarea[readonly] {
  background: var(--zm-input-bg-disabled) !important;
  color: rgba(232, 238, 247, 0.55) !important;
  cursor: not-allowed;
}
.zm-portal-body input:-webkit-autofill,
.zm-portal-body input:-webkit-autofill:hover,
.zm-portal-body input:-webkit-autofill:focus,
.zm-portal-body textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--zm-input-text) !important;
  caret-color: var(--zm-input-caret);
  box-shadow: 0 0 0 1000px var(--zm-input-bg) inset !important;
  transition: background-color 99999s ease-out;
}
.zm-portal-body select option {
  background: var(--zm-input-bg);
  color: var(--zm-input-text);
}
.zm-portal-login {
  position: relative; z-index: 2;
  max-width: 400px;
  width: min(100% - 2rem, 400px);
  margin: 0 auto;
  padding: 2.5rem 0.85rem 2rem;
}
.zm-portal-login--compact {
  max-width: 380px;
  width: min(100% - 2rem, 380px);
  padding-top: 2.25rem;
}
.zm-portal-login--wide {
  max-width: 640px;
  width: min(100% - 2rem, 640px);
}
.zm-portal-kicker {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.zm-portal-login h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  color: var(--white);
  margin: 0.35rem 0 0.35rem;
}
.zm-portal-login__lead { color: var(--muted); margin: 0 0 1rem; font-size: 0.84rem; max-width: 40ch; line-height: 1.45; }
.zm-portal-card {
  display: grid; gap: 0.75rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.zm-portal-card label { display: grid; gap: 0.28rem; font-size: 0.78rem; color: var(--muted); }
.zm-portal-card input,
.zm-portal-card textarea,
.zm-portal-card select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  min-height: 2.35rem;
  border-radius: 9px;
  border: 1px solid var(--zm-input-border, var(--line));
  background: var(--zm-input-bg, #0a0f1c) !important;
  color: var(--zm-input-text, var(--white)) !important;
  font: inherit;
  font-size: 0.88rem;
  color-scheme: dark;
  caret-color: var(--zm-input-caret, var(--cyan));
}
.zm-portal-card textarea { min-height: 4.5rem; resize: vertical; }
.zm-portal-card .zm-btn {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  justify-content: center;
}
.zm-portal-card input:focus,
.zm-portal-card textarea:focus,
.zm-portal-card select:focus {
  outline: none;
  border-color: var(--zm-input-border-focus, rgba(61, 224, 255, 0.55));
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.12);
}
.zm-portal-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 80, 100, 0.12);
  color: #ffb4bd;
  font-size: 0.82rem;
}
.zm-portal-demo { display: none !important; }
.zm-portal-ok {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  color: #a7f3d0;
  font-size: 0.86rem;
}
.zm-portal-success {
  display: grid;
  gap: 0.55rem;
  text-align: left;
}
.zm-portal-success[hidden],
#forgot-form[hidden],
#reset-form[hidden] {
  display: none !important;
}
.zm-portal-success__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mint);
}
.zm-portal-success__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}
.zm-portal-success__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.zm-portal-fineprint {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.zm-portal-row-end {
  margin: -0.25rem 0 0;
  text-align: right;
}
.zm-text-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: inherit;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.zm-text-link:hover {
  color: var(--white);
  border-bottom-color: rgba(61, 224, 255, 0.45);
}
.zm-nav-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}
.zm-nav-tab--billing {
  border-color: rgba(61, 224, 255, 0.35) !important;
}
.zm-nav-tab--billing.is-active,
button.zm-nav-tab--billing.is-active {
  box-shadow: 0 0 0 1px rgba(61, 224, 255, 0.35);
}
.zm-nav-tab--payments {
  border-color: rgba(120, 220, 160, 0.4) !important;
}
.zm-nav-tab--payments.is-active,
button.zm-nav-tab--payments.is-active {
  box-shadow: 0 0 0 1px rgba(120, 220, 160, 0.4);
}

/* Fakturácia / Platby: dark branded UI (zero white inputs).
   display:grid must NOT apply when [hidden] — otherwise billing leaks onto every admin tab. */
.zm-billing-ui:not([hidden]),
.zm-payments-ui:not([hidden]) {
  display: grid;
  gap: 1rem;
}
.zm-billing-ui[hidden],
.zm-payments-ui[hidden] {
  display: none !important;
}
.zm-firm-billing-mount { margin-top: 0; }
.zm-billing-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(61, 224, 255, 0.28);
  background:
    linear-gradient(125deg, rgba(61, 224, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(14, 22, 40, 0.95), rgba(8, 12, 22, 0.88));
}
.zm-billing-hero__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.zm-billing-hero__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--white);
  letter-spacing: -0.02em;
}
.zm-billing-hero__lead {
  margin: 0.35rem 0 0;
  max-width: 48ch;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.zm-billing-hero__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 224, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  text-align: right;
}
.zm-billing-hero__meta span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.zm-billing-hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cyan);
}
.zm-billing-grid {
  align-items: start;
}
.zm-billing-card {
  outline: 1px solid rgba(61, 224, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.zm-billing-card--list {
  margin-top: 0;
}
.zm-billing-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
}
.zm-billing-card__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--white);
}
.zm-billing-card__hint {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.zm-billing-form {
  display: grid;
  gap: 0.7rem;
}
.zm-billing-form__legend {
  margin: 0.35rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.zm-billing-fields {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .zm-billing-fields--2 { grid-template-columns: 1fr 1fr; }
  .zm-billing-fields--3 { grid-template-columns: 1fr 1fr 1fr; }
  .zm-billing-field--wide { grid-column: 1 / -1; }
}
.zm-billing-field {
  display: grid;
  gap: 0.28rem;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.zm-billing-ui input[type="text"],
.zm-billing-ui input[type="email"],
.zm-billing-ui input[type="tel"],
.zm-billing-ui input[type="number"],
.zm-billing-ui input[type="search"],
.zm-billing-ui input[type="url"],
.zm-billing-ui input:not([type]),
.zm-billing-ui textarea,
.zm-billing-ui select,
.zm-billing-form input,
.zm-billing-form textarea,
.zm-billing-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.58rem 0.78rem;
  min-height: 2.4rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 224, 255, 0.42);
  background: #070b14 !important;
  background-color: #070b14 !important;
  color: var(--white) !important;
  caret-color: var(--cyan);
  font: inherit;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
.zm-billing-ui input::placeholder,
.zm-billing-form input::placeholder {
  color: rgba(139, 155, 180, 0.72);
}
.zm-billing-ui input:hover,
.zm-billing-form input:hover {
  border-color: rgba(61, 224, 255, 0.45);
}
.zm-billing-ui input:focus,
.zm-billing-form input:focus,
.zm-billing-ui textarea:focus,
.zm-billing-form textarea:focus {
  outline: none;
  border-color: rgba(61, 224, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.14);
}
.zm-billing-ui input:-webkit-autofill,
.zm-billing-ui input:-webkit-autofill:hover,
.zm-billing-ui input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8eef8 !important;
  caret-color: var(--cyan);
  box-shadow: 0 0 0 1000px #070b14 inset !important;
  transition: background-color 99999s ease-out;
}
.zm-billing-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text);
}
.zm-billing-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--cyan);
  background: #070b14;
  border: 1px solid rgba(61, 224, 255, 0.4);
  border-radius: 4px;
}
.zm-billing-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.25rem;
}
.zm-billing-form__actions .zm-btn {
  width: auto;
  min-width: 10rem;
}
.zm-billing-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}
.zm-billing-legal {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 200, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  color: var(--text);
}
.zm-billing-legal strong { color: var(--white); }
.zm-billing-preview {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(120, 200, 255, 0.12);
}
.zm-billing-preview h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
}
.zm-billing-summary {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.zm-billing-summary strong { color: var(--cyan); }
.zm-billing-preview__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
.zm-billing-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(61, 224, 255, 0.28);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.zm-billing-banner {
  display: none;
}
.zm-billing-panel {
  outline: 1px solid rgba(61, 224, 255, 0.18);
}
.zm-seo-frame,
.zm-seo-mount {
  width: 100%;
  min-height: min(78vh, 920px);
  height: 78vh;
  border: 1px solid rgba(120, 200, 255, 0.16);
  border-radius: 14px;
  background: #0a0f1c;
}
.zm-seo-boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(180, 210, 240, 0.75);
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 2;
  padding: 1.25rem;
  text-align: center;
}
.zm-seo-boot.is-error {
  pointer-events: auto;
  color: #fecaca;
  background: rgba(10, 15, 28, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 14px;
  inset: 0.75rem;
  gap: 0.85rem;
}
.zm-seo-boot[hidden] { display: none !important; }

/* SEO workspace = full remaining viewport inside portal (no second site) */
.zm-portal-shell--admin {
  max-width: 1680px;
}
.zm-app--admin {
  align-items: stretch;
}
.zm-seo-panel {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.zm-seo-workspace {
  position: relative;
  width: 100%;
  min-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 200, 255, 0.14);
  background: #0e1728;
}
/* Legacy non-Pečať admin shell only — Pečať #app also has .zm-portal-shell--admin */
body.is-seo-workspace:not(.zm-pecat) .zm-portal-shell--admin {
  max-width: none;
  padding-top: calc(var(--nav-h, 72px) + 0.75rem);
  padding-bottom: 0.75rem;
}
body.zm-pecat.is-seo-workspace .zm-portal-shell--admin,
body.zm-pecat.is-seo-workspace #app.zm-portal-shell--admin,
body.zm-pecat.is-seo-workspace #app.zm-pecat-shell {
  padding: 0 !important;
  max-width: none !important;
}
body.is-seo-workspace .zm-app-hero { display: none; }
body.is-seo-workspace .zm-app--admin {
  min-height: calc(100vh - var(--nav-h, 72px) - 1.5rem);
  min-height: calc(100dvh - var(--nav-h, 72px) - 1.5rem);
}
body.is-seo-workspace .zm-seo-workspace {
  min-height: calc(100vh - var(--nav-h, 72px) - 5.5rem);
  min-height: calc(100dvh - var(--nav-h, 72px) - 5.5rem);
  border-radius: 12px;
}
body.is-seo-workspace .zm-seo-frame,
body.is-seo-workspace .zm-seo-mount {
  display: block;
  width: 100%;
  height: calc(100vh - var(--nav-h, 72px) - 5.5rem);
  height: calc(100dvh - var(--nav-h, 72px) - 5.5rem);
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
}

/* SEO SPA inside portal ? keep module sidebar (platform IA) */
html.zm-embed .zm-admin-bridge { display: none !important; }
html.zm-embed .zm-seo-mount .app-shell,
html.zm-embed .zm-seo-mount > .app-shell {
  grid-template-columns: minmax(220px, 268px) 1fr !important;
  min-height: 100% !important;
  height: 100% !important;
}
html.zm-embed .zm-seo-mount .sidebar {
  display: flex !important;
  min-height: 100%;
}
html.zm-embed .zm-seo-mount,
html.zm-embed .zm-seo-mount > * {
  height: 100%;
}

/* Tablet/phone: SEO sidebar becomes off-canvas drawer (toggle in SPA).
 * Pečať SEO uses absolute-in-mount chrome (see pecat CSS) — do not apply marketing-nav offsets. */
@media (max-width: 1100px) {
  html.zm-embed .zm-seo-mount .app-shell,
  html.zm-embed .zm-seo-mount > .app-shell {
    grid-template-columns: 1fr !important;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .seo-nav-toggle {
    z-index: 40 !important;
    top: calc(var(--nav-h, 72px) + var(--zm-admin-topnav-h, 3.15rem) + 0.45rem) !important;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .seo-nav-backdrop {
    z-index: 35 !important;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .sidebar {
    display: flex !important;
    position: fixed !important;
    top: calc(var(--nav-h, 72px) + var(--zm-admin-topnav-h, 3.15rem));
    left: 0;
    bottom: 0;
    z-index: 50 !important;
    width: min(18.5rem, 86vw) !important;
    max-width: 86vw;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .sidebar:not(.is-open) {
    pointer-events: none;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .app-shell.is-nav-open .sidebar {
    pointer-events: auto;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .app-shell.is-nav-open .sidebar,
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .sidebar.is-open {
    transform: translateX(0);
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(2, 4, 12, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  html.zm-embed body:not(.zm-pecat) .zm-seo-mount .app-shell.is-nav-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  body.is-seo-workspace .zm-app--admin {
    display: flex;
    flex-direction: column;
  }
  body.is-seo-workspace .zm-seo-frame,
  body.is-seo-workspace .zm-seo-mount,
  body.is-seo-workspace .zm-seo-workspace {
    min-height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h, 3.5rem) - 1rem);
    height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h, 3.5rem) - 1rem);
    overflow: hidden;
  }
}

.zm-portal-back { margin-top: 1.5rem; font-size: 0.88rem; color: var(--muted); }
.zm-portal-back a { color: var(--cyan); }

.zm-portal-shell {
  position: relative; z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
}
.zm-portal-top {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.zm-portal-top h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--white);
  margin: 0;
}
.zm-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 224, 255, 0.35);
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.zm-portal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.zm-portal-panel {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.75);
}
.zm-portal-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}
.zm-portal-panel p, .zm-portal-panel li { color: var(--muted); font-size: 0.92rem; }
.zm-portal-panel ul { margin: 0; padding-left: 1.15rem; }
.zm-portal-meta {
  display: grid; gap: 0.35rem;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.zm-portal-meta strong { color: var(--white); font-weight: 600; }
.zm-portal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.zm-portal-loading { color: var(--muted); padding: 3rem 0; text-align: center; }

.zm-muted { color: var(--muted); font-size: 0.92rem; }
.zm-role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.zm-role-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--muted);
  border-radius: 14px;
  padding: 1.05rem 1rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
  min-height: 5.25rem;
}
.zm-role-switch button strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.zm-role-switch button small { font-size: 0.78rem; line-height: 1.35; }
.zm-role-switch button.is-active {
  border-color: rgba(61,224,255,0.5);
  background: rgba(61,224,255,0.1);
  color: var(--text);
}
.zm-portal-card .zm-form__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .zm-portal-card .zm-form__grid--2 { grid-template-columns: 1fr 1fr; }
}
.zm-portal-section {
  display: grid;
  gap: 1rem;
  margin: 0.15rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(120, 200, 255, 0.12);
}
.zm-portal-section[hidden] {
  display: none !important;
}
.zm-portal-section:first-of-type,
.zm-portal-card > .zm-role-switch + .zm-portal-section {
  border-top: 0;
  padding-top: 0.25rem;
}
.zm-portal-section__hint {
  margin: -0.35rem 0 0.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--zm-muted, #8892a4);
}
.zm-portal-section__hint strong {
  color: var(--zm-text, #e8eef7);
  font-weight: 600;
}
.zm-portal-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.zm-portal-card .zm-consent-box {
  margin-top: 0.35rem;
}
.zm-portal-card .zm-consent-box input[type="checkbox"] {
  width: 1.25rem;
  min-height: 0;
  padding: 0;
}
.zm-password-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.zm-password-field > label {
  display: block;
  margin: 0;
}
.zm-password-field > label span {
  display: block;
}
.zm-password-field input {
  padding-right: 3.25rem;
  width: 100%;
}
.zm-password-toggle {
  position: absolute;
  right: 0.45rem;
  bottom: 0.35rem;
  transform: none;
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.2s ease, background 0.2s ease;
}
.zm-password-toggle:hover {
  color: var(--cyan);
  background: rgba(61, 224, 255, 0.08);
}
.zm-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.22);
  color: var(--cyan);
}
.zm-password-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.zm-password-toggle .zm-password-toggle__off { display: none; }
.zm-password-toggle.is-revealed .zm-password-toggle__on { display: none; }
.zm-password-toggle.is-revealed .zm-password-toggle__off { display: block; }
.zm-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem !important;
}
.zm-check input { width: auto; min-height: 0; margin-top: 0.2rem; padding: 0; }

/* App shell with tabs */
.zm-app {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .zm-app { grid-template-columns: 220px 1fr; align-items: start; }
}
.zm-app__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10,16,28,0.75);
}
@media (min-width: 960px) {
  .zm-app__nav {
    flex-direction: column;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}
.zm-app__nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.zm-app__nav button.is-active {
  background: rgba(61,224,255,0.12);
  color: var(--cyan);
}
.zm-app__main { min-width: 0; }
.zm-stat-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1rem;
}
.zm-stat {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10,16,28,0.7);
}
.zm-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}
.zm-stat span { font-size: 0.8rem; color: var(--muted); }
.zm-progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 0.55rem;
}
.zm-progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: inherit;
}
.zm-list-rows { display: grid; gap: 0.5rem; }
.zm-list-rows article {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8,12,22,0.65);
}
.zm-list-rows h3 { margin: 0; font-size: 0.98rem; color: var(--white); font-family: var(--font-display); }
.zm-list-rows p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.zm-chip {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(61,224,255,0.3);
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.zm-banner-warn {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 80, 0.35);
  background: rgba(255, 190, 80, 0.08);
  color: #ffd9a0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Document rows + modal */
.zm-doc-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  text-align: left;
  appearance: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8,12,22,0.65);
  color: inherit;
  font: inherit;
}
.zm-doc-row:hover { border-color: rgba(61,224,255,0.4); }
.zm-doc-row__title { grid-column: 1; color: var(--white); font-weight: 600; }
.zm-doc-row__meta { grid-column: 1; font-size: 0.82rem; color: var(--muted); }
.zm-doc-row__action { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--cyan); font-size: 0.85rem; }
.zm-doc-modal[hidden] { display: none !important; }
.zm-doc-modal {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  padding: 1rem;
}
.zm-doc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.zm-doc-modal__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(88vh, 820px);
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0c1422;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}
.zm-doc-modal__head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.zm-doc-modal__meta { margin: 0; font-size: 0.78rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.04em; }
.zm-doc-modal__head h2 { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.zm-doc-modal__close {
  border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.zm-doc-modal__body {
  padding: 1.2rem 1.35rem 1.6rem;
  overflow: auto;
  color: var(--muted);
  line-height: 1.65;
}
.zm-doc-modal__body h2, .zm-doc-modal__body h3 { color: var(--white); }
html.zm-doc-lock { overflow: hidden; }

/* === Portal visual v2 === */
/* Dense agency-OS overlays ť append only; do not remove prior rules */

.zm-portal-shell {
  max-width: 1400px;
  width: min(100% - 2.5rem, 1400px);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.zm-portal-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.zm-portal-orbs__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: zm-orb-drift 18s var(--ease) infinite alternate;
}
.zm-portal-orbs__orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(61, 224, 255, 0.35), transparent 70%);
}
.zm-portal-orbs__orb--b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  bottom: 12%;
  left: -10%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.zm-portal-orbs__orb--c {
  width: min(28vw, 240px);
  height: min(28vw, 240px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(26, 140, 255, 0.18), transparent 70%);
  animation-delay: -12s;
  animation-duration: 26s;
}
@keyframes zm-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-24px, 18px) scale(1.08); }
}

/* Hero header strip */
.zm-app-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.45rem;
  margin-bottom: 0.25rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(61, 224, 255, 0.1) 0%, transparent 42%),
    linear-gradient(225deg, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(26, 140, 255, 0.14), transparent 55%),
    rgba(10, 16, 28, 0.88);
}
.zm-app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.zm-app-hero__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}
.zm-app-hero__copy { min-width: 0; }
.zm-app-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.zm-app-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
}
.zm-app-hero__lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 48ch;
}
.zm-app-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 224, 255, 0.4);
  background: rgba(61, 224, 255, 0.1);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(61, 224, 255, 0.12);
}
.zm-app-hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.zm-app-hero__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(120, 200, 255, 0.1);
  font-size: 0.8rem;
  color: var(--muted);
}
.zm-app-hero__meta strong { color: var(--text); font-weight: 600; }

/* Tab nav with icon support */
.zm-app__nav {
  gap: 0.3rem;
  padding: 0.55rem;
  background:
    linear-gradient(180deg, rgba(61, 224, 255, 0.04), transparent 40%),
    rgba(8, 12, 22, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.zm-app__nav button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s ease, box-shadow 0.2s ease;
}
.zm-app__nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.zm-app__nav button.is-active {
  background: rgba(61, 224, 255, 0.14);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(61, 224, 255, 0.22);
}
.zm-app__nav .zm-nav-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(61, 224, 255, 0.08);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  line-height: 1;
}
.zm-app__nav button.is-active .zm-nav-ico {
  background: rgba(61, 224, 255, 0.2);
}

/* KPI cards + CSS sparklines */
.zm-stat-row {
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.zm-kpi-card,
.zm-stat.zm-kpi-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(61, 224, 255, 0.07), transparent 55%),
    rgba(8, 12, 22, 0.78);
}
.zm-kpi-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.zm-kpi-card__value,
.zm-kpi-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}
.zm-kpi-card__hint {
  font-size: 0.75rem;
  color: var(--muted);
}
.zm-kpi-spark {
  display: block;
  height: 28px;
  margin-top: 0.55rem;
  border-radius: 4px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(61, 224, 255, 0.05) 8%,
      transparent 16%,
      rgba(45, 212, 191, 0.08) 28%,
      transparent 36%,
      rgba(61, 224, 255, 0.1) 48%,
      transparent 56%,
      rgba(45, 212, 191, 0.12) 68%,
      transparent 76%,
      rgba(61, 224, 255, 0.15) 88%,
      transparent 100%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 22 L12 18 L24 20 L36 12 L48 15 L60 8 L72 11 L84 6 L96 10 L108 4 L120 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 22 L12 18 L24 20 L36 12 L48 15 L60 8 L72 11 L84 6 L96 10 L108 4 L120 7'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--teal), var(--cyan));
}
.zm-kpi-spark--flat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 16 L20 15 L40 17 L60 14 L80 16 L100 15 L120 16'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 16 L20 15 L40 17 L60 14 L80 16 L100 15 L120 16'/%3E%3C/svg%3E");
}
.zm-kpi-spark--up {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 24 L15 22 L30 20 L45 18 L60 12 L75 10 L90 7 L105 5 L120 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M0 24 L15 22 L30 20 L45 18 L60 12 L75 10 L90 7 L105 5 L120 2'/%3E%3C/svg%3E");
}

/* Dense table-like lists */
.zm-dense-list,
.zm-list-rows.zm-dense-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 10, 18, 0.72);
}
.zm-dense-list article,
.zm-dense-list .zm-dense-row,
.zm-list-rows.zm-dense-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(120, 200, 255, 0.08);
  background: transparent;
  transition: background 0.15s ease;
}
.zm-dense-list article:last-child,
.zm-dense-list .zm-dense-row:last-child,
.zm-list-rows.zm-dense-list article:last-child {
  border-bottom: 0;
}
.zm-dense-list article:hover,
.zm-dense-list .zm-dense-row:hover,
.zm-list-rows.zm-dense-list article:hover {
  background: rgba(61, 224, 255, 0.04);
}
.zm-dense-list h3,
.zm-list-rows.zm-dense-list h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
}
.zm-dense-list p,
.zm-list-rows.zm-dense-list p {
  grid-column: 1;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.zm-dense-list .zm-chip,
.zm-list-rows.zm-dense-list .zm-chip {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
}
.zm-dense-list .zm-progress {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  height: 4px;
}
.zm-dense-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.zm-dense-head h2 { margin: 0; }
.zm-dense-head__count {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Activity timeline */
.zm-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.zm-activity__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0 0.65rem 0.15rem;
}
.zm-activity__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 1.35rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(61, 224, 255, 0.35), rgba(61, 224, 255, 0.05));
}
.zm-activity__dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 224, 255, 0.15);
}
.zm-activity__item.is-muted .zm-activity__dot {
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(139, 155, 180, 0.12);
}
.zm-activity__body { min-width: 0; }
.zm-activity__title {
  margin: 0;
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
}
.zm-activity__meta {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Empty states */
.zm-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.75rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed rgba(120, 200, 255, 0.22);
  background: rgba(8, 12, 22, 0.45);
}
.zm-empty__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  border: 1px solid rgba(61, 224, 255, 0.28);
  background:
    radial-gradient(circle at 40% 35%, rgba(61, 224, 255, 0.2), transparent 65%),
    rgba(61, 224, 255, 0.06);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.zm-empty__title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--white);
  font-family: var(--font-display);
}
.zm-empty__text {
  margin: 0;
  max-width: 32ch;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Panels denser */
.zm-portal-panel {
  padding: 1.05rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%),
    rgba(8, 12, 22, 0.8);
}
.zm-portal-panel h2 {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.zm-portal-grid {
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.zm-portal-split {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 900px) {
  .zm-portal-split--2 { grid-template-columns: 1.15fr 0.85fr; }
}

/* Doc rows denser in lists */
.zm-dense-list .zm-doc-row {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(120, 200, 255, 0.08);
  background: transparent;
  padding: 0.75rem 0.95rem;
}
.zm-dense-list .zm-doc-row:last-child { border-bottom: 0; }
.zm-dense-list .zm-doc-row:hover {
  background: rgba(61, 224, 255, 0.04);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .zm-portal-orbs__orb { animation: none; }
}

/* === Admin: full-bleed + top primary tabs === */
.zm-portal-shell.zm-portal-shell--admin {
  --zm-admin-topnav-h: 3.15rem;
  max-width: none !important;
  width: 100% !important;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(0.5rem, 1vw, 1rem);
  padding-right: clamp(0.5rem, 1vw, 1rem);
}

.zm-app.zm-app--admin {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  grid-template-columns: none !important;
}

.zm-app--admin .zm-app__nav,
.zm-app--admin .zm-app__nav--top {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.3rem;
  width: 100%;
  padding: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: sticky;
  top: calc(var(--nav-h, 72px) + 0.35rem);
  /* Above SEO mount fixed chrome (toggle z-index 90 / sidebar 80) */
  z-index: 260;
  isolation: isolate;
  pointer-events: auto;
  border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(61, 224, 255, 0.07), transparent 55%),
    rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (min-width: 960px) {
  .zm-app--admin .zm-app__nav,
  .zm-app--admin .zm-app__nav--top {
    flex-direction: row !important;
    position: sticky;
    top: calc(var(--nav-h, 72px) + 0.5rem);
  }
}

.zm-app--admin .zm-app__nav button {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: left;
  padding: 0.6rem 0.95rem;
  min-height: 2.55rem;
}

.zm-app--admin .zm-app__main {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

body.is-seo-workspace .zm-portal-shell.zm-portal-shell--admin {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0;
}
/* Pečať SEO: no marketing-nav offset; shell is full viewport */
body.zm-pecat.is-seo-workspace .zm-portal-shell.zm-portal-shell--admin,
body.zm-pecat.is-seo-workspace main.zm-portal-shell {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.is-seo-workspace .zm-app-hero { display: none; }

body.is-seo-workspace:not(.zm-pecat) .zm-app.zm-app--admin {
  gap: 0.65rem;
  min-height: calc(100vh - var(--nav-h, 72px) - 1.1rem);
  min-height: calc(100dvh - var(--nav-h, 72px) - 1.1rem);
}

body.is-seo-workspace:not(.zm-pecat) .zm-app--admin .zm-app__nav {
  top: calc(var(--nav-h, 72px) + 0.35rem);
  flex-shrink: 0;
  z-index: 260;
  pointer-events: auto;
}

body.is-seo-workspace .zm-app__main,
body.is-seo-workspace .zm-seo-workspace,
body.is-seo-workspace .zm-seo-mount {
  position: relative;
  z-index: 1;
}

body.is-seo-workspace:not(.zm-pecat) .zm-seo-workspace {
  min-height: calc(100vh - var(--nav-h, 72px) - var(--zm-admin-topnav-h) - 2rem);
  min-height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h) - 2rem);
  border-radius: 0;
  border: 0;
  /* Contain SEO overflow so it cannot paint over tools tabs */
  overflow: hidden;
  isolation: isolate;
}

body.is-seo-workspace:not(.zm-pecat) .zm-seo-frame,
body.is-seo-workspace:not(.zm-pecat) .zm-seo-mount {
  display: block;
  width: 100%;
  height: calc(100vh - var(--nav-h, 72px) - var(--zm-admin-topnav-h) - 2.2rem);
  height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h) - 2.2rem);
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
}

@media (max-width: 900px) {
  .zm-app--admin .zm-app__nav {
    gap: 0.35rem;
    padding: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .zm-app--admin .zm-app__nav button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
  }
  .zm-app--admin .zm-app__nav .zm-nav-ico {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.7rem;
  }
  body.is-seo-workspace .zm-app.zm-app--admin {
    display: flex;
    flex-direction: column;
  }
  body.is-seo-workspace .zm-seo-frame,
  body.is-seo-workspace .zm-seo-mount,
  body.is-seo-workspace .zm-seo-workspace {
    min-height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h, 3.5rem) - 1rem);
    height: calc(100dvh - var(--nav-h, 72px) - var(--zm-admin-topnav-h, 3.5rem) - 1rem);
    overflow: hidden;
  }
  .zm-portal-login {
    padding: 2.75rem 0.85rem 2rem;
  }
  .zm-portal-card {
    padding: 1.15rem 1rem 1.25rem;
  }
  .zm-nav .zm-btn--sm,
  .zm-nav .zm-btn {
    min-height: 44px;
  }
}

@media (max-width: 639px) {
  .zm-app-hero__meta {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .zm-stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Legal documents library === */
.zm-docs-lib__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.zm-docs-lib__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}
.zm-docs-lib__lead {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}
.zm-docs-lib__disclaimer {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 190, 80, 0.28);
  background: rgba(255, 190, 80, 0.08);
  color: #ffd9a0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.zm-docs-lib__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.zm-docs-filter {
  appearance: none;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(8, 14, 26, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.zm-docs-filter:hover { border-color: rgba(61, 224, 255, 0.35); color: var(--white); }
.zm-docs-filter.is-active,
.zm-docs-filter[aria-selected="true"] {
  border-color: rgba(61, 224, 255, 0.55);
  color: var(--cyan);
  background: rgba(61, 224, 255, 0.08);
}
.zm-docs-lib__list {
  display: grid;
  gap: 0.55rem;
}
.zm-docs-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(120, 200, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.55);
}
.zm-docs-card:hover { border-color: rgba(61, 224, 255, 0.28); }
.zm-docs-card__cat {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}
.zm-docs-card__title {
  margin: 0;
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}
.zm-docs-card__sum {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.zm-docs-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.zm-docs-btn { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
.zm-doc-fill-modal__panel { width: min(100%, 820px); }
.zm-doc-fill-modal__body { display: grid; gap: 0.85rem; }
.zm-doc-fill-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.zm-doc-fill-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.zm-doc-fill-field--wide { grid-column: 1 / -1; }
.zm-doc-fill-field input,
.zm-doc-fill-field textarea {
  width: 100%;
  border: 1px solid rgba(120, 200, 255, 0.18);
  background: rgba(4, 10, 20, 0.85);
  color: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.zm-doc-fill-field input:focus,
.zm-doc-fill-field textarea:focus {
  outline: none;
  border-color: rgba(61, 224, 255, 0.55);
}
.zm-doc-fill-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem 1.1rem;
  border-top: 1px solid var(--line);
}
.zm-doc-fill-status { margin: 0; font-size: 0.82rem; color: var(--muted); flex: 1 1 12rem; }
.zm-doc-fill-preview {
  border: 1px solid rgba(120, 200, 255, 0.12);
  border-radius: 10px;
  background: rgba(4, 10, 20, 0.65);
  padding: 0.9rem 1rem;
  max-height: 240px;
  overflow: auto;
}
.zm-doc-fill-preview__inner { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.zm-doc-fill-preview__inner h2,
.zm-doc-fill-preview__inner h3 { color: var(--white); }
.zm-doc-modal__body .zm-doc-disclaimer {
  margin-top: 1.25rem;
  color: #ffd9a0;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .zm-docs-card {
    grid-template-columns: 1fr;
  }
  .zm-docs-card__actions { justify-content: flex-start; }
  .zm-doc-fill-form { grid-template-columns: 1fr; }
}

/* === Firm subscription / Správa firmy (slice 1) === */
.zm-firm-manage-mount { margin-top: 1.25rem; }
.zm-firm-sub__disclaimer,
.zm-firm-manage__disclaimer {
  margin: 0.65rem 0 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid rgba(255, 196, 120, 0.65);
  background: rgba(255, 196, 120, 0.08);
  color: #ffd9a0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.zm-firm-sub__stripe {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted, #9aa6b8);
}
.zm-firm-sub__stripe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}
.zm-firm-sub__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.zm-firm-sub__influencer { margin-top: 1rem; font-size: 0.85rem; }
.zm-chip--ok { border-color: rgba(61, 224, 255, 0.45); color: #3de0ff; }
.zm-chip--muted { opacity: 0.75; }
.zm-firm-manage__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.zm-firm-manage__lead { margin: 0.25rem 0 0; color: var(--muted, #9aa6b8); font-size: 0.92rem; }
.zm-firm-manage__cta {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(61, 224, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(61, 224, 255, 0.08), rgba(10, 16, 28, 0.4));
  margin-bottom: 1rem;
}
.zm-firm-manage__cta h3 { margin: 0 0 0.4rem; }
.zm-firm-manage__cta p { margin: 0 0 0.65rem; color: var(--muted, #9aa6b8); }
.zm-firm-manage__cta--warn {
  border-color: rgba(255, 180, 80, 0.45);
  background: linear-gradient(145deg, rgba(255, 180, 80, 0.12), rgba(10, 16, 28, 0.4));
}
.zm-firm-sub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.zm-firm-manage__month {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted, #9aa6b8);
}
.zm-firm-manage__month input[type="month"] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
}
.zm-firm-manage__stub-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted, #9aa6b8);
  line-height: 1.55;
}
.zm-firm-manage__stub-list strong { color: var(--white, #fff); }

/* Slice 2 ? reporty / kalendár / mail / influencer */
.zm-firm-report-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: flex-end;
  font-size: 0.85rem;
  color: var(--muted, #9aa6b8);
}
.zm-firm-report-controls label {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}
.zm-firm-report-controls select,
.zm-firm-report-controls input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  min-width: 7.5rem;
}
.zm-firm-report__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.zm-firm-report__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.zm-firm-report__stats > div {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.zm-firm-report__stats span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #9aa6b8);
  margin-bottom: 0.2rem;
}
.zm-firm-report__stats strong { font-size: 1.05rem; }
.zm-firm-report__sub {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}
.zm-firm-report__note { margin-top: 0.75rem; font-size: 0.8rem; }
.zm-firm-table-wrap { overflow-x: auto; }
.zm-firm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 0.35rem 0 0.75rem;
}
.zm-firm-table th,
.zm-firm-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zm-firm-table th { color: var(--muted, #9aa6b8); font-weight: 600; }

.zm-firm-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.zm-firm-cal__dow {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted, #9aa6b8);
  padding: 0.2rem;
}
.zm-firm-cal__cell {
  min-height: 4.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.16);
}
.zm-firm-cal__cell--empty { visibility: hidden; }
.zm-firm-cal__cell--has { border-color: rgba(61, 224, 255, 0.28); }
.zm-firm-cal__day {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.zm-firm-cal__cell ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zm-firm-cal__ev {
  font-size: 0.65rem;
  line-height: 1.25;
  color: #cfefff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.12rem;
}
.zm-firm-cal__ev--invoice_due { color: #ffd9a0; }
.zm-firm-cal__ev--invoice_issued { color: #9dffc3; }
.zm-firm-cal__more { font-size: 0.65rem; color: var(--muted, #9aa6b8); }
.zm-firm-cal__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted, #9aa6b8);
  font-size: 0.88rem;
  line-height: 1.5;
}
.zm-firm-cal__list strong { color: var(--white, #fff); }
.zm-firm-cal__form { margin-top: 0.5rem; }

.zm-firm-mail__alias {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 224, 255, 0.22);
  background: rgba(61, 224, 255, 0.06);
}
.zm-firm-mail__alias p { margin: 0 0 0.35rem; }
.zm-firm-mail__alias p:last-child { margin-bottom: 0; }
.zm-firm-mail__modes {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0;
}
.zm-firm-mail__modes legend {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted, #9aa6b8);
}

@media (max-width: 720px) {
  .zm-firm-sub__row { grid-template-columns: 1fr; }
  .zm-firm-cal__grid { gap: 0.2rem; }
  .zm-firm-cal__cell { min-height: 3.4rem; padding: 0.2rem; }
  .zm-firm-cal__ev { display: none; }
  .zm-firm-cal__cell--has .zm-firm-cal__day { color: #3de0ff; }
}

/* === Portal: Odhlási? v?dy dostupné (agency CSS hides .zm-btn--sm under 420px) */
.zm-portal-body .zm-nav__inner > .zm-btn--sm.zm-portal-logout,
.zm-portal-body .zm-nav__inner > #logout {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.zm-portal-body .zm-nav__inner .zm-burger {
  margin-left: 0.35rem;
}
.zm-mobile-panel #logout-drawer {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 48px;
}
.zm-nav-overlay[hidden] {
  display: none !important;
}

/* Slice 5 ? vault / media / brand */
.zm-media-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.zm-media-card {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 28, 0.55);
}
.zm-media-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.zm-brand-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.zm-brand-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}
.zm-tpl-preview {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.35rem;
  max-height: 7rem;
  overflow: auto;
}
#firm-docs-panel .zm-portal-actions,
#firm-media-panel .zm-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

/* === Portal polish 2026-09-29 — hierarchy, leads, empty states === */
.zm-dense-head {
  margin-bottom: 0.55rem;
  align-items: baseline;
}
.zm-dense-head h2 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.zm-dense-head__count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.zm-panel-lead {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.zm-portal-panel {
  padding: 1.15rem 1.2rem 1.25rem;
}
.zm-portal-panel + .zm-portal-panel,
.zm-portal-split + .zm-portal-panel {
  margin-top: 0.95rem;
}
.zm-empty {
  padding: 2rem 1.35rem;
  gap: 0.45rem;
  border-color: rgba(61, 224, 255, 0.2);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 224, 255, 0.06), transparent 55%),
    rgba(8, 12, 22, 0.45);
}
.zm-empty__icon {
  margin-bottom: 0.25rem;
}
.zm-empty__title {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}
.zm-empty__text {
  max-width: 36ch;
  font-size: 0.84rem;
  line-height: 1.5;
}
.zm-app__nav button {
  letter-spacing: -0.01em;
}
.zm-settings-subnav {
  gap: 0.45rem !important;
  margin-bottom: 1.1rem !important;
}
.zm-settings-subnav .zm-btn.is-active {
  border-color: rgba(61, 224, 255, 0.45);
  color: var(--cyan);
  background: rgba(61, 224, 255, 0.08);
}

#users-filters .zm-btn.is-active {
  border-color: rgba(61, 224, 255, 0.55);
  color: #041018;
  background: #3de0ff;
}
.zm-mail-note {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 224, 255, 0.35);
  background: rgba(61, 224, 255, 0.08);
  color: #e8eef7;
  line-height: 1.45;
}
#users article.is-pending {
  border-left: 3px solid #3de0ff;
}
.zm-mail-settings,
.zm-mail-editor {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.zm-mail-logo-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.zm-mail-logo-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #0a1628;
  border: 1px solid #1e2d42;
  border-radius: 12px;
}
.zm-mail-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (min-width: 960px) {
  .zm-mail-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
  }
}
.zm-mail-group__label {
  margin: 0.85rem 0 0.35rem;
  color: #7a8ba3;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.zm-mail-card {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  margin: 0 0 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #1e2d42;
  background: #0d1a2d;
  color: #e8eef7;
  cursor: pointer;
}
.zm-mail-card span {
  color: #8fa3bd;
  font-size: 0.82rem;
}
.zm-mail-card.is-active {
  border-color: #3de0ff;
  box-shadow: inset 0 0 0 1px rgba(61, 224, 255, 0.35);
}
.zm-mail-editor textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
}
.zm-mail-preview {
  width: 100%;
  min-height: 420px;
  border: 1px solid #1e2d42;
  border-radius: 12px;
  background: #071018;
}

