:root {
  --ink: #123b5d;
  --ink-2: #334155;
  --paper: #eaf0f4;
  --surface: #ffffff;
  --line: #d6dfea;
  --teal: #176b87;
  --coral: #1f5ea8;
  --gold: #d58a24;
  --blue: #1f5ea8;
  --muted: #64748b;
  --shadow: 0 16px 38px rgba(18, 59, 93, 0.1);
}

.sidebar,
.login-art {
  background: linear-gradient(145deg, #123b5d 0%, #176b87 62%, #1d7a72 100%);
}

.sidebar {
  overflow-y: auto;
}

.sidebar nav {
  margin: 32px 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(2, 18, 34, 0.28);
}

.sidebar nav a {
  color: rgba(255, 255, 255, 0.78);
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.sidebar-user {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.sidebar-user span,
.app-credits small {
  color: rgba(255, 255, 255, 0.68);
}

.link-button {
  color: rgba(255, 255, 255, 0.9);
}

.app-credits {
  display: grid;
  gap: 4px;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  line-height: 1.45;
}

.app-credits strong {
  font-size: 0.72rem;
}

.button.primary,
.menu-button {
  background: #1f5ea8;
}

.button.secondary {
  background: #176b87;
}

.button.primary:hover,
.menu-button:hover {
  background: #174a86;
}

.button.secondary:hover {
  background: #12566d;
}

.panel,
.table-wrap,
.filter-bar {
  border-color: #d6dfea;
}

th {
  background: #eaf1f8;
  color: #0f3d73;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.stack-form input:focus {
  border-color: #1f5ea8;
  box-shadow: 0 0 0 3px rgba(31, 94, 168, 0.14);
}

.accent-panel {
  background: linear-gradient(150deg, #e7f2f7, #ffffff);
}

.report-intro {
  background: linear-gradient(110deg, #123b5d, #176b87 65%, #1d7a72);
}

.login-page {
  background: #eaf0f4;
}

.login-art .art-card {
  background: #ffffff;
  box-shadow: 25px 30px 0 rgba(31, 94, 168, 0.48);
}

.login-art .art-card > span {
  color: #1f5ea8;
}

.login-art .art-lines i {
  background: #d6dfea;
}

.login-credits {
  display: grid;
  gap: 3px;
  margin-top: 34px;
  color: #334155;
  font-size: 0.76rem;
}

.login-credits small {
  color: #64748b;
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.priority-dot.on,
.legend-dot.priority {
  background: #d8533f;
}

.filter-stack {
  display: grid;
  align-items: stretch;
}

.filter-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-actions {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .sticky-actions {
    position: static;
    margin-left: 0;
  }

  .filter-row {
    align-items: stretch;
  }
}

.password-notice {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff3d5;
  color: #654a13;
  font-weight: 700;
}

.config-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.65fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.config-filter label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.config-filter input,
.config-filter select {
  width: 100%;
  min-height: 41px;
  border: 1px solid #bdc9d4;
  border-radius: 9px;
  background: #ffffff;
  padding: 9px 10px;
  color: var(--ink);
}

.config-results {
  max-height: 620px;
  overflow: auto;
}

.task-estimate {
  display: grid;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff, #edf5fa);
  border-color: #c9d6e4;
}

.estimate-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.estimate-heading h2 {
  margin-top: 4px;
}

.estimate-state {
  max-width: 360px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.estimate-state.is-loading {
  background: #eaf1f8;
  color: #1f5ea8;
}

.estimate-state.is-ok {
  background: #dcfce7;
  color: #166534;
}

.estimate-state.is-warning {
  background: #ffedd5;
  color: #9a3412;
}

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

.estimate-value {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid #d6dfea;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
}

.estimate-value > span,
.estimate-value small {
  color: #64748b;
  font-size: 0.73rem;
}

.estimate-value strong {
  color: #123b5d;
  font: 800 clamp(1rem, 2vw, 1.35rem) Manrope, sans-serif;
}

@media (max-width: 760px) {
  .config-filter {
    grid-template-columns: 1fr;
  }

  .estimate-heading {
    display: grid;
  }

  .estimate-state {
    max-width: none;
  }

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