:root {
  color-scheme: light;
  --ink: #192c34;
  --muted: #596d76;
  --soft: #edf3f3;
  --line: #dbe4e6;
  --accent: #087f73;
  --accent-dark: #04685f;
  --mint: #e5f4ef;
  --paper: #f4f7f8;
  --navy: #102b39;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible {
  outline: 3px solid #28a79b; outline-offset: 3px;
}
button, a { touch-action: manipulation; }
h1, h2, h3, p, figure { margin: 0; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
.skip { position: fixed; z-index: 50; top: -80px; left: 20px; background: white; padding: 10px 15px; border-radius: 5px; }
.skip:focus { top: 8px; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .shell, .footer { width: min(calc(100% - 80px), 1456px); margin: 0 auto; }
.top-inner { height: 100%; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 1.46rem; font-weight: 710; letter-spacing: -.055em; line-height: 1; }
.topbar nav { display: flex; align-self: stretch; align-items: stretch; gap: 28px; margin-left: clamp(32px,4.3vw,72px); }
.nav-item { position: relative; display: flex; align-items: center; gap: 8px; font-size: .91rem; font-weight: 510; color: var(--muted); }
.nav-item:hover, .nav-item.active { color: var(--accent-dark); }
.nav-item.active { font-weight: 650; }
.nav-item.active::after { content: ""; position: absolute; bottom: 0; height: 3px; background: var(--accent); width: 100%; border-radius: 3px 3px 0 0; }
.nav-item .icon { width: 16px; height: 16px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.local-status, .live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .79rem; font-weight: 550; color: #36695b; white-space: nowrap; }
.local-status { padding: 5px 10px; border: 1px solid #d4e9dd; background: #f0f8f3; border-radius: 20px; }
.local-status:hover { background: #e4f4eb; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #2e9e74; flex: none; }
.action-divider { width: 1px; height: 20px; background: var(--line); }
.icon-button { display: inline-grid; width: 29px; height: 29px; place-items: center; padding: 0; color: var(--muted); border-radius: 5px; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.top-help { width: 30px; height: 30px; }
.top-help .icon { width: 21px; height: 21px; }
.shell { padding-top: 25px; }
.hero {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  min-height: 186px; overflow: hidden; border-radius: 13px; color: #f4fafb;
  background-color: var(--navy);
  background-image: linear-gradient(105deg, #112a38 7%, #102b39ed 36%, #10374473 77%, #0f314044),
    linear-gradient(#6bc6c61d 1px, transparent 1px), linear-gradient(90deg, #6bc6c61d 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}
.hero::before, .hero::after { content: "+"; position: absolute; z-index: -1; color: #77b5b75c; font: 14px var(--mono); line-height: 1; }
.hero::before { left: 47.5%; top: 27px; }
.hero::after { right: 23px; bottom: 19px; }
.hero-text { flex: 1 1 47%; padding: 24px 12px 24px clamp(24px,2.65vw,42px); }
.verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; color: #9de4cf; background: #174639; border: 1px solid #3b7260; font-size: .76rem; font-weight: 560; line-height: 1.35; }
.verified .icon { width: 14px; height: 14px; }
.verified.unmatched { color: #f1cb8d; border-color: #816640; background: #493d34; }
.hero h1 { font-size: clamp(1.9rem,2.85vw,2.72rem); font-weight: 680; letter-spacing: -.055em; line-height: 1.26; margin: 12px 0 9px; }
.hero p { color: #b9cdd3; font-size: .94rem; letter-spacing: .015em; line-height: 1.65; }
.hero-visual { display: flex; height: 183px; flex: 0 1 49%; min-width: 0; position: relative; align-items: center; justify-content: center; padding: 5px 32px 18px 0; }
.chassis-holder { width: 100%; height: 100%; max-width: 615px; }
#chassis { width: 100%; height: 100%; display: block; }
.figure-caption { position: absolute; bottom: 9px; right: 9%; display: flex; align-items: center; gap: 8px; color: #91b9bb; font: .73rem var(--mono), var(--sans); letter-spacing: .025em; }
.cross-mark { width: 15px; height: 1px; background: #71adad; }
.work-grid { margin-top: 21px; display: grid; grid-template-columns: minmax(0,1.31fr) minmax(0,1fr); gap: 20px; align-items: start; }
.form-stack, .preview-stack { display: grid; gap: 18px; min-width: 0; align-content: start; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px #233b4504; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px 0; }
.heading { display: flex; align-items: center; min-width: 0; gap: 9px; }
.heading h2 { font-size: 1.12rem; font-weight: 680; line-height: 1.4; letter-spacing: -.03em; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 31px; height: 31px; background: #e6f3ef; color: #137e70; border-radius: 7px; }
.icon-tile .icon { width: 18px; height: 18px; }
.text-button { color: var(--accent-dark); display: inline-flex; gap: 5px; align-items: center; font-weight: 550; font-size: .8rem; padding: 5px 0 5px 5px; border-radius: 3px; }
.text-button:hover { color: #003a35; text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 14px; height: 14px; }
.text-button.quiet, .subtle { color: var(--muted); }
.counter { font-size: .8rem; font-variant-numeric: tabular-nums; }
.counter b { color: var(--accent-dark); font-weight: 660; }
.device-fields { display: grid; grid-template-columns: .75fr 1.22fr 1.07fr; gap: 12px; padding: 16px 22px 22px; }
.device-field, .param-field { min-width: 0; }
.field-label, .param-field label { display: block; font-size: .875rem; font-weight: 600; line-height: 1.45; color: #455b64; margin-bottom: 7px; }
.combo { position: relative; }
input, select { max-width: 100%; }
.input, .combo input, .search-field input { appearance: none; outline: none; }
.input, .combo input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #ccd9dc; border-radius: 6px; background: #fff; color: #253c45; font-family: var(--sans); font-size: .9rem; line-height: normal; }
.combo input { font-family: var(--sans); font-weight: 540; letter-spacing: -.025em; padding-right: 27px; text-overflow: ellipsis; }
.combo input:hover, .input:hover { border-color: #a4babc; }
.combo input:focus, .input:focus, .search-field:focus-within { border-color: #279989; box-shadow: 0 0 0 3px #0e947919; }
.combo input[aria-invalid="true"], .input[aria-invalid="true"] { border-color: #bd6250; }
.combo input:disabled { background: #f3f5f5; color: #86969b; }
.combo-toggle { position: absolute; right: 1px; top: 1px; width: 29px; height: 37px; padding: 0; color: #657780; display: grid; place-items: center; }
.combo-toggle .icon { width: 14px; height: 14px; }
.combo-list { position: absolute; z-index: 5; top: calc(100% + 5px); left: 0; min-width: 100%; width: max-content; max-width: min(300px,85vw); background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 24px #1f3f4a20; padding: 4px; max-height: 250px; overflow-y: auto; }
.combo-list [role="option"] { cursor: pointer; border-radius: 4px; padding: 8px 10px; font-size: .87rem; white-space: nowrap; }
.combo-list [aria-selected="true"], .combo-list [role="option"]:hover { background: var(--mint); color: var(--accent-dark); }
.combo-empty { font-size: .85rem; padding: 7px 9px; color: var(--muted); }
.device-error { margin: -9px 22px 16px; color: #9b4636; font-size: .8rem; }
.module-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 15px 22px 21px; }
.module { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 77px; border: 1px solid #d9e2e4; border-radius: 7px; background: #fff; padding: 12px 12px 11px; text-align: left; }
.module > .icon { height: 20px; width: 20px; color: #687b84; }
.module-label { color: #40545d; font-size: .87rem; line-height: 1.25; font-weight: 570; letter-spacing: -.01em; }
.module-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 15px; height: 15px; border: 1.3px solid #c4d0d3; border-radius: 4px; background: white; }
.module-check .icon { width: 12px; height: 12px; stroke-width: 2.8; }
.module[aria-checked="true"] { border-color: #60a99a; background: #edf7f3; }
.module[aria-checked="true"] > .icon, .module[aria-checked="true"] .module-label { color: var(--accent-dark); }
.module[aria-checked="true"] .module-check { border-color: var(--accent); color: white; background: var(--accent); }
.module:hover { border-color: var(--accent); background: #f4f9f7; }
.params-tabs { display: flex; align-items: center; gap: 21px; margin: 10px 22px 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.param-tab { white-space: nowrap; padding: 9px 2px 10px; color: var(--muted); border-bottom: 2px solid transparent; font-size: .87rem; }
.param-tab[aria-selected="true"] { font-weight: 640; color: var(--accent-dark); border-color: var(--accent); }
#param-content { padding: 17px 22px 20px; }
.vlan-table { display: grid; grid-template-columns: minmax(65px,.62fr) minmax(110px,1.45fr) 30px; gap: 8px 12px; align-items: center; }
.table-head { font-size: .81rem; color: #5c6c74; font-weight: 550; }
.vlan-table .input { font-family: var(--mono); font-size: .84rem; height: 36px; }
.icon-button.danger:hover { color: #a54638; background: #fff2ed; }
.add-button { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-dark); font-size: .84rem; font-weight: 570; padding: 8px 0 0; margin-top: 5px; }
.add-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.add-button .icon { width: 16px; height: 16px; }
.hint, .empty-form { font-size: .83rem; color: var(--muted); line-height: 1.65; }
.hint { margin-top: 12px; }
.error-text { color: #a04032; font-size: .77rem; line-height: 1.5; margin-top: 4px; display: block; }
.error-text:empty { display: none; }
.param-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 15px; }
.field-tools { display: flex; gap: 8px; align-items: center; margin-top: 7px; }
.field-tools .text-button { padding-left: 0; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 11px; top: 12px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
select.input { padding-right: 28px; }
.rule { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 12px; }
.rule-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.rule-head strong { font-size: .85rem; }
.port-fields { display: grid; grid-template-columns: 1.03fr .9fr 1fr; gap: 10px; }
.preview-head-tools { display: flex; align-items: center; gap: 9px; }
.live-tag { font-size: .75rem; color: #486c61; }
.live-tag.pending, .live-tag.pending .dot { color: #8d6638; }
.live-tag.pending .dot { background: #b57d37; }
.terminal { background: #14222f; border: 1px solid #273b47; color: #d8e6ed; overflow: hidden; border-radius: 8px; margin: 16px 20px 0; }
.term-bar, .term-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.term-bar { padding: 0 12px; height: 35px; background: #20303d; border-bottom: 1px solid #31424f; }
.term-file { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: #c2d3d9; font: .73rem var(--mono); }
.term-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-file .icon { width: 14px; height: 14px; color: #91acb6; }
.cli-lang { color: #acbfc7; padding: 2px 5px; font: .67rem var(--mono); border: 1px solid #536571; border-radius: 4px; }
.term-scroll { overflow: auto; scrollbar-color: #495b68 #172938; overscroll-behavior: contain; max-height: 310px; min-height: 242px; padding: 10px 0; }
.code-lines { min-width: 100%; width: max-content; font: .86rem/1.65 var(--mono); font-variant-ligatures: none; }
.code-line { display: flex; align-items: baseline; min-height: 1.65em; padding-right: 14px; }
.code-line:hover, .code-line:focus-within { background: #203440; }
.line-ref { flex: 0 0 39px; width: 39px; text-align: right; border-radius: 2px; padding: 0 12px 0 0; color: #8095a2; font: inherit; user-select: none; }
.line-ref:hover { color: #a7edda; text-decoration: underline; }
.code-line code { font: inherit; user-select: text; white-space: pre; color: #d6e5ea; }
.syntax-cmd { color: #82d5c5; }
.syntax-num { color: #e5bb83; }
.syntax-name { color: #b4cdec; }
.syntax-secret { color: #a3adbc; }
.term-foot { min-height: 30px; padding: 5px 11px; border-top: 1px solid #2b3d49; color: #a8bec7; font-size: .71rem; }
.term-foot span { display: inline-flex; align-items: center; gap: 5px; }
.term-foot .icon { width: 13px; height: 13px; }
.term-foot .line-count { font-family: var(--mono), var(--sans); color: #b8c8d0; }
.term-more { margin: 8px 14px 0; font-size: .8rem; color: #90dfca; text-decoration: underline; }
.term-errors { padding: 20px 18px; color: #c8d5db; font-size: .88rem; }
.term-errors strong { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #f0ca91; font-weight: 580; }
.term-errors ul { margin: 0; padding-left: 19px; }
.term-errors li { margin: 7px 0; }
.term-errors button { text-align: left; padding: 0; font-size: .84rem; color: #d0dfe4; line-height: 1.6; }
.term-errors button:hover { text-decoration: underline; }
.output-actions { display: flex; gap: 9px; padding: 13px 20px 0; }
.btn { min-height: 39px; padding: 8px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 6px; font-size: .88rem; font-weight: 610; }
.btn .icon { width: 16px; height: 16px; }
.primary { color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { background: var(--accent-dark); }
.secondary { color: #334b54; border: 1px solid #ccdadd; background: white; }
.secondary:hover { background: #f1f6f5; border-color: #9cb8b6; }
.output-actions .primary { flex: 1.35; }
.output-actions .secondary { flex: 1; }
.btn:disabled { opacity: .45; }
.working-notes { padding: 11px 20px 15px; }
.notes-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; padding: 1px 0; }
.notes-toggle .icon { width: 14px; height: 14px; }
.notes-toggle:hover { color: var(--accent-dark); }
.secret-note, .prep-note { font-size: .8rem; margin: 10px 0 0; line-height: 1.6; color: #775c33; }
.prep-note { margin: 0 0 8px; }
.prep-note button { padding: 0; font-size: inherit; color: var(--accent-dark); font-weight: 650; text-decoration: underline; }
.prep-banner { margin: 10px 20px 0; padding: 7px 9px; border-radius: 5px; font-size: .8rem; color: #78542c; background: #fbf4e6; line-height: 1.6; }
.prep-banner > .icon { width: 14px; height: 14px; margin-right: 4px; }
.prep-banner button { padding: 0 3px; }
.optional { font-size: .76rem; font-weight: 400; }
.clip-fallback { position: fixed; left: -9999px; top: 0; }
.manual-copy { width: 100%; min-height: 12rem; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; font: .87rem/1.6 var(--mono); }
.check-line { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #405a61; font-size: .87rem; }
.check-line input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
#management-path:not(:empty) { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f1f7f6; color: #4c686a; font-size: .82rem; line-height: 1.7; }
#management-path .text-button { padding: 0; }
.offline-download { margin-top: 15px; }
.mobile-quick { display: none; }
.preview-card,.params-card { scroll-margin-top: 12px; }
.evidence-card .card-head { padding-bottom: 12px; }
#evidence-list { padding: 0 22px 9px; }
.source-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #e5ebed; }
.doc-symbol { display: grid; place-items: center; width: 31px; height: 36px; background: #f0f5f6; border: 1px solid #e2e9eb; color: #637d87; border-radius: 5px; flex: none; }
.doc-symbol .icon { width: 16px; height: 16px; }
.source-copy { min-width: 0; flex-grow: 1; }
.source-copy strong, .source-copy small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.source-copy strong { font-size: .87rem; font-weight: 590; }
.source-copy small { color: var(--muted); margin-top: 4px; font-size: .74rem; line-height: 1.4; }
.source-row > .icon { color: #778b94; height: 14px; width: 14px; margin-left: auto; }
.source-row:hover strong, .source-row:hover > .icon { color: var(--accent); }
.citation-row { align-items: flex-start; }
.citation-body { min-width: 0; overflow-wrap: anywhere; }
.citation-body > strong { font-size: .9rem; }
.citation-row:hover strong { color: inherit; }
.citation-device, .citation-book, .citation-location { display: block; margin-top: 4px; line-height: 1.5; color: var(--muted); font-size: .81rem; }
.citation-book { color: var(--ink); }
.citation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.cite-copy, .cite-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-dark); font-size: .82rem; min-height: 28px; }
.cite-copy:hover, .cite-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding: 18px 0 24px; border-top: 1px solid var(--line); font-size: .75rem; color: #60747d; }
.footer > div, .foot-note { display: inline-flex; align-items: center; gap: 7px; }
.footer img { opacity: .78; }
.footer strong { font-family: var(--sans); font-size: .83rem; letter-spacing: -.04em; color: #4c626b; }
.footer-divider { width: 1px; height: 12px; background: #cddbdd; margin: 0 3px; }
.foot-note .icon { width: 13px; height: 13px; }
.docs-hero { display: flex; align-items: center; gap: 17px; background: var(--navy); border-radius: 12px; padding: 30px; color: white; }
.docs-hero h1 { font-size: 1.9rem; letter-spacing: -.03em; }
.docs-hero p { color: #c0d0d6; margin-top: 6px; font-size: .94rem; line-height: 1.6; }
.docs-symbol { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #5a858b; border-radius: 10px; color: #9ce4d2; background: #1c444c; }
.docs-symbol .icon { width: 26px; height: 26px; }
.library { margin-top: 18px; padding: 22px; min-height: 390px; }
.library-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.brand-filter, .library-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.brand-filter { background: #edf3f3; border-radius: 7px; padding: 3px; }
.brand-filter button, .library-categories button { padding: 7px 13px; font-size: .85rem; border-radius: 5px; color: var(--muted); }
.brand-filter button[aria-pressed="true"] { color: var(--accent-dark); background: white; font-weight: 620; box-shadow: 0 1px 4px #273b4c15; }
.search-field { display: flex; align-items: center; gap: 7px; border: 1px solid #ccd9dc; border-radius: 6px; padding: 0 10px; color: var(--muted); }
.search-field input { border: 0; background: none; height: 35px; width: 220px; font-size: .86rem; }
.library-categories { margin: 16px 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.library-categories button[aria-pressed="true"] { color: var(--accent-dark); background: var(--mint); }
.library-section + .library-section { margin-top: 24px; }
.library-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 10px; }
.library-heading h3 { font-size: 1.12rem; }
.library-heading small { font-size: .8rem; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 24px; }
.doc-grid .source-row { min-width: 0; }
.library-empty { padding: 35px 0; color: var(--muted); }
dialog { width: min(560px,calc(100% - 28px)); max-height: min(86vh,850px); border: 1px solid #cddadd; padding: 0; color: var(--ink); border-radius: 13px; background: #fff; box-shadow: 0 24px 100px #102c3938; }
dialog::backdrop { background: #10232f77; }
body:has(dialog[open]) { overflow: hidden; }
dialog.wide { width: min(880px,calc(100% - 28px)); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.13rem; font-weight: 650; }
.dialog-body { padding: 18px 21px 21px; font-size: .91rem; line-height: 1.7; }
.dialog-body h3 { font-size: .98rem; margin: 15px 0 6px; }
.dialog-body h3:first-child { margin-top: 0; }
.dialog-body p + p { margin-top: 9px; }
.dialog-body ul, .dialog-body ol { padding-left: 1.4em; margin: 8px 0 13px; }
.dialog-body li { margin: 5px 0; }
.dialog-body .terminal { margin: 0; }
.dialog-body .term-scroll { max-height: 53vh; }
.dialog-body .output-actions { padding-left: 0; padding-right: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.note-code { background: #152b38; color: #9bdcc9; padding: 11px 13px; border-radius: 6px; font: .85rem/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.inline-note { margin: 8px 0 12px; color: var(--muted); font-size: .84rem; }
.coverage-item { border-bottom: 1px solid var(--line); padding: 2px 0 11px; margin-bottom: 11px; }
.coverage-item code { font-family: var(--mono); font-size: .84rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #173f3c; color: #fff; font-size: .88rem; padding: 11px 18px; border-radius: 8px; box-shadow: 0 5px 21px #0a31362a; max-width: min(90vw,560px); z-index: 20; text-align: center; }
@media(min-width:1600px) {
  .shell { padding-top: 30px; }
  .hero { min-height: 206px; }
  .hero-visual { height: 202px; }
  .card-head { padding-top: 23px; }
}
@media(max-width:1150px) {
  .top-inner,.shell,.footer { width: calc(100% - 44px); }
  .work-grid { grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); gap: 15px; }
  .card-head { padding: 17px 16px 0; }
  .device-fields,.module-list { padding-left: 16px; padding-right: 16px; }
  .device-fields { gap: 8px; grid-template-columns: .66fr 1.16fr 1fr; }
  .combo input { padding-left: 8px; font-size: .84rem; }
  .module-list { gap: 7px; }
  .module { padding-left: 10px; }
  .params-tabs { margin-left: 16px; margin-right: 16px; gap: 14px; }
  #param-content,#evidence-list { padding-left: 16px; padding-right: 16px; }
  .terminal { margin-left: 14px; margin-right: 14px; }
  .output-actions,.working-notes { padding-left: 14px; padding-right: 14px; }
  .hero-visual { padding-right: 16px; }
}
@media(max-width:870px) {
  .top-inner,.shell,.footer { width: calc(100% - 32px); }
  .work-grid { grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: 12px; }
  .form-stack,.preview-stack { gap: 13px; }
  .module-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module { min-height: 46px; flex-direction: row; align-items: center; gap: 7px; padding: 10px; }
  .module-check { top: calc(50% - 7px); right: 7px; }
  .module-label { font-size: .8rem; }
  .device-fields { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
  .device-field:last-child { grid-column: 1/-1; }
  .hero { min-height: 166px; }
  .hero-visual { height: 162px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: .86rem; }
  .work-grid .live-tag { font-size: .71rem; }
  .port-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .mobile-quick { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 5px 10px max(5px,env(safe-area-inset-bottom)); }
  .mobile-quick button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; font-weight: 550; font-size: .82rem; color: var(--muted); }
  .mobile-quick button .icon { width: 16px; height: 16px; }
  .mobile-quick button + button { border-left: 1px solid var(--line); }
  .mobile-quick:not(.at-preview) button:first-child,.mobile-quick.at-preview button:last-child { color: var(--accent-dark); }
  #quick-count { padding: 2px 5px; border-radius: 3px; background: var(--soft); font-size: .7rem; }
  body:has(#workspace-page:not([hidden])) .footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(57px + env(safe-area-inset-bottom)); }
  .topbar { height: 59px; }
  .brand { font-size: 1.21rem; gap: 6px; }
  .brand img { width: 29px; height: 29px; }
  .topbar nav { margin-left: auto; gap: 16px; }
  .nav-item { font-size: .82rem; gap: 4px; }
  .nav-item .icon { display: none; }
  .top-actions { margin-left: 13px; gap: 3px; }
  .local-status { font-size: 0; border: 0; background: transparent; padding: 7px; gap: 0; }
  .local-status .dot { width: 7px; height: 7px; }
  .action-divider { display: none; }
  .top-help .icon { width: 18px; height: 18px; }
  .shell { padding-top: 14px; }
  .hero { display: block; min-height: 0; }
  .hero-text { padding: 19px 19px 3px; }
  .hero h1 { margin: 9px 0 5px; font-size: 1.82rem; }
  .hero p { font-size: .84rem; letter-spacing: 0; }
  .hero-visual { height: 119px; padding: 0 11px 11px; margin-left: 7%; }
  .figure-caption { bottom: 4px; right: 16px; font-size: .65rem; }
  .hero::before { left: auto; right: 18px; top: 18px; }
  .work-grid { display: flex; flex-direction: column; margin-top: 14px; gap: 14px; }
  .form-stack,.preview-stack { width: 100%; }
  .device-fields { grid-template-columns: .65fr 1.18fr 1.07fr; gap: 6px; padding: 12px 13px 15px; }
  .device-field:last-child { grid-column: auto; }
  .combo input { font-size: .8rem; padding-right: 20px; }
  .combo-toggle { width: 20px; }
  .combo-list { max-width: 70vw; }
  .device-field:last-child .combo-list { left: auto; right: 0; }
  .module-list { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 12px 13px 15px; gap: 6px; }
  .module { min-height: 69px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 9px 7px; }
  .module-check { top: 7px; right: 6px; width: 13px; height: 13px; }
  .module > .icon { width: 17px; height: 17px; }
  .module-label { font-size: .79rem; white-space: nowrap; }
  .card-head { padding: 15px 14px 0; }
  .heading h2 { font-size: 1.04rem; }
  .params-tabs { margin-left: 14px; margin-right: 14px; gap: 14px; }
  #param-content { padding: 14px; }
  .footer { margin-top: 17px; flex-wrap: wrap; gap: 6px; }
  .footer .foot-note { font-size: .7rem; }
  .docs-hero { padding: 20px 16px; gap: 10px; }
  .docs-hero h1 { font-size: 1.53rem; }
  .docs-hero p { font-size: .84rem; }
  .docs-symbol { width: 39px; height: 39px; flex: none; }
  .library { padding: 14px; }
  .library-tools { flex-wrap: wrap; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .library-categories { gap: 2px; }
  .library-categories button { padding: 5px 8px; }
  .doc-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:390px) {
  .top-inner,.shell,.footer { width: calc(100% - 22px); }
  .top-actions { margin-left: 4px; }
  .device-fields { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .device-field:last-child { grid-column: 1/-1; }
  .local-status { display: none; }
  .module-label { font-size: .75rem; }
  .dialog-head,.dialog-body { padding-left: 14px; padding-right: 14px; }
}
@media(prefers-reduced-motion:no-preference) {
  .module,.btn,.icon-button { transition: background-color .12s ease, border-color .12s ease; }
}

.module:disabled { background: #f5f7f7; color: #657982; opacity: .62; cursor: not-allowed; }
#profile-figure { display: grid; place-items: center; height: 100%; font: 600 clamp(1.4rem,3vw,2.5rem) var(--mono); color: #b1e2dc; }
.catalog-family { border-bottom: 1px solid var(--line); padding: 8px 0; }
.catalog-family summary { cursor: pointer; font-weight: 650; padding: 5px 0; }
.catalog-family summary small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.model-entry { display: block; width: 100%; padding: 8px 10px; text-align: left; border-radius: 5px; }
.model-entry:hover, .model-entry:focus-visible { color: var(--accent-dark); background: var(--mint); }
.model-entry small { display: block; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.catalog-search input { width: 100%; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-filters button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; font-size: .77rem; color: var(--muted); }
.catalog-filters button[aria-pressed=true] { color: var(--accent-dark); border-color: #94c7ba; background: var(--mint); }
#catalog-count { flex: none; font-size: .78rem; color: var(--muted); }
.catalog-family summary { padding: 7px 2px; }
.catalog-family summary small { font-variant-numeric: tabular-nums; margin-left: 5px; }
.model-entry { display: grid; grid-template-columns: 1fr minmax(0, 40%) 16px; align-items: center; gap: 8px; border-top: 1px solid #e8efef; padding: 10px 9px; }
.model-entry strong { font: 600 .89rem var(--mono); overflow-wrap: anywhere; }
.model-entry small { margin-top: 2px; }
.catalog-version { font-size: .77rem; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.model-entry > .icon { transform: rotate(-90deg); color: var(--accent-dark); }
@media (max-width: 560px) {
  .catalog-tools { align-items: start; flex-direction: column; }
  .model-entry { grid-template-columns: 1fr 16px; row-gap: 0; }
  .catalog-version { grid-column: 1; text-align: left; }
  .model-entry > .icon { grid-column: 2; grid-row: 1 / 3; }
}

.type-shortcuts, .catalog-kinds { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.type-shortcuts { margin:14px 22px 0; }
.type-shortcuts > span { color:var(--muted); font-size:.75rem; margin-right:4px; }
.type-shortcuts button, .catalog-kinds button { color:var(--accent-dark); background:var(--mint); padding:4px 9px; font-size:.78rem; border:1px solid transparent; border-radius:5px; }
.type-shortcuts button:hover, .catalog-kinds button:hover { border-color:#94c7ba; }
.catalog-kinds { margin:14px 0 8px; }
.catalog-kinds button { background:transparent; color:var(--muted); }
.catalog-kinds button[aria-pressed=true] { background:var(--mint); color:var(--accent-dark); border-color:#94c7ba; }
@media (max-width:800px) { .type-shortcuts { margin-left:14px; margin-right:14px; } }
.catalog-ready { display:inline-flex; gap:5px; align-items:center; color:var(--muted); font-size:.78rem; white-space:nowrap; }
.catalog-ready input { accent-color:var(--accent-dark); }
.catalog-browse { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:12px; }
.catalog-browse .catalog-kinds { margin:0; }
.catalog-brands { width:auto; max-width:100%; min-height:34px; padding:4px 8px; font-size:.82rem; }
.module-reference { color:var(--muted); font-size:.9rem; grid-column:1/-1; }
.pon-panel { width:min(94%,430px); border:1px solid #40626f; border-radius:7px; padding:10px 14px; background:#18333f; box-shadow:inset 0 3px 0 #ffffff0c,0 8px 14px #0819214a; }
.pon-panel-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px; font:600 .85rem var(--mono); letter-spacing:.06em; color:#c8e8e4; }
.pon-panel-title span { font-size:.64rem; color:#9bbcc2; }
.pon-connectors { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:2px; }
.pon-connectors button { display:grid; justify-items:center; gap:3px; border-radius:3px; padding:3px 0 2px; color:#a9c4c8; font: .6rem var(--mono); }
.pon-connectors i { display:block; width:70%; max-width:28px; height:11px; background:#10212a; border:2px solid #80a5aa; border-bottom-color:#52757d; border-radius:1px; }
.pon-connectors button[aria-pressed=true] i, .pon-connectors button:hover i { border-color:#77d6c5; background:#2d635f; }
.pon-connectors button:focus-visible { outline:2px solid #b0ede3; }
@media (max-width:650px) { .pon-panel { padding:7px 8px; } .pon-panel-title { margin-bottom:2px; } .pon-connectors button { font-size:.52rem; gap:1px; } .pon-connectors i { height:9px; } }
.type-shortcuts .brand-directory { background:transparent; margin-left:auto; text-decoration:underline; text-underline-offset:3px; }

.module-list.grouped { display:flex; flex-direction:column; gap:14px; }
.module-group { min-width:0; margin:0; padding:0; border:0; }
.module-group legend { color:var(--muted); font-size:.8rem; margin:0 0 6px; padding:0; }
.module-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.module-grid .module { min-height:38px; flex-direction:row; align-items:center; gap:6px; padding:8px 22px 8px 9px; }
.module-grid .module > .icon { width:15px; height:15px; flex-shrink:0; }
.module-grid .module-check { top:50%; right:6px; transform:translateY(-50%); width:12px; height:12px; }
.module-grid .module-check .icon { width:10px; height:10px; }
.module-grid .module-label { white-space:normal; line-height:1.3; font-size:.84rem; }
.server-row { display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; }
.server-row .param-field { flex:1; }
.server-row .icon-button { margin-top:20px; }
.standalone-param { font-size:.9rem; margin:0; color:var(--muted); }
@media (max-width:680px) { .module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
