:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --ink: #172126;
  --muted: #627178;
  --line: #d9e1e3;
  --brand: #176b75;
  --brand-dark: #0d444b;
  --accent: #c8872b;
  --ok: #198754;
  --bad: #b42318;
  --shadow: 0 20px 50px rgba(16, 32, 40, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 227, .82);
  background: rgba(245, 247, 248, .88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(460px, 100%);
}

.brand-logo {
  display: block;
  width: 58px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; line-height: 1.2; }
.brand small {
  max-width: 560px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #435158;
  font-size: 14px;
}

nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

nav a:hover { background: var(--surface-2); }

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(34px, 6vw, 84px) clamp(20px, 5vw, 72px) 34px;
}

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

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button, button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button.primary, button[type="submit"] {
  color: #fff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button.secondary, button[type="button"] {
  color: var(--ink);
  background: #fff;
}

.link-button {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.button.secondary.glass-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(217, 225, 227, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px) 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.metrics article {
  padding: 24px;
  background: #fff;
}

.metrics span {
  display: block;
  font-size: 32px;
  font-weight: 760;
}

.metrics small {
  color: var(--muted);
}

.workspace {
  padding: 46px clamp(20px, 5vw, 72px);
}

.section-head, .panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.token-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

input, select, textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 0;
  padding: 0;
}

textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(23, 107, 117, .18);
  border-color: var(--brand);
}

.notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d4e5e6;
  border-radius: 8px;
  color: #27565b;
  background: #edf8f8;
}

.notice.error {
  color: var(--bad);
  border-color: #f1c4bd;
  background: #fff2ef;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.license-grid { grid-template-columns: minmax(280px, .65fr) minmax(420px, 1.35fr); }

.panel {
  min-width: 0;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 40, .05);
}

