:root {
  font-family: Inter, Arial, sans-serif;
  color: #183449;
  background: #f4f7fa;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #d6e2eb;
  background: #fff;
  color: #23445b;
  border-radius: 8px;
  padding: 11px 16px;
  min-height: 44px;
}
button:hover {
  background: #edf6fb;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: #097cae;
}
button.primary {
  background: #087ead;
  border-color: #087ead;
  color: #fff;
}
.danger {
  color: #b33a42;
}
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #ccdce6;
  border-radius: 7px;
  width: 100%;
  background: white;
  color: #183449;
}
input[type='checkbox'] {
  width: auto;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
p {
  line-height: 1.65;
  color: #61798a;
}
small {
  color: #61798a;
  line-height: 1.6;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
h2 {
  font-size: 20px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin-top: 0;
}
.pill {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  background: #e3f3fb;
  color: #087aa7;
  padding: 7px 10px;
  border-radius: 5px;
  display: inline-block;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(130deg, #e1f1fa, #f8fafc 60%);
}
.loginbox {
  max-width: 500px;
  background: white;
  border: 1px solid #e1eaf0;
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 18px 80px #173f5410;
}
.loginbox img {
  display: block;
  width: 180px;
  margin-bottom: 30px;
}
.loginbox h1 {
  margin-top: 24px;
}
.loginbox form {
  display: grid;
  gap: 18px;
  margin: 25px 0;
}
.loginbox small {
  display: block;
}
#loginError {
  color: #b33a42;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: white;
  border-right: 1px solid #dfe7ed;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand img {
  width: 170px;
  display: block;
  margin: 0 auto 25px;
}
nav {
  display: grid;
  gap: 7px;
  margin-top: 32px;
}
nav a {
  text-decoration: none;
  padding: 13px;
  color: #61798a;
  border-radius: 7px;
}
nav a.active {
  background: #e8f4fb;
  color: #087eae;
  font-weight: 700;
}
.asidebottom {
  margin-top: auto;
  font-size: 13px;
}
.asidebottom p {
  font-size: 12px;
}
main {
  margin-left: 240px;
  padding: 0 38px 30px;
  max-width: 1800px;
}
header {
  height: 92px;
  border-bottom: 1px solid #dce6ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header > span {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #7790a2;
}
header label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 32px 0 24px;
}
.heading p {
  margin: 0;
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  padding: 23px;
  background: white;
  border: 1px solid #e0e8ee;
  border-radius: 11px;
}
.metric label {
  color: #71889a;
  font-size: 13px;
  font-weight: 400;
}
.metric strong {
  display: block;
  font-size: 25px;
  margin: 13px 0 8px;
  letter-spacing: -0.5px;
}
.metric.focus {
  background: #113b56;
  color: white;
}
.metric.focus label,
.metric.focus small {
  color: #b5d5e6;
}
.panel {
  background: white;
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.panelhead {
  padding: 22px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.panelhead p {
  margin: 7px 0 0;
  font-size: 13px;
}
.padded {
  padding: 22px;
}
.notice {
  background: #e9f3fa;
  border-left: 3px solid #2599c9;
  padding: 15px 18px;
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 22px;
}
.warn {
  background: #fff6e5;
  border-color: #dba245;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #748d9e;
  background: #f8fafc;
  text-transform: uppercase;
}
td,
th {
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f5;
}
td {
  font-size: 13px;
}
td small {
  display: block;
}
.empty {
  text-align: center;
  padding: 44px;
  color: #758c9a;
}
.tag {
  background: #e8f6ef;
  color: #297350;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.tag.muted {
  background: #edf0f3;
  color: #71818d;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.formgrid .full {
  grid-column: 1/-1;
}
.formactions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.formerror {
  color: #ac2837;
  line-height: 1.5;
}
.bar {
  height: 7px;
  background: #eaf1f6;
  border-radius: 5px;
  margin-top: 9px;
}
.bar span {
  display: block;
  height: 100%;
  background: #2c9fcd;
  border-radius: 5px;
}
.market {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.market .panel {
  margin: 0;
}
.progress {
  width: 100%;
  height: 8px;
  accent-color: #2099c8;
}
.detailgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(1050px, 95vw);
  max-height: 90vh;
  padding: 0;
  color: #183449;
}
dialog::backdrop {
  background: #09283e88;
}
.dialoghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #dce7ee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
#dialogBody {
  padding: 24px;
}
footer {
  font-size: 12px;
  color: #8296a6;
  padding: 20px 0;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #123b54;
  color: #fff;
  border-radius: 10px;
  padding: 15px 24px;
  z-index: 20;
  max-width: 90vw;
  display: none;
}
#toast.show {
  display: block;
}
[hidden] {
  display: none !important;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin: 18px 0;
}
.split {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  aside {
    position: static;
    width: auto;
    padding: 16px 20px;
    border-bottom: 1px solid #dfe8ef;
    display: block;
  }
  .brand img {
    width: 140px;
    margin: 0 0 15px;
  }
  .asidebottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 12px;
  }
  main {
    margin: 0;
    padding: 0 18px 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 21px;
  }
  header {
    height: auto;
    padding: 18px 0;
  }
  header > span {
    display: none;
  }
  header label {
    width: 100%;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .market {
    grid-template-columns: 1fr;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .panelhead {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading > button {
    padding: 10px;
    font-size: 12px;
  }
  .loginbox {
    padding: 28px;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .tablewrap table thead {
    display: none;
  }
  .tablewrap table,
  .tablewrap tbody,
  .tablewrap tr,
  .tablewrap td {
    display: block;
  }
  .tablewrap tr {
    padding: 12px 16px;
    border-bottom: 1px solid #dce7ee;
  }
  .tablewrap td {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .tablewrap td::before {
    content: attr(data-label);
    text-align: left;
    color: #7790a0;
    min-width: 90px;
  }
  .tablewrap td.empty {
    display: block;
    text-align: center;
  }
  .tablewrap td.empty::before {
    display: none;
  }
}
@media (max-width: 900px) {
  .asidebottom {
    display: block;
    margin-top: 10px;
  }
  .asidebottom strong,
  .asidebottom p {
    display: none;
  }
}
.pa-brand {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: #103b54;
  color: #fff;
  font-size: 24px;
  letter-spacing: 2px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.brand {
  text-decoration: none;
  color: #183449;
}
.brand strong {
  display: block;
  font-size: 18px;
  margin-bottom: 22px;
}
#companyHint {
  margin: 0;
  font-size: 13px;
}
/* Tenant identity and shared brand tokens are maintained in ui-theme.css. */
/* More modules: keep navigation scrollable without hiding the company switch. */
aside nav {
  min-height: 0;
  overflow-y: auto;
  margin-top: 20px;
  gap: 3px;
}
aside .asidebottom {
  padding-top: 12px;
  flex-shrink: 0;
}
aside nav a {
  padding: 10px 12px;
}
.tablewrap td .actions {
  min-width: 120px;
}
details table {
  min-width: 420px;
}
#dialogBody > .panel {
  box-shadow: none;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.formgrid h3 {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}
.notice p {
  margin: 8px 0;
}
.panel .notice {
  margin: 16px;
}
@media (max-width: 900px) {
  aside nav {
    overflow-x: auto;
    overflow-y: visible;
  }
  aside .asidebottom {
    padding-top: 0;
  }
  .tablewrap td .actions {
    justify-content: flex-end;
  }
  details table {
    min-width: 0;
  }
}
.detailgrid p {
  margin: 6px 0 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .detailgrid {
    grid-template-columns: 1fr;
  }
}
nav .navgroup {
  border: 0;
}
nav .navgroup summary {
  padding: 12px 8px;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #526575;
}
nav .navgroup a {
  display: block;
  font-size: 13px;
}
nav .navgroup[open] summary {
  font-weight: 800;
}
body[data-company='PA'] nav .navgroup summary {
  color: #595c5d;
}
.op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 900px) {
  nav {
    display: block;
  }
  nav .navgroup {
    display: inline-block;
    vertical-align: top;
    min-width: 170px;
  }
  nav .navgroup[open] {
    display: block;
  }
  nav .navgroup[open] a {
    display: inline-block;
  }
  nav .navgroup summary {
    font-size: 11px;
  }
}
@media print {
  body > *:not(dialog) {
    display: none !important;
  }
  dialog {
    position: static;
    display: block !important;
    max-width: none;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  dialog button {
    display: none;
  }
  dialog::backdrop {
    display: none;
  }
  .dialoghead {
    position: static;
  }
}

/* Neutral company selection before QA access. */
.loginbox {
  width: 100%;
  max-width: 720px;
}
.companycards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
.companycard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 18px;
  text-align: center;
  min-width: 0;
  border: 1px solid #d6e2eb;
  border-radius: 12px;
}
.companycard img {
  width: auto;
  max-width: 100%;
  height: 78px;
  object-fit: contain;
  margin: 0;
}
.companycard span {
  font-size: 13px;
  color: #61798a;
}
.companycard:hover,
.companycard:focus-visible {
  border-color: #087ead;
  box-shadow: 0 0 0 2px #087ead22;
}
.companycard[data-company-choice='PA']:hover {
  border-color: #bc5c36;
}
.entryhelp {
  font-size: 14px;
}
#companyAccess {
  max-width: 430px;
  margin: auto;
}
#companyAccess #loginLogo {
  margin: 28px auto 18px;
  max-height: 100px;
  object-fit: contain;
}
#changeLoginCompany {
  margin-top: 22px;
}
body[data-company='PA'] .companycard img {
  margin: 0;
  width: auto;
}
.loginbox form small {
  margin-top: -8px;
}
@media (max-width: 560px) {
  .login {
    padding: 16px;
  }
  .loginbox {
    padding: 24px;
  }
  .companycards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .companycard {
    padding: 20px;
  }
  .companycard img {
    height: 60px;
  }
  .loginbox h1 {
    font-size: 25px;
  }
}

.loginbox .app-logo,
body[data-company='PA'] .loginbox .app-logo {
  width: min(340px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 0 26px;
}
.app-wordmark {
  font-weight: 750;
  letter-spacing: -0.5px;
  color: #168977;
  font-size: 17px;
  margin-bottom: 20px;
}
.login {
  background: radial-gradient(ellipse at top left, #d7eee8, transparent 65%), #f4f7f7;
}
.loginbox {
  box-shadow: 0 20px 70px #142d3b12;
}
.loginbox .pill {
  background: #edf5f2;
  color: #276c5f;
}
fieldset {
  border: 1px solid #d9e4e9;
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  min-width: 0;
}
legend {
  font-weight: bold;
}
fieldset details {
  margin: 16px 0;
}
body[data-company='PA'] .app-wordmark {
  color: #168977;
}
.tabletools {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #e1e7ec);
}
.tabletools label {
  max-width: 360px;
}
.columnfilter {
  display: block;
  width: 100%;
  min-width: 70px;
  margin-top: 6px;
  font-size: 11px;
  padding: 5px;
}
.tablewrap th button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.tablewrap tr[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .tabletools label {
    max-width: none;
  }
  .tablewrap thead .columnfilter {
    display: none;
  }
}

/* Audit status colours remain semantic across both company themes. */
.audit-status {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}
.audit-status-done {
  background: #e7f5eb;
  color: #14532d;
  border-color: #8bc6a0;
}
.audit-status-pending {
  background: #fff4c2;
  color: #684900;
  border-color: #dfbc4e;
}
.audit-status-deferred {
  background: #e8efff;
  color: #24447c;
  border-color: #9bb4e3;
}
.audit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.audit-legend > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.audit-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.audit-questions > div {
  padding: 14px;
  background: #f5f7fa;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
}
.audit-questions dt {
  font-weight: 700;
  line-height: 1.5;
}
.audit-questions dd {
  margin: 5px 0 0;
  line-height: 1.6;
  color: #43576a;
}
@media (max-width: 640px) {
  .audit-questions {
    grid-template-columns: 1fr;
  }
  .audit-legend > div {
    width: 100%;
  }
}

/* Implementation map: one clear action per row, contextual decisions in the detail. */
.map-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 138px;
  max-width: 180px;
}
.map-row-actions .map-open {
  margin: 0;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #263746;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: none;
}
.map-row-actions .map-open:hover {
  background: #eaf0f5;
  border-color: #94a3b8;
}
.map-row-actions .map-module-link {
  font-size: 12px;
  color: #506275;
  text-decoration: none;
  text-align: center;
  line-height: 24px;
}
.map-row-actions .map-module-link:hover {
  text-decoration: underline;
}
.map-detail h3 {
  font-size: 23px;
  line-height: 1.3;
  margin: 8px 0 0;
}
.map-detail h4 {
  margin: 24px 0 8px;
  font-size: 14px;
}
.map-detail p {
  line-height: 1.65;
}
.map-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.map-detail-heading .audit-status {
  flex-shrink: 0;
}
.map-detail-heading small {
  color: #64748b;
}
.map-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 13px;
}
.map-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.map-detail-actions button {
  margin: 0;
  min-height: 44px;
}
.map-timeline {
  list-style: none;
  padding: 0 0 0 18px;
  border-left: 2px solid #e2e8f0;
}
.map-timeline li {
  position: relative;
  margin: 18px 0;
}
.map-timeline li:before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #94a3b8;
  border-radius: 50%;
  border: 1px solid white;
}
.map-timeline time {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}
.map-timeline p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .map-detail-heading {
    flex-direction: column;
  }
  .map-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .map-detail-actions button {
    width: 100%;
  }
  .map-detail h3 {
    font-size: 20px;
  }
  .map-row-actions {
    min-width: 130px;
  }
}
/* Delivery workspace */
.tracking-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: #eaf0f4;
  border: 1px solid #dae3ea;
  border-radius: 12px;
  margin: 18px 0 24px;
  width: fit-content;
}
.tracking-tabs a {
  padding: 11px 17px;
  border-radius: 8px;
  text-decoration: none;
  color: #506275;
  font-weight: 600;
  font-size: 13px;
}
.tracking-tabs a[aria-current='page'] {
  background: white;
  color: #173d44;
  box-shadow: 0 1px 4px #142e4014;
}
.issue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.issue-toolbar h2 {
  margin: 0;
  font-size: 24px;
}
.issue-toolbar p {
  color: #64748b;
  margin: 7px 0;
}
.issue-toolbar button {
  white-space: nowrap;
}
.issue-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 12px;
  padding: 16px;
}
.issue-filters label {
  margin: 0;
  font-size: 12px;
}
.issue-filters input,
.issue-filters select {
  margin-bottom: 0;
}
.issue-filters button {
  margin: 0;
  min-height: 42px;
}
.issue-help {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  margin: 16px 0;
}
.issue-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  align-items: flex-start;
  padding: 4px 4px 24px;
  max-width: 100%;
  scroll-snap-type: x proximity;
}
.issue-column {
  flex: 0 0 286px;
  min-width: 0;
  background: #edf1f5;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  scroll-snap-align: start;
  overflow: hidden;
  border-top: 3px solid #94a3b8;
}
.issue-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin: 0;
  height: auto;
  gap: 10px;
  background: transparent;
}
.issue-column h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.issue-column > header span {
  font-size: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  color: #526577;
}
.issue-column-body {
  max-height: 68vh;
  overflow-y: auto;
  padding: 0 10px 10px;
  min-height: 140px;
}
.issue-column.issue-progress {
  border-top-color: #4f46e5;
}
.issue-column.issue-waiting {
  border-top-color: #d99a1b;
}
.issue-column.issue-qa {
  border-top-color: #2784bf;
}
.issue-column.issue-done {
  border-top-color: #159071;
}
.issue-column.issue-deferred {
  border-top-color: #7c8796;
}
.issue-card {
  border: 1px solid #dbe2e9;
  border-radius: 10px;
  padding: 14px;
  background: white;
  margin: 0 0 10px;
  box-shadow: 0 2px 4px #263d4f05;
  cursor: grab;
}
.issue-card:hover {
  border-color: #a6b9c7;
  box-shadow: 0 3px 10px #263d4f0d;
}
.issue-card.dragging {
  opacity: 0.4;
}
.issue-column.drop-active {
  background: #e4f2f5;
  outline: 2px dashed #5a8e98;
  outline-offset: -3px;
}
.issue-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c7c8b;
  font-size: 11px;
  margin-bottom: 9px;
}
.issue-priority {
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
  background: #f0f3f6;
}
.priority-urgent {
  color: #aa2933;
  background: #fff0f0;
}
.priority-high {
  color: #94620e;
  background: #fff6df;
}
.issue-card .issue-title {
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: #233848;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  box-shadow: none;
  white-space: normal;
}
.issue-card .issue-title:hover {
  text-decoration: underline;
}
.issue-kind {
  font-size: 11px;
  color: #6d7c89;
  margin: 9px 0;
}
.issue-map-ref {
  font-size: 10px;
  color: #7e8b98;
  display: block;
}
.issue-blocked {
  font-size: 12px;
  color: #986516;
  background: #fff6e2;
  border-radius: 5px;
  padding: 7px;
  line-height: 1.5;
}
.issue-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf1f4;
  margin: 12px 0 0;
  padding: 10px 0 0;
  font-size: 11px;
}
.issue-card .issue-move {
  padding: 5px 9px;
  margin: 0;
  font-size: 11px;
  min-height: 30px;
  color: #526675;
  background: #f8fafc;
  border-color: #e1e7ed;
}
.issue-assignee {
  font-weight: 600;
  color: #617282;
}
.issue-empty {
  text-align: center;
  color: #8593a0;
  font-size: 12px;
  padding: 30px 0;
}
.issue-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.issue-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #5e7080;
}
.issue-status-text {
  background: #edf3f7;
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 600;
}
.issue-status-text.issue-waiting {
  background: #fff3d2;
  color: #89621e;
}
.issue-status-text.issue-done {
  background: #e7f5ee;
  color: #24634f;
}
.issue-conditional[hidden] {
  display: none !important;
}
.issue-dashboard-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 520px;
  margin: 16px 0 24px;
}
.issue-dashboard-filter label {
  flex: 1;
  margin: 0;
}
.issue-dashboard-filter button {
  margin: 0 0 8px;
}
.executive-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.executive-kpis article {
  background: white;
  border: 1px solid #dde6eb;
  border-radius: 14px;
  padding: 22px;
}
.executive-kpis article:first-child {
  background: #183f46;
  color: white;
  border-color: #183f46;
}
.executive-kpis p {
  font-size: 13px;
  margin: 0 0 14px;
  color: #526b77;
}
.executive-kpis strong {
  display: block;
  font-size: 38px;
  font-weight: 650;
  line-height: 1.2;
}
.executive-kpis small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: #6a7d89;
  margin-top: 12px;
}
.executive-kpis article:first-child p,
.executive-kpis article:first-child small {
  color: #c4dddd;
}
.executive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.executive-panel {
  background: white;
  border: 1px solid #e0e7ed;
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.executive-panel h3 {
  margin: 0 0 22px;
  font-size: 16px;
}
.executive-panel > p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}
.executive-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1.5fr) minmax(40px, 1fr) 25px 35px;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  font-size: 12px;
  color: #526675;
}
.executive-bar progress {
  width: 100%;
  height: 9px;
  border: 0;
  appearance: none;
  background: #edf2f5;
  border-radius: 5px;
}
.executive-bar progress::-webkit-progress-bar {
  background: #edf2f5;
  border-radius: 5px;
}
.executive-bar progress::-webkit-progress-value {
  background: #348c93;
  border-radius: 5px;
}
.executive-bar progress::-moz-progress-bar {
  background: #348c93;
  border-radius: 5px;
}
.executive-bar b {
  text-align: right;
  color: #2c4350;
}
.executive-bar small {
  text-align: right;
  color: #7e8c97;
}
.executive-panel svg {
  width: 100%;
  height: auto;
}
.executive-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #94a3b8;
}
.executive-chart-key span:nth-child(2) {
  color: #3b82f6;
}
.executive-chart-key span:nth-child(3) {
  color: #159071;
}
@media (max-width: 1100px) {
  .issue-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .issue-filters button {
    width: fit-content;
  }
  .executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .executive-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .tracking-tabs {
    width: 100%;
    gap: 3px;
  }
  .tracking-tabs a {
    padding: 10px 9px;
    font-size: 11px;
    flex: 1;
    text-align: center;
  }
  .issue-toolbar {
    align-items: flex-start;
  }
  .issue-toolbar h2 {
    font-size: 20px;
  }
  .issue-toolbar button {
    padding: 10px;
    font-size: 12px;
  }
  .issue-filters {
    padding: 12px;
    gap: 10px;
  }
  .issue-filters label:first-child {
    grid-column: 1/-1;
  }
  .issue-board {
    gap: 10px;
  }
  .issue-column {
    flex-basis: calc(100vw - 65px);
  }
  .issue-column-body {
    max-height: 65vh;
  }
  .executive-kpis {
    gap: 10px;
  }
  .executive-kpis article {
    padding: 16px;
  }
  .executive-kpis strong {
    font-size: 30px;
  }
  .executive-panel {
    padding: 16px;
  }
  .executive-bar {
    grid-template-columns: 110px minmax(25px, 1fr) 22px 30px;
    gap: 7px;
    font-size: 11px;
  }
  .issue-detail .map-detail-actions {
    grid-template-columns: 1fr 1fr;
  }
  .issue-detail-meta {
    gap: 8px;
  }
}

