:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #172033;
    background: #f5f7fb;
    --cockpit-font: Inter, ui-sans-serif, system-ui, sans-serif;
    --cockpit-text: #172033;
    --cockpit-muted: #667085;
    --cockpit-primary: #1155cc;
    --cockpit-surface: #fff;
    --cockpit-surface-soft: #f8fafc;
    --cockpit-border: #d9dee8;
    --cockpit-control-border: #aeb7c5;
    --cockpit-radius: 10px;
    --cockpit-control-radius: 8px;
    --cockpit-h1: 1.45rem;
    --cockpit-h2: 1.05rem;
    --cockpit-h3: .76rem;
    --cockpit-body: 1rem;
    --cockpit-subtitle: .86rem;
    --cockpit-label: .7rem;
    --cockpit-small: .68rem;
    --cockpit-eyebrow: .62rem;
    --cockpit-control-height: 2.2rem;
    --cockpit-compact-height: 1.9rem;
}
* { box-sizing: border-box; }
html { font-family: var(--cockpit-font); color: var(--cockpit-text); background: #f5f7fb; }
body { margin: 0; font-family: var(--cockpit-font); font-size: var(--cockpit-body); color: var(--cockpit-text); }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 1.25rem auto; display: grid; gap: .8rem; }
.shell > * { min-width: 0; }
.workbench-shell { width: min(1760px, calc(100% - 1.5rem)); }
.settings-page { width: min(1500px, calc(100% - 1.5rem)); }
.card { background: var(--cockpit-surface); border: 1px solid var(--cockpit-border); border-radius: var(--cockpit-radius); padding: .85rem; box-shadow: 0 12px 35px rgb(23 32 51 / 8%); }
.login { width: min(440px, calc(100% - 2rem)); margin: 10vh auto; }
.login > form > button { width: 100%; }
.login-cancel-form button { margin-top: .65rem; border: 1px solid var(--cockpit-control-border); background: #fff; color: var(--cockpit-text); }
h1, h2, h3 { margin-top: 0; color: var(--cockpit-text); font-family: var(--cockpit-font); font-weight: 700; }
h1 { font-size: var(--cockpit-h1); line-height: 1.3; }
h2 { margin-bottom: .3rem; font-size: var(--cockpit-h2); line-height: 1.34; }
h3 { font-size: var(--cockpit-h3); line-height: 1.32; }
.subtitle { margin: .25rem 0 0; color: var(--cockpit-muted); font-size: var(--cockpit-subtitle); }
label { display: block; margin-top: .65rem; color: #4d596d; font-size: var(--cockpit-label); font-weight: 750; }
input { width: 100%; min-height: var(--cockpit-control-height); margin-top: .22rem; padding: .35rem .65rem; border: 1px solid var(--cockpit-control-border); border-radius: var(--cockpit-control-radius); font: inherit; font-size: .78rem; }
textarea, select { width: 100%; margin-top: .22rem; padding: .35rem .65rem; border: 1px solid var(--cockpit-control-border); border-radius: var(--cockpit-control-radius); background: #fff; font: inherit; font-size: .78rem; }
select { min-height: var(--cockpit-control-height); }
textarea { resize: vertical; }
button { margin-top: 1.25rem; padding: .75rem 1rem; border: 0; border-radius: var(--cockpit-control-radius); background: var(--cockpit-primary); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toolbar form { margin: 0; }
.toolbar button { margin: 0; background: #354052; }
.toolbar-actions { display: flex; align-items: center; gap: .75rem; }
.dashboard-header { padding: .8rem .9rem; }
.dashboard-header .toolbar h1 { margin: 0; font-size: var(--cockpit-h1); }
.dashboard-header .toolbar-actions { gap: .5rem; }
.dashboard-header .toolbar-actions .button-secondary, .dashboard-header .toolbar-actions button { display: inline-flex; min-height: 2.2rem; align-items: center; margin: 0; padding: .35rem .75rem; }
.error, .failed { color: #b42318; }
.active { color: #08783e; }
.blocked { color: #8b5a00; }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th, td { padding: .48rem .55rem; border-bottom: 1px solid var(--cockpit-border); text-align: left; }
th { background: var(--cockpit-surface-soft); color: var(--cockpit-muted); font-size: .62rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
code { background: #f4f5f7; padding: .15rem .35rem; border-radius: .25rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.section-heading h2 { margin: .08rem 0 0; font-size: var(--cockpit-h2); }
.eyebrow { margin: 0 0 .08rem; color: var(--cockpit-primary); font-size: var(--cockpit-eyebrow); font-weight: 800; letter-spacing: .08em; }
.updated { color: var(--cockpit-muted); font-size: var(--cockpit-small); line-height: 1.35; white-space: nowrap; }
.quota-grid { display: flex; overflow-x: auto; gap: .65rem; padding-bottom: .2rem; }
.quota-grid > .metric { flex: 1 0 16rem; }
.metric { min-width: 0; padding: 1.15rem; border: 1px solid #e1e6ee; border-radius: 12px; background: #f8fafc; }
.metric-label { display: block; color: #667085; font-size: .875rem; font-weight: 700; }
.metric strong { display: block; margin: .45rem 0 .75rem; font-size: 1.8rem; line-height: 1; }
.metric strong small { color: #667085; font-size: .9rem; font-weight: 650; }
.metric-note { display: block; color: #667085; font-size: .82rem; line-height: 1.4; }
.progress { width: 100%; height: .55rem; margin: .2rem 0 .65rem; overflow: hidden; border: 0; border-radius: 999px; background: #dfe5ec; }
.progress::-webkit-progress-bar { border-radius: inherit; background: #dfe5ec; }
.progress::-webkit-progress-value { border-radius: inherit; background: #1155cc; }
.progress::-moz-progress-bar { border-radius: inherit; background: #1155cc; }
.empty-state { margin: 0; padding: 1rem; border-radius: 10px; background: #f8fafc; color: #667085; }
.success-message { padding: .8rem 1rem; border-radius: 9px; background: #e9f8ef; color: #08783e; font-weight: 700; }
.error-message { padding: .8rem 1rem; border-radius: 9px; background: #fff0ef; color: #b42318; font-weight: 700; }
.sync-message { margin: 0; }
.field-note { margin: .65rem 0 0; color: var(--cockpit-muted); font-size: var(--cockpit-small); line-height: 1.35; }
.safety-note { margin: 1rem 0 0; padding: .9rem 1rem; border-left: 4px solid #08783e; border-radius: 8px; background: #ecf8f1; color: #245c3c; line-height: 1.5; }
.warning-message { padding: .85rem 1rem; border-radius: 9px; background: #fff6dd; color: #7a4b00; line-height: 1.45; }
.status-badge { padding: .4rem .65rem; border-radius: 999px; background: #edf3ff; color: #1155cc; font-size: .8rem; font-weight: 800; }
.metric-compact { font-size: 1.15rem !important; line-height: 1.35 !important; }
.metric-alert { color: #b42318; }
.metric-ok { color: #08783e; }
.summary-table { margin-top: 1.25rem; }
.summary-table th:nth-child(n+2), .summary-table td:nth-child(n+2) { text-align: right; }
.summary-total th { border-top: 2px solid #b8c0cc; }
.statement-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-top: 1rem; padding: 1rem; border: 1px solid #d9dee8; border-radius: 12px; background: #f8fafc; }
.statement-upload label { margin-top: 0; }
.statement-link { margin-bottom: .15rem; white-space: nowrap; }
.statement-return-prompt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; padding: .85rem 1rem; border: 1px solid #9bb8e8; border-radius: 10px; background: #eef4ff; }
.statement-return-prompt[hidden] { display: none; }
.statement-return-prompt strong, .statement-return-prompt span { display: block; }
.statement-return-prompt span { margin-top: .2rem; color: #667085; font-size: .82rem; }
.statement-return-prompt button { margin: 0; white-space: nowrap; }
.statement-result { margin-top: 1.25rem; padding: 1rem; border: 1px solid #d9dee8; border-radius: 12px; }
.statement-result-ok { border-color: #79c99c; background: #f6fcf8; }
.statement-result-warning { border-color: #efad00; background: #fffdf7; }
.statement-result h3 { margin: 0; }
.statement-result .section-heading { margin-bottom: .5rem; }
.statement-table { margin-top: .5rem; }
.confirmation-check { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1rem; padding: 1rem; border: 1px solid #efad00; border-radius: 9px; background: #fffaf0; font-weight: 650; }
.confirmation-check input { flex: 0 0 auto; width: auto; margin: .2rem 0 0; }
.run-status { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.run-status-exported { background: #e9f8ef; color: #08783e; }
.run-status-expired { background: #eef1f5; color: #667085; }
.table-scroll { overflow-x: auto; }
.history-heading { align-items: center; }
.history-delete-all { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin: 0; flex-wrap: wrap; }
.delete-confirmation { display: flex; align-items: center; gap: .5rem; margin: 0; color: #667085; font-size: .8rem; font-weight: 650; }
.delete-confirmation input { width: auto; margin: 0; }
.danger-button { margin: 0; background: #b42318; }
.inline-delete-form { margin: 0; }
.danger-link { margin: 0; padding: .45rem .65rem; border: 1px solid #d92d20; background: #fff; color: #b42318; font-size: .8rem; }
.danger-link:hover, .danger-button:hover { filter: brightness(.92); }
@media (max-width: 760px) {
    .shell { margin: 1rem auto; }
    .toolbar, .section-heading { align-items: flex-start; flex-direction: column; }
    .quota-grid { grid-template-columns: 1fr; }
    .updated { white-space: normal; }
    table { display: block; overflow-x: auto; }
}
.article-master-filter { margin: 0 0 1rem; }
.article-master-filter label { margin-top: 0; color: #667085; font-size: .85rem; }
.article-thumb { flex: 0 0 52px; border-radius: 9px; object-fit: cover; background: #eef1f5; }
.article-thumb-placeholder { flex-basis: 52px; width: 52px; height: 52px; font-size: .72rem; }
.article-master-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #d9dee8; }
.article-master-heading h2 { margin-bottom: .35rem; }
.article-master-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0; }
.article-master-metrics > div { padding: .85rem; border-radius: 10px; background: #f8fafc; }
.article-master-metrics span, .article-master-metrics strong { display: block; }
.article-master-metrics span { color: #667085; font-size: .78rem; }
.article-master-metrics strong { margin-top: .25rem; }
.master-data-list { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .7rem 1rem; margin: 1.25rem 0; }
.master-data-list dt { color: #667085; font-weight: 700; }
.master-data-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.checker-detail h3 { margin: 1.25rem 0 .5rem; }
.article-integration-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: 1rem 0; }
.article-editor { margin: 1rem 0; padding: 1rem; border: 1px solid #d9dee8; border-radius: 12px; background: #fbfcfe; }
.article-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.article-editor-grid .span-two { grid-column: 1 / -1; }
.dimension-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.variant-editor input { min-width: 8rem; margin: 0; padding: .55rem; }
.variant-editor input[type="checkbox"] { min-width: 0; width: auto; }
.transfer-confirmation { margin-top: 1rem; }
@media (max-width: 760px) {
    .article-master-heading { flex-direction: column; }
    .article-master-metrics { grid-template-columns: repeat(2, 1fr); }
    .master-data-list { grid-template-columns: 1fr; gap: .2rem; }
    .master-data-list dd { margin-bottom: .65rem; }
    .article-editor-grid, .dimension-grid { grid-template-columns: 1fr; }
    .article-editor-grid .span-two { grid-column: auto; }
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.tool-card { position: relative; min-width: 0; padding: 0; color: inherit; transition: border-color .15s, transform .15s, opacity .15s; }
.tool-card:hover { border-color: #1155cc; transform: translateY(-1px); }
.tool-card.is-dragging { opacity: .42; transform: scale(.985); }
.tool-card-link { display: flex; min-height: 100%; align-items: center; gap: 1rem; padding: .85rem 3.2rem .85rem .85rem; color: inherit; text-decoration: none; }
.tool-card-link strong, .tool-card-link small { display: block; }
.tool-card-link small { margin-top: .3rem; color: #667085; line-height: 1.4; }
.tool-icon { display: grid; flex: 0 0 2.8rem; height: 2.8rem; place-items: center; border-radius: 10px; background: #e8f0ff; color: #1155cc; font-size: 1.25rem; font-weight: 900; }
.tool-arrow { margin-left: auto; color: #1155cc; font-size: 1.4rem; }
.tile-drag-handle { position: absolute; z-index: 2; top: .42rem; right: .48rem; min-width: 1.9rem; min-height: 1.9rem; margin: 0; padding: .2rem .4rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--cockpit-muted); font-size: 1rem; line-height: 1; cursor: grab; }
.tile-drag-handle:hover, .tile-drag-handle:focus-visible { border-color: var(--cockpit-border); background: var(--cockpit-surface-soft); color: var(--cockpit-primary); }
.tile-drag-handle:active { cursor: grabbing; }
.dashboard-sort-bar { display: flex; min-height: 1.4rem; align-items: center; justify-content: space-between; gap: 1rem; color: var(--cockpit-muted); font-size: var(--cockpit-small); }
.page-nav { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem; color: var(--cockpit-muted); font-size: .75rem; }
.page-nav a { color: #1155cc; font-weight: 750; text-decoration: none; }
.page-nav-action { margin-left: auto; padding: .35rem .65rem; border: 1px solid var(--cockpit-primary); border-radius: var(--cockpit-control-radius); background: #fff; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.module-page-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "heading actions" "note note"; align-items: start; gap: .55rem 1rem; padding: .8rem .9rem; }
.module-page-heading { grid-area: heading; min-width: 0; }
.module-page-heading h1 { margin: 0 0 .15rem; font-size: var(--cockpit-h1); }
.module-page-heading .subtitle { margin: 0; font-size: var(--cockpit-subtitle); }
.module-header-actions { grid-area: actions; display: flex; align-items: flex-start; gap: .6rem; }
.module-page-note { grid-area: note; margin: 0; }
.module-settings-link { display: grid; width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; place-items: center; margin: 0; border: 1px solid #aeb7c5; border-radius: 7px; background: #fff; color: #344054; font-size: 1.2rem; line-height: 1; text-decoration: none; }
.module-settings-link:hover, .module-settings-link:focus-visible { border-color: #8ca6d1; background: #eef4ff; color: #174ea6; }
.module-settings-link:focus-visible { outline: 3px solid rgb(23 92 211 / 25%); outline-offset: 2px; }
.settings-page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; padding: .8rem .9rem; }
.settings-page-header h1 { margin: 0 0 .15rem; font-size: var(--cockpit-h1); }
.settings-page-header .subtitle { margin: 0; font-size: var(--cockpit-subtitle); }
.settings-page input, .settings-page select { height: 2rem; padding: .35rem .55rem; }
.settings-page input[type="checkbox"], .settings-page input[type="radio"] { width: auto; height: auto; }
.settings-page .settings-actions button { min-height: 2rem; padding: .35rem .7rem; }
.checker-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.6fr); gap: 1.25rem; align-items: start; }
.checker-layout > * { min-width: 0; }
.article-list { padding: .5rem; max-height: 75vh; overflow-x: hidden; overflow-y: auto; }
.inventory-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.inventory-actions { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.sync-form { margin: 0; }
.sync-form button { margin: 0; }
.sort-form { display: flex; align-items: center; gap: .65rem; }
.sort-form label { margin: 0; color: #667085; font-size: .85rem; }
.sort-form select { min-width: 11rem; padding: .65rem .8rem; border: 1px solid #aeb7c5; border-radius: 8px; background: #fff; font: inherit; }
.compact-button { margin: 0; padding: .68rem .85rem; }
.state-filters { display: flex; overflow-x: auto; gap: .65rem; padding-bottom: .2rem; }
.state-filter { display: flex; flex: 1 0 9rem; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; border: 1px solid #e1e6ee; border-radius: 9px; color: #354052; text-decoration: none; background: #f8fafc; }
.state-filter strong { color: #172033; }
.state-filter:hover, .state-filter.selected { border-color: #1155cc; background: #edf3ff; color: #1155cc; }
.article-list-item { display: flex; gap: .75rem; align-items: center; padding: .85rem; border-radius: 10px; color: inherit; text-decoration: none; }
.article-list-item + .article-list-item { border-top: 1px solid #e7eaf0; }
.article-list-item:hover, .article-list-item.selected { background: #f0f5ff; }
.article-list-copy { min-width: 0; }
.article-list-copy strong, .article-list-copy small { display: block; }
.article-list-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.article-list-copy small { margin-top: .25rem; color: #667085; font-size: .75rem; }
.grade { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 9px; color: #fff; font-weight: 900; }
.grade-a { background: #078443; }.grade-b { background: #5d8a26; }.grade-c { background: #d69e00; }.grade-d { background: #df3348; }
.grade-large { flex-basis: 3.4rem; width: 3.4rem; height: 3.4rem; font-size: 1.35rem; }
.listing-summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding-bottom: 1.25rem; border-bottom: 1px solid #d9dee8; }
.listing-summary img { border-radius: 10px; object-fit: cover; background: #eef1f5; }
.listing-copy h2 { margin-bottom: .4rem; font-size: var(--cockpit-h2); }
.listing-copy p { margin: .2rem 0; color: #667085; font-size: .85rem; }
.listing-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; color: #667085; font-size: .78rem; }
.button-secondary { padding: .6rem .8rem; border: 1px solid var(--cockpit-primary); border-radius: var(--cockpit-control-radius); background: #fff; color: var(--cockpit-primary); font-weight: 750; text-decoration: none; }
.button-secondary-submit { background: #fff; font-size: inherit; }
.settings-form { display: contents; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.settings-grid .span-two { grid-column: 1 / -1; }
.settings-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.settings-actions button { margin-top: 0; }
.settings-actions .button-secondary-submit { color: #1155cc; border: 1px solid #1155cc; }
.settings-consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; }
.settings-consent input { width: auto; margin-top: .2rem; }
.authenticator-form { margin-top: .75rem; }
.authenticator-form > label { max-width: 34rem; }
.authenticator-setup { margin-top: .8rem; padding: .85rem; border: 1px solid var(--cockpit-border); border-radius: var(--cockpit-radius); background: var(--cockpit-surface-soft); }
.authenticator-setup p { margin: .35rem 0; }
.authenticator-secret, .authenticator-uri { display: block; max-width: 100%; margin: .5rem 0; padding: .65rem; overflow-wrap: anywhere; user-select: all; }
.authenticator-setup details { margin-top: .75rem; }
.authenticator-setup summary { cursor: pointer; color: var(--cockpit-muted); font-size: var(--cockpit-small); }
.recovery-codes { margin: .8rem 0; padding: .9rem; border: 1px solid #efad00; border-radius: var(--cockpit-radius); background: #fffaf0; }
.recovery-codes p { margin: .35rem 0 .65rem; color: var(--cockpit-muted); font-size: var(--cockpit-subtitle); }
.recovery-codes > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.recovery-codes code { display: block; padding: .45rem; text-align: center; user-select: all; }
.settings-scope { color: #667085; font-size: .82rem; font-weight: 700; }
.settings-status-grid { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .2rem; }
.settings-status-grid .metric { flex: 1 0 13rem; padding: .85rem; }
.settings-module-grid { margin-top: 1rem; }
.backup-form { display: contents; }
.backup-notice { border-left: 5px solid #d88b00; }
.backup-notice p { margin-bottom: 0; }
.backup-provider { min-width: 0; }
.backup-provider legend { padding: 0 .5rem; font-size: 1.2rem; font-weight: 800; }
.backup-targets { display: grid; gap: .75rem; margin-top: 1rem; }
.backup-target { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 1rem; border: 1px solid #d6dce5; border-radius: 12px; cursor: pointer; }
.backup-target:has(input:checked) { border-color: #1155cc; background: #f4f7ff; }
.backup-target input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; }
.backup-target span { display: grid; gap: .25rem; }
.backup-target small, .backup-download-bar small { color: #667085; }
.backup-target em { color: #9b2c2c; font-size: .82rem; font-style: normal; font-weight: 700; }
.backup-download-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; bottom: 1rem; }
.backup-download-bar div { display: grid; gap: .25rem; }
.backup-download-bar button { margin-top: 0; }
@media (max-width: 760px) {
    .workbench-shell, .settings-page { width: calc(100% - .75rem); }
    .toolbar-actions, .settings-actions { width: 100%; }
    .module-page-header { grid-template-columns: minmax(0, 1fr) auto; }
    .settings-page-header { grid-template-columns: 1fr; }
    .module-page-header { grid-template-areas: "heading actions" "note note"; }
    .backup-download-bar { align-items: stretch; flex-direction: column; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-grid .span-two { grid-column: auto; }
}
.check-list { margin-top: .3rem; }
.check-row { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: start; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid #e1e5eb; line-height: 1.45; }
.check-row small { color: #667085; }
.check-icon { display: grid; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 50%; color: #fff; font-size: .78rem; font-weight: 900; }
.check-info .check-icon { background: #0b8c51; }.check-warning .check-icon { background: #efad00; }.check-problem .check-icon { background: #df3348; }
@media (max-width: 900px) {
    .checker-layout { grid-template-columns: 1fr; }
    .article-list { max-height: 22rem; }
    .listing-summary { grid-template-columns: auto minmax(0, 1fr); }
    .listing-summary img { display: none; }
    .listing-actions { grid-column: 1 / -1; align-items: flex-start; }
    .state-filters { grid-template-columns: repeat(3, 1fr); }
}
.search-form label { margin-top: 0; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.search-row button { margin-top: .4rem; }
.metric-grid-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric-grid-five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.module-metrics { display: flex; overflow-x: auto; gap: 0; padding: .25rem .35rem; border: 1px solid #d9dee8; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgb(16 24 40 / 5%); }
.module-metrics > .card { display: flex; min-width: max-content; align-items: baseline; gap: .4rem; margin: 0; padding: .38rem .65rem; border: 0; border-right: 1px solid #e4e7ec; border-radius: 0; background: transparent; box-shadow: none; }
.module-metrics > .card:last-child { border-right: 0; }
.module-metrics .metric-label { font-size: .68rem; }
.module-metrics .metric strong { margin: 0; font-size: 1rem; line-height: 1; white-space: nowrap; }
.module-metrics .metric-note { display: none; }
.histogram { display: grid; gap: .7rem; }
.histogram-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 2.5rem; gap: .8rem; align-items: center; font-size: .85rem; }
.histogram-row progress { width: 100%; height: 1rem; border: 0; border-radius: 999px; overflow: hidden; background: #e7ebf1; }
.histogram-row progress::-webkit-progress-bar { background: #e7ebf1; }
.histogram-row progress::-webkit-progress-value { background: #1155cc; }
.histogram-row progress::-moz-progress-bar { background: #1155cc; }
.histogram-row strong { text-align: right; }
.insight { margin: 1.25rem 0 0; padding: 1rem; border-radius: 10px; background: #eef4ff; line-height: 1.5; }
.history-list { display: grid; gap: .6rem; }
.history-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: .8rem; border-radius: 9px; background: #f8fafc; }
.history-list span, .history-list small { color: #667085; }
.intelligence-table th { white-space: nowrap; }
.intelligence-table td { vertical-align: middle; }
.intelligence-table td:first-child { min-width: 12rem; }
.intelligence-table td:first-child small { display: block; margin-top: .25rem; color: #667085; font-size: .72rem; }
.intelligence-table a { color: #1155cc; text-decoration: none; }
.priority-badge, .gap-badge { display: inline-block; padding: .3rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.priority-high, .gap-open { background: #fff0ef; color: #b42318; }
.priority-medium { background: #fff6dd; color: #7a4b00; }
.priority-low, .gap-covered { background: #e9f8ef; color: #08783e; }
.recommendation-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.recommendation-list article { padding: 1rem; border: 1px solid #e1e6ee; border-radius: 10px; background: #f8fafc; }
.recommendation-list p { margin: .45rem 0; line-height: 1.45; }
.recommendation-list small { color: #667085; line-height: 1.35; }
.phrase-heading { margin: 1.5rem 0 .75rem; }
.phrase-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.phrase-cloud span { padding: .45rem .65rem; border-radius: 999px; background: #edf3ff; color: #354052; font-size: .82rem; }
.phrase-cloud strong { color: #1155cc; }
.seo-listing-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.seo-listing-picker select, .seo-row-actions select { padding: .65rem .75rem; border: 1px solid #aeb7c5; border-radius: 8px; background: #fff; font: inherit; }
.seo-listing-picker button, .seo-row-actions button { margin: 0; }
.seo-row-actions { display: grid; gap: .45rem; min-width: 13rem; }
.seo-row-actions form { display: flex; gap: .4rem; margin: 0; }
.seo-row-actions .danger-link { width: 100%; }
.purpose-title { background: #eef4ff; color: #174ea6; }
.seo-composer, .market-report-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.seo-composer label, .market-report-form label { margin: 0; }
.seo-composer label, .seo-composer .settings-actions, .market-report-form .span-two { grid-column: 1 / -1; }
.seo-change-list { display: grid; gap: 1rem; }
.seo-change-card { padding: 1rem; border: 1px solid #d9dee8; border-radius: 12px; background: #fbfcfe; }
.seo-change-card form { margin-top: .75rem; }
.seo-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.seo-diff > div { padding: .85rem; border-radius: 9px; background: #f2f5f9; }
.seo-diff small, .seo-diff strong { display: block; }
.seo-diff strong { margin: .3rem 0; line-height: 1.4; }
.seo-diff p { margin: 0; color: #667085; font-size: .8rem; line-height: 1.4; }
.seo-effect { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.seo-effect > * { padding: .4rem .6rem; border-radius: 999px; background: #edf3ff; color: #354052; font-size: .78rem; }
@media (max-width: 760px) {
    .metric-grid-four { grid-template-columns: repeat(2, 1fr); }
    .metric-grid-five { grid-template-columns: repeat(2, 1fr); }
    .statement-upload { grid-template-columns: 1fr; }
    .statement-link { white-space: normal; }
    .statement-return-prompt { align-items: stretch; flex-direction: column; }
    .search-row { grid-template-columns: 1fr; }
    .histogram-row { grid-template-columns: 1fr; gap: .3rem; }
    .histogram-row strong { text-align: left; }
    .history-list > div { grid-template-columns: 1fr; gap: .25rem; }
    .inventory-heading { align-items: stretch; flex-direction: column; }
    .inventory-actions { align-items: stretch; flex-direction: column; }
    .sort-form { align-items: stretch; flex-direction: column; }
    .state-filters { grid-template-columns: none; }
    .seo-listing-picker, .seo-composer, .market-report-form, .seo-diff { grid-template-columns: 1fr; }
    .seo-composer label, .seo-composer .settings-actions, .market-report-form .span-two { grid-column: auto; }
}
