.route-source-group { border:0;border-block-start:1px solid var(--line);border-radius:0;background:transparent;margin:0; }
.route-source-group>summary { display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 0;cursor:pointer;background:transparent; }
.route-source-group>summary::after { content:"＋";margin-inline-start:auto;color:#58796b; }
.route-source-group[open]>summary::after { content:"−"; }
.route-source-group[open]>summary { border-inline-start:3px solid #376e54;padding-inline-start:14px;background:#edf3ef; }
.route-source-group>summary small { color:#688276; }
.route-source-group>summary strong { font-size:20px;color:#214d3b; }
.route-source-group>summary span { color:#688276;font-size:13px; }
.route-cards { display:grid;gap:10px;padding:14px 0 22px; }
.route-card { border:0;border-radius:8px;padding:18px 20px;background:#fff;min-width:0;box-shadow:0 1px 0 #dce6df; }
.route-card-heading { display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-block-end:16px;color:#315e48; }
.route-card-heading>span { font-weight:650; }.route-card-heading>small { color:#72877a; }
.route-chain { list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:24px;align-items:stretch; }
.route-step { position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;border:0;border-radius:0;padding:0;background:transparent;min-width:150px;max-width:100%; }
.route-step:not(:last-child)::after { content:"→";position:absolute;inset-inline-end:-20px;color:#8fa89a; }
.route-step small { font-size:12px;color:#70857a; }.route-step strong { font-size:16px;overflow-wrap:anywhere; }
.route-step.is-finished { background:transparent;color:#1c6548;border-inline-start:2px solid #8fb49d;padding-inline-start:12px; }.route-note { font-size:13px;color:#6b8074;margin-block:12px 0; }
.route-source-group summary:focus-visible { outline:3px solid #8cc9ab;outline-offset:-3px; }
.exceptions-grid { display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-block:12px; }
.exception-card { border:0;border-radius:8px;padding:20px;background:#fff;box-shadow:0 1px 0 #dce6df;min-width:0; }
.exception-heading { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0;grid-column:1/-1; }
.exception-heading>span { color:#496658;font-size:13px;font-weight:650; }.exception-heading>small { color:#65766b;background:transparent;padding:0;border-radius:0; }
.exception-flow { display:flex;align-items:center;flex-wrap:wrap;gap:16px; }.exception-flow>div { display:flex;flex-direction:column;gap:6px;min-width:0; }.exception-flow strong { font-size:21px;color:#204e39;overflow-wrap:anywhere; }.exception-flow small { font-size:12px;color:#738578; }.exception-flow>span { color:#93ab9b;font-size:22px; }
.exception-amount { background:transparent;color:#215b40;padding:0;border-radius:0;font-weight:650;margin:0;align-self:center; }
.exception-description,.exception-card>p { color:#667b6d;line-height:1.55;font-size:14px; }.exception-route { border-block-start:1px solid #e3ebe5;margin-block-start:20px;padding-block-start:14px; }.exception-route>summary { cursor:pointer;color:#377253;font-size:14px;padding-block:6px; }.exception-route .route-chain { margin-block-start:16px; }
.page-header>a { color:#e3f2e9;text-decoration:none;border:1px solid #78a08c;border-radius:8px;padding:8px 12px; }

/* Registry browsing uses the existing warehouse palette and native controls. */
[hidden] { display:none!important; }
.registry-heading { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-block-end:24px; }
.registry-heading .type-switch { margin:0;width:auto;flex:0 1 auto;display:flex;gap:8px; }
.registry-heading .type-switch button { min-height:44px;padding-inline:18px; }
.registry-filters { display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:16px;align-items:end; }
.registry-filters label { min-width:0; }
.registry-view { display:flex;align-items:center;gap:12px;margin-block-start:20px;font-size:14px;flex-wrap:wrap; }
.registry-view select { width:auto;max-width:100%;min-height:44px; }
.table-hint { color:#496658;max-width:95ch;font-size:14px;line-height:1.5;margin-block:0 16px; }
.route-table-scroll { overflow-x:auto;max-width:100%;border:1px solid #cbd9d0;border-radius:8px;background:#fff; }
.route-table-scroll:focus-visible { outline:3px solid #17664b;outline-offset:3px; }
.route-table { border-collapse:collapse;width:100%;min-width:960px;text-align:start;table-layout:fixed; }
.route-table caption { text-align:start;padding:12px 16px;color:#496658;font-size:13px;background:#fff; }
.route-table th { background:#e7efe9;color:#254d39;font-size:14px;font-weight:650;text-align:start;padding:14px 12px;border:1px solid #cbd9d0; }
.route-table td { padding:14px 12px;border:1px solid #dde5df;vertical-align:top;background:#fff; }
.route-table td strong { display:block;font-size:15px;color:#234b37;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.route-table td small { display:block;font-size:12px;color:#496658;line-height:1.5;margin-block-start:6px; }
.route-table .source-band td { background:#f5f8f5; }
.route-table .source-start td { border-block-start:2px solid #b4c9bc; }
.route-table td.table-finished { background:#eaf4ed; }
.route-table td.table-empty { color:#738578;text-align:center; }
.route-table .table-notes { font-size:12px;color:#65511f;line-height:1.5; }
.table-notes span { display:block;margin-block-end:6px; }
.registry-filters button,.registry-heading>button,#retry { min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#315e48;cursor:pointer;font:inherit; }
#count { font-size:14px;color:#496658;margin-block:24px 12px;font-variant-numeric:tabular-nums; }
.reference-status { border:0;border-inline-start:3px solid #9b792a;border-radius:0;box-shadow:none;background:transparent;padding-block:4px; }
.registry-panel { border:0;border-radius:0;box-shadow:none;background:transparent;padding-inline:0; }
.reference-status p { max-width:75ch;line-height:1.5; }
.registry-empty { padding:32px 16px;text-align:center;grid-column:1/-1;background:#f3f8f5;border-radius:12px; }
.registry-empty h2 { font-size:20px; }.registry-empty p { line-height:1.5;color:#496658; }
#draftPanel { margin-block:24px;padding:24px;background:#f3f8f5;box-shadow:none; }
#draftPanel h2 { font-size:22px; }#draftPanel>p { max-width:75ch;line-height:1.5; }
.route-source-group>summary small,.route-source-group>summary span,.route-card-heading>small,.route-step small,.route-note,.exception-flow small,.exception-description,.exception-card>p { color:#496658; }
.route-chain { gap:28px; }.route-step { min-width:0;flex:1 1 140px;padding:0; }
.route-step:not(:last-child)::after { inset-inline-end:-20px;top:22px;color:#58796b; }
.exception-card { display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);gap:12px 28px; }
.exception-route { grid-column:1/-1;margin:0;border:0;padding:0; }.exception-route .route-chain { padding-block:12px;border-block-start:1px solid #edf1ee; }
.exception-description,.exception-card>p:not(.exception-amount) { grid-column:1/-1;margin:0;max-width:85ch; }
.exception-heading>small { color:#496658; }
.rule-diagram { grid-column:1/-1;margin:8px 0 0;min-width:0; }
.rule-visual-flow { display:flex;align-items:center;gap:24px;flex-wrap:wrap; }
.rule-input,.rule-output,.rule-residual { flex:1 1 190px;min-width:0;max-width:360px; }
.rule-diagram strong { display:block;font-size:20px;color:#214d3b;overflow-wrap:anywhere;margin-block:6px 12px; }
.rule-diagram small { font-size:13px;color:#496658; }
.rule-arrow { color:#58796b;font-size:26px; }
.board-glyph { height:24px;border:1px solid #a5946c;background:repeating-linear-gradient(0deg,#ece3ce 0px,#ece3ce 6px,#e2d7bd 7px,#ece3ce 8px);border-radius:3px; }
.board-pieces { display:flex;gap:6px;height:24px; }.board-pieces>span { flex:1;background:#cce2d3;border:1px solid #6a967d;border-radius:3px; }
.rule-residual .board-glyph { background:#efe3bf;border-color:#a88b46; }
.rule-diagram figcaption { font-size:13px;line-height:1.5;color:#496658;margin-block-start:16px;max-width:90ch; }
.geometry-layout { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:24px; }
.geometry-layout svg { width:100%;height:auto;max-height:280px; }
.rule-diagram .geometry-status { margin:0 0 12px;font-weight:600; }
.geometry-labels strong { font-size:18px;margin-block:4px 16px; }
.geometry-labels p,.geometric-rule>p { font-size:13px;line-height:1.5;color:#496658; }
@media(max-width:42rem){.geometry-layout { grid-template-columns:minmax(0,1fr);gap:12px; }}
.alias-table { width:100%;border-collapse:collapse;table-layout:fixed; }
.alias-table caption { text-align:start;font-size:14px;color:#496658;padding-block-end:14px; }
.alias-table th { text-align:start;color:#496658;font-size:13px;font-weight:600;padding:10px 14px;background:#f1f5f2;border-block-end:1px solid #cadace; }
.alias-table td { padding:12px 14px;vertical-align:top; }.alias-table td+td,.alias-table th+th { border-inline-start:1px solid #cadace; }
.alias-table td+td { background:#edf6ef; }.alias-table strong { margin:0 0 6px; }
@media(max-width:42rem){
 .rule-visual-flow { flex-direction:column;align-items:stretch;gap:10px; }
 .rule-input,.rule-output,.rule-residual { flex:auto;max-width:none; }
 .rule-arrow { align-self:center;transform:rotate(90deg); }
 .rule-diagram strong { font-size:17px; }.alias-table td,.alias-table th { padding:10px 8px; }
}
.route-source-group summary:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:3px solid #17664b;outline-offset:3px; }
@media(max-width:42rem) {
 .registry-filters { grid-template-columns:minmax(0,1fr);gap:12px; }
 .registry-heading { align-items:stretch; }.registry-heading .type-switch { width:100%;display:flex;flex-wrap:wrap; }
 .registry-heading .type-switch button { flex:1 1 150px; }
 .route-cards { padding:12px 0 20px; }.route-card,.exception-card { padding:16px; }
 .route-chain { flex-direction:column;gap:18px; }.route-step { flex:auto; }
 .route-step:not(:last-child)::after { content:"↓";inset-inline-end:auto;inset-inline-start:0;top:auto;bottom:-19px; }
 .route-source-group>summary { padding:16px 0;gap:8px; }
 .exception-card { grid-template-columns:minmax(0,1fr); }.exception-heading { margin:0; }.exception-flow strong { font-size:19px; }
 #draftPanel { padding:16px; }.form-grid { grid-template-columns:minmax(0,1fr); }
 input,select { font-size:16px!important; }
 .page-header { gap:16px;flex-wrap:wrap; }.page-header h1 { font-size:28px;overflow-wrap:anywhere; }
}