.panel-note {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.sub-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sub-panel h3 {
  font-size: 17px;
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.form-field {
  display: grid;
  gap: 5px;
}

.form-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
}

.license-form {
  grid-template-columns: 1fr;
}

.admin-detail-form {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.span-all {
  grid-column: 1 / -1;
}

.compact-form button {
  grid-column: 1 / -1;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14px;
}

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

th {
  color: #4c5960;
  background: #f8fafb;
  font-weight: 700;
}

tr:last-child td { border-bottom: 0; }

tr.selected-row td {
  background: #f2fbfc;
}

.workbench-tools {
  align-items: end;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.batch-actions span {
  color: var(--muted);
  font-size: 13px;
}

.batch-actions input {
  width: 130px;
  min-height: 36px;
}

.license-workbench-layout {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.license-workbench-layout > * {
  min-width: 0;
}

.compact-table-wrap {
  max-height: 560px;
}

.compact-data-table {
  min-width: 900px;
  font-size: 12.5px;
}

.compact-data-table th,
.compact-data-table td {
  padding: 5px 7px;
  vertical-align: top;
}

.compact-data-table th {
  white-space: nowrap;
}

.compact-data-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
}

.table-total-row td {
  color: #45565d;
  font-weight: 700;
  background: #f8fbfb;
  border-top: 1px solid var(--line);
}

.table-total-row small {
  color: var(--muted);
  font-weight: 600;
}

.detail-pane {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.selected-detail {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfb;
}

.selected-detail b {
  color: var(--ink);
}

.selected-detail span {
  color: var(--muted);
  line-height: 1.55;
}

.danger-button {
  color: #fff;
  background: var(--bad);
}

.danger-button:hover {
  background: #9f2f22;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ok);
  background: #eaf7ef;
  font-weight: 700;
  font-size: 12px;
}

.status.pending {
  color: #9a6a08;
  background: #fff5d9;
}

.status.off {
  color: var(--bad);
  background: #fff2ef;
}

.status.warn {
  color: #8a5a00;
  background: #fff3d6;
}

.status.locked {
  color: #475467;
  background: #eef2f4;
}

.audit-diff {
  display: grid;
  gap: 4px;
  min-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.audit-diff code {
  color: #34444b;
  overflow-wrap: anywhere;
  white-space: normal;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 36px clamp(20px, 5vw, 72px) 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172126;
  color: #fff;
}

.contact-band p:last-child {
  max-width: 680px;
  margin: 0;
  color: #d7e1e3;
  line-height: 1.75;
}

.contact-band.muted-band {
  color: #fff;
  background: #172126;
}

.download-page {
  background: #f8fafb;
}

.download-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 7vw, 88px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(245, 247, 248, .98) 0%, rgba(245, 247, 248, .90) 54%, rgba(245, 247, 248, .72) 100%),
    url("/assets/benefit-ship-scan-720.jpg") center / cover no-repeat;
}

.download-copy {
  max-width: 760px;
}

.download-actions,
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.download-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card img {
  width: min(296px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-download-link {
  display: inline-flex;
  max-width: 100%;
}

.download-card strong {
  font-size: 18px;
}

.download-card span,
.download-card .plain-link {
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.download-info-band {
  border-top: 1px solid var(--line);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.release-grid article {
  padding: 20px;
  background: #fff;
}

.release-grid span,
.release-grid strong {
  display: block;
}

.release-grid span {
  margin-bottom: 8px;
  color: var(--muted);
}

.release-grid strong {
  color: var(--ink);
  font-size: 21px;
}

.release-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.release-detail-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.release-detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.release-detail-grid code {
  display: block;
  overflow-wrap: anywhere;
  color: #34444b;
  line-height: 1.6;
}

.contact-hero {
  min-height: auto;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 460px);
  padding-top: clamp(46px, 7vw, 92px);
  padding-bottom: clamp(46px, 7vw, 84px);
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.contact-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin: 0;
  font-weight: 800;
}

.admin-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-help-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

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

.admin-help-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-flow-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-flow-grid span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-flow-grid b {
  color: var(--ink);
}

.admin-flow-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.application-detail {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #c8e4e8;
  border-radius: 8px;
  background: #f3fbfc;
}

.application-detail b,
.application-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.application-detail b {
  color: var(--ink);
}

.application-detail span {
  color: var(--muted);
  line-height: 1.55;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0;
}

.table-tools.workbench-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 180px));
  align-items: end;
}

.table-tools.workbench-tools .batch-actions {
  grid-column: 1 / -1;
}

.application-tools {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #435158;
  background: #fff;
}

.filter-chip.active {
  color: #fff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.filter-chip span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(23, 107, 117, .10);
  font-size: 12px;
}

.filter-chip.active span {
  color: var(--brand-dark);
  background: #fff;
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 8px;
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  color: var(--muted);
  font-size: 14px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #405057;
  font-size: 14px;
  white-space: nowrap;
}

.check-line input {
  width: auto;
  min-height: 0;
}

.filter-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: #42545b;
}

.admin-footer {
  border-top: 1px solid var(--line);
}

.public-topbar nav a {
  color: #334248;
}

.public-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero {
  min-height: clamp(560px, 64vh, 700px);
}

.page-hero h1 {
  max-width: 720px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
}

.page-hero h1 span {
  display: block;
}

.feature-band h2,
.split-section h2,
.mobile-panel h2,
.contact-band h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.18;
}

.solution-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, .66) 0%, rgba(7, 23, 29, .44) 45%, rgba(7, 23, 29, .16) 100%),
    linear-gradient(180deg, rgba(7, 23, 29, .05) 0%, rgba(7, 23, 29, .38) 100%),
    url("/assets/solution-office-hero.png") 54% 28% / cover no-repeat;
}

.solution-hero .eyebrow {
  color: #7be7ef;
}

.solution-hero .lead {
  color: #dcebee;
}

.solution-hero .hero-copy {
  max-width: 640px;
  margin-left: clamp(24px, 3.5vw, 76px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .36);
}

.solution-hero .config-console {
  justify-self: end;
  margin-right: 0;
}

.benefit-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, .78) 0%, rgba(7, 23, 29, .56) 42%, rgba(7, 23, 29, .22) 100%),
    linear-gradient(180deg, rgba(7, 23, 29, .04) 0%, rgba(7, 23, 29, .46) 100%),
    url("/assets/benefit-ship-scan-hero-1440.jpg") center 24% / cover no-repeat;
}

.benefit-hero .eyebrow {
  color: #7be7ef;
}

.benefit-hero .lead {
  color: #dcebee;
}

.benefit-hero .hero-copy {
  max-width: 720px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .38);
}

.capability-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, .82) 0%, rgba(7, 23, 29, .58) 38%, rgba(7, 23, 29, .18) 100%),
    linear-gradient(180deg, rgba(7, 23, 29, .03) 0%, rgba(7, 23, 29, .42) 100%),
    url("/assets/platform-capability-hero.png") center 50% / cover no-repeat;
}

.capability-hero .eyebrow {
  color: #7be7ef;
}

