@font-face {
    font-family: Audit Geist;
    src: url(../fonts/Geist-Regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Audit Geist;
    src: url(../fonts/Geist-Medium.woff2) format("woff2");
    font-weight: 500 800;
    font-display: swap;
}
#sourcing-audit-view.active {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: auto;
    background: #f7f8fb;
}
#sourcing-audit-root {
    --audit-ink: #171c24;
    --audit-line: #dce1e8;
    --audit-green: #194d3c;
    --audit-purple: #705cc5;
    --audit-selected: #4968b0;
    --audit-selected-soft: #e7effb;
    color: var(--audit-ink);
    font: 400 15px/1.45 "Audit Geist", system-ui, sans-serif;
    display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%;
    background: radial-gradient(ellipse at 6% 55%, #eaf6ef 0, transparent 31%), linear-gradient(120deg, #fafbf9, #f4f6fb 65%, #f8f9fc);
}
#sourcing-audit-root *, #sourcing-audit-root *::before { box-sizing: border-box; }
#sourcing-audit-root ::selection { background: #d6e6df; color: #163c2c; }
#sourcing-audit-root :is(h1,h2,h3,p) { margin: 0; color: inherit; font-family: inherit; letter-spacing: normal; }
#sourcing-audit-root button {
    appearance: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background-color .16s, border-color .16s, box-shadow .16s;
}
#sourcing-audit-root button:focus-visible { outline: 3px solid #475cc5; outline-offset: 3px; }
#sourcing-audit-root button:disabled { opacity: .4; cursor: default; }
.audit-icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audit-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 65px;
    padding: 10px clamp(18px, 2.1vw, 36px);
    border-bottom: 1px solid var(--audit-line);
    background: rgba(255,255,255,.91);
}
.audit-identity, .audit-tools, .audit-foot, .audit-pages { display: flex; align-items: center; gap: 10px; }
.audit-identity { min-width: 0; flex: 1; }
.audit-identity > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(16px, 1.25vw, 21px); font-weight: 600; letter-spacing: -.035em; }
.audit-stage { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; white-space: nowrap; color: #275f45; background: #e6f4eb; border-radius: 20px; font-size: 12px; }
.audit-stage i { height: 7px; width: 7px; border-radius: 50%; background: #409563; }
#sourcing-audit-root .audit-tools button, #sourcing-audit-root .audit-foot button, #sourcing-audit-root .audit-round {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px;
    border: 1px solid var(--audit-line); border-radius: 8px; background: white; padding: 7px 13px;
    font-size: 13px; font-weight: 500;
}
.audit-tools button:hover, .audit-foot button:hover, #sourcing-audit-root .audit-round:hover { background: #f1f5f3; border-color: #bdc9c6; }
#sourcing-audit-root .audit-round { width: 38px; height: 38px; flex: none; padding: 0; border-radius: 50%; }
#sourcing-audit-root :is(.audit-tools,.audit-foot) button.audit-primary { border-color: var(--audit-green); background: var(--audit-green); color: #fff; }
#sourcing-audit-root :is(.audit-tools,.audit-foot) button.audit-primary:hover { background: #123c2e; }
.audit-board {
    width: 100%; max-width: 1920px; margin: 0 auto; min-height: 0;
    display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1.52fr) minmax(310px, 1fr); align-items: center;
    gap: clamp(24px, 3.7vw, 70px); padding: clamp(10px, 2.4dvh, 26px) clamp(20px, 3vw, 52px);
}
.audit-map { position: relative; min-width: 0; }
.audit-diagram {
    --audit-root-size: clamp(86px, 9.6vw, 166px);
    --audit-wire-width: clamp(38px, 14vw, 245px);
    display: grid; grid-template-columns: var(--audit-root-size) var(--audit-wire-width) minmax(0,1fr);
    align-items: center; min-width: 0;
    height: clamp(180px, calc(var(--audit-rows) * 12dvh), 620px);
    min-height: calc(var(--audit-rows) * 74px);
}
.audit-root-column { position: relative; z-index: 1; }
#sourcing-audit-root .audit-rfq {
    width: var(--audit-root-size); height: var(--audit-root-size); border-radius: 50%; padding: 5px;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
    border: 2px solid white; background: radial-gradient(ellipse at 30% 12%, #fff, #f4f3fd 85%);
    box-shadow: inset 0 0 16px #e8e7f3, 0 3px 0 #d6dcf3, 0 11px 26px #717b9d29;
}
.audit-rfq > .audit-icon { width: 31%; height: 31%; stroke: #7965cc; stroke-width: 1.75; }
.audit-rfq b { font-size: clamp(18px, 1.65vw, 27px); font-weight: 600; letter-spacing: -.04em; }
#sourcing-audit-root .audit-rfq:is(:hover,.is-selected) { border-color: #9e91e3; }
.audit-wires { width: calc(100% + 4px); height: 100%; margin-left: -2px; overflow: visible; fill: none; pointer-events: none; }
.audit-wire-base { stroke: #b1c9c1; stroke-width: 1.75; }
.audit-branch.is-selected .audit-wire-base { stroke: #8caae4; stroke-width: 2.75; }
.audit-wire-flow { display: none; stroke: #42876f; stroke-width: 2.9; stroke-linecap: round; }
.audit-branch.is-selected .audit-wire-flow { stroke: var(--audit-selected); stroke-width: 3.75; }
.audit-wires.has-selection .audit-branch:not(.is-selected) .audit-wire-flow { opacity: .55; }
.audit-wires .is-empty { stroke-dasharray: 4 5; }
.audit-map-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
#sourcing-audit-root .audit-flow-toggle { display: none; align-items: center; gap: 6px; min-height: 36px; padding: 4px 9px; color: #475d55; background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 12px; }
#sourcing-audit-root .audit-flow-toggle:hover, .audit-map[data-flow-paused="true"] .audit-flow-toggle { background: #e8efeb; }
.audit-flow-toggle .audit-icon { width: 13px; height: 13px; }
@media (prefers-reduced-motion: no-preference) {
    #sourcing-audit-root[data-flow-visible] .audit-flow-toggle { display: inline-flex; }
    #sourcing-audit-root[data-flow-visible] .audit-wire-flow { display: inline; }
    #sourcing-audit-root[data-flow-visible] .audit-wire-sweep {
        stroke-dasharray: 9 104;
        animation: audit-wire-travel 4.8s linear infinite paused;
        animation-delay: calc(-4.8s * (var(--flow-phase) + var(--branch-phase)));
    }
    #sourcing-audit-root[data-flow-visible="true"] .audit-map[data-flow-paused="false"] .audit-wire-sweep { animation-play-state: running; }
}
@keyframes audit-wire-travel { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -104; } }
.audit-nodes { height: 100%; display: grid; grid-auto-rows: 1fr; align-items: center; min-width: 0; }
#sourcing-audit-root .audit-node {
    --node-pip: #64b88e; position: relative; min-width: 0; width: 100%; min-height: 62px; height: clamp(62px, 5.8vw, 96px);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(5px,.75vw,15px);
    padding: 7px clamp(12px,1.5vw,28px); border: 1.5px solid #f0f1f6; border-radius: 999px;
    background: linear-gradient(135deg,#fff,#fcfcfe); box-shadow: 0 9px 24px #2330470d; text-align: left;
}
.audit-node::before { content: ''; position: absolute; left: -1px; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--node-pip); border: 3px solid white; width: 16px; height: 16px; box-shadow: 0 0 0 3px #d9f0e865; }
#sourcing-audit-root .audit-node:hover { border-color: #b9c1e6; }
#sourcing-audit-root .audit-node.is-selected { --node-pip: var(--audit-selected); border-color: var(--audit-selected); background: linear-gradient(115deg, #fff, #f1f5fd); box-shadow: 0 6px 18px #536a9e20; }
.audit-avatar { flex: none; display: grid; place-items: center; width: clamp(34px, 3.6vw, 60px); height: auto; aspect-ratio: 1; border-radius: 50%; background: #e4f3e9; color: #36835a; }
.audit-avatar .audit-icon { width: 52%; height: 52%; }
.audit-node.is-selected .audit-avatar, .audit-avatar.is-supplier { background: var(--audit-selected-soft); color: var(--audit-selected); }
.audit-avatar.is-rfq { color: #7965cc; background: #eeebfa; }
.audit-node-identity { min-width: 0; }
.audit-node-identity strong {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; overflow-wrap: anywhere; font-size: clamp(13px, 1.15vw, 19px); line-height: 1.15; letter-spacing: -.025em;
}
.audit-node-identity small { display: block; margin-top: 2px; color: #596472; font-size: 10px; line-height: 1.1; }
.audit-count { display: inline-flex; justify-content: center; align-items: center; gap: .35em; border-left: 1px solid #e7e9ee; padding-left: clamp(6px, .9vw, 15px); font-size: clamp(14px, 1.25vw, 21px); }
.audit-count .audit-icon { width: 1.3em; height: 1.3em; }
.audit-count.is-checklist { color: #b97913; }
.audit-count.is-question { color: #8062c8; }
.audit-count b { font-variant-numeric: tabular-nums; color: var(--audit-ink); }
.audit-count.is-checklist b { min-width: var(--check-digits); text-align: end; }
.audit-count.is-question b { min-width: var(--question-digits); text-align: end; }
.audit-add-node { width: 100%; min-height: 62px; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; border: 1px dashed #b7cbc0; border-radius: 99px; background: #f9fcfa; color: #3d6350; }
.audit-pages { margin-left: auto; font-size: 12px; color: #5a6270; font-variant-numeric: tabular-nums; }
.audit-detail {
    display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: 100%; container-type: inline-size;
    background: #fff; border: 1px solid #e8eaf2; border-radius: 16px; padding: clamp(14px, 1.4vw, 24px);
    box-shadow: 0 8px 30px #2837520a, 0 1px 4px #29354d04;
}
.audit-detail-heading { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 14px; }
.audit-detail-heading .audit-avatar { width: 40px; }
.audit-detail-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a9b9af transparent; padding: 5px; margin: -5px; }
.audit-detail-heading > div { min-width: 0; overflow-wrap: anywhere; }
#sourcing-audit-root .audit-detail h1 { font-size: clamp(1.12rem, 1.45vw, 1.45rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.audit-detail-heading small, .audit-task small { display: block; color: #626d7b; font-size: 11px; font-weight: 500; }
#sourcing-audit-root .audit-close { height: 36px; width: 36px; min-height: 36px; margin-left: auto; align-self: flex-start; border: 0; background: transparent; }
.audit-summary { background: linear-gradient(115deg,#f3f1fa,#eff1fb); border-radius: 12px; padding: clamp(15px, 1.3vw, 23px); }
#sourcing-audit-root .audit-summary h3, #sourcing-audit-root .audit-actions h2 { display: flex; align-items: center; gap: 9px; font-size: clamp(15px,1.1vw,19px); font-weight: 600; letter-spacing: -.025em; }
.audit-summary h3 .audit-icon { color: var(--audit-purple); }
#sourcing-audit-root .audit-summary p { margin-top: 8px; font-size: clamp(14px,1.07vw,18px); line-height: 1.55; overflow-wrap: anywhere; }
.audit-actions { margin: 22px 0 6px; }
.audit-actions h2 .audit-icon { color: #5a6272; }
#sourcing-audit-root .audit-task { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 8px; background: transparent; min-height: 50px; padding: 8px; margin-top: 2px; text-align: left; line-height: 1.35; overflow-wrap: anywhere; }
#sourcing-audit-root .audit-actions h2 + .audit-task { margin-top: 10px; background: #f1f5f2; font-weight: 500; }
#sourcing-audit-root .audit-task:hover { background: #eaf1ec; }
.audit-task-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #f7efdf; color: #946921; }
.audit-task-icon.is-question { background: #eee9fa; color: #705899; }
.audit-task > .audit-icon:last-child { margin-left: auto; color: #606979; width: 15px; }
.audit-foot { flex: none; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--audit-line); }
#sourcing-audit-root .audit-foot button { flex: 1; min-height: 44px; }
.audit-wait { display: flex; min-height: 45vh; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #485c52; }
.audit-wait .audit-foot { margin: 0; padding: 0; }
@media (min-width: 901px) {
    #sourcing-audit-view.active { margin-top: var(--workspace-topbar-height,72px); height: calc(100dvh - var(--workspace-topbar-height,72px)); }
}
@media (min-width: 901px) and (max-height: 690px) {
    .audit-map { max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; }
    .audit-diagram { min-height: calc(var(--audit-rows) * 64px); }
    #sourcing-audit-root .audit-node { height: 60px; min-height: 60px; }
}
@media (max-width: 1120px) {
    .audit-board { grid-template-columns: minmax(0,1.28fr) minmax(290px,1fr); gap: 22px; }
    .audit-diagram { --audit-wire-width: clamp(30px,8vw,90px); }
    .audit-foot { flex-wrap: wrap; }
}
@media (max-width: 900px) {
    #sourcing-audit-view.active { height: calc(100dvh - var(--dashboard-mobile-top-offset, 56px)); }
    .audit-board { grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); gap: 8px; padding: 8px 12px 12px; }
    .audit-map { max-height: min(27dvh, 14rem); overflow: auto; overscroll-behavior: contain; padding: 4px 6px; scrollbar-width: thin; }
    .audit-detail { align-self: start; padding: 14px; }
    .audit-diagram { --audit-wire-width: clamp(34px, 10vw, 96px); --audit-root-size: clamp(68px, 17vw, 94px); height: max(124px, calc(var(--audit-rows) * 70px)); min-height: 0; }
    #sourcing-audit-root .audit-node { min-height: 48px; height: 54px; padding: 5px 12px; }
    .audit-avatar { width: 32px; }
    .audit-detail-heading .audit-avatar { width: 40px; }
    .audit-bar { gap: 8px; padding: 9px 12px; flex-wrap: wrap; min-height: 56px; }
    .audit-identity { gap: 2px; flex-direction: column; align-items: flex-start; }
    .audit-identity > strong { max-width: 100%; font-size: 15px; }
    .audit-stage { padding: 0; background: none; font-size: 11px; }
    .audit-tools { gap: 5px; }
    #sourcing-audit-root .audit-tools button { padding: 7px 9px; font-size: 12px; }
    .audit-summary, .audit-actions { font-size: 14px; }
    .audit-actions { margin-top: 16px; }
    .audit-detail-heading { margin-bottom: 12px; }
    #sourcing-audit-root .audit-flow-toggle, #sourcing-audit-root .audit-round, #sourcing-audit-root .audit-tools button { min-height: 44px; }
    #sourcing-audit-root .audit-round { width: 44px; }
    .audit-foot { padding-top: 10px; margin-top: 10px; }
}
@media (max-width: 400px) {
    .audit-board { padding: 12px; }
    .audit-node .audit-avatar { width: 25px; }
    .audit-count { padding-left: 4px; gap: 3px; }
}
@media (max-width: 600px) {
    .audit-tools button:has(span) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* The map and the conversation share one reading order and one set of source links. */
.audit-summary.has-brief, .supplier-brief-summary.has-brief {
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.alignment-brief {
    --brief-ink: #1e332b;
    --brief-muted: #52645b;
    --brief-rule: #dce5df;
    color: var(--brief-ink);
    overflow-wrap: anywhere;
}
.brief-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-heading h2 {
    margin: 0;
    font: 600 clamp(1.12rem, 1.5vw, 1.48rem)/1.2 "Audit Geist", system-ui, sans-serif;
    letter-spacing: -.025em;
}
.brief-meta { flex-basis: 100%; color: var(--brief-muted); font-size: .78rem; }
.brief-meta strong { color: #79561e; font-weight: 600; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-refresh {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    max-width: 100%; min-height: 40px; padding: 6px 12px;
    border: 1px solid #bad1c4; border-radius: 7px; background: #f2f7f3; color: #204f38;
    line-height: 1.35; font-family: inherit; font-weight: 550; font-size: .83rem;
    cursor: pointer;
}
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-refresh:hover { background: #e6f0e9; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-refresh[aria-disabled="true"] { cursor: progress; color: #52645b; }
.brief-refresh .audit-icon { width: 15px; height: 15px; }
.audit-summary > .brief-refresh { margin-top: 12px; }
.brief-latest { margin: 16px 0 0; padding: 16px 18px; border-radius: 10px; background: #eff5f1; }
:is(#sourcing-audit-root, #supplier-state-workspace) .alignment-brief h3 {
    display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--brief-ink);
    font: 600 1rem/1.35 "Audit Geist", system-ui, sans-serif; letter-spacing: -.015em;
}
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-latest h3 { color: #365b47; font-size: .82rem; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-latest p {
    margin: 6px 0 0; max-width: 68ch; font-size: 1.03rem; line-height: 1.52; color: var(--brief-ink);
}
.brief-latest blockquote {
    margin: 7px 0 0; padding: 0; border: 0; color: var(--brief-muted); font: inherit;
    font-size: .92rem; line-height: 1.5; white-space: pre-line; max-width: 68ch;
}
.brief-latest time { display: block; margin-block-start: 8px; color: var(--brief-muted); font-size: .76rem; }
.brief-section { margin-top: 20px; }
.brief-section + .brief-section { padding-top: 16px; border-top: 1px solid var(--brief-rule); }
.brief-count { color: var(--brief-muted); font: 500 .83rem/1.2 "Audit Geist", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.brief-items { list-style: disc outside; padding-inline-start: 1.15rem; margin: 6px 0 0; }
.brief-items > li { padding: 2px 0 6px 2px; }
.brief-items > li::marker { color: #658571; font-size: .8em; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-topic {
    display: inline-block; min-height: 32px; max-width: 100%; margin: 0; padding: 3px 0; border: 0;
    background: transparent; color: var(--brief-ink); text-align: start; overflow-wrap: anywhere;
    font-family: inherit; font-size: .94rem; font-weight: 600; line-height: 1.45; cursor: pointer;
}
.brief-topic .audit-icon { width: .83em; height: .83em; color: #496956; margin-inline-start: .35em; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-topic:hover { color: #20573b; text-decoration: underline; text-underline-offset: 3px; }
.brief-guidance, .brief-supplier, .brief-question-detail { display: block; }
.brief-question-detail { margin-bottom: 3px; max-width: 70ch; color: var(--brief-ink); font-size: .9rem; line-height: 1.5; }
.brief-guidance, :is(#sourcing-audit-root, #supplier-state-workspace) .alignment-brief .brief-empty {
    color: var(--brief-muted); max-width: 70ch; margin: 0; font: inherit; font-size: .87rem; line-height: 1.5;
}
.brief-guidance strong { font-weight: 550; }
.brief-supplier { margin-top: 5px; color: var(--brief-muted); font-size: .76rem; }
:is(#sourcing-audit-root, #supplier-state-workspace) .alignment-brief .brief-empty { margin-top: 7px; }
.brief-more > summary {
    width: fit-content; max-width: 100%; padding: 7px 3px; color: #2e6143; cursor: pointer;
    font-size: .83rem; font-weight: 550;
}
.brief-more > summary:focus-visible { outline: 2px solid #2975b8; outline-offset: 2px; }
:is(#sourcing-audit-root, #supplier-state-workspace) .brief-notice { color: #79561e; margin: 8px 0; font-size: .86rem; }
@media (pointer: coarse) {
    :is(#sourcing-audit-root, #supplier-state-workspace) :is(.brief-refresh, .brief-topic, .brief-more > summary) { min-height: 44px; }
}
/* Keep the audit preview short. Its full evidence lists expand inside the same panel. */
#sourcing-audit-root .brief-heading h2 { font-size: 1.125rem; }
#sourcing-audit-root .brief-heading {
    display: grid; grid-template-columns: minmax(0, 1fr) fit-content(55%); gap: 4px 8px;
}
#sourcing-audit-root .brief-meta { grid-column: 1 / -1; }
#sourcing-audit-root .brief-refresh { min-height: 34px; padding: 5px 9px; }
#sourcing-audit-root .brief-latest {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px;
    margin-top: 10px; padding: 12px 14px; border-radius: 8px;
}
#sourcing-audit-root .brief-latest > :is(p, blockquote, .brief-supplier) { grid-column: 1 / -1; }
#sourcing-audit-root .brief-latest time { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: .75rem; }
#sourcing-audit-root .brief-latest p { margin-top: 4px; font-size: .94rem; line-height: 1.4; }
#sourcing-audit-root .brief-latest blockquote { margin-top: 4px; font-size: .85rem; line-height: 1.4; }
#sourcing-audit-root .has-brief .audit-actions {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 8px 0;
}
#sourcing-audit-root .has-brief .audit-actions h2 { font-size: .86rem; }
#sourcing-audit-root .has-brief .audit-actions .audit-task { min-height: 36px; margin: 0; padding-block: 5px; font-size: .9rem; }
#sourcing-audit-root .has-brief .audit-task-icon { width: 26px; height: 26px; }
.audit-brief-lists { margin-top: 8px; }
.audit-brief-lists > * { border-top: 1px solid var(--brief-rule); }
#sourcing-audit-root .audit-list > summary, #sourcing-audit-root :is(.audit-list-empty, .audit-open-questions) h3 {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 6px 4px;
    color: var(--brief-ink); font-size: .875rem; line-height: 1.35; font-weight: 600; list-style: none;
}
.audit-list > summary::-webkit-details-marker { display: none; }
.audit-list > summary:hover { background: #f4f7f5; }
.audit-brief-lists .audit-icon:first-child { width: 16px; height: 16px; color: #4d6959; }
.audit-brief-lists .brief-count { margin-inline-start: auto; color: #45574d; font-variant-numeric: tabular-nums; }
.audit-list > summary .audit-icon:last-child { width: 14px; height: 14px; color: #586a60; }
.audit-list[open] > summary .audit-icon:last-child { transform: rotate(90deg); }
.audit-brief-lists .brief-items { margin: 0 0 8px; padding-inline-start: 1.6rem; }
#sourcing-audit-root .audit-list-empty .brief-empty { margin: -2px 0 8px 28px; }
#sourcing-audit-root .audit-open-questions h3 { min-height: 32px; }
.audit-question-previews { display: grid; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.audit-question-previews li { min-width: 0; }
.audit-question-previews strong { font: inherit; font-weight: 600; }
#sourcing-audit-root .audit-question-previews .brief-topic {
    display: block; width: 100%; padding: 4px; border-radius: 4px; font-size: .875rem; line-height: 1.3;
}
#sourcing-audit-root .audit-question-previews .brief-topic:hover { background: #f4f7f5; text-decoration: none; }
.audit-question-previews .brief-topic:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.audit-question-note { display: block; margin-top: 3px; color: var(--brief-muted); font-size: .8125rem; font-weight: 400; line-height: 1.4; }
@container (min-width: 16rem) {
    .audit-question-previews:has(li + li) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .audit-question-previews li + li { border-inline-start: 1px solid var(--brief-rule); padding-inline-start: 10px; }
}
@container (max-width: 18rem) {
    #sourcing-audit-root .brief-latest { display: block; }
    #sourcing-audit-root .brief-latest time { margin-top: 4px; }
}
@media (max-height: 700px) {
    .audit-detail-heading { margin-bottom: 8px; }
}
@media (max-width: 600px) and (max-height: 700px) and (orientation: portrait) {
    .audit-board:has(.audit-open-questions) .audit-map { max-height: 14dvh; }
    .audit-detail:has(.audit-open-questions) { padding: 10px; }
    .audit-detail-heading { margin-bottom: 4px; }
    .audit-detail-heading .audit-avatar { width: 32px; }
    .audit-brief-lists:has(.audit-open-questions) { margin-top: 3px; }
    #sourcing-audit-root .audit-open-questions h3 { min-height: 26px; padding-block: 3px; }
    #sourcing-audit-root .audit-foot button { padding-inline: 6px; }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .audit-board { grid-template: minmax(0, 1fr) / minmax(0, .85fr) minmax(0, 1.15fr); }
    .audit-map { max-height: 100%; }
    .audit-diagram { --audit-wire-width: 7%; --audit-root-size: clamp(44px, 8vw, 62px); }
    .audit-detail { align-self: center; padding: 10px; }
    #sourcing-audit-root:has(.audit-open-questions) {
        box-sizing: border-box; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 8px; padding: 6px;
    }
    .audit-board:has(.audit-open-questions) { display: contents; }
    .audit-board:has(.audit-open-questions) .audit-map { grid-column: 1; grid-row: 2; align-self: center; }
    .audit-detail:has(.audit-open-questions) { grid-column: 2; grid-row: 1 / 3; }
}
@media (pointer: coarse) {
    #sourcing-audit-root :is(.brief-refresh, .audit-list > summary, .has-brief .audit-actions .audit-task) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) { #sourcing-audit-root button { transition: none; } }
