:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --ink: #182230;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #0f766e;
  --brand2: #0e7490;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-compact {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(180deg, #0b3b42, #0f5660 55%, #0f766e);
  color: #fff;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 8px 4px;
}

.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-with-logo img {
  width: 42px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 3px;
}

.brand-sub {
  font-size: 12px;
  opacity: 0.78;
  margin: 0 8px 22px;
}

.nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin: 20px 10px 7px;
}

.nav a {
  display: block;
  color: #e6fffb;
  padding: 10px 12px;
  border-radius: 9px;
  margin: 2px 0;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.main {
  min-width: 0;
}

.topbar {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-compact {
  height: auto;
  min-height: 74px;
  padding: 16px 24px;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.brand-mark-logo {
  background: #fff;
  padding: 4px;
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

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

.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 6px;
}

.status-chip {
  min-width: 96px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.status-chip span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.status-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.status-chip-soft {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(14, 116, 144, 0.06));
  border-color: rgba(15, 118, 110, 0.16);
}

.status-chip-live {
  background: rgba(2, 122, 72, 0.08);
  border-color: rgba(2, 122, 72, 0.2);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.topbar-link.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 116, 144, 0.1));
  border-color: rgba(15, 118, 110, 0.26);
  color: var(--brand);
}

.topbar-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.topbar-menu {
  position: relative;
}

.topbar-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.topbar-menu > summary::-webkit-details-marker {
  display: none;
}

.topbar-menu[open] > summary {
  background: #f8fafc;
}

.topbar-menu > summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.topbar-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(820px, 92vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  z-index: 30;
}

.topbar-menu-group {
  min-width: 0;
}

.topbar-menu-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.topbar-menu-desc {
  font-size: 12px;
  color: #475467;
  margin-bottom: 10px;
  line-height: 1.45;
}

.topbar-menu-group a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  transition: background 120ms ease, transform 120ms ease;
}

.topbar-link,
.topbar-menu-group a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.inline-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.topbar-menu-group a:hover,
.topbar-menu-group a.active {
  background: #eef6f8;
  text-decoration: none;
  transform: translateX(2px);
}

.topbar-menu > summary {
  gap: 8px;
}

.content {
  padding: 26px;
  max-width: 1600px;
  margin: 0 auto;
}

.content-compact {
  padding: 18px 24px 30px;
  max-width: none;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 26px;
  margin: 0;
}

.page-title p {
  color: var(--muted);
  margin: 5px 0 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.daily-guide {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 58%, #eff6ff 100%);
}

.daily-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.daily-guide-head .section-title {
  margin-bottom: 5px;
}

.daily-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-step {
  display: flex;
  gap: 12px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.daily-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  font-size: 16px;
  font-weight: 800;
}

.daily-step h3 {
  margin: 0;
  font-size: 15px;
}

.daily-step p {
  min-height: 38px;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.metric {
  padding: 18px;
}

.metric .label {
  color: var(--muted);
  font-weight: 600;
}

.metric .value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 7px;
}

.metric .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow: auto;
}

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

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475467;
  background: #f9fafb;
}

td.num,
th.num {
  text-align: right;
}

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

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

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 95px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  border-color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 750;
  cursor: pointer;
  background: #e4e7ec;
  color: #344054;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

.btn-danger {
  background: #fee4e2;
  color: var(--danger);
}

.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.table-actions form {
  display: inline-flex;
  margin: 0;
}

.table-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .btn {
  white-space: nowrap;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid;
}

.alert-success {
  background: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}

.alert-error {
  background: #fef3f2;
  color: #b42318;
  border-color: #fecdca;
}

.alert-warning {
  background: #fffaeb;
  color: #b54708;
  border-color: #fedf89;
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #f2f4f7;
  color: #344054;
}

.badge-ok {
  background: #ecfdf3;
  color: #027a48;
}

.badge-warn {
  background: #fffaeb;
  color: #b54708;
}

.badge-danger {
  background: #fef3f2;
  color: #b42318;
}

.text-muted {
  color: var(--muted);
}

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

.section-title {
  font-size: 17px;
  margin: 0 0 13px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

.exec-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 24px 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(14, 116, 144, 0.05)), var(--panel);
}

.exec-hero h1 {
  font-size: 30px;
  margin: 0 0 8px;
}

.exec-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.hero-chip-action {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.hero-chip-action:hover {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.08);
}

.hero-chip-brand {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 116, 144, 0.08));
  border-color: rgba(15, 118, 110, 0.16);
  color: var(--brand);
}

.hero-chip-ok {
  background: rgba(2, 122, 72, 0.08);
  border-color: rgba(2, 122, 72, 0.18);
  color: var(--ok);
}

.hero-chip-warn {
  background: rgba(181, 71, 8, 0.08);
  border-color: rgba(181, 71, 8, 0.18);
  color: var(--warn);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: min(100%, 560px);
}

.hero-metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}

.hero-metric .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.hero-metric strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 7px;
}

.hero-metric small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.exec-summary {
  padding: 22px;
  border-radius: 20px;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08), transparent 70%);
  pointer-events: none;
}

.dashboard-lower .card {
  padding: 24px;
}

.dashboard-dark {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(14, 116, 144, 0.16), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #0b1424 48%, #101a2b 100%);
}

.dashboard-dark .topbar-compact {
  background: rgba(8, 16, 29, 0.68);
  border-bottom-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.dashboard-dark .content-compact {
  color: #e2e8f0;
}

.dashboard-dark .exec-hero h1 {
  color: #f8fafc;
}

.dashboard-dark .exec-hero p {
  color: #cbd5e1;
}

.dashboard-dark .page-title p,
.dashboard-dark .hero-metric .label,
.dashboard-dark .hero-metric small,
.dashboard-dark .section-head p,
.dashboard-dark .chart-head p,
.dashboard-dark .text-muted,
.dashboard-dark .footer-note,
.dashboard-dark .topbar-menu-desc,
.dashboard-dark .login-credentials-note {
  color: #94a3b8;
}

.dashboard-dark .hero-chip,
.dashboard-dark .topbar-link,
.dashboard-dark .topbar-menu > summary,
.dashboard-dark .status-chip {
  background: rgba(10, 18, 32, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.dashboard-dark .card,
.dashboard-dark .chart-card,
.dashboard-dark .hero-metric {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #d2dbe6;
  color: #0f172a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.dashboard-dark .hero-chip-brand {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(14, 116, 144, 0.16));
  color: #d1fae5;
}

.dashboard-dark .hero-chip-ok,
.dashboard-dark .status-chip-live {
  background: rgba(2, 122, 72, 0.14);
  color: #86efac;
}

.dashboard-dark .hero-chip-warn {
  background: rgba(181, 71, 8, 0.16);
  color: #fbbf24;
}

.dashboard-dark .status-chip-soft {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(45, 212, 191, 0.18);
}

.dashboard-dark .card .text-muted,
.dashboard-dark .chart-card .text-muted,
.dashboard-dark .card .footer-note,
.dashboard-dark .chart-card .chart-head p,
.dashboard-dark .hero-metric small,
.dashboard-dark .metric .hint,
.dashboard-dark .hero-metric .label,
.dashboard-dark .metric .label {
  color: #475467;
}

.dashboard-dark .hero-metric strong,
.dashboard-dark .metric .value,
.dashboard-dark .section-title,
.dashboard-dark .chart-head h3 {
  color: #0f172a;
}

.dashboard-dark .topbar-brand strong {
  color: #f8fafc;
}

.dashboard-dark .topbar-brand span {
  color: #94a3b8;
}

.dashboard-dark .metric,
.dashboard-dark .card.metric,
.dashboard-dark .dashboard-panel::before {
  box-shadow: none;
}

.dashboard-dark .chart-table th {
  background: #f8fafc;
  color: #475467;
}

.dashboard-dark th,
.dashboard-dark td {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.dashboard-dark .notice {
  background: #ecfdf3;
  border-left-color: #14b8a6;
  color: #0f172a;
}

.dashboard-dark .dashboard-panel::before {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 70%);
}

.focus-mode .topbar-status,
.focus-mode .topbar-nav,
.focus-mode .dashboard-lower,
.focus-mode .dashboard-workflow {
  display: none;
}

.focus-mode .content-compact {
  padding-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head p {
  margin-top: 5px;
}

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

.chart-grid-secondary {
  margin-top: 16px;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.07);
  min-height: 360px;
}

.chart-card-wide {
  min-height: 390px;
}

.chart-card-compact {
  min-height: 390px;
}

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

.chart-head h3 {
  margin: 0;
  font-size: 16px;
}

.chart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #344054;
  font-weight: 700;
}

.legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.chart-canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.chart-canvas-wide,
.chart-canvas-compact {
  height: 300px;
}

.chart-table {
  margin-top: 16px;
}

.trend-table th {
  background: #f8fafc;
}

.trend-table td,
.trend-table th {
  padding: 10px 9px;
}

.notice {
  border-left: 4px solid var(--brand);
  background: #f0fdfa;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ccfbf1;
  color: #115e59;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.print-only {
  display: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 116, 144, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.login-page::before {
  width: 280px;
  height: 280px;
  background: rgba(15, 118, 110, 0.12);
  top: -90px;
  right: -70px;
}

.login-page::after {
  width: 360px;
  height: 360px;
  background: rgba(14, 116, 144, 0.08);
  left: -120px;
  bottom: -140px;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.login-marketing,
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.login-marketing {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(145deg, #082f38 0%, #0c4a55 42%, #0f766e 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
}

.login-marketing::before {
  content: "";
  position: absolute;
  inset: auto -20% -18% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-marketing::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 26%),
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55% 100%);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.login-ribbon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes loginFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes loginSmoke {
  0% { transform: translateY(0) scale(1); opacity: 0.18; }
  50% { transform: translateY(-10px) scale(1.04); opacity: 0.3; }
  100% { transform: translateY(-18px) scale(1.08); opacity: 0.12; }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.login-logo-image {
  background: rgba(255, 255, 255, 0.94);
  padding: 5px;
}

.login-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.login-name {
  font-size: 18px;
  font-weight: 800;
}

.login-tag {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  margin-top: 2px;
}

.login-marketing h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 34px 0 14px;
  max-width: 12ch;
  position: relative;
  z-index: 1;
}

.login-marketing > p {
  margin: 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.login-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.login-point {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

.login-point strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.login-point span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
  font-size: 13px;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.login-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.login-stat strong {
  display: block;
  font-size: 13px;
  margin-top: 7px;
}

.login-art {
  position: absolute;
  right: -40px;
  bottom: -26px;
  width: min(86%, 620px);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.14));
  animation: loginFloat 9s ease-in-out infinite;
}

.login-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.login-art circle {
  animation: loginSmoke 7s ease-in-out infinite;
}

.login-art circle:nth-child(1) {
  animation-delay: 0s;
}

.login-art circle:nth-child(2) {
  animation-delay: 1.2s;
}

.login-art circle:nth-child(3) {
  animation-delay: 2.1s;
}

.login-float-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: min(300px, 44%);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(5, 12, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.18);
  z-index: 2;
  animation: loginFloat 8s ease-in-out infinite;
}

.login-float-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.login-float-card strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}

.login-float-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.login-marketing > :not(.login-art) {
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  position: relative;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 254, 0.98));
}

