:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #d6dde5;
  --primary: #236e5d;
  --primary-hover: #1c5a4c;
  --secondary: #5f6b7a;
  --secondary-hover: #515d6b;
  --danger: #b03a3a;
  --danger-hover: #962f2f;
  --ok: #217a4b;
  --warning: #9a6b12;
  --btn-height: 38px;
  --btn-radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  background: var(--primary);
  border-bottom: 1px solid #1a5346;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.topbar-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
}

.topbar-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

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

.beta-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4c76a;
  color: #263238;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.topbar-nav a {
  color: #fff;
  text-decoration: none;
}

.topbar-nav a:hover {
  color: #f0fffa;
  text-decoration: underline;
}

.topbar .pill {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
}

.topbar .pill.ok {
  background: rgba(255, 255, 255, 0.2);
}

.topbar .pill.warn {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  background: #eef3f7;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: #2e5b79;
  font-size: 12px;
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.card,
.admin-panel {
  background: var(--surface);
  border: 0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.section-card.section-complete {
  border-color: #93c7a9;
  box-shadow: inset 0 0 0 1px #d6efdf;
}

.section-card.section-incomplete {
  border-color: #d8dfe7;
}

.section-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.section-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.section-state-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d1d8e1;
  background: #f5f7fa;
  color: #556271;
  font-size: 12px;
  font-weight: 600;
}

.section-state-badge.is-complete {
  border-color: #9ccbb0;
  background: #ecf8f0;
  color: #1f6b42;
}

.section-state-badge.is-incomplete {
  border-color: #d1d8e1;
  background: #f5f7fa;
  color: #556271;
}

.section-progress-card {
  padding: 10px 12px;
}

.section-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.section-progress-bar {
  height: 100%;
  width: 0;
  background: #75b08f;
  transition: width 0.2s ease;
}

.dashboard-head,
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-title {
  margin: 2px 0;
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-subtitle {
  margin: 0;
  color: var(--muted);
}

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

.marketing-hero h1 {
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1.08;
}

.marketing-grid,
.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.home-landing {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.home-hero {
  background: linear-gradient(165deg, #f6fbf9 0%, #eef5f3 100%);
}

.home-kicker {
  margin: 0 0 6px;
  color: #2d5f53;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.home-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  max-width: 20ch;
}

.home-lead {
  margin: 0;
  max-width: 70ch;
  color: #2f3d49;
  font-size: 17px;
}

.home-note {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.home-cta-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.18;
}

.home-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 76ch;
}

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

.home-card-grid .card {
  margin-bottom: 0;
}

.home-scenario-card h3,
.home-step-card h3 {
  margin: 0 0 6px;
  line-height: 1.2;
}

.home-scenario-card p,
.home-step-card p {
  margin: 0;
  color: #3a4a58;
}

.home-benefits h2 {
  margin-top: 0;
}

.home-benefits ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
}

.home-benefits-meta {
  margin: 12px 0 0;
  color: var(--muted);
}

.home-benefits-meta a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.home-benefits-meta a:hover {
  text-decoration: underline;
}

.home-cta {
  background: #f8fafb;
}

.home-cta h2 {
  margin-top: 0;
}

.home-cta p {
  margin: 0;
  color: #384a58;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-stat {
  margin-bottom: 0;
}

.dashboard-stat h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dashboard-stat p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.dashboard-stat-small {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.dashboard-search {
  margin-bottom: 10px;
}

.dashboard-search input[type="search"] {
  min-width: 280px;
}

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

.dashboard-toolbar .dashboard-search {
  margin-bottom: 0;
}

.dashboard-toolbar-actions {
  margin-left: auto;
}

.dashboard-table th {
  white-space: nowrap;
}

.dashboard-table td {
  vertical-align: middle;
}

.dashboard-table tbody tr {
  transition: background 0.15s ease;
}

.dashboard-table tbody tr:hover {
  background: #f7faf9;
}

.dashboard-title-link {
  color: #1a4c3f;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-title-link:hover {
  color: #236e5d;
  text-decoration: underline;
}

.dashboard-row-links {
  margin-top: 4px;
  font-size: 12px;
}

.dashboard-row-links a {
  color: #3a5f52;
  text-decoration: none;
  font-weight: 600;
}

.dashboard-row-links a:hover {
  color: #236e5d;
  text-decoration: underline;
}

.dashboard-col-count,
.dashboard-col-rev {
  white-space: nowrap;
}

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

.dashboard-plan-card {
  margin-bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
}

.dashboard-plan-main h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.dashboard-plan-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.draft {
  background: #ecf5f1;
  color: #195f4e;
}

.status-pill.locked {
  background: #eef1f6;
  color: #425162;
}

.dashboard-plan-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-plan-actions form {
  margin: 0;
}

.plan-edit-head {
  align-items: flex-start;
}

.plan-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.plan-edit-actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-edit-actions-group--primary .button {
  min-width: 108px;
}

.plan-process-card {
  display: grid;
  gap: 10px;
}

.plan-process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-process-step {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #475766;
  font-size: 12px;
  font-weight: 700;
}

.plan-process-step.is-active {
  background: #dfeeea;
  color: #1d5d4f;
}

.plan-process-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.plan-process-summary-item {
  background: #f7fafc;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.plan-process-summary-item span {
  color: #5a6b79;
  font-size: 12px;
  font-weight: 600;
}

.plan-process-summary-item strong {
  font-size: 22px;
  line-height: 1;
}

.section-help {
  margin: 0 0 8px;
  color: #485866;
  font-size: 13px;
}

.section-validation-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.section-validation-meta.is-error {
  color: #a53838;
}

#risk-feedback {
  margin: 8px 0 10px;
  font-size: 13px;
}

.risk-matrix-panel {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #d6e0e8;
  border-radius: 12px;
  background: #f8fbfd;
  display: grid;
  gap: 8px;
}

.risk-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.risk-matrix-help {
  margin: 0;
  font-size: 13px;
  color: #435464;
}

.risk-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.risk-matrix {
  min-width: 320px;
}

.risk-matrix-grid {
  display: grid;
  grid-template-columns: 44px repeat(5, minmax(48px, 1fr));
  gap: 6px;
  align-items: stretch;
}

.risk-matrix-corner,
.risk-matrix-axis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5d6d;
}

.risk-matrix-axis-x {
  background: #edf3f7;
  border-radius: 8px;
}

.risk-matrix-axis-y {
  background: #edf3f7;
  border-radius: 8px;
}

.risk-matrix-cell {
  position: relative;
  min-height: 48px;
  border: 1px solid #cfd8df;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #2d3d4d;
  background: #ffffff;
  cursor: pointer;
}

.risk-matrix-cell.low {
  background: #eef5f1;
  color: #1f6845;
}

.risk-matrix-cell.medium {
  background: #fff4db;
  color: #8a5b00;
}

.risk-matrix-cell.high {
  background: #ffe7cf;
  color: #a34f00;
}

.risk-matrix-cell.critical {
  background: #fde8e8;
  color: #a33232;
}

.risk-matrix-cell:hover,
.risk-matrix-cell:focus-visible {
  outline: 2px solid #236e5d;
  outline-offset: 1px;
}

.risk-matrix-cell.is-selected {
  box-shadow: inset 0 0 0 2px #236e5d;
}

.risk-matrix-cell.is-context:not(.is-selected) {
  box-shadow: inset 0 0 0 2px #6a7d8e;
}

.risk-matrix-cell.has-unlinked {
  border-color: #b95353;
}

.risk-matrix-cell-count {
  line-height: 1;
}

.risk-matrix-cell-unlinked {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  background: #c94545;
  color: #fff;
}

.risk-matrix-legend {
  margin: 0;
  font-size: 12px;
}

.risk-matrix-filter-status {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.risk-flow-mini-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  color: #445464;
  font-size: 13px;
}

.risk-flow-mini-summary strong {
  font-size: 15px;
}

.risk-grid-view {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.risk-empty {
  padding: 12px;
  border-radius: 10px;
  background: #f7faf9;
  color: var(--muted);
}

.risk-card {
  background: #fbfcfd;
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  padding: 12px;
}

.risk-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.risk-card-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.risk-card-category {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.risk-card-draft {
  margin: 0 0 10px;
}

.risk-card-status {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #455769;
}

.risk-card-status.is-unlinked {
  color: #8e3346;
}

.risk-card-status.is-linked {
  color: #2f5b3e;
}

.risk-card-status-meta {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #526577;
}

.risk-card-description,
.risk-card-note {
  margin: 0 0 10px;
}

.risk-fields {
  display: grid;
  gap: 8px;
}

.risk-fields textarea,
.risk-fields input,
.risk-fields select {
  margin-bottom: 0;
}

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

.risk-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.risk-score.low {
  background: #eef5f1;
  color: #1f6845;
}

.risk-score.medium {
  background: #fff4db;
  color: #8a5b00;
}

.risk-score.high {
  background: #ffe7cf;
  color: #a34f00;
}

.risk-score.critical {
  background: #fde8e8;
  color: #a33232;
}

.risk-meta-list {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.risk-meta-list div {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7f9;
}

.risk-meta-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-meta-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.risk-links {
  margin-top: 10px;
}

.risk-links strong {
  display: block;
  margin-bottom: 6px;
}

.risk-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #334454;
  font-size: 12px;
  line-height: 1.2;
}

.point-group-row th {
  background: #edf2f6;
  color: #304555;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.point-group-count {
  color: #5f7282;
  font-weight: 600;
  font-size: 12px;
}

.point-risk-meta {
  margin-top: 6px;
}

.point-risk-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.point-risk-label {
  font-size: 11px;
  font-weight: 700;
  color: #5a6c7b;
}

.point-risk-none {
  font-size: 11px;
  font-weight: 700;
  color: #7a4650;
  background: #fceff1;
  border-radius: 999px;
  padding: 4px 9px;
}

.point-risk-badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.point-risk-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.point-risk-badge.low {
  background: #eaf4ef;
  color: #1f6a48;
}

.point-risk-badge.medium {
  background: #fff4db;
  color: #8a5b00;
}

.point-risk-badge.high {
  background: #ffe9d2;
  color: #a04e00;
}

.point-risk-badge.critical {
  background: #fde8e8;
  color: #a33232;
}

.point-risk-inline .button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.risk-unlink-btn {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
}

.risk-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-actions .button {
  min-height: 38px;
}

.risk-suggestions {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8e1e8;
  border-radius: 10px;
  background: #f8fafb;
}

.risk-suggestions-list {
  display: grid;
  gap: 8px;
}

.risk-suggestion-card {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #d7dfe6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.risk-suggestion-copy {
  min-width: 0;
}

.risk-suggestion-copy h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.risk-suggestion-copy p {
  margin: 0 0 6px;
  font-size: 13px;
}

.risk-suggestion-copy p:last-child {
  margin-bottom: 0;
}

.risk-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.risk-point-picker {
  width: min(560px, 94vw);
}

.admin-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-title {
  margin: 2px 0;
  font-size: 28px;
}

.admin-subtitle {
  margin: 0;
  color: var(--muted);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-nav a {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.admin-nav a:hover {
  border-color: #b8c3cf;
}

.admin-nav a.active {
  background: #236e5d;
  border-color: #236e5d;
  color: #fff;
}

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

.admin-panel + .admin-grid,
.admin-grid + .admin-panel,
.admin-grid + .admin-grid {
  margin-top: 12px;
}

.admin-stat {
  background: var(--surface);
  border: 0;
  border-radius: 10px;
  padding: 12px;
}

.admin-stat h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
}

.admin-stat p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

#points-table .col-order {
  width: 72px;
  min-width: 72px;
  padding: 6px 6px;
}

#points-table .col-kontrollant {
  width: 130px;
  min-width: 130px;
  padding: 6px 6px;
}

#points-table .col-metod {
  width: 145px;
  min-width: 145px;
  padding: 6px 6px;
}

#points-table .point-category-row th {
  background: #eef4f2;
  color: #245447;
  font-weight: 700;
  border-top: 1px solid #d2e0dc;
}

.plan-points-wrap {
  overflow-x: auto;
}

#points-table .point-order-cell .button,
#points-table .multi-open {
  min-height: 36px;
}

.table th {
  background: #246e5d;
  color: #fff;
}

.admin-table-compact td,
.admin-table-compact th {
  padding: 7px 8px;
}

.control-points-table {
  table-layout: auto;
  min-width: 100%;
  width: 100% !important;
}

.control-points-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.control-points-table .cell-ellipsis {
  display: block;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.control-points-table .admin-row-actions .button {
  padding: 5px 8px;
  font-size: 12px;
}

.risk-library-table {
  table-layout: auto;
  min-width: 100%;
  width: 100% !important;
}

.risk-library-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.risk-library-table .cell-ellipsis {
  display: block;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.risk-library-table .rl-col-title {
  min-width: 220px;
}

.review-inbox-table {
  table-layout: fixed;
  width: 100%;
}

.review-inbox-table th,
.review-inbox-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 13px;
  padding: 6px 7px;
}

.review-inbox-table .col-check {
  width: 34px;
  min-width: 34px;
}

.review-inbox-table .col-kontrollant,
.review-inbox-table .col-metod {
  width: 95px;
}

.review-inbox-table .col-status {
  width: 120px;
}

.review-inbox-table .col-updated {
  width: 132px;
}

.review-inbox-table .col-actions {
  width: 86px;
}

.review-inbox-table .col-actions .button {
  white-space: nowrap;
  padding: 5px 8px;
  font-size: 12px;
}

@media (max-width: 1366px) {
  .review-inbox-table .col-updated {
    display: none;
  }
}

@media (max-width: 1180px) {
  .review-inbox-table .col-note {
    display: none;
  }
}

.table-sort-btn {
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 700 !important;
  padding: 0 !important;
  min-height: 0 !important;
  cursor: pointer;
  min-width: 0 !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

.table-sort-btn::after {
  content: " \2195";
  font-size: 12px;
  opacity: 0.65;
}

.table-sort-btn.is-active::after {
  content: " \2191";
  opacity: 1;
}

.table-sort-btn.is-active.is-desc::after {
  content: " \2193";
}

button,
.button {
  -webkit-appearance: none;
  appearance: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

button:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(35, 110, 93, 0.33);
  outline-offset: 1px;
}

button:disabled,
.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.button.secondary {
  background: var(--secondary);
  border-color: var(--secondary);
}

.button.secondary:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

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

.button.danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  margin-top: 4px;
  margin-bottom: 8px;
  background: #fff;
  color: var(--text);
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.user-types-field {
  margin-bottom: 8px;
}

.user-types-field__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.user-type-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.user-type-picker--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.user-type-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.user-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.user-type-option span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d6dde5;
  border-radius: 10px;
  background: #fff;
  color: #304252;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.user-type-option input:checked + span {
  border-color: #236e5d;
  background: #eaf5f2;
  color: #17493d;
  box-shadow: inset 0 0 0 1px rgba(35, 110, 93, 0.2);
}

.user-type-option input:focus-visible + span {
  outline: 2px solid rgba(35, 110, 93, 0.32);
  outline-offset: 1px;
}

.user-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-type-tags--inline {
  min-height: 26px;
}

.user-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4f2;
  color: #245447;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.user-type-admin-cell {
  min-width: 220px;
}

.user-type-editor > summary {
  cursor: pointer;
  color: #236e5d;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.user-type-editor .user-type-picker {
  margin-top: 8px;
}

.inline-form,
.inline-actions,
.admin-inline,
.admin-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form input,
.inline-form select,
.admin-inline input,
.admin-inline select {
  width: auto;
  min-width: 150px;
  margin: 0;
}

.points-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #f6faf8;
  border-radius: 10px;
}

.points-filters__category {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.points-filters__category select {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.points-filters__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.points-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #3b4a56;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.points-filter-chip input {
  width: auto;
  min-width: 0;
  margin: 0;
}

.points-filters__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.stack > * { margin-bottom: 10px; }

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

.import-summary {
  margin: 10px 0;
  color: var(--muted);
  font-weight: 600;
}

#import-preview-table td,
#import-preview-table th {
  white-space: nowrap;
}

.import-row-invalid {
  background: #fff0f0;
}

.import-row-duplicate {
  background: #fff8e7;
}

.import-row-ok {
  background: #f2fbf5;
}

.plan-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.plan-choice-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 104px;
  text-align: left;
  background: #f8fafc;
  color: var(--text);
  border: 1px solid #d9e2ea;
  border-radius: 10px;
  padding: 12px 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.plan-choice-card:hover {
  background: #f2f6fb;
  border-color: #c7d5e3;
}

