/* =========================================================
   Phase 1 · Petroleum industrial dashboard
   Scoped to the global header and the home page. Existing case
   detail and upload surfaces keep their current layout.
   ========================================================= */

.hdr.top-nav {
  height: 64px;
  border-bottom: 1px solid rgba(167, 195, 214, 0.18);
  background: #102537;
  color: #f3f7fa;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-nav .nav-inner {
  width: min(1600px, calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 222px;
}

.brand-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #eaf5fa;
}

.brand-symbol svg {
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-copy b {
  color: #f4f8fb;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: #a9bfce;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.main-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 3px;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 17px;
  color: #b9cad6;
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.on {
  color: #fff;
  font-weight: 600;
}

.main-nav a.on::after {
  position: absolute;
  right: 17px;
  bottom: 0;
  left: 17px;
  height: 2px;
  background: #4b9bd2;
  content: "";
}

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

.nav-search {
  position: relative;
  width: 260px;
}

.nav-search input,
.mobile-search input {
  width: 100%;
  height: 35px;
  padding: 0 38px 0 12px;
  border: 1px solid #4b6175;
  border-radius: 3px;
  outline: 0;
  color: #f4f8fb;
  background: rgba(7, 20, 33, 0.35);
  font-size: 11.5px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: #8ea6b8;
}

.nav-search input:focus,
.mobile-search input:focus {
  border-color: #77b9e4;
  box-shadow: 0 0 0 2px rgba(93, 167, 219, 0.18);
}

.nav-search button {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 31px;
  height: 31px;
  color: #b8cbd8;
}

.nav-search button:hover {
  color: #fff;
}

.nav-search svg,
.mobile-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.top-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid #2e73ad;
  border-radius: 3px;
  color: #fff;
  background: #2669a4;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.top-add:hover {
  border-color: #3a87c8;
  background: #337bb8;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #476074;
  border-radius: 3px;
  color: #dce8f0;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.nav-drawer {
  position: absolute;
  z-index: 80;
  top: 64px;
  right: 0;
  left: 0;
  padding: 14px 24px 18px;
  border-bottom: 1px solid #395166;
  background: #102537;
  box-shadow: 0 18px 28px rgba(7, 21, 34, 0.18);
}

.nav-drawer nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 580px;
  margin: 0 auto 10px;
}

.nav-drawer nav a {
  padding: 10px 12px;
  border: 1px solid rgba(164, 193, 211, 0.16);
  border-radius: 3px;
  color: #dce8f0;
  font-size: 12px;
  text-align: center;
}

.nav-drawer nav a.on {
  color: #fff;
  background: #245b8d;
}

.mobile-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto 10px;
}

.mobile-search input {
  height: 38px;
}

.mobile-search button {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 32px;
  height: 32px;
  color: #c3d5e2;
}

.nav-drawer .top-add {
  width: min(580px, 100%);
  margin: 0 auto;
  display: flex;
}

/* =========================================================
   Home shell
   ========================================================= */
.home-v2 {
  min-height: 100vh;
  color: var(--text-1);
  background: var(--canvas);
}

.home-v2 + .ftr {
  margin-top: 0;
  border-top-color: #d8e1e9;
  background: #eaf0f5;
}

/* Shared width containment: existing long code tables can scroll inside
   their own surfaces, but must not widen the document on small screens. */
.gstep,
.gstep > *,
.gstep .code,
.gstep .code pre {
  min-width: 0;
  max-width: 100%;
}

.gstep .code pre {
  overflow-x: auto;
}

.industrial-hero {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  color: #f5f8fb;
  background: #0b1e2f;
}

.hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.14) contrast(1.03) brightness(1.22);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 32, 0.94) 0%, rgba(9, 25, 39, 0.80) 36%, rgba(10, 28, 42, 0.18) 68%, rgba(8, 21, 33, 0.03) 100%),
    linear-gradient(0deg, rgba(4, 15, 24, 0.26), transparent 64%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  width: min(1600px, calc(100% - 48px));
  min-height: 286px;
  margin: 0 auto;
  padding: 22px 0 20px;
}