.executive-pending progress::-webkit-progress-value,
.executive-open progress::-webkit-progress-value,
.executive-waiting progress::-webkit-progress-value {
  background: #d5a43b;
}
.executive-progress progress::-webkit-progress-value,
.executive-in_progress progress::-webkit-progress-value {
  background: #7565ba;
}
.executive-qa progress::-webkit-progress-value,
.executive-qa_ready progress::-webkit-progress-value {
  background: #3894b5;
}
.executive-deferred progress::-webkit-progress-value {
  background: #8191a6;
}
.executive-done progress::-webkit-progress-value,
.executive-validated progress::-webkit-progress-value {
  background: #159071;
}

@media (max-width: 600px) {
  body.tracking-view aside .brand img {
    width: auto;
    max-width: 150px;
    height: 42px;
    object-fit: contain;
    margin: 0 0 10px;
  }
  body.tracking-view aside .pill {
    display: none;
  }
  body.tracking-view aside .app-wordmark {
    margin-bottom: 10px;
  }
  body.tracking-view aside nav {
    margin-top: 8px;
  }
}
.ticket-clean {
  max-width: 800px;
  margin: auto;
}
.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #71808c;
  font-size: 12px;
  margin-bottom: 26px;
}
.ticket-clean section {
  margin: 22px 0;
}
.ticket-clean h3 {
  font-size: 14px;
  margin: 0 0 9px;
  color: #263b48;
}
.ticket-clean p {
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  margin: 0;
  color: #405563;
}
.ticket-task p {
  font-size: 16px;
  color: #243e4c;
}
.ticket-answer {
  background: #f5f8fb;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #e1e8ee;
}
.ticket-outcome {
  border-left: 3px solid #54a38c;
  padding-left: 17px;
}
.ticket-primary-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5ebef;
}
.ticket-primary-actions button {
  margin: 0;
  min-height: 42px;
}
.ticket-conversation h3 span {
  font-weight: 400;
  color: #84919a;
  margin-left: 7px;
}
.ticket-conversation article {
  background: #f8fafb;
  border-radius: 9px;
  padding: 14px 16px;
  margin: 12px 0;
}
.ticket-conversation time {
  font-size: 11px;
  color: #7d8d98;
  display: block;
  margin: 5px 0 9px;
}
.ticket-secondary {
  border-top: 1px solid #e6ecf0;
  padding: 16px 0;
  margin: 0;
}
.ticket-secondary summary {
  font-size: 13px;
  color: #617482;
  cursor: pointer;
  font-weight: 500;
}
.ticket-secondary > small {
  display: block;
  color: #83929c;
  font-size: 11px;
  margin-top: 12px;
}
.ticket-secondary > p {
  margin: 16px 0;
  font-size: 12px;
}
.ticket-extra-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.ticket-extra-actions button {
  font-size: 12px;
}
.ticket-secondary .map-timeline p {
  font-size: 12px;
}
.ticket-secondary .map-timeline {
  margin-top: 24px;
}
@media (max-width: 600px) {
  .ticket-clean {
    width: 100%;
  }
  .ticket-meta {
    gap: 8px;
  }
  .ticket-task p {
    font-size: 15px;
  }
  .ticket-primary-actions button {
    flex: 1;
  }
  .ticket-answer {
    padding: 14px;
  }
  .ticket-clean p {
    font-size: 13px;
  }
}
.qa-identity-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  margin: 0 0 14px;
}
.qa-identity-status button {
  margin: 0;
  padding: 5px 10px;
  font-size: 11px;
  background: #fff;
}
.qa-actor-note {
  background: #f3f7fa;
  border-radius: 7px;
  padding: 10px 12px;
  color: #64748b;
  font-size: 12px;
}
.issue-support {
  border: 1px solid #dce5ec;
  border-radius: 9px;
  padding: 14px 16px;
  margin: 18px 0;
}
.issue-support legend {
  font-weight: 600;
  font-size: 13px;
}
.issue-support p {
  font-size: 12px;
  color: #6b7c89;
  margin: 0 0 12px;
}
.issue-support label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px 10px 0;
}
.issue-support input[type='checkbox'] {
  width: 17px;
  margin: 0;
  min-height: 17px;
}
.issue-support label:has(input:disabled) {
  opacity: 0.45;
}
.issue-support-names {
  display: block;
  color: #667b89;
  font-size: 11px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .qa-identity-status {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .issue-support label {
    display: flex;
  }
}

.ticket-conversation article > small,
.map-timeline li > small {
  display: block;
  margin-top: 4px;
  color: #617482;
  overflow-wrap: anywhere;
}

.employee-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.employee-status-badge.is-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86d6a0;
}
.employee-status-badge.is-inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f3aaaa;
}
.employee-status-card {
  padding: 20px;
  margin: 0 0 20px;
  border: 1px solid #b8ddc5;
  border-left: 5px solid #23864b;
  border-radius: 12px;
  background: #f3fbf6;
}
.employee-status-card.is-inactive {
  background: #fff6f6;
  border-color: #ecc3c3;
  border-left-color: #b44040;
}
.employee-status-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.employee-status-label {
  font-weight: 700;
  font-size: 16px;
}
.employee-status-card p {
  margin: 12px 0 6px;
  color: #253b35;
}
.employee-status-card small {
  color: #53645d;
}

