:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.skip-link { position: fixed; left: .75rem; top: -5rem; z-index: 1000; background: white; color: #172033; padding: .65rem 1rem; border: 2px solid #174f7a; }
.skip-link:focus { top: .75rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { background: #15233b; color: white; padding: 1.25rem; }
.brand { font-size: 1.35rem; font-weight: 700; }
.mode { margin: .25rem 0 1rem; color: #b9c8df; }
.role-simulation { display: grid; gap: .4rem; padding: .8rem; background: #223654; border-radius: .5rem; }
.role-simulation select { width: 100%; padding: .45rem; }
.role-simulation small { color: #cad5e8; }
.role-simulation span, .role-simulation strong { overflow-wrap: anywhere; }
.role-simulation form { margin-top: .35rem; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(440px, 100%); background: white; border: 1px solid #d7deea; border-radius: .7rem; padding: 1.5rem; }
.login-card .mode { color: #526078; }
.login-form { display: grid; gap: .65rem; }
.login-form input, .login-form select { width: 100%; padding: .55rem; border: 1px solid #9cadc4; border-radius: .3rem; }
nav { display: grid; gap: .25rem; margin-top: 1rem; }
nav a { color: #e8eef8; text-decoration: none; padding: .65rem .75rem; border-radius: .35rem; }
nav a.active, nav a:hover { background: #31517d; }
main { min-width: 0; }
.boundary-banner { padding: .75rem 1.5rem; background: #dceaff; color: #123663; font-weight: 600; }
.content { padding: 1.5rem; max-width: 1200px; }
.content:focus { outline: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card, .notice { background: white; border: 1px solid #d7deea; border-radius: .6rem; padding: 1rem; }
.warning { border-left: 5px solid #b36b00; margin: 1rem 0; }
.denied { border-left: 5px solid #a82323; }
.primary-action { display: inline-block; background: #1769aa; color: white; text-decoration: none; padding: .7rem 1rem; border-radius: .4rem; }
.button { border: 0; font: inherit; cursor: pointer; }
.button:disabled { background: #8b96a6; cursor: not-allowed; }
.analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.input-card h2, .notice h2 { margin-top: 0; font-size: 1.05rem; }
.input-card label { display: block; font-weight: 600; margin-bottom: .4rem; }
.file-state { color: #455269; overflow-wrap: anywhere; }
.comparison-direction, .validation-panel { margin: 1rem 0; }
.validation-panel ul { list-style: none; padding: 0; }
.validation-panel li { margin: .35rem 0; }
.valid::before { content: "✓ "; color: #19723b; font-weight: 700; }
.invalid::before { content: "• "; color: #9b3a27; font-weight: 700; }
.success { border-left: 5px solid #19723b; margin: 1rem 0; }
.result-summary { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: .55rem 1rem; background: white; border: 1px solid #d7deea; border-radius: .6rem; padding: 1rem; }
.result-summary dt { font-weight: 700; }
.result-summary dd { margin: 0; overflow-wrap: anywhere; }
.fingerprint { font-family: Consolas, monospace; font-size: .9rem; }
.result-header { display: grid; gap: 1rem; }
.comparison-line { font-size: 1.1rem; text-align: center; }
.artifact-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.artifact-comparison section { background: white; border: 1px solid #d7deea; border-radius: .6rem; padding: 1rem; }
.artifact-comparison h2 { font-size: 1rem; margin-top: 0; }
.extension-badge { display: inline-block; margin-top: .35rem; padding: .18rem .45rem; background: #eee3ff; color: #57348a; border-radius: 1rem; font-size: .78rem; font-weight: 700; }
.result-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.25rem 0; }
.result-tabs button { border: 1px solid #9cadc4; background: white; color: #18324f; border-radius: .35rem; padding: .55rem .7rem; cursor: pointer; }
.result-tabs button.active { background: #1769aa; color: white; border-color: #1769aa; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .75rem; }
.summary-cards article { background: white; border: 1px solid #d7deea; border-radius: .55rem; padding: 1rem; display: grid; gap: .3rem; }
.summary-cards strong { font-size: 1.6rem; color: #174f7a; }
.distribution { max-width: 520px; padding: 0; list-style: none; }
.distribution li { display: flex; justify-content: space-between; border-bottom: 1px solid #e2e7ee; padding: .45rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; background: white; border: 1px solid #d7deea; border-radius: .55rem; padding: .8rem; }
.filters label { display: grid; gap: .25rem; font-size: .85rem; font-weight: 600; min-width: 180px; flex: 1; }
.filters select, .filters input { width: 100%; padding: .45rem; border: 1px solid #9cadc4; border-radius: .3rem; }
.filter-count { color: #526078; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.result-table { width: 100%; border-collapse: collapse; background: white; font-size: .9rem; }
.result-table th, .result-table td { border: 1px solid #d7deea; padding: .55rem; text-align: left; vertical-align: top; }
.result-table th { background: #eaf0f8; position: sticky; top: 0; }
.result-table caption { text-align: left; font-weight: 700; padding: .6rem 0; }
.result-table code { overflow-wrap: anywhere; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #f0a524; outline-offset: 2px; }
.result-table small { color: #59677d; overflow-wrap: anywhere; }
.changed-row { background: #fff8e8; }
.change-label { display: block; font-weight: 700; color: #174f7a; }
.technical-details { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .3rem .7rem; max-width: 520px; }
.technical-details dt { font-weight: 700; }
.technical-details dd { margin: 0; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }
.pagination button { padding: .4rem .7rem; }
.report-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; background: #f6f8fb; border: 1px solid #d7deea; padding: 1rem; }
.report-page { max-width: 1180px; margin: 0 auto; color: #172033; }
.report-toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1rem; padding: .75rem; background: rgba(246,248,251,.96); border: 1px solid #d7deea; border-radius: .6rem; backdrop-filter: blur(8px); }
.report-hero { background: linear-gradient(135deg,#f7faff,#edf4fb); border: 1px solid #cbd8e6; border-radius: .75rem; padding: 1.35rem; box-shadow: 0 8px 24px rgba(24,50,79,.07); }
.report-hero h2 { margin: .2rem 0 .35rem; color: #174f7a; font-size: 1.45rem; }
.report-eyebrow { color: #526078; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.report-lead { color: #526078; margin-top: 0; }
.report-guidance { background: #eef5fb; border-left-color: #1769aa; color: #18324f; }
.report-section > h2, .result-section > h2 { color: #174f7a; border-bottom: 2px solid #d7deea; padding-bottom: .45rem; }
.executive-result { font-size: 1.08rem; font-weight: 650; }
.prerequisite-status { border-left: 4px solid #1769aa; background: #f4f8fc; padding: .75rem; }
.prerequisite-table code, .difference-table code { white-space: normal; overflow-wrap: anywhere; }
.difference-table th:nth-child(1) { width: 15%; } .difference-table th:nth-child(2) { width: 15%; } .difference-table th:nth-child(3) { width: 31%; } .difference-table th:nth-child(4) { width: 24%; } .difference-table th:nth-child(5) { width: 15%; }
.technical-row td { padding-top: 0; background: #f8fafc; border-top: 0; }
.technical-row + tr td { border-top-width: 2px; }
.report-action { margin: 1rem 0; }
.result-list-header, .result-item-main { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(130px, .7fr) minmax(260px, 1.7fr) minmax(180px, 1fr) minmax(140px, .8fr); gap: .75rem; }
.result-list-header { background: #eaf0f8; border: 1px solid #d7deea; padding: .65rem; font-size: .85rem; font-weight: 700; }
.result-list { display: grid; gap: .55rem; margin-top: .4rem; }
.result-item { background: white; border: 1px solid #d7deea; border-radius: .45rem; padding: .75rem; min-width: 0; }
.result-item-main > div { min-width: 0; overflow-wrap: anywhere; }
.result-item-main small { color: #59677d; }
.technical-panel, .metadata-advanced { margin-top: .7rem; border-top: 1px solid #d7deea; padding-top: .65rem; }
.technical-panel summary, .metadata-advanced summary { color: #174f7a; font-weight: 700; cursor: pointer; }
.technical-panel .technical-details { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); max-width: none; margin-top: .7rem; background: #f6f8fb; padding: .8rem; }
@media (max-width: 760px) { .artifact-comparison { grid-template-columns: 1fr; } .result-summary { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .result-list-header { display: none; } .result-item-main { grid-template-columns: 1fr; } .result-item-main > div::before { content: attr(data-label) ": "; font-weight: 700; } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } }
