/* Shared layout: nav, home, placeholder pages */

.app-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.app-chrome .app-nav {
  box-shadow: none;
  border-bottom: 0;
}

.demo-notice {
  margin: 0;
  padding: 0.42rem 1.25rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b3f00;
  background: #fff6dd;
  border-bottom: 1px solid #edd9a3;
}

.demo-notice strong {
  font-weight: 650;
  margin-right: 0.3rem;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-nav .brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  margin-right: 1rem;
}
.app-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  max-width: 16rem;
}
.app-nav .brand-text strong {
  font-size: 0.92rem;
}
.app-nav .brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted, #6b7385);
}
.site-foot {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem 1.4rem;
  border-top: 1px solid var(--border, #e6eaf3);
  color: var(--text-muted, #6b7385);
  font-size: 0.85rem;
}
.site-foot p { margin: 0.15rem 0; }

.app-nav .nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.app-nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.app-nav .nav-links a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.app-nav .nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.app-nav .nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .app-nav {
    flex-wrap: wrap;
  }
  .app-nav .nav-links {
    flex: 1 1 100%;
    order: 3;
    padding: 0.15rem 0 0.1rem;
  }
}

.app-nav .nav-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.nav-user {
  margin-left: 0.5rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.demo-view-switch {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.demo-view-btn {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.demo-view-btn + .demo-view-btn {
  border-left: 1px solid var(--border);
}

.demo-view-btn:hover {
  color: var(--text);
  background: var(--surface-3);
}

.demo-view-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.inline-form input {
  font-family: var(--font);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 160px;
}

.workflow-steps li.done {
  color: var(--green);
}

.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.page-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.stat-card .stat-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.section-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.section-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

#section-admin .section-panel > .muted {
  margin: -0.25rem 0 0.9rem;
  font-size: 0.85rem;
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.module-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}

.module-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.module-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.module-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.demo-audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-audit-item {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.demo-audit-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demo-audit-time {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-audit-body {
  font-size: 0.95rem;
  line-height: 1.45;
}

.demo-audit-who {
  font-weight: 600;
  margin-right: 0.4rem;
}

.demo-audit-text {
  color: var(--text);
}

@media (max-width: 640px) {
  .demo-audit-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.module-card .module-status {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.module-status.live {
  background: #d1fae5;
  color: #047857;
}

.module-status.soon {
  background: #fef3c7;
  color: #b45309;
}

.import-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.import-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.import-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.import-item:first-child {
  padding-top: 0;
}

.import-item-info {
  flex: 1;
}

.import-item-info strong {
  display: block;
  margin-bottom: 0.2rem;
}

.import-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.import-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.btn {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  background: rgba(79, 140, 255, 0.25);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}

.import-result {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  display: none;
}

.import-result.ok {
  display: block;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #047857;
}

.import-result.err {
  display: block;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.placeholder-hero {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 480px;
  margin: 2rem auto;
}

.placeholder-hero .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.placeholder-hero h2 {
  margin: 0 0 0.5rem;
}

.placeholder-hero p {
  color: var(--text-muted);
  line-height: 1.5;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.info-list li {
  margin-bottom: 0.35rem;
}

/* ── Data governance UI ── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.alert-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}

.workflow-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.65;
  font-size: 0.9rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
}

.upload-form h3 {
  margin: 0;
  font-size: 0.95rem;
}

.upload-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

.upload-form input[type="file"],
.upload-form input[type="text"],
.upload-form input[type="month"],
.upload-form textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #111827;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row label { flex: 1; min-width: 160px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #fff;
}

.data-table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  background: #f1f5f9;
  color: #374151;
  font-weight: 600;
  border-bottom: 2px solid #d1d5db;
  white-space: nowrap;
}

.data-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #eef2f6;
  color: #111827;
  vertical-align: top;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.muted { color: #9ca3af; }

.col-num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.notes-cell { max-width: 220px; word-break: break-word; }

.actions-cell { white-space: nowrap; }

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  margin: 0.1rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-validated, .badge-pending_approval { background: #dbeafe; color: #1d4ed8; }
.badge-approved { background: #d1fae5; color: #047857; }
.badge-rejected, .badge-validation_failed { background: #fee2e2; color: #b91c1c; }
.badge-draft { background: #f3f4f6; color: #4b5563; }
.badge-official { background: #047857; color: #fff; margin-left: 0.25rem; }

.batch-detail {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.issue-list {
  margin: 0;
  padding-left: 1.2rem;
}

.issue-error { color: #b91c1c; }
.issue-warning { color: #b45309; }
.issue-info { color: #4b5563; }

.mp-sync-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}
.mp-sync-card.is-error { border-color: #fca5a5; background: #fef2f2; }
.mp-sync-card.is-warning { border-color: #fcd34d; background: #fffbeb; }
.mp-sync-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.mp-sync-card .mp-sync-meta {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.mp-sync-card ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.15rem;
}
.mp-sync-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mp-sync-detail td {
  background: #f8fafc;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
  border-top: none;
  font-size: 0.9rem;
}
.badge-error { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-ok, .badge-info { background: #ecfdf5; color: #047857; }

.page-land.page-main {
  max-width: 1200px;
  padding: 2rem 24px 4.5rem;
}
.page-land #pricing,
.page-land #contact {
  scroll-margin-top: 7.75rem;
}
.land-hero {
  display: grid;
  grid-template-columns: minmax(520px, 560px) minmax(0, 1fr);
  gap: 2rem 2.25rem;
  align-items: center;
  margin-bottom: 0;
}
.land-hero-copy {
  min-width: 0;
}
.land-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.land-h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}
.land-lead,
.land-extra,
.land-subhead {
  line-height: 1.55;
}
.land-lead {
  margin: 1rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}
.land-extra {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.land-subhead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  max-width: 46rem;
}
.land-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.page-land a.btn,
.page-land button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.page-land .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-land .btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.page-land .btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.page-land .btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}
.page-land a.btn:focus-visible,
.page-land button.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.land-hero-shot {
  margin: 0;
  min-width: 0;
}
.land-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  background: #fff;
}
.land-hero-shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.land-block {
  margin-top: 4.5rem;
}
.land-block h2 {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.land-block > p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  max-width: 46rem;
  font-size: 1.05rem;
}
.land-cards {
  display: grid;
  gap: 0.85rem;
}
.land-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.land-cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.land-h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 650;
}
.land-price-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.land-cards article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
}
.land-cards h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.3;
}
.land-cards p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.land-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: land-step;
}
.land-steps li {
  counter-increment: land-step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
}
.land-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}
.land-steps h3::before {
  content: counter(land-step) ". ";
}
.land-steps p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.land-note {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.land-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
  margin: 1.25rem 0 1rem;
}
.land-price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.9rem;
}
.land-price-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.land-price-kicker {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.land-price-card > p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.land-price-line {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text) !important;
}
.land-price-sum {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text) !important;
}
.land-price-caption {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.land-price-card .btn {
  margin-top: auto;
  width: 100%;
}
.land-terms {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text);
}
.land-support {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem 1.45rem;
  max-width: none;
}
.land-support h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}
.land-support p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: none;
}
.land-support p:last-child {
  margin-bottom: 0;
}
.land-contact .land-form {
  max-width: 36rem;
}
.land-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
}
.land-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.land-form label,
.land-variant legend {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.land-form input,
.land-form textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.land-form textarea {
  min-height: 6rem;
  resize: vertical;
}
.land-variant {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.land-variant legend {
  margin-bottom: 0.4rem;
  padding: 0;
}
.land-variant label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}
.land-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.consent-field__row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.consent-field__error {
  color: var(--red);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.land-form .form-status {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}
.land-start {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.land-start h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}
.land-start ol {
  margin: 0;
  padding-left: 1.15rem;
}
.land-start li {
  margin: 0 0 0.45rem;
  line-height: 1.45;
}
.land-start li:last-child {
  margin-bottom: 0;
}
.land-start a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.land-start a:hover {
  text-decoration: underline;
}
.land-start a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .land-hero {
    grid-template-columns: 1fr;
  }
  .land-hero-shot {
    order: 2;
  }
  .land-cards-3,
  .land-cards-4 {
    grid-template-columns: 1fr 1fr;
  }
  .land-steps,
  .land-price-grid,
  .land-price-grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .page-land.page-main {
    padding: 1.25rem 16px 3rem;
  }
  .page-land #pricing,
  .page-land #contact {
    scroll-margin-top: 8.25rem;
  }
  .land-h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  .land-lead,
  .land-extra {
    font-size: 1rem;
  }
  .land-block {
    margin-top: 2.75rem;
  }
  .land-block h2 {
    font-size: 1.3rem;
  }
  .land-cards-3,
  .land-cards-4 {
    grid-template-columns: 1fr;
  }
  .land-price-card {
    padding: 1.35rem 1.25rem;
  }
}

/* --- подменю ДС, таблица на весь экран, разноска типа Ozon --- */
.section-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 1.25rem;
  background: #eef6fc;
  border-bottom: 1px solid #9fc5e8;
}
.section-subnav a {
  color: #1f4e79;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
}
.section-subnav a:hover {
  background: #d6eaf8;
}
.section-subnav a.is-active {
  background: #cfe2f3;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #3d85c6;
}

.table-fs-host:has(> .table-fs-enter) {
  position: relative;
  padding-top: 2.1rem;
}
.table-fs-enter {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  z-index: 5;
  border: 1px solid #7ea7cc;
  background: #fff;
  color: #1f4e79;
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.table-fs-enter:hover {
  background: #eef6fc;
}
.sheet-toolbar .table-fs-enter,
.sheet-cap-line .table-fs-enter {
  position: static;
  margin-left: auto;
}
.table-fs-bar {
  display: none;
}
body.table-is-fs {
  overflow: hidden;
}
body.table-is-fs .site-foot,
body.table-is-fs .app-nav,
body.table-is-fs .section-subnav {
  display: none !important;
}
body.table-is-fs .table-fs-active {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none !important;
  border-radius: 0 !important;
  max-height: none !important;
  height: 100% !important;
  padding: 0 !important;
}
body.table-is-fs .table-fs-active > .table-fs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  background: #1f4e79;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
body.table-is-fs .table-fs-active > .table-fs-bar[hidden] {
  display: flex !important;
}
body.table-is-fs .table-fs-active > .table-fs-enter,
body.table-is-fs .table-fs-enter {
  display: none !important;
}
.table-fs-exit {
  border: none;
  background: #fff;
  color: #1f4e79;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
body.table-is-fs .table-fs-active > table {
  flex: 0 0 auto;
}


.mp-classify-dialog {
  width: min(32rem, calc(100vw - 2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.mp-classify-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}
.mp-classify-dialog h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.mp-classify-dialog form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mp-classify-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
}
.mp-classify-dialog label.mp-classify-check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
.mp-classify-dialog input[type="text"],
.mp-classify-dialog select {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.mp-classify-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.issue-classify {
  margin: 0.25rem 0 0.15rem;
}

/* Уменьшенная таблица видна целиком: залипание в координатах без масштаба ставит колонки не туда */
.is-fitted table th,
.is-fitted table td {
  position: static !important;
}
.days-scroll.is-fitted,
.sheet-scroll.is-fitted {
  overflow: hidden;
  max-height: none;
}

/* Журнал изменений ДС — читаемые diff */
.audit-detail { max-width: 42rem; line-height: 1.4; }
.audit-changes { margin: 0.35rem 0 0; padding-left: 1.1rem; color: #444; font-size: 0.92em; }
.audit-field { color: #666; }
.audit-from { text-decoration: line-through; color: #8a4b4b; }
.audit-to { color: #1d6b35; font-weight: 500; }