.login-card h1 {
  margin: 0 0 5px;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.login-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.login-card-top p {
  margin: 8px 0 0;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  color: #115e59;
  border: 1px solid #b2f5ea;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

.login-card .field {
  margin-top: 14px;
}

.login-form {
  margin-top: 8px;
}

.login-card .btn {
  width: 100%;
  margin-top: 18px;
}

.login-submit {
  height: 48px;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(15, 118, 110, 0.24);
}

.login-credentials {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f3f8fb 100%);
  border: 1px solid var(--line);
}

.login-credentials-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.login-credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.login-credentials-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f2f4f7;
  border-radius: 6px;
  padding: 2px 6px;
}

.line-table input,
.line-table select {
  min-width: 110px;
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  padding: 8px;
}

.line-table .wide {
  min-width: 210px;
}

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

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

  .hero-metrics,
  .chart-grid,
  .daily-guide-steps {
    grid-template-columns: 1fr;
  }

  .exec-hero {
    align-items: flex-start;
  }

  .topbar-menu-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-status {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .app {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

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

  .topbar {
    position: relative;
    padding: 0 16px;
  }

  .topbar-compact {
    padding: 16px;
  }

  .content {
    padding: 16px;
  }

  .form-grid,
  .form-grid-3,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    display: block;
  }

  .page-title .actions {
    margin-top: 12px;
  }

  .daily-guide-head {
    display: block;
  }

  .daily-guide-head .btn {
    margin-top: 12px;
  }

  .topbar-nav {
    width: 100%;
    margin-left: 0;
  }

  .topbar-status {
    width: 100%;
  }

  .status-chip {
    flex: 1 1 140px;
  }

  .topbar-menu-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }

  .login-page {
    padding: 14px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-marketing,
  .login-card {
    padding: 22px;
    border-radius: 20px;
  }

  .login-marketing h1 {
    max-width: 100%;
    margin-top: 22px;
  }

  .login-stats {
    grid-template-columns: 1fr;
  }

  .login-art {
    right: -18px;
    bottom: -10px;
    width: 94%;
    opacity: 0.6;
  }

  .login-float-card {
    right: 18px;
    bottom: 18px;
    width: min(280px, 66%);
  }

  .login-card-top {
    display: block;
  }

  .login-badge {
    margin-top: 10px;
  }
}

@media print {
  .sidebar,
  .topbar,
  .no-print,
  .btn {
    display: none !important;
  }

  .app {
    display: block;
  }

  .content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .print-only {
    display: block;
  }

  body {
    background: #fff;
  }
}

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

.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.notification-item:hover { border-color: #94a3b8; transform: translateY(-1px); }
.notification-item strong, .notification-item small { display: block; }
.notification-item small { margin-top: 3px; color: #64748b; }
.notification-dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; flex: 0 0 auto; }
.notification-danger .notification-dot { background: #dc2626; }
.notification-arrow { margin-left: auto; color: #64748b; font-size: 20px; }
