#audioLinksLab.al-frame-presentation .fr-shared-frame{grid-template-rows:154px 134px minmax(90px,1fr)!important}
#audioLinksLab.al-frame-presentation .fr-frame-word{grid-row:1;justify-content:flex-start}
#audioLinksLab.al-frame-presentation .fr-frame-overview{grid-row:2}
#audioLinksLab.al-frame-presentation .fr-frame-line{grid-row:3}
#audioLinksLab.al-frame-presentation .afp-pending{visibility:hidden!important;pointer-events:none!important}
#audioLinksLab.al-frame-presentation .fr-frame-overview{background:#fff!important;color:#143d5d}
#audioLinksLab.al-frame-presentation .fr-frame-overview>.al-frame-title h3{color:#143d5d!important}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-word-fields{height:38px;min-height:38px;flex:0 0 38px}
#audioLinksLab.al-frame-presentation .afp-word-heading>strong{display:block!important;color:#143d5d!important}
#audioLinksLab.al-frame-presentation .afp-word-heading>h3{color:#143d5d!important;font-size:16px!important}
.afp-word-heading{display:flex;align-items:center;gap:18px;height:28px;min-height:28px}
.afp-word-heading>strong{font:700 17px/24px 'Segoe UI',sans-serif;color:var(--section-ink)}
#audioLinksLab .afp-word-heading>h3{margin:0!important;font-size:16px;line-height:24px;width:150px;min-width:150px}
.afp-navigation{display:flex;align-items:center;gap:7px;margin-left:auto}
#audioLinksLab .afp-navigation button{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border-radius:5px}
.afp-navigation svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.afp-navigation output{min-width:42px;text-align:center;font:600 14px/22px Consolas,monospace}
@media(max-height:820px){#audioLinksLab.al-frame-presentation .fr-shared-frame{grid-template-rows:136px 120px minmax(80px,1fr)!important}}

/* Field explanations remain next to the diagrams; protocol details stay accessible. */
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-content{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:12px}
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-content>.al-side{display:flex!important;flex-direction:column;gap:14px;min-height:0;padding:12px}
#audioLinksLab.al-frame-presentation .al-side>h2{font-size:19px;margin:0}
#audioLinksLab.al-frame-presentation #alFieldDetail{display:block!important;font-size:16px;line-height:23px}
#audioLinksLab.al-frame-presentation #alFieldDetail p{font-size:15px;line-height:22px}
.afp-role-tabs{display:flex;flex-direction:column;gap:6px}
#audioLinksLab .afp-role-tabs button{min-height:32px;padding:5px 8px;text-align:left;font-size:15px}
#audioLinksLab.al-frame-presentation .al-side>.al-key{display:none}
#audioLinksLab.al-frame-presentation .al-side>.al-high-rate-note{display:flex!important;flex-direction:column;align-items:stretch;margin-top:auto;font-size:13px;line-height:19px}
#audioLinksLab.al-frame-presentation .al-side>.al-high-rate-note button{font-size:13px;white-space:nowrap}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-bit-positions{display:grid!important;grid-template-columns:repeat(32,minmax(0,1fr))!important;height:20px;min-height:20px;flex:0 0 20px;gap:2px;margin:0;padding:0;line-height:20px}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-bit-positions>span{display:grid;place-items:center;font:500 11px/20px Consolas,monospace!important;height:20px;color:#254a67;position:static;transform:none;grid-column:auto!important}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-word-fields{height:32px;min-height:32px;flex-basis:32px;border:0!important;padding:0!important;margin:0!important}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-word-fields>button{height:32px;min-height:32px;padding:3px 1px;font-size:13px}
#audioLinksLab.al-frame-presentation .fr-frame-word>.al-word-fields>:is(.al-pre,.al-suffix){font-size:12px!important;padding:3px 0!important}
#audioLinksLab.al-frame-presentation .fr-frame-overview.afp-with-block{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.afp-frame-core{display:flex;flex-direction:column;justify-content:space-between;min-width:0}
#audioLinksLab.al-frame-presentation .fr-frame-overview .al-block-card{display:block!important;padding:0!important;min-width:0;border:0;background:transparent;color:#143d5d}
#audioLinksLab.al-frame-presentation .al-block-card .al-frame-title{flex-wrap:wrap;gap:4px;height:auto;min-height:24px}
#audioLinksLab.al-frame-presentation .fr-frame-overview :is(h3,#alBlockReadout,#alBlockTime){color:#143d5d!important;font-size:13px}
#audioLinksLab.al-frame-presentation .al-block-card .al-status-block{grid-template-columns:repeat(48,minmax(0,1fr));gap:2px}
#audioLinksLab.al-frame-presentation .fr-frame-overview .al-aes-pair{display:flex!important;gap:4px}
#audioLinksLab.al-frame-presentation .fr-frame-overview .al-aes-pair button{font-size:13px;min-width:0;flex:1;padding:4px}
#audioLinksLab.al-frame-presentation #alMadiChannels{display:grid;grid-template-columns:repeat(var(--afp-channels,64),minmax(0,1fr));gap:1px}
#audioLinksLab.al-frame-presentation #alMadiChannels button{min-width:0;padding:0;font:600 var(--afp-channel-font,10px)/26px 'Segoe UI',sans-serif!important;height:30px;min-height:30px;white-space:nowrap}
#audioLinksLab.al-frame-presentation #alMadiChannels button :is(b,strong,span){font:inherit!important}
#audioLinksLab.al-frame-presentation .fr-frame-word>#alBits{gap:2px;margin:0!important;padding:0}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-shared-frame{grid-template-rows:142px 120px minmax(60px,1fr) 100px!important}
#audioLinksLab.al-frame-presentation .afp-aes-block{display:block!important;grid-row:4;background:var(--panel);color:var(--text)}
#audioLinksLab.al-frame-presentation .afp-aes-block .al-frame-title{height:24px;min-height:24px;margin:0 0 2px}
#audioLinksLab.al-frame-presentation .afp-aes-block .al-frame-title h3{font-size:15px;margin:0}
#audioLinksLab.al-frame-presentation .afp-aes-block .al-status-block{grid-template-columns:repeat(64,minmax(0,1fr));gap:2px;margin:0 0 4px}
#audioLinksLab.al-frame-presentation .afp-aes-block #alBlockReadout{font-size:12px;line-height:14px}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-frame-overview{display:flex;flex-direction:column;gap:2px;justify-content:space-between}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-frame-overview>.al-frame-title{height:24px;min-height:24px;margin:0}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-frame-overview>.fr-sample-period{height:32px;margin:0}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-sample-period>div{height:18px;line-height:18px}
#audioLinksLab.al-frame-presentation[data-view=aes] .fr-frame-overview>.al-aes-pair{margin:0!important;height:28px;min-height:28px}
#audioLinksLab.al-frame-presentation[data-view=aes] .al-aes-pair>button{height:28px;min-height:28px;padding:2px 4px}
#audioLinksLab.al-stable-audio-toolbar .al-settings>.afs-control{width:166px!important;min-width:166px!important;max-width:166px!important;flex:0 0 166px!important;order:0}
#audioLinksLab.al-stable-audio-toolbar .afs-control>.uc-field{display:grid!important;grid-template-columns:36px 120px!important;gap:10px!important;align-items:center;width:166px!important;margin:0!important}
#audioLinksLab.al-stable-audio-toolbar .afs-control .nc-caption{width:36px;min-width:36px;white-space:nowrap;margin:0!important}
#audioLinksLab.al-stable-audio-toolbar .al-settings #alRate{width:120px!important;min-width:120px!important;max-width:120px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:4px 26px 4px 8px!important;font:14px/22px 'Segoe UI',sans-serif!important;box-sizing:border-box}
#wsChapterDialog #audioLinksLab.al-stable-audio-toolbar>.uc-context-nav.al-navigation{display:none!important}
.afp-preamble-patterns{display:grid;gap:7px;margin-top:9px}
.afp-preamble-pattern{border:1px solid var(--frame-border);border-radius:5px;padding:3px 5px;background:var(--bg)}
.afp-preamble-pattern.is-current{border-color:var(--section-ink);background:var(--control);box-shadow:inset 3px 0 var(--section-ink)}
.afp-preamble-pattern .afp-preamble-label{display:flex;align-items:center;gap:8px;min-height:20px}
.afp-preamble-pattern .afp-preamble-label strong{font:750 17px/20px 'Segoe UI',sans-serif;color:var(--section-ink)}
.afp-preamble-pattern .afp-preamble-label span{font:500 12px/16px 'Segoe UI',sans-serif;color:var(--text)}
#audioLinksLab .afp-preamble-pattern svg{display:block;width:100%;height:27px;min-height:27px;max-height:27px}
.afp-preamble-grid{stroke:var(--frame-border);stroke-width:.6;fill:none}
.afp-preamble-wave{fill:none;stroke:var(--amber);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#audioLinksLab.al-frame-presentation #alFieldDetail .afp-preamble-caption{font-size:12px;line-height:18px;margin:9px 0 0}
#audioLinksLab.al-frame-presentation #alBlockReadout{display:none!important}
#audioLinksLab .al-settings>.afp-navigation{margin-left:auto;flex:0 0 auto;align-self:center;height:30px;gap:5px;order:99!important}
#audioLinksLab .al-settings>.afp-navigation button{width:26px;min-width:26px;height:28px;min-height:28px}
#audioLinksLab .al-settings>.afp-navigation output{min-width:36px}
#audioLinksLab.al-frame-presentation .al-side>.afp-generator{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;margin:10px 0 0;padding:7px;border:1px solid var(--control-border);border-radius:5px;background:var(--control);font-size:13px;line-height:18px;flex:none}
#audioLinksLab .afp-generator input{width:16px;height:16px;margin:0;flex:none}
#audioLinksLab.al-sdif-presentation .al-sdif-dynamic{display:flex!important;flex-direction:column;gap:4px}
#audioLinksLab.al-sdif-presentation .al-sdif-dynamic>.al-frame-title{height:28px;min-height:28px;margin:0}
#audioLinksLab.al-sdif-presentation .al-sdif-dynamic h3{font-size:16px;color:#143d5d}
#audioLinksLab.al-sdif-presentation .al-sdif-dynamic>.al-word-fields{height:32px;min-height:32px}
#audioLinksLab.al-sdif-presentation #alSdifBits{height:28px;min-height:28px;margin:0!important;gap:2px}
#audioLinksLab.al-sdif-presentation .afp-sdif-frame>.al-frame-title h3{font-size:16px;color:#143d5d}
.afp-sdif-channel{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px;margin-top:5px}
#audioLinksLab .afp-sdif-channel>button{padding:3px;min-height:28px;font-size:13px}
.afp-sdif-channel>div{display:grid;grid-template-columns:repeat(32,minmax(0,1fr));height:28px}
.afp-sdif-channel span{display:grid;place-items:center;font:600 12px/18px 'Segoe UI',sans-serif;color:#143d5d;background:#e7edf5;border:1px solid #899cb2;min-width:0}
.afp-sdif-channel .afp-sdif-sdifAudio{background:#cfc1e9;color:#392054}
.afp-sdif-channel .afp-sdif-sdifData{background:#b8d7f5;color:#153951}
.afp-sdif-channel .afp-sdif-sdifFlag,.afp-sdif-channel .afp-sdif-sdifSync{background:#ffe2b0;color:#5e3c0b}
#audioLinksLab.al-sdif-presentation .fr-frame-line>#alSdifTrace{width:100%;height:0!important;min-height:30px;flex:1}
#audioLinksLab.al-sdif-presentation .fr-frame-line>.al-sdif-block{display:flex;justify-content:space-between;gap:8px;flex:none;margin:0;font-size:12px;line-height:18px}
#audioLinksLab.al-sdif-presentation .al-side>label:has(#alSdifData){font-size:13px;margin:0}
#audioLinksLab.al-sdif-presentation #alSdifExplanation{display:block!important;font-size:16px;line-height:23px;border-top:0;padding-top:0}
#audioLinksLab.al-sdif-presentation .afp-sdif-frame{display:flex!important;flex-direction:column;align-items:stretch}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;grid-template-rows:28px;width:100%!important;min-height:28px;gap:8px;margin-top:5px}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel>div{display:grid!important;grid-template-columns:repeat(32,minmax(0,1fr))!important;min-width:0;width:100%;height:28px}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel span{white-space:nowrap;overflow:hidden}
#audioLinksLab.al-sdif-presentation #alSdifTrace text{fill:var(--text)!important}
#audioLinksLab.al-sdif-presentation .fr-frame-line h3{color:var(--text)!important;font-size:16px}
@media(max-height:820px){
 #audioLinksLab.al-frame-presentation[data-view=aes] .fr-shared-frame{grid-template-rows:130px 100px minmax(48px,1fr) 80px!important;gap:6px!important}
 #audioLinksLab.al-frame-presentation .fr-frame-word{gap:2px}
 #audioLinksLab.al-frame-presentation .fr-frame-line>#alLine{min-height:18px!important}
 #audioLinksLab.al-frame-presentation .al-side>.al-high-rate-note{font-size:12px;line-height:18px}
}

#audioLinksLab.al-sdif-presentation .afp-sdif-channel>div{display:flex!important}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel .afp-sdif-sdifAudio{flex:20 1 0!important}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel .afp-sdif-sdifData{flex:8 1 0!important}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel .afp-sdif-sdifFlag{flex:1 1 0!important}
#audioLinksLab.al-sdif-presentation .afp-sdif-channel .afp-sdif-sdifSync{flex:3 1 0!important}
#audioLinksLab.al-frame-presentation .afp-word-heading>.afp-current-channel{display:flex!important;align-items:center;gap:9px;width:130px!important;min-width:130px!important;max-width:130px!important;flex:0 0 130px;height:28px;margin:0!important;font:650 16px/24px 'Segoe UI',sans-serif!important;color:#143d5d!important}
#audioLinksLab.al-frame-presentation .afp-current-channel>span{font:inherit!important;color:inherit!important}
#audioLinksLab.al-frame-presentation .afp-current-channel>b{display:inline-block;font:750 22px/26px 'Segoe UI',sans-serif!important;color:#245e94!important;min-width:30px;text-align:center}
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-bits>button.afp-bit-zero{background:#edf2f8!important;color:#18283b!important;border-color:#a0b2c8!important;box-shadow:none!important}
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-bits>button.afp-bit-one{background:var(--selected-bg)!important;color:var(--selected-ink)!important;border-color:var(--mint)!important;box-shadow:none!important}
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-bits>button.selected{outline:1px solid #245e94;outline-offset:-2px}
#wsChapterDialog #audioLinksLab.al-frame-presentation .al-bits>button{height:28px!important;min-height:28px!important;max-height:28px!important;box-sizing:border-box;display:grid;place-items:center;padding:2px 0!important;line-height:22px!important;margin:0;transition:none!important}
#wsChapterDialog #audioLinksLab.al-frame-presentation .afp-word-heading{display:grid!important;grid-template-columns:190px 130px minmax(0,1fr)!important;grid-template-rows:28px;column-gap:14px;align-items:center}
#wsChapterDialog #audioLinksLab.al-frame-presentation .afp-word-heading>strong{grid-column:1!important;grid-row:1!important;white-space:nowrap}
#wsChapterDialog #audioLinksLab.al-frame-presentation .afp-word-heading>.afp-current-channel{grid-column:2!important;grid-row:1!important;order:0!important;justify-content:flex-start!important;align-items:baseline!important;flex-wrap:nowrap!important;width:130px!important;min-width:130px!important;max-width:130px!important;margin:0!important;text-align:left!important;font:650 16px/24px 'Segoe UI',sans-serif!important;letter-spacing:normal!important;gap:4px}
#wsChapterDialog #audioLinksLab.al-frame-presentation .afp-current-channel>span{font:inherit!important;color:inherit!important;text-align:left!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important}
#wsChapterDialog #audioLinksLab.al-frame-presentation .afp-current-channel>b{font:750 22px/26px 'Segoe UI',sans-serif!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important;color:#245e94!important}
#audioLinksLab.al-frame-presentation[data-view=madi] .fr-shared-frame{grid-template-rows:142px 134px minmax(90px,1fr)!important}
@media(max-height:820px){#audioLinksLab.al-frame-presentation[data-view=madi] .fr-shared-frame{grid-template-rows:130px 120px minmax(80px,1fr)!important}}