.document-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: start;
}
.document-preview-head h3 {
  margin: 0 0 8px;
}
.document-preview-head p {
  overflow-wrap: anywhere;
}
.document-preview-head .actions {
  flex-wrap: wrap;
}
.document-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  position: sticky;
  top: 80px;
  background: #fff;
  z-index: 2;
}
.document-pages[hidden] {
  display: none;
}
.document-surface {
  background: #edf1f3;
  padding: 12px;
  border: 1px solid #dce3e7;
  border-radius: 10px;
  text-align: center;
  overflow: auto;
}
.document-surface canvas,
.document-surface img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: white;
}
.document-surface canvas {
  width: 100%;
}
.document-preview #documentPreviewStatus {
  font-size: 14px;
  color: #51616a;
}
@media (max-width: 600px) {
  .document-preview-head .actions {
    width: 100%;
  }
  .document-pages {
    gap: 8px;
    top: 70px;
    padding: 8px 0;
  }
  .document-pages button {
    padding: 10px;
  }
  .document-surface {
    padding: 4px;
  }
  .document-preview-head h3 {
    font-size: 18px;
  }
}

.word-preview {
  padding: 24px;
  text-align: left;
  background: #fff;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.word-preview table {
  width: 100%;
  border-collapse: collapse;
}
.word-preview td,
.word-preview th {
  border: 1px solid #cbd5df;
  padding: 8px;
}
.word-preview img {
  max-width: 100%;
  height: auto;
}
.excel-preview {
  overflow: auto;
  max-height: 65vh;
  text-align: left;
}
.excel-preview table {
  border-collapse: collapse;
  min-width: 100%;
  width: max-content;
}
.excel-preview td,
.excel-preview th {
  border: 1px solid #ccd5dc;
  padding: 8px;
  min-width: 90px;
  max-width: 350px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.excel-preview thead {
  position: sticky;
  top: 0;
  background: #e7f1ed;
}
.document-pages {
  flex-wrap: wrap;
}
.document-pages label {
  max-width: 100%;
}
.document-pages select {
  max-width: 280px;
}
@media (max-width: 600px) {
  .word-preview {
    padding: 12px;
  }
  .excel-preview {
    max-height: 60vh;
  }
}

.employee-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.detailgrid p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.observation-history article {
  border: 1px solid #dce5e9;
  border-left: 4px solid #438c80;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  background: #fafcfb;
}
.observation-history article > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.observation-history time {
  color: #536570;
  font-size: 13px;
}
.observation-history p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.observation-history small {
  display: block;
  margin-top: 8px;
  color: #66737c;
}
/* Activity navigation: one alignment grid and explicit area boundaries. */
aside {
  width: 272px;
  padding: 22px 16px;
}
main {
  margin-left: 272px;
}
aside nav {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 18px;
  flex: 1;
}
nav .navgroup {
  display: block;
  border-bottom: 1px solid #e6ecef;
  margin: 0;
  padding: 5px 0;
  min-width: 0;
}
nav .navgroup summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.35px;
  font-weight: 700;
  line-height: 1.4;
}
nav .navgroup summary::-webkit-details-marker {
  display: none;
}
nav .navgroup summary::before {
  content: '›';
  font-size: 20px;
  width: 14px;
  flex: none;
  transition: transform 0.15s;
}
nav .navgroup[open] summary::before {
  transform: rotate(90deg);
}
nav .navitems {
  display: grid;
  gap: 3px;
  padding: 0 0 8px 16px;
}
nav .navgroup a {
  display: block;
  white-space: normal;
  line-height: 1.4;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0;
}
nav .navgroup a.active {
  border-left-color: currentColor;
}
nav a:focus-visible,
summary:focus-visible,
.workspace-card:focus-visible {
  outline: 3px solid #2599c9;
  outline-offset: 2px;
}
.workspace-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}
.workspace-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  border: 1px solid #dbe4e9;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  color: #183449;
  min-width: 0;
}
.workspace-card:hover {
  background: #f5f9fb;
  border-color: #8ca9b7;
}
.workspace-card strong {
  font-size: 16px;
}
.workspace-card span {
  font-size: 13px;
  line-height: 1.6;
  color: #61798a;
}
.workspace-card small {
  margin-top: auto;
  padding-top: 8px;
  color: #087eae;
}
.catalog-section {
  margin: 0 20px 12px;
  border: 1px solid #dbe4e9;
  border-radius: 8px;
}
.catalog-section > summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 600;
}
.catalog-section .workspace-cards {
  padding-top: 0;
}
body[data-company='PA'] .workspace-card small {
  color: #a9340b;
}
@media (max-width: 1100px) {
  .workspace-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  aside {
    position: relative;
    width: 100%;
    padding: 16px;
  }
  main {
    margin-left: 0;
  }
  aside nav {
    max-height: 48vh;
    overflow: auto;
    display: block;
  }
  nav .navgroup,
  nav .navgroup[open] {
    display: block;
    min-width: 0;
  }
  nav .navgroup[open] a {
    display: block;
  }
  nav .navitems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-cards {
    grid-template-columns: 1fr;
  }
  .catalog-section {
    margin: 0 12px 12px;
  }
  .workspace-card {
    padding: 16px;
  }
  aside .brand img {
    height: 42px;
    object-fit: contain;
    margin: 0;
    width: auto;
    max-width: 180px;
  }
}
#activityMenuToggle {
  display: none;
}
@media (max-width: 900px) {
  #activityMenuToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    text-align: left;
    background: #f4f7f9;
    border-color: #dbe4e9;
    font-weight: 600;
  }
  body:not(.mobile-nav-open) aside #nav {
    display: none;
  }
  body.mobile-nav-open aside #nav {
    display: block;
  }
  .navitems a {
    min-height: 44px;
  }
}

