:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #25344b;
  background: #f5f7fa;
  font-size: 14px;
  --ink: #172c4b;
  --muted: #718098;
  --line: #e2e8f0;
  --primary: #2066d5;
  --green: #147d69;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80b6ff;
  outline-offset: 2px;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  background: white;
  color: var(--ink);
}
button:hover {
  background: #f0f5ff;
}
button.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
button.primary:hover {
  background: #1755b6;
}
button.link {
  padding: 2px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  text-align: left;
}
input,
select,
textarea {
  border: 1px solid #d4dce8;
  border-radius: 5px;
  padding: 9px 10px;
  color: #25344b;
  background: #fff;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: 0.3px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #11243e;
  color: #bdcada;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 218px;
  height: 100vh;
  padding: 28px 16px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  padding: 0 10px 26px;
  font-weight: 650;
  font-size: 17px;
}
.brand-icon {
  background: #2877ed;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #92a8c5;
  font-weight: 400;
  margin-top: 5px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  padding: 18px 14px 10px;
  color: #7a90ad;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  color: #bdcada;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav button:hover {
  background: #1d3658;
}
.nav button.active {
  color: #fff;
  background: #224f89;
}
.nav-symbol {
  width: 18px;
  font-size: 17px;
}
.side-foot {
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid #2a3b53;
  line-height: 1.8;
  font-size: 12px;
  color: #97aecb;
}
.side-dot {
  color: #57d6b6;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  gap: 16px;
}
.topbar .select-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar select {
  min-width: 210px;
  border-color: transparent;
  background: #f5f7fb;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
}
.content {
  padding: 32px 34px 50px;
  max-width: 1600px;
  margin: auto;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 650;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.7;
}
.pill {
  border-radius: 4px;
  background: #edf3ff;
  color: #3565a4;
  padding: 4px 8px;
  display: inline-block;
  font-size: 11px;
  white-space: nowrap;
}
.pill.green {
  color: #147d69;
  background: #e7f5f0;
}
.pill.amber {
  color: #a66b0c;
  background: #fff5df;
}
.pill.gray {
  color: #6c7a8e;
  background: #eef1f5;
}
.banner {
  padding: 14px 18px;
  border: 1px solid #dae6fa;
  background: #eef5ff;
  border-radius: 7px;
  color: #47688f;
  line-height: 1.8;
  font-size: 12px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
}
.banner.warning {
  background: #fff9eb;
  border-color: #f3e2b9;
  color: #846328;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 4px #20334d03;
}
.card {
  padding: 20px;
}
.card-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.number {
  font-size: 27px;
  font-weight: 650;
  color: var(--ink);
  margin: 15px 0 9px;
  font-variant-numeric: tabular-nums;
}
.card small {
  font-size: 11px;
}
.card .unit {
  font-size: 12px;
  margin-left: 5px;
  font-weight: 400;
  color: var(--muted);
}
.panel {
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  padding: 19px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.panel-body {
  padding: 22px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 22px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #718098;
  background: #f9fafc;
  font-weight: 500;
  font-size: 11px;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 19px;
  border-bottom: 1px solid #eef1f6;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
.cell-main {
  color: var(--ink);
  font-weight: 550;
  margin-bottom: 6px;
}
.code {
  color: var(--muted);
  font-size: 10px;
  font-family: ui-monospace, monospace;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  min-width: 240px;
}
.toolbar input[type="number"] {
  width: 130px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.task-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.task-item:last-child {
  border: 0;
}
.task-count {
  display: grid;
  place-items: center;
  background: #fff3de;
  color: #b78528;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.task-content {
  flex: 1;
  line-height: 1.7;
}
.task-content small {
  display: block;
  margin-top: 3px;
}
.bar-item {
  margin-bottom: 18px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.bar {
  height: 7px;
  border-radius: 4px;
  background: #eef2f7;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #5d91dc;
  border-radius: 4px;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.field.wide {
  grid-column: 1/-1;
}
.field label {
  font-weight: 550;
  color: #52637b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.section-title {
  margin-bottom: 18px;
}
.question {
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #f0e1bc;
  background: #fffaf0;
  margin-bottom: 12px;
  line-height: 1.8;
}
.question .actions {
  margin-top: 10px;
}
.question input {
  flex: 1;
  min-width: 190px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-grid dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.info-grid dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.history {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.history pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  background: #f6f8fb;
  padding: 12px;
  border-radius: 5px;
  max-height: 300px;
  overflow: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(880px, calc(100vw - 30px));
  max-height: 90vh;
  padding: 0;
  color: #25344b;
  box-shadow: 0 20px 80px #071c3c30;
}
dialog::backdrop {
  background: #0b1e3d70;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-body {
  padding: 25px 26px;
}
.modal-head button {
  border: 0;
  font-size: 20px;
  padding: 2px 8px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-intro {
  background: #11243e;
  color: white;
  padding: 10vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-intro h1 {
  font-size: 39px;
  line-height: 1.5;
  font-weight: 600;
}
.login-intro p {
  color: #9ab0ca;
  line-height: 2;
  margin-top: 24px;
  max-width: 420px;
}
.login-intro .eyebrow {
  color: #7caff8;
  margin-bottom: 25px;
}
.login-tags {
  display: flex;
  gap: 10px;
  margin-top: 35px;
}
.login-tags span {
  color: #9ab0ca;
  border: 1px solid #314b6e;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 11px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-box {
  width: 340px;
}
.login-box h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 35px;
}
.login-box button {
  margin-top: 5px;
  padding: 12px;
}
.login-box .footnote {
  margin-top: 28px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  max-width: min(700px, 90vw);
  border-radius: 7px;
  color: white;
  background: #213c60;
  box-shadow: 0 5px 20px #0002;
  z-index: 999;
  display: none;
  white-space: pre-wrap;
  font-size: 13px;
}
#toast.error {
  background: #9a3a3a;
}
.inline-error {
  color: #ac3b3b;
  font-size: 12px;
  line-height: 1.8;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 230px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.7;
}
.checkbox input {
  width: auto;
  margin-top: 4px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.connect-status {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  line-height: 1.9;
}
.connect-icon {
  font-size: 22px;
  border-radius: 7px;
  background: #eff3f9;
  padding: 9px 14px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
}
@media (max-width: 1150px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    width: auto;
    padding: 15px;
  }
  .brand {
    padding-bottom: 15px;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-label,
  .side-foot {
    display: none;
  }
  .main {
    grid-column: 1;
  }
  .topbar {
    padding: 12px 16px;
    height: auto;
    flex-wrap: wrap;
  }
  .content {
    padding: 25px 16px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .number {
    font-size: 23px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 40px 25px;
  }
  .login-intro h1 {
    font-size: 27px;
  }
  .login-intro p,
  .login-tags {
    display: none;
  }
  .login-form {
    padding: 40px 25px;
  }
  .topbar select {
    min-width: 150px;
    max-width: 230px;
  }
  .toolbar input[type="search"] {
    min-width: 180px;
    flex: 1;
  }
  .user .muted {
    display: none;
  }
}
/* Keep navigation and wide tables inside their own scrolling containers. */
.sidebar,
.grid-two > div {
  min-width: 0;
}
@media (max-width: 760px) {
  .shell,
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    min-width: 0;
  }
}
/* Project workflows retain the existing visual language. */
.project-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.project-tabs .active {
  background: #2563eb;
  color: white;
}
.archive-steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: white;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  list-style: none;
}
.admin-nav {
  margin: 20px 16px;
  color: #c3cee0;
}
.admin-nav summary {
  cursor: pointer;
  padding: 12px;
}
.admin-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 12px;
}
#advanced-mapping {
  padding: 16px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}
#advanced-mapping summary {
  cursor: pointer;
  margin-bottom: 12px;
}

/* Marketing assets reuse the existing typography and panels. */
.table-wrap td small {
  display: block;
  color: var(--muted, #7486a0);
  margin-top: 5px;
}
#task-bell {
  white-space: nowrap;
}
#modal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#modal select[multiple] {
  min-height: 76px;
}

/* Minimal final-results workspace, reusing the existing visual language. */
.mvp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.mvp-stat {
  padding: 20px;
  margin: 0;
}
.mvp-stat strong {
  display: block;
  font-size: 25px;
  margin: 12px 0;
}
.mvp-stat small {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.identity-shortcut {
  margin-top: 12px;
  color: #2165dd;
  border-color: #cbdcfa;
  background: #f3f7ff;
  font-size: 13px;
}
.identity-confirm-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.upload-new-project:not([hidden]) {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #d8e4f6;
  border-radius: 8px;
  background: #f6f9ff;
}
.mvp-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.mvp-filters .field {
  min-width: 140px;
  flex: 1;
}
.mvp-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.mvp-images img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.mvp-images figure {
  margin: 8px;
}
dialog .panel {
  margin-top: 12px;
}
td small {
  display: block;
}
.mvp-filters input {
  width: 100%;
}

.annual-timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 16px;
}
.timeline-month {
  flex: 0 0 155px;
  border-top: 3px solid #2165dd;
  padding: 12px 8px;
  background: #f7f9fc;
  min-height: 115px;
}
.timeline-month strong {
  display: block;
  margin-bottom: 12px;
}
.timeline-node {
  display: block;
  margin: 8px 0;
  text-align: left;
  white-space: normal;
}
.date-pending {
  padding: 12px;
  background: #fff8eb;
}
.date-pending strong {
  margin-right: 15px;
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}
.node-card {
  padding: 22px;
  margin: 0;
}
.node-heading {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}
.node-heading h2,
.node-heading h3 {
  margin: 0;
}
.node-heading h2 button {
  padding: 0;
  border: 0;
  font-size: 18px;
  text-align: left;
  color: #172b48;
}
.node-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0;
}
.work-card {
  padding: 22px;
  max-width: 800px;
}
.ranking-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.rule-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rule-row .field {
  min-width: 100px;
  flex: 1;
}
.annual-content-table th:last-child,
.annual-content-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  min-width: 125px;
  box-shadow: -3px 0 5px #11243e08;
}

