:root {
  --app-blue-900: #12345b;
  --app-blue-800: #174574;
  --app-blue-700: #1d5f9e;
  --app-blue-600: #2877bd;
  --app-blue-100: #eaf3fb;
  --app-blue-50: #f4f8fc;
  --app-slate-900: #1d2939;
  --app-slate-700: #475467;
  --app-slate-500: #667085;
  --app-slate-300: #d0d5dd;
  --app-slate-200: #e4e7ec;
  --app-slate-100: #f2f4f7;
  --app-surface: #ffffff;
  --app-bg: #f4f6f9;
  --app-shadow: 0 8px 24px rgba(23, 45, 73, 0.07);
}

* {
  box-sizing: border-box;
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  color: var(--app-slate-900);
  background: var(--app-bg);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

/* M07 simplified authenticated shell with persistent left navigation. */
.app-body--authenticated {
  font-size: 16px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
  color: #e9f0f8;
  background: #122033;
}

.app-sidebar__brand,
.app-guest-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.app-sidebar__toggle {
  display: none;
}

.app-sidebar__brand:hover,
.app-sidebar__brand:focus,
.app-guest-brand:hover,
.app-guest-brand:focus {
  color: inherit;
}

.app-sidebar__brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 16px;
  font-weight: 700;
}

.app-sidebar__brand strong,
.app-sidebar__brand small,
.app-guest-brand strong,
.app-guest-brand small {
  display: block;
  line-height: 1.35;
}

.app-sidebar__brand strong,
.app-guest-brand strong {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.app-sidebar__brand small,
.app-guest-brand small {
  margin-top: 2px;
  color: rgba(233, 240, 248, 0.62);
  font-size: 11px;
}

.app-sidebar__nav {
  min-height: 0;
  margin-top: 28px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.app-sidebar__link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(233, 240, 248, 0.76);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.app-sidebar__link svg,
.app-sidebar__logout svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.app-sidebar__link.is-active {
  color: #fff;
  background: #2563eb;
}

.app-sidebar__divider {
  height: 1px;
  flex: 0 0 auto;
  margin: 10px 6px;
  background: rgba(233, 240, 248, 0.16);
}

.app-sidebar__account {
  flex: 0 0 auto;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(233, 240, 248, 0.14);
}

.app-sidebar__user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 11px;
}

.app-sidebar__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #17365d;
  background: #e9f2ff;
  font-size: 13px;
  font-weight: 700;
}

.app-sidebar__user strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar__account form {
  margin: 0;
}

.app-sidebar__logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(233, 240, 248, 0.72);
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.app-sidebar__logout:hover,
.app-sidebar__logout:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.app-workspace {
  min-width: 0;
}

.app-shell .app-main {
  width: 100%;
  max-width: 1500px;
  padding: 30px 34px 42px;
}

.app-guest-header {
  padding: 15px max(20px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: #122033;
}

.app-guest-brand {
  width: fit-content;
}

.app-main--guest {
  padding-top: 28px;
  padding-bottom: 44px;
}

.simple-dashboard {
  --simple-border: #dfe5ec;
  --simple-muted: #667085;
}

.simple-dashboard__header {
  margin-bottom: 24px;
}

.simple-dashboard__header h1 {
  margin: 0;
  color: #17253a;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.simple-dashboard__header p {
  margin: 5px 0 0;
  color: var(--simple-muted);
  font-size: 15px;
}

.simple-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.simple-metric {
  min-width: 0;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--simple-border);
  border-radius: 10px;
  color: #17253a;
  background: #fff;
  text-decoration: none;
}

.simple-metric:hover,
.simple-metric:focus {
  color: #17253a;
  border-color: #b7c7d9;
}

.simple-metric__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
}

.simple-metric__icon svg,
.simple-shortcuts__grid svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.simple-metric--blue .simple-metric__icon {
  background: #2563eb;
}

.simple-metric--green .simple-metric__icon {
  background: #1fa971;
}

.simple-metric--amber .simple-metric__icon {
  background: #ee9418;
}

.simple-metric small,
.simple-metric strong {
  display: block;
}

.simple-metric small {
  color: var(--simple-muted);
  font-size: 14px;
}

.simple-metric strong {
  margin-top: 3px;
  font-size: 30px;
  line-height: 1.15;
}

.simple-panel {
  overflow: hidden;
  border: 1px solid var(--simple-border);
  border-radius: 10px;
  background: #fff;
}

.simple-panel__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f4;
}

.simple-panel__header h2 {
  margin: 0;
  color: #17253a;
  font-size: 17px;
  font-weight: 700;
}

.simple-panel__header a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.simple-shortcuts {
  margin-top: 18px;
}

.simple-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}

.simple-shortcuts__grid a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  color: #24405f;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.simple-shortcuts__grid a:hover,
.simple-shortcuts__grid a:focus {
  border-color: #9db9da;
  color: #185aa5;
  background: #f8fbff;
}

.simple-shortcuts__grid a > span {
  color: #2563eb;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.simple-shortcuts__grid svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.simple-dashboard__content {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: 18px;
}

.simple-table {
  --bs-table-bg: transparent;
  color: #475467;
  font-size: 13px;
}

.simple-table thead th {
  padding: 10px 18px;
  border-bottom-color: #e8ecf1;
  color: #667085;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.simple-table tbody td {
  padding: 12px 18px;
  border-bottom-color: #edf0f4;
}

.simple-table tbody tr:last-child td {
  border-bottom: 0;
}

.simple-table a {
  color: #255e9e;
  font-weight: 600;
  text-decoration: none;
}

.simple-table td small {
  display: block;
  margin-top: 2px;
  color: #8a94a3;
  font-size: 11px;
}

.simple-todos__list {
  padding: 5px 16px 8px;
}

