:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #6d7c74;
  --line: #dfe8e2;
  --paper: #f6faf7;
  --panel: #ffffff;
  --deep: #1f7a53;
  --blue: #237a68;
  --mint: #e4f5ec;
  --amber: #b7791f;
  --amber-soft: #fff1d8;
  --red: #a43732;
  --red-soft: #f9dedb;
  --green: #1f7a53;
  --green-soft: #e4f5ec;
  --shadow: 0 18px 50px rgb(31 122 83 / 12%);
}

.admin-screen,
.cabinet-summary {
  display: grid;
  gap: 16px;
}

.admin-kpi-grid,
.quick-actions-grid,
.cabinet-summary {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-kpi-grid,
.quick-actions-grid {
  display: grid;
  gap: 12px;
}

.admin-kpi-grid article,
.cabinet-summary,
.access-limited {
  background: #ffffff;
  border: 1px solid #dce9e2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 122, 83, 0.08);
  padding: 16px;
}

.admin-kpi-grid span,
.cabinet-summary span {
  color: #617168;
  display: block;
  font-size: 13px;
}

.admin-kpi-grid strong,
.cabinet-summary strong {
  color: #173d2c;
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.cabinet-summary {
  align-items: end;
  display: grid;
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trial-warning {
  color: #9a5b00;
  font-weight: 700;
  margin: 0;
}

.access-limited {
  align-items: center;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-table-wrap {
  background: #ffffff;
  border: 1px solid #dce9e2;
  border-radius: 14px;
  overflow: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf4f0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #617168;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  background: #eef7f2;
  border-radius: 999px;
  color: #1f7a53;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.status-pill.blocked,
.status-pill.expired {
  background: #fee2e2;
  color: #991b1b;
}

.danger-button {
  color: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(223 232 226 / 78%);
  background: rgb(255 255 255 / 94%);
  padding: 14px 28px;
  backdrop-filter: blur(12px);
}

.public-brand,
.public-header nav button,
.public-header nav a {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.public-brand {
  padding: 0;
}

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

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-symbol {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f7a53, #36a66f);
  box-shadow: 0 12px 26px rgb(31 122 83 / 22%);
}

.logo-symbol::before,
.logo-symbol::after {
  position: absolute;
  background: rgb(255 255 255 / 22%);
  content: "";
}

.logo-symbol::before {
  top: 8px;
  left: 10px;
  width: 22px;
  height: 7px;
  transform: skewX(-28deg);
}

.logo-symbol::after {
  right: 8px;
  bottom: 9px;
  width: 8px;
  height: 18px;
  border-radius: 4px;
}

.logo-phone {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 5px;
}

.logo-phone::after {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.logo-check {
  position: absolute;
  right: 4px;
  bottom: 5px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2fc278;
}

.logo-check::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.logo-text {
  color: #123b2a;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.landing-page {
  display: grid;
  gap: 0;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

.landing-hero {
  display: grid;
  min-height: 78vh;
  align-items: end;
  padding: 84px 40px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 82%) 42%, rgb(255 255 255 / 16%) 100%),
    url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1800&q=85") center / cover;
  color: var(--ink);
}

.landing-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1;
  color: #123b2a;
}

.landing-hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: #41534a;
  font-size: 20px;
  line-height: 1.45;
}

.hero-checks {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-checks li {
  position: relative;
  border: 1px solid rgb(31 122 83 / 14%);
  border-radius: 14px;
  background: rgb(255 255 255 / 78%);
  padding: 10px 12px 10px 36px;
  color: #234638;
  font-weight: 800;
}

.hero-checks li::before {
  position: absolute;
  left: 12px;
  color: var(--deep);
  content: "✓";
  font-weight: 950;
}

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

.trial-note {
  margin: 14px 0 0;
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
}

.landing-section {
  display: grid;
  gap: 22px;
  padding: 64px 40px;
}

.landing-section h2 {
  margin: 0;
  font-size: 30px;
}

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

.landing-grid article,
.landing-steps li,
.audience-list article,
.impact-grid article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 34px rgb(31 122 83 / 7%);
}

.landing-grid h3 {
  margin: 12px 0 0;
  font-size: 18px;
}

.landing-grid p,
.impact-grid p,
.audience-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--deep);
  font-weight: 950;
}

.feature-icon::before {
  content: "✓";
}

.feature-icon.scan::before {
  content: "⌗";
}

.feature-icon.invoice::before {
  content: "≡";
}

.feature-icon.mercury::before {
  content: "M";
}

.feature-icon.cz::before {
  content: "ЧЗ";
  font-size: 12px;
}

.feature-icon.date::before {
  content: "31";
  font-size: 13px;
}

.feature-icon.batch::before {
  content: "□";
}

.feature-icon.excel::before {
  content: "X";
}

.feature-icon.export::before {
  content: "↗";
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.landing-steps li,
.audience-list article {
  font-weight: 900;
}

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

.audience-list h3 {
  margin: 0;
}

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

.impact-grid strong {
  display: block;
  color: var(--deep);
  font-size: 30px;
}

.impact-grid h3 {
  margin: 10px 0 0;
  font-size: 18px;
}

.public-auth-layout {
  min-height: calc(100vh - 65px);
}

.registration-result {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--green);
  font-weight: 900;
}

.verify-card {
  text-align: center;
}

.verify-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.resend-verification-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  text-align: left;
}

.verify-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--deep);
  font-size: 30px;
  font-weight: 950;
}