.hero-copy {
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9c4d2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.hero-eyebrow i {
  width: 25px;
  height: 1px;
  background: #d5ab6a;
}

.hero-copy h1 {
  margin: 10px 0 6px;
  color: #f4f7f9;
  font-size: clamp(34px, 3.15vw, 47px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.hero-copy h1 strong {
  color: #f4f7f9;
  font-weight: 650;
}

.hero-copy > p {
  max-width: 65ch;
  color: #b8cbd7;
  font-size: 13px;
  line-height: 1.7;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
}

.hero-facts > div {
  display: grid;
  grid-template-columns: 26px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
}

.hero-facts .fact-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(210, 226, 235, 0.38);
  border-radius: 50%;
  color: #d6e3e9;
  font-size: 14px;
}

.hero-facts b {
  color: #f2f7f9;
  font-size: 11.5px;
  font-weight: 600;
}

.hero-facts small {
  color: #92abb9;
  font-size: 9.5px;
}

.hero-side {
  align-self: end;
  justify-self: end;
  max-width: 190px;
  padding-bottom: 15px;
  color: #dce8ef;
}

.hero-side span,
.hero-side small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #a5bbc8;
}

.hero-side strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
  font-weight: 500;
}

.hero-side i {
  display: block;
  width: 52px;
  height: 1px;
  margin: 10px 0;
  background: #e2ba78;
}

/* =========================================================
   Three-column dashboard
   ========================================================= */
.dashboard-section {
  padding: 22px 0 42px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 302px;
  gap: 18px;
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
  align-items: start;
}

.dashboard-grid > *,
.stage-sidebar,
.catalog-panel,
.insight-rail,
.insight-panel,
.case-grid-v2 {
  min-width: 0;
}

.stage-sidebar,
.catalog-panel,
.insight-panel {
  border: 1px solid var(--border-1);
  border-radius: 4px;
  background: var(--panel);
}

.stage-sidebar {
  position: sticky;
  top: 82px;
  overflow: hidden;
}

.rail-head,
.panel-head-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 53px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-1);
}

.rail-head > div {
  flex: 1;
}

.rail-head b,
.panel-head-v2 h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
}

.rail-head small,
.micro-label {
  display: block;
  margin-top: 2px;
  color: #8192a2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.rail-symbol,
.panel-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-l);
  border-radius: 3px;
}

.stage-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.rail-symbol .stage-ico,
.panel-icon {
  width: 17px;
  height: 17px;
}

.stage-list {
  padding: 7px;
}

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

.stage-filter {
  display: grid;
  grid-template-columns: 23px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text-2);
  text-align: left;
}

.stage-filter + .stage-filter {
  margin-top: 1px;
}

.stage-filter:hover {
  background: #f4f7fa;
}

.stage-filter.active {
  border-color: #c7dceb;
  color: var(--accent-d);
  background: #edf5fb;
}

.stage-num {
  color: #8294a5;
  font-family: var(--mono);
  font-size: 9px;
}

.stage-filter.active .stage-num {
  color: var(--accent);
}

.stage-filter .stage-ico {
  color: #64798a;
}

.stage-filter.active .stage-ico {
  color: var(--accent);
}

.stage-name {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-count {
  min-width: 18px;
  color: #899aa8;
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.rail-progress {
  margin: 6px 11px 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border-1);
}

.rail-progress > div {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 9.5px;
}

.rail-progress b {
  color: var(--accent-d);
  font-family: var(--mono);
  font-size: 10px;
}

.rail-bar {
  display: block;
  height: 3px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 2px;
  background: #dce5ed;
}

.rail-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #347bb5, #65b2c4);
}

.rail-progress small {
  display: block;
  color: #93a1ad;
  font-size: 8.5px;
  line-height: 1.45;
}

/* Catalog */
.catalog-panel {
  overflow: hidden;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  min-height: 76px;
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--border-1);
}

.catalog-head h2 {
  margin: 4px 0 2px;
  color: var(--text-1);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.catalog-head p {
  color: #6b7c8c;
  font-size: 10.5px;
}

.catalog-head p b {
  color: var(--accent-d);
  font-family: var(--mono);
  font-weight: 600;
}

.catalog-actions {
  padding-top: 3px;
}

.catalog-actions .btn {
  min-height: 33px;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.catalog-actions .btn:hover {
  background: var(--accent-d);
}

.method-filter-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-1);
  background: #f8fafc;
  overflow-x: auto;
}

.method-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #5d7082;
  font-size: 10.5px;
  white-space: nowrap;
}

.method-filter:hover {
  color: var(--text-1);
  background: #edf2f7;
}

.method-filter.active {
  border-color: #cbdce8;
  color: var(--accent-d);
  background: #eaf3fa;
  font-weight: 600;
}

.method-filter b {
  font-family: var(--mono);
  font-size: 9px;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px 0;
  color: #8090a0;
  font-size: 9.5px;
}

.catalog-meta b {
  color: var(--text-1);
  font-family: var(--mono);
}

.case-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 10px 17px 19px;
}

.case-card-v2 {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e1e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 42, 58, 0.03);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.case-card-v2:hover {
  border-color: #b5c8d6;
  box-shadow: 0 6px 16px rgba(20, 43, 61, 0.09);
  transform: translateY(-2px);
}