.simple-todos__list a {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf0f4;
  color: #344054;
  text-decoration: none;
}

.simple-todos__list a:last-child {
  border-bottom: 0;
}

.simple-todos__list a:hover,
.simple-todos__list a:focus {
  color: #185aa5;
}

.simple-todos__list strong,
.simple-todos__list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-todos__list strong {
  font-size: 13px;
}

.simple-todos__list small {
  margin-top: 3px;
  color: #7d8796;
  font-size: 11px;
}

.simple-todos__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98a2b3;
}

.simple-todos__dot--primary { background: #2877bd; }
.simple-todos__dot--warning { background: #ee9418; }
.simple-todos__dot--danger { background: #c43d4b; }
.simple-todos__dot--info { background: #27849a; }
.simple-todos__dot--success { background: #2e8b63; }

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .app-sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-sidebar__brand strong {
    font-size: 15px;
  }

  .app-shell .app-main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .simple-dashboard__content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px;
  }

  .app-sidebar__toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
  }

  .app-sidebar__nav {
    margin-top: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .app-sidebar.is-open .app-sidebar__nav {
    display: grid;
  }

  .app-sidebar__divider {
    grid-column: 1 / -1;
    margin: 6px;
  }

  .app-sidebar__account {
    margin-top: 12px;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }

  .app-sidebar.is-open .app-sidebar__account {
    display: grid;
  }

  .app-sidebar__user {
    padding-bottom: 0;
  }

  .app-sidebar__logout {
    width: auto;
  }

  .app-shell .app-main {
    padding: 22px 15px 32px;
  }

  .simple-dashboard__metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .simple-metric {
    min-height: 88px;
    padding: 15px 17px;
  }

  .simple-shortcuts__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 419.98px) {
  .simple-dashboard__header h1 {
    font-size: 25px;
  }

  .simple-panel__header,
  .simple-table thead th,
  .simple-table tbody td {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar__link {
    transition: none;
  }
}

.energy-page {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.energy-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid #d9e8dd;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #f4fbf5 0%, #e7f6eb 100%);
}

.energy-eyebrow {
  display: block;
  margin-bottom: .35rem;
  color: #39714a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.energy-hero h1 {
  margin: 0 0 .55rem;
  color: #173f26;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 750;
}

.energy-hero p,
.energy-output-card p {
  margin: 0;
  color: #52665a;
}

.energy-hero__rule {
  min-width: 22rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(55, 112, 72, .22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .78);
}

.energy-hero__rule small,
.energy-hero__rule strong,
.energy-hero__rule span {
  display: block;
}

.energy-hero__rule small,
.energy-hero__rule span,
.energy-card__heading small,
.energy-submit-row small {
  color: #6e7d73;
  font-size: .78rem;
}

.energy-hero__rule strong {
  margin: .2rem 0;
  color: #1f5d35;
}

.energy-form {
  display: grid;
  gap: 1.15rem;
}

.energy-project-selector {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 1.2rem;
  padding: 1.35rem;
  border: 1px solid #dce9df;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 71, 46, .06);
}

.energy-project-selector__heading h2 {
  margin: 0 0 .35rem;
  color: #233b2a;
  font-size: 1.25rem;
}

.energy-project-selector__heading p {
  margin: 0;
  color: #718078;
  font-size: .82rem;
}

.energy-project-selector__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.energy-project-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .7rem;
  row-gap: .15rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #d9e5dc;
  border-radius: .85rem;
  color: #385342;
  background: #f9fcfa;
  text-align: left;
}

.energy-project-option > span {
  grid-row: 1 / 3;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .7rem;
  color: #39714a;
  background: #e5f3e9;
  font-size: .78rem;
  font-weight: 800;
}

.energy-project-option strong,
.energy-project-option small {
  min-width: 0;
  display: block;
}

.energy-project-option strong {
  font-size: .9rem;
}

.energy-project-option small {
  color: #75827a;
  font-size: .7rem;
}

.energy-project-option:hover,
.energy-project-option:focus-visible {
  border-color: #7eae8b;
  outline: none;
}

.energy-project-option.is-active {
  border-color: #2f7a47;
  color: #1f5d35;
  background: #eef8f1;
  box-shadow: 0 0 0 2px rgba(47, 122, 71, .12);
}

.energy-card,
.energy-output-card {
  border: 1px solid #e0e8e2;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 71, 46, .06);
}

.energy-card {
  padding: 1.4rem;
}

.energy-card__heading,
.energy-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.energy-card__heading {
  margin-bottom: 1.15rem;
}

.energy-card__heading > div {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.energy-card__heading > div > span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .75rem;
  background: #dff2e4;
  color: #24663a;
  font-weight: 800;
}

.energy-card h2,
.energy-output-card h2 {
  margin: 0;
  color: #233b2a;
  font-size: 1.15rem;
}

.energy-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.energy-rules > div {
  padding: 1rem;
  border: 1px solid #dce9df;
  border-radius: .9rem;
  background: #f8fcf9;
}

.energy-rules span,
.energy-rules strong {
  display: block;
}

.energy-rules span {
  margin-bottom: .25rem;
  color: #718078;
  font-size: .78rem;
}

.energy-rules strong {
  color: #245a35;
  font-size: .94rem;
}

.energy-output-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.4rem;
  padding: 1.35rem;
}

.energy-output-card h2 {
  margin-bottom: .45rem;
}

.energy-output-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #4f6456;
  font-size: .88rem;
}

.energy-output-card li + li {
  margin-top: .4rem;
}

.energy-submit-row {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #183f27;
  color: #fff;
}

.energy-submit-row strong,
.energy-submit-row small {
  display: block;
}

.energy-submit-row small {
  color: #c8ddce;
}

.energy-package-preview {
  display: grid;
  gap: .3rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dce9df;
  border-radius: .8rem;
  background: #f8fcf9;
  color: #4f6456;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .76rem;
}

.energy-package-preview span {
  color: #24663a;
  font-weight: 750;
}

.energy-package-preview small {
  padding-left: 1rem;
}

.energy-history {
  margin-top: .5rem;
  padding: 1.5rem;
  border: 1px solid #dce9df;
  border-radius: 1.2rem;
  background: #f7fbf8;
}

.energy-history__heading,
.energy-job__top,
.energy-job__bottom,
.energy-job__file,
.energy-job__title-row,
.energy-job__progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.energy-history__heading {
  margin-bottom: 1.1rem;
}

.energy-history__heading h2 {
  margin: 0 0 .25rem;
  color: #233b2a;
  font-size: 1.35rem;
}

.energy-history__heading p,
.energy-job p {
  margin: 0;
  color: #718078;
  font-size: .82rem;
}

.energy-history__count {
  flex: 0 0 auto;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #dff2e4;
  color: #24663a;
  font-size: .72rem;
  font-weight: 700;
}

.energy-job-list {
  display: grid;
  gap: .85rem;
}

.energy-job {
  padding: 1.15rem;
  border: 1px solid #dce9df;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 7px 22px rgba(36, 71, 46, .04);
}

.energy-job__title-row {
  justify-content: flex-start;
  gap: .6rem;
}

.energy-job__title-row h3 {
  margin: 0;
  color: #1f5d35;
  font-size: 1.02rem;
}

.energy-job__time {
  flex: 0 0 auto;
  color: #829087;
  text-align: right;
  font-size: .7rem;
}

.energy-job__time span,
.energy-job__time time {
  display: block;
}

.energy-job__progress {
  margin-top: .9rem;
}

.energy-job__progress .progress {
  height: .58rem;
  border-radius: 999px;
  background: #e5eee7;
}

.energy-job__progress-copy {
  margin-top: .35rem;
  color: #607467;
  font-size: .72rem;
}

.energy-job__progress-copy strong {
  color: #24663a;
}

.energy-job__parameters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .85rem;
}

