:root {
  --navy-950: #06131f;
  --navy-900: #071726;
  --navy-800: #10273a;
  --navy-700: #1c394e;
  --ink: #102235;
  --muted: #667583;
  --line: #dfe3e4;
  --canvas: #f4f2ec;
  --paper: #fffefa;
  --white: #ffffff;
  --red: #d82d35;
  --red-dark: #b91f28;
  --gold: #c5a35d;
  --gold-soft: #eadcb9;
  --green: #2f8f6b;
  --shadow: 0 18px 60px rgba(7, 23, 38, 0.12);
  --radius: 18px;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(216, 45, 53, 0.42);
  outline-offset: 3px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  color: white;
  background: var(--red);
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 72px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid rgba(16, 34, 53, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo-link img {
  width: 132px;
  height: auto;
}

.mobile-app-home,
.mobile-header-back,
.mobile-header-title {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--red);
  background: #fff2f1;
  border: 1px solid #f0c6c8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.header-intent,
.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.header-intent span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  color: white;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 10px 28px rgba(216, 45, 53, 0.25);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-outline {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-dark {
  color: white;
  background: var(--navy-900);
}

.button-large {
  min-height: 50px;
  padding-inline: 26px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 30%, rgba(197, 163, 93, 0.13), transparent 28%),
    linear-gradient(118deg, var(--navy-950), var(--navy-900) 66%, #0b2233);
}

.hero::after {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--red);
}

.hero-layout {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.75fr);
  gap: 84px;
  align-items: center;
  padding-block: 78px 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(45px, 5vw, 70px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: #f1dba9;
  font-style: normal;
}

.hero-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: #becad3;
  font-size: 18px;
}

.promise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  padding: 7px 13px;
  color: #e4eaf0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link {
  color: #f0dba9;
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-console {
  position: relative;
  min-height: 380px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.hero-console::before {
  position: absolute;
  content: "";
  right: -50px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(197, 163, 93, 0.4);
  transform: rotate(45deg);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 18px;
  color: #9eafbd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.console-top b {
  margin-left: auto;
  color: #d6c18f;
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #62c396;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(98, 195, 150, 0.12);
}

.console-feature {
  padding-block: 30px 25px;
}

.console-feature > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.console-feature strong {
  display: block;
  margin: 12px 0;
  color: white;
  font-size: 31px;
  line-height: 1.25;
}

.console-feature p {
  margin: 0;
  color: #8ea0ae;
  font-size: 13px;
}

.console-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.console-platform {
  min-width: 0;
  padding: 10px 5px;
  color: #c6d0d7;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(197, 163, 93, 0.35);
}

.kpi {
  min-width: 0;
  padding: 25px 20px 28px 0;
}

.kpi + .kpi {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.kpi b {
  display: block;
  color: white;
  font-size: 29px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi span {
  display: block;
  margin-top: 6px;
  color: #8fa0ad;
  font-size: 12px;
}

.proof-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid > div {
  padding: 25px 26px;
}

.proof-grid > div:first-child {
  padding-left: 0;
}

.proof-grid > div + div {
  border-left: 1px solid var(--line);
}

.proof-grid b,
.proof-grid span {
  display: block;
}

.proof-grid b {
  font-size: 14px;
}

.proof-grid span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding-block: 92px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child,
.section-heading > div > p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.koc-section {
  background: var(--paper);
}

.quick-match-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.quick-match-grid button {
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  background: #f8f6f0;
  border: 1px solid #e3dfd6;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.quick-match-grid button:hover {
  transform: translateY(-2px);
  background: white;
  border-color: var(--gold);
}

.quick-match-grid b,
.quick-match-grid span {
  display: block;
}

.quick-match-grid b {
  color: var(--ink);
  font-size: 15px;
}

.quick-match-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.matrix-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

.matrix-block {
  padding: 24px;
  background: var(--canvas);
  border: 1px solid #e3dfd6;
  border-radius: var(--radius);
}

.matrix-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.matrix-block-head b {
  font-size: 17px;
}

.matrix-block-head span {
  color: var(--muted);
  font-size: 12px;
}

.matrix-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.matrix-cells.fan-cells {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.matrix-cell {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}

.matrix-cell:hover {
  border-color: var(--gold);
}

.matrix-cell b,
.matrix-cell span {
  display: block;
}

.matrix-cell b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.matrix-cell span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-matrices {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.linked-matrix-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.linked-matrix-head,
.matrix-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.linked-matrix-head {
  padding: 18px 20px;
  background: var(--navy-900);
  color: white;
}

.linked-matrix-head b,
.linked-matrix-head span {
  display: block;
}

.linked-matrix-head b {
  font-size: 17px;
}

.linked-matrix-head span,
.linked-matrix-head em {
  color: #a9b8c4;
  font-size: 10px;
  font-style: normal;
}

.linked-matrix-scroll {
  max-height: 445px;
  overflow: auto;
  overscroll-behavior: contain;
}

.matrix-table {
  min-width: 760px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 140px repeat(var(--matrix-columns), minmax(110px, 1fr));
  border-top: 1px solid #ecece7;
}

.matrix-row > strong,
.matrix-row > span,
.matrix-row > b,
.matrix-row > button {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid #ecece7;
}

.matrix-row > strong,
.matrix-row > span {
  position: sticky;
  left: 0;
  z-index: 2;
  justify-content: flex-start;
  background: white;
  border-left: 0;
  font-size: 12px;
}

.matrix-row > button {
  flex-direction: column;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.matrix-row > button:hover:not(:disabled) {
  color: var(--red);
  background: #fff4f2;
}

.matrix-row > button b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.matrix-row > button span {
  color: var(--muted);
  font-size: 9px;
}

.matrix-row > button:disabled {
  color: #9ca5aa;
  background: #f6f6f2;
  cursor: not-allowed;
}

.matrix-header {
  position: sticky;
  z-index: 4;
  top: 0;
  color: var(--muted);
  background: #f5f4ef;
}

.matrix-header > span,
.matrix-header > b {
  min-height: 44px;
  background: #f5f4ef;
  font-size: 10px;
}

.matrix-header > span {
  z-index: 5;
}

.matrix-subheading {
  margin: 32px 0 14px;
}

.matrix-subheading b {
  font-size: 18px;
}

.matrix-subheading span {
  color: var(--muted);
  font-size: 11px;
}

.table-scroll-hint {
  display: none;
}

.platform-table {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(16, 34, 53, 0.05);
}

.platform-table-head,
.platform-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1fr) 110px minmax(180px, 1fr) 130px;
  align-items: center;
}

.platform-table-head {
  min-height: 42px;
  padding: 0 16px;
  color: #64727d;
  background: #f1f2ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.platform-row {
  width: 100%;
  min-height: 62px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border-top: 1px solid #e9e9e5;
  text-align: left;
}

.platform-row:nth-child(odd) {
  background: #fcfcfa;
}

.platform-row:hover {
  background: #fff7f5;
}

.platform-row > span,
.platform-row > b {
  min-width: 0;
  padding-right: 14px;
  font-size: 12px;
}

.platform-row > b,
.platform-row > span b {
  font-variant-numeric: tabular-nums;
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-name img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  border-radius: 7px;
}

.platform-name strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-open {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--red);
  font-weight: 700;
}

.platform-open button {
  padding: 8px 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.workspace-section {
  background: #ebe9e3;
}

.workspace-heading {
  margin-bottom: 25px;
}

.workspace {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 216px;
  gap: 18px;
  align-items: start;
}

.filter-panel,
.resource-pane,
.desktop-intent-panel {
  background: var(--paper);
  border: 1px solid rgba(16, 34, 53, 0.09);
  border-radius: 16px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-head strong {
  font-size: 18px;
}

.mobile-filter-close,
.mobile-filter-trigger,
.mobile-tabbar,
.mobile-filter-backdrop {
  display: none;
}

.link-button {
  padding: 5px;
  color: var(--red);
  font-size: 12px;
}

.filter-group {
  padding-top: 18px;
}

.filter-group h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-options {
  max-height: 244px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-options button {
  min-height: 34px;
  padding: 6px 10px;
  color: #526473;
  background: #f3f3ef;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
}

.filter-options button:hover,
.filter-options button[aria-pressed="true"] {
  color: var(--red);
  background: #fff3f2;
  border-color: #f0c7c9;
}

.resource-pane {
  min-width: 0;
  padding: 20px;
}

.desktop-intent-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.desktop-intent-head {
  padding: 17px 18px;
  color: white;
  background: var(--navy-900);
}

.desktop-intent-head span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.desktop-intent-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.desktop-intent-preview {
  min-height: 150px;
  padding: 16px;
}

.desktop-intent-preview > strong,
.desktop-intent-preview > span {
  display: block;
}

.desktop-intent-preview > strong {
  font-size: 14px;
}

.desktop-intent-preview > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.desktop-intent-preview ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.desktop-intent-preview li {
  overflow: hidden;
  padding: 7px 8px;
  background: #f2f3ef;
  border-radius: 6px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-intent-panel > .button {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
}

.resource-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  background: #f2f3f1;
  border: 1px solid transparent;
  border-radius: 9px;
}

.search-field:focus-within {
  background: white;
  border-color: var(--gold);
}

.search-field svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.select-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}

.select-field span {
  color: var(--muted);
}

.select-field select {
  max-width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.result-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.result-meta b {
  color: var(--ink);
}

.partial-load-warning {
  color: #9b5b18;
}

.partial-load-warning button {
  margin-left: 4px;
  padding: 2px 7px;
  color: #8b4d0e;
  background: #fff4df;
  border: 1px solid #ecd2a4;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
}

.resource-table {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.resource-list-head,
.resource-row {
  min-width: 630px;
  display: grid;
  grid-template-columns: 90px minmax(130px, 1.5fr) 78px minmax(100px, 1fr) 132px 78px;
  align-items: stretch;
}

.resource-list-head {
  min-height: 40px;
  color: #64727d;
  background: #f1f2ef;
  font-size: 10px;
  font-weight: 700;
}

.resource-list-head > span,
.resource-row > div {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 9px 10px;
  border-right: 1px solid #ecece7;
}

.resource-list-head > span:last-child,
.resource-row > div:last-child {
  border-right: 0;
}

.resource-row {
  min-height: 76px;
  background: white;
  border-top: 1px solid #e7e8e3;
}

.resource-row:nth-child(even) {
  background: #fcfcfa;
}

.resource-row:hover {
  background: #fff8f6;
}

.resource-platform-cell strong,
.resource-account-cell strong,
.resource-fans-cell b,
.resource-meta-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-platform-cell strong,
.resource-account-cell strong {
  font-size: 12px;
}

.resource-certification {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin-top: 5px;
  padding: 2px 5px;
  color: #526473;
  background: #eff1ee;
  border-radius: 4px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-account-cell span,
.resource-account-cell a,
.resource-fans-cell span,
.resource-meta-cell span,
.resource-price-cell > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.resource-account-cell a {
  width: fit-content;
  color: #526b7e;
}

.resource-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-fans-cell b {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.resource-meta-cell strong {
  font-size: 11px;
}

.resource-price-cell > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-top: 0;
}

.resource-price-cell > span + span {
  margin-top: 5px;
}

.resource-price-cell b {
  color: var(--red);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.resource-action-cell button {
  min-height: 34px;
  padding: 0 8px;
  color: white;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.resource-action-cell button[data-selected="true"] {
  color: var(--red);
  background: #fff1f0;
  border-color: #efc1c4;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding-top: 18px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.pagination button[aria-current="page"] {
  color: white;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  text-align: center;
}

.empty-state strong,
.error-state strong {
  display: block;
  font-size: 20px;
}

.empty-state p,
.error-state p {
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.service-section {
  background: var(--paper);
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.section-tabs button {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.section-tabs button[aria-selected="true"] {
  color: white;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.service-table {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.service-table-head,
.service-row {
  min-width: 1030px;
  display: grid;
  grid-template-columns: 100px minmax(170px, 1.15fr) 130px minmax(260px, 1.8fr) 95px 130px 100px;
  align-items: stretch;
}

.service-table-head {
  min-height: 42px;
  color: #64727d;
  background: #f1f2ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-table-head > span,
.service-row > span,
.service-row > strong,
.service-row > b {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid #ecece7;
}

.service-table-head > span:last-child,
.service-row > :last-child {
  border-right: 0;
}

.service-row {
  width: 100%;
  min-height: 66px;
  color: var(--ink);
  background: white;
  border-top: 1px solid #e7e8e3;
  text-align: left;
}

.service-row:nth-child(odd) {
  background: #fcfcfa;
}

.service-row:hover {
  background: #fff8f6;
}

.service-kind {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}

.service-title {
  font-size: 12px;
  line-height: 1.45;
}

.service-platform,
.service-desc {
  color: #687785;
  font-size: 11px;
  line-height: 1.55;
}

.service-count,
.service-price {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.service-price,
.service-open {
  color: var(--red);
}

.service-open {
  font-size: 10px;
  font-weight: 700;
}

.service-open button {
  padding: 8px 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.download-section {
  padding-block: 64px;
  background: var(--navy-900);
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.85fr);
  gap: 64px;
  align-items: center;
  color: white;
}

.download-card h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
}

.download-card p:last-child {
  margin: 13px 0 0;
  color: #9dafbd;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.document-button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  color: white;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  transition: transform 160ms ease;
}

.document-button:hover {
  transform: translateY(-2px);
}

.document-button-light {
  color: var(--ink);
  background: white;
}

.document-icon {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 700;
}

.document-button b,
.document-button small {
  display: block;
}

.document-button b {
  font-size: 14px;
}

.document-button small {
  margin-top: 2px;
  color: inherit;
  opacity: 0.68;
  font-size: 10px;
}

.company-section {
  background: var(--paper);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.68fr);
  gap: 90px;
  align-items: start;
}

.company-copy h2 {
  margin: 0;
  font-size: 43px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.company-prose {
  max-width: 680px;
  margin-top: 25px;
  color: var(--muted);
}

.company-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.note-card {
  padding: 15px;
  background: var(--canvas);
  border-left: 3px solid var(--gold);
}

.note-card h4 {
  margin: 0;
  font-size: 14px;
}

.note-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.process-panel {
  padding: 30px;
  color: white;
  background: var(--navy-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-panel > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.process-panel ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.process-panel li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.process-panel li > b {
  color: var(--gold);
  font-size: 12px;
}

.process-panel strong,
.process-panel small {
  display: block;
}

.process-panel small {
  margin-top: 2px;
  color: #93a5b3;
}

.contact-section {
  padding-top: 0;
  background: var(--paper);
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: 54px;
  color: white;
  background: linear-gradient(112deg, #0d2538, var(--navy-950));
  border-radius: 22px;
}

.contact-card::after {
  position: absolute;
  content: "";
  right: -65px;
  top: -65px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(197, 163, 93, 0.33);
  transform: rotate(45deg);
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin: 0;
  font-size: 41px;
  line-height: 1.25;
}

.contact-copy > p:nth-of-type(2) {
  max-width: 610px;
  color: #aab9c5;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  gap: 7px;
  font-size: 12px;
}

.contact-item .k {
  color: #8499a8;
}

.contact-item .v {
  color: white;
  font-weight: 700;
}

.qr-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  color: var(--ink);
  background: white;
  border-radius: 14px;
}

.qr-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.qr-card b,
.qr-card span {
  display: block;
}

.qr-card b {
  font-size: 14px;
}

.qr-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

body > footer {
  color: #8295a3;
  background: var(--navy-950);
  font-size: 11px;
}

body > footer .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.intent-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  color: white;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(216, 45, 53, 0.3);
  cursor: pointer;
  font-weight: 700;
}

.intent-fab b {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: white;
  border-radius: 999px;
  font-size: 11px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 13, 21, 0.58);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  z-index: 100;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(520px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(3, 13, 21, 0.24);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms;
}

#detail-drawer {
  width: min(900px, 100vw);
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: white;
  background: var(--navy-900);
}

.drawer-head span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.drawer-head h2 {
  margin: 3px 0 0;
  font-size: 23px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 25px;
}

.drawer-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.intent-empty {
  padding: 72px 20px;
  text-align: center;
}

.intent-empty strong {
  display: block;
  font-size: 21px;
}

.intent-empty p {
  color: var(--muted);
  font-size: 13px;
}

.intent-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 18px;
}

.intent-summary div {
  padding: 14px;
  background: var(--canvas);
  border-radius: 9px;
}

.intent-summary span,
.intent-summary b {
  display: block;
}

.intent-summary span {
  color: var(--muted);
  font-size: 10px;
}

.intent-summary b {
  margin-top: 2px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.intent-list {
  display: grid;
  gap: 14px;
}

.intent-group {
  display: grid;
  gap: 8px;
}

.intent-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 8px 2px 2px;
  color: var(--ink);
  font-size: 13px;
}

.intent-group h3 b {
  color: var(--muted);
  font-size: 10px;
}

.intent-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.intent-item strong,
.intent-item span {
  display: block;
}

.intent-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.intent-item button {
  align-self: center;
  color: var(--red);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.intent-contact {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  color: white;
  background: var(--navy-900);
  border-radius: 12px;
}

.intent-contact img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.intent-contact strong,
.intent-contact b {
  display: block;
}

.intent-contact p {
  margin: 6px 0;
  color: #aebbc5;
  font-size: 10px;
}

.intent-contact b {
  color: #f0dba9;
  font-size: 11px;
}

.intent-tools {
  position: sticky;
  bottom: -24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px -24px -24px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 254, 250, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.detail-intro {
  color: var(--muted);
  font-size: 13px;
}

.detail-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.detail-stat div {
  padding: 12px;
  background: var(--canvas);
  border-radius: 8px;
}

.detail-table-wrap {
  max-height: min(56vh, 560px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.detail-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.detail-table th,
.detail-table td {
  min-width: 120px;
  max-width: 280px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  position: sticky;
  top: 0;
  background: var(--paper);
}

.toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: 26px;
  min-width: 180px;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  color: white;
  background: var(--navy-900);
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 12px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: #e8e8e3;
  border-radius: 12px;
}

.skeleton::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.62) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-panel {
  grid-column: 1 / -1;
}

.resource-skeleton {
  min-height: 76px;
  border-radius: 0;
  border-top: 1px solid #e7e8e3;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr 390px;
    gap: 40px;
  }

  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .desktop-intent-panel {
    display: none;
  }

  .company-layout {
    gap: 45px;
  }
}

@media (min-width: 1081px) {
  .intent-fab {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 30px, 680px);
  }

  html {
    scroll-padding-top: 66px;
  }

  body {
    min-height: 100dvh;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background: #eef0ed;
  }

  main {
    min-height: calc(100dvh - 64px);
  }

  main > section {
    display: none;
  }

  body:not([data-mobile-view]) #mobile-app-home,
  body[data-mobile-view="home"] #mobile-app-home,
  body[data-mobile-view="overview"] #koc,
  body[data-mobile-view="koc"] #workspace,
  body[data-mobile-view="services"] #services,
  body[data-mobile-view="documents"] #downloads,
  body[data-mobile-view="company"] #company,
  body[data-mobile-view="contact"] #contact {
    display: block;
  }

  .app-header {
    height: 64px;
    position: sticky;
    background: rgba(255, 254, 250, 0.98);
  }

  .logo-link img {
    width: 116px;
  }

  body[data-mobile-view]:not([data-mobile-view="home"]) .logo-link {
    display: none;
  }

  body[data-mobile-view]:not([data-mobile-view="home"]) .mobile-header-back {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    padding: 0 0 3px;
    background: #f0f1ed;
    border: 0;
    border-radius: 10px;
    font-size: 30px;
    line-height: 1;
  }

  body[data-mobile-view]:not([data-mobile-view="home"]) .mobile-header-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-mobile-view]:not([data-mobile-view="home"]) .header-inner {
    gap: 12px;
  }

  .mobile-app-home {
    width: 100%;
    padding-bottom: 24px;
    background: #eef0ed;
  }

  .mobile-home-hero {
    padding: 26px max(20px, calc((100vw - 650px) / 2)) 30px;
    color: white;
    background:
      radial-gradient(circle at 88% 8%, rgba(216, 45, 53, 0.34), transparent 32%),
      linear-gradient(145deg, #071726, #102b40 72%, #17394e);
  }

  .mobile-home-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #cdd7df;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .mobile-home-status b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #98e0bf;
    font-size: 10px;
  }

  .mobile-home-status b::before {
    width: 6px;
    height: 6px;
    content: "";
    background: #51c98c;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(81, 201, 140, 0.12);
  }

  .mobile-home-version {
    margin: 24px 0 8px;
    color: #c5a35d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .mobile-home-hero h1 {
    margin: 0;
    font-size: clamp(35px, 10vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .mobile-home-hero > p:last-of-type {
    max-width: 560px;
    margin: 16px 0 0;
    color: #d5dee5;
    font-size: 14px;
    line-height: 1.7;
  }

  .mobile-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 23px;
  }

  .mobile-home-actions button {
    min-height: 46px;
    padding: 0 12px;
    color: white;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-home-actions button + button {
    color: #edf2f5;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .mobile-home-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
    padding: 19px max(16px, calc((100vw - 658px) / 2));
    background: white;
    border-bottom: 1px solid #dfe3e1;
  }

  .mobile-home-kpis div {
    min-width: 0;
    text-align: center;
  }

  .mobile-home-kpis div + div {
    border-left: 1px solid #e5e7e4;
  }

  .mobile-home-kpis b,
  .mobile-home-kpis span {
    display: block;
  }

  .mobile-home-kpis b {
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(15px, 4.2vw, 21px);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-home-kpis span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-home-section-head {
    width: var(--shell);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 24px auto 10px;
  }

  .mobile-home-section-head span {
    color: var(--red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
  }

  .mobile-home-section-head h2 {
    margin: 1px 0 0;
    font-size: 21px;
    line-height: 1.2;
  }

  .mobile-home-section-head small {
    color: #7c878e;
    font-size: 10px;
  }

  .mobile-menu-table {
    width: var(--shell);
    margin: 0 auto;
    overflow: hidden;
    background: white;
    border: 1px solid #dfe3e1;
    border-radius: 13px;
  }

  .mobile-menu-table button {
    width: 100%;
    min-height: 65px;
    display: grid;
    grid-template-columns: 30px minmax(112px, 0.85fr) minmax(110px, 1.15fr) 12px;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    text-align: left;
    background: white;
    border: 0;
    cursor: pointer;
  }

  .mobile-menu-table button + button {
    border-top: 1px solid #e7e9e6;
  }

  .mobile-menu-table button > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .mobile-menu-table button > strong {
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-menu-table button > small {
    overflow: hidden;
    color: #74808a;
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-table button > b {
    color: #9ca4a9;
    font-size: 19px;
    font-weight: 400;
  }

  .mobile-home-file-status {
    width: var(--shell);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 11px auto 0;
    padding: 0 3px;
    color: #758087;
    font-size: 9px;
  }

  .mobile-home-file-status b {
    color: #51616d;
  }

  .header-actions .button {
    display: none;
  }

  .install-button {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 58px 36px;
  }

  .hero-console {
    display: none;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .kpi {
    padding: 18px 14px 20px 0;
  }

  .kpi + .kpi {
    padding-left: 16px;
  }

  .kpi:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .kpi:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .kpi b {
    font-size: 23px;
  }

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

  .proof-grid > div {
    padding: 17px 14px;
  }

  .proof-grid > div:first-child {
    padding-left: 14px;
  }

  .proof-grid > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-grid > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section {
    min-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
    padding-block: 24px 34px;
  }

  .heading-row {
    align-items: start;
    flex-direction: column;
  }

  .matrix-summary,
  .company-layout,
  .download-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .workspace {
    display: block;
  }

  .filter-panel {
    position: fixed;
    z-index: 112;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: min(78vh, 660px);
    margin: 0;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 60px rgba(3, 13, 21, 0.22);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }

  body.filters-open .filter-panel {
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-filter-backdrop {
    position: fixed;
    z-index: 111;
    inset: 0;
    background: rgba(3, 13, 21, 0.52);
    backdrop-filter: blur(3px);
  }

  .mobile-filter-backdrop:not([hidden]) {
    display: block;
  }

  .mobile-filter-close {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    margin-left: 4px;
    color: var(--ink);
    background: #f0f0ec;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
  }

  .mobile-filter-trigger {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: white;
    background: var(--navy-900);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
  }

  .platform-options {
    max-height: 124px;
  }

  .filter-options button,
  .resource-action-cell button,
  .pagination button,
  .section-tabs button {
    min-height: 44px;
  }

  .resource-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .select-field {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .select-field select {
    max-width: none;
    flex: 1;
  }

  .resource-table,
  .service-table,
  .platform-table {
    overscroll-behavior-inline: contain;
  }

  .table-scroll-hint {
    display: block;
    margin: 8px 0 6px;
    color: #72808a;
    font-size: 10px;
  }

  .resource-list-head > span:first-child,
  .resource-row > div:first-child,
  .service-table-head > span:first-child,
  .service-row > span:first-child,
  .platform-table-head > span:first-child,
  .platform-row > span:first-child {
    position: sticky;
    z-index: 2;
    left: 0;
    background: inherit;
    box-shadow: 8px 0 14px -14px rgba(16, 34, 53, 0.8);
  }

  .download-card {
    gap: 30px;
  }

  .workspace-heading,
  .service-section .section-heading,
  .koc-section .section-heading {
    margin-bottom: 16px;
  }

  .workspace-heading h2,
  .service-section .section-heading h2,
  .koc-section .section-heading h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .workspace-heading p:last-child,
  .service-section .section-heading p:last-child,
  .koc-section .section-heading p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }

  .download-section {
    color: var(--ink);
    background: #eef0ed;
  }

  .download-card {
    align-items: stretch;
    padding: 22px 18px 18px;
    color: var(--ink);
    background: white;
    border: 1px solid #dfe3e1;
    border-radius: 14px;
  }

  .download-card h2 {
    font-size: 26px;
  }

  .download-card p:last-child {
    color: var(--muted);
    font-size: 12px;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .document-button,
  .document-button-light {
    min-height: 74px;
    color: var(--ink);
    background: white;
    border: 1px solid #dde1df;
    border-radius: 10px;
  }

  .document-button:first-child {
    color: white;
    background: var(--red);
    border-color: var(--red);
  }

  .company-layout {
    gap: 22px;
  }

  .company-copy,
  .process-panel {
    border-radius: 14px;
  }

  .contact-card {
    border-radius: 14px;
  }

  .company-copy h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .contact-card {
    padding: 30px;
  }

  .qr-card {
    justify-content: center;
  }

  body > footer .shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 5px 5px env(safe-area-inset-bottom);
    background: rgba(255, 254, 250, 0.96);
    border-top: 1px solid rgba(16, 34, 53, 0.12);
    box-shadow: 0 -10px 32px rgba(7, 23, 38, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    color: #71808b;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
  }

  .mobile-tabbar span {
    height: 25px;
    font-size: 21px;
    line-height: 25px;
  }

  .mobile-tabbar b {
    font-size: 10px;
  }

  .mobile-tabbar [aria-current="page"] {
    color: var(--red);
    background: #fff2f1;
  }

  .mobile-tabbar i {
    position: absolute;
    top: 3px;
    left: calc(50% + 7px);
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: white;
    background: var(--red);
    border: 2px solid var(--paper);
    border-radius: 999px;
    font-size: 8px;
    font-style: normal;
  }

  .intent-fab {
    display: none;
  }

  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 24px);
  }

  body {
    font-size: 15px;
  }

  .header-intent {
    font-size: 12px;
  }

  .hero-brand {
    display: none;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading h2 {
    font-size: 33px;
  }

  .matrix-cells,
  .matrix-cells.fan-cells {
    grid-template-columns: 1fr 1fr;
  }

  .quick-match-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-match-grid button {
    min-height: 74px;
  }

  .quick-match-grid button:last-child {
    grid-column: 1 / -1;
  }

  .linked-matrix-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .linked-matrix-scroll {
    max-height: 390px;
  }

  .matrix-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .filter-panel,
  .resource-pane {
    border-radius: 13px;
  }

  .filter-panel {
    padding: 16px;
  }

  .resource-pane {
    padding: 12px;
  }

  .resource-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .select-field {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .company-values {
    grid-template-columns: 1fr;
  }

  .intent-contact {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .intent-contact img {
    width: 82px;
    height: 82px;
  }

  .process-panel {
    padding: 22px;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .qr-card {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .contact-details {
    display: grid;
  }

}

@media (max-width: 560px) and (max-height: 850px) {
  .hero-layout {
    padding-block: 40px 20px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .promise-list {
    gap: 8px;
    margin-top: 18px;
  }

  .promise-list li {
    padding: 5px 10px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .button-large {
    min-height: 46px;
  }

  .kpi {
    padding-block: 12px 13px;
  }

  .kpi span {
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