/* Annual display priorities: a deliberate 3 × 2 summary and readable content cards. */
.annual-hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 30px;
}
.annual-hero-metrics .mvp-stat {
  padding: 28px 30px;
  min-height: 166px;
  border-top: 3px solid #2563eb;
  background: linear-gradient(135deg, #fff 60%, #f5f8ff);
  box-shadow: 0 5px 18px #172b4805;
}
.annual-hero-metrics .mvp-stat > span {
  font-size: 17px;
  font-weight: 600;
  color: #526581;
}
.annual-hero-metrics .mvp-stat strong {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin: 15px 0 12px;
}
.annual-hero-metrics .mvp-stat small {
  font-size: 13px;
  line-height: 1.5;
}
.display-sort {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.display-sort .field {
  min-width: 155px;
}
.display-sort small {
  padding-bottom: 10px;
}
.project-playback-leaders > p {
  margin-bottom: 18px;
}
.work-gallery {
  display: grid;
  gap: 24px;
}
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  max-width: none;
  padding: 28px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 5px 20px #172b4806;
}
.work-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.work-context > button {
  background: transparent;
  border: 0;
  padding: 0;
  color: #526581;
  text-align: left;
  font-size: 13px;
}
.work-title {
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 10px;
}
.work-creator {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #314865;
}
.work-topics {
  font-size: 13px;
  margin: 0 0 22px;
}
.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}
.work-metric span {
  display: block;
  color: #6c7d95;
  font-size: 13px;
  margin-bottom: 10px;
}
.work-metric strong {
  font-size: clamp(22px, 2.1vw, 32px);
  font-variant-numeric: tabular-nums;
  color: #172b48;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.work-metric:first-child strong {
  color: #2165dd;
}
.work-costs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #6c7d95;
  font-size: 13px;
  margin-top: 20px;
}
.work-costs strong {
  font-size: 17px;
  color: #314865;
  font-weight: 600;
}
.work-cost-note {
  font-size: 12px;
  color: #7a899e;
  margin: 8px 0;
}
.work-achievement {
  color: #526581;
  font-size: 13px;
  margin: 12px 0 16px;
}
.work-open-link {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  margin-right: 12px;
}
.work-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #f5f7fb;
  border-radius: 10px;
  min-height: 280px;
  overflow: hidden;
}
.work-preview-open {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 12px;
  min-height: 240px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.work-preview-open:hover {
  background: #edf2fc;
}
.work-preview-open:focus-visible {
  outline: 3px solid #2165dd;
  outline-offset: -3px;
}
.work-image-viewer {
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.work-image-viewer::backdrop {
  background: #07152ccc;
}
.work-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.work-viewer-head h2 {
  margin: 0;
  font-size: 19px;
}
.work-viewer-head p {
  margin: 5px 0 0;
  color: #687992;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.work-viewer-stage {
  height: min(68dvh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #eef2f8;
  text-align: center;
  position: relative;
}
.work-viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work-viewer-stage.is-original img {
  width: auto;
  height: auto;
  max-width: none;
}
.work-viewer-stage img[hidden],
.work-viewer-status[hidden] {
  display: none;
}
.work-viewer-status {
  padding: 30px;
  color: #536581;
}
.work-viewer-hint {
  margin: 0;
  padding: 12px 20px;
  font-size: 12px;
  color: #687992;
}
.work-preview img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.work-image-caption {
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 10px 12px;
  color: #687992;
  border-top: 1px solid #e5ebf3;
}
.work-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  min-height: 260px;
  color: #8391a5;
  text-align: center;
}
.work-no-image small {
  font-size: 12px;
}
.work-image-symbol {
  font-size: 44px;
  color: #bbc6d5;
}
@media (max-width: 1100px) {
  .annual-hero-metrics .mvp-stat {
    padding: 22px;
  }
  .work-card {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
    padding: 22px;
  }
  .work-metrics {
    gap: 10px;
  }
  .work-metric strong {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .annual-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .annual-hero-metrics .mvp-stat {
    min-height: 145px;
    padding: 18px;
  }
  .annual-hero-metrics .mvp-stat strong {
    font-size: 30px;
  }
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-preview {
    min-height: 220px;
  }
  .work-preview img {
    max-height: 280px;
  }
}
@media (max-width: 480px) {
  .annual-hero-metrics {
    grid-template-columns: 1fr;
  }
  .work-metric strong {
    font-size: 21px;
  }
}

/* Public ICP footer */
.hub-icp-footer { padding:12px 16px; text-align:center; font-size:12px; line-height:1.5; color:#64748b; }
.hub-icp-footer a { color:inherit; }
