/* Shared industrial theme. Existing layout contracts remain in styles.css. */
:root {
  color-scheme: light;
  --bg-0: #f6f7f7;
  --bg-1: #ffffff;
  --bg-2: #edf0ef;
  --surface: #ffffff;
  --surface-2: #eef2f1;
  --surface-3: #e4ebe8;
  --surface-solid: #ffffff;
  --border: #dce2df;
  --border-strong: #b8c6c0;
  --hairline: #e5e9e7;
  --text: #202724;
  --muted: #5d6863;
  --muted-2: #707b75;
  --cyan: #007a70;
  --teal: #007a70;
  --teal-deep: #005d55;
  --blue: #2865a6;
  --blue-soft: #2865a6;
  --violet: #605880;
  --amber: #936016;
  --green: #20704b;
  --red: #b93d40;
  --grad-primary: #007a70;
  --grad-text: #202724;
  --grad-amber: #936016;
  --grad-danger: #b93d40;
  --glow-cyan: none;
  --glow-soft: none;
  --shadow-card: none;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --maxw: 1280px;
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { letter-spacing: 0; }
h1, h2, h3 { text-wrap: balance; }
body { background: var(--bg-0); font-size: 14px; }
::selection { background: #cce9df; color: #123e32; }
::-webkit-scrollbar-thumb { background: #b3bdb8; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #899b92; }
.bg-field { display: none; }
.site-header {
  min-height: 76px;
  padding: 14px max(28px, calc((100% - 1360px) / 2));
  gap: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.site-header::after, .eyebrow::before, .button-primary::after,
.home-hero::before, .product-hero::before, .activity-hero::before,
.metric-card::before, .hero-visual::after { display: none; }
.brand-lockup { gap: 10px; }
.brand-mark, .site-header .brand-mark {
  width: 34px; height: 34px; border-radius: 4px;
  background: #007a70; color: #ffffff; box-shadow: none;
}
.brand-copy strong { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); }
.brand-copy span { font-size: 10px; color: var(--muted); }
.primary-nav { gap: 8px; }
.primary-nav a { min-height: 42px; padding: 0 10px; border-radius: 0; font-size: 13px; }
.primary-nav a.is-active, .primary-nav a:hover { color: var(--teal); background: transparent; }
.primary-nav a.is-active::after { bottom: -17px; left: 10px; right: 10px; height: 2px; box-shadow: none; }
.header-actions { gap: 16px; }
.button, .icon-button { border-radius: 4px; box-shadow: none; transition: background .18s, border-color .18s, color .18s; }
.button { min-height: 44px; padding: 11px 22px; gap: 18px; font-size: 13px; font-weight: 600; }
.button:hover { transform: none; }
.button-primary { background: var(--teal); color: #ffffff; border: 1px solid var(--teal); }
.button-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.button-secondary { background: transparent; color: var(--text); border: 1px solid #a8b4ae; }
.button-secondary:hover { background: #e9eeeb; border-color: #63756b; }
.icon-button { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.site-header .button { min-height: 36px; padding: 7px 20px; }
.site-header .icon-button { width: 32px; height: 32px; }
.portal-main, .engine-main { width: min(1280px, calc(100% - 80px)); padding-top: 46px; padding-bottom: 50px; }
.page-heading { margin-bottom: 40px; gap: 26px; }
.page-heading h1 { font-size: 38px; font-weight: 650; }
.page-heading p { max-width: 720px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 650; margin: 0 0 16px; }
.section-title h2 { font-size: 28px; line-height: 1.45; font-weight: 650; }
.section-title p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }
.section-title { align-items: end; margin-bottom: 30px; }
.section-title > .text-link { flex: none; margin-bottom: 5px; font-size: 13px; }
.text-link { color: var(--teal); font-size: 13px; }
.text-link:hover { color: var(--teal-deep); }
.text-link::after { display: none; }

.section-block, .portal-panel, .list-panel, .form-panel, .empty-state {
  background: transparent; border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.section-block { padding: 40px 0 0; margin-top: 40px; border-top: 1px solid var(--border); }
.portal-panel, .list-panel, .form-panel { padding: 24px 0; }
.empty-state { padding: 60px 0; border-top: 1px solid var(--border); }
.portal-card, .table-shell, .capability-card, .scenario-card, .capability-module,
.community-post, .community-composer, .community-login-prompt {
  background: #ffffff; border: 1px solid var(--border); box-shadow: none; border-radius: 6px; backdrop-filter: none;
}
.portal-card:hover, .workspace-card:hover, .capability-card:hover { background: #ffffff; box-shadow: none; transform: none; border-color: #91ada0; }
.portal-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { padding: 30px; gap: 22px; align-content: start; }
.product-family { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.product-card-intro { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
.product-icon { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 6px; padding: 0; }
.product-card-intro h2 { margin-top: 12px; font-size: 22px; overflow-wrap: anywhere; }
.product-card > p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0; }
.product-card .chip-row .chip:last-child { display: none; }
.chip { border-radius: 3px; background: #eef1ef; color: #55645c; min-height: 24px; padding: 2px 8px; font-size: 10px; }
.chip.teal { color: #006b61; background: #e2f1ec; }
.chip.amber { color: #895616; background: #f7eddb; }
.chip.slate { color: #435b73; background: #e8eef3; }
.compact-metrics { gap: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-metrics span { padding: 18px 8px 18px 0; background: transparent; border-radius: 0; font-size: 10px; }
.compact-metrics strong { font-size: 21px; font-weight: 600; }
.card-footer { justify-content: space-between; margin-top: auto; }
.product-availability { color: var(--muted); font-size: 12px; }
.product-availability::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: var(--teal); border-radius: 50%; }
.card-footer .text-link { display: inline-flex; align-items: center; gap: 30px; }
.metric-grid { gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric-card { background: transparent; padding: 25px; border-radius: 0; box-shadow: none; border-right: 1px solid var(--border); }
.metric-card:last-child { border-right: 0; }
.metric-card:hover { transform: none; background: transparent; box-shadow: none; }
.metric-card .metric-value.grad { background: none; color: var(--text); }
.home-hero, .product-hero, .activity-hero {
  background: transparent; box-shadow: none; border-radius: 0; border: 0;
  padding: 20px 0 48px; gap: 48px;
}
.home-hero h1, .product-hero h1, .activity-hero h1 { background: none; color: var(--text); -webkit-text-fill-color: var(--text); font-size: 46px; line-height: 1.2; }
.capability-overview { background: #e8eeeb; border: 0; box-shadow: none; border-radius: 4px; }
.capability-overview > strong { color: var(--teal); background: none; font-size: 76px; }
.capability-overview .capability-kicker, .capability-number, .scenario-index, .module-order { color: var(--teal); }
.capability-evidence, .module-badges span:first-child, .scenario-result strong, .tool-detail-item code { color: var(--teal); }
.capability-search-shell { background: #ffffff; border: 1px solid var(--border); box-shadow: none; border-radius: 4px; top: 90px; }
.capability-search-shell input, .field input, .field select, .field textarea { background: #ffffff; border: 1px solid #cbd5cf; border-radius: 4px; color: var(--text); box-shadow: none; }
.capability-search-shell input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #007a7014; }
.scenario-result, .module-deliverable, .module-detail, .tool-detail-item { background: #f3f6f4; }
.product-cta { background: #e7efeb; border: 0; border-radius: 0; box-shadow: none; }
.plugin-row { border-radius: 4px; }
.workspace-list a { border-radius: 0; border-bottom: 1px solid var(--border); background: transparent; }
.activity-price-grid > div, .activity-result { background: #f0f3f1; border: 1px solid var(--border); border-radius: 4px; }
.activity-price-grid .is-current { background: #e0eee7; }
.activity-price-grid .is-current strong { color: var(--teal); }
.activity-steps > div { background: transparent; border-top: 1px solid var(--border); border-radius: 0; }
.activity-steps span { color: var(--teal); }
.badge { border-radius: 3px; }
.badge.is-ok { color: #246346; background: #e5f0e9; }
.badge.is-warn { color: #885b13; background: #f6efdf; }
.badge.is-muted { color: #64706a; background: #edf1ee; }
.badge.is-ok::before { box-shadow: none; animation: none; }
.data-table th { background: #eef2ef; color: var(--muted); }
.data-table tbody td { background: #ffffff; border-bottom: 1px solid var(--hairline); }
.community-comments { background: #f5f7f6; }
.community-avatar { background: #e3ece7; color: #346b51; }
.community-avatar.is-official { background: #007a70; color: #ffffff; }
.community-post-tags span.is-official { color: #245e92; background: #e5edf5; }
.community-comment-bubble { background: #ffffff; border-radius: 4px; }
.community-no-comments { background: #edf1ee; }
.community-composer[open] .composer-open-label { background: #edf1ee; }
.comment-item, .ticket-reply, .list-item, .post-item { background: #f0f4f1; border-radius: 4px; }
.legal-document { background: transparent; box-shadow: none; }
code { background: #e9f2ed; box-shadow: none; color: #286044; border-radius: 3px; }
.modal-overlay { background: rgba(24, 34, 29, .4); backdrop-filter: blur(6px); }
.modal-dialog { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 24px 80px #15291e33; border-radius: 8px; }
.modal-dialog .form-panel { padding: 0; }
.campaign-kicker { color: var(--teal); font-size: 11px; margin-bottom: 16px; }
.campaign-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); margin-block: 24px; padding-block: 20px; gap: 12px; }
.campaign-price-grid > div { display: grid; gap: 6px; }
.campaign-price-grid span { color: var(--muted); font-size: 11px; }
.campaign-price-grid strong { font-size: 20px; font-weight: 600; }
.campaign-current-price strong { color: var(--teal); }
.campaign-note { margin-bottom: 24px; }
.campaign-note strong { font-size: 13px; }
.campaign-note p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.modal-head h2 { color: var(--text); }
.modal-close:hover { background: #edf1ee; }
.auth-feedback, .notice-bar.is-success { background: #e5f2e9; color: #226047; border-color: #b9d7c5; }
.auth-feedback.is-error, .notice-bar.is-error { background: #fff0f0; color: #9b3038; border-color: #edc2c4; }
.notice-bar { border-radius: 4px; box-shadow: none; }
.site-footer { width: min(1280px, calc(100% - 80px)); margin-top: 0; border-top: 1px solid var(--border); color: var(--muted); padding: 30px 0; font-size: 11px; gap: 20px; }
.site-footer span:first-child { color: var(--text); }
.reveal { opacity: 1; transform: none; transition: none; will-change: auto; }

/* Full-width homepage bands, with a common alignment grid. */
.portal-main.industrial-home { width: 100%; padding: 0; }
.announcement { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 20px; background: #edf3f0; color: #4b6256; font-size: 11px; }
.announcement a { color: var(--teal); font-weight: 650; }
.industrial-hero { position: relative; isolation: isolate; height: min(560px, calc(100svh - 270px)); min-height: 520px; overflow: hidden; background: #d2d6d9; }
.industrial-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; z-index: -1; }
.industrial-hero-inner { width: calc(100% - 160px); height: 100%; margin: auto; display: flex; align-items: center; position: relative; }
.industrial-hero .hero-copy { width: 50%; max-width: 560px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 36px 0 60px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #37564a; font-size: 11px; font-weight: 650; margin: 0 0 22px; }
.hero-kicker > span { width: 5px; height: 5px; background: var(--teal); }
.industrial-hero h1 { color: #172b23; font-size: 66px; font-weight: 650; line-height: 1.05; margin: 0 0 16px; }
.hero-statement { font-size: 40px; line-height: 1.3; color: #23372e; font-weight: 500; margin: 0 0 18px; }
.industrial-hero .hero-lead { color: #41544a; font-size: 14px; line-height: 1.85; margin: 0 0 26px; }
.industrial-hero .action-row { gap: 12px; margin-top: auto; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: space-between; color: #344b41; font-size: 9px; }
.hero-caption span:last-child { padding: 5px 8px; background: #f0f3f0e8; color: #3c4b42; }
.platform-strip { min-height: 92px; padding: 22px 40px; display: flex; align-items: center; justify-content: center; gap: 54px; border-bottom: 1px solid var(--border); background: #ffffff; }
.platform-strip > span:first-child { font-size: 11px; color: var(--muted-2); }
.platform-strip strong { font-size: 19px; color: #47534c; font-weight: 600; }
.platform-divider { height: 24px; border-left: 1px solid #ccd5cf; }
.platform-protocol { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.home-section { width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding: 66px 0; }
.home-products .section-title h2 { font-size: 30px; }
.home-products .portal-grid { align-items: stretch; }
.workflow-band { background: #eaf0ec; border-top: 1px solid #dfe7e1; border-bottom: 1px solid #dfe7e1; }
.workflow-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 100px; align-items: center; padding-block: 76px; }
.workflow-intro h2 { font-size: 36px; font-weight: 600; line-height: 1.45; margin: 0 0 20px; }
.workflow-intro > p:not(.eyebrow) { color: var(--muted); max-width: 395px; line-height: 1.9; margin: 0 0 32px; }
.workflow-tabs { border-top: 1px solid #cdd9d1; }
.workflow-tab { display: grid; grid-template-columns: 32px 1fr 24px; align-items: center; gap: 12px; width: 100%; min-height: 61px; padding: 12px 16px; text-align: left; border-bottom: 1px solid #cdd9d1; color: #708077; }
.workflow-tab > span:first-child { font-family: var(--font-mono); font-size: 11px; }
.workflow-tab strong { font-size: 14px; font-weight: 500; }
.workflow-tab > span:last-child { justify-self: end; }
.workflow-tab:hover { color: var(--teal); background: #e0e9e3; }
.workflow-tab.is-active { background: #ffffff; color: var(--teal); box-shadow: inset 3px 0 var(--teal); }
.engineering-console { height: 452px; min-width: 0; background: #ffffff; border: 1px solid #c8d5cd; border-radius: 6px; box-shadow: 0 16px 32px #233e2e09; overflow: hidden; display: flex; flex-direction: column; }
.console-topbar { height: 46px; flex: none; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e4ebe6; font-size: 11px; color: #64766a; }
.console-topbar > span:first-child { display: flex; align-items: center; gap: 9px; font-weight: 600; color: #34493b; }
.console-topbar i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.console-body { padding: 22px; flex: 1; min-height: 0; overflow: auto; }
.console-message { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 12px; color: #506358; }
.console-message p { margin: 0; line-height: 1.8; }
.console-message strong { display: block; font-size: 11px; color: #1c4030; margin-bottom: 4px; }
.console-avatar { width: 26px; height: 26px; flex: none; display: grid; place-items: center; background: #f0f2f0; color: #67756d; border-radius: 4px; font-size: 10px; }
.console-avatar.agent { background: #dbf0e6; color: #007a70; font-weight: 700; }
.code-preview { border: 1px solid #dae3dc; border-radius: 4px; background: #f6f8f6; margin-left: 38px; overflow: hidden; }
.code-title { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #eef3ef; color: #607266; font-size: 10px; }
.code-title span:last-child { color: var(--teal); }
.code-preview pre { margin: 0; padding: 12px 0; color: #426353; font-size: 11px; line-height: 1.85; font-family: var(--font-mono); overflow-x: auto; }
.code-preview pre > span { display: block; padding-right: 10px; }
.code-preview em { display: inline-block; width: 36px; text-align: center; color: #9ca99f; font-style: normal; user-select: none; }
.console-result { margin: 13px 0 0 38px; font-size: 10px; color: #567562; display: flex; gap: 8px; }
.console-footnote { border-top: 1px solid #e4ebe6; padding: 11px 20px; font-size: 10px; color: #748278; background: #fcfdfc; flex: none; }
.home-services .section-title > p { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.service-links a { display: block; border-top: 1px solid #cbd6ce; padding: 24px 0; }
.service-number { font-size: 10px; font-family: var(--font-mono); color: var(--muted-2); }
.service-links h3 { display: flex; justify-content: space-between; font-size: 19px; font-weight: 600; margin: 16px 0 10px; }
.service-links h3 span { color: var(--teal); }
.service-links p { font-size: 12px; color: var(--muted); margin: 0; }
.service-links a:hover h3 { color: var(--teal); }

@media (min-width: 1600px) {
  .industrial-hero-image { object-position: center 59%; }
  .industrial-hero { height: 600px; }
}
@media (max-width: 1080px) {
  .site-header { padding: 12px 28px 0; gap: 8px 18px; }
  .primary-nav { padding-bottom: 0; }
  .primary-nav a.is-active::after { bottom: 0; }
  .industrial-hero-inner, .home-section, .portal-main, .site-footer { width: calc(100% - 56px); }
  .industrial-hero { height: 500px; min-height: 420px; }
  .industrial-hero-image { width: calc(100% - 120px); left: auto; right: 0; object-fit: contain; object-position: right bottom; }
  .industrial-hero .hero-lead { max-width: 255px; font-size: 12px; }
  .industrial-hero h1 { font-size: 54px; }
  .hero-statement { font-size: 34px; }
  .industrial-hero .hero-copy { width: 52%; }
  .platform-strip { gap: 30px; }
  .workflow-layout { gap: 44px; }
  .product-card { padding: 24px; }
  .portal-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-search-shell { top: 115px; }
  .home-hero h1, .product-hero h1, .activity-hero h1 { font-size: 38px; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .industrial-hero { height: 620px; min-height: 600px; }
  .industrial-hero-image { top: auto; left: 0; width: 100%; height: 50%; object-fit: cover; object-position: center 64%; }
  .industrial-hero-inner { align-items: flex-start; }
  .industrial-hero .hero-copy { width: 100%; max-width: none; height: auto; padding: 24px 0 0; }
  .industrial-hero h1 { font-size: 48px; margin-bottom: 12px; }
  .industrial-hero .hero-kicker { margin-bottom: 14px; }
  .hero-statement { font-size: 32px; margin-bottom: 12px; }
  .hero-statement br { display: none; }
  .industrial-hero .hero-lead { max-width: none; font-size: 13px; margin-bottom: 18px; }
  .industrial-hero .action-row { margin-top: 0; }
}
@media (max-width: 720px) {
  .site-header { padding: 10px 20px 0; min-height: 96px; }
  .brand-copy strong { font-size: 21px; }
  .primary-nav { gap: 10px; }
  .primary-nav a { padding-inline: 8px; font-size: 12px; }
  .header-actions { gap: 10px; }
  .industrial-hero-inner, .home-section, .portal-main, .site-footer { width: calc(100% - 40px); }
  .announcement { font-size: 10px; gap: 10px; min-height: 38px; }
  .industrial-hero { height: min(620px, calc(100svh - 185px)); min-height: 480px; background: #d4d8db; }
  .industrial-hero-image { top: auto; left: 0; width: 100%; height: 49%; object-fit: cover; object-position: 72% 64%; }
  .industrial-hero-inner { align-items: flex-start; }
  .industrial-hero .hero-copy { width: 100%; max-width: none; height: auto; padding-top: 28px; padding-bottom: 0; }
  .hero-kicker { font-size: 10px; margin-bottom: 15px; }
  .industrial-hero h1 { font-size: 46px; margin-bottom: 10px; }
  .hero-statement { font-size: 28px; line-height: 1.4; margin-bottom: 10px; }
  .industrial-hero .hero-lead { font-size: 12px; line-height: 1.75; margin-bottom: 17px; max-width: 330px; }
  .industrial-hero .action-row { display: flex; gap: 10px; margin-top: 0; }
  .industrial-hero .action-row > .button { width: auto; min-height: 40px; font-size: 12px; padding: 9px 16px; }
  .hero-caption { bottom: 12px; font-size: 8px; }
  .hero-caption > span:first-child { display: none; }
  .hero-caption > span:last-child { margin-left: auto; }
  .platform-strip { display: grid; grid-template-columns: repeat(3, auto); gap: 15px 22px; padding: 20px; text-align: center; }
  .platform-strip > span:first-child { grid-column: 1 / -1; font-size: 10px; }
  .platform-strip strong { font-size: 15px; }
  .platform-divider, .platform-protocol { display: none; }
  .home-section { padding-block: 42px; }
  .section-title { align-items: flex-start; gap: 14px; }
  .section-title h2, .home-products .section-title h2 { font-size: 24px; }
  .home-products .section-title { flex-direction: column; }
  .section-title p:not(.eyebrow) { font-size: 12px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .portal-grid.three { grid-template-columns: 1fr; gap: 18px; }
  .product-card { padding: 23px; gap: 18px; }
  .product-card-intro h2 { font-size: 24px; }
  .product-card-intro { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .product-icon { width: 58px; height: 58px; }
  .product-card > p { font-size: 13px; }
  .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-metrics strong { font-size: 19px; }
  .compact-metrics span { font-size: 9px; }
  .workflow-layout { grid-template-columns: 1fr; gap: 28px; }
  .workflow-intro h2 { font-size: 30px; }
  .workflow-intro > p:not(.eyebrow) { font-size: 13px; max-width: none; }
  .workflow-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-tab { grid-template-columns: 1fr; gap: 4px; padding: 13px 8px; text-align: center; }
  .workflow-tab strong { font-size: 12px; }
  .workflow-tab > span:last-child { display: none; }
  .workflow-tab.is-active { box-shadow: inset 0 -2px var(--teal); }
  .engineering-console { height: 440px; }
  .console-topbar { padding-inline: 15px; font-size: 10px; }
  .console-body { padding: 18px 14px; }
  .code-preview, .console-result { margin-left: 0; }
  .home-services .section-title { flex-direction: column; }
  .service-links { grid-template-columns: 1fr; gap: 4px; }
  .service-links a { padding: 22px 0; }
  .service-links h3 { margin-top: 10px; }
  .portal-main { padding-top: 30px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading { margin-bottom: 25px; }
  .home-hero, .product-hero, .activity-hero { padding: 12px 0 30px; gap: 28px; }
  .home-hero h1, .product-hero h1, .activity-hero h1 { font-size: 34px; }
  .section-block { padding-top: 28px; margin-top: 28px; }
  .capability-search-shell { top: 108px; }
  .capability-overview { padding: 24px; }
  .metric-card { padding: 20px 12px; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .site-footer { padding-block: 26px; gap: 14px; }
}
@media (max-width: 380px) {
  .industrial-hero h1 { font-size: 40px; }
  .hero-statement { font-size: 27px; }
  .product-card { padding: 18px; }
  .product-card-intro h2 { font-size: 20px; }
  .product-card .chip { padding-inline: 5px; font-size: 9px; }
  .product-card .chip-row { gap: 4px; }
  .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industrial-hero-inner, .home-section, .portal-main, .site-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Independent plugin library and publisher workspace. */
.plugins-page { padding-top: 38px; }
.plugins-page .page-heading { padding-top: 18px; }
.plugin-toolbar, .plugin-results, .plugin-card-top, .plugin-card-bottom, .plugin-file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.plugin-toolbar { border-bottom: 1px solid var(--border); padding-bottom: 20px; flex-wrap: wrap; }
.plugin-tabs { display: flex; gap: 8px; }
.plugin-tabs a { padding: 10px 18px; border-radius: 6px; color: var(--muted); }
.plugin-tabs a.is-active { background: #dceee8; color: var(--teal-deep); font-weight: 650; }
.plugin-search { display: flex; gap: 8px; width: min(100%, 560px); }
.plugin-search select { flex: 0 0 130px; width: 130px; min-width: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: white; color: var(--text); padding: 10px; font: inherit; }
.plugin-search input { flex: 1; min-width: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: white; padding: 10px 14px; font: inherit; }
.plugin-results { padding: 24px 0 16px; color: var(--muted); font-size: 13px; }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plugin-grid > .empty-state { grid-column: 1 / -1; padding: 50px 20px; }
.plugin-card { display: flex; flex-direction: column; padding: 26px; background: white; border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.plugin-card h2 { font-size: 21px; margin: 22px 0 10px; overflow-wrap: anywhere; }
.plugin-summary { color: var(--muted); line-height: 1.8; flex: 1; overflow-wrap: anywhere; }
.plugin-publisher { font-size: 13px; color: var(--muted); margin: 22px 0; }
.plugin-publisher a, .plugin-facts a, .plugin-license-note a { color: var(--teal); font-weight: 600; }
.plugin-card-bottom { border-top: 1px solid var(--border); padding-top: 18px; font-size: 12px; flex-wrap: wrap; color: var(--muted); }
.plugin-developer { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 54px 0 28px; background: #eaf0ed; border-radius: 8px; padding: 32px; }
.plugin-developer h2 { font-size: 22px; margin-bottom: 12px; }
.plugin-developer p { max-width: 720px; color: var(--muted); }
.plugin-developer .button { flex-shrink: 0; }
.plugin-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.plugin-panel { min-width: 0; padding: 30px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.plugin-panel h2 { font-size: 21px; margin-bottom: 24px; }
.plugin-panel p { color: var(--muted); overflow-wrap: anywhere; }
.plugin-description { white-space: pre-wrap; line-height: 1.95; }
.plugin-facts { margin-top: 34px; border-top: 1px solid var(--border); padding-top: 14px; }
.plugin-facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.plugin-facts dt { color: var(--muted); }
.plugin-facts dd { margin: 0; overflow-wrap: anywhere; }
.plugin-file-row { padding: 20px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.plugin-file-row > div { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.plugin-file-row p { font-size: 12px; margin: 8px 0; }
.plugin-checksum { font-size: 11px; color: var(--muted); }
.plugin-checksum code { display: block; overflow-wrap: anywhere; margin-top: 8px; }
.plugin-file-empty { padding: 22px; background: var(--bg-0); border-radius: 6px; }
.plugin-file-empty p { margin-top: 8px; }
.plugin-source-placeholder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 20px; border: 1px dashed var(--border-strong); border-radius: 6px; background: #f2f7f4; }
.plugin-source-placeholder p { margin: 8px 0 0; font-size: 13px; }
.plugin-source-placeholder .button:disabled { cursor: not-allowed; opacity: .55; }
.plugin-attachment-heading { margin: 30px 0 12px; font-size: 16px; }
.plugin-license-note { margin-top: 30px; font-size: 13px; line-height: 1.8; }
.plugin-upload, .plugin-managed-file { padding-block: 20px; border-bottom: 1px solid var(--border); }
.plugin-rename-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.plugin-rename-form label { flex: 1 1 180px; min-width: 0; }
.plugin-rename-form label span { display: block; margin-bottom: 8px; font-size: 12px; }
.plugin-panel input[type="file"] { width: 100%; font-size: 12px; }
.plugin-publish-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.plugin-publish-actions p { width: 100%; }
@media (max-width: 1080px) { .plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .plugin-grid, .plugin-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .plugin-developer { align-items: start; flex-direction: column; padding: 24px; }
  .plugin-panel { padding: 22px; }
  .plugin-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .plugin-search select { grid-column: 1 / -1; width: 100%; }
  .plugin-results { font-size: 12px; }
  .plugin-file-row .button { width: 100%; }
}

/* 插件页的表单排版。
   ⚠ 这里**不要用管理端那个 `.form-stack`** —— 它只定义在 admin/app.css 里,
   门户页面根本不加载,套上去等于没有样式(上传那几个表单以前就是因此塌掉的)。
   卡面由 `.plugin-panel` 给,这个类只管字段之间的间距。 */
.plugin-form { display: grid; gap: 14px; min-width: 0; }
.plugin-form .field { min-width: 0; }
.plugin-upload .field { gap: 9px; }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.field-note code { font-family: var(--font-mono); font-size: 11.5px; }
.plugin-rename-form .field { flex: 1 1 200px; }
