html, body { font-family: Inter, "Segoe UI", sans-serif; background:#f6f7fb; color:#18212f; }

a, .btn-link {
    color: #006bb7;
}

.btn-primary { color:#fff; background:#3b5ccc; border-color:#3b5ccc; }
.btn-primary:hover { background:#2e49ad; border-color:#2e49ad; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 2rem; padding-bottom:4rem; max-width:1500px; margin:0 auto;
}

.user-context { color:#64748b; font-size:.88rem; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; margin-bottom:1.6rem; }
.page-heading h1 { font-weight:750; letter-spacing:-.035em; margin:.1rem 0 .35rem; }
.page-heading p { color:#64748b; margin:0; }
.eyebrow { color:#3b5ccc !important; font-size:.75rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.metric-grid, .action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-bottom:1.25rem; }
.metric, .action-card, .table-card, .upload-card, .editor-card, .progress-panel { background:#fff; border:1px solid #e5e9f2; border-radius:16px; box-shadow:0 7px 24px rgba(40,54,85,.05); }
.metric { padding:1.35rem; display:flex; flex-direction:column; }
.metric span,.metric small,.action-card span { color:#748096; }
.metric strong { font-size:2.35rem; line-height:1.15; margin:.35rem 0; }
.action-card { padding:1.35rem; text-decoration:none; display:flex; flex-direction:column; gap:.3rem; transition:.2s ease; }
.action-card:hover { transform:translateY(-2px); border-color:#b8c4ed; }
.upload-card { padding:1.15rem 1.3rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.upload-card div { display:flex; flex-direction:column; }.upload-card span { color:#748096; font-size:.88rem; }
.editor-card { padding:1.25rem; margin-bottom:1rem; }
.form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.form-grid label,.comparison-config label { font-size:.82rem; font-weight:700; color:#536078; }
.form-grid input,.form-grid select,.comparison-config select { margin-top:.35rem; }
.editor-actions { display:flex; gap:.6rem; margin-top:1rem; }
.toolbar { display:flex; align-items:center; gap:1rem; justify-content:space-between; margin:1rem 0; color:#748096; }
.search { max-width:440px; }
.table-card { overflow:auto; }
.data-table { width:100%; border-collapse:collapse; min-width:850px; }
.data-table th { color:#718096; background:#fafbfe; font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; }
.data-table th,.data-table td { text-align:left; padding:.9rem 1rem; border-bottom:1px solid #edf0f5; vertical-align:middle; }
.data-table tr:last-child td { border-bottom:0; }.data-table small { display:block; color:#8792a6; margin-top:.2rem; }
.badge-soft,.similarity { display:inline-flex; background:#eef2ff; color:#3553b5; border-radius:999px; padding:.25rem .62rem; font-weight:750; }
.similarity { background:#e8f8ef; color:#187044; }
.similarity.high { background:#e4f7ed; color:#177046; }.similarity.medium { background:#fff4dc; color:#8a6110; }.similarity.low { background:#f2f3f6; color:#596579; }
.results-table { min-width:1100px; }.analysis-cell { min-width:290px; max-width:390px; }.analysis-summary { display:flex; align-items:center; gap:.55rem; }.analysis-summary>b { font-size:.8rem; color:#536078; }
.analysis-details { margin-top:.55rem; }.analysis-details summary { color:#3553b5; cursor:pointer; font-size:.8rem; font-weight:700; }.analysis-details p { color:#536078; font-size:.8rem; line-height:1.45; margin:.6rem 0; }
.score-breakdown { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.5rem; }.score-breakdown span { background:#f4f6fa; border-radius:7px; color:#64748b; font-size:.72rem; padding:.25rem .4rem; }.score-breakdown b { color:#27364f; }
.row-actions { white-space:nowrap; text-align:right !important; }.btn-link { border:0; background:none; text-decoration:none; padding:.2rem .35rem; }.btn-link.danger { color:#c24155; }
.comparison-config { display:grid; grid-template-columns:minmax(280px,1fr) auto; gap:1.3rem; align-items:start; }
.comparison-complete{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem 1.2rem;border:1px solid #cfe5d8;border-radius:14px;background:#f3fbf6;color:#486456}
.comparison-config>.btn{margin-top:1.43rem}
.results-toolbar { align-items:flex-start; justify-content:flex-start; }.toolbar-field{display:flex;flex:1;flex-direction:column;max-width:390px;color:#536078;font-size:.72rem;font-weight:750;gap:.35rem}.toolbar-field .search{max-width:none}.review-field{min-width:260px}.review-field small{min-height:17px;color:#8792a6;font-size:.68rem;font-weight:500}.result-count{margin-top:1.62rem;margin-left:auto;white-space:nowrap}.result-count b{color:#2e49ad;font-size:1.05rem}.results-empty{margin-top:1rem;padding:2rem;border:1px dashed #cbd3e2;border-radius:14px;background:#fff}.results-empty .btn{margin-top:1rem}
.sort-button{display:flex;align-items:center;justify-content:space-between;gap:.4rem;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit}.sort-button:hover{color:#3553b5}.sort-button span{min-width:12px;color:#3553b5;font-size:.9rem}
.results-prompt{min-height:210px;margin-top:1.25rem}
.progress-panel { padding:1rem; margin-top:1rem; }.progress-panel span { display:block; color:#64748b; margin-top:.55rem; }.progress-bar { background:#3b5ccc; }
.file-button { position:relative; overflow:hidden; cursor:pointer; white-space:nowrap; }
.file-button input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.section-tabs { display:flex; gap:.35rem; border-bottom:1px solid #dfe4ee; margin-bottom:1.25rem; }
.section-tabs button { border:0; border-bottom:3px solid transparent; background:transparent; color:#64748b; padding:.85rem 1rem; font-weight:700; }
.section-tabs button.active { color:#304fba; border-bottom-color:#ff6b64; }
.section-tabs span { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; margin-left:5px; border-radius:999px; background:#edf1fa; font-size:.72rem; }
.origin-badge,.status-pill { display:inline-flex; border-radius:999px; padding:.28rem .65rem; font-size:.75rem; font-weight:750; }
.origin-badge.signa { background:#eaf0ff; color:#3155bc; }.origin-badge.private { background:#f2f3f6; color:#596579; }
.status-pill.borrador { background:#fff4dc; color:#8a6110; }.status-pill.publicada { background:#e4f7ed; color:#177046; }.status-pill.retirada { background:#fbe8ea; color:#a33d4b; }
.library-summary { display:flex; gap:1.5rem; color:#667085; margin:.8rem 0 1rem; font-size:.88rem; }.library-summary b{color:#1f2937;}
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.library-card { display:flex; flex-direction:column; align-items:flex-start; min-height:240px; padding:1.3rem; border:1px solid #e3e8f2; border-radius:17px; background:#fff; box-shadow:0 7px 24px rgba(40,54,85,.05); }
.library-card-top { display:flex; width:100%; align-items:center; justify-content:space-between; margin-bottom:1rem; }.signa-seal { display:grid; place-items:center; width:35px; height:35px; border-radius:11px; color:#fff; background:#26479d; font-weight:850; }
.library-card h3 { font-size:1.08rem; margin:0 0 .4rem; }.library-card p,.library-card small { color:#738096; }.library-card small { margin-bottom:1.2rem; }.library-card .btn { margin-top:auto; width:100%; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:130px; color:#667085; text-align:center; }.empty-state span{font-size:.88rem;margin-top:.3rem}.empty-state.standalone{grid-column:1/-1;background:#fff;border:1px dashed #cbd3e2;border-radius:16px;min-height:220px}
.private-upload-panel { display:flex; flex-direction:column; align-items:center; text-align:center; padding:3.5rem 2rem; border:1px dashed #bac6dc; border-radius:20px; background:#fff; }.private-upload-panel h2{margin:.2rem 0 .4rem}.private-upload-panel p:not(.eyebrow),.private-upload-panel>small{color:#738096}.private-upload-panel .btn{margin:1rem 0 .6rem}.upload-illustration{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:#edf2ff;color:#3555b5;font-size:1.8rem;margin-bottom:1rem}
@media(max-width:900px){.metric-grid,.action-grid,.form-grid,.comparison-config{grid-template-columns:1fr}.comparison-config>.btn{margin-top:0}.page-heading,.upload-card{align-items:stretch;flex-direction:column}.toolbar{align-items:stretch;flex-direction:column}.search{max-width:none}}
@media(max-width:900px){.library-grid{grid-template-columns:1fr}.section-tabs{overflow:auto}.section-tabs button{white-space:nowrap}}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