.capability-hero .lead {
  color: #dcebee;
}

.capability-hero .hero-copy {
  max-width: 760px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .38);
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  height: clamp(520px, calc(100svh - 70px), 760px);
  overflow: hidden;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, .90) 0%, rgba(7, 23, 29, .68) 43%, rgba(7, 23, 29, .22) 100%),
    url("/assets/home-hero-tech.png") center 64% / cover no-repeat;
}

.home-hero-content {
  max-width: 740px;
}

.home-hero .eyebrow {
  color: #7be7ef;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6.8vw, 82px);
}

.home-hero h1 span {
  display: block;
}

.home-hero .lead {
  max-width: 640px;
  color: #dcebee;
}

.home-hero .button.primary {
  border-color: #1a9aa5;
  background: #167b86;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  transform: translateY(-28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 18px 42px rgba(16, 32, 40, .10);
}

.home-proof article {
  padding: 24px;
  background: #fff;
}

.home-proof span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.home-proof strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.home-proof p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-message {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  padding: 36px clamp(20px, 5vw, 72px) 62px;
}

.home-message p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.home-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 72px) 32px;
}

.home-scenarios article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-scenarios p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-band {
  padding: 54px clamp(20px, 5vw, 72px);
  background: #fff;
}

.section-note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-grid article,
.scenario-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-grid span {
  color: var(--accent);
  font-weight: 800;
}

.feature-grid p,
.scenario-grid p,
.architecture p {
  color: var(--muted);
  line-height: 1.75;
}

.section-actions {
  margin-top: 20px;
}

.muted-band {
  background: #f8fafb;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(360px, 1.2fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: 60px clamp(20px, 5vw, 72px);
}

.flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow div {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 40, .04);
  font-weight: 750;
}

.app-board {
  width: min(420px, 100%);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-board {
  align-self: center;
}

.app-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: #14383f;
}

.app-board-head strong,
.app-board-head span {
  display: block;
}

.app-board-head strong {
  font-size: 24px;
}

.app-board-head span {
  margin-top: 4px;
  color: #c7d9dc;
  font-size: 13px;
}

.app-board-head button {
  color: #14383f;
  background: #edf7f8;
}

.app-section {
  margin: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-section-title {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 18px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.action-row span,
.action-tile {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px;
  border-radius: 8px;
  color: #164c52;
  background: #e6f3ec;
  font-weight: 760;
  text-align: center;
}

.action-tile.primary {
  color: #fff;
  background: #18a66a;
}

.action-tile.info {
  background: #e3f2f5;
}

.action-tile.warn {
  color: #6f4a0f;
  background: #fff1d1;
}

.action-tile.danger {
  color: #b42318;
  background: #fae4e0;
}

.action-tile.neutral {
  background: #e8eff1;
}

.action-tile.wide {
  grid-column: 1 / -1;
}

.compact-actions .action-tile {
  min-height: 42px;
  font-size: 14px;
}

.mobile-panel.mobile-hero {
  grid-template-columns: minmax(280px, 360px) minmax(360px, 620px);
  justify-content: center;
  min-height: clamp(560px, 72vh, 740px);
  padding-top: clamp(34px, 4vw, 58px);
  padding-bottom: clamp(34px, 4vw, 58px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, .56) 0%, rgba(7, 31, 37, .48) 42%, rgba(8, 38, 45, .34) 100%),
    linear-gradient(180deg, rgba(18, 83, 92, .04) 0%, rgba(7, 23, 29, .36) 100%),
    url("/assets/mobile-factory-hero.png") center / cover no-repeat;
}

.mobile-hero .eyebrow {
  color: #7be7ef;
}

.mobile-hero .lead,
.mobile-hero p {
  color: #dcebee;
}

.mobile-copy {
  max-width: 720px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.mobile-workbench {
  width: min(350px, 100%);
  border: 8px solid #102026;
  border-radius: 28px;
  background: #edf3f4;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .30);
}

.mobile-workbench .app-board-head {
  padding: 18px 18px 16px;
  background: #123b42;
}

.mobile-workbench .app-board-head button {
  min-height: 36px;
  padding: 7px 12px;
}

.mobile-workbench .app-section {
  margin: 10px;
  padding: 11px;
}

.mobile-workbench .app-section-title {
  font-size: 17px;
}

.workbench-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.workbench-status span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  padding: 9px 8px;
  border: 1px solid #d9e6e8;
  border-radius: 8px;
  color: #14383f;
  background: #f5fafb;
  text-align: center;
}

.workbench-status b,
.workbench-status small {
  display: block;
}

.workbench-status small {
  color: var(--muted);
  font-size: 12px;
}

.process-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.process-card > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.config-console {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  justify-self: center;
  color: var(--ink);
  padding: 18px;
  border: 1px solid rgba(217, 225, 227, .85);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.config-console-head {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: #14383f;
}

.config-console-head strong {
  font-size: 22px;
}

.config-console-head span {
  color: #c7d9dc;
  font-size: 14px;
}

.config-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.config-row span {
  color: var(--brand);
  font-weight: 800;
}

.config-row b {
  color: var(--ink);
  font-weight: 680;
}

.process-lane {
  display: grid;
  gap: 10px;
}

.process-lane span {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 720;
}

.process-lane span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: var(--line);
}

.compact-lane span {
  min-height: 44px;
}

.solution-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: stretch;
}