.verify-card[data-status="error"] .verify-mark {
  background: var(--red-soft);
  color: var(--red);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  background:
    linear-gradient(110deg, rgb(31 122 83 / 82%), rgb(228 245 236 / 76%)),
    url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1600&q=85") center / cover;
}

.login-intro {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  color: white;
}

.login-intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
}

.login-intro p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: 20px;
  line-height: 1.45;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(246 244 238 / 94%);
}

.login-form {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-form h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.field span,
.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgb(31 122 83 / 14%);
}

.demo-logins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.demo-logins button,
.ghost-button,
.icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.primary-button,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
}

.primary-button {
  background: var(--deep);
  box-shadow: 0 12px 28px rgb(31 122 83 / 22%);
}

.danger-button {
  background: var(--red);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--deep);
}

.form-note {
  text-align: center;
}

.header-actions,
.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.file-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.workspace {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgb(246 244 238 / 94%);
  padding: 10px 22px;
  backdrop-filter: blur(14px);
}

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

.account-status {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 8px 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.account-status.verified {
  border-color: rgb(31 122 83 / 22%);
  background: var(--green-soft);
  color: var(--deep);
}

.account-status.unverified {
  border-color: rgb(183 121 31 / 28%);
  background: var(--amber-soft);
  color: var(--amber);
}

.small-button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.sync-pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.sync-pill.online {
  background: var(--green-soft);
  color: var(--green);
}

.sync-pill.offline {
  background: var(--amber-soft);
  color: var(--amber);
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 20px;
}

.tab {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  border-color: var(--deep);
  background: var(--mint);
  color: var(--deep);
}

.view {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.shipment-grid {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.picker-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.compact-field {
  margin: 0;
}

.warehouse-board {
  display: grid;
  gap: 14px;
}

.work-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.work-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.work-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.scanner-dock {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto);
  gap: 10px;
}

.scan-button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--deep);
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.scan-button.active {
  background: var(--red);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgb(24 32 31 / 6%);
}

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

.panel-header h2,
.section-header h2 {
  margin: 0;
  font-size: 18px;
}

.panel-body {
  padding: 16px;
}

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

.scan-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.manual-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
}

.camera {
  position: relative;
  display: none;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1c1b;
}

.camera.active {
  display: block;
}

.camera video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 78%);
  border-radius: 8px;
  pointer-events: none;
}

.scan-frame span {
  width: 88%;
  height: 2px;
  background: #e64e43;
  box-shadow: 0 0 14px rgb(230 78 67 / 70%);
}

