/* Final interactive datasheet design. */
.ds-page #ds-title:focus { outline: none; }
html:has(.ds-theme-2) { background:var(--sheet-surface,#fff); }
.ds-theme-2 {
    --ds-ink: #111;
    --ds-muted: #292929;
    --ds-line: #bddbe9;
    /* Same palette as _EmbeddedStudioShell.scss, without importing simulator CSS. */
    --ds-protech-header: linear-gradient(180deg, #00d8f6, #0ab8f8 48%, #098ff2);
    --ds-card-footer: #e9f6ff;
    /* Existing blog article table finish from _Post.scss. */
    --article-heading-glass: linear-gradient(115deg,#ffffff52,#ffffff14 42%,#ffffff00 70%),linear-gradient(180deg,rgba(0,227,255,.14),rgba(12,193,255,.2) 52%,rgba(14,154,249,.26));
    --article-table-grid: rgba(69,169,208,.24);
    --article-table-stripe: rgba(14,154,249,.055);
    background:var(--sheet-surface,#fff);
    color:var(--sheet-ink,#111);
}

/* White headings on the shared ProTech blue; normal content keeps dark ink. */
.ds-theme-2 :is(.ds-topbar,.ds-visual > header,.ds-section-heading,.ds-t2-card-header,.ds-table-heading,.ds-view-dialog > header) {
    background:var(--ds-protech-header);
    color:#fff;
    border-bottom:1px solid #078bd1;
    box-shadow: inset 0 1px #ffffff80;
}
.ds-theme-2 .ds-topbar { border-top:0; }
.ds-theme-2 .ds-brand { color:#fff; }
.ds-theme-2 .ds-brand-sub { color:#fff; }
.ds-theme-2 .ds-brand-mark { border:1px solid #a5f8ffd9; background:linear-gradient(140deg,#a1fbefb3,#33d5ff80 45%,#4186ffb3); box-shadow: inset 0 2px 4px #ffffff91,0 3px 8px #00699829; }
.ds-theme-2 .ds-header-links { display: flex; align-items: center; justify-content: flex-end; }
.ds-theme-2 .ds-topbar nav[aria-label=Site] { gap: 20px; }
.ds-theme-2 .ds-topbar nav a { color:#fff; }
@media(max-width:680px) {
    .ds-theme-2 .ds-header-links { position: relative; }
}
.ds-theme-2 .ds-topbar .ds-breadcrumb { margin: 0; padding: 0; gap: 9px; color:#fff; font-size: 10px; line-height: 1.2; }
.ds-theme-2 .ds-topbar .ds-breadcrumb :is(span,strong) { color:#fff; }
.ds-theme-2 .ds-topbar .ds-button { background:#ffffffd9; color:var(--sheet-ink,#111); border-color:var(--sheet-border,#c6f0ff); box-shadow: inset 0 1px #fff; padding-top: 7px; padding-bottom: 7px; }
.ds-theme-2 .ds-reference { border-color:var(--sheet-border,#cfe7f3); background:var(--sheet-surface,#f8fcff); }
.ds-theme-2 .ds-family { border-color:var(--sheet-border,#cde0eb); background:var(--sheet-soft,#f1f8fc); color:var(--sheet-ink,#111); }
.ds-theme-2 :is(.ds-lead,.ds-reference p,.ds-reference span:not(.ds-icon-tile),.ds-section-nav a,.ds-note,.ds-reading p,.ds-application p) { color: #111; }
.ds-theme-2 .ds-resource-primary { --resource-wash: #ffe7ec; --resource-edge: #efb7c1; --resource-accent: #bd3e59; }
.ds-theme-2 .ds-resource-projects { --resource-wash: #def2ff; --resource-edge: #a8d6ee; --resource-accent: #0b7ab5; }
.ds-theme-2 .ds-resource-simulation { --resource-wash: #dcf5ea; --resource-edge: #a6dac6; --resource-accent: #087e62; }
.ds-theme-2 .ds-resource-articles { --resource-wash: #fff0cc; --resource-edge: #e9d28e; --resource-accent: #a56807; }
.ds-theme-2 .ds-resource { border-color:var(--resource-edge); background:linear-gradient(125deg,#ffffffd9,var(--resource-wash)); color:var(--sheet-ink,#111)!important; box-shadow: inset 0 1px #fff,0 2px 8px #2467890a; transition: box-shadow .18s,border-color .18s; }
.ds-theme-2 .ds-resource:hover { border-color:var(--resource-accent); box-shadow: inset 0 1px #fff,0 4px 12px #163f5724; }
.ds-theme-2 .ds-resource small { color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-resource > .ds-icon:last-child { color:var(--resource-accent)!important; }
.ds-theme-2 .ds-resource > .ds-icon-tile { flex: 0 0 36px; width: 36px; height: 36px; }
.ds-theme-2 .ds-section-nav a { display: flex; align-items: center; gap: 7px; }
.ds-theme-2 .ds-section-nav .ds-icon { width: 17px; height: 17px; color:var(--sheet-blue-ink,#087caf); }
.ds-theme-2 .ds-card { background:var(--sheet-surface,#fff); border:1px solid var(--sheet-border,#c0ddec); border-radius: 12px; box-shadow: 0 3px 13px #163f5710; }
.ds-theme-2 :is(.ds-visual > header,.ds-section-heading) { min-height: 60px; height: 60px; padding: 0 16px; flex-shrink: 0; }
.ds-theme-2 :is(.ds-visual h2,.ds-section-heading h2) { font-size: 14px; line-height: 1.3; color:#fff; font-weight: 700; }
.ds-theme-2 :is(.ds-visual h2,.ds-section-heading h2,.ds-t2-card-header h2,.ds-t2-card-header h3,.ds-table-heading h2,.ds-view-dialog h2) { text-shadow: 0 1px 2px #00659945; }
.ds-theme-2 .ds-icon-tile { --icon-ink: #0b7ab5; --icon-wash: #d9efff; --icon-edge: #a8d6ee; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; flex-shrink: 0; border-radius: 9px; color: var(--icon-ink); background: linear-gradient(145deg,#fffffff2,#ffffffb8 45%,var(--icon-wash)); border: 1px solid var(--icon-edge); box-shadow: inset 0 1px 2px #fff,0 2px 5px #1644681c; }
.ds-theme-2 .ds-icon-tile.violet { --icon-ink: #7950b9; --icon-wash: #e9ddff; --icon-edge: #cfbaef; }
.ds-theme-2 .ds-icon-tile.mint { --icon-ink: #087e62; --icon-wash: #dcf5ea; --icon-edge: #a6dac6; }
.ds-theme-2 .ds-icon-tile.amber { --icon-ink: #a56807; --icon-wash: #fff0c9; --icon-edge: #e9d28e; }
.ds-theme-2 .ds-icon-tile.rose { --icon-ink: #bd3e59; --icon-wash: #ffe1e5; --icon-edge: #efb7c1; }
.ds-theme-2 .ds-icon-tile .ds-icon { color: var(--icon-ink); width: 21px; height: 21px; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header:has(.ds-segmented) { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(28px,1fr); gap: 8px; }
.ds-theme-2 .ds-visual > header:has(.ds-segmented) h2 { font-size: 12px; gap: 7px; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header:has(.ds-segmented) > .ds-icon-button { justify-self: end; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented { background:#008ad1; border:1px solid #ffffff28; border-radius: 12px; padding: 3px; gap: 2px; margin: 0; box-shadow: inset 0 1px 3px #006fba35; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; color:#fff; padding: 6px 11px; font-size: 11px; line-height: 1.2; font-weight: 600; white-space: nowrap; border-radius: 8px; transition: background-color .18s,color .18s,box-shadow .18s; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented button .ds-icon { width: 17px; height: 17px; stroke-width: 1.8; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented button:hover:not([aria-pressed=true]) { background:#ffffff20; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented button[aria-pressed=true] { background:var(--sheet-surface,#fff); color:var(--sheet-blue-ink,#008bd7); box-shadow: 0 1px 5px #005c9e35; }
.ds-theme-2 :is(.ds-visual,.ds-view-dialog) > header .ds-segmented button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media(prefers-reduced-motion: reduce) { .ds-theme-2 .ds-segmented button { transition: none!important; } }
.ds-theme-2 .ds-pin-viewport { padding: 12px; }
.ds-theme-2 .ds-pin-diagram { height: 100%; max-height: 235px; }
/* One package selection drives both pin diagrams, including the expanded view. */
.ds-theme-2[data-selected-package="smd"] .ds-pin-diagram:not(.ds-pin-diagram-large) { height: 86%; max-height: 210px; }
.ds-theme-2[data-selected-package="smd"] .ds-pin-body { border-radius: 3px; background: linear-gradient(100deg,#383e46 0 7%,#20252c 7% 93%,#12171d 93%); }
.ds-theme-2[data-selected-package="smd"] .ds-notch { display: none; }
.ds-theme-2[data-selected-package="smd"] .ds-pin b { border-radius: 1px; background: linear-gradient(90deg,#a7b2bf,#eef3f7 48%,#9ba9b9 52%,#d7dfe8); border-color: #93a4b4; color: #172b3d; box-shadow: 0 1px 1px #24425924; }
.ds-theme-2[data-selected-package="smd"] .ds-pin[aria-pressed="true"] b { color:#fff; background:var(--pin); border-color:var(--pin); }
.ds-theme-2[data-selected-package="smd"] .ds-pin-diagram.ds-pin-diagram-large { height: 310px; grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr); }
.ds-theme-2[data-selected-package="smd"] .ds-dialog-content .ds-pin-diagram { height: min(44vh,420px); max-height: none; }
@media(max-width:700px) {
    .ds-theme-2[data-selected-package="smd"] .ds-pin-diagram.ds-pin-diagram-large { grid-template-columns: minmax(0,1fr) 110px minmax(0,1fr); }
}
.ds-theme-2 .ds-pcb-view { background-color: #05090d; background-image: linear-gradient(#53718535 1px,transparent 1px),linear-gradient(90deg,#53718535 1px,transparent 1px),linear-gradient(#53718518 1px,transparent 1px),linear-gradient(90deg,#53718518 1px,transparent 1px); background-size: 50px 50px,50px 50px,10px 10px,10px 10px; background-position: center; }
.ds-theme-2 .ds-pcb-view svg > :not(g):not(text) { stroke: #00e0e0; }
.ds-theme-2 .ds-pcb-view [data-pad] > :first-child { fill: #cd28c6; stroke: #ff8df5; }
.ds-theme-2 .ds-pcb-view [data-pad] > :nth-child(2) { fill: #05090d; stroke: #ff8df5; }
.ds-theme-2 .ds-pcb-view svg > text { fill: #fff; stroke: #17111c; }
.ds-theme-2 .ds-pcb-view :is(.ds-loading,.ds-asset-error) { color: #e4f6ff; }
.ds-theme-2 :is(.ds-visual > header,.ds-view-dialog > header) .ds-icon-button { background:#ffffffb5; color:var(--sheet-blue-ink,#09557d); border-color:var(--sheet-border,#c1efff); }
.ds-theme-2 :is(.ds-visual footer,.ds-info-footer,.ds-source-note,.ds-footer) { background:var(--ds-card-footer); color:var(--sheet-ink,#111); border-top:1px solid var(--sheet-border,#c3dfec); }
.ds-theme-2 .ds-visual footer { height: 34px; font-size: 10px; }
.ds-theme-2 .ds-pill { background:#ffffffc9; color:var(--sheet-blue-ink,#12516a); border-color:var(--sheet-border,#b7eaff); font-size: 9px; }
.ds-theme-2 .ds-pill.violet { background:var(--sheet-violet,#f4efff); color:var(--sheet-muted,#59418b); border-color:var(--sheet-border,#e4d9fa); }

/* Shared row tracks align all six cards, including wrapped titles and text. */
.ds-theme-2 .ds-workbench { grid-template-columns: minmax(0,2fr) minmax(0,1fr); grid-template-rows: repeat(2,360px); gap: 18px; }
.ds-theme-2 :is(.ds-visuals,.ds-insights) { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 18px; min-width: 0; }
.ds-theme-2 .ds-visuals { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ds-theme-2 .ds-insights { grid-template-columns: minmax(0,1fr); }
.ds-theme-2 .ds-visual { height: auto; min-height: 0; container-type: inline-size; }
.ds-theme-2 :is(.ds-essentials,.ds-signal) { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.ds-theme-2 .ds-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ds-theme-2 .ds-card-body > p { font-size: 12px; line-height: 1.6; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-operating-profile { display: grid; gap: 0; margin: 0; }
.ds-theme-2 .ds-operating-profile > div { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom:1px dashed var(--sheet-border,#d4e3ec); }
.ds-theme-2 .ds-operating-profile > div:last-child { border-bottom:0; }
.ds-theme-2 .ds-operating-profile dt { font-size: 12px; font-weight: 650; }
.ds-theme-2 .ds-operating-profile dd { margin: 0; text-align: right; font-size: 12px; font-weight: 650; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-operating-profile dd small { display: block; font-size: 10px; font-weight: 400; }
.ds-theme-2 .ds-signal .ds-card-body { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.ds-theme-2 .ds-info-footer { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 9px 16px; }
.ds-theme-2 .ds-info-footer > .ds-icon { width: 16px; height: 16px; color:var(--sheet-blue-ink,#11769f); }
.ds-theme-2 .ds-info-footer .ds-note { font-size: 10px; line-height: 1.5; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-info-footer .ds-text-link { color:var(--sheet-blue-ink,#075a83)!important; margin: 0; font-size: 11px; }

/* Four accent families with restrained, readable icon badges. */
.ds-theme-2 .ds-stat-grid { gap: 10px; flex: 1; }
.ds-theme-2 .ds-stat-grid > div { padding: 12px; border-radius: 9px; min-height: 75px; }
.ds-theme-2 .ds-stat-voltage, .ds-theme-2 .ds-stat-color-amber { background:linear-gradient(125deg,var(--sheet-amber,#fffaf0),var(--sheet-amber,#fff0c9)); border-color:var(--sheet-border,#e9d28e); --stat-icon: #a56807; }
.ds-theme-2 .ds-stat-speed, .ds-theme-2 .ds-stat-color-blue { background:linear-gradient(125deg,var(--sheet-soft,#eefaff),var(--sheet-soft,#d9efff)); border-color:var(--sheet-border,#a8d6ee); --stat-icon: #0b7ab5; }
.ds-theme-2 .ds-stat-temperature, .ds-theme-2 .ds-stat-color-rose { background:linear-gradient(125deg,var(--sheet-rose,#fff4f5),var(--sheet-rose,#ffe1e5)); border-color:var(--sheet-border,#efb7c1); --stat-icon: #bd3e59; }
.ds-theme-2 .ds-stat-capacitance, .ds-theme-2 .ds-stat-color-violet { background:linear-gradient(125deg,var(--sheet-violet,#f4efff),var(--sheet-violet,#e9ddff)); border-color:var(--sheet-border,#cfbaef); --stat-icon: #7950b9; }
.ds-theme-2 .ds-stat-grid .ds-stat-icon { position: absolute; top: 11px; right: 11px; width: 30px; height: 30px; background:#ffffffa8; border:1px solid #ffffffef; border-radius: 8px; display: grid; place-items: center; }
.ds-theme-2 .ds-stat-icon .ds-icon { position: static; width: 20px; height: 20px; color:var(--stat-icon); }
.ds-theme-2 .ds-stat-grid strong { font-size: 26px; color:var(--sheet-ink,#111); padding-right: 30px; }
.ds-theme-2 .ds-stat-grid strong small { color:var(--sheet-ink,#222); }
.ds-theme-2 .ds-stat-grid strong > span[data-package-text] { display:inline; font:inherit; color:inherit; }
.ds-theme-2 .ds-stat-grid div > span:last-child { color:var(--sheet-ink,#111); font-size: 10px; }
.ds-theme-2 .ds-signal-flow { flex: 1; min-height: 95px; padding: 15px; }
.ds-theme-2 .ds-signal-flow :is(small,span:not(.ds-converter)) { color:var(--sheet-ink,#222); }
.ds-theme-2 .ds-logic-options { margin: 0; }
.ds-theme-2 .ds-logic-options button { display: flex; align-items: center; justify-content: center; gap: 7px; color:var(--sheet-ink,#111); min-height: 33px; }
.ds-theme-2 .ds-logic-options .ds-icon { width: 15px; height: 15px; color:var(--sheet-blue-ink,#137dad); }
.ds-theme-2 .ds-logic-options button[aria-pressed=true] { background:var(--sheet-soft,#d9f2ff); border-color:var(--sheet-border,#78bde0); color:var(--sheet-blue-ink,#062d43); }

.ds-theme-2 .ds-pin-inspector { margin-top: 18px; }
.ds-theme-2 .ds-t2-card-header { padding: 12px 17px; display: flex; align-items: center; gap: 10px; width: 100%; }
.ds-theme-2 .ds-t2-card-header h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; color:#fff; }
.ds-theme-2 .ds-t2-card-header > span:not(.ds-icon-tile) { margin-left: auto; font-size: 11px; }
.ds-theme-2 .ds-pin-detail { border:0; border-radius: 0; background:var(--sheet-surface,#fff); padding: 15px 18px; align-items: center; }
.ds-theme-2 .ds-pin-detail .ds-eyebrow { display: none; }
.ds-theme-2 .ds-pin-detail p,.ds-theme-2 .ds-pin-detail h3 small { color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-pin-detail p:last-child { margin-top: 3px; }
.ds-theme-2 .ds-detail-number { color:var(--sheet-blue-ink,#074d74); background:var(--sheet-soft,#e7f5ff); border-color:var(--sheet-border,#bddded); }
.ds-theme-2 .ds-reading { margin-top: 22px; background:var(--sheet-soft,#edf8ff); border-color:var(--sheet-border,#cee5f1); }
.ds-theme-2 .ds-reading > .ds-icon { color:var(--sheet-blue-ink,#0984b9); }

/* Parallel tables: the blog's glass headings, fine grid and alternating blue wash. */
.ds-theme-2 .ds-tables { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.ds-theme-2 .ds-reference-section { margin: 0; min-width: 0; content-visibility: visible; }
.ds-theme-2 .ds-table-heading { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 100px; padding: 17px 19px; gap: 14px; }
.ds-theme-2 .ds-table-heading h2 { font-size: 18px; color:#fff; margin: 0 0 4px; font-weight: 700; }
.ds-theme-2 .ds-table-heading > .ds-icon-tile { width: 48px; height: 48px; border-radius: 12px; }
.ds-theme-2 .ds-table-heading > .ds-icon-tile .ds-icon { width: 30px; height: 30px; }
.ds-theme-2 .ds-table-heading p { color:#fff; font-size: 11px; }
.ds-theme-2 .ds-table-tools { padding: 12px 14px; background:var(--sheet-surface,#fff); }
.ds-theme-2 .ds-search { min-width: 0; background:var(--sheet-surface,#fff); border-color:var(--sheet-border,#b1e2f7); padding: 8px 12px; margin: 0; }
.ds-theme-2 .ds-search input { color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-search input::placeholder { color:var(--sheet-ink,#444); }
.ds-theme-2 .ds-table-heading > .ds-text-link { color:var(--sheet-blue-ink,#09314b)!important; background:#ffffffb3; border:1px solid var(--sheet-border,#b5e8fb); padding: 8px 12px; border-radius: 8px; min-height: 36px; }
.ds-theme-2 .ds-pin-filters,.ds-theme-2 .ds-spec-summary { min-height: 52px; margin: 0; padding: 11px 14px; border-bottom:1px solid var(--sheet-border,#d6e9f2); background:var(--sheet-surface,#f9fcff); }
.ds-theme-2 .ds-pin-filters { gap: 6px; }
.ds-theme-2 .ds-pin-filters button { color:var(--sheet-ink,#111); padding: 4px 7px; font-size: 10px; }
.ds-theme-2 .ds-pin-filters > span { color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-spec-summary { display: flex; align-items: center; gap: 8px; color:var(--sheet-ink,#111); font-size: 11px; }
.ds-theme-2 .ds-spec-summary .ds-icon { width: 16px; height: 16px; color:var(--sheet-blue-ink,#0d79a6); }
.ds-theme-2 .ds-spec-summary span:last-child { margin-left: auto; font-size: 10px; white-space: nowrap; }
.ds-theme-2 .ds-spec-summary a { color:var(--sheet-ink,#111); display: inline-flex; gap: 6px; align-items: center; }
.ds-theme-2 .ds-spec-empty { margin: 0; padding: 24px; text-align: center; color:var(--sheet-ink,#111); font-size: 12px; }
.ds-theme-2 .ds-table-scroll { box-shadow: 0 2px 7px rgba(32,62,81,.1); scrollbar-width: thin; scrollbar-color: #78b7d1 #e8f5fb; }
.ds-theme-2 table { border-collapse: separate; border-spacing: 0; color:var(--sheet-ink,#000); font-size: 12px; }
.ds-theme-2 table :is(th,td) { border:0; border-right:1px solid var(--article-table-grid); border-bottom:1px solid var(--article-table-grid); padding: 11px 13px; }
.ds-theme-2 table tr > :last-child { border-right:0; }
.ds-theme-2 table thead { background:var(--ds-protech-header); color:#fff; text-transform: none; font-size: 12px; letter-spacing: 0; }
.ds-theme-2 table thead th { background:transparent; color:#fff; box-shadow: inset 0 1px #ffffff80; font-weight: 700; }
.ds-theme-2 table tbody tr:nth-child(even) { background:var(--article-table-stripe); }
.ds-theme-2 table tbody th[scope=row] { background:rgba(12,193,255,.06); color:var(--sheet-ink,#111); font-weight: 600; }
.ds-theme-2 table tbody tr > :is(td,th):nth-child(n) { color:var(--sheet-ink,#111); font-size: 12px; }
.ds-theme-2 .ds-spec-table td:nth-child(2) { white-space: normal; font-weight: 600; }
.ds-theme-2 .ds-pin-table td:first-child { width: 48px; }
.ds-theme-2 .ds-pin-table td:nth-child(3) { font-size: 11px; }
.ds-theme-2 .ds-pin-table .ds-signal-name { color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-pin-table tr[data-selected=true] > * { background:var(--sheet-soft,#def3ff); }
.ds-theme-2 .ds-source-note { color:var(--sheet-ink,#111); margin-top: auto; padding: 14px 18px; font-size: 10px; }

.ds-theme-2 .ds-application { padding: 0 0 18px; gap: 14px; }
.ds-theme-2 .ds-application .ds-t2-card-header { min-height: 66px; }
.ds-theme-2 .ds-application h3 { color:#fff; font-size: 15px; margin: 0; }
.ds-theme-2 .ds-application > :not(header) { margin-left: 18px; margin-right: 18px; }
.ds-theme-2 .ds-application > .ds-text-link { padding: 10px 18px; margin-left: 0; margin-right: 0; margin-bottom: -18px; width: 100%; background:var(--ds-card-footer); border-top:1px solid var(--sheet-border,#d0e6f0); }
.ds-theme-2 .ds-footer { margin-top: 0; }
.ds-theme-2 .ds-footer > a { color:var(--sheet-ink,#111); }

/* Branded masthead and compact component introduction. */
.ds-theme-2 .ds-brand-copy { transform: translateY(-3px); line-height: 1.2; }
.ds-theme-2 .ds-skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.ds-theme-2 .ds-brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; letter-spacing: .7px; }
.ds-theme-2 .ds-brand-sub .ds-dot { width: 7px; height: 7px; background:#41ec9d; box-shadow: 0 0 0 3px #0c9b6450,inset 0 1px #b5ffdc; }
.ds-theme-2 .ds-main { padding-top: 10px; }
.ds-theme-2 .ds-hero { padding: 12px 0 18px; }
.ds-theme-2 .ds-reference { padding: 13px 20px; }
.ds-theme-2 .ds-resources { grid-template-columns: repeat(var(--resource-count,5),minmax(0,1fr)); }
.ds-theme-2 .ds-resource-guide { --resource-wash: #eee5ff; --resource-edge: #d1bdf0; --resource-accent: #7653a8; }
.ds-theme-2 .ds-definition { border-top:1px solid var(--sheet-border,#b9dce9); margin-top: 20px; padding: 17px 2px 4px; line-height: 1.8; font-size: 14px; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-tabs { gap: 6px; padding: 7px 7px 0; margin: 20px 0 18px; border:1px solid var(--sheet-border,#c2dfec); border-bottom:3px solid #08a5e9; border-radius: 12px 12px 0 0; background:linear-gradient(var(--sheet-surface,#f5fcff),var(--sheet-soft,#eaf5fb)); overflow-x: auto; scrollbar-width: thin; }
.ds-theme-2 .ds-tabs a { padding: 10px 14px 12px; border:1px solid transparent; border-bottom:0; border-radius: 8px 8px 0 0; gap: 9px; flex-shrink: 0; font-size: 12px; }
.ds-theme-2 .ds-tabs a:hover { background:var(--sheet-soft,#dcefff); }
.ds-theme-2 .ds-tabs a[aria-selected=true],.ds-theme-2:not(.ds-tabs-ready) .ds-tabs a:first-child { background:var(--ds-protech-header); color:#fff; border-color:#0ba1dd; box-shadow: inset 0 1px #ffffffa0,0 -1px 7px #0088b21a; }
.ds-theme-2 .ds-tabs .ds-icon-tile { margin: 0; padding: 0; width: 27px; height: 27px; font-size: inherit; }
.ds-theme-2 .ds-tabs .ds-icon { color:var(--icon-ink); width: 18px; height: 18px; }
.ds-theme-2 [data-datasheet-panel] { scroll-margin-top: 12px; outline-offset: 3px; }
.ds-theme-2 #reference-tables,.ds-theme-2 #applications { margin-top: 0; content-visibility: visible; }
.ds-theme-2 .ds-package-view { background:var(--sheet-soft,#eff4f8); }
.ds-theme-2 .ds-package-view img { width: 100%; transform: scale(1.18); }
.ds-theme-2[data-model-presentation="semiconductor"] .ds-package-view img { width:100%; height:100%; object-fit:contain; transform:none; }
.ds-theme-2 .ds-pcb-view { background-image: linear-gradient(#6b86965c 1px,transparent 1px),linear-gradient(90deg,#6b86965c 1px,transparent 1px),linear-gradient(#6b86962e 1px,transparent 1px),linear-gradient(90deg,#6b86962e 1px,transparent 1px); }
.ds-theme-2 .ds-pcb-asset { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-bottom: 32px; }
.ds-theme-2 .ds-pcb-credit { position: absolute; right: 10px; bottom: 7px; display: flex; align-items: center; gap: 8px; padding: 2px 7px; color: #dfeaf1; background: #07131de6; border: 1px solid #415560; border-radius: 6px; font-size: 9px; }
.ds-theme-2 .ds-pcb-logo { display: block; width: 99px; height: 29px; overflow: hidden; }
.ds-theme-2 .ds-pcb-logo img { display: block; width: 141px; height: 41px; object-fit: none; object-position: left top; transform: scale(.7); transform-origin: top left; }

/* Detailed learning tabs: readable diagrams with contextual information. */
.ds-theme-2 .ds-learning-panel { border:1px solid var(--sheet-border,#c0ddec); border-radius: 12px; overflow: hidden; background:var(--sheet-surface,#fff); box-shadow: 0 3px 13px #163f5710; }
.ds-theme-2 .ds-learning-heading { display: flex; align-items: center; gap: 13px; padding: 16px 22px; background:var(--ds-protech-header); color:#fff; border-bottom:1px solid #078bd1; }
.ds-theme-2 .ds-learning-heading > .ds-icon-tile { width: 43px; height: 43px; }
.ds-theme-2 .ds-learning-heading .ds-icon { width: 27px; height: 27px; }
.ds-theme-2 .ds-learning-heading h2 { color:#fff; font-size: 20px; }
.ds-theme-2 .ds-learning-heading p { font-size: 12px; margin-top: 3px; }
.ds-theme-2 .ds-learning-heading > .ds-pill { margin-left: auto; }
.ds-theme-2 .ds-learning-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 22px; background:var(--ds-card-footer); border-top:1px solid var(--sheet-border,#c0ddec); font-size: 11px; }
.ds-theme-2 .ds-learning-footer :is(a,span) { display: flex; gap: 7px; align-items: center; }
.ds-theme-2 .ds-learning-footer a { color:var(--sheet-blue-ink,#075a83); font-weight: 600; }
.ds-theme-2 .ds-learning-footer .ds-icon { width: 16px; height: 16px; }
.ds-theme-2 .ds-pin-explorer { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(350px,1fr); gap: 32px; padding: 28px; }
.ds-theme-2 .ds-pin-map { padding: 18px 22px; border:1px solid var(--sheet-border,#d6e6f0); border-radius: 12px; background:radial-gradient(#7a9bad30 .7px,transparent .7px) center / 13px 13px,var(--sheet-surface,#f6faff); }
.ds-theme-2 .ds-pin-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 11px; }
.ds-theme-2 .ds-pin-legend span { display: flex; align-items: center; gap: 6px; }
.ds-theme-2 .ds-pin-legend i { width: 7px; height: 7px; border-radius: 50%; background:var(--pin); }
.ds-theme-2 .ds-pin-diagram-large { height: 365px; max-height: none; max-width: 550px; width: 100%; margin: 26px auto 20px; grid-template-columns: minmax(0,1fr) 160px minmax(0,1fr); }
.ds-theme-2 .ds-pin-diagram-large .ds-pin { font-size: 14px; gap: 9px; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-pin-diagram-large .ds-pin b { width: 42px; height: 24px; font-size: 12px; background: linear-gradient(90deg,#f9fbfc,#c8d1d9); border-color: #9baebb; color: #243a4a; box-shadow: inset 0 1px #fff; }
.ds-theme-2 .ds-pin-diagram-large .ds-pin[aria-pressed=true] b { background:var(--pin); color:#fff; border-color:var(--pin); }
.ds-theme-2 .ds-pin-diagram-large .ds-pin-body { background: linear-gradient(115deg,#30353d,#181d23); border-color: #4d5864; box-shadow: inset 4px 0 #ffffff0c,inset -4px 0 #0005,4px 6px 10px #1b304324; }
.ds-theme-2 .ds-pin-diagram-large .ds-pin-body strong { font-size: 21px; letter-spacing: 1px; color: #f3f5f7; }
.ds-theme-2 .ds-pin-diagram-large .ds-pin-body small { font-size: 8px; }
.ds-theme-2 .ds-chip-line { width: 62%; height: 1px; background: #ffffff21; margin: 12px 0; }
.ds-theme-2 .ds-pin-map-note { display: flex; gap: 8px; align-items: center; font-size: 11px; color:var(--sheet-muted,#334d60); }
.ds-theme-2 .ds-pin-map-note .ds-icon { width: 17px; }
.ds-theme-2 .ds-pin-information { align-self: center; min-width: 0; }
.ds-theme-2 .ds-pin-information article > header { display: flex; gap: 15px; align-items: center; border-bottom:1px solid var(--sheet-border,#dce8ef); padding-bottom: 21px; margin-bottom: 21px; }
.ds-theme-2 .ds-pin-number { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 15px; background:color-mix(in srgb,var(--pin),var(--sheet-surface,white) 90%); border:1px solid color-mix(in srgb,var(--pin),var(--sheet-surface,white) 65%); color:var(--pin); font-size: 30px; font-weight: 700; }
.ds-theme-2 .ds-kicker { color:var(--sheet-muted,#486175); font-size: 10px; letter-spacing: .9px; }
.ds-theme-2 .ds-pin-information h3 { font-size: 29px; line-height: 1.4; }
.ds-theme-2 .ds-pin-role { margin-left: auto; font-size: 11px; padding: 5px 9px; border-radius: 6px; background:var(--sheet-soft,#edf5fa); border:1px solid var(--sheet-border,#d5e4ee); }
.ds-theme-2 .ds-pin-information article > div { margin: 0 0 20px; }
.ds-theme-2 .ds-pin-information h4 { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 7px; }
.ds-theme-2 .ds-pin-information h4 .ds-icon { color:var(--sheet-blue-ink,#0a8eb8); width: 18px; height: 18px; }
.ds-theme-2 .ds-pin-information p { font-size: 13px; line-height: 1.8; }
.ds-theme-2 .ds-pin-electrical { padding: 14px 16px; border:1px solid var(--sheet-border,#d4e6f2); border-radius: 9px; background:var(--sheet-soft,#f1f8fd); }
.ds-theme-2 .ds-pin-pair { display: flex; align-items: center; gap: 12px; border:1px solid var(--sheet-border,#a8d3e8); border-radius: 8px; background:var(--sheet-soft,#eef9ff); color:var(--sheet-blue-ink,#084f72); padding: 10px 15px; text-align: left; }
.ds-theme-2 .ds-pin-pair span { font-size: 11px; }
.ds-theme-2 .ds-pin-pair strong { display: block; font-size: 14px; }
.ds-theme-2 .ds-internal-layout,.ds-theme-2 .ds-basic-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 24px; padding: 25px; }
.ds-theme-2 .ds-functional-diagram { padding: 22px; background:var(--sheet-surface,#f6faff); border:1px solid var(--sheet-border,#d9e7ef); border-radius: 12px; }
.ds-theme-2 .ds-pump-supply { display: flex; gap: 14px; align-items: center; justify-content: center; padding-bottom: 22px; border-bottom:1px dashed var(--sheet-border,#bdd6e4); margin-bottom: 22px; }
.ds-theme-2 .ds-pump-supply > span { max-width: 130px; font-size: 11px; }
.ds-theme-2 .ds-pump-supply button { background:var(--sheet-amber,#fff5d9); color:var(--sheet-amber-ink,#694808); border:1px solid var(--sheet-border,#e6c86f); border-radius: 9px; padding: 12px 18px; display: grid; grid-template-columns: 25px 1fr; column-gap: 9px; text-align: left; }
.ds-theme-2 .ds-pump-supply button small { grid-column: 2; font-size: 10px; }
.ds-theme-2 .ds-signal-columns { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; text-align: center; font-size: 10px; color:var(--sheet-muted,#486175); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .6px; }
.ds-theme-2 .ds-channel { display: grid; grid-template-columns: 1fr 1.1fr 1fr; width: 100%; gap: 16px; padding: 13px 10px; margin: 8px 0; align-items: center; background:var(--sheet-surface,#fff); border:1px solid var(--sheet-border,#d6e6ef); border-radius: 10px; color:var(--sheet-ink,#111); }
.ds-theme-2 .ds-channel strong { font-size: 13px; }
.ds-theme-2 .ds-channel small { display: block; font-size: 10px; color:var(--sheet-muted,#486175); }
.ds-theme-2 .ds-channel-stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; color:var(--sheet-blue-ink,#07769a); }
.ds-theme-2 .ds-channel-stage > span { padding: 8px; border-radius: 6px; background:var(--sheet-soft,#e5f6fc); font-size: 12px; font-weight: 600; }
.ds-theme-2 .ds-channel-stage i { display: block; font-size: 9px; font-style: normal; font-weight: 400; }
.ds-theme-2 .ds-channel.rx .ds-channel-stage { color:var(--sheet-muted,#7950b9); }
.ds-theme-2 .ds-channel.rx .ds-channel-stage > span { background:var(--sheet-violet,#f0e9fb); }
.ds-theme-2 .ds-channel.rx .ds-channel-stage > svg { transform: rotate(180deg); }
.ds-theme-2 [data-block][aria-pressed=true] { outline: 2px solid #069bcc; outline-offset: 2px; }
.ds-theme-2 .ds-block-details { align-self: center; padding: 10px 12px; }
.ds-theme-2 .ds-block-details .ds-icon-tile { width: 46px; height: 46px; margin-bottom: 12px; }
.ds-theme-2 .ds-block-details h3 { font-size: 23px; margin-bottom: 10px; }
.ds-theme-2 .ds-block-details p { font-size: 13px; line-height: 1.8; }
.ds-theme-2 .ds-block-details dl { margin: 22px 0; border-top:1px solid var(--sheet-border,#dbe8f0); }
.ds-theme-2 .ds-block-details dt { margin-top: 12px; font-size: 11px; color:var(--sheet-muted,#486175); }
.ds-theme-2 .ds-block-details dd { margin: 3px 0 12px; font-size: 13px; font-weight: 600; }
.ds-theme-2 .ds-basic-drawing { min-width: 0; background:var(--sheet-surface,#f8fcff); border:1px solid var(--sheet-border,#d7e8f1); border-radius: 10px; padding: 16px; }
.ds-theme-2 .ds-circuit-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-theme-2 .ds-circuit-filters button { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 11px; border:1px solid var(--sheet-border,#bed9e9); border-radius: 7px; background:var(--sheet-surface,#fff); color:var(--sheet-ink,#1a455b); }
.ds-theme-2 .ds-circuit-filters .ds-icon { width: 15px; height: 15px; }
.ds-theme-2 .ds-circuit-filters button[aria-pressed=true] { background:var(--sheet-soft,#def4ff); border-color:#079bcc; }
.ds-theme-2 .ds-circuit-svg { display: block; width: 100%; height: auto; margin-top: 20px; }
.ds-theme-2 .ds-circuit-svg text { fill: currentColor; stroke: none; font: 15px 'Segoe UI',sans-serif; }
.ds-theme-2 .ds-circuit-svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ds-theme-2 .ds-circuit-svg marker path { fill: currentColor; stroke: none; }
.ds-theme-2 .ds-circuit-svg .ds-schematic-chip { fill: #172e3e; font-size: 26px; font-weight: 700; text-anchor: middle; }
.ds-theme-2 .ds-circuit-svg .ds-schematic-small { font-size: 13px; }
.ds-theme-2 .ds-schematic-body { fill: #fff; stroke: #6d99b1; stroke-width: 2; }
.ds-theme-2 .ds-net-power { color:var(--sheet-muted,#bd4265); }
.ds-theme-2 .ds-net-pump { color:var(--sheet-amber-ink,#8e680e); }
.ds-theme-2 .ds-net-signals { color:var(--sheet-blue-ink,#087d9f); }
.ds-theme-2 [data-circuit-group] { transition: opacity .18s; }
.ds-theme-2 .ds-net-muted { opacity: .15; }
.ds-theme-2 .ds-diagram-caption { color:var(--sheet-muted,#486175); font-size: 11px; margin: 18px 0 0; line-height: 1.6; }
.ds-theme-2 .ds-wiring-notes h3 { margin: 5px 0 15px; font-size: 19px; }
.ds-theme-2 .ds-wiring-notes ol { padding-left: 24px; margin: 0 0 18px; }
.ds-theme-2 .ds-wiring-notes li { padding: 0 0 17px 6px; font-size: 13px; }
.ds-theme-2 .ds-wiring-notes li::marker { color:var(--sheet-blue-ink,#0588bd); font-weight: 700; }
.ds-theme-2 .ds-wiring-notes p { font-size: 12px; line-height: 1.7; margin-top: 4px; }
.ds-theme-2 .ds-wiring-tip { display: flex; gap: 11px; padding: 12px; border:1px solid var(--sheet-border,#b8e0d5); background:var(--sheet-mint,#edf9f5); border-radius: 9px; margin-bottom: 12px; }
.ds-theme-2 .ds-wiring-tip .ds-icon { color:var(--sheet-mint-ink,#07896b); }
@media(max-width:1100px) {
    .ds-theme-2 .ds-resources { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ds-theme-2 .ds-pin-explorer { gap: 20px; padding: 18px; grid-template-columns: 1fr 1fr; }
    .ds-theme-2 .ds-pin-diagram-large { grid-template-columns: minmax(0,1fr) 115px minmax(0,1fr); height: 340px; }
    .ds-theme-2 .ds-pin-diagram-large .ds-pin { font-size: 11px; gap: 4px; }
    .ds-theme-2 .ds-pin-diagram-large .ds-pin b { width: 28px; }
    .ds-theme-2 .ds-pin-diagram-large .ds-pin-body strong { font-size: 17px; }
    .ds-theme-2 .ds-internal-layout,.ds-theme-2 .ds-basic-layout { grid-template-columns: 1fr; }
    .ds-theme-2 .ds-block-details { padding: 10px; }
}
@media(max-width:700px) {
    .ds-theme-2 .ds-brand { font-size: 20px; }
    .ds-theme-2 .ds-brand-sub { font-size: 10px; letter-spacing: .4px; }
    .ds-theme-2 .ds-pin-explorer { grid-template-columns: 1fr; padding: 12px; }
    .ds-theme-2 .ds-pin-map { padding: 16px 10px; }
    .ds-theme-2 .ds-learning-heading { padding: 14px; }
    .ds-theme-2 .ds-learning-heading h2 { font-size: 17px; }
    .ds-theme-2 .ds-learning-heading > .ds-pill { display: none; }
    .ds-theme-2 .ds-learning-footer { flex-wrap: wrap; padding: 12px 15px; }
    .ds-theme-2 .ds-internal-layout,.ds-theme-2 .ds-basic-layout { padding: 12px; }
    .ds-theme-2 .ds-functional-diagram { padding: 12px; }
    .ds-theme-2 .ds-channel,.ds-theme-2 .ds-signal-columns { gap: 5px; grid-template-columns: 1fr 1.15fr 1fr; }
    .ds-theme-2 .ds-channel { padding: 10px 4px; }
    .ds-theme-2 .ds-channel-stage { gap: 3px; }
    .ds-theme-2 .ds-channel-stage > .ds-icon { width: 12px; height: 12px; }
    .ds-theme-2 .ds-channel-stage > span { padding: 6px 4px; font-size: 10px; }
    .ds-theme-2 .ds-channel strong { font-size: 10px; }
    .ds-theme-2 .ds-channel small { font-size: 8px; }
    .ds-theme-2 .ds-pump-supply { flex-wrap: wrap; gap: 10px; }
    .ds-theme-2 .ds-definition { font-size: 12px; }
    .ds-theme-2 .ds-resources { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ds-theme-2 .ds-resource:last-child { grid-column: 1 / -1; }
    .ds-theme-2 .ds-circuit-svg { min-width: 620px; }
    .ds-theme-2 .ds-basic-drawing { overflow-x: auto; }
}

@media(max-width:1250px) {
    .ds-theme-2 .ds-workbench { grid-template-columns: minmax(0,1.8fr) minmax(325px,1fr); }
    .ds-theme-2 :is(.ds-visual > header,.ds-section-heading) { padding-left: 12px; padding-right: 12px; }
    .ds-theme-2 :is(.ds-visual h2,.ds-section-heading h2) { font-size: 12px; }
    .ds-theme-2 .ds-section-heading { gap: 6px; }
    .ds-theme-2 .ds-stat-grid strong { font-size: 24px; }
    .ds-theme-2 .ds-stat-grid strong small { font-size: 10px; }
    .ds-theme-2 .ds-stat-icon { transform: scale(.85); transform-origin: top right; }
    .ds-theme-2 table :is(th,td) { padding: 9px 10px; }
}
@media(max-width:1000px) {
    .ds-theme-2 .ds-workbench { display: block; }
    .ds-theme-2 .ds-visuals { grid-template-rows: repeat(2,340px); }
    .ds-theme-2 .ds-insights { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; margin-top: 18px; align-items: stretch; }
    .ds-theme-2 :is(.ds-essentials,.ds-signal) { min-height: 360px; }
    .ds-theme-2 .ds-tables { grid-template-columns: 1fr; }
    .ds-theme-2 .ds-table-heading { min-height: 0; }
    .ds-theme-2 .ds-topbar nav[aria-label=Site] > a:not(.ds-button) { display: none; }
    .ds-theme-2 .ds-topbar nav[aria-label=Site] { gap: 12px; }
}
@media(max-width:680px) {
    .ds-theme-2 .ds-topbar { height: auto; min-height: 76px; padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
    .ds-theme-2 .ds-header-links { width: 100%; align-items: flex-end; gap: 10px; }
    .ds-theme-2 .ds-topbar nav { margin-left: auto; }
    .ds-theme-2 .ds-topbar .ds-breadcrumb > a:first-child { display: inline; }
    .ds-theme-2 .ds-visuals { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 335px; gap: 15px; }
    .ds-theme-2 .ds-insights { grid-template-columns: 1fr; gap: 15px; }
    .ds-theme-2 :is(.ds-essentials,.ds-signal) { min-height: 350px; }
    .ds-theme-2 :is(.ds-visual h2,.ds-section-heading h2) { font-size: 13px; }
    .ds-theme-2 .ds-stat-grid strong { font-size: 26px; }
    .ds-theme-2 .ds-pin-inspector .ds-t2-card-header { flex-wrap: wrap; gap: 3px 12px; }
    .ds-theme-2 .ds-t2-card-header > span:not(.ds-icon-tile) { margin-left: 0; font-size: 10px; }
    .ds-theme-2 .ds-table-heading { padding: 16px; }
    .ds-theme-2 .ds-table-heading h2 { font-size: 16px; }
    .ds-theme-2 .ds-reading { margin-top: 18px; }
    .ds-theme-2 .ds-reading > .ds-button { margin-left: 0; }
    .ds-theme-2 .ds-section-nav { gap: 16px; }
    .ds-theme-2 .ds-section-nav .ds-icon { width: 15px; height: 15px; }
    .ds-theme-2 .ds-resource { gap: 7px; }
    .ds-theme-2 .ds-resource .ds-icon-tile { flex-basis: 29px; width: 29px; height: 29px; border-radius: 7px; }
    .ds-theme-2 .ds-resource .ds-icon-tile .ds-icon { width: 18px; height: 18px; }
    .ds-theme-2 .ds-resource > span:not(.ds-icon-tile) { font-size: 10px; }
    .ds-theme-2 table { min-width: 520px; }
}
.ds-theme-2 .ds-detailed-internal { min-width: 0; padding: 20px 12px; background:linear-gradient(135deg,var(--sheet-surface,#fff),var(--sheet-soft,#f2f8fd)); }
.ds-internal-svg { display: block; width: 100%; max-height: 840px; color: #344d61; }
.ds-internal-svg text { font: 16px 'Segoe UI',Arial,sans-serif; fill: #183449; stroke: none; }
.ds-internal-svg .mi-heading { font-size: 17px; font-weight: 750; letter-spacing: .3px; }
.ds-internal-svg .mi-small { font-size: 13px; }
.ds-internal-svg .mi-chip-name { font-size: 11px; fill: #e6eff5; font-weight: 650; letter-spacing: 1px; }
.ds-internal-svg .mi-side-label { font-size: 13px; font-weight: 750; fill: #537489; }
.ds-internal-svg .mi-polarity { font-weight: 800; fill: #ad6512; }
.ds-internal-svg .mi-supply { color: #bc5d20; }
.ds-internal-svg .mi-pump-wires { color: #a77a1c; }
.ds-internal-svg :is(.mi-stage,.mi-supply,.mi-pump-wires) > path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-internal-svg :is(.mi-stage,.mi-supply) > circle { fill: currentColor; }
.ds-internal-svg .mi-stage { cursor: pointer; }
.ds-internal-svg .mi-stage > rect { stroke: transparent; stroke-width: 2; }
.ds-theme-2 .ds-internal-svg [data-block][aria-pressed=true] { outline: none; }
.ds-internal-svg .mi-stage:hover > rect,.ds-internal-svg .mi-stage[aria-pressed=true] > rect { stroke: #079dcb; fill: #ffffff2b; }
.ds-internal-svg .mi-stage:focus-visible { outline: 3px solid #079dcb; outline-offset: 3px; }
.ds-internal-svg .mi-tx { color: #007ead; }
.ds-internal-svg .mi-rx { color: #7c4ab6; }
.ds-internal-svg .mi-stage .mi-amplifier { fill: currentColor; fill-opacity: .22; }
.ds-internal-svg .mi-stage .mi-bubble { fill: #fff; stroke: currentColor; stroke-width: 2.5; }
.ds-theme-2 .ds-block-details { align-self: start; padding-top: 35px; }
.ds-internal-reference-note { padding: 18px; border:1px solid var(--sheet-border,#d7e6ef); border-radius: 12px; background:var(--sheet-soft,#f4faff); margin-top: 26px; }
.ds-internal-reference-note strong { font-size: 13px; }
.ds-theme-2 .ds-internal-reference-note p { font-size: 12px; margin-top: 8px; }
.ds-theme-2 .ds-basic-layout { grid-template-columns: minmax(0,2.7fr) minmax(280px,1fr); }
.ds-theme-2 .ds-basic-drawing { padding: 18px 12px; background:linear-gradient(120deg,var(--sheet-surface,#fff),var(--sheet-soft,#f3f9fd)); }
.ds-basic-real-svg { display: block; width: 100%; height: auto; margin-top: 24px; }
.ds-basic-real-svg text { font: 16px 'Segoe UI',Arial,sans-serif; fill: #183449; stroke: none; }
.ds-basic-real-svg .mb-heading { font-size: 17px; font-weight: 750; letter-spacing: .2px; }
.ds-basic-real-svg .mb-caption { font-size: 13px; fill: #506b7e; }
.ds-basic-real-svg .mb-wire { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-basic-real-svg .mb-wire-halo { fill: none; stroke: #f8fcff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ds-basic-real-svg .mb-power { color: #536b7d; }
.ds-basic-real-svg .mb-pump { color: #c18617; }
.ds-basic-real-svg .mb-tx { color: #0398a1; }
.ds-basic-real-svg .mb-rx { color: #9060c5; }
.ds-basic-real-svg :is(.mb-power,.mb-tx,.mb-rx) circle { fill: currentColor; }
.ds-basic-real-svg .mb-wire-label { font-size: 14px; font-weight: 700; fill: currentColor; paint-order: stroke; stroke: #f8fcff; stroke-width: 5px; stroke-linejoin: round; }
.ds-basic-real-svg .mb-plus { font-size: 17px; font-weight: 800; fill: #b05f13; }
.ds-basic-real-svg .mb-pin-label { fill: #dbe7ef; font-size: 10px; }
.ds-basic-real-svg .mb-pin-number { font-size: 12px; fill: #2e4a60; paint-order: stroke; stroke: #f8fcff; stroke-width: 4px; }
.ds-basic-real-svg .mb-chip-name { fill: #fff; font-size: 28px; font-weight: 750; letter-spacing: 3px; }
.ds-basic-real-svg .mb-chip-small { fill: #a6b8c6; font-size: 10px; letter-spacing: 1px; }
.ds-basic-real-svg .mb-board-label { fill: #e9f8ff; font-size: 13px; font-weight: 650; }
.ds-basic-real-svg .mb-socket-number { fill: #f5e2aa; font-size: 11px; }
.ds-working-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr); gap: 30px; padding: 28px; align-items: start; }
.ds-featured-image { margin: 0; border:1px solid var(--sheet-border,#cce2ee); border-radius: 13px; overflow: hidden; background:var(--sheet-soft,#f4faff); position: sticky; top: 20px; }
.ds-featured-image img { display: block; width: 100%; height: auto; }
.ds-featured-image figcaption { display: flex; gap: 9px; align-items: center; padding: 14px 18px; font-size: 11px; color:var(--sheet-muted,#34556d); border-top:1px solid var(--sheet-border,#d6e7f1); }
.ds-working-explanation > section { position: relative; padding: 0 0 20px 53px; margin-bottom: 20px; border-bottom:1px dashed var(--sheet-border,#d2e3ed); }
.ds-working-explanation > section > .ds-icon-tile { position: absolute; left: 0; top: 0; width: 37px; height: 37px; }
.ds-working-explanation h3 { font-size: 17px; margin: 5px 0 9px; }
.ds-working-explanation p { font-size: 13px; line-height: 1.8; margin-top: 8px; }
.ds-working-takeaway { display: flex; gap: 12px; padding: 16px; background:var(--sheet-mint,#edfaf5); border:1px solid var(--sheet-border,#bee4d3); border-radius: 10px; }
.ds-working-takeaway p { margin: 0; }
.ds-working-takeaway > svg { color: #208969; margin-top: 4px; }
@media(max-width:1000px) {
    .ds-theme-2 .ds-basic-layout,.ds-working-layout { grid-template-columns: 1fr; }
    .ds-featured-image { position: static; }
}
@media(max-width:700px) {
    .ds-theme-2 .ds-detailed-internal { overflow-x: auto; }
    .ds-internal-svg { min-width: 570px; }
    .ds-basic-real-svg { min-width: 800px; }
    .ds-theme-2 .ds-basic-drawing { overflow-x: auto; }
    .ds-working-layout { padding: 16px; gap: 24px; }
}
@media print {
    .ds-theme-2 .ds-workbench,.ds-theme-2 .ds-insights,.ds-theme-2 .ds-tables { display: block; }
    .ds-theme-2 :is(.ds-card,.ds-reference-section) { margin-bottom: 20px; }
    .ds-theme-2 table { min-width: 0; }
}
/* Package maps use explicit pin positions, with bounded scrolling for large ICs. */
.ds-theme-2 .ds-pin-diagram { grid-template-areas: "left body right"; align-self: center; }
.ds-theme-2 .ds-pin-diagram > .ds-pin-body { grid-area: body; }
.ds-theme-2 .ds-pin-column.left { grid-area: left; }
.ds-theme-2 .ds-pin-column.right { grid-area: right; }
.ds-theme-2 .ds-pin-column.top { grid-area: top; }
.ds-theme-2 .ds-pin-column.bottom { grid-area: bottom; }
.ds-theme-2 .ds-pin-column:empty { display: none; }
.ds-theme-2 .ds-pin-column { grid-template-rows: repeat(var(--pin-rows),1fr); }
.ds-theme-2 .ds-pin-diagram-many { height: calc(var(--pin-rows) * 27px); min-height: calc(var(--pin-rows) * 27px); max-height: none; flex-shrink: 0; }
.ds-theme-2 .ds-pin-viewport { overflow: auto; }
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram-many:not([hidden])) { align-items: flex-start; padding-block: 18px; }
.ds-theme-2 .ds-pin-map { overflow: auto; max-height: 650px; }
.ds-theme-2 .ds-pin-diagram-quad { grid-template-areas: ". top ." "left body right" ". bottom ."; grid-template-columns: 90px minmax(160px,1fr) 90px; grid-template-rows: 60px 1fr 60px; width: max(100%,calc(var(--pin-rows) * 48px + 180px)); max-width: none; min-width: 340px; height: calc(var(--pin-rows) * 36px + 120px); min-height: 280px; }
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram-quad:not([hidden])) { align-items:flex-start; justify-content:flex-start; }
.ds-theme-2 .ds-pin-column:is(.top,.bottom) { display:flex; justify-content:space-around; }
.ds-theme-2 .ds-pin-column:is(.top,.bottom) .ds-pin { flex-direction:column; padding:4px; min-height:55px; }
.ds-theme-2 .ds-pin-column:is(.top,.bottom):empty { display:none; }
/* PLCC20 overview fits all four pin banks without cropping its bottom row. */
.ds-theme-2 .ds-pin-diagram[data-model-style="plcc20-fn"] {grid-template-columns:100px 200px 100px;grid-template-rows:60px 200px 60px;width:400px;min-width:400px;max-width:400px;height:320px;min-height:320px;max-height:320px;margin:auto;}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="plcc20-fn"] {zoom:.65;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="plcc20-fn"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2 .ds-view-dialog .ds-pin-diagram[data-model-style="plcc20-fn"] {zoom:1;}
/* Four-sided TQFP presentation: keep the body square and every lead visible.
   This is page artwork only; circuit geometry and pin pitch remain untouched. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="tqfp32"] {
    grid-template-columns:140px 252px 140px;grid-template-rows:120px 252px 120px;
    width:532px;min-width:532px;max-width:532px;height:492px;min-height:492px;max-height:492px;
    margin:12px auto;flex-shrink:0;
}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="tqfp32"] {zoom:.44;margin:0 auto;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="tqfp32"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2[data-selected-package] .ds-view-dialog .ds-pin-diagram[data-model-style="tqfp32"] {zoom:1;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-body {width:100%;height:100%;min-width:0;min-height:0;padding:16px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-body strong {font-size:18px;letter-spacing:.4px;text-align:center;overflow-wrap:anywhere;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-notch {display:none;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-column {padding:0;gap:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin {font-size:12px;line-height:1.25;gap:5px;padding:0;min-height:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin b {width:25px;height:18px;flex:none;font-size:11px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-column:is(.top,.bottom) {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:1fr;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-column:is(.top,.bottom) .ds-pin {justify-content:flex-end;align-items:center;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-column.bottom .ds-pin {flex-direction:column-reverse;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp32"] .ds-pin-column:is(.top,.bottom) .ds-pin span {writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:94px;overflow:hidden;text-overflow:ellipsis;}
.ds-theme-2 [data-avr-lab] .ds-adc-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:560px){.ds-theme-2 [data-avr-lab] .ds-adc-fields {grid-template-columns:1fr;}}
.ds-theme-2 .ds-pin-diagram[hidden] { display: none !important; }
.ds-theme-2 { --pin:#33849a; }

/* Compact single-edge pin maps keep every numbered lead inside its view. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="adxl345-lga"] {grid-template-columns:150px 180px 150px;grid-template-rows:65px 300px 65px;width:480px;min-width:480px;max-width:480px;height:430px;min-height:430px;max-height:430px;margin:12px auto;flex-shrink:0;}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="adxl345-lga"] {zoom:.55;margin:0 auto;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="adxl345-lga"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2[data-selected-package] .ds-view-dialog .ds-pin-diagram[data-model-style="adxl345-lga"] {zoom:1;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-pin-body {width:100%;height:100%;min-width:0;min-height:0;padding:12px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-pin-body strong {font-size:22px;letter-spacing:.4px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-notch {display:none;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-pin-column {padding:0;gap:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-pin {font-size:13px;gap:5px;min-height:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="adxl345-lga"] .ds-pin-column.bottom .ds-pin {flex-direction:column-reverse;}
.ds-theme-2 .ds-pin-diagram[data-single-row="true"] { grid-template-columns: 24px minmax(160px,1fr) 24px; grid-template-rows: 0 minmax(100px,1fr) 60px; width:100%; max-width:420px; min-width:0; height:220px; min-height:220px; margin:0 auto; }
.ds-theme-2 .ds-pin-diagram-large[data-single-row="true"] {height:300px;min-height:300px;margin:24px auto;}
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram[data-single-row="true"]:not([hidden])){align-items:center;justify-content:center;}

/* Reviewed package geometry and circuit pages. */
.ds-pin-diagram[data-package-shape="to92"] .ds-pin-body{border-radius:90px 90px 9px 9px;background:linear-gradient(120deg,#36404a,#151c22);border:2px solid #60717d;min-height:120px;box-shadow:inset 0 3px 0 #ffffff26,0 5px 12px #152b3e20;justify-content:center}
.ds-pin-diagram[data-package-shape="to92"] .ds-notch,.ds-pin-diagram[data-package-shape="to92"] .ds-pin-one{display:none}
.ds-pin-diagram[data-package-shape="to92"] .ds-pin-body>small:last-of-type{font-size:9px;letter-spacing:.03em;line-height:1.4}
.ds-pin-diagram[data-package-shape="to92"] .ds-pin-column.bottom{gap:12px}
.ds-pin-diagram[data-package-shape="to92"] .ds-pin-column.bottom .ds-pin{min-width:64px}
.ds-pin-diagram[data-package-shape="to92"] .ds-pin b{background:linear-gradient(90deg,#9ba6af,#eef2f4,#aab5bd);border-color:#8296a5;color:#1a3141}
.ds-reviewed-circuit{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:26px;padding:24px}
.ds-reviewed-circuit figure{margin:0;border:1px solid var(--sheet-border,#c9dfeb);border-radius:12px;background:var(--sheet-surface,#fff);overflow:hidden;align-self:start}
.ds-reviewed-circuit img{display:block;width:100%;height:auto}
.ds-reviewed-circuit figcaption{font-size:12px;padding:12px 18px;background:var(--sheet-soft,#edf7fd);border-top:1px solid var(--sheet-border,#d7e7ee);line-height:1.6}
.ds-reviewed-circuit aside section{padding:18px 20px;border:1px solid var(--sheet-border,#d8e8f0);border-radius:12px;margin-bottom:16px;background:var(--sheet-surface,#fff)}
.ds-reviewed-circuit aside .ds-icon-tile{float:left;margin-right:12px}.ds-reviewed-circuit h3{margin:4px 0 14px;color:var(--sheet-ink,#111);font-size:18px}.ds-reviewed-circuit p{font-size:14px;line-height:1.8;color:var(--sheet-ink,#182634)}
@media(max-width:900px){.ds-reviewed-circuit{grid-template-columns:1fr;padding:14px}.ds-pin-diagram[data-package-shape="to92"] .ds-pin-column.bottom{gap:4px}}
/* TO-92 bottom view: D-shaped package cross-section and three selectable lead ends. */
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] {display:block;position:relative;width:100%;max-width:520px;min-height:0;height:auto;aspect-ratio:520/310;margin:0 auto;}
.ds-to92-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ds-metal-can-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ds-pin-diagram[data-model-style="to18-metal"],.ds-pin-diagram[data-model-style="to3-metal"]{position:relative;display:block;aspect-ratio:520/310;min-height:240px}
.ds-pin-diagram[data-model-style="to18-metal"] .ds-pin-body,.ds-pin-diagram[data-model-style="to3-metal"] .ds-pin-body{display:none}
.ds-metal-can-pin{position:absolute!important;transform:translate(-50%,-50%);display:flex!important;flex-direction:column;align-items:center;gap:4px;min-width:44px;background:transparent}
.ds-metal-can-pin b{border-radius:50%;background:linear-gradient(120deg,#adbfc9,var(--sheet-surface,#fff) 40%,#c5d1d9);color:var(--sheet-ink,#163f54);border:1px solid #6f8999;min-width:28px;min-height:28px;display:grid;place-items:center}
.ds-metal-can-pin span{color:var(--sheet-ink,#123c52);font-weight:700;font-size:12px;white-space:nowrap}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin-body{position:absolute;left:20%;top:27%;width:60%;height:19%;min-height:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin-body strong{font-size:clamp(12px,1.2vw,18px);margin:0;letter-spacing:.07em}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin-body small:last-of-type{display:none}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin-column.bottom{position:absolute;display:flex;left:20%;top:52%;width:60%;height:43%;padding:0;gap:0}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin-column.bottom .ds-pin{position:relative;flex:1;display:flex;flex-direction:column-reverse;justify-content:space-between;align-items:center;min-width:0;min-height:0;padding:0 0 2px;border:0;background:none}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin b{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;border:2px solid #8d9ba5;background:radial-gradient(circle at 35% 25%,#fff,#cbd2d7 65%,#8b9ba7);color:#233441;box-shadow:0 2px 3px #0003}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin[aria-pressed="true"] b{outline:3px solid #00a9db;outline-offset:3px}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin span{font-weight:650;background:var(--sheet-surface,#f8fbff);padding:4px 7px;border-radius:5px;font-size:12px}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin[aria-pressed="true"] span{color:var(--sheet-blue-ink,#007ba8);background:var(--sheet-soft,#e4f7ff)}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to92"] .ds-pin::after{content:"";position:absolute;top:36px;bottom:28px;left:50%;border-left:1px dashed #8597a2;pointer-events:none}
.ds-amplifier-lab{margin:0 24px 28px;border:1px solid var(--sheet-border,#b7ddeb);border-radius:14px;overflow:hidden;box-shadow:0 5px 18px #17617f0d}
.ds-amplifier-body{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:28px;padding:24px;background:linear-gradient(125deg,var(--sheet-surface,#f5fbff),var(--sheet-surface,#fff))}
.ds-amplifier-controls{display:flex;flex-direction:column;gap:18px;padding:20px;background:var(--sheet-surface,#fff);border:1px solid var(--sheet-border,#d7e8f1);border-radius:12px;align-self:start}
.ds-amplifier-controls label{font-size:14px;font-weight:650;color:var(--sheet-ink,#151b20)}.ds-amplifier-controls label span{display:block;font-size:12px;font-weight:400;color:var(--sheet-muted,#526a79);margin:4px 0 7px}
.ds-amplifier-controls input[type=number]{display:block;width:100%;box-sizing:border-box;border:1px solid var(--sheet-border,#a5c9db);border-radius:8px;background:var(--sheet-surface,#f8fcff);padding:10px 12px;font:600 18px 'Segoe UI',sans-serif;color:var(--sheet-ink,#193949)}
.ds-amplifier-controls input[aria-invalid=true]{border-color:#cb5361;box-shadow:0 0 0 2px #d7456015}.ds-amplifier-controls input[type=range]{width:100%;accent-color:#00a7d5;margin-top:-10px}
.ds-amplifier-controls input:focus-visible{outline:2px solid #009bcc;outline-offset:3px}.ds-amplifier-controls .ds-button{justify-content:center}
.ds-amplifier-meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ds-amplifier-meters>div{padding:14px;border:1px solid var(--sheet-border,#c6dfea);border-radius:10px;background:var(--sheet-soft,#eaf7ff)}.ds-amplifier-meters>div:nth-child(2){background:var(--sheet-violet,#f1ecff)}.ds-amplifier-meters>div:nth-child(3){background:var(--sheet-mint,#e7f8ee)}
.ds-amplifier-meters span{display:block;font-size:12px;color:var(--sheet-ink,#29495c)}.ds-amplifier-meters strong{display:block;font-size:clamp(20px,2vw,28px);line-height:1.5;color:var(--sheet-blue-ink,#113d57)}
.ds-amplifier-status{padding:12px 15px;border:1px solid var(--sheet-border,#bfe0d0);border-radius:9px;background:var(--sheet-mint,#eefaf4);min-height:44px;color:var(--sheet-ink,#155d42);font-size:14px}.ds-amplifier-lab[data-state=high] .ds-amplifier-status,.ds-amplifier-lab[data-state=low] .ds-amplifier-status,.ds-amplifier-lab[data-state=common-mode] .ds-amplifier-status{background:var(--sheet-amber,#fff5df);border-color:var(--sheet-border,#edce87);color:var(--sheet-amber-ink,#704915)}.ds-amplifier-lab[data-state=invalid] .ds-amplifier-status{background:var(--sheet-rose,#fff0f2);border-color:var(--sheet-border,#e9b5bf);color:var(--sheet-muted,#922e42)}
.ds-amplifier-chart{width:100%;max-height:340px;display:block}.ds-amplifier-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--sheet-muted,#405b6c)}.ds-amplifier-legend span{display:inline-flex;align-items:center;gap:6px}.ds-amplifier-legend i{width:16px;border-top:3px solid #02a5cd}.ds-amplifier-legend span:nth-child(2) i{border-top:2px dashed #899eac}.ds-amplifier-legend span:nth-child(3) i{height:10px;border:1px solid var(--sheet-border,#e0bf7d);background:var(--sheet-amber,#fff0d5)}
.ds-amplifier-formula{font-size:15px;font-weight:650;color:var(--sheet-ink,#204c64)}.ds-amplifier-results .ds-note{line-height:1.65}
@media(max-width:760px){.ds-amplifier-lab{margin:0 12px 18px}.ds-amplifier-body{grid-template-columns:1fr;padding:14px;gap:18px}.ds-amplifier-meters{gap:6px}.ds-amplifier-meters>div{padding:10px 7px}.ds-amplifier-meters strong{font-size:20px}.ds-amplifier-lab .ds-learning-heading .ds-pill{display:none}}

/* Equal desktop columns: introduction left, compact two-by-two views right. */
.ds-theme-2 .ds-intro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;padding-top:12px}
.ds-theme-2 .ds-intro-copy{min-width:0;padding-right:18px}
.ds-theme-2 :is(.ds-intro-copy,.cl-hero) .ds-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 12px;font-size:11px;line-height:1.5;color:var(--sheet-muted,#536e80)}
.ds-theme-2 :is(.ds-intro-copy,.cl-hero) .ds-breadcrumb a:hover{color:var(--sheet-blue-ink,#008bc2);text-decoration:underline}
.ds-theme-2 .ds-intro-copy .ds-hero{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:0 0 20px}
.ds-theme-2 .ds-intro-copy .ds-reference{align-self:flex-start;max-width:100%;align-items:center;gap:12px;padding:12px 15px;border-radius:10px;box-shadow:none}
.ds-theme-2 .ds-intro-copy .ds-reference>div{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:3px 9px;min-width:0}
.ds-theme-2 .ds-intro-copy .ds-reference strong{grid-column:1/-1;font-size:12px}
.ds-theme-2 .ds-intro-copy .ds-reference p{margin:0;font-size:11px}
.ds-theme-2 .ds-intro-copy .ds-reference a{grid-column:1/-1;margin:2px 0 0}
.ds-theme-2 .ds-intro-copy .ds-resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ds-theme-2 .ds-intro-copy .ds-resource{padding:12px 11px;gap:9px;min-width:0}
.ds-theme-2 .ds-intro-copy .ds-resource>span:not(.ds-icon-tile){min-width:0;font-size:12px}
.ds-theme-2 .ds-intro-copy .ds-resource:last-child{grid-column:auto}
.ds-theme-2 .ds-intro-copy .ds-resource:last-child:nth-child(odd){grid-column:1/-1}
.ds-theme-2 .ds-intro-copy .ds-definition{border:0;margin:0 0 24px;padding:0;max-width:60ch;font-size:15px;line-height:1.85;text-align:justify;text-wrap:wrap}
.ds-theme-2 .ds-intro-copy .ds-definition strong{font-weight:700;color:var(--sheet-ink,#111)}
.ds-theme-2 .ds-intro-grid>.ds-visuals{grid-row:auto;grid-template-rows:repeat(2,320px)}
.ds-theme-2 .ds-intro-grid .ds-visual{container:datasheet-view / inline-size}
.ds-theme-2 .ds-visual>header:has(.ds-segmented){grid-template-columns:auto minmax(0,1fr) 28px;gap:6px;padding-inline:10px}
.ds-theme-2 .ds-visual>header:has(.ds-segmented) h2{font-size:14px;white-space:nowrap;gap:6px}
.ds-theme-2 .ds-visual>header .ds-segmented{justify-self:center}
.ds-theme-2 .ds-visual>header .ds-segmented button{padding-inline:8px;gap:4px}
.ds-package-short{display:none}
@container datasheet-view (max-width:420px){
    .ds-theme-2 .ds-visual>header .ds-segmented button>.ds-icon{display:none}
    .ds-theme-2 .ds-visual>header .ds-icon-tile{width:28px;height:28px}
}
@container datasheet-view (max-width:340px){
    .ds-theme-2 .ds-visual>header{padding-inline:8px}
    .ds-theme-2 .ds-visual>header:has(.ds-segmented){grid-template-columns:auto minmax(0,1fr) 24px;gap:4px}
    .ds-theme-2 .ds-visual>header h2,.ds-theme-2 .ds-visual>header:has(.ds-segmented) h2{font-size:12px;gap:4px}
    .ds-theme-2 .ds-visual>header .ds-icon-tile{width:24px;height:24px}
    .ds-theme-2 .ds-visual>header .ds-icon-tile .ds-icon{width:17px;height:17px}
    .ds-theme-2 .ds-visual>header .ds-icon-button{width:24px;height:24px}
    .ds-theme-2 .ds-visual>header .ds-segmented button{font-size:10px;padding-inline:5px;min-height:28px}
    .ds-theme-2 .ds-visual>header .ds-package-full{display:none}
    .ds-theme-2 .ds-visual>header .ds-package-short{display:inline}
}

/* One frame belongs to the tabs. Contents retain useful labels and controls,
   without another blue title bar or card frame inside each selected pane. */
.ds-theme-2 .ds-tab-container{margin-top:24px;border:1px solid var(--sheet-border,#bdddeb);border-radius:12px;background:var(--sheet-surface,#fff);box-shadow:0 4px 18px #174d6810;overflow:hidden;min-width:0}
.ds-theme-2 .ds-tab-container>.ds-tabs{margin:0;border:0;border-bottom:3px solid #08a5e9;border-radius:0;gap:6px}
.ds-theme-2 .ds-tab-content{min-width:0}
.ds-theme-2 .ds-tab-content>[data-datasheet-panel]{margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0}
.ds-theme-2 .ds-tab-content .ds-content-heading{display:flex;align-items:center;gap:12px;padding:0 0 16px;background:none;border:0;box-shadow:none;min-height:0;height:auto;color:var(--sheet-ink,#111)}
.ds-theme-2 .ds-content-heading h2{font-size:18px;color:var(--sheet-ink,#111);text-shadow:none;display:flex;align-items:center;gap:10px}
.ds-theme-2 .ds-content-heading h3{font-size:17px;color:var(--sheet-ink,#111);text-shadow:none}
.ds-theme-2 .ds-content-heading p{font-size:12px;color:var(--sheet-muted,#426073);margin-top:4px}
.ds-theme-2 .ds-content-heading>.ds-pill{margin-left:auto;background:var(--sheet-soft,#edf7ff)}
.ds-theme-2 .ds-tab-content .ds-insights{display:grid;grid-row:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:28px;margin:0;padding:26px;align-items:start}
.ds-theme-2 .ds-tab-content :is(.ds-essentials,.ds-signal){min-height:0}
.ds-theme-2 .ds-tab-content .ds-card-body{padding:0 0 20px}
.ds-theme-2 .ds-tab-content .ds-info-footer{padding:12px 0;background:none}
.ds-theme-2 .ds-tab-content :is(.ds-pin-map,.ds-functional-diagram,.ds-basic-drawing,.ds-featured-image,.ds-reviewed-circuit figure){border:0;border-radius:0;box-shadow:none;background:transparent}
.ds-theme-2 .ds-tab-content .ds-reviewed-circuit aside section{border:0;border-bottom:1px dashed var(--sheet-border,#d0e3ed);border-radius:0;padding:0 0 20px;background:none}
.ds-theme-2 .ds-tab-content .ds-tables{padding:26px;gap:28px}
.ds-theme-2 .ds-tab-content .ds-table-caption{padding:0 0 15px}
.ds-theme-2 .ds-tab-content .ds-table-caption>.ds-icon-tile{width:44px;height:44px}
.ds-theme-2 .ds-tab-content .ds-table-tools{padding:12px 0}
.ds-theme-2 .ds-tab-content .ds-applications{padding:26px;gap:28px}
.ds-theme-2 .ds-tab-content .ds-application{padding:0;border:0;border-radius:0;box-shadow:none;background:none}
.ds-theme-2 .ds-tab-content .ds-application>p{padding:0}
.ds-theme-2 .ds-tab-content .ds-application>.ds-text-link{margin:16px 0}
.ds-theme-2 .ds-tab-content .ds-application>.ds-button{margin:16px 0 0}
.ds-theme-2 .ds-tab-content .ds-amplifier-lab{border:0;border-top:1px solid var(--sheet-border,#cde2ed);border-radius:0;box-shadow:none;padding-top:24px}
.ds-theme-2 .ds-tab-content .ds-amplifier-body{padding:0;background:none}
@media(max-width:1250px){.ds-theme-2 .ds-intro-copy{padding-right:0}.ds-theme-2 .ds-intro-copy .ds-resource{gap:6px;padding:10px 8px}.ds-theme-2 .ds-intro-copy .ds-resource>.ds-icon:last-child{display:none}}
@media(max-width:1000px){.ds-theme-2 .ds-intro-grid{grid-template-columns:1fr;gap:24px}.ds-theme-2 .ds-tab-content .ds-tables{grid-template-columns:1fr}}
@media(max-width:680px){.ds-theme-2 .ds-intro-grid>.ds-visuals{grid-template-rows:none;grid-auto-rows:320px}.ds-theme-2 .ds-tab-content .ds-insights{grid-template-columns:1fr}.ds-theme-2 .ds-tab-content :is(.ds-insights,.ds-tables,.ds-applications){padding:18px;gap:24px}.ds-theme-2 .ds-intro-copy .ds-reference{margin-top:0}.ds-theme-2 .ds-intro-copy .ds-definition{font-size:14px}.ds-theme-2 .ds-tab-container{margin-top:20px}.ds-theme-2 .ds-amplifier-lab .ds-content-heading>.ds-pill{display:none}}
@media print{.ds-theme-2 .ds-intro-grid{display:block}.ds-theme-2 .ds-tab-container{border:0;box-shadow:none}.ds-theme-2 .ds-tab-content>[data-datasheet-panel]{display:block!important;break-inside:auto}}

/* Showcase and Compact share content, controls and responsive card sizing. */
.ds-theme-2 .ds-main{container:datasheet-page / inline-size}
.ds-theme-2[data-layout] .ds-visual{height:320px;container:datasheet-view / inline-size}
.ds-theme-2 .ds-detail-views{--detail-card-height:329px;--detail-divider-gap:20px;grid-row:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:var(--detail-card-height);gap:18px;margin-top:var(--detail-divider-gap);padding-top:var(--detail-divider-gap);border-top:1px solid var(--sheet-border,#b9dce9)}
@media(min-width:1001px){
}
@media(max-width:1000px){
    .ds-theme-2 .ds-detail-views{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:var(--detail-card-height)}
    .ds-theme-2 .ds-detail-views>[data-view="footprint"]{grid-column:1/-1;width:calc((100% - 18px)/2);justify-self:end}
}
@media(max-width:680px){
    .ds-theme-2 .ds-detail-views{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:var(--detail-card-height,320px)}
    .ds-theme-2 .ds-detail-views>[data-view="footprint"]{grid-column:auto;width:100%}
}
@media print{.ds-theme-2[data-layout] .ds-intro-grid{display:block}.ds-theme-2 .ds-detail-views{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Readable tab surfaces: drawings and explanations have a clear separation. */
.ds-theme-2 .ds-pin-explorer{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:26px}
.ds-theme-2 .ds-tab-content .ds-pin-explorer .ds-pin-map{margin-right:28px;padding:22px;border:1px solid var(--sheet-border,#d1e4ef);border-radius:12px;background:radial-gradient(#81a9c025 .7px,transparent .7px) center/14px 14px,var(--sheet-surface,#f8fcff)}
.ds-theme-2 .ds-pin-diagram-large .ds-pin-body small{max-width:calc(100% - 12px);text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-information{align-self:stretch;display:flex;align-items:center;border-left:1px solid var(--sheet-border,#bfdce9);padding:8px 0 8px 28px}
.ds-theme-2 .ds-pin-information>article{width:100%;min-width:0}
.ds-theme-2 .ds-pin-information article>div{padding:14px 16px;margin-bottom:14px;border:1px solid var(--sheet-border,#dceaf2);border-radius:10px;background:var(--sheet-surface,#f7fbfe)}
.ds-theme-2 .ds-pin-information article>.ds-pin-connection{background:var(--sheet-mint,#f0faf6);border-color:var(--sheet-border,#cbe8dc)}
.ds-theme-2 .ds-pin-information article>.ds-pin-electrical{background:var(--sheet-amber,#fff8e9);border-color:var(--sheet-border,#efdfb9)}
.ds-theme-2 .ds-tab-content :is(.ds-working-explanation,.ds-reviewed-circuit>aside,.ds-internal-layout>aside,.ds-wiring-notes){border-left:1px solid var(--sheet-border,#c9e1ed);padding-left:24px;min-width:0}
.ds-theme-2 .ds-tab-content .ds-applications{gap:20px}
.ds-theme-2 .ds-tab-content .ds-application{padding:20px;border:1px solid var(--sheet-border,#d5e6ef);border-radius:12px;background:linear-gradient(145deg,var(--sheet-surface,#f8fcff),var(--sheet-surface,#fff) 60%)}
.ds-theme-2 .ds-tab-content .ds-learning-footer{flex-wrap:wrap;line-height:1.6}
.ds-theme-2 .ds-tab-content .ds-specifications-grid{gap:20px;align-items:stretch}
.ds-theme-2 .ds-specification-card{min-width:0;overflow:hidden;border:1px solid var(--sheet-border,#cfE3ef);border-radius:12px;background:var(--sheet-surface,#fff);box-shadow:0 3px 12px #174d6808}
.ds-theme-2 .ds-specification-card>.ds-content-heading{padding:16px 20px;border-bottom:1px solid var(--sheet-border,#e0edf4);background:linear-gradient(110deg,var(--sheet-soft,#f2faff),var(--sheet-surface,#fff));gap:12px}
.ds-theme-2 .ds-specification-card>.ds-content-heading h2{font-size:16px;letter-spacing:0}
.ds-theme-2 .ds-specification-card>.ds-card-body{padding:18px 20px}
.ds-theme-2 .ds-specification-card>.ds-info-footer{padding:12px 20px;background:var(--sheet-soft,#f4faff)}
.ds-theme-2 .ds-specification-card .ds-operating-profile>div{grid-template-columns:32px minmax(85px,.55fr) minmax(0,1.45fr);gap:10px;padding:12px 0}
.ds-theme-2 .ds-specification-card .ds-operating-profile dd{text-align:left;font-size:14px}
.ds-theme-2 .ds-specification-card .ds-operating-profile dd small{margin-top:4px;font-size:12px;line-height:1.6}
.ds-theme-2 :is(.ds-spec-parameters,.ds-package-facts){margin:0}
.ds-theme-2 :is(.ds-spec-parameters,.ds-package-facts)>div{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--sheet-border,#e4edf3)}
.ds-theme-2 :is(.ds-spec-parameters,.ds-package-facts)>div:last-child{border-bottom:0}
.ds-theme-2 :is(.ds-spec-parameters,.ds-package-facts) dt{font-size:13px;font-weight:600;color:var(--sheet-ink,#263d4c)}
.ds-theme-2 :is(.ds-spec-parameters,.ds-package-facts) dd{margin:0;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.ds-theme-2 .ds-spec-parameters dd strong{color:var(--sheet-blue-ink,#075c85);font-size:15px}
.ds-theme-2 .ds-spec-parameters dd small{display:block;margin-top:5px;font-size:11px;line-height:1.65;color:var(--sheet-muted,#374f5e)}
.ds-theme-2 .ds-spec-connectivity{grid-column:1/-1}
.ds-theme-2 .ds-spec-pin-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ds-theme-2 .ds-spec-pin-groups h3{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:14px;letter-spacing:0}
.ds-theme-2 .ds-spec-pin-groups h3>span{font-size:11px;font-weight:400;color:var(--sheet-muted,#536f81)}
.ds-theme-2 .ds-spec-pin-groups section>div{display:flex;flex-wrap:wrap;gap:7px}
.ds-theme-2 .ds-spec-pin{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--sheet-border,#c8dfea);border-radius:7px;padding:6px 10px 6px 6px;background:var(--sheet-surface,#f6fbff);color:var(--sheet-ink,#152f40);font-size:12px}
.ds-theme-2 .ds-spec-pin b{display:grid;place-items:center;min-width:23px;height:23px;padding:0 4px;border-radius:4px;background:color-mix(in srgb,var(--pin,#057ba8),var(--sheet-surface,white) 88%);color:var(--pin,#057ba8)}
.ds-theme-2 .ds-spec-pin:hover{background:var(--sheet-soft,#e7f5ff);border-color:#69bbdf}
@media(max-width:1000px){
    .ds-theme-2 .ds-pin-explorer{grid-template-columns:1fr;gap:22px;padding:20px}
    .ds-theme-2 .ds-tab-content .ds-pin-explorer .ds-pin-map{margin-right:0}
    .ds-theme-2 .ds-pin-information,.ds-theme-2 .ds-tab-content :is(.ds-working-explanation,.ds-reviewed-circuit>aside,.ds-internal-layout>aside,.ds-wiring-notes){border-left:0;border-top:1px solid var(--sheet-border,#c9e1ed);padding:22px 0 0}
    .ds-theme-2 .ds-tab-content .ds-specifications-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
    .ds-theme-2 .ds-pin-explorer{padding:14px}
    .ds-theme-2 .ds-tab-content .ds-pin-explorer .ds-pin-map{padding:14px 10px}
    .ds-theme-2 .ds-specification-card>.ds-content-heading,.ds-theme-2 .ds-specification-card>.ds-card-body{padding:15px}
    .ds-theme-2 .ds-spec-pin-groups{grid-template-columns:1fr}
    .ds-theme-2 .ds-spec-parameters>div{grid-template-columns:1fr;gap:4px}
    .ds-theme-2 .ds-specification-card .ds-operating-profile>div{grid-template-columns:28px minmax(70px,.6fr) minmax(0,1.4fr);gap:8px}
}
.ds-theme-2 .ds-shift-lab{margin:0 26px 26px;border:1px solid var(--sheet-border,#c5dfea);border-radius:14px;overflow:hidden;background:var(--sheet-surface,#fff);box-shadow:0 5px 20px #174d6810}
.ds-theme-2 .ds-shift-lab>.ds-content-heading{padding:20px;border-bottom:1px solid var(--sheet-border,#d7e9f2);background:linear-gradient(110deg,var(--sheet-soft,#edf8ff),var(--sheet-surface,#fff))}
.ds-theme-2 .ds-shift-body{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;padding:22px}
.ds-theme-2 .ds-shift-controls{display:flex;flex-direction:column;gap:12px;padding-right:22px;border-right:1px solid var(--sheet-border,#d4e7ef)}
.ds-theme-2 .ds-shift-controls>label:not(.ds-shift-toggle){font-weight:650;color:var(--sheet-ink,#152f40)}
.ds-theme-2 .ds-shift-controls small{display:block;font-size:11px;font-weight:400;color:var(--sheet-muted,#496373)}
.ds-theme-2 #shift-pattern{width:100%;min-height:44px;border:1px solid var(--sheet-border,#9fc9df);border-radius:8px;background:var(--sheet-surface,#f8fcff);padding:8px 12px;font:700 24px/1.2 Consolas,monospace;letter-spacing:4px;color:var(--sheet-blue-ink,#155a83)}
.ds-theme-2 #shift-pattern[aria-invalid=true]{border-color:#c84958}
.ds-theme-2 #shift-pattern-error{color:var(--sheet-muted,#a72e41);font-size:12px}
.ds-theme-2 .ds-shift-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ds-theme-2 .ds-shift-lab .ds-button{padding:9px;font-size:12px;gap:6px}
.ds-theme-2 .ds-shift-manual{display:grid;grid-template-columns:auto 1fr;gap:8px;border-top:1px dashed var(--sheet-border,#cbdfe9);padding-top:14px}
.ds-theme-2 .ds-shift-manual>span{grid-column:1/-1;font-size:12px;color:var(--sheet-muted,#496373)}
.ds-theme-2 [data-shift-ser]{border:1px solid var(--sheet-border,#98c7df);border-radius:8px;background:var(--sheet-soft,#e9f6ff);color:var(--sheet-blue-ink,#155a83);font-weight:700}
.ds-theme-2 [data-shift-ser][aria-pressed=true]{background:#087dad;color:#fff}
.ds-theme-2 .ds-shift-lab .ds-shift-latch{background:linear-gradient(#00badb,#068bcc);color:#fff;border-color:#0792bc;flex-wrap:wrap}
.ds-theme-2 .ds-shift-latch small{color:#fff}
.ds-theme-2 .ds-shift-toggle{display:grid;grid-template-columns:18px 1fr;gap:0 7px;font-size:12px;font-weight:650;align-items:center;cursor:pointer}
.ds-theme-2 .ds-shift-toggle input{grid-row:span 2;margin:0;accent-color:#078fbb}
.ds-theme-2 .ds-shift-toggle small{grid-column:2}
.ds-theme-2 .ds-shift-results{min-width:0}
.ds-theme-2 .ds-shift-stage{padding:14px 16px;border:1px solid var(--sheet-border,#bfdfea);background:var(--sheet-soft,#f4fbff);border-radius:11px}
.ds-theme-2 .ds-storage-stage{background:var(--sheet-surface,#f8f5ff);border-color:var(--sheet-border,#d8c7f1)}
.ds-theme-2 .ds-shift-stage header,.ds-theme-2 .ds-shift-outputs header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ds-theme-2 .ds-shift-stage header strong>span{display:inline-grid;place-items:center;width:24px;height:24px;background:var(--sheet-soft,#deeffc);color:var(--sheet-blue-ink,#176795);border-radius:7px;margin-right:8px}
.ds-theme-2 .ds-shift-stage output{font:700 20px Consolas,monospace;color:var(--sheet-blue-ink,#087dab)}
.ds-theme-2 .ds-shift-stage p{font-size:12px;color:var(--sheet-muted,#496373);margin:6px 0 12px}
.ds-theme-2 .ds-bit-row,.ds-theme-2 .ds-output-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.ds-theme-2 .ds-bit-row>span{display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid var(--sheet-border,#bdd5e2);background:var(--sheet-surface,white);border-radius:8px;padding:5px;color:var(--sheet-muted,#476272)}
.ds-theme-2 .ds-bit-row small{font-size:10px}
.ds-theme-2 .ds-bit-row b{font:700 23px Consolas,monospace}
.ds-theme-2 .ds-bit-row [data-high=true]{background:linear-gradient(#14b9d9,#0683ac);border-color:#0388ad;color:#fff;box-shadow:inset 0 1px #9ce7f5}
.ds-theme-2 .ds-storage-stage [data-high=true]{background:linear-gradient(#ad89dc,#7952b9);border-color:#8860bf}
.ds-theme-2 .ds-shift-transfer{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;font-size:11px;color:var(--sheet-muted,#677b87)}
.ds-theme-2 .ds-shift-transfer svg{width:16px}
.ds-theme-2 .ds-shift-outputs{margin-top:16px;padding:14px 16px;border-radius:11px;background:var(--sheet-mint,#f1f8f6);border:1px solid var(--sheet-border,#c7e5d9)}
.ds-theme-2 .ds-shift-outputs header{margin-bottom:12px}
.ds-theme-2 .ds-shift-outputs header>span{font-size:11px;color:var(--sheet-muted,#40685b)}
.ds-theme-2 .ds-output-row>span{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px}
.ds-theme-2 .ds-output-row i{width:23px;height:23px;border-radius:50%;border:2px solid #7f9998;background:radial-gradient(circle at 32% 26%,var(--sheet-mint,#e7f3f0),#7e9290 75%)}
.ds-theme-2 .ds-output-row [data-level="1"] i{border-color:#17a677;background:radial-gradient(circle at 32% 26%,var(--sheet-mint,#f0fff4),#57eaa0 36%,#09a276 85%);box-shadow:0 0 12px #1ddca560}
.ds-theme-2 .ds-output-row [data-level=Z] i{background:transparent;border-style:dashed;box-shadow:none}
.ds-theme-2 .ds-output-row small{font-size:9px;color:var(--sheet-muted,#496373)}
.ds-theme-2 .ds-shift-meters{display:flex;flex-wrap:wrap;gap:14px;padding:14px 0;font-size:12px;color:var(--sheet-muted,#496373)}
.ds-theme-2 .ds-shift-meters b{color:var(--sheet-ink,#163f57);font-family:Consolas,monospace;margin-left:5px}
.ds-theme-2 .ds-shift-status{padding:12px 14px;background:var(--sheet-soft,#eaf7ff);border-left:3px solid #09a9d4;border-radius:0 8px 8px 0;font-size:13px;margin-bottom:12px}
@media(max-width:1000px){.ds-theme-2 .ds-shift-body{grid-template-columns:1fr}.ds-theme-2 .ds-shift-controls{padding:0 0 20px;border-right:0;border-bottom:1px solid var(--sheet-border,#d4e7ef)}.ds-theme-2 .ds-shift-lab{margin:0 20px 20px}}
@media(max-width:680px){.ds-theme-2 .ds-shift-lab{margin:0 14px 14px}.ds-theme-2 .ds-shift-body{padding:12px;gap:16px}.ds-theme-2 .ds-shift-lab>.ds-content-heading{padding:14px}.ds-theme-2 .ds-shift-lab>.ds-content-heading>.ds-pill{display:none}.ds-theme-2 .ds-shift-stage,.ds-theme-2 .ds-shift-outputs{padding:10px 7px}.ds-theme-2 .ds-bit-row,.ds-theme-2 .ds-output-row{gap:3px}.ds-theme-2 .ds-bit-row>span{padding:4px 0}.ds-theme-2 .ds-bit-row b{font-size:19px}.ds-theme-2 .ds-output-row i{width:18px;height:18px}.ds-theme-2 .ds-output-row small{font-size:8px}.ds-theme-2 .ds-shift-outputs header{align-items:flex-start;flex-direction:column;gap:4px}}
/* Parallel-load input explorer shares the approved digital lab styling. */
.ds-input-switches button{border:1px solid var(--sheet-border,#b8d5e8);background:var(--sheet-surface,#fff);border-radius:8px;min-width:0;padding:8px 3px;display:grid;gap:5px;color:var(--sheet-blue-ink,#123d56);cursor:pointer}.ds-input-switches button small{font-size:10px}.ds-input-switches button b{font:700 22px ui-monospace,monospace}.ds-input-switches button[data-high=true]{background:linear-gradient(#10b7c8,#008ba8);color:white}.ds-input-switches button:focus-visible{outline:3px solid #f2b74b;outline-offset:2px}.ds-parallel-outputs{display:grid;grid-template-columns:1fr 1fr 3fr;gap:12px;margin:18px 0}.ds-parallel-outputs>div{background:var(--sheet-mint,#edf9f5);border:1px solid var(--sheet-border,#b4dfd1);border-radius:10px;padding:15px;display:grid;gap:6px}.ds-parallel-outputs small{color:var(--sheet-muted,#345a6c)}.ds-parallel-outputs b,.ds-parallel-outputs output{font:700 26px ui-monospace,monospace;color:var(--sheet-mint-ink,#057b69)}.ds-parallel-outputs span{color:var(--sheet-muted,#456d78);font-size:12px}@media(max-width:600px){.ds-parallel-outputs{grid-template-columns:1fr 1fr}.ds-parallel-outputs>div:last-child{grid-column:1/-1}}
.ds-driver-body{padding:22px}.ds-driver-channels{display:grid;grid-template-columns:repeat(var(--driver-count,7),minmax(0,1fr));gap:12px}.ds-driver-channels button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;background:var(--sheet-surface,#f6faff);border:1px solid var(--sheet-border,#c5dfec);border-radius:12px;color:var(--sheet-muted,#657e90);cursor:pointer}.ds-driver-channels button small{font-size:10px;font-weight:800;letter-spacing:.5px}.ds-driver-channels button span{font-size:12px}.ds-driver-channels button svg{width:68px;height:76px}.ds-driver-channels button b{border-radius:7px;background:var(--sheet-soft,#e2eaf0);padding:5px 12px;font-size:12px}.ds-driver-channels button[aria-pressed=true]{color:var(--sheet-mint-ink,#00896e);background:linear-gradient(var(--sheet-mint,#e8fbf3),var(--sheet-mint,#d4f4ed));border-color:#52bba5;box-shadow:0 3px 12px #16b59d20}.ds-driver-channels button[aria-pressed=true] b{color:#fff;background:#0a9a7b}.ds-driver-channels button[aria-pressed=true] svg{filter:drop-shadow(0 0 4px #25c4a94d)}.ds-driver-actions{display:flex;gap:12px;margin:18px 0}.ds-driver-lab .ds-amplifier-status{margin-top:18px}@media(max-width:900px){.ds-driver-channels{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:550px){.ds-driver-body{padding:14px}.ds-driver-channels{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ds-amplifier-controls select{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--sheet-border,#a5c9db);border-radius:8px;background:var(--sheet-surface,#f8fcff);padding:10px 12px;font:600 16px Segoe UI,sans-serif;color:var(--sheet-ink,#193949)}.ds-amplifier-controls select:focus-visible{outline:2px solid #009bcc;outline-offset:3px}

.ds-motor-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ds-motor-picture{width:100%;max-height:260px;display:block}.ds-motor-truth{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}.ds-motor-truth span{border:1px solid var(--sheet-border,#c5dce7);border-radius:7px;padding:7px 10px;background:var(--sheet-soft,#f4f9fc);font-size:12px;color:var(--sheet-muted,#31566c)}.ds-motor-truth .is-active{border-color:#04a7ce;background:var(--sheet-soft,#d9f7fc);color:var(--sheet-blue-ink,#075b73);font-weight:700}.ds-motor-rotor{transform-origin:320px 130px;animation:none}[data-motor-lab][data-state=forward] .ds-motor-rotor{animation:ds-motor-turn 3s linear infinite}[data-motor-lab][data-state=reverse] .ds-motor-rotor{animation:ds-motor-turn 3s linear infinite reverse}@keyframes ds-motor-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ds-motor-rotor{animation:none!important}}
/* Three-lead regulator pinout: package front/top view with silver leads. */
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]){display:block;position:relative;width:100%;max-width:520px;min-height:0;height:auto;aspect-ratio:520/310;margin:0 auto}
.ds-regulator-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin-body{position:absolute;left:20%;top:31%;width:60%;height:30%;min-height:0;padding:0;background:none;border:0;box-shadow:none;gap:4px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin-body strong{font-size:clamp(12px,1.2vw,18px)}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) :is(.ds-notch,.ds-pin-one,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin-column.bottom{position:absolute;display:flex;left:18.25%;top:71%;width:63.5%;height:27%;padding:0;gap:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin-column.bottom .ds-pin{flex:1;min-width:0;display:flex;flex-direction:column-reverse;justify-content:space-between;align-items:center;padding:0;background:none;border:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin b{display:grid;place-items:center;width:27px;height:28px;background:#d5dfe5;color:#233a49;border:1px solid #859eaf;border-radius:3px;font-size:13px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin span{font-size:12px;font-weight:650;color:var(--sheet-ink,#243d4d);background:var(--sheet-surface,#f8fbff);border-radius:4px;padding:2px 6px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]) .ds-pin[aria-pressed="true"] b{outline:3px solid #00add8;outline-offset:2px}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to263"] .ds-pin-column.bottom{left:8%;width:84%}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to263"] .ds-pin-column.top{position:absolute;display:flex;justify-content:center;left:33%;top:6%;width:34%;height:17%;padding:0}
.ds-theme-2 .ds-pin-diagram[data-package-shape="to263"] .ds-pin-column.top .ds-pin{display:flex;gap:8px;align-items:center;background:none;border:0;padding:0}
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]):not([hidden])){container-type:size;align-items:center;justify-content:center}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram:is([data-package-shape="to220"],[data-package-shape="to263"],[data-package-shape="to126"]){width:min(100cqw,calc(100cqh * 520 / 310));flex-shrink:0}

/* Five-lead packages align each interactive pin with its drawn lead. */
.ds-theme-2 .ds-pin-diagram:has(.ds-regulator-outline[data-lead-count='5']) .ds-pin-column.bottom{left:23.56%;width:52.88%}
.ds-theme-2 .ds-pin-diagram:has(.ds-regulator-outline[data-lead-count='5']) .ds-pin span{font-size:10px;padding:2px 1px}
/* Four-pin optical packages retain their compact body and readable marking. */
.ds-theme-2[data-selected-package] .ds-pin-diagram:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]){grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr);width:95%;max-width:360px;height:130px;min-height:0;margin:12px auto}
.ds-theme-2[data-selected-package] .ds-pin-diagram:not(.ds-pin-diagram-large):is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]){height:130px}
.ds-theme-2[data-selected-package] .ds-pin-diagram.ds-pin-diagram-large:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]){grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) minmax(0,1fr);max-width:420px;height:160px;margin:36px auto}
.ds-theme-2 .ds-pin-diagram:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]) .ds-pin-column{padding:10px 0}
.ds-theme-2 .ds-pin-diagram:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]) .ds-pin-body strong{font-size:18px;letter-spacing:.05em}
.ds-theme-2 .ds-pin-diagram:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]) .ds-pin-body small{font-size:9px;letter-spacing:.06em}
.ds-theme-2 .ds-pin-diagram:is([data-model-style^="opto-"],[data-model-style^="onsemi-"],[data-model-style^="vishay-"]) :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2[data-selected-package] .ds-pin-diagram:not(.ds-pin-diagram-large):is([data-model-style="opto-dip6"],[data-model-style="opto-smd6"],[data-model-style="onsemi-dip6"],[data-model-style="onsemi-smd6"],[data-model-style="vishay-dip8"],[data-model-style="vishay-smd8"]){height:180px}
.ds-theme-2[data-selected-package] .ds-pin-diagram.ds-pin-diagram-large:is([data-model-style="opto-dip6"],[data-model-style="opto-smd6"],[data-model-style="onsemi-dip6"],[data-model-style="onsemi-smd6"],[data-model-style="vishay-dip8"],[data-model-style="vishay-smd8"]){height:220px}

/* Multiwatt's fifteen contacts are a single front-view row, not a DIP body. */
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"]{display:block;position:relative;width:100%;max-width:600px;min-width:0;height:auto;min-height:0;aspect-ratio:600/340;margin:0 auto}
.ds-multiwatt-outline{display:block;width:100%;height:100%}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin-body{position:absolute;left:15%;top:34%;width:70%;height:25%;min-height:0;padding:0;background:none;border:0;box-shadow:none;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin-body strong{font-size:clamp(14px,1.7vw,25px)}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] :is(.ds-notch,.ds-pin-one,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin-column.bottom{position:absolute;display:flex;left:14.33%;top:74%;width:70%;height:20%;padding:0;gap:0}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin{flex:1;min-width:0;min-height:0;display:flex;justify-content:flex-start;align-items:center;padding:0;background:none;border:0}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin span{display:none}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin b{display:grid;place-items:center;width:80%;height:25px;background:#d5dfe5;color:#17384b;border:1px solid #859eaf;border-radius:3px;font-size:clamp(9px,.8vw,13px);padding:0}
.ds-theme-2 .ds-pin-diagram[data-package-shape="multiwatt15"] .ds-pin[aria-pressed="true"] b{outline:2px solid #00add8;outline-offset:1px;background:var(--sheet-soft,#d5f4ff)}
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram[data-package-shape="multiwatt15"]:not([hidden])){container-type:size;align-items:center;justify-content:center;padding:8px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-package-shape="multiwatt15"]{width:min(100cqw,calc(100cqh * 600 / 340));flex-shrink:0}
.ds-theme-2 [data-motor-lab] span[data-physical-pin]{display:inline;margin:0;font:inherit;color:inherit}
.ds-logic-lab{margin:24px;border-top:1px solid var(--sheet-border,#c5deea);padding-top:22px}
.ds-decoder-lab{margin:24px;border-top:1px solid var(--sheet-border,#c5deea);padding-top:22px}
.ds-counter-lab{margin:24px;border-top:1px solid var(--sheet-border,#c5deea);padding-top:22px}.ds-counter-workbench{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;margin-top:18px}.ds-counter-inputs{border:1px solid var(--sheet-border,#c4dce9);border-radius:12px;padding:20px;background:var(--sheet-surface,#f5faff)}.ds-counter-actions{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.ds-counter-inputs>p{margin-bottom:0}.ds-counter-state{display:grid;justify-items:center;align-content:center;gap:10px;padding:20px;background:linear-gradient(140deg,var(--sheet-soft,#edf9ff),var(--sheet-mint,#e3f5f0));border:1px solid var(--sheet-border,#bededc);border-radius:12px;color:var(--sheet-blue-ink,#13566b);text-align:center}.ds-counter-state>strong{font-size:70px;line-height:1;font-variant-numeric:tabular-nums}.ds-counter-state>span{font-size:13px}.ds-counter-state>div{font-size:12px;border-top:1px solid var(--sheet-border,#b8d8df);padding-top:15px;width:100%}.ds-counter-state>div strong{display:block;font-size:20px;margin-top:7px}.ds-counter-outputs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;margin:20px 0}.ds-counter-output{display:grid;justify-items:center;gap:8px;padding:14px 4px;border:1px solid var(--sheet-border,#c4dce9);border-radius:9px;background:var(--sheet-surface,white);color:var(--sheet-muted,#365166)}.ds-counter-output>strong{font-size:21px}.ds-counter-output>span,.ds-counter-output>b{font-size:12px}.ds-counter-output[data-state=high]{background:var(--sheet-mint,#e0f9ef);border-color:#20b496;color:var(--sheet-mint-ink,#0b7057)}.ds-counter-output[data-state=high] .ds-decoder-lamp{background:#20c7a0;border-color:#0a9273;box-shadow:0 0 9px #20c7a088,inset 0 2px 2px #c6ffed}
@media(max-width:1000px){.ds-counter-workbench{grid-template-columns:1fr}.ds-counter-outputs{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:560px){.ds-counter-lab{margin:16px 12px}.ds-counter-inputs{padding:14px}.ds-counter-outputs{gap:5px}.ds-counter-output>strong{font-size:17px}.ds-counter-output>span,.ds-counter-output>b{font-size:10px}}
.ds-decoder-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;margin-top:18px}
.ds-decoder-inputs,.ds-decoder-results{border:1px solid var(--sheet-border,#c5dfe9);border-radius:12px;padding:20px;background:linear-gradient(145deg,var(--sheet-surface,#fff),var(--sheet-soft,#f1f8fc));min-width:0}
.ds-decoder-inputs h3{font-size:17px;margin:0 0 8px;color:var(--sheet-ink,#163f54)}.ds-decoder-inputs p{font-size:13px;margin:0 0 14px;color:var(--sheet-muted,#3b5869)}
.ds-decoder-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ds-decoder-controls button{display:grid;gap:8px;padding:12px 9px;text-align:left;background:var(--sheet-surface,white);border:1px solid var(--sheet-border,#b7cfdf);border-radius:8px;cursor:pointer;color:var(--sheet-ink,#173e50);min-width:0}.ds-decoder-controls button span{font-size:12px}.ds-decoder-controls button strong{font-size:14px}.ds-decoder-controls button[aria-pressed=true]{background:var(--sheet-soft,#e0f7fd);border-color:#009ebe;color:var(--sheet-blue-ink,#00687d)}
.ds-decoder-presets{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:16px 0 26px}.ds-decoder-presets button{padding:8px 2px;border:1px solid var(--sheet-border,#b4d6e7);border-radius:7px;background:var(--sheet-surface,white);cursor:pointer;color:var(--sheet-ink,#16435c)}.ds-decoder-presets button[aria-pressed=true]{background:#008fbd;color:white;border-color:#008fbd}
.ds-decoder-status{display:grid;gap:7px;padding:15px;background:var(--sheet-soft,#e6f3fc);border-radius:8px;color:var(--sheet-ink,#164a67);margin-bottom:18px}.ds-decoder-status span{font-size:13px}.ds-decoder-status strong{font-size:19px}
.ds-decoder-outputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ds-decoder-output{display:grid;justify-items:center;gap:8px;border:1px solid var(--sheet-border,#c4d6df);border-radius:9px;padding:13px 5px;background:var(--sheet-surface,white);color:var(--sheet-muted,#335062)}.ds-decoder-output>strong{font-size:21px}.ds-decoder-output>span{font-size:12px}.ds-decoder-output>b{font-size:12px;white-space:nowrap}.ds-decoder-lamp{width:12px;height:12px;border-radius:50%;background:#a7b5bf;box-shadow:inset 0 1px 2px #fff8;border:1px solid #809aaa}.ds-decoder-output[data-state=low]{background:var(--sheet-mint,#e2f9f2);border-color:#28b39c;color:var(--sheet-mint-ink,#10664f)}.ds-decoder-output[data-state=low] .ds-decoder-lamp{background:#20c7a0;border-color:#0a9273;box-shadow:0 0 9px #20c7a088,inset 0 2px 2px #c6ffed}
.ds-decoder-results>p{margin:16px 0 0}.ds-decoder-lab>footer{display:flex;gap:18px;align-items:center;margin-top:18px}.ds-decoder-lab>footer button{flex-shrink:0}.ds-decoder-lab>footer p{margin:0}
@media(max-width:1000px){.ds-decoder-workbench{grid-template-columns:1fr}}@media(max-width:560px){.ds-decoder-lab{margin:16px 12px}.ds-decoder-inputs,.ds-decoder-results{padding:14px}.ds-decoder-controls{gap:6px}.ds-decoder-controls button{padding:10px 6px}.ds-decoder-controls button span{font-size:11px}.ds-decoder-outputs{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-decoder-lab>footer{flex-direction:column;align-items:flex-start}}
.ds-logic-gates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}
.ds-logic-lab[data-operation="not"] .ds-logic-gates{grid-template-columns:repeat(3,minmax(0,1fr))}
.ds-logic-gate{border:1px solid var(--sheet-border,#c2dce9);border-radius:12px;background:linear-gradient(145deg,var(--sheet-surface,#fff),var(--sheet-soft,#f2f9fe));overflow:hidden}
.ds-logic-gate>header{padding:14px 16px;background:var(--sheet-soft,#e8f5fd);border-bottom:1px solid var(--sheet-border,#c2dce9);display:grid;gap:4px}.ds-logic-gate>header strong{font-size:18px;color:var(--sheet-blue-ink,#124c6c)}.ds-logic-gate>header span{font-size:12px;color:var(--sheet-muted,#42637a)}
.ds-logic-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 12px 0}.ds-logic-controls button{display:grid;gap:7px;text-align:left;border:1px solid var(--sheet-border,#bfcedd);background:var(--sheet-surface,#fff);border-radius:8px;color:var(--sheet-ink,#223e4f);padding:10px;cursor:pointer}.ds-logic-controls button span{font-size:11px}.ds-logic-controls button strong{font-size:14px}.ds-logic-controls button[aria-pressed=true]{border-color:#079ab2;background:var(--sheet-soft,#e3f8fc);color:var(--sheet-blue-ink,#07697a)}
.ds-logic-gate svg{display:block;width:100%;height:115px}.ds-logic-lamp{fill:#a8b7bf;stroke:#7a909c;stroke-width:2}.ds-logic-gate[data-state=high] .ds-logic-lamp{fill:#27cab6;stroke:#14867d;filter:drop-shadow(0 0 5px #28cbb677)}
.ds-logic-output{margin:0 12px;padding:11px 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--sheet-soft,#edf2f5);border-radius:8px;font-size:12px;color:var(--sheet-ink,#2c4a5c)}.ds-logic-gate[data-state=high] .ds-logic-output{background:var(--sheet-mint,#e2f6ee);color:var(--sheet-ink,#17674f)}.ds-logic-output strong{white-space:nowrap;font-size:16px}
.ds-logic-patterns{display:flex;gap:8px;padding:15px 12px}.ds-logic-patterns button{flex:1;border:1px solid var(--sheet-border,#c0d8e5);background:var(--sheet-surface,white);border-radius:6px;padding:7px;color:var(--sheet-muted,#31566c);cursor:pointer}.ds-logic-patterns button[aria-pressed=true]{background:#008fbd;border-color:#008fbd;color:white;font-weight:700}
.ds-logic-multi .ds-logic-patterns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.ds-logic-multi>header{flex-wrap:wrap}.ds-logic-multi>header span{overflow-wrap:anywhere}
.ds-logic-lab>footer{display:flex;gap:18px;align-items:center;margin-top:18px}.ds-logic-lab>footer button{flex-shrink:0}.ds-logic-lab>footer p{margin:0}
@media(max-width:1100px){.ds-logic-gates,.ds-logic-lab[data-operation="not"] .ds-logic-gates{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.ds-logic-lab{margin:16px 12px}.ds-logic-gates,.ds-logic-lab[data-operation="not"] .ds-logic-gates{grid-template-columns:1fr}.ds-logic-lab>footer{align-items:flex-start;flex-direction:column}}

.ds-display-state{display:flex;align-items:center;justify-content:center;gap:28px;border:1px solid var(--sheet-border,#c8dce9);border-radius:12px;padding:24px;background:linear-gradient(135deg,var(--sheet-soft,#edf4fa),var(--sheet-rose,#faf3f6))}.ds-display-state svg{width:150px;height:240px;flex-shrink:0}.ds-display-state svg path{fill:#442d38;stroke:#6a3b4d;stroke-width:.7}.ds-display-state svg path[data-state=high]{fill:#ff5679;stroke:#ffb2c2;filter:drop-shadow(0 0 3px #ff507999)}.ds-display-state>div{min-width:0;max-width:170px;color:var(--sheet-ink,#193d53)}.ds-display-state>div>span{font-size:12px;letter-spacing:.08em}.ds-display-state strong{display:block;font-size:54px;line-height:1.2;font-variant-numeric:tabular-nums}.ds-display-state p{font-size:13px}.ds-display-pin-states{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:20px 0}.ds-display-pin-states .ds-counter-output>strong{font-size:15px}.ds-display-signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ds-display-signals .ds-counter-output>strong{font-size:15px}@media(max-width:560px){.ds-display-state{gap:18px;padding:15px}.ds-display-state svg{width:120px;height:192px}.ds-display-pin-states{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.ds-display-pin-states .ds-counter-output>strong,.ds-display-signals .ds-counter-output>strong{font-size:12px}.ds-display-signals{gap:6px}}
.ds-adc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ds-adc-fields label{font-size:13px;color:var(--sheet-ink,#163e54)}.ds-adc-fields label>span{display:flex;align-items:center;gap:8px;margin-top:8px}.ds-adc-fields input{width:100%;min-width:0;padding:10px;border:1px solid var(--sheet-border,#91bdcf);border-radius:7px;background:var(--sheet-surface,white);color:var(--sheet-ink,#101d25);font-size:16px}.ds-adc-fields input:focus-visible{outline:2px solid #029ed5;outline-offset:2px}.ds-adc-result .ds-adc-formats{display:flex;justify-content:center;gap:24px;font-family:Consolas,monospace;font-size:20px}.ds-adc-result progress{width:90%;height:12px;accent-color:#089ec0}.ds-adc-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.ds-adc-metrics>div{display:grid;gap:8px;padding:16px;border:1px solid var(--sheet-border,#c2dce8);border-radius:9px;background:var(--sheet-soft,#f2f9fd)}.ds-adc-metrics span{font-size:12px;color:var(--sheet-muted,#456677)}.ds-adc-metrics strong{font-size:20px;color:var(--sheet-blue-ink,#116788)}.ds-adc-bits{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.ds-adc-bits [data-state=z]{background:var(--sheet-violet,#f3edfb);border-color:var(--sheet-border,#bca5d6);color:var(--sheet-muted,#66518d)}.ds-adc-bits [data-state=z] .ds-decoder-lamp{background:transparent;border-style:dashed;border-color:#9472bb}.ds-counter-lab[data-state=invalid] .ds-adc-result{background:var(--sheet-rose,#fff0f2);border-color:var(--sheet-border,#d796a2)}@media(max-width:560px){.ds-adc-fields{grid-template-columns:1fr;gap:12px}.ds-adc-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ds-adc-metrics strong{font-size:16px}.ds-adc-bits{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}}

.ds-spi-packet{display:grid;grid-template-columns:1fr 1fr .7fr;gap:16px;margin:20px 0}.ds-spi-packet>div{display:flex;flex-direction:column;gap:10px;padding:20px;background:var(--sheet-soft,#f1f8fc);border:1px solid var(--sheet-border,#badbe9);border-radius:12px}.ds-spi-packet code,.ds-spi-packet strong{font-size:26px;font-weight:700;color:var(--sheet-blue-ink,#086685)}.ds-spi-packet span,.ds-spi-packet small{font-size:12px;color:var(--sheet-muted,#31546a)}.ds-adc-fields select{display:block;box-sizing:border-box;min-height:46px;margin-top:8px;width:100%;padding:12px;border:1px solid var(--sheet-border,#9fc8db);border-radius:7px;background:var(--sheet-surface,white);color:var(--sheet-ink,#17384b);font:inherit}@media(max-width:650px){.ds-spi-packet{grid-template-columns:1fr}}

[data-thermometer-lab] .ds-adc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:560px){[data-thermometer-lab] .ds-adc-fields{grid-template-columns:1fr}}

.ds-timer-channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.ds-timer-channel{border:1px solid var(--sheet-border,#c7dfec);border-radius:12px;padding:20px;background:var(--sheet-surface,#f7fbff);min-width:0}.ds-timer-channel h3{display:flex;justify-content:space-between;gap:12px;margin:0 0 16px}.ds-timer-channel h3 small{font-size:13px;color:var(--sheet-muted,#466477)}.ds-timer-result{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.ds-timer-result strong{font-size:30px;color:var(--sheet-blue-ink,#08799c)}.ds-timer-wave{display:block;width:100%;margin:8px 0}.ds-timer-channel[data-state=invalid] .ds-timer-result strong{color:var(--sheet-muted,#b54857)}@media(max-width:800px){.ds-timer-channels{grid-template-columns:1fr}}
/* Axial diode: cathode band and two independent numbered leads. */
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]){display:block;position:relative;width:100%;max-width:520px;height:auto;min-height:0;aspect-ratio:520/200;margin:auto}
.ds-axial-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin-body{position:absolute;left:34%;top:28%;width:40%;height:44%;min-height:0;padding:0;background:none;border:0;box-shadow:none;gap:4px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin-body strong{font-size:clamp(12px,1.5vw,22px)}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) :is(.ds-notch,.ds-pin-one,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin-column{position:absolute;top:35%;width:18%;height:30%;padding:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin-column.left{left:0}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin-column.right{right:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin{background:var(--sheet-surface,#f8fbff);border:0;padding:0;display:flex;align-items:center;gap:6px;justify-content:center;min-height:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin b{display:grid;place-items:center;width:28px;height:28px;background:#d5dfe5;color:#233a49;border:1px solid #859eaf;border-radius:3px;font-size:13px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="do35"],[data-package-shape="do41"],[data-package-shape="sod123"],[data-package-shape="sod123fl"]) .ds-pin[aria-pressed="true"] b{outline:3px solid #00add8;outline-offset:2px}
.ds-pin-diagram[data-package-shape="lga"] .ds-pin-body{background:linear-gradient(135deg,#dce3e7,#aab8c0 52%,#e7ecef);border:2px solid #8698a5;color:#1b303f;box-shadow:inset 0 0 0 7px #c3cdd3}
.ds-pin-diagram[data-package-shape="lga"] .ds-pin-body strong,.ds-pin-diagram[data-package-shape="lga"] .ds-pin-body small{color:#253d4d}
.ds-pin-diagram[data-package-shape="lga"] .ds-notch{display:none}
.ds-pin-diagram[data-package-shape="lga"] .ds-pin-one{left:auto;right:12%;top:9%;background:#25343e}
.ds-pin-diagram[data-model-style="bme280-lga"] .ds-pin-one{right:45%;top:auto;bottom:7%}

/* Small DFN: reserve room for its underside contact within the preview card. */
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]){grid-template-columns:64px minmax(0,1fr) 64px;grid-template-rows:0 minmax(0,1fr) 42px;width:100%;min-width:0;max-width:460px;height:220px;min-height:0;max-height:100%;margin:0 auto;flex-shrink:1}
.ds-theme-2 .ds-pin-viewport:has(:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]):not([hidden])){align-items:center;justify-content:center}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-body{min-width:0;min-height:0;padding:6px;gap:5px}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-body strong{font-size:11px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-column{padding:0;gap:0}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin{min-height:0;font-size:11px;gap:4px}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-column.bottom{display:flex;align-items:center;justify-content:center}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-column.bottom .ds-pin{flex-direction:column;gap:2px;padding-top:5px}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-column.bottom .ds-pin b{border:1px solid #8ba2af;border-radius:3px}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]){height:245px}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="dfn8-ep-2x3"],[data-model-style="htssop16-ep"],[data-model-style="htssop28-ep-c"],[data-model-style="htssop28-ep-v"]) .ds-pin-body strong{font-size:15px}

/* Reviewed tqfp44 datasheet pinout; no simulator changes. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="tqfp44"] {
    grid-template-columns:140px 336px 140px;grid-template-rows:120px 336px 120px;
    width:616px;min-width:616px;max-width:616px;height:576px;min-height:576px;max-height:576px;
    margin:12px auto;flex-shrink:0;
}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="tqfp44"] {zoom:.38;margin:0 auto;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="tqfp44"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2[data-selected-package] .ds-view-dialog .ds-pin-diagram[data-model-style="tqfp44"] {zoom:1;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-body {width:100%;height:100%;min-width:0;min-height:0;padding:16px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-body strong {font-size:18px;letter-spacing:.4px;text-align:center;overflow-wrap:anywhere;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-notch {display:none;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-column {padding:0;gap:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin {font-size:12px;line-height:1.25;gap:5px;padding:0;min-height:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin b {width:25px;height:18px;flex:none;font-size:11px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-column:is(.top,.bottom) {display:grid;grid-template-columns:repeat(11,minmax(0,1fr));grid-template-rows:1fr;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-column:is(.top,.bottom) .ds-pin {justify-content:flex-end;align-items:center;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-column.bottom .ds-pin {flex-direction:column-reverse;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp44"] .ds-pin-column:is(.top,.bottom) .ds-pin span {writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:94px;overflow:hidden;text-overflow:ellipsis;}

/* Reviewed lqfp48 datasheet pinout; no simulator changes. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="lqfp48"] {
    grid-template-columns:140px 336px 140px;grid-template-rows:120px 336px 120px;
    width:616px;min-width:616px;max-width:616px;height:576px;min-height:576px;max-height:576px;
    margin:12px auto;flex-shrink:0;
}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="lqfp48"] {zoom:.38;margin:0 auto;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="lqfp48"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2[data-selected-package] .ds-view-dialog .ds-pin-diagram[data-model-style="lqfp48"] {zoom:1;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-body {width:100%;height:100%;min-width:0;min-height:0;padding:16px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-body strong {font-size:18px;letter-spacing:.4px;text-align:center;overflow-wrap:anywhere;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-notch {display:none;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-column {padding:0;gap:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin {font-size:12px;line-height:1.25;gap:5px;padding:0;min-height:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin b {width:25px;height:18px;flex:none;font-size:11px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-column:is(.top,.bottom) {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:1fr;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-column:is(.top,.bottom) .ds-pin {justify-content:flex-end;align-items:center;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-column.bottom .ds-pin {flex-direction:column-reverse;}
.ds-theme-2 .ds-pin-diagram[data-model-style="lqfp48"] .ds-pin-column:is(.top,.bottom) .ds-pin span {writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:94px;overflow:hidden;text-overflow:ellipsis;}

.ds-theme-2 .ds-pin-diagram[data-model-style="htssop16-ep"]{grid-template-columns:82px minmax(0,1fr) 82px}
.ds-theme-2 .ds-pin-diagram[data-model-style="htssop16-ep"] .ds-pin-column:is(.left,.right) .ds-pin{font-size:10px}

/* Long HTSSOP: all 28 side leads and the thermal contact remain visible. */
.ds-theme-2 .ds-pin-diagram[data-model-style^="htssop28-ep-"]{grid-template-columns:85px minmax(0,1fr) 85px;height:230px;grid-template-rows:0 minmax(0,1fr) 30px}
.ds-theme-2 .ds-pin-diagram[data-model-style^="htssop28-ep-"] .ds-pin-column:is(.left,.right) .ds-pin{font-size:9px;padding-top:0;padding-bottom:0}
.ds-theme-2 .ds-pin-diagram[data-model-style^="htssop28-ep-"] .ds-pin-column:is(.left,.right) .ds-pin b{font-size:9px;padding-top:0;padding-bottom:0;min-height:0}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram[data-model-style^="htssop28-ep-"]{height:390px;grid-template-rows:0 minmax(0,1fr) 40px}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram[data-model-style^="htssop28-ep-"] .ds-pin-column:is(.left,.right) .ds-pin{font-size:11px}

/* Four-sided QFN, with a selectable underside pad shown through the body. */
/* Twelve leads per bank stay inside the small SSOP preview card. */
.ds-theme-2 .ds-pin-diagram[data-model-style="dht11-housing"] .ds-pin-body{position:relative;background:linear-gradient(125deg,#48b3d9,#2486b0);border:2px solid #267f9f;border-radius:9px;justify-content:flex-end;padding:10px;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="dht11-housing"] .ds-pin-body::before{content:"";position:absolute;inset:8px 18% 70px;background:repeating-linear-gradient(0deg,transparent 0 9px,#48b3d9 9px 15px),repeating-linear-gradient(90deg,#214f60 0 10px,#48b3d9 10px 17px);border-radius:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="dht11-housing"] :is(.ds-notch,.ds-pin-one,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="dht11-housing"] .ds-pin-body strong{font-size:20px;color:#fff;letter-spacing:.5px}
.ds-theme-2 .ds-pin-diagram[data-model-style="dht11-housing"] .ds-pin-body small{color:#e7f9ff}
.ds-theme-2 .ds-pin-diagram[data-model-style="am2302-housing"] .ds-pin-body{position:relative;background:linear-gradient(125deg,#f3f6f4,#d9e3df);border:2px solid #a5bab4;border-radius:9px;justify-content:flex-end;padding:10px;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="am2302-housing"] .ds-pin-body::before{content:"";position:absolute;inset:12px 18% 70px;background:repeating-linear-gradient(0deg,transparent 0 9px,#e2eae6 9px 15px),repeating-linear-gradient(90deg,#4d6d68 0 10px,#e2eae6 10px 17px);border-radius:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="am2302-housing"] :is(.ds-notch,.ds-pin-one,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="am2302-housing"] .ds-pin-body strong{font-size:20px;color:#273e3a;letter-spacing:.5px}
.ds-theme-2 .ds-pin-diagram[data-model-style="am2302-housing"] .ds-pin-body small{color:#3e5953}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="sht40-dfn"]) .ds-pin-body{background:linear-gradient(135deg,#39434b,#1b252b);border-color:#516775;box-shadow:inset 0 0 0 4px #34454e}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="sht40-dfn"]) .ds-pin-body :is(strong,small){color:#eef6fa}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sht31-dfn"],[data-model-style="sht40-dfn"]) .ds-pin-one{left:10%;right:auto;top:9%;background:var(--sheet-soft,#dce8ee)}
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="bmp388-lga"]{grid-template-columns:60px 140px 60px;grid-template-rows:35px 140px 35px;width:260px;min-width:260px;max-width:260px;height:210px;min-height:210px;max-height:210px;margin:0 auto;flex-shrink:0}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="bmp388-lga"]:not([hidden])){align-items:center;justify-content:center}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-body{width:100%;height:100%;min-width:0;min-height:0;padding:8px;gap:6px}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-body strong{font-size:16px;letter-spacing:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-body small:last-of-type{display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-column{padding:0;gap:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin{font-size:11px;gap:4px;min-height:0;padding:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-column:is(.top,.bottom){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-column.bottom .ds-pin{flex-direction:column-reverse}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram[data-model-style="bmp388-lga"],.ds-theme-2 .ds-view-dialog .ds-pin-diagram[data-model-style="bmp388-lga"]{grid-template-columns:70px 180px 70px;grid-template-rows:45px 180px 45px;width:320px;min-width:320px;max-width:320px;height:270px;min-height:270px;max-height:270px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="ssop24-toshiba"]{height:210px;min-height:0;max-height:100%;width:100%;min-width:0;max-width:370px;margin:0 auto;flex-shrink:1;grid-template-columns:85px minmax(0,1fr) 85px}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="ssop24-toshiba"]:not([hidden])){align-items:center;justify-content:center}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin-column{padding:0;gap:0}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin{min-height:0;font-size:10px;padding:0;gap:4px}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin b{font-size:9px;min-height:0;padding:0}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin-body{min-width:0;min-height:0;padding:5px;gap:5px}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin-body strong{font-size:10px;letter-spacing:0;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-viewport [data-model-style="ssop24-toshiba"] .ds-pin-body small:last-of-type{display:none}
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="qfn28-5mm"]{position:relative;display:grid;grid-template-columns:20% 60% 20%;grid-template-rows:20% 60% 20%;width:100%;max-width:480px;min-width:0;height:auto;min-height:0;max-height:none;aspect-ratio:1;margin:0 auto;flex-shrink:0}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="qfn28-5mm"]:not([hidden])){container-type:size;align-items:center;justify-content:center}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"]{width:min(100cqw,100cqh)}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-body{width:100%;height:100%;min-width:0;min-height:0;padding:8px;justify-content:flex-start;padding-top:20%;gap:8px}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-body strong{font-size:14px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-body small{font-size:9px;letter-spacing:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column{padding:0;gap:0;position:static}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin{font-size:11px;line-height:1.1;min-height:0;padding:0;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin b{font-size:11px;width:24px;min-height:0;padding:0;flex:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column:is(.top,.bottom){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column:is(.top,.bottom) .ds-pin{align-items:center;justify-content:flex-end}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column.bottom .ds-pin{flex-direction:column-reverse}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column:is(.top,.bottom) .ds-pin span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column.bottom .ds-pin[data-pin="29"]{position:absolute;left:50%;top:60%;transform:translate(-50%,-50%);width:52px;height:48px;display:flex;flex-direction:column;justify-content:center;z-index:2;border:1px dashed var(--sheet-border,#b7c6d0);border-radius:5px;color:#f3f8fc;background:#425662}
.ds-theme-2 .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column.bottom .ds-pin[data-pin="29"] span{writing-mode:horizontal-tb;transform:none}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin{font-size:8px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin b{font-size:8px;width:14px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-body strong{font-size:9px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-body small{font-size:6px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="qfn28-5mm"] .ds-pin-column.bottom .ds-pin[data-pin="29"]{width:30px;height:28px}

.ds-theme-2 .ds-pin-diagram[data-model-style="bmp388-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin{justify-content:flex-end;align-items:center}

/* MPU6050 four-bank QFN, no center electrical pin. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="mpu6050-qfn"]{position:relative;display:grid;grid-template-columns:20% 60% 20%;grid-template-rows:20% 60% 20%;width:100%;max-width:480px;min-width:0;height:auto;min-height:0;max-height:none;aspect-ratio:1;margin:0 auto;flex-shrink:0}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="mpu6050-qfn"]:not([hidden])){container-type:size;align-items:center;justify-content:center}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="mpu6050-qfn"]{width:min(100cqw,100cqh)}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-body{width:100%;height:100%;min-width:0;min-height:0;padding:8px;justify-content:flex-start;padding-top:20%;gap:8px}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-body strong{font-size:14px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-body small{font-size:9px;letter-spacing:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-column{padding:0;gap:0;position:static}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin{font-size:11px;line-height:1.1;min-height:0;padding:0;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin b{font-size:11px;width:24px;min-height:0;padding:0;flex:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-column:is(.top,.bottom){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-column:is(.top,.bottom) .ds-pin{align-items:center;justify-content:flex-end}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-column.bottom .ds-pin{flex-direction:column-reverse}
.ds-theme-2 .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-column:is(.top,.bottom) .ds-pin span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin{font-size:8px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin b{font-size:8px;width:14px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-body strong{font-size:9px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="mpu6050-qfn"] .ds-pin-body small{font-size:6px}

/* LIS3DH asymmetric 5/3/5/3 banks, top view. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="lis3dh-lga"]{position:relative;display:grid;grid-template-columns:20% 60% 20%;grid-template-rows:20% 60% 20%;width:100%;max-width:480px;min-width:0;height:auto;min-height:0;max-height:none;aspect-ratio:1;margin:0 auto;flex-shrink:0}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="lis3dh-lga"]:not([hidden])){container-type:size;align-items:center;justify-content:center}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="lis3dh-lga"]{width:min(100cqw,100cqh)}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-body{width:100%;height:100%;min-width:0;min-height:0;padding:8px;justify-content:flex-start;padding-top:20%;gap:8px}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-body strong{font-size:14px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-body small{font-size:9px;letter-spacing:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-column{padding:0;gap:0;position:static}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin{font-size:11px;line-height:1.1;min-height:0;padding:0;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin b{font-size:11px;width:24px;min-height:0;padding:0;flex:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-column:is(.top,.bottom){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin{align-items:center;justify-content:flex-end;height:100%}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-column.bottom .ds-pin{flex-direction:column-reverse}
.ds-theme-2 .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:normal;min-height:0;max-height:calc(100% - 17px);flex-shrink:1}
.ds-theme-2 .ds-pin-diagram-large[data-model-style="lis3dh-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin span{max-height:calc(100% - 27px)}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin{font-size:8px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin b{font-size:8px;width:14px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-body strong{font-size:9px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="lis3dh-lga"] .ds-pin-body small{font-size:6px}

/* Dense two-bank packages must fit the preview; the Pinout tab keeps full labels. */
.ds-theme-2 .ds-pin-viewport:has(.ds-pin-diagram-many:not(.ds-pin-diagram-quad):not([hidden])){align-items:center;padding-block:10px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad){height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin-column{min-height:0;gap:1px;grid-template-rows:repeat(var(--pin-rows),minmax(0,1fr))}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin{min-height:0;line-height:1;font-size:clamp(6px,calc(190px / var(--pin-rows)),10px);gap:4px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin b{height:100%;min-height:0;font-size:inherit;line-height:1;width:19px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin-body{min-height:0;min-width:0;padding:5px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram-many:not(.ds-pin-diagram-quad) .ds-pin-body strong{font-size:10px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram-large[data-model-style='pdip40'] .ds-pin-body strong{font-size:16px;letter-spacing:0;text-align:center}

/* Reviewed tqfp100 datasheet pinout; no simulator changes. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="tqfp100"] {
    grid-template-columns:140px 600px 140px;grid-template-rows:120px 600px 120px;
    width:880px;min-width:880px;max-width:880px;height:840px;min-height:840px;max-height:840px;
    margin:12px auto;flex-shrink:0;
}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="tqfp100"] {zoom:.27;margin:0 auto;}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="tqfp100"]:not([hidden])) {align-items:center;justify-content:center;}
.ds-theme-2[data-selected-package] .ds-view-dialog .ds-pin-diagram[data-model-style="tqfp100"] {zoom:1;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-body {width:100%;height:100%;min-width:0;min-height:0;padding:16px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-body strong {font-size:18px;letter-spacing:.4px;text-align:center;overflow-wrap:anywhere;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-notch {display:none;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column {padding:0;gap:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin {font-size:12px;line-height:1.25;gap:5px;padding:0;min-height:0;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin b {width:25px;height:18px;flex:none;font-size:11px;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column:is(.top,.bottom) {display:grid;grid-template-columns:repeat(25,minmax(0,1fr));grid-template-rows:1fr;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column:is(.top,.bottom) .ds-pin {justify-content:flex-end;align-items:center;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column.bottom .ds-pin {flex-direction:column-reverse;}
.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column:is(.top,.bottom) .ds-pin span {writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:94px;overflow:hidden;text-overflow:ellipsis;}


.ds-theme-2 .ds-pin-diagram[data-model-style="tqfp100"] .ds-pin-column:is(.left,.right) .ds-pin span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ds-theme-2 .ds-pin-explorer .ds-pin-diagram[data-model-style="tqfp100"] {zoom:.64;}
@media(max-width:700px){.ds-theme-2 .ds-pin-explorer .ds-pin-diagram[data-model-style="tqfp100"] {zoom:.36;}}

/* Optical LGA: five contacts on each long edge, one at either end. */
.ds-theme-2[data-selected-package] .ds-pin-diagram[data-model-style="vl53l0x-lga"]{position:relative;display:grid;grid-template-columns:15% 70% 15%;grid-template-rows:34% 32% 34%;width:100%;max-width:480px;min-width:0;height:auto;min-height:0;max-height:none;aspect-ratio:1.3;margin:0 auto;flex-shrink:0}
.ds-theme-2 .ds-pin-viewport:has([data-model-style="vl53l0x-lga"]:not([hidden])){container-type:size;align-items:center;justify-content:center}
.ds-theme-2[data-selected-package] .ds-pin-viewport .ds-pin-diagram[data-model-style="vl53l0x-lga"]{width:min(100cqw,130cqh)}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body{width:100%;height:100%;min-width:0;min-height:0;padding:8px;justify-content:flex-start;padding-top:20%;gap:8px}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body strong{font-size:14px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body small{font-size:9px;letter-spacing:0}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-column{padding:0;gap:0;position:static}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin{font-size:11px;line-height:1.1;min-height:0;padding:0;gap:3px}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin b{font-size:11px;width:24px;min-height:0;padding:0;flex:none}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-column:is(.top,.bottom){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin{align-items:center;justify-content:flex-end;height:100%}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-column.bottom .ds-pin{flex-direction:column-reverse}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:normal;min-height:0;max-height:calc(100% - 17px);flex-shrink:1}
.ds-theme-2 .ds-pin-diagram-large[data-model-style="vl53l0x-lga"] .ds-pin-column:is(.top,.bottom) .ds-pin span{max-height:calc(100% - 27px)}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin{font-size:8px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin b{font-size:8px;width:14px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body strong{font-size:9px}
.ds-theme-2 .ds-pin-viewport .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body small{font-size:6px}
.ds-theme-2 .ds-pin-diagram[data-model-style="vl53l0x-lga"] .ds-pin-body{padding:4px;justify-content:center;gap:4px}
.ds-theme-2[data-selected-package] .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]){grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);height:190px;max-height:100%;width:100%;max-width:390px;margin:0 auto}
.ds-theme-2[data-selected-package] .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]) .ds-pin-column.right{grid-template-rows:1fr}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]) .ds-pin-body{padding:8px;gap:8px;justify-content:center}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]) .ds-pin-body strong{font-size:13px;letter-spacing:0;text-align:center;overflow-wrap:anywhere}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]) .ds-pin-body small{font-size:9px;letter-spacing:0;text-align:center}
.ds-theme-2 .ds-pin-diagram:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]) :is(.ds-notch,.ds-pin-body small:last-of-type){display:none}
.ds-theme-2[data-selected-package] .ds-pin-diagram-large:is([data-model-style="sot23-diode"],[data-model-style="sot23-diac"],[data-model-style="sot23-bjt"],[data-model-style="sot23-mosfet"],[data-model-style="sot23-linear"]){grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr);height:270px;max-width:500px}
/* 5 mm LED and axial resistor (ProTech-verified parts): two numbered leads, LED pads A and K lower down where its leads bend out. */
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]){display:block;position:relative;width:100%;max-width:520px;height:auto;min-height:0;aspect-ratio:520/200;margin:auto}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-body{position:absolute;left:34%;top:30%;width:32%;height:40%;min-height:0;padding:0;background:none;border:0;box-shadow:none;gap:2px;color:#1b303f}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-body :is(strong,small){color:#1b303f}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-body strong{font-size:clamp(11px,1.3vw,18px)}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) :is(.ds-notch,.ds-pin-one,.ds-pin-body small){display:none}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-body{display:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-column{position:absolute;top:35%;width:18%;height:30%;padding:0}.ds-theme-2 .ds-pin-diagram[data-package-shape="led5"] .ds-pin-column{top:60%}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-column.left{left:0}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin-column.right{right:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin{background:var(--sheet-surface,#f8fbff);border:0;padding:0;display:flex;align-items:center;gap:6px;justify-content:center;min-height:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin b{display:grid;place-items:center;width:28px;height:28px;background:#d5dfe5;color:#233a49;border:1px solid #859eaf;border-radius:3px;font-size:13px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="led5"],[data-package-shape="axial-resistor"]) .ds-pin[aria-pressed="true"] b{outline:3px solid #00add8;outline-offset:2px}
/* Switches (ProTech SwitchStyles): two numbered pins either side of the drawing; toggle and rocker pins where their tabs bend out. */
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]){display:block;position:relative;width:100%;max-width:520px;height:auto;min-height:0;aspect-ratio:520/200;margin:auto}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) :is(.ds-notch,.ds-pin-one,.ds-pin-body){display:none}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin-column{position:absolute;top:35%;width:18%;height:30%;padding:0}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="toggle"],[data-package-shape="rocker"]) .ds-pin-column{top:73%}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin-column.left{left:0}.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin-column.right{right:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin{background:var(--sheet-surface,#f8fbff);border:0;padding:0;display:flex;align-items:center;gap:6px;justify-content:center;min-height:0}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin b{display:grid;place-items:center;width:28px;height:28px;background:#d5dfe5;color:#233a49;border:1px solid #859eaf;border-radius:3px;font-size:13px}
.ds-theme-2 .ds-pin-diagram:is([data-package-shape="tactile"],[data-package-shape="toggle"],[data-package-shape="rocker"],[data-package-shape="dip-switch"]) .ds-pin[aria-pressed="true"] b{outline:3px solid #00add8;outline-offset:2px}
