﻿:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --line: #d9e0e8;
  --brand: #126c74;
  --brand-dark: #0f4f58;
  --accent: #2f7d59;
  --danger: #b42318;
}

html { font-size: 14px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }

.app-header { background: var(--brand-dark); box-shadow: 0 2px 10px rgba(16, 24, 40, .16); }
.navbar { background: transparent; }
.navbar-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.nav-link { color: rgba(255,255,255,.82) !important; }
.nav-link:hover { color: #fff !important; }
.user-box { color: #fff; flex-wrap: wrap; justify-content: flex-end; }
.user-access-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; color: rgba(255,255,255,.78); font-size: .78rem; line-height: 1.25; }
.user-access-meta strong { color: #fff; font-weight: 700; }
.user-access-label { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.user-access-divider { color: rgba(255,255,255,.45); }

.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--brand); color: white; font-weight: 800; margin-right: 10px; }
.brand-mark.small { width: 32px; height: 32px; font-size: .9rem; }

.app-main { max-width: 1680px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-title h1 { margin: 0; font-size: 1.65rem; font-weight: 700; }
.page-title p { margin: 4px 0 0; color: var(--muted); }

.panel, .metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.panel { padding: 16px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-header h2, .detail-panel h2 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.detail-panel h3 { font-size: 1rem; margin-bottom: 6px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 18px; }
.metric-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.metric-card strong { font-size: 1.8rem; }
.dashboard-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dashboard-metrics.operational { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mapas-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card.warn { border-left: 4px solid #f59e0b; }
.metric-card.danger { border-left: 4px solid var(--danger); }

.form-body .form-label { font-weight: 600; color: #344054; }
.form-body .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
.form-body .mb-3 { margin-bottom: .75rem !important; }
.form-body textarea.form-control { min-height: 72px; }
.form-body textarea.form-control[rows="2"] { min-height: 58px; }
.form-body textarea.form-control[rows="3"] { min-height: 74px; }
.compact-form { padding: 0; }
.form-actions, .actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  background: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 18, 108, 116;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-color: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.status-pill { display: inline-flex; align-items: center; min-width: 64px; justify-content: center; border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 700; }
.status-pill.ok { background: #dcfce7; color: #166534; }
.status-pill.off { background: #fee4e2; color: var(--danger); }
.status-pill.info { background: #dbeafe; color: #1e40af; }
.status-pill.warn { background: #fef3c7; color: #92400e; }
.status-pill.neutral { background: #f2f4f7; color: #344054; }

.panel-subtitle { margin: 4px 0 0; color: var(--muted); }
.dashboard-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
.dashboard-map { position: relative; min-height: 430px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #eef2f6; }
.dashboard-map.is-empty::after { content: "Sem coordenadas cadastradas"; position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; color: var(--muted); font-weight: 700; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.map-marker-list { display: grid; gap: 10px; align-content: start; max-height: 430px; overflow: auto; padding-right: 2px; }
.map-marker-item { display: grid; gap: 6px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.map-marker-item:hover { color: var(--ink); border-color: rgba(18, 108, 116, .55); box-shadow: 0 8px 18px rgba(16, 24, 40, .07); }
.map-marker-item strong { font-size: .98rem; }
.map-marker-item > span:not(.status-pill):not(.coordinate-pill) { color: var(--muted); }
.coordinate-pill { display: inline-flex; width: fit-content; border-radius: 6px; background: #f2f4f7; color: #344054; padding: 3px 7px; font-family: Consolas, "Liberation Mono", monospace; font-size: .78rem; }
.empty-list { color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 14px; }

.dashboard-title .eyebrow { margin-bottom: 6px; }
.dashboard-command-grid, .dashboard-work-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 14px; align-items: start; }
.dashboard-update-pill { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; background: #edf7f6; color: var(--brand-dark); padding: 4px 10px; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.dashboard-health-list { display: grid; gap: 14px; }
.dashboard-health-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .72fr) 52px; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.dashboard-health-row:first-child { border-top: 0; padding-top: 0; }
.dashboard-health-row strong { font-weight: 750; }
.dashboard-health-row span { color: var(--muted); display: block; margin-top: 3px; }
.dashboard-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e4e7ec; }
.dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.attention-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.attention-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfd; }
.attention-grid span { color: var(--muted); display: block; font-size: .84rem; margin-bottom: 6px; }
.attention-grid strong { font-size: 1.35rem; }
.pm-indicator-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pm-indicator-item { display: grid; gap: 7px; align-content: start; min-height: 112px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfd; }
.pm-indicator-item span { color: var(--muted); font-size: .84rem; font-weight: 700; overflow-wrap: anywhere; }
.pm-indicator-item strong { font-size: 1.45rem; line-height: 1.1; overflow-wrap: anywhere; }
.pm-indicator-item em, .pm-distribution-row em { font-style: normal; justify-self: start; min-width: 54px; }
.pm-distribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.pm-distribution-block { display: grid; gap: 8px; align-content: start; }
.pm-distribution-block h3 { margin: 0 0 2px; font-size: .98rem; font-weight: 750; }
.pm-distribution-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; }
.pm-distribution-row span { color: #344054; font-weight: 700; overflow-wrap: anywhere; }
.pm-distribution-row strong { font-size: 1.05rem; }
.priority-list { display: grid; gap: 10px; }
.priority-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.priority-item:hover { color: var(--ink); border-color: rgba(18, 108, 116, .55); box-shadow: 0 8px 18px rgba(16, 24, 40, .07); }
.priority-item strong, .priority-item span { overflow-wrap: anywhere; }
.priority-item div span, .priority-item small { color: var(--muted); }
.priority-item small { grid-column: 1 / -1; }
.status-distribution { display: grid; gap: 12px; }
.status-distribution > div { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(120px, 1fr) 42px; gap: 10px; align-items: center; }
.status-distribution span { color: #344054; font-weight: 700; overflow-wrap: anywhere; }
.dashboard-compact-table { min-width: 680px; }

@media (max-width: 1200px) {
  .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-indicator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-map-layout { grid-template-columns: 1fr; }
  .dashboard-command-grid, .dashboard-work-grid { grid-template-columns: 1fr; }
}

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(440px, .76fr); gap: 12px; align-items: stretch; }
.detail-stack { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-height: 100%; }
.detail-stack .detail-panel:last-child { min-height: 100%; }
.map-preview-panel { padding: 10px; min-height: 280px; max-height: none; display: flex; align-items: stretch; justify-content: center; overflow: auto; }
.map-preview { max-width: 100%; max-height: calc(70vh - 22px); object-fit: contain; border-radius: 6px; }
.detail-geometry-map { width: 100%; min-height: clamp(340px, 52vh, 680px); height: 100%; border-radius: 6px; overflow: hidden; background: #eef2f6; }
.empty-preview { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.detail-list { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 6px 10px; margin: 12px 0 0; }
.detail-list dt { color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.detail-panel p { margin-bottom: 0; overflow-wrap: anywhere; }
.narrow-panel { max-width: 560px; }

.operation-board { column-count: 2; column-gap: 12px; }
.operation-board.mt-4 { margin-top: 12px !important; }
.operation-board > .operation-panel { display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; vertical-align: top; }
.operation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.operation-grid.mt-4, .detail-grid + .operation-grid.mt-4 { margin-top: 12px !important; }
.operation-grid > .panel, .operation-grid > .operation-stack { min-height: 100%; }
.operation-stack { display: grid; gap: 12px; }
.operation-panel .compact-form { border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 12px; }
.operation-list, .timeline-list { display: grid; gap: 10px; }
.operation-item, .timeline-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.operation-item.is-overdue { border-color: #f59e0b; background: #fffbeb; }
.operation-item-header, .history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.operation-item-header strong, .history-heading strong { min-width: 0; overflow-wrap: anywhere; }
.operation-item p, .timeline-item p { margin: 8px 0 0; color: #344054; line-height: 1.45; overflow-wrap: anywhere; }
.operation-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.inline-status-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 260px; }
.workflow-actions form { margin: 0; }
.workflow-actions .btn { white-space: nowrap; }
.checklist-form { margin: 0; }
.checklist-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.timeline-item time { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.history-heading span { color: var(--brand); font-size: .78rem; font-weight: 800; text-transform: uppercase; }

.detail-panel, .operation-panel { container: panel / inline-size; }
@container panel (max-width: 680px) {
  .form-body .row > [class^="col-"],
  .form-body .row > [class*=" col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1400px) {
  .detail-grid, .operation-grid { grid-template-columns: 1fr; }
  .operation-board { column-count: 1; }
  .detail-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stack .detail-panel:first-child { align-self: start; }
}

@media (max-width: 1080px) {
  .detail-stack { grid-template-columns: 1fr; }
}

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef7f6, #f5f7fb); }
.login-shell { width: min(460px, calc(100vw - 32px)); }
.login-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; box-shadow: 0 18px 45px rgba(16, 24, 40, .12); }
.login-panel h1 { margin: 10px 0 4px; font-size: 1.8rem; }
.login-panel p { color: var(--muted); margin-bottom: 24px; }

.table > :not(caption) > * > * { padding: .8rem .7rem; }
.mapas-table { min-width: 1180px; }
.pendencias-table { min-width: 1240px; }
.restituicao-table { min-width: 1320px; }
.lote-table { min-width: 1220px; }
.bic-table { min-width: 1360px; }
.bic-work-grid { grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr); }
.bic-edit-panel { position: sticky; top: 18px; }
.bic-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bic-summary strong { font-size: 1rem; overflow-wrap: anywhere; }
.bic-actions { min-width: 300px; }
.tributavel-table { min-width: 1480px; }
.tributavel-work-grid { grid-template-columns: minmax(0, 1.38fr) minmax(390px, .62fr); }
.tributavel-edit-panel { position: sticky; top: 18px; }
.tributavel-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tributavel-summary strong { font-size: 1rem; overflow-wrap: anywhere; }
.tributavel-actions { min-width: 320px; }
.notificacao-metrics { grid-template-columns: repeat(6, minmax(128px, 1fr)); }
.notificacao-metrics .metric-card { min-height: 88px; padding: 14px 16px; display: grid; align-content: space-between; }
.notificacao-metrics .metric-card span { margin-bottom: 6px; font-size: .82rem; font-weight: 700; line-height: 1.25; }
.notificacao-metrics .metric-card strong { font-size: 1.55rem; line-height: 1; }
.notificacao-indicators-panel .panel-header { align-items: flex-start; }
.notificacao-indicators-panel .actions-row { justify-content: flex-end; }
.notificacao-indicators-panel .pm-indicator-grid { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.notificacao-indicators-panel .pm-indicator-item { min-height: 96px; padding: 12px 14px; }
.notificacao-indicators-panel .pm-distribution-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
.notificacao-command-grid { grid-template-columns: minmax(260px, .92fr) minmax(260px, .92fr) minmax(360px, 1.16fr); align-items: stretch; }
.notificacao-command-grid > .panel { display: flex; flex-direction: column; min-height: 100%; }
.notificacao-command-grid .priority-list { flex: 1; }
.notificacao-command-grid .compact-form { margin-top: auto; }
.notificacao-work-grid { grid-template-columns: minmax(0, 1.42fr) minmax(420px, .58fr); gap: 16px; align-items: start; }
.notificacao-queue-panel { min-width: 0; }
.notificacao-table-wrap { max-height: calc(100vh - 110px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.notificacao-table { min-width: 1800px; table-layout: fixed; margin-bottom: 0; }
.notificacao-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; border-bottom: 1px solid var(--line); color: #344054; font-size: .78rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.notificacao-table th:nth-child(1) { width: 210px; }
.notificacao-table th:nth-child(2) { width: 145px; }
.notificacao-table th:nth-child(3) { width: 140px; }
.notificacao-table th:nth-child(4) { width: 142px; }
.notificacao-table th:nth-child(5) { width: 132px; }
.notificacao-table th:nth-child(6) { width: 170px; }
.notificacao-table th:nth-child(7) { width: 110px; }
.notificacao-table th:nth-child(8) { width: 150px; }
.notificacao-table th:nth-child(9) { width: 145px; }
.notificacao-table th:nth-child(10) { width: 155px; }
.notificacao-table th:nth-child(11) { width: 122px; }
.notificacao-table th:nth-child(12) { width: 180px; }
.notificacao-table td { vertical-align: top; line-height: 1.35; }
.notificacao-table td:nth-child(4), .notificacao-table td:nth-child(5), .notificacao-table td:nth-child(11) { white-space: nowrap; }
.notificacao-table td strong { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.notificacao-table .text-muted { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.notificacao-table .status-pill { min-width: 0; margin: 0 4px 4px 0; }
.notificacao-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; align-items: stretch; }
.notificacao-actions form { display: contents; }
.notificacao-actions .btn { width: 100%; padding-left: .45rem; padding-right: .45rem; text-align: center; }
.notificacao-edit-panel { position: sticky; top: 18px; align-self: start; max-height: calc(100vh - 36px); overflow: auto; }
.notificacao-edit-panel .panel-header { align-items: flex-start; }
.notificacao-edit-panel .row { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
.notificacao-edit-panel .form-label { font-size: .84rem; margin-bottom: .3rem; }
.notificacao-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notificacao-summary div { min-height: 70px; padding: 10px; }
.notificacao-summary span { margin-bottom: 4px; }
.notificacao-summary strong { font-size: .96rem; line-height: 1.25; overflow-wrap: anywhere; }
.notificacao-detail-list { grid-template-columns: 116px minmax(0, 1fr); gap: 7px 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.remessa-status-cell { min-width: 0; }
.retorno-status-cell { min-width: 0; }
.compact-panel-header { align-items: flex-start; margin-bottom: 8px; }
.compact-panel-header h2 { font-size: 1rem; }
.evidencia-box { border-top: 1px solid var(--line); padding-top: 14px; }
.retorno-box { border-top: 1px solid var(--line); padding-top: 14px; }
.readonly-field { background: #f8fafc; color: var(--muted); }
.evidencia-pill-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.evidencia-pill-row .status-pill { padding: 3px 8px; }
.evidencia-list .priority-item { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
.evidencia-list .priority-item strong { overflow-wrap: anywhere; }
.map-file-name { max-width: 260px; overflow-wrap: anywhere; color: var(--muted); }
.table-status-form { min-width: 230px; margin-top: 0; }

@media (max-width: 1400px) {
  .notificacao-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notificacao-command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notificacao-command-grid .notificacao-remessa-panel { grid-column: 1 / -1; }
  .notificacao-work-grid { grid-template-columns: 1fr; }
  .notificacao-edit-panel { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 992px) {
  .metric-grid, .dashboard-metrics, .mapas-metrics, .pm-indicator-grid, .pm-distribution-grid, .detail-grid, .dashboard-map-layout, .operation-grid, .bic-work-grid, .tributavel-work-grid, .notificacao-work-grid { grid-template-columns: 1fr; }
  .operation-board { column-count: 1; }
  .page-title { align-items: flex-start; flex-direction: column; }
  .dashboard-health-row { grid-template-columns: 1fr; }
  .attention-grid { grid-template-columns: 1fr; }
  .bic-edit-panel, .tributavel-edit-panel, .notificacao-edit-panel { position: static; }
  .notificacao-metrics, .notificacao-command-grid, .notificacao-indicators-panel .pm-distribution-grid { grid-template-columns: 1fr; }
  .notificacao-command-grid .notificacao-remessa-panel { grid-column: auto; }
  .notificacao-table-wrap { max-height: none; }
  .notificacao-summary { grid-template-columns: 1fr; }
}

.nav-logo-frame { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 42px; border-radius: 6px; background: #ffffff; border: 1px solid rgba(255,255,255,.35); padding: 5px 8px; }
.nav-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.home-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.home-logo-frame { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 150px; height: 90px; border-radius: 8px; background: #ffffff; border: 1px solid var(--line); padding: 12px; }
.home-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.eyebrow { display: block; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.home-hero h1 { margin: 0; font-size: 2rem; font-weight: 750; color: var(--ink); }
.home-hero p { max-width: 780px; margin: 7px 0 0; color: var(--muted); font-size: 1rem; }
.home-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.home-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.home-module { display: flex; flex-direction: column; min-height: 138px; justify-content: space-between; padding: 18px; color: var(--ink); text-decoration: none; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.home-module:hover { color: var(--ink); border-color: rgba(18, 108, 116, .55); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.home-module strong { display: block; margin-bottom: 14px; font-size: 1.05rem; }
.home-module span { color: var(--muted); line-height: 1.42; }

.home-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.home-info-panel { min-height: 150px; }
.home-info-panel span { display: block; color: var(--brand); font-size: .78rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.home-info-panel strong { display: block; font-size: 1.06rem; margin-bottom: 8px; }
.home-info-panel p { margin: 0; color: var(--muted); line-height: 1.45; }

.login-brand { margin-bottom: 24px; }
.login-logo { display: block; width: 142px; max-width: 70%; height: auto; margin-bottom: 18px; }
.login-brand span { display: block; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

@media (max-width: 1100px) {
  .home-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; padding: 22px; }
  .home-identity { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-actions { justify-content: flex-start; }
  .home-module-grid { grid-template-columns: 1fr; }
  .home-logo-frame { width: 132px; height: 78px; }
  .nav-logo-frame { width: 64px; height: 38px; }
}

/* VPN operational identity */
.login-page {
  background:
    linear-gradient(135deg, rgba(11, 180, 170, .12) 0%, rgba(148, 209, 31, .10) 37%, rgba(247, 248, 250, 1) 37%),
    #f7f8fa;
  display: block;
  min-height: 100vh;
}

.login-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 2.5rem 1.25rem;
  width: auto;
}

.login-panel {
  background: #fff;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(360px, .72fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 600px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.login-brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(233, 251, 249, .92));
  border-right: 1px solid #d4e5f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
  padding: 3.25rem 3.4rem;
}

.login-brand > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.login-logo {
  background: #101010;
  border-radius: 10px;
  display: block;
  height: auto;
  margin: 0 auto 2.6rem;
  max-width: 430px;
  padding: .75rem .95rem;
  width: 88%;
}

.login-brand h1 {
  color: var(--ink);
  font-size: 4.1rem;
  font-weight: 800;
  line-height: .98;
  margin: 0;
  max-width: 640px;
}

.login-brand-subtitle {
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 1rem 0 0;
  text-transform: uppercase;
}

.login-card {
  align-self: center;
  padding: 3rem;
}

.login-card .form-control {
  min-height: 48px;
}

.home-logo-frame {
  flex-direction: column;
  gap: 8px;
  height: 126px;
  text-align: center;
  width: 190px;
}

.home-logo-caption {
  color: var(--ink);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 150px;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand {
    border-bottom: 1px solid #d4e5f0;
    border-right: 0;
    padding: 1.5rem;
  }

  .login-brand > div {
    min-height: auto;
  }

  .login-brand h1 {
    font-size: 2.55rem;
    max-width: 100%;
  }

  .login-logo {
    margin-bottom: 1.25rem;
    max-width: 300px;
    width: 82%;
  }

  .login-card {
    padding: 1.5rem;
  }
}

@media (max-width: 720px) {
  .home-logo-frame {
    height: 116px;
    width: 168px;
  }
}