.plan-choice-card:focus-visible {
  outline: 2px solid rgba(35, 110, 93, 0.28);
  outline-offset: 1px;
}

.plan-choice-card strong {
  display: block;
  margin-bottom: 6px;
}

.plan-choice-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-choice-card.is-selected {
  border-color: #5d8dc3;
  box-shadow: inset 0 0 0 1px #5d8dc3;
  background: #eef4fb;
}

.plan-rules-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-copy-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.plan-copy-sections label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 14px;
}

.plan-validation-summary {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.plan-validation-summary.error {
  color: #a53737;
}

.plan-validation-summary.ok {
  color: #1f6c42;
}

.plan-validation-results {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.plan-validation-group {
  padding: 10px;
  border-radius: 10px;
  background: #f4f7fb;
}

.plan-validation-group.blocking {
  background: #fff1f1;
}

.plan-validation-group.warnings {
  background: #fff9eb;
}

.plan-validation-group strong {
  display: block;
  margin-bottom: 6px;
}

.plan-validation-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.plan-validation-group li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.section-card.section-focus {
  box-shadow: 0 0 0 2px rgba(35, 110, 93, 0.26);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.auth-panel {
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  padding: 18px;
}

.auth-panel h1,
.auth-panel h2 {
  margin-top: 0;
}

.auth-panel-brand {
  background: linear-gradient(145deg, #f8fbff 0%, #edf3fa 100%);
}

.auth-panel-brand ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.auth-panel-form form {
  margin-top: 6px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  color: #3f4d5a;
}

.auth-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  min-width: 16px;
}

.auth-check span {
  font-size: 14px;
}

.auth-alt {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-alt a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

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

.merge-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(400px, 1fr);
  gap: 12px;
}

.merge-left {
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.merge-right {
  min-height: 520px;
}

.merge-group-item {
  width: 100%;
  text-align: left;
  background: #f7f9fb;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 8px;
}

.merge-group-item strong,
.merge-group-item span {
  display: block;
}

.merge-group-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.merge-group-item.is-selected {
  border-color: #5d8dc3;
  box-shadow: inset 0 0 0 1px #5d8dc3;
  background: #eef4fb;
}

.merge-point-card {
  border: 0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fbfcfd;
}

.link-button {
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline;
  line-height: 1.2;
}

.link-button:hover {
  color: var(--primary);
  text-decoration: underline;
  background: transparent;
}

@media (max-width: 980px) {
  .merge-layout {
    grid-template-columns: 1fr;
  }
  .merge-left {
    max-height: none;
  }
}

.point-order-cell { white-space: nowrap; }
.point-order-cell .button { min-height: 36px; padding: 0 8px; margin-right: 4px; font-size: 13px; }
.point-order-cell .point-delete { min-height: 36px; padding: 0 8px; }

.icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-copy {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 14px;
}

.icon-copy::before,
.icon-copy::after {
  content: "";
  position: absolute;
  border: 1.4px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

.icon-copy::before {
  width: 9px;
  height: 11px;
  top: 2px;
  left: 0;
  opacity: 0.9;
}

.icon-copy::after {
  width: 9px;
  height: 11px;
  top: 0;
  left: 3px;
}

.multi-compact {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.multi-summary {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.multi-popup-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.multi-box-option {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12px;
  line-height: 1.2;
}

.multi-box-option:hover {
  border-color: #b9c5d2 !important;
  background: #f7fafc !important;
}

.multi-box-option.is-selected {
  background: #eaf2fb !important;
  border-color: #9ebee0 !important;
  color: #184d82 !important;
  font-weight: 600;
}

.multi-box-option.is-custom {
  padding-right: 4px !important;
}

.multi-box-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid #c7d5e3;
  background: #fff;
  color: #63758a;
  font-weight: 700;
  line-height: 1;
}

.multi-box-remove:hover {
  border-color: #9fb9d3;
  color: #224b73;
}

.multi-popup-custom {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.multi-popup-custom input {
  min-width: 110px;
  margin: 0;
}

.multi-open {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
}

.multi-popup {
  width: min(520px, 92vw);
}

.ad-banner {
  background: #fff7df;
  border: 1px dashed #ddb757;
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0;
  text-align: center;
  color: #7a5800;
}

.smart-suggestions-card h3 {
  margin-top: 0;
}

.smart-rule-picker {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

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

.smart-rule-subtitle {
  margin: 8px 0;
  font-size: 14px;
}

.smart-rule-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.smart-rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf2f6;
  padding: 6px 0;
}

.smart-rule-item:last-child {
  border-bottom: 0;
}

.smart-rule-item-copy {
  min-width: 0;
}

.smart-rule-item-copy strong,
.smart-rule-item-copy span {
  display: block;
}

.smart-rule-item-copy span {
  color: var(--muted);
  font-size: 12px;
}

.smart-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: #f9fcfb;
  padding: 10px;
  margin-top: 8px;
}

.smart-suggestion-copy {
  min-width: 0;
}

.smart-suggestion-copy strong {
  display: block;
  margin-bottom: 2px;
}

.smart-suggestion-copy div {
  color: var(--muted);
  font-size: 13px;
}

.smart-suggestion-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.version-history-card summary {
  cursor: pointer;
}

.version-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.version-item {
  background: #f8fbfa;
  border-radius: 10px;
  padding: 10px;
}

.version-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.version-summary {
  color: var(--muted);
  font-size: 13px;
}

.version-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.2;
  background: #e9f4f1;
  color: #1d4f45;
}

.version-details {
  margin: 8px 0 0;
  padding-left: 18px;
}

.version-details li {
  margin-bottom: 4px;
}

.version-item .inline-actions {
  margin-top: 8px;
}

.save-status { color: var(--ok); font-weight: 600; }
.save-status.ok { color: var(--ok); }
.save-status.saving { color: var(--primary); }
.save-status.error { color: #fff; background: var(--danger); border-color: var(--danger); }

.floating-save-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  min-width: 120px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-save-status.saving {
  background: #f1f6fc;
}

.floating-save-status.pulse {
  animation: savePulse 0.4s ease;
}

@keyframes savePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.error { color: var(--danger); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.modal.hidden { display: none; }

.modal-content {
  width: min(950px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px;
}

.library-results-scroll {
  max-height: min(56vh, 520px);
  overflow: auto;
  margin: 8px 0 10px;
}

.library-info-box {
  margin: 6px 0 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eef6f3;
  color: #2b4f46;
  font-size: 13px;
}

.library-scroll-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.library-selected-count {
  margin: 8px 0 0;
  color: #3d4e5c;
  font-size: 13px;
  font-weight: 600;
}

.library-results-table th,
.library-results-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
}

.library-results-table th:nth-child(1),
.library-results-table td:nth-child(1),
.library-results-table th:nth-child(7),
.library-results-table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
}

.beta-notice-content {
  width: min(560px, 92vw);
}

.beta-notice-content h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.beta-notice-content p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 0 2px;
  }

  body.topbar-menu-open .topbar-nav {
    display: flex;
  }

  .topbar-nav a {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .dashboard-head,
  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .plan-edit-head {
    align-items: stretch;
  }

  .plan-edit-actions {
    width: 100%;
    justify-content: stretch;
  }

  .plan-edit-actions-group {
    width: 100%;
  }

  .plan-edit-actions-group .button {
    width: 100%;
  }

  .plan-process-summary {
    grid-template-columns: 1fr 1fr;
  }

  .risk-matrix-head {
    align-items: stretch;
  }

  .risk-matrix-head .button {
    width: 100%;
  }

  .risk-matrix-grid {
    grid-template-columns: 34px repeat(5, minmax(42px, 1fr));
    gap: 4px;
  }

  .risk-matrix-axis {
    min-height: 28px;
    font-size: 11px;
  }

  .risk-matrix-cell {
    min-height: 42px;
    font-size: 14px;
  }

  .risk-card-head,
  .risk-actions,
  .risk-suggestion-card,
  .risk-suggestion-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .risk-grid-inline,
  .risk-meta-list {
    grid-template-columns: 1fr;
  }

  .risk-score {
    align-self: flex-start;
  }

  .point-risk-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-plan-card {
    grid-template-columns: 1fr;
  }

  .marketing-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .home-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta-actions .button {
    width: 100%;
  }

  .dashboard-plan-actions {
    justify-content: flex-start;
  }

  .dashboard-search input[type="search"] {
    min-width: 0;
    width: 100%;
  }

  .dashboard-toolbar {
    align-items: stretch;
  }

  .dashboard-toolbar .inline-form {
    width: 100%;
  }

  .dashboard-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .points-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .points-filters__actions {
    justify-content: flex-start;
  }

  .table {
    display: block;
    overflow-x: auto;
  }

  .plan-points-wrap {
    overflow: visible;
  }

  #points-table {
    border: 0;
    background: transparent;
    display: block;
    overflow: visible;
  }

  #points-table thead {
    display: none;
  }

  #points-table tbody {
    display: block;
  }

  #points-table tbody tr[data-point-id] {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
  }

  #points-table tbody tr[data-point-id] td {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    padding: 8px 10px;
  }

  #points-table tbody tr[data-point-id] td:last-child {
    border-bottom: 0;
  }

  #points-table tbody tr[data-point-id] td::before {
    content: attr(data-label);
    flex: 0 0 96px;
    color: #526170;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  #points-table tbody tr[data-point-id] td input {
    margin: 0;
  }

  #points-table .point-order-cell {
    align-items: center;
    gap: 6px;
  }

  #points-table .point-order-cell::before {
    align-self: center;
  }

  #points-table .multi-compact {
    width: 100%;
  }

  #points-table .multi-summary {
    font-size: 12px;
  }

  #points-table .col-order,
  #points-table .col-kontrollant,
  #points-table .col-metod {
    width: auto;
    min-width: 0;
  }

  #points-table .point-category-row,
  #points-table .point-group-row {
    display: block;
    margin: 8px 0 4px;
    border: 0;
    background: transparent;
  }

  #points-table .point-category-row th,
  #points-table .point-group-row th {
    display: block;
    border-radius: 8px;
    border: 1px solid #d5e0dc;
    padding: 8px 10px;
  }

  .smart-rule-grid {
    grid-template-columns: 1fr;
  }
}