.solution-showcase .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-showcase .feature-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.mini-product-shot {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 32, 40, .08);
  overflow: hidden;
}

.mini-product-shot figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mini-product-shot img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  background: #f8fafb;
}

.shot-zoom {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafb;
  cursor: zoom-in;
}

.shot-zoom:focus-visible {
  outline: 3px solid rgba(23, 107, 117, .35);
  outline-offset: -3px;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  color: #fff;
  background: rgba(13, 68, 75, .86);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 32, 40, .18);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px clamp(14px, 4vw, 42px) 36px;
  background: rgba(8, 20, 25, .82);
  backdrop-filter: blur(10px);
}

.image-lightbox img {
  display: block;
  width: auto;
  max-width: min(94vw, 1388px);
  max-height: 84vh;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.shot-title {
  padding: 14px 16px;
  color: #fff;
  background: #14383f;
  font-weight: 800;
}

.flow-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(#e5eef1 1px, transparent 1px),
    linear-gradient(90deg, #e5eef1 1px, transparent 1px);
  background-size: 22px 22px;
}

.flow-map span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #cad8dc;
  border-radius: 8px;
  color: #123e45;
  background: rgba(255, 255, 255, .94);
  font-weight: 760;
  text-align: center;
}

.flow-map span:nth-child(2n + 1)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: #2a8994;
}

.flow-map span:not(:nth-last-child(-n + 2))::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 2px;
  height: 13px;
  background: #2a8994;
}

.report-shot {
  margin-top: 22px;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid #c9d8df;
  background: #d9ecfb;
}

.report-toolbar span {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #b5c8d3;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 720;
}

.report-canvas {
  display: grid;
  gap: 10px;
  margin: 16px;
  padding: 22px;
  border: 1px solid #cbd6dc;
  background:
    linear-gradient(#eef3f5 1px, transparent 1px),
    linear-gradient(90deg, #eef3f5 1px, transparent 1px),
    #fff;
  background-size: 18px 18px;
}

.report-header {
  justify-self: center;
  min-width: 180px;
  padding: 8px 18px;
  border: 1px solid #c7d2d8;
  text-align: center;
  font-weight: 800;
}

.report-line {
  width: 62%;
  height: 18px;
  border: 1px solid #ccd7dc;
  background: rgba(255, 255, 255, .85);
}

.report-line.wide {
  width: 100%;
}

.report-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #111;
  border-left: 1px solid #111;
}

.report-table i {
  display: block;
  height: 28px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  background: rgba(255, 255, 255, .7);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(20px, 5vw, 72px) 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.proof-strip article {
  padding: 20px;
  background: #fff;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.benefit-proof {
  margin-top: -24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 42px rgba(16, 32, 40, .10);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journey-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 32, 40, .07);
}

.journey-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.journey-card div {
  padding: 18px;
}

.journey-card span {
  color: var(--accent);
  font-weight: 800;
}

.journey-card h3 {
  margin-top: 8px;
}

.journey-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.customer-portal {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, .95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.customer-portal figure {
  margin: 0;
}

.customer-portal img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.customer-portal p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.portal-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.portal-points article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.portal-points strong,
.portal-points span {
  display: block;
}

.portal-points span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.65;
}

.capability-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.capability-lanes article {
  min-width: 0;
  padding: 24px;
  background: #fff;
}

.capability-lanes span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 800;
}

.capability-lanes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.split-section,
.mobile-panel {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 60px clamp(20px, 5vw, 72px);
}