.case-card-v2[hidden] {
  display: none;
}

.case-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.08 / 1;
  background: #0a1c2a;
}

.case-thumb-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.case-thumb-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-corner,
.case-run {
  position: absolute;
  z-index: 2;
  top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.case-corner {
  left: 12px;
  color: rgba(226, 239, 245, 0.65);
}

.case-run {
  right: 12px;
  padding: 2px 6px;
  border: 1px solid rgba(126, 191, 202, 0.36);
  border-radius: 2px;
  color: #c9e8ed;
  background: rgba(9, 28, 41, 0.52);
}

.case-card-body {
  display: flex;
  min-height: 168px;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 11px;
}

.case-card-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5b7387;
  font-size: 9.5px;
}

.case-card-stage .stage-ico {
  width: 14px;
  height: 14px;
}

.case-card-stage i {
  margin-left: auto;
  color: #9aaab7;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.case-card-body h3 {
  margin: 8px 0 5px;
  color: #1a2b3c;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.case-card-body p {
  display: -webkit-box;
  overflow: hidden;
  color: #667a8b;
  font-size: 10.5px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.method-pill,
.difficulty-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #d8e2ea;
  border-radius: 2px;
  color: #607486;
  background: #f7f9fb;
  font-size: 8.5px;
  white-space: nowrap;
}

.method-pill b {
  color: #3e6898;
  font-family: var(--mono);
  font-size: 8px;
}

.method-pill.method-ts b { color: #a26731; }
.method-pill.method-nlp b { color: #765587; }
.method-pill.method-opt b { color: #3f6598; }
.method-pill.method-kg b { color: #73752e; }

.difficulty-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4973e;
}

.difficulty-pill[data-diff="低"] i { background: #4b9270; }
.difficulty-pill[data-diff="高"] i { background: #b45d54; }

.case-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f4;
  color: #91a0ad;
  font-size: 8.5px;
}

.case-card-foot b {
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 600;
}

.case-card-foot b span {
  margin-left: 3px;
  font-family: var(--mono);
}

.case-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: #6f8292;
  text-align: center;
}

.case-empty b,
.case-empty span {
  display: block;
}

.case-empty b {
  margin-bottom: 4px;
  color: #31475b;
  font-size: 14px;
}

/* Right intelligence rail */
.insight-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-panel {
  overflow: hidden;
}

.panel-head-v2 {
  min-height: 52px;
}

.panel-head-v2 > div {
  flex: 1;
}

.panel-head-v2 h2 {
  font-size: 13px;
}

.panel-icon {
  color: #527895;
  background: #f0f5f8;
  font-family: var(--mono);
  font-size: 14px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-1);
}

.kpi-strip > div {
  padding: 11px 13px 10px;
  border-right: 1px solid var(--border-1);
}

.kpi-strip > div:last-child {
  border-right: 0;
}

.kpi-strip b {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.05;
}

.kpi-strip span {
  display: block;
  margin-top: 5px;
  color: #758797;
  font-size: 9px;
}

.coverage-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 13px 0;
  color: #718394;
  font-size: 9.5px;
}

.coverage-line b {
  color: #405a70;
  font-family: var(--mono);
  font-size: 9px;
}

.coverage-track {
  height: 3px;
  margin: 7px 13px 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #dce5ec;
}

.coverage-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.import-note {
  padding: 4px 13px 11px;
  color: #7f8f9d;
  font-size: 8.5px;
}

.import-note i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #c18b48;
}

.geo-stage {
  padding: 12px 12px 0;
}

.geo-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.geo-part {
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 0.16s, filter 0.16s;
}

.geo-part:hover,
.geo-part.active {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(239, 188, 100, 0.5));
}

.geo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 2px 12px 9px;
}

.geo-tabs button {
  min-height: 27px;
  border: 1px solid #d9e3eb;
  border-radius: 2px;
  color: #667b8d;
  font-size: 9px;
  background: #f8fafc;
}

.geo-tabs button:hover,
.geo-tabs button.active {
  border-color: #b9d2e4;
  color: var(--accent-d);
  background: #eaf3fa;
}

.geo-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 13px 11px;
  padding: 8px 10px;
  border-left: 2px solid #d7a95f;
  background: #f8f6f1;
}

.geo-copy b {
  color: #33495c;
  font-size: 10px;
  font-weight: 600;
}

.geo-copy span {
  color: #71818e;
  font-size: 9px;
  line-height: 1.55;
}

.geo-legend {
  display: flex;
  gap: 12px;
  padding: 0 13px 12px;
  color: #8393a0;
  font-size: 8.5px;
}

.geo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.geo-legend i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #d6ac63;
}