.energy-job__parameters > span {
  min-width: 0;
  padding: .6rem .7rem;
  border-radius: .55rem;
  background: #f5f9f6;
  color: #365540;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.energy-job__parameters small {
  display: block;
  margin-bottom: .1rem;
  color: #819087;
  font-size: .62rem;
}

.energy-job__bottom {
  align-items: flex-end;
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px solid #edf3ee;
}

.energy-job__failure {
  color: #a43b42 !important;
}

.energy-job__file {
  margin-left: auto;
  color: #64786a;
  font-size: .72rem;
}

.energy-history__empty {
  padding: 1.7rem 1rem;
  border: 1px dashed #cadbce;
  border-radius: .75rem;
  color: #7c8e81;
  text-align: center;
}

@media (max-width: 991px) {
  .energy-hero,
  .energy-card__heading,
  .energy-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .energy-hero__rule {
    min-width: 0;
  }

  .energy-rules,
  .energy-output-card,
  .energy-project-selector {
    grid-template-columns: 1fr 1fr;
  }

  .energy-job__parameters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .energy-hero {
    padding: 1.25rem;
  }

  .energy-rules,
  .energy-output-card,
  .energy-project-selector,
  .energy-project-selector__options {
    grid-template-columns: 1fr;
  }

  .energy-history {
    padding: 1rem .75rem;
  }

  .energy-history__heading,
  .energy-job__top,
  .energy-job__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .energy-history__count {
    align-self: flex-start;
  }

  .energy-job__time {
    text-align: left;
  }

  .energy-job__parameters {
    grid-template-columns: 1fr;
  }

  .energy-job__file {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }
}

.app-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: linear-gradient(105deg, var(--app-blue-900), var(--app-blue-800));
  box-shadow: 0 2px 10px rgba(18, 52, 91, 0.18);
}

.app-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.app-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
  color: #fff;
}

.app-brand__mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 700;
}

.app-brand strong,
.app-brand small {
  display: block;
  line-height: 1.25;
}

.app-brand strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.app-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.app-nav {
  min-width: 0;
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 4px;
}

.app-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.app-nav__link:hover,
.app-nav__link:focus,
.app-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-nav__link.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #82c5ff;
  content: "";
}

.app-account {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-account__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--app-blue-900);
  background: #ddecfa;
  font-size: 13px;
  font-weight: 700;
}

.app-account__identity {
  min-width: 0;
}

.app-account__identity strong,
.app-account__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-account__identity strong {
  max-width: 130px;
  font-size: 13px;
  line-height: 1.25;
}