/* Consistent context and list controls across activities. */
.module-navigation {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #f4f7f9;
  border: 1px solid #dce4e9;
  border-radius: 10px;
  font-size: 13px;
}
.module-navigation a {
  font-weight: 600;
  text-decoration: none;
}
.module-navigation [aria-current] {
  color: #566575;
}
.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #e2e8ee;
  font-size: 13px;
}
.list-pagination label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.list-pagination select {
  width: auto;
  margin: 0;
}
.list-pagination button {
  margin: 0 4px;
}
.list-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.tablewrap tr[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .list-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .module-navigation {
    gap: 10px;
  }
  .dialoghead {
    gap: 12px;
  }
  .dialoghead > button {
    white-space: normal;
    flex-shrink: 0;
    max-width: 135px;
  }
}

.collection-controls {
  padding: 10px 0;
}
.collection-controls .list-pagination {
  padding: 8px 0;
  gap: 6px;
}
.collection-controls input {
  min-width: 0;
}
.issue-column .collection-controls {
  font-size: 12px;
}
.issue-column .list-pagination {
  display: block;
}
.issue-column .list-pagination [data-page-summary] {
  display: block;
  margin: 8px 0;
}
[data-collection-ready] > [hidden] {
  display: none !important;
}
/* Company entrance — distinct from the operational dashboards. */
.company-home {
  --home-accent: #197fa9;
  --home-soft: #e5f3f8;
  --home-glow: #369ecc;
  max-width: 1320px;
  margin: 0 auto;
}
.home-view[data-company='PA'] .company-home {
  --home-accent: #b84d34;
  --home-soft: #faeee8;
  --home-glow: #d07b54;
}
.home-view main > header,
.home-view main > .heading {
  display: none;
}
.home-view #qaIdentityStatus {
  margin: 24px 0 16px;
}
.nav-home {
  display: block;
  font-weight: 600;
}
.home-topline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 24px 0 18px;
  color: #657681;
  font-size: 12px;
}
.home-topline > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.home-topline time {
  text-transform: capitalize;
}
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 410px;
  border-radius: 24px;
  overflow: hidden;
  background: #132c37;
  color: #fff;
  border: 1px solid #28424c;
}
.home-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 85% 20%,
      color-mix(in srgb, var(--home-glow) 25%, transparent),
      transparent 65%
    ),
    linear-gradient(130deg, #0e242e, transparent);
}
.home-intro {
  padding: 46px 42px;
  position: relative;
  z-index: 1;
}
.home-product {
  width: 205px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 2px 10px #0002);
  margin-bottom: 38px;
}
.home-company-label {
  font-size: 10px;
  letter-spacing: 2.6px;
  color: #aec6cf;
  font-weight: 600;
}
.home-intro h1 {
  font-size: clamp(29px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.7px;
  color: #fff;
  margin: 13px 0 19px;
  max-width: 550px;
}
.home-intro p {
  color: #c2d3d8;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 25px;
}
.home-hero .home-start {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  color: #16323d;
  background: #fff;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 18px;
  min-height: 46px;
}
.home-hero .home-start:hover {
  background: #e6f2f2;
  transform: translateY(-2px);
}
.home-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
}
.home-orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-two {
  width: 460px;
  height: 460px;
  border-style: dashed;
  border-color: #ffffff10;
}
.home-company-mark {
  width: 235px;
  height: 155px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 60px #0004;
  transform: rotate(-3deg);
  padding: 28px;
}
.home-company-mark img {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
}
.home-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border: 1px solid #ffffff20;
  background: #203b47f0;
  padding: 12px 15px;
  border-radius: 12px;
  color: #e5f1f4;
  box-shadow: 0 10px 25px #0002;
}
.home-node svg {
  width: 22px;
  height: 22px;
  color: #8edbcf;
}
.node-works {
  top: 12%;
  left: 12%;
}
.node-people {
  top: 27%;
  right: 5%;
}
.node-finance {
  bottom: 19%;
  right: 17%;
}
.home-visual-caption {
  position: absolute;
  bottom: 35px;
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #9ab6c0;
}
.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 35px 0 20px;
}
.home-eyebrow {
  font-size: 10px;
  color: var(--home-accent);
  letter-spacing: 1.8px;
  font-weight: 700;
}
.home-section-heading h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 8px 0 0;
}
.home-section-heading p {
  font-size: 13px;
  margin: 0;
}
.home-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-area {
  position: relative;
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dfe5e8;
  border-radius: 15px;
  padding: 24px;
  color: inherit;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.home-area:hover {
  transform: translateY(-4px);
  border-color: var(--home-accent);
  box-shadow: 0 12px 28px #1834490d;
}
.home-area-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--home-soft);
  color: var(--home-accent);
  border-radius: 12px;
  margin-bottom: 22px;
}
.home-area-icon svg {
  width: 25px;
  height: 25px;
}
.home-area-arrow {
  position: absolute;
  right: 23px;
  top: 26px;
  font-size: 22px;
  color: #8b9ca4;
}
.home-area h3 {
  font-size: 17px;
  margin: 0 0 9px;
  color: #263d47;
}
.home-area p {
  font-size: 13px;
  line-height: 1.65;
  min-height: 43px;
  margin: 0 0 22px;
}
.home-area-tags {
  display: block;
  padding-top: 15px;
  border-top: 1px solid #edf0f2;
  font-size: 11px;
  color: #657781;
  line-height: 1.6;
}
.home-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 4px;
  color: #72848b;
  font-size: 11px;
}
.home-qa-dot:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c58c3c;
  border-radius: 50%;
  margin-right: 7px;
}
.company-home a:focus-visible,
.company-home button:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}
.home-areas {
  scroll-margin-top: 25px;
}
@media (max-width: 1100px) {
  .home-intro {
    padding: 35px 28px;
  }
  .home-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-company-mark {
    width: 185px;
    height: 140px;
    padding: 22px;
  }
  .node-people {
    right: 2%;
  }
  .home-node {
    padding: 10px;
    font-size: 11px;
  }
  .node-works {
    left: 3%;
  }
}
@media (max-width: 600px) {
  .home-topline {
    display: block;
    margin-top: 20px;
  }
  .home-topline time {
    display: block;
    margin-top: 9px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .home-intro {
    padding: 30px 25px 10px;
  }
  .home-product {
    width: 185px;
    margin-bottom: 30px;
  }
  .home-intro h1 {
    font-size: 35px;
  }
  .home-intro p {
    font-size: 15px;
  }
  .home-visual {
    min-height: 275px;
  }
  .home-company-mark {
    width: 180px;
    height: 120px;
  }
  .home-orbit {
    width: 240px;
    height: 240px;
  }
  .orbit-two {
    width: 340px;
    height: 340px;
  }
  .node-works {
    left: 7%;
    top: 10%;
  }
  .node-people {
    right: 4%;
    top: 25%;
  }
  .node-finance {
    bottom: 15%;
    right: 10%;
  }
  .home-visual-caption {
    bottom: 13px;
    font-size: 8px;
  }
  .home-section-heading {
    display: block;
    margin-top: 30px;
  }
  .home-section-heading p {
    margin-top: 10px;
  }
  .home-area-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-area {
    padding: 22px;
  }
  .home-area p {
    min-height: 0;
  }
  .home-bottom {
    flex-direction: column;
  }
  .home-area-icon {
    margin-bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-area,
  .home-start {
    transition: none !important;
    transform: none !important;
  }
}

body.home-view .home-intro p {
  color: #c2d3d8;
}
body.home-view .home-area p {
  color: #617581;
}