.split-section p,
.mobile-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.pain-list {
  display: grid;
  gap: 12px;
}

.pain-list article {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pain-list span {
  color: var(--muted);
}

.mobile-panel {
  background: #fff;
}

.phone-frame {
  width: min(360px, 100%);
  justify-self: center;
  padding: 18px;
  border: 1px solid #cfdadd;
  border-radius: 28px;
  background: #142227;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 90px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #5f747b;
}

.phone-card {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 12px;
  color: #d9e8ea;
  background: #20343a;
}

.phone-card.active {
  color: #fff;
  background: #176b75;
}

.phone-card span {
  color: #b9c9cc;
  font-size: 13px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mini-metrics article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.mini-metrics strong,
.mini-metrics span {
  display: block;
}

.mini-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-body {
  background: #eef3f4;
  overflow-x: hidden;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.admin-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #445259;
}

.admin-nav a:hover {
  background: var(--surface-2);
}

.admin-nav a.active {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 800;
}

.login-view {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-width: 0;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
  overflow-x: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1,
.admin-head h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.12;
}

.login-note {
  display: block;
  max-inline-size: 100%;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.admin-main {
  padding: 22px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-page-grid.single-page {
  grid-template-columns: 1fr;
}

.compact-metrics {
  margin: 0 0 18px;
}

.admin-main > .notice {
  margin: 0 0 8px;
  padding: 8px 10px;
}

.compact-panel-head {
  margin-bottom: 4px;
}

.compact-panel-head .panel-note {
  margin: 4px 0 0;
}

.table-tools.workbench-tools.customer-toolbar {
  grid-template-columns: minmax(340px, 1fr) minmax(118px, 138px) minmax(118px, 138px) minmax(118px, 138px) minmax(158px, 178px) 72px;
  gap: 8px 10px;
  margin: 6px 0;
}

.table-tools.workbench-tools.customer-toolbar .search-field {
  min-width: 0;
}

.table-tools.workbench-tools.customer-toolbar button {
  width: 72px;
  min-height: 34px;
  padding: 6px 8px;
}

.customer-batch-actions {
  grid-column: 1 / -1;
}

.table-tools.workbench-tools.customer-toolbar .customer-batch-actions button {
  width: auto;
  min-width: 96px;
  white-space: nowrap;
}

.table-tools.workbench-tools.customer-toolbar .customer-batch-actions input {
  width: 180px;
}

.customer-ops-layout {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 470px);
  gap: 12px;
}

.customer-ops-layout .compact-data-table {
  min-width: 1120px;
}

.customer-ops-layout .compact-data-table th:last-child,
.customer-ops-layout .compact-data-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -1px 0 0 var(--line);
}

.customer-ops-layout .compact-data-table th:last-child {
  z-index: 2;
  background: #f8fbfb;
}

.customer-ops-layout .compact-data-table tr.selected-row td:last-child {
  background: #f2fbfc;
}

.customer-ops-layout .compact-data-table .table-total-row td:last-child {
  background: #f8fbfb;
}

#customers.panel {
  padding: 13px 14px;
}

#customerFactorySummary {
  margin-bottom: 6px;
}

