.portal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-nav a { color: #dce5e6; text-decoration: none; padding: 9px 12px; font-size: 12px; font-weight: 650; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { color: white; background: #314955; }
.portal-nav a:focus-visible, .system-card:focus-visible, .document-button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.system-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 204px; padding: 22px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-top: 3px solid #bdc7c5; cursor: pointer; }
.system-card.selected { background: #fdfaf4; border-color: #dfb59e; border-top-color: var(--orange); }
.system-card:hover { border-top-color: var(--orange); }
.system-code { color: var(--orange-dark); letter-spacing: .12em; font-size: 24px; font-weight: 850; margin-bottom: 8px; }
.system-card strong { font-size: 15px; }
.system-card > span:not(.system-code):not(.system-link), .system-card small { color: var(--muted); font-size: 12px; }
.system-link { color: var(--blue-grey); font-size: 11px; font-weight: 750; margin-top: auto; padding-top: 12px; }
.workspace-actions { display: flex; gap: 12px; align-items: center; }
.system-description { margin: -8px 0 18px; color: var(--muted); font-size: 13px; max-width: 760px; }
.system-context { padding: 9px 12px; background: #f4f6f2; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.business-grid { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); min-height: 300px; border: 1px solid var(--line); }
.registry { padding: 20px; background: #f8faf7; border-right: 1px solid var(--line); }
h3 { font-size: 14px; margin: 0 0 14px; }
.business-empty { margin: 18px 0 8px; color: var(--muted); font-size: 13px; }
.document-list { display: flex; flex-direction: column; gap: 9px; }
.document-button { padding: 14px; text-align: left; border: 1px solid var(--line); background: white; cursor: pointer; color: var(--ink); }
.document-button[aria-pressed="true"] { border-left: 3px solid var(--orange); background: #fff7f0; }
.document-button strong, .document-button small, .document-button span { display: block; }
.document-button strong { font-size: 13px; overflow-wrap: anywhere; }
.document-button small { font-size: 11px; color: var(--muted); margin: 3px 0 8px; }
.document-button span { font-size: 11px; color: var(--green); }
.document-detail { padding: 24px; min-width: 0; }
.document-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.document-heading h3 { font-size: 20px; margin-bottom: 5px; overflow-wrap: anywhere; }
.document-subtitle { font-size: 12px; color: var(--muted); }
.document-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 18px 0; }
.document-fields div { min-width: 0; }
.document-fields dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.document-fields dd { margin: 0; font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.document-fields .full { grid-column: 1 / -1; }
.table-scroll { width: 100%; overflow-x: auto; }
.business-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 18px; }
.business-table th { background: #f3f6f2; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; text-align: left; }
.business-table th, .business-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.business-table td { overflow-wrap: anywhere; }
.business-table .numeric { text-align: right; white-space: nowrap; }
.technical-disclosure { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.technical-disclosure summary { cursor: pointer; color: var(--blue-grey); font-size: 12px; font-weight: 650; }
.json-output { margin: 12px 0 0; padding: 16px; font-size: 12px; line-height: 1.55; background: #f5f7f4; color: #253c48; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 480px; overflow: auto; }
.system-reference { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-item { padding: 12px; background: #f5f7f4; font-size: 12px; overflow-wrap: anywhere; }
.catalog-item strong, .catalog-item small { display: block; }
.catalog-item small { color: var(--muted); margin-top: 4px; }
.system-capabilities { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.landscape-note { display: flex; gap: 28px; margin: 24px 0 0; padding: 18px 22px; background: #e9eeea; border-left: 3px solid var(--blue-grey); }
.landscape-note strong { flex: none; font-size: 12px; }
.landscape-note p { color: var(--muted); font-size: 12px; margin: 0; }
.practice-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 24px; list-style: none; counter-reset: practice-step; }
.practice-steps li { counter-increment: practice-step; display: flex; gap: 12px; font-size: 12px; padding: 16px; background: #e9eeea; }
.practice-steps li::before { content: counter(practice-step); display: grid; place-items: center; flex: none; width: 27px; height: 27px; color: white; background: var(--blue-grey); font-weight: 750; }
.practice-steps strong { display: block; margin-bottom: 3px; }
.practice-steps span { color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.practice-panel { margin-top: 22px; }
.practice-description { font-size: 13px; color: var(--muted); }
.practice-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.practice-fields[disabled] { opacity: .65; }
.practice-fields .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
#json-submission-fields .file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-fields .file-grid label { text-transform: none; letter-spacing: normal; }
.practice-fields input[type="file"] { display: block; margin-top: 7px; width: 100%; font-size: 11px; }
.practice-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.practice-result h3 { margin-bottom: 8px; }
.practice-result p { font-size: 12px; color: var(--muted); }
.acceptance-message { margin-top: 18px; padding: 16px; background: #fff4eb; border-left: 3px solid var(--orange); }
.acceptance-message.applied { background: #eef7f1; border-color: var(--green); }
.acceptance-message strong { display: block; font-size: 13px; margin-bottom: 5px; }
.acceptance-message p { margin: 0 0 8px; }
.acceptance-message a, .practice-link { color: var(--orange-dark); font-size: 12px; font-weight: 650; }
.variant-heading { font-size: 13px; margin: 18px 0 8px; }
@media (max-width: 960px) { .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .system-card { min-height: 186px; } .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .practice-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .topbar { gap: 18px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 12px; } .portal-nav { gap: 0; } .portal-nav a { padding: 8px; } .system-workspace { padding: 18px; } .business-grid { grid-template-columns: 1fr; } .registry { border-right: 0; border-bottom: 1px solid var(--line); } .document-detail { padding: 20px; } .landscape-note { flex-direction: column; gap: 8px; } .practice-steps { grid-template-columns: 1fr; gap: 8px; } .catalog-list { grid-template-columns: 1fr; } .workspace-actions { gap: 6px; flex-wrap: wrap; justify-content: end; } #json-submission-fields .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .practice-fields .file-grid, #json-submission-fields .file-grid { grid-template-columns: 1fr; } .document-fields { grid-template-columns: 1fr; } .system-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
