@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --paper: #f4f1e8;
    --paper-deep: #ece8dc;
    --white: #fffefa;
    --ink: #1c2d43;
    --ink-soft: #536277;
    --muted: #788397;
    --line: #d9d7ce;
    --line-dark: #c8c8c0;
    --blue: #2457a7;
    --blue-deep: #1d467f;
    --blue-wash: #eaf0f8;
    --teal: #1a8f83;
    --red: #a43f35;
    --red-wash: #fbefec;
    --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(36, 87, 167, .35); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .65); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; color: var(--blue); display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { color: var(--ink); font-size: 17px; letter-spacing: -.035em; font-weight: 500; }
.brand-name strong { color: var(--blue); font-weight: 700; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; letter-spacing: .01em; }
.status-dot, .measure-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(26, 143, 131, .12); }

.workspace { width: min(1580px, calc(100% - 48px)); margin: 0 auto; padding: 45px 0 26px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 29px; }
.intro-copy { max-width: 710px; }
.eyebrow, .panel-kicker { margin: 0; color: var(--blue); font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .12em; font-weight: 500; }
.eyebrow span { color: #9ca6b4; padding: 0 4px; }
h1 { margin: 10px 0 9px; color: var(--ink); font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
h1 span { color: var(--blue); }
.intro-text { max-width: 585px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.48; }
.endpoint-card { width: min(430px, 38%); padding: 15px 17px 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 254, 250, .8); box-shadow: 0 4px 14px rgba(44, 54, 64, .025); }
.endpoint-card label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.endpoint-input-wrap { min-width: 0; display: flex; align-items: center; gap: 10px; }
.endpoint-method { padding: 4px 6px; border-radius: 3px; background: #e8f2ed; color: #286650; font: 500 9px var(--mono); letter-spacing: .06em; }
.endpoint-input-wrap input { min-width: 0; width: 100%; padding: 5px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 12px var(--mono); }
.endpoint-input-wrap input:focus-visible { outline: 0; }
.endpoint-card:focus-within { border-color: #8aa3c6; box-shadow: 0 0 0 3px rgba(36, 87, 167, .09); }
.endpoint-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.endpoint-card code { color: var(--ink-soft); font: 400 10px var(--mono); }

.alert { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; padding: 11px 13px; border-radius: 6px; font-size: 13px; }
.alert-error { border: 1px solid #e5c7c0; background: var(--red-wash); color: #7b3029; }
.alert-icon { width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); }
.alert-close { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }

.workbench { display: grid; grid-template-columns: minmax(0, 1fr) 332px; align-items: stretch; gap: 15px; }

.qr-panel { margin-bottom: 15px; padding: 16px 19px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 5px 22px rgba(42, 48, 57, .035); }
.qr-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.qr-heading h2 { margin: 3px 0 0; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.qr-heading small { color: var(--muted); font-size: 11px; }
.qr-notice { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 10px 13px; border: 1px solid #d8e0ec; border-radius: 6px; background: var(--blue-wash); color: #34527c; font-size: 12px; line-height: 1.4; }
.qr-notice-error { border-color: #e5c7c0; background: var(--red-wash); color: #7b3029; }
.spinner-dark { border-color: rgba(36, 87, 167, .25); border-top-color: var(--blue); }
.qr-candidate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.qr-candidate { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #e2e1db; border-radius: 6px; background: #fffefa; font-size: 12px; transition: border-color .14s, background .14s; }
.qr-candidate.is-selected { border-color: #8ba7cc; background: #f3f7fc; box-shadow: inset 2px 0 var(--blue); }
.qr-candidate-copy { min-width: 0; color: var(--ink-soft); }
.qr-candidate-copy strong { color: var(--ink); }
.qr-candidate-copy p { margin: 4px 0 0; font: 400 11px var(--mono); color: #5d6b7f; overflow-wrap: anywhere; }
.qr-details { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e8e6df; }
.qr-fields { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 11px 18px; }
.qr-fields dt { margin-bottom: 3px; color: #7a8798; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.qr-fields dd { margin: 0; color: var(--ink); font: 500 12px var(--mono); overflow-wrap: anywhere; }
.qr-table-wrap { margin-top: 14px; overflow-x: auto; }
.qr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qr-table th { padding: 6px 10px; border-bottom: 1px solid var(--line); color: #7a8798; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.qr-table td { padding: 7px 10px; border-bottom: 1px solid #efede6; font-family: var(--mono); font-size: 11px; }
.qr-table th:nth-child(n+3), .qr-table td:nth-child(n+3) { text-align: right; }
.document-panel, .inspector-panel, .results-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 5px 22px rgba(42, 48, 57, .035); }
.document-panel { min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.document-heading { min-height: 68px; padding: 12px 19px; border-bottom: 1px solid #e5e3dc; }
.panel-kicker { color: #7a8798; font-size: 9px; letter-spacing: .11em; }
.panel-heading h2, .results-title h2 { margin: 3px 0 0; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.image-measure { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font: 400 11px var(--mono); }
.measure-dot { width: 6px; height: 6px; }
.document-toolbar { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 9px 15px; border-bottom: 1px solid #e8e6df; }
.button { min-height: 35px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button svg, .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-secondary { color: var(--ink); border-color: var(--line-dark); background: var(--white); }
.button-secondary:hover:not(:disabled) { border-color: #97a6bb; background: #fbfaf6; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-deep); }
.toolbar-divider { width: 1px; height: 22px; margin: 0 1px; background: var(--line); }
.zoom-controls { display: inline-flex; align-items: center; gap: 4px; }
.zoom-button { width: 35px; padding: 0; font-size: 17px; line-height: 1; }
.zoom-value { min-width: 58px; padding: 0 8px; font-family: var(--mono); font-size: 11px; }
.toolbar-hint { margin-left: auto; color: #8a94a3; font-size: 11px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.canvas-stage { position: relative; min-height: 475px; max-height: 70vh; display: grid; place-items: center; overflow: auto; padding: 25px; background-color: #efede6; background-image: linear-gradient(rgba(46, 73, 103, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 73, 103, .035) 1px, transparent 1px), linear-gradient(rgba(46, 73, 103, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 73, 103, .02) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; }
.invoice-canvas { display: block; width: 100%; height: auto; margin: auto; border: 1px solid rgba(34, 43, 52, .12); background: white; box-shadow: 0 8px 25px rgba(21, 30, 41, .17); touch-action: none; }
.invoice-canvas.is-hidden { display: none; }
.empty-state { max-width: 390px; padding: 28px 18px; text-align: center; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--blue); }
.empty-icon svg { width: 100%; height: 100%; }
.empty-state h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.empty-state p { margin: 0 auto 17px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.file-note { display: block; margin-top: 12px; color: #8791a0; font-size: 11px; }
.canvas-caption { position: absolute; right: 13px; bottom: 11px; display: flex; align-items: center; gap: 5px; color: #6c798a; font-size: 10px; pointer-events: none; }
.caption-cross { color: var(--blue); font-size: 14px; }
.document-footnote { min-height: 38px; padding: 9px 16px; display: flex; align-items: center; gap: 15px; border-top: 1px solid #e8e6df; color: #758194; font-size: 10px; }
kbd { padding: 2px 4px; border: 1px solid #d8dce0; border-radius: 3px; background: #f8f8f5; color: #556276; font: 400 9px var(--mono); }
.document-name { max-width: 24%; margin-left: auto; overflow: hidden; color: #8d96a2; text-overflow: ellipsis; white-space: nowrap; }

.inspector-panel { min-width: 0; padding: 17px 15px 14px; display: flex; flex-direction: column; }
.inspector-heading { min-height: 40px; }
.count-badge { min-width: 32px; height: 27px; display: inline-grid; place-items: center; border: 1px solid #d8e0ec; border-radius: 5px; background: #f4f7fb; color: var(--blue); font: 500 11px var(--mono); }
.inspector-intro { margin: 10px 0 14px; color: #738093; font-size: 12px; line-height: 1.45; }
.region-list { max-height: 310px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; }
.region-card { min-height: 59px; display: flex; align-items: center; border: 1px solid #e2e1db; border-radius: 5px; background: #fffefa; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s; }
.region-card:hover { border-color: #b6c5d8; }
.region-card.is-selected { border-color: #8ba7cc; background: #f3f7fc; box-shadow: inset 2px 0 var(--blue); }
.region-select { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.region-index { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid #d7e1ef; border-radius: 4px; background: #f8fafc; color: var(--blue); font: 500 10px var(--mono); }
.region-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.region-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.region-copy small { color: #7c8796; font: 400 9px var(--mono); }
.icon-button { width: 30px; height: 30px; margin-right: 5px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #8a95a4; cursor: pointer; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { background: #f7e9e6; color: var(--red); }
.regions-empty { min-height: 108px; padding: 15px 8px 17px; display: grid; place-content: center; text-align: center; border: 1px dashed #d8d8d1; border-radius: 5px; color: #8a95a4; }
.regions-empty p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
.empty-line-art { color: #91a0b2; font: 400 15px var(--mono); letter-spacing: .1em; }
.inspector-rule { height: 1px; margin: auto 0 14px; background: #e8e6df; }
.run-section { padding-top: 0; }
.run-description { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; }
.run-step { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; background: #edf1f6; color: #526783; font: 500 9px var(--mono); }
.run-description div { display: flex; flex-direction: column; gap: 2px; }
.run-description strong { font-size: 12px; font-weight: 600; }
.run-description small { color: #818c9b; font-size: 10px; }
.button-run { width: 100%; min-height: 42px; color: white; background: var(--blue); font-size: 13px; }
.button-run:hover:not(:disabled) { background: var(--blue-deep); }
.button-run svg { width: 19px; height: 19px; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-block { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #66758a; font-size: 10px; }
.progress-label span:last-child { font-family: var(--mono); }
.progress-track { height: 4px; overflow: hidden; border-radius: 3px; background: #e8edf3; }
.progress-track span { height: 100%; display: block; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.run-summary { margin: 10px 0 0; color: #466356; font-size: 11px; line-height: 1.4; }

.batch-errors { margin-top: 14px; padding: 12px 15px; border: 1px solid #e6c8c2; border-radius: 6px; background: var(--red-wash); color: #75362f; font-size: 12px; }
.batch-errors strong { display: block; margin-bottom: 5px; font-weight: 600; }
.batch-errors p { margin: 3px 0 0; line-height: 1.4; }
.batch-errors p span { font-weight: 600; }

.results-panel { margin-top: 15px; overflow: hidden; }
.results-heading { min-height: 82px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.results-title h2 { margin-top: 4px; }
.results-title > p:last-child { margin: 4px 0 0; color: #788496; font-size: 11px; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.button-compact { min-height: 31px; padding: 0 10px; font-size: 11px; }
.button-compact svg { width: 15px; height: 15px; }
.json-format { margin-left: 4px; color: #8792a1; font: 400 9px var(--mono); white-space: nowrap; }
.json-format span { color: #b2b9c2; }
.json-frame { min-height: 160px; position: relative; border-top: 1px solid #e6e4dd; border-bottom: 1px solid #e6e4dd; background: #f8f8f4; }
.json-frame pre { max-height: 480px; margin: 0; padding: 17px 46px 17px 19px; overflow: auto; color: #334963; font: 400 11px/1.7 var(--mono); tab-size: 2; }
.json-frame code { font: inherit; white-space: pre; }
.json-gutter { position: absolute; top: 0; right: 0; bottom: 0; width: 31px; display: flex; justify-content: center; padding-top: 18px; border-left: 1px solid #ecebe5; background: rgba(244, 243, 237, .75); color: #adb6c1; font: 12px var(--mono); pointer-events: none; }
.json-empty { min-height: 158px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #98a1ac; font-size: 12px; }
.json-braces { color: #7891b2; font: 500 22px var(--mono); }
.results-footer { min-height: 34px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #818c9b; font-size: 10px; }
.footnote-mark { width: 13px; height: 13px; margin-right: 4px; display: inline-grid; place-items: center; border: 1px solid #a9b3c0; border-radius: 50%; color: #687b93; font: 500 8px var(--mono); }
.item-total { color: #52657d; font: 500 10px var(--mono); white-space: nowrap; }
.page-footer { min-height: 52px; padding: 15px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8b93a0; font: 400 9px var(--mono); letter-spacing: .04em; }
.footer-separator { padding: 0 5px; color: #b3b9c1; }
.page-footer span:last-child { font-family: var(--sans); font-size: 10px; letter-spacing: 0; }

#blazor-error-ui { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: min(450px, calc(100% - 36px)); padding: 14px 42px 14px 16px; border: 1px solid #e4c4bf; border-radius: 6px; background: #fff4f1; color: #793a34; box-shadow: 0 8px 28px rgba(28, 45, 67, .12); font-size: 13px; }
#blazor-error-ui .reload { margin-left: 9px; color: var(--blue); text-decoration: underline; }
#blazor-error-ui .dismiss { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
#blazor-error-ui.blazor-error-ui { display: block; }

@media (max-width: 1080px) {
    .workspace { width: min(100% - 36px, 1000px); padding-top: 34px; }
    .intro-row { align-items: flex-start; flex-direction: column; gap: 19px; }
    .endpoint-card { width: min(100%, 520px); }
    .workbench { grid-template-columns: minmax(0, 1fr) 300px; }
    .canvas-stage { min-height: 410px; }
    .toolbar-hint { display: none; }
}

@media (max-width: 760px) {
    .topbar { height: 58px; padding: 0 17px; }
    .topbar-note { font-size: 11px; }
    .workspace { width: calc(100% - 28px); padding-top: 28px; }
    .intro-row { margin-bottom: 21px; }
    h1 { font-size: 37px; }
    .intro-text { font-size: 14px; }
    .workbench { grid-template-columns: minmax(0, 1fr); }
    .qr-candidate-list { grid-template-columns: minmax(0, 1fr); }
    .qr-candidate { flex-wrap: wrap; }
    .inspector-panel { min-height: 310px; }
    .inspector-rule { margin-top: 18px; }
    .region-list { max-height: 220px; }
    .canvas-stage { min-height: 340px; max-height: 62vh; padding: 17px; }
    .document-toolbar { flex-wrap: wrap; }
    .document-footnote { flex-wrap: wrap; gap: 8px 13px; }
    .document-name { max-width: 100%; width: 100%; margin-left: 0; }
    .results-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .result-actions { flex-wrap: wrap; }
    .page-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-bottom: 14px; }
}

@media (max-width: 430px) {
    .topbar-note { max-width: 145px; font-size: 10px; }
    .workspace { width: calc(100% - 20px); }
    .endpoint-card { padding: 12px; }
    .endpoint-input-wrap input { font-size: 10px; }
    .toolbar-divider { display: none; }
    .document-toolbar { gap: 7px; padding: 8px; }
    .button { padding-right: 9px; padding-left: 9px; }
    .document-heading { padding-right: 12px; padding-left: 12px; }
    .image-measure { font-size: 9px; }
    .canvas-stage { min-height: 280px; }
    .results-footer { align-items: flex-start; }
}

.region-color-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex: 0 0 auto;
}

.region-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.25);
    display: block;
}

.region-color-picker input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 0;
    padding: 0;
}

/* Páginas do documento */
.page-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 9px 15px;
    border-bottom: 1px solid #e8e6df;
    background: #faf9f4;
}

.page-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.page-tabs-label {
    margin-right: 2px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}

.page-tab {
    min-width: 32px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    font: 500 12px var(--mono);
    cursor: pointer;
    transition: background .14s, border-color .14s, color .14s;
}

.page-tab:hover:not(:disabled) { border-color: #97a6bb; background: #fbfaf6; }
.page-tab.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.page-tab:disabled { opacity: .5; cursor: not-allowed; }

.page-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.column-mode {
    display: inline-flex;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    overflow: hidden;
}

.column-mode .seg {
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.column-mode .seg + .seg { border-left: 1px solid var(--line-dark); }
.column-mode .seg:hover:not(:disabled) { background: #fbfaf6; }
.column-mode .seg.is-active { background: var(--blue-wash); color: var(--blue-deep); box-shadow: inset 0 -2px var(--blue); }
.column-mode .seg:disabled { opacity: .5; cursor: not-allowed; }

.inspector-mode-hint {
    margin: -6px 0 12px;
    padding: 7px 9px;
    border-radius: 5px;
    background: var(--blue-wash);
    color: var(--blue-deep);
    font-size: 11px;
    line-height: 1.4;
}

.loading-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 11px;
}