.detail-pane {
  gap: 8px;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.editor-tabs button {
  min-height: 34px;
  padding: 7px 8px;
}

.editor-tabs button.active {
  color: #fff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.detail-pane .selected-detail {
  gap: 4px;
  padding: 6px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.ops-section {
  display: grid;
  gap: 6px;
  padding-top: 4px;
  border-top: 0;
}

.ops-section h4 {
  margin: 4px 0 0;
  color: #314047;
  font-size: 13px;
}

.detail-pane .compact-form {
  grid-template-columns: 1fr;
  gap: 7px 8px;
  margin: 0;
}

.unified-editor .compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-pane .form-field {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.unified-editor .form-field {
  grid-template-columns: 76px minmax(0, 1fr);
}

.detail-pane .form-field span {
  color: #53646b;
  font-size: 12px;
  white-space: nowrap;
}

.detail-pane input,
.detail-pane select,
.detail-pane textarea {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.detail-pane textarea {
  min-height: 58px;
}

.detail-pane button {
  min-height: 36px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-pane .primary-wide {
  width: 100%;
  margin: 0 0 6px;
  color: #fff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.unified-editor #licenseForm > .form-field:nth-of-type(1),
.unified-editor #licenseForm > .form-field:nth-of-type(2),
.unified-editor #applicationDecisionForm > .form-field:first-child,
.unified-editor #factoryAdminResetForm > .form-field:nth-of-type(1),
.unified-editor #factoryAdminResetForm > .form-field:nth-of-type(2) {
  display: none;
}

.detail-pane .notice {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.side-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.side-actions span,
.side-actions input {
  grid-column: 1 / -1;
}

.side-actions input {
  width: 100%;
  min-height: 34px;
}

.row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(34px, 1fr));
  gap: 4px;
  min-width: 76px;
}

.row-actions button {
  min-height: 24px;
  padding: 3px 4px;
  font-size: 12px;
  line-height: 1.2;
}

#factoryApiKeyOutput code {
  display: block;
  margin-top: 4px;
  padding: 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: #fff;
}

.mini-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.lease-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.lease-row:last-child {
  border-bottom: 0;
}

.lease-row b,
.lease-row small {
  display: block;
  overflow-wrap: anywhere;
}

.detail-pane .sub-panel {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.detail-pane .sub-panel .panel-head {
  align-items: center;
  margin-bottom: 6px;
}

.detail-pane .sub-panel .panel-head h3 {
  font-size: 13px;
}

.detail-pane .sub-panel .table-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 128px);
  gap: 6px;
  margin: 0 0 6px;
}

.detail-pane .sub-panel .search-field {
  min-width: 0;
}

.detail-pane .sub-panel .table-wrap {
  max-height: 220px;
}

.detail-pane .sub-panel .compact-data-table {
  min-width: 760px;
  font-size: 11.5px;
}

.audit-tools {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) repeat(3, minmax(130px, 170px)) auto minmax(230px, auto);
  align-items: end;
  gap: 8px 10px;
}

.audit-actions {
  justify-content: flex-end;
}

.audit-table {
  min-width: 980px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero, .grid.two, .license-grid, .architecture, .feature-grid, .scenario-grid, .proof-strip, .split-section, .mobile-panel, .home-proof, .home-message, .home-scenarios, .solution-showcase, .solution-showcase .feature-grid, .journey-grid, .customer-portal, .portal-points, .capability-lanes, .admin-flow-grid, .download-shell, .release-grid, .release-detail-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .home-hero {
    height: auto;
    min-height: clamp(520px, 72svh, 700px);
    background-position: center 68%;
  }
  .home-proof {
    transform: none;
    margin-top: 20px;
  }
  .mobile-panel.mobile-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .mobile-hero .mobile-copy {
    order: -1;
  }
  .mobile-workbench {
    justify-self: center;
    width: min(320px, 100%);
    max-height: none;
  }
  .mobile-workbench .app-section {
    margin: 8px;
    padding: 8px;
  }
  .mobile-workbench .app-section-title {
    margin-bottom: 7px;
    font-size: 16px;
  }
  .mobile-workbench .app-board-head {
    padding: 15px;
  }
  .action-row span,
  .action-tile {
    min-height: 42px;
    padding: 8px;
  }
  .compact-actions .action-tile {
    min-height: 36px;
  }
  .workbench-status span {
    min-height: 50px;
    padding: 7px 6px;
  }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static;
    height: auto;
  }
  .admin-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: auto;
  }
  .license-workbench-layout,
  .customer-ops-layout {
    grid-template-columns: 1fr;
  }
  .detail-pane {
    position: static;
  }
  .table-tools.workbench-tools.customer-toolbar,
  .audit-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar, .section-head, .panel-head, .contact-band, .token-form, .admin-head, .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  nav { width: 100%; }
  .compact-form, .metrics { grid-template-columns: 1fr; }
  .search-field { grid-template-columns: 1fr; }
  .filter-group, .filter-chip, .check-line { width: 100%; }
  h1 { font-size: 40px; }
  .workspace { padding-top: 30px; }
  .admin-main { padding: 18px; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .table-tools.workbench-tools.customer-toolbar,
  .audit-tools {
    grid-template-columns: 1fr;
  }
  .detail-pane .form-field {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .unified-editor .compact-form {
    grid-template-columns: 1fr;
  }
  .login-view {
    min-height: auto;
    padding: 18px;
    place-items: start;
  }
  .login-card {
    width: min(100%, 357px);
    max-width: 357px;
    padding: 24px 20px;
  }
  .login-card h1 {
    font-size: 30px;
    line-height: 1.18;
  }
  .flow { grid-template-columns: 1fr; }
  .mini-metrics { grid-template-columns: 1fr; }
}