.app-account__identity small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.app-logout {
  margin-left: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-logout:hover,
.app-logout:focus {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.app-main {
  padding-top: 28px;
  padding-bottom: 44px;
}

.dashboard-page {
  --dashboard-radius: 12px;
  --dashboard-border: #e1e7ef;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border: 1px solid #d8e4f0;
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(233, 244, 253, 0.92), rgba(255, 255, 255, 0.98) 68%),
    var(--app-surface);
  box-shadow: 0 7px 22px rgba(26, 69, 110, 0.06);
}

.dashboard-hero::after {
  position: absolute;
  top: -68px;
  right: -45px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(40, 119, 189, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dashboard-eyebrow,
.dashboard-section__kicker {
  display: block;
  color: var(--app-blue-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 5px 0 6px;
  color: var(--app-blue-900);
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-hero p {
  max-width: 710px;
  margin: 0;
  color: var(--app-slate-500);
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-primary-action {
  position: relative;
  z-index: 1;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--app-blue-700);
  border-radius: 9px;
  color: #fff;
  background: var(--app-blue-700);
  box-shadow: 0 7px 16px rgba(29, 95, 158, 0.2);
  font-size: 14px;
  font-weight: 600;
}

.dashboard-primary-action:hover,
.dashboard-primary-action:focus {
  border-color: var(--app-blue-800);
  color: #fff;
  background: var(--app-blue-800);
}

.dashboard-primary-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.dashboard-section {
  margin-top: 26px;
}

.dashboard-section__heading,
.dashboard-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section__heading {
  margin-bottom: 12px;
  padding: 0 2px;
}

.dashboard-section__heading h2,
.dashboard-panel__header h2 {
  margin: 2px 0 0;
  color: var(--app-slate-900);
  font-size: 17px;
  font-weight: 700;
}

.dashboard-section__hint {
  color: var(--app-slate-500);
  font-size: 12px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 11px;
}

.dashboard-metric {
  --metric-color: var(--app-blue-700);
  --metric-soft: var(--app-blue-100);
  position: relative;
  min-width: 0;
  min-height: 116px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--dashboard-border);
  border-top: 3px solid var(--metric-color);
  border-radius: var(--dashboard-radius);
  color: var(--app-slate-900);
  background: var(--app-surface);
  box-shadow: 0 4px 14px rgba(23, 45, 73, 0.045);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-metric::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--metric-soft);
  content: "";
  opacity: 0.72;
}

.dashboard-metric:hover,
.dashboard-metric:focus {
  color: var(--app-slate-900);
  border-color: color-mix(in srgb, var(--metric-color), white 58%);
  box-shadow: var(--app-shadow);
  transform: translateY(-2px);
}

.dashboard-metric__label,
.dashboard-metric__link,
.dashboard-metric strong {
  position: relative;
  z-index: 1;
}

.dashboard-metric__label {
  min-height: 34px;
  color: var(--app-slate-500);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-metric strong {
  color: var(--metric-color);
  font-size: 28px;
  line-height: 1;
}

.dashboard-metric__link {
  margin-top: 7px;
  color: var(--app-slate-500);
  font-size: 10px;
}

.dashboard-metric--today,
.dashboard-metric--primary {
  --metric-color: #2877bd;
  --metric-soft: #eaf3fb;
}

.dashboard-metric--secondary {
  --metric-color: #667085;
  --metric-soft: #f2f4f7;
}

.dashboard-metric--warning {
  --metric-color: #c07a12;
  --metric-soft: #fff3dd;
}

.dashboard-metric--danger {
  --metric-color: #c43d4b;
  --metric-soft: #fdecef;
}

.dashboard-metric--info {
  --metric-color: #27849a;
  --metric-soft: #e6f5f8;
}

.dashboard-metric--success {
  --metric-color: #2e8b63;
  --metric-soft: #e9f7f0;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.dashboard-shortcut {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
  color: var(--app-slate-900);
  background: var(--app-surface);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-shortcut:hover,
.dashboard-shortcut:focus {
  color: var(--app-blue-800);
  border-color: #b9d4eb;
  box-shadow: 0 5px 16px rgba(29, 95, 158, 0.08);
}

.dashboard-shortcut__icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--app-blue-700);
  background: var(--app-blue-50);
}

.dashboard-shortcut__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dashboard-shortcut strong,
.dashboard-shortcut small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-shortcut strong {
  font-size: 13px;
}

.dashboard-shortcut small {
  margin-top: 2px;
  color: var(--app-slate-500);
  font-size: 10px;
}

.dashboard-shortcut__arrow {
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
}

.dashboard-content {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.85fr);
  grid-template-areas: "main todos";
  align-items: start;
  gap: 18px;
}

.dashboard-content__main {
  min-width: 0;
  grid-area: main;
  display: grid;
  gap: 18px;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius);
  background: var(--app-surface);
  box-shadow: 0 5px 18px rgba(23, 45, 73, 0.045);
}

.dashboard-panel__header {
  min-height: 67px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid #edf0f4;
}

.dashboard-panel__header a {
  color: var(--app-blue-700);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-panel__header a:hover,
.dashboard-panel__header a:focus {
  color: var(--app-blue-900);
}

.dashboard-table {
  --bs-table-bg: transparent;
  color: var(--app-slate-700);
  font-size: 12px;
}

.dashboard-table thead th {
  padding: 10px 18px;
  border-bottom-color: #e7ebf0;
  color: var(--app-slate-500);
  background: #fafbfd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 12px 18px;
  border-bottom-color: #edf0f4;
  vertical-align: middle;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table tbody tr:hover {
  background: #f9fbfd;
}

.dashboard-table a {
  color: var(--app-blue-700);
  text-decoration: none;
}

.dashboard-table__primary {
  font-weight: 700;
}

.dashboard-table td small {
  display: block;
  margin-top: 2px;
  color: var(--app-slate-500);
  font-size: 10px;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--app-slate-700);
  background: var(--app-slate-100);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-status--primary {
  color: #185b92;
  background: #e7f2fb;
}

.dashboard-status--secondary {
  color: #596273;
  background: #eff1f4;
}

.dashboard-status--warning {
  color: #8a5509;
  background: #fff0d3;
}

.dashboard-status--danger {
  color: #a62f3c;
  background: #fde9ec;
}

.dashboard-status--info {
  color: #176e82;
  background: #e2f3f6;
}

.dashboard-status--success {
  color: #267451;
  background: #e4f4eb;
}

.dashboard-todos {
  grid-area: todos;
}

.dashboard-todo-list {
  padding: 7px 16px 10px;
}

.dashboard-todo {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid #edf0f4;
  color: var(--app-slate-900);
  text-decoration: none;
}

.dashboard-todo:last-child {
  border-bottom: 0;
}

.dashboard-todo:hover,
.dashboard-todo:focus {
  color: var(--app-blue-800);
}

.dashboard-todo__top {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-todo__top > span:last-child {
  color: #98a2b3;
  font-size: 20px;
  line-height: 1;
}

.dashboard-todo > strong,
.dashboard-todo__project,
.dashboard-todo > small {
  display: block;
}

.dashboard-todo > strong {
  font-size: 13px;
}

.dashboard-todo__project {
  margin-top: 3px;
  overflow: hidden;
  color: var(--app-slate-700);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-todo > small {
  margin-top: 5px;
  color: var(--app-slate-500);
  font-size: 10px;
}

.dashboard-empty {
  padding: 26px 16px;
  color: var(--app-slate-500);
  font-size: 12px;
  text-align: center;
}

.dashboard-empty--todos {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.dashboard-empty--todos span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #2e8b63;
  background: #e9f7f0;
  font-size: 16px;
}

@media (max-width: 1199.98px) {
  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-header__inner {
    gap: 16px;
  }

  .app-brand strong {
    font-size: 15px;
  }

  .app-brand small,
  .app-account__identity {
    display: none;
  }

  .app-nav__link {
    padding-right: 10px;
    padding-left: 10px;
  }

  .dashboard-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "todos"
      "main";
  }

  .dashboard-todo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
}

@media (max-width: 767.98px) {
  .app-header__inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-top: 11px;
    padding-bottom: 0;
  }

  .app-brand {
    order: 1;
  }

  .app-brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .app-account {
    order: 2;
  }

  .app-account__avatar {
    display: none;
  }

  .app-nav {
    order: 3;
    width: 100%;
    height: 43px;
    margin-top: 0;
    overflow-x: auto;
    gap: 2px;
    scrollbar-width: none;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav__link {
    height: 43px;
    padding: 0 14px;
    font-size: 13px;
  }

  .app-main {
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .dashboard-hero {
    min-height: 0;
    align-items: flex-start;
    padding: 21px;
  }

  .dashboard-hero h1 {
    font-size: 24px;
  }

  .dashboard-hero p {
    font-size: 12px;
  }

  .dashboard-primary-action {
    min-width: 112px;
    padding: 9px 13px;
  }

  .dashboard-section {
    margin-top: 22px;
  }

  .dashboard-section__hint {
    display: none;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metric {
    min-height: 105px;
    padding: 14px;
  }

  .dashboard-metric strong {
    font-size: 25px;
  }

  .dashboard-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .app-header__inner,
  .app-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-brand {
    gap: 8px;
  }

  .app-brand strong {
    font-size: 14px;
  }

  .app-account {
    gap: 4px;
  }

  .app-logout {
    margin-left: 0;
  }

  .dashboard-hero {
    display: block;
    padding: 19px;
  }

  .dashboard-hero::after {
    display: none;
  }

  .dashboard-primary-action {
    width: 100%;
    margin-top: 15px;
  }

  .dashboard-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-shortcut {
    padding: 12px 13px;
  }

  .dashboard-content {
    margin-top: 22px;
    gap: 14px;
  }

  .dashboard-content__main {
    gap: 14px;
  }

  .dashboard-todo-list {
    display: block;
  }

  .dashboard-panel__header {
    min-height: 62px;
    padding: 13px 15px;
  }

  .dashboard-table thead th,
  .dashboard-table tbody td {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 359.98px) {
  .dashboard-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-metric,
  .dashboard-shortcut,
  .app-nav__link,
  .app-logout {
    transition: none;
  }
}

/* Readability pass: keep secondary information comfortably legible. */
.app-brand small,
.app-account__identity small,
.dashboard-metric__link,
.dashboard-shortcut small,
.dashboard-table thead th,
.dashboard-table td small,
.dashboard-status,
.dashboard-todo > small {
  font-size: 15px;
}

.dashboard-section__kicker {
  font-size: 16px;
}

.app-logout,
.dashboard-section__hint,
.dashboard-metric__label,
.dashboard-panel__header a,
.dashboard-table,
.dashboard-todo > span,
.dashboard-empty {
  font-size: 17px;
}

.app-account__avatar,
.app-account__identity strong,
.dashboard-shortcut strong,
.dashboard-todo > strong {
  font-size: 18px;
}

.app-nav__link,
.dashboard-hero p,
.dashboard-hero__action {
  font-size: 19px;
}

/* Classified test center preview */
.test-center-page {
  --test-border: #dfe6ee;
  --test-muted: #66758a;
  --test-navy: #143a63;
  --test-blue: #246ca8;
  --test-soft-blue: #edf5fb;
}

.test-center-hero {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 34px;
  border: 1px solid #d9e4ee;
  border-radius: 16px;
  background: linear-gradient(110deg, #edf6fc 0%, #fff 70%);
  box-shadow: 0 8px 28px rgba(23, 52, 85, 0.06);
}

.test-center-hero::after {
  position: absolute;
  top: -100px;
  right: -55px;
  width: 250px;
  height: 250px;
  border: 34px solid rgba(36, 108, 168, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.test-center-eyebrow {
  display: block;
  color: var(--test-blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.test-center-hero h1 {
  margin: 5px 0 7px;
  color: var(--test-navy);
  font-size: clamp(29px, 2.7vw, 38px);
  font-weight: 750;
}

.test-center-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--test-muted);
  font-size: 18px;
}

.test-center-primary {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 9px;
  color: #fff;
  background: var(--test-blue);
  font-size: 18px;
  font-weight: 650;
}

.test-center-primary:hover,
.test-center-primary:focus {
  color: #fff;
  background: var(--test-navy);
}

.test-center-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.test-category-panel,
.test-center-content {
  border: 1px solid var(--test-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(23, 52, 85, 0.045);
}

.test-category-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.test-category-panel__title {
  padding: 20px 20px 15px;
  border-bottom: 1px solid #e8edf2;
}

.test-category-panel__title span,
.test-category-panel__title small {
  display: block;
}

.test-category-panel__title span {
  color: var(--test-navy);
  font-size: 20px;
  font-weight: 700;
}

.test-category-panel__title small {
  margin-top: 2px;
  color: var(--test-muted);
  font-size: 15px;
}

.test-category-list {
  padding: 10px;
}

.test-category {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 69px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #2b3c50;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.test-category + .test-category {
  margin-top: 4px;
}

.test-category:not(.is-disabled):hover,
.test-category:not(.is-disabled):focus,
.test-category.is-active {
  border-color: #cfe0ef;
  color: var(--test-navy);
  background: var(--test-soft-blue);
}

.test-category.is-active {
  box-shadow: inset 3px 0 0 var(--test-blue);
}

.test-category.is-disabled {
  color: #8995a5;
  background: #fafbfc;
}

.test-category__icon,
.test-workspace-header__mark {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #2874ad;
  font-size: 17px;
  font-weight: 750;
}

.test-category__icon {
  width: 43px;
  height: 43px;
}

.test-category__icon--mortar,
.test-workspace-header__mark.is-mortar {
  background: #a66a2d;
}

.test-category__icon--brick {
  background: #a85644;
}

.test-category__icon--concrete {
  background: #65768a;
}

.test-category__icon--steel {
  background: #5d6874;
}

.test-category__copy strong,
.test-category__copy small {
  display: block;
}

.test-category__copy strong {
  font-size: 17px;
  font-weight: 650;
}

.test-category__copy small {
  margin-top: 1px;
  font-size: 13px;
}

.test-category__count {
  min-width: 29px;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--test-blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.test-category__badge {
  padding: 3px 7px;
  border-radius: 5px;
  color: #7b8795;
  background: #eef1f4;
  font-size: 12px;
  white-space: nowrap;
}

.test-category-panel__note {
  margin: 0 14px 16px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #6d7886;
  background: #f5f7f9;
  font-size: 13px;
  line-height: 1.55;
}

.test-center-content {
  min-width: 0;
  padding: 24px;
}

.test-workspace-header,
.test-center-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.test-workspace-header__title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.test-workspace-header__mark {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.test-workspace-header h2 {
  margin: 1px 0 0;
  color: var(--test-navy);
  font-size: 27px;
  font-weight: 750;
}

.test-center-text-link {
  color: var(--test-blue);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.test-center-text-link:hover,
.test-center-text-link:focus {
  color: var(--test-navy);
  text-decoration: underline;
}

.test-center-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.test-center-stat {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  background: #f9fbfd;
}

.test-center-stat span,
.test-center-stat small {
  display: block;
  color: var(--test-muted);
}

.test-center-stat span {
  font-size: 15px;
}

.test-center-stat strong {
  display: block;
  margin: 2px 0;
  color: var(--test-navy);
  font-size: 30px;
  line-height: 1.25;
}

.test-center-stat small {
  font-size: 13px;
}

.test-center-section {
  margin-top: 26px;
}

.test-center-section__heading {
  margin-bottom: 12px;
}

.test-center-section__heading h3 {
  margin: 1px 0 0;
  color: #25364a;
  font-size: 20px;
  font-weight: 700;
}

.test-center-section__hint {
  color: var(--test-muted);
  font-size: 14px;
}

.test-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.test-action-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--test-border);
  border-radius: 10px;
  color: #2b3c50;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.test-action-card:hover,
.test-action-card:focus {
  transform: translateY(-2px);
  border-color: #b9d1e5;
  color: var(--test-navy);
  box-shadow: 0 7px 18px rgba(27, 65, 101, 0.08);
}

.test-action-card__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--test-blue);
  background: var(--test-soft-blue);
  font-size: 18px;
  font-weight: 750;
}

.test-action-card strong,
.test-action-card small {
  display: block;
}

.test-action-card strong {
  font-size: 17px;
}

.test-action-card small {
  margin-top: 2px;
  color: var(--test-muted);
  font-size: 13px;
}

.test-action-card b {
  color: #8ba0b5;
  font-size: 19px;
}

.test-module-section {
  padding-top: 22px;
  border-top: 1px solid #e9edf2;
}

.test-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media print {
  .app-sidebar,
  .app-guest-header,
  .concrete-dimension-export,
  .btn,
  form[onsubmit] {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .app-shell .app-main {
    max-width: none;
    padding: 0;
  }

  body.app-body,
  .app-workspace {
    background: #fff;
  }
}

.test-module-grid a {
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  color: #33465a;
  background: #fff;
  text-decoration: none;
}

.test-module-grid a:hover,
.test-module-grid a:focus {
  border-color: #c5d9e9;
  background: #f7fbfe;
}

.test-module-grid a span {
  color: #8292a3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.test-module-grid a strong {
  font-size: 16px;
  font-weight: 600;
}

.test-module-grid a b {
  color: #8ca0b4;
  font-size: 21px;
}

.test-recent-panel {
  overflow: hidden;
  padding-top: 22px;
  border-top: 1px solid #e9edf2;
}

.test-center-table {
  border: 1px solid #e3e9ef;
  font-size: 15px;
}

.test-center-table thead th {
  padding: 10px 13px;
  border-bottom: 1px solid #dce4ec;
  color: #68788a;
  background: #f6f8fa;
  font-size: 13px;
  font-weight: 650;
}

.test-center-table tbody td {
  padding: 11px 13px;
}

.test-center-table td > a:first-child {
  color: var(--test-navy);
  font-weight: 650;
  text-decoration: none;
}

.test-center-table td small {
  display: block;
  color: var(--test-muted);
  font-size: 13px;
}

.test-center-row-link {
  color: var(--test-blue);
  font-size: 14px;
  text-decoration: none;
}

.test-center-empty {
  padding: 28px 12px;
  color: var(--test-muted);
  text-align: center;
}

@media (max-width: 1199.98px) {
  .test-center-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .test-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .test-center-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-category-panel {
    position: static;
  }

  .test-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .test-category + .test-category {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .test-center-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
  }

  .test-center-primary {
    width: 100%;
  }

  .test-category-list,
  .test-center-stats,
  .test-action-grid,
  .test-module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-center-content {
    padding: 18px;
  }

  .test-workspace-header,
  .test-center-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-category,
  .test-action-card {
    transition: none;
  }
}

/* Login · optical precision concept */
.login-page {
  min-height: 100vh;
  margin: 0;
  color: #17324f;
  background: #eaf1f8;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 56px 8.5vw;
  background-color: #eaf1f8;
  background-image: url("../images/login-bg-optics.png");
  background-position: center;
  background-size: cover;
}

.login-shell::before,
.login-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.login-shell::before {
  z-index: 1;
  background: linear-gradient(90deg, transparent 48%, rgba(237, 245, 255, 0.2), rgba(237, 245, 255, 0.48));
}

.login-shell::after {
  z-index: 1;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(21, 65, 105, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 65, 105, 0.18) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 84%, transparent);
}

.login-brand {
  position: absolute;
  z-index: 3;
  top: 42px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #123b65;
}

.login-brand__mark {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.login-brand__mark::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}

.login-brand__copy strong,
.login-brand__copy small {
  display: block;
}

.login-brand__copy strong {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.login-brand__copy small {
  margin-top: 4px;
  color: rgba(18, 59, 101, 0.58);
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.login-release {
  position: absolute;
  z-index: 3;
  bottom: 43px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(18, 59, 101, 0.64);
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.login-release::before {
  width: 46px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.58;
}

.login-panel {
  position: relative;
  z-index: 3;
  width: 450px;
  padding: 40px 42px 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px 34px 4px 34px;
  color: #17324f;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(236, 244, 254, 0.54));
  box-shadow: 0 30px 70px rgba(39, 72, 111, 0.19);
  backdrop-filter: blur(20px);
}

.login-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(#1854c8, #54a7e6);
  content: "";
}

.login-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  color: #244769;
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.login-panel__index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
}

.login-panel h1 {
  margin: 0;
  color: #123b65;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.035em;
}

.login-panel__lead {
  margin: 11px 0 28px;
  color: #667b90;
  font-size: 14px;
  line-height: 1.7;
}

.login-alert {
  margin: -8px 0 22px;
  padding: 10px 12px;
  border-radius: 4px 12px 4px 12px;
  font-size: 14px;
  line-height: 1.55;
}

.login-field {
  margin-top: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: #243f5a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(91, 122, 153, 0.42);
  border-radius: 2px;
  outline: none;
  color: #17324f;
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-field input::placeholder {
  color: #8294a7;
  opacity: 0.72;
}

.login-field input:hover {
  border-color: rgba(40, 105, 165, 0.58);
}

.login-field input:focus {
  border-color: #277fca;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(39, 127, 202, 0.12);
}

.login-submit {
  width: 100%;
  height: 54px;
  margin-top: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px 0 21px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(90deg, #174db6, #277fca);
  box-shadow: 0 12px 30px rgba(27, 91, 166, 0.24);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.1em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-submit span:last-child {
  font-family: "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

.login-submit:hover,
.login-submit:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(27, 91, 166, 0.3);
  transform: translateY(-1px);
}

.login-submit:focus-visible {
  outline: 3px solid rgba(39, 127, 202, 0.26);
  outline-offset: 3px;
}

.login-security {
  margin: 22px 0 0;
  color: #788b9e;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .login-shell {
    padding-right: 6vw;
    padding-left: 6vw;
    background-position: 38% center;
  }

  .login-panel {
    width: 430px;
  }
}

@media (max-width: 767.98px) {
  .login-shell {
    min-height: 100svh;
    align-items: flex-start;
    justify-content: center;
    padding: 104px 20px 34px;
    background-position: 35% center;
  }

  .login-shell::before {
    background: rgba(232, 241, 250, 0.5);
  }

  .login-shell::after {
    display: none;
  }

  .login-brand {
    top: 25px;
    left: 23px;
  }

  .login-release {
    display: none;
  }

  .login-panel {
    width: min(100%, 450px);
    padding: 34px 28px 30px;
    border-radius: 4px 28px 4px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 244, 254, 0.76));
  }

  .login-panel h1 {
    font-size: 28px;
  }
}

@media (max-width: 419.98px) {
  .login-brand__copy strong {
    font-size: 17px;
  }

  .login-brand__copy small {
    font-size: 9px;
  }

  .login-panel {
    padding-right: 22px;
    padding-left: 24px;
  }

  .login-panel__header {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-field input,
  .login-submit {
    transition: none;
  }
}

/* Damper authoring */
.damper-page {
  max-width: 1180px;
  margin: 0 auto;
}

.damper-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 30px 34px;
  border: 1px solid #dbe8f5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 18%, rgba(36, 131, 215, 0.16), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
  box-shadow: 0 18px 42px rgba(31, 78, 121, 0.08);
}

.damper-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2d74ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.damper-hero h1 {
  margin: 0 0 8px;
  color: #143d61;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
}

.damper-hero p,
.damper-output-card p {
  margin: 0;
  color: #60768a;
}

.damper-hero__rule {
  min-width: 260px;
  padding: 18px 22px;
  border-left: 4px solid #2c86c9;
  border-radius: 4px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.82);
}

.damper-hero__rule strong,
.damper-hero__rule span {
  display: block;
}

.damper-hero__rule strong {
  color: #184e79;
  font-size: 18px;
}

.damper-hero__rule span {
  margin-top: 4px;
  color: #6d8295;
  font-size: 13px;
}

.damper-warning {
  border-color: #f1d79c;
  background: #fff9e9;
  color: #74591c;
}

.damper-form {
  display: grid;
  gap: 18px;
}

.damper-card,
.damper-output-card {
  border: 1px solid #e0e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 55, 82, 0.05);
}

.damper-card {
  padding: 24px 26px 26px;
}

.damper-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
}

.damper-card__heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.damper-card__heading span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #e6f2fc;
  color: #246ea7;
  font-size: 12px;
  font-weight: 800;
}

.damper-card__heading h2,
.damper-output-card h2 {
  margin: 0;
  color: #25445f;
  font-size: 19px;
  font-weight: 700;
}

.damper-card__heading small,
.damper-submit-row small,
.damper-version {
  color: #8293a2;
}

.damper-card .form-label {
  color: #415b71;
  font-size: 13px;
  font-weight: 650;
}

.damper-card .form-control,
.damper-card .input-group-text {
  min-height: 43px;
  border-color: #d6e0e8;
}

.damper-card .form-control:focus {
  border-color: #5b9fd3;
  box-shadow: 0 0 0 0.2rem rgba(48, 128, 190, 0.12);
}

.damper-card .input-group-text {
  background: #f5f8fb;
  color: #62778a;
  font-size: 12px;
}

.damper-computed-note {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f5f9fc;
  color: #667b8c;
  font-size: 13px;
}

.damper-output-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
}

.damper-output-card h2 {
  margin-bottom: 8px;
}

.damper-tree {
  display: grid;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid #dce7f0;
  border-radius: 12px;
  background: #f8fbfd;
  color: #405b70;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.damper-tree span {
  color: #1d6a9f;
  font-weight: 700;
}

.damper-tree small {
  padding-left: 16px;
}

.damper-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #193f60;
  color: #fff;
}

.damper-submit-row strong,
.damper-submit-row small {
  display: block;
}

.damper-submit-row small {
  margin-top: 4px;
  color: #bdd0df;
}

.damper-submit-row .btn {
  min-width: 190px;
  border: 0;
  background: #eef7ff;
  color: #184e79;
  font-weight: 750;
}

.damper-submit-row .btn:hover,
.damper-submit-row .btn:focus {
  background: #fff;
  color: #123f64;
}

.damper-version {
  margin-top: 12px;
  text-align: right;
  font-size: 11px;
}

.damper-history {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid #dce6ee;
  border-radius: 20px;
  background: #f7fafc;
}

.damper-history__heading,
.damper-job__top,
.damper-job__bottom,
.damper-job__file,
.damper-job__title-row,
.damper-job__progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.damper-history__heading {
  margin-bottom: 20px;
}

.damper-history__heading h2 {
  margin: 0 0 5px;
  color: #203f59;
  font-size: 24px;
}

.damper-history__heading p,
.damper-job p {
  margin: 0;
  color: #718494;
}

.damper-history__count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e5eff7;
  color: #426a89;
  font-size: 12px;
  font-weight: 700;
}

.damper-job-list {
  display: grid;
  gap: 14px;
}

.damper-job {
  padding: 20px;
  border: 1px solid #dce5ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(28, 56, 80, 0.04);
}

.damper-job__title-row {
  justify-content: flex-start;
  gap: 10px;
}

.damper-job__title-row h3 {
  margin: 0;
  color: #183f5f;
  font-size: 18px;
}

.damper-job__top > div:first-child {
  min-width: 0;
}

.damper-job__top p {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.damper-job__time {
  flex: 0 0 auto;
  color: #8292a0;
  text-align: right;
  font-size: 12px;
}

.damper-job__time span,
.damper-job__time time {
  display: block;
}

.damper-job__progress {
  margin-top: 17px;
}

.damper-job__progress .progress {
  height: 10px;
  border-radius: 999px;
  background: #e7edf2;
}

.damper-job__progress-copy {
  margin-top: 7px;
  color: #607688;
  font-size: 12px;
}

.damper-job__progress-copy strong {
  color: #2d668f;
}

.damper-job__parameters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.damper-job__parameters > span {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f5f8fa;
  color: #294b64;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.damper-job__parameters small {
  display: block;
  margin-bottom: 2px;
  color: #81909c;
  font-size: 10px;
}

.damper-job__bottom {
  align-items: flex-end;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf1f4;
}

.damper-job__failure {
  color: #a43b42 !important;
  font-size: 12px;
}

.damper-job__file {
  margin-left: auto;
  color: #647b8d;
  font-size: 12px;
}

.damper-history__empty {
  padding: 30px 18px;
  border: 1px dashed #cbd8e2;
  border-radius: 12px;
  color: #7c8e9d;
  text-align: center;
}

@media (max-width: 767.98px) {
  .damper-hero,
  .damper-card__heading,
  .damper-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .damper-hero {
    padding: 24px 22px;
  }

  .damper-hero__rule {
    min-width: 0;
  }

  .damper-card {
    padding: 20px 18px;
  }

  .damper-card__heading small {
    margin-left: 44px;
  }

  .damper-output-card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .damper-submit-row .btn {
    width: 100%;
  }

  .damper-history {
    padding: 20px 14px;
  }

  .damper-history__heading,
  .damper-job__top,
  .damper-job__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .damper-history__count {
    align-self: flex-start;
  }

  .damper-job {
    padding: 17px 14px;
  }

  .damper-job__time {
    text-align: left;
  }

  .damper-job__parameters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .damper-job__file {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }
}