.geo-legend span:nth-child(2) i {
  background: #748994;
}

.geo-legend span:nth-child(3) i {
  background: #f0be66;
}

.featured-list {
  padding: 2px 13px 0;
}

.featured-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #e8eef3;
}

.featured-list a:last-child {
  border-bottom: 0;
}

.feature-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 2px;
  color: #7391a6;
  background: #edf3f7;
  font-family: var(--mono);
  font-size: 8px;
}

.feature-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.feature-copy b {
  overflow: hidden;
  color: #33495c;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-copy small {
  color: #8b9aa6;
  font-size: 8.5px;
}

.feature-arrow {
  color: #6f91a9;
  font-family: var(--mono);
  font-size: 12px;
}

.panel-more {
  display: flex;
  justify-content: space-between;
  margin: 2px 13px 11px;
  padding-top: 9px;
  border-top: 1px solid #e4ebf0;
  color: var(--accent);
  font-size: 9px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1320px) {
  .top-nav .nav-inner,
  .hero-content,
  .dashboard-grid {
    width: calc(100% - 36px);
  }

  .top-nav .nav-inner {
    gap: 18px;
  }

  .top-brand {
    min-width: 198px;
  }

  .main-nav a {
    padding-right: 12px;
    padding-left: 12px;
  }

  .main-nav a.on::after {
    right: 12px;
    left: 12px;
  }

  .nav-search {
    width: 210px;
  }

  .dashboard-grid {
    grid-template-columns: 214px minmax(0, 1fr) 276px;
    gap: 14px;
  }

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

@media (max-width: 1060px) {
  .main-nav,
  .nav-search,
  .nav-tools > .top-add {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-tools {
    margin-left: auto;
  }

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

  .hero-side {
    display: none;
  }

  .hero-copy {
    max-width: 820px;
  }

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

  .stage-sidebar,
  .insight-panel {
    position: static;
  }

  .stage-sidebar {
    overflow: visible;
  }

  .stage-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .stage-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 7px 10px 0;
    color: #718697;
    font-size: 9.5px;
  }

  .stage-filter {
    grid-template-columns: 20px 19px auto auto;
    width: auto;
    min-width: max-content;
    gap: 6px;
  }

  .stage-filter + .stage-filter {
    margin-top: 0;
  }

  .rail-progress {
    display: none;
  }

  .insight-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

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

@media (max-width: 780px) {
  .top-nav,
  .top-nav .nav-inner {
    height: 60px;
  }

  .top-nav .nav-inner {
    width: calc(100% - 28px);
  }

  .brand-copy b {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 7.5px;
  }

  .nav-drawer {
    top: 60px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .nav-drawer nav {
    grid-template-columns: 1fr 1fr;
  }

  .industrial-hero {
    min-height: 300px;
  }

  .hero-art img {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 20, 32, 0.95), rgba(9, 25, 39, 0.7));
  }

  .hero-content {
    min-height: 300px;
    width: calc(100% - 32px);
    padding: 25px 0 20px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8vw, 39px);
  }

  .hero-copy > p {
    max-width: 46ch;
    font-size: 12px;
  }

  .hero-facts {
    gap: 12px 18px;
  }

  .hero-facts small {
    display: none;
  }

  .dashboard-section {
    padding-top: 12px;
  }

  .dashboard-grid {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .case-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px 14px;
  }

  .catalog-head {
    padding: 12px 13px 10px;
  }

  .catalog-head h2 {
    font-size: 18px;
  }

  .method-filter-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  .catalog-meta {
    padding-right: 13px;
    padding-left: 13px;
  }

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

  .recommend-panel {
    grid-column: auto;
  }

  .gstep {
    display: block;
  }
}

@media (max-width: 560px) {
  .top-nav .nav-inner {
    width: calc(100% - 24px);
  }

  .brand-symbol {
    width: 29px;
    height: 29px;
  }

  .brand-symbol svg {
    width: 29px;
    height: 29px;
  }

  .brand-copy b {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .industrial-hero {
    min-height: 300px;
  }

  .hero-content {
    min-height: 300px;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-copy > p {
    font-size: 11.5px;
    line-height: 1.65;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-facts .fact-icon {
    width: 23px;
    height: 23px;
  }

  .hero-facts > div {
    grid-template-columns: 23px auto;
  }

  .dashboard-grid {
    width: calc(100% - 20px);
  }

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

  .case-card-visual {
    aspect-ratio: 2.2 / 1;
  }

  .case-card-body {
    min-height: 158px;
  }

  .catalog-head {
    flex-direction: column;
  }

  .catalog-actions,
  .catalog-actions .btn {
    width: 100%;
  }

  .catalog-meta {
    gap: 8px;
  }
}
