@font-face {
  font-family: "Area Normal";
  src: url("/static/fonts/AreaNormal-Semibold.woff2") format("woff2"),
       url("/static/fonts/AreaNormal-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

:root {
  --profile-dark-blue: #243741;
  --profile-light-blue: #6bb1e2;
  --profile-blue: #014469;
  --profile-green: #9ac331;
  --profile-orange: #ff9800;

  --primary: var(--profile-blue);
  --primary-hover: #1c5a7a;
  --secondary: #2b2b39;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --line: #dce6ed;
  --ink: #243741;
  --ink-muted: #5f6f7f;

  --ok-bg: #e8f7ef;
  --ok-text: #0d6f3a;
  --error-bg: #fdeaea;
  --error-text: #962a2a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(107, 177, 226, 0.28) 0, rgba(107, 177, 226, 0) 46%),
    linear-gradient(180deg, #f0f6fa 0%, #f8fbfd 45%, #eef4f8 100%);
}

#wrapper.wrapper {
  flex: 1;
}

.shell {
  width: min(1290px, 100% - 2rem);
  margin: 0 auto;
}

.header {
  color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 1px 15px rgba(50, 50, 93, 0.2);
  padding: 5px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.logo-corporate {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-corporate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: "Area Normal", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.18rem;
  white-space: nowrap;
  color: var(--profile-dark-blue);
}

.logo-subtitle {
  font-family: "Area Normal", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--profile-dark-blue);
  opacity: 0.95;
}

.main-menu {
  margin-left: auto;
}

.main-menu > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu a {
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  text-decoration: none;
  color: var(--primary);
  font-size: 0.95rem;
  transition: all 140ms ease;
}

.main-menu a:hover {
  background-color: rgba(107, 177, 226, 0.42);
  color: #ffffff;
}

.main-menu .menu-label {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-right: 0.35rem;
  white-space: nowrap;
}

.app-main {
  padding: 1.4rem 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(17, 44, 64, 0.06);
}

.card.narrow {
  max-width: 560px;
}

.row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

h1,
h2,
h3 {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: #333333;
}

h1 {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 400;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 400;
}

h3 {
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 300;
}

p {
  margin: 0;
}

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

.stack {
  display: grid;
  gap: 0.8rem;
}

.grid {
  display: grid;
  gap: 0.8rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  padding: 0.56rem 0.65rem;
  border: 1px solid #cdd8e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(107, 177, 226, 0.38);
  border-color: var(--profile-light-blue);
}

.button {
  white-space: nowrap;
  border-style: none;
  display: inline-block;
  padding: 7px 15px;
  border-radius: 20px;
  background: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn {
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: rgba(1, 68, 105, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.button:hover {
  color: #fff;
  background-color: var(--primary-hover);
  text-decoration: none;
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button-link {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(1, 68, 105, 0.35);
}

.button-link:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.button-small {
  padding: 0.42rem 0.66rem;
  font-size: 0.76rem;
}

.form-label {
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border: 1px solid #cdd8e1;
  border-radius: var(--radius-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--profile-light-blue);
  box-shadow: 0 0 0 0.18rem rgba(107, 177, 226, 0.28);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table {
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f7fbff;
  --bs-table-hover-bg: #edf5fa;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.62rem 0.5rem;
  white-space: nowrap;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

table.assessment-changes {
  table-layout: fixed;
}

table.assessment-changes th.description-col,
table.assessment-changes td.description-col {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.error-box,
.ok-box {
  padding: 0.66rem 0.78rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.error-box {
  background: var(--error-bg);
  color: var(--error-text);
}

.ok-box {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.metric {
  font-size: 1.12rem;
  font-weight: 600;
}

.metric.small {
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-all;
}

.footer {
  background: var(--secondary);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
}

.footer-menu li {
  color: #bdc6d0;
  font-size: 0.9rem;
}

.footer-menu a {
  color: #cdd6df;
  text-decoration: none;
  display: inline-block;
  padding: 8px;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.sub-footer {
  background: #1f1f2b;
  padding: 12px 0;
}

.sub-footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}

.sub-footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-footer-inner li {
  color: #aeb8c4;
  font-size: 0.88rem;
  line-height: 1.6;
}

.sub-footer-inner strong {
  color: #ffffff;
  font-weight: 700;
}

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
  }

  .sub-footer-inner {
    flex-direction: row;
  }
}

@media (max-width: 1050px) {
  .main-menu .menu-label {
    display: none;
  }
}

@media (max-width: 900px) {
  .header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu {
    width: 100%;
    margin-left: 0;
  }

  .main-menu > ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .row-header {
    flex-direction: column;
  }

  th,
  td {
    font-size: 0.9rem;
  }
}