.status-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.scan-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.scan-fallback {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.scan-fallback .field {
  margin: 0;
}

.scan-fallback .ghost-button {
  width: 100%;
  min-height: 44px;
}

.photo-fallback {
  display: grid;
  gap: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.photo-fallback input {
  width: 100%;
  color: var(--ink);
  font-size: 14px;
}

.draft-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf7;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

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

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

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

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

.qty-input {
  width: 84px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.ok {
  background: var(--green-soft);
  color: var(--green);
}

.badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.block {
  background: var(--red-soft);
  color: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.comments {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.comment {
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  padding: 10px 12px;
  color: #4d3416;
}

.quick-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scanned-list {
  display: grid;
  gap: 10px;
}

.scan-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.9fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.scan-line h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.scan-line p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.line-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.line-facts span,
.line-facts label {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.line-facts strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.marking-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 10px;
}

.marking-code-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  overflow-wrap: anywhere;
}

.log-panel {
  margin-top: 6px;
}

.log-row {
  display: grid;
  grid-template-columns: 150px 150px minmax(180px, 1fr) 130px 170px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.log-row strong {
  color: var(--ink);
}

.directory-layout,
.notifications-layout,
.architecture-layout {
  display: grid;
  gap: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.record-card {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.record-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.record-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.code-panel {
  overflow: auto;
  max-height: 330px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #142221;
  color: #edf7f3;
  padding: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--deep);
  color: white;
  padding: 13px 15px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(24 32 31 / 48%);
  padding: 16px;
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.weight-modal {
  max-width: 420px;
}

.choice-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: left;
}

.choice-card strong {
  color: var(--ink);
  font-size: 16px;
}

.choice-card span {
  color: var(--muted);
  font-size: 13px;
}

.cz-result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.cz-result-card.ok {
  border-color: rgb(36 114 79 / 35%);
  background: var(--green-soft);
}

.cz-result-card.warn {
  border-color: rgb(178 107 21 / 35%);
  background: var(--amber-soft);
}

.cz-result-card.block {
  border-color: rgb(164 55 50 / 35%);
  background: var(--red-soft);
}

.cz-result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cz-result-title h2 {
  margin: 0;
  font-size: 20px;
}

.cz-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cz-facts div {
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  background: rgb(255 255 255 / 58%);
  padding: 9px;
}

.cz-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cz-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.raw-code {
  margin-top: 10px;
}

.raw-code code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  border-radius: 8px;
  background: rgb(20 34 33 / 88%);
  color: #fff;
  padding: 10px;
}

.vertical-actions {
  align-items: stretch;
  flex-direction: column;
  margin: 14px 0;
}

.cz-scan-list {
  display: grid;
  gap: 8px;
}

.cz-scan-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 150px 170px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.cz-scan-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.warehouse-app {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbf8, #eef7f1);
}

html.screenshot-mobile,
html.screenshot-mobile body,
html.screenshot-mobile .warehouse-app {
  width: 390px;
  max-width: 390px;
  overflow-x: hidden;
}

.compact-topbar {
  position: static;
  min-height: 64px;
  border-bottom-color: rgb(223 232 226 / 82%);
  background: rgb(255 255 255 / 92%);
}

.compact-topbar .ghost-button {
  width: auto;
  min-width: 96px;
}

.simple-tabs {
  justify-content: center;
  padding: 8px 12px;
  background: #fff;
}

.warehouse-view {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
  overflow-x: hidden;
}

.keeper-screen {
  display: grid;
  gap: 12px;
}

.client-picker {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 7px 11px;
  box-shadow: 0 10px 26px rgb(31 122 83 / 6%);
}

.client-picker span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.client-picker select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  outline: none;
}

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

.keeper-counters div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 26px rgb(31 122 83 / 6%);
}

.keeper-counters span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.keeper-counters strong {
  color: var(--deep);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.main-scan-button {
  min-height: 72px;
  margin-top: 4px;
  border-radius: 20px;
  background: var(--deep);
  font-size: 22px;
  letter-spacing: 0;
  box-shadow: 0 18px 38px rgb(31 122 83 / 24%);
}

.function-entry-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.camera-restart-button {
  width: 100%;
  min-height: 44px;
  margin-top: -4px;
}

.center-text {
  text-align: center;
}

.last-scan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 28px rgb(31 122 83 / 8%);
}

.last-scan-card.ok {
  border-left: 6px solid var(--green);
}

.last-scan-card.warn {
  border-left: 6px solid var(--amber);
}

.last-scan-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.last-scan-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.last-scan-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.last-scan-card dt {
  color: var(--muted);
  font-weight: 800;
}

.last-scan-card dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.scan-checks {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--green);
  font-weight: 900;
}

.fefo-warning {
  margin-top: 12px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #51350d;
  padding: 12px;
  font-weight: 800;
}

.unknown-scan-card .unknown-message {
  margin: 12px 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.unknown-actions {
  display: grid;
  gap: 8px;
}

.unknown-actions .primary-button,
.unknown-actions .ghost-button {
  width: 100%;
  min-height: 44px;
}

.bind-product-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.keeper-list-screen {
  display: grid;
  gap: 10px;
}

.keeper-list-screen h1 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.journal-entry,
.problem-entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.journal-entry time,
.problem-entry time {
  color: var(--muted);
  font-weight: 900;
}

.journal-entry h2,
.problem-entry h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.journal-entry p,
.problem-entry p {
  margin: 3px 0;
  color: var(--muted);
  line-height: 1.35;
}

.problem-entry .repeat-count {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 900;
}

.problem-entry {
  border-left: 5px solid var(--amber);
}

.problem-entry.resolved {
  opacity: 0.72;
  border-left-color: var(--green);
}

.documents-screen,
.document-section {
  display: grid;
  gap: 12px;
}

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

.documents-summary div,
.invoice-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.documents-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.documents-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.document-integration-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.document-integration-panel h2 {
  margin: 0;
}

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

.integration-state-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  padding: 10px;
}

.integration-state-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.document-history h2,
.document-history p {
  margin: 0;
}

.document-history div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.document-history span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.document-section h2,
.document-section-header h2 {
  margin: 0;
  font-size: 20px;
}

.invoice-lines {
  display: grid;
  gap: 10px;
}

.invoice-line {
  display: grid;
  gap: 10px;
}

.invoice-line-main h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.invoice-line-main p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.invoice-line dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.invoice-line dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.invoice-line dt {
  color: var(--muted);
  font-weight: 800;
}

.invoice-line dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.quantity-editor {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
}

.quantity-editor button,
.quantity-editor input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.invoice-line-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ghost-button.danger {
  color: var(--red);
}

.directories-screen {
  display: grid;
  gap: 14px;
}

.directory-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.directory-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.directory-tabs button.active {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.directory-list {
  display: grid;
  gap: 10px;
}

.product-table-host {
  display: block;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: max-content;
  min-width: min(100%, 920px);
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6faf7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.data-table tbody tr:hover {
  background: #f2fbf5;
}

.data-table tbody tr.active {
  background: #e3f5eb;
  box-shadow: inset 3px 0 0 var(--deep);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-table .product-select-col {
  width: 42px;
}

.product-table .product-gtin-col {
  width: 150px;
}

.product-table .product-name-col {
  width: 330px;
}

.product-table .product-article-col {
  width: 120px;
}

.product-table .product-category-col {
  width: 140px;
}

.product-table .product-type-col {
  width: 120px;
}

.product-table .product-unit-col {
  width: 115px;
}

.product-table .product-active-col {
  width: 76px;
}

.data-table .select-cell {
  text-align: center;
}

.data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--deep);
  cursor: pointer;
}

.data-table .name-cell {
  white-space: normal;
  font-weight: 800;
  line-height: 1.25;
}

.data-table .mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.product-editor-row td {
  padding: 0;
  background: #f6fbf8;
  overflow: visible;
  white-space: normal;
}

.product-editor-row .directory-editor {
  border: 0;
  border-top: 1px solid #b8dfca;
  border-radius: 0;
  box-shadow: inset 3px 0 0 var(--deep);
}

.inline-product-editor {
  margin: 0;
}

.inline-editor-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-editor-header strong {
  color: var(--deep);
  font-size: 15px;
}

.inline-editor-header .ghost-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.table-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #b8dfca;
  border-radius: 8px;
  background: #f1fbf5;
  padding: 10px 12px;
}

.table-bulk-actions strong {
  color: var(--deep);
  font-size: 14px;
}

.table-bulk-actions .ghost-button {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
}

.directory-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.directory-search-panel .field {
  margin: 0;
}

.directory-search-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.directory-search-panel strong {
  color: var(--ink);
}

.import-report {
  border: 1px solid #b8dfca;
  border-radius: 8px;
  background: #f1fbf5;
  color: var(--ink);
  padding: 12px;
}

.import-report p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.import-report ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.directory-editor {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.directory-editor .field {
  margin: 0;
}

.product-card-editor {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.product-service-fields {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-service-fields span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbf8;
  padding: 6px 10px;
}

.directory-actions {
  justify-content: flex-end;
}

.functions-screen,
.function-detail-screen {
  display: grid;
  gap: 14px;
}

.function-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.function-header h1 {
  margin: 0;
  font-size: 24px;
}

.function-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.function-header .ghost-button {
  width: auto;
  min-width: 96px;
  min-height: 40px;
}

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

.function-card,
.function-row,
.function-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.function-card {
  display: grid;
  gap: 9px;
}

.function-card h2,
.function-row h2 {
  margin: 0;
  font-size: 17px;
}

.function-card p,
.function-row p,
.function-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.function-subtitle {
  margin: 4px 0 0;
  font-size: 18px;
}

.function-card .primary-button,
.function-create-button {
  min-height: 42px;
}

.integration-check-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
}

.function-list {
  display: grid;
  gap: 10px;
}

.function-row.warn {
  border-left: 5px solid var(--amber);
}

.function-row dl {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
}

.function-row dl div,
.function-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.function-row dt,
.function-summary span {
  color: var(--muted);
  font-weight: 800;
}

.function-row dd,
.function-summary strong {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.function-summary {
  display: grid;
  gap: 8px;
}

.function-select {
  margin: 0;
}

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

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.setting-toggle input {
  width: 22px;
  height: 22px;
}

@media (max-width: 920px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .landing-grid,
  .landing-steps,
  .impact-grid,
  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-intro {
    min-height: 310px;
    padding: 32px 22px;
  }

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

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

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

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

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

  .directory-editor {
    grid-template-columns: 1fr 1fr;
  }

  .product-card-editor {
    grid-template-columns: 1fr;
  }

  .directory-actions {
    grid-column: 1 / -1;
  }

  .scanner-dock {
    grid-template-columns: 1fr 1fr;
  }

  .scan-line {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .landing-hero,
  .landing-section {
    padding-inline: 18px;
  }

  .landing-grid,
  .landing-steps,
  .impact-grid,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .hero-checks,
  .keeper-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .userbox {
    width: 100%;
    justify-content: space-between;
  }

  .view {
    padding: 12px;
  }

  .panel-header,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls-grid,
  .picker-strip,
  .scan-actions,
  .manual-code,
  .draft-meta,
  .scan-summary,
  .scanner-dock {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .danger-button,
  .ghost-button,
  .scan-button {
    width: 100%;
  }

  .work-header {
    flex-direction: column;
  }

  .function-header {
    display: grid;
  }

  .header-actions,
  .directory-actions {
    width: 100%;
  }

  .directory-tabs,
  .directory-search-panel,
  .directory-editor {
    grid-template-columns: 1fr;
  }

  .camera video {
    aspect-ratio: 4 / 3;
  }

  .line-facts {
    grid-template-columns: 1fr;
  }

  .marking-code-row,
  .cz-facts,
  .cz-scan-row {
    grid-template-columns: 1fr;
  }

  .cz-result-title {
    flex-direction: column;
  }
}

.cabinet-home-screen {
  gap: 18px;
}

.cabinet-action-grid,
.document-create-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.large-action {
  min-height: 58px;
  font-size: 16px;
  justify-content: center;
}

.work-document-form,
.work-document-editor {
  display: grid;
  gap: 16px;
}

.compact-form {
  max-width: none;
}

.document-item-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.document-item-form h2,
.document-item-form button {
  grid-column: 1 / -1;
}

.work-document-card .primary-button {
  width: auto;
}

.compact-comment {
  margin-top: 10px;
}

.access-limited.ok {
  border-color: rgba(31, 122, 83, 0.22);
  background: #eef8f3;
  color: #145f3f;
}

.integrations-screen {
  display: grid;
  gap: 18px;
}

.integration-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.integration-card {
  background: #fff;
  border: 1px solid rgba(31, 122, 83, 0.14);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(20, 72, 49, 0.08);
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.integration-card-header h2 {
  margin: 0;
}

.integration-health {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.integration-check-history {
  border-top: 1px solid rgba(31, 122, 83, 0.12);
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-top: 8px;
}

.integration-check-history strong {
  color: var(--ink);
  font-size: 12px;
}

.error-text {
  color: #b42318;
}

.integration-status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
}

.integration-status.connected {
  background: #e7f7ee;
  color: #1f7a53;
}

.integration-status.configured {
  background: #fff4d7;
  color: #8a5a00;
}

.integration-status.error {
  background: #ffe8e8;
  color: #b42318;
}

.integration-status.not-configured {
  background: #f1f3f4;
  color: #667085;
}

.integration-actions {
  display: grid;
  gap: 8px;
}

.integration-advanced {
  border: 1px solid rgba(31, 122, 83, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.integration-advanced summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.integration-advanced .field {
  margin-top: 10px;
}

.integration-log-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .integration-log-filters {
    grid-template-columns: 1fr;
  }
}
