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; }
.result-watch-action{min-width:105px;white-space:nowrap}.result-watch-action .btn-link,.result-watch-action>a{display:block;font-weight:750}.result-watch-action small{color:#68758d}
.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; transition:width .35s ease-out; }
.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:stretch; min-height:390px; 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 .8rem; }.library-card p,.library-card small { color:#738096; }.library-card .btn { margin-top:auto; width:100%; }
.library-card-metrics { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin-bottom:.9rem; }
.library-card-metrics div { display:flex; flex-direction:column; padding:.65rem .75rem; border:1px solid #e7ebf4; border-radius:.7rem; background:#f8faff; }
.library-card-metrics b { color:#18233a; font-size:1.05rem; }.library-card-metrics span { color:#738096; font-size:.72rem; }
.library-card-sections { margin-bottom:.9rem; }.library-card-sections>span,.library-card-source>span { display:block; margin-bottom:.35rem; color:#65728a; font-size:.68rem; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.library-card-sections>div { display:flex; flex-wrap:wrap; gap:.35rem; }.library-card-sections>div>span { padding:.28rem .48rem; border-radius:999px; background:#eef2ff; color:#40548b; font-size:.68rem; }.library-card-sections>div b { color:#243d86; }
.library-card-source { display:flex; min-width:0; margin-bottom:1rem; flex-direction:column; }.library-card-source b { overflow:hidden; color:#35425a; font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }.library-card-source small { margin-top:.15rem; }
.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}
.gazette-preview{background:#fff;border:1px solid #dfe5f0;border-radius:20px;padding:1.5rem;box-shadow:0 10px 30px rgba(28,45,87,.06)}.admin-preview{margin-bottom:1.5rem}.gazette-preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding-bottom:1.2rem;border-bottom:1px solid #edf0f6}.gazette-preview-heading h2{margin:.15rem 0}.gazette-preview-heading p:not(.eyebrow){margin:0;color:#75819a}.gazette-preview-total{display:flex;flex-direction:column;text-align:right}.gazette-preview-total b{font-size:2rem;color:#172541}.gazette-preview-total span{color:#6e7b95}.gazette-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1.2rem 0}.gazette-section{display:flex;flex-direction:column;gap:.3rem;padding:1rem;border-radius:14px;border:1px solid #e3e8f2}.gazette-section span{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.gazette-section small{color:#75819a}.gazette-section.included{background:#f2fbf7;border-color:#cdecdc}.gazette-section.included span{color:#168258}.gazette-section.ignored{background:#f7f8fb}.gazette-section.ignored span{color:#7d8799}.gazette-image-summary{padding:.85rem 1rem;border-radius:12px;background:#f3f6ff;color:#536382}.gazette-preview-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.2rem}
.publication-content-summary{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.image-count{display:inline-flex;padding:.2rem .5rem;border-radius:999px;background:#f0f2f6;color:#798398;font-size:.76rem;font-weight:700}.image-count.available{background:#e9f7f1;color:#187955}.publication-sections{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}.publication-sections span{padding:.18rem .45rem;border:1px solid #e3e8f1;border-radius:7px;background:#f8f9fc;color:#68758d;font-size:.72rem}
@media(max-width:900px){.metric-grid,.action-grid,.form-grid,.comparison-config,.gazette-section-grid{grid-template-columns:1fr}.comparison-config>.btn{margin-top:0}.page-heading,.upload-card,.gazette-preview-heading{align-items:stretch;flex-direction:column}.gazette-preview-total{text-align:left}.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}}

/* Funcionalidades por empresa */
.feature-admin-card{padding:1.35rem;border:1px solid #e3e8f2;border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(40,54,85,.05)}
.feature-admin-heading{display:flex;align-items:center;gap:1rem}.feature-admin-heading h2{margin:0 0 .25rem;font-size:1.25rem}.feature-admin-heading p{margin:0;color:#738096}
.feature-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#eaf0ff;color:#3155bc;font-weight:850}
.feature-table{min-width:720px}.feature-footnote{margin:1rem 0 0;color:#738096;font-size:.82rem}

/* Bandeja de vigilancia */
.watch-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}
.watch-metric{display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:1rem;border:1px solid #e2e7f0;border-radius:14px;background:#fff;color:#536078;text-align:left;box-shadow:0 5px 18px rgba(40,54,85,.04)}
.watch-metric strong{font-size:1.45rem;color:#1b2740}.watch-metric.selected{border-color:#5572d7;background:#eef2ff;color:#2f4fb7}
.watch-toolbar{align-items:flex-end;justify-content:flex-start}.watch-toolbar .toolbar-field{max-width:230px}.watch-toolbar .watch-search{max-width:360px}.watch-toolbar .result-count{margin-top:0}
.watch-layout{display:grid;grid-template-columns:minmax(720px,1fr) 430px;gap:1rem;align-items:start}.watch-layout.without-detail{grid-template-columns:1fr}.watch-list{max-height:calc(100vh - 355px)}
.watch-table{min-width:980px}.watch-table tr{transition:background .15s ease}.watch-table tr.selected-row td{background:#f2f5ff}.watch-table td:first-child{min-width:220px}.watch-table td:nth-child(2){min-width:190px}
.watch-status{display:inline-flex;padding:.25rem .55rem;border-radius:999px;background:#f0f2f6;color:#596579;font-size:.72rem;font-weight:750}.watch-status.en-revision{background:#eaf0ff;color:#3155bc}.watch-status.relevante{background:#e4f7ed;color:#177046}.watch-status.evaluar-oposicion{background:#fff0db;color:#985d08}.watch-status.descartada,.watch-status.cerrada{background:#f1f2f5;color:#687386}
.priority{font-weight:650}.priority.alta{color:#b23b4d}.priority.media{color:#8a6110}.priority.baja{color:#587080}
.watch-detail{position:sticky;top:1rem;max-height:calc(100vh - 130px);overflow:auto;padding:1.25rem;border:1px solid #dfe5f0;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(29,43,75,.09)}
.watch-detail-header{display:flex;justify-content:space-between;gap:1rem}.watch-detail-header h2{margin:0 0 .2rem;font-size:1.4rem}.watch-detail-header span{color:#738096;font-size:.83rem}.detail-close{width:32px;height:32px;border:0;border-radius:9px;background:#f2f4f8;color:#596579;font-size:1.4rem}
.detail-score{display:flex;align-items:center;gap:.7rem;margin:1rem 0}.detail-score .similarity{font-size:1.05rem}.detail-score div{display:flex;flex-direction:column}.detail-score small{color:#8792a6}.detail-explanation{padding:.8rem;border-radius:10px;background:#f6f8fc;color:#536078;font-size:.82rem;line-height:1.45}
.detail-data{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:1rem 0}.detail-data div{padding:.7rem;border:1px solid #edf0f5;border-radius:10px}.detail-data dt{color:#8792a6;font-size:.68rem;text-transform:uppercase}.detail-data dd{margin:.2rem 0 0;font-size:.82rem;font-weight:650;overflow-wrap:anywhere}
.decision-editor,.comment-editor{display:grid;gap:.7rem;padding-top:1rem;border-top:1px solid #edf0f5}.decision-editor h3,.comment-editor h3{margin:0;font-size:1rem}.decision-editor label{display:grid;gap:.25rem;color:#536078;font-size:.75rem;font-weight:700}.decision-editor .btn,.comment-editor .btn{justify-self:start}.comment-editor{margin-top:1rem}
.detail-tabs{display:flex;gap:.25rem;margin-top:1.25rem;border-bottom:1px solid #e2e7f0}.detail-tabs button{padding:.65rem .7rem;border:0;border-bottom:2px solid transparent;background:transparent;color:#738096;font-size:.78rem;font-weight:700}.detail-tabs button.active{border-color:#3b5ccc;color:#3155bc}
.activity-list article{padding:.85rem 0;border-bottom:1px solid #edf0f5}.activity-list article:last-child{border-bottom:0}.activity-list b,.activity-list time{display:block}.activity-list time{margin:.15rem 0;color:#8792a6;font-size:.68rem}.activity-list p{margin:.35rem 0 0;color:#536078;font-size:.8rem;line-height:1.45;white-space:pre-wrap}.activity-list>p{padding:1rem 0;color:#8792a6;font-size:.8rem}
@media(max-width:1200px){.watch-layout{grid-template-columns:1fr}.watch-detail{position:static;max-height:none}.watch-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.watch-metrics{grid-template-columns:1fr 1fr}.watch-toolbar .toolbar-field,.watch-toolbar .watch-search{max-width:none;width:100%}.detail-data{grid-template-columns:1fr}}

/* Alertas y control de vencimientos */
.nav-badge{margin-left:auto;min-width:21px;padding:.1rem .38rem;border-radius:999px;background:#ff6f6a;color:#fff;font-size:.68rem;font-weight:800;text-align:center}
.watch-deadline-callout{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0;padding:1rem;border:1px solid #f0cf8e;border-radius:13px;background:#fff8e8}.watch-deadline-callout div{display:grid;gap:.2rem}.watch-deadline-callout small{color:#6f7890}
.deadline-heading{align-items:flex-end}.deadline-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;margin:1rem 0}.deadline-metric{display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:1rem;border:1px solid #e1e6ef;border-radius:14px;background:#fff;color:#536078;text-align:left;box-shadow:0 5px 18px rgba(40,54,85,.04)}.deadline-metric strong{font-size:1.45rem;color:#18243b}.deadline-metric.danger strong{color:#bd3342}.deadline-metric.today strong{color:#b36a00}.deadline-metric.completed strong{color:#27805c}
.deadline-alert-strip{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:.85rem 1rem;border:1px solid #f2d39d;border-radius:13px;background:#fff9ea}.deadline-alert-strip>div{display:flex;align-items:center;gap:.75rem}.deadline-alert-strip>div>div{display:grid}.deadline-alert-strip small{color:#6b768c}.alert-symbol{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#fff0c9;color:#9a6200;font-weight:900}
.deadline-tabs{display:flex;gap:.3rem;margin:1rem 0;border-bottom:1px solid #dfe4ee}.deadline-tabs button{padding:.7rem 1rem;border:0;border-bottom:3px solid transparent;background:transparent;color:#66738a;font-weight:750}.deadline-tabs button.active{border-color:#4a63d5;color:#304fc1}
.deadline-toolbar{display:grid;grid-template-columns:170px 170px 230px minmax(260px,1fr) auto auto;gap:.75rem;align-items:end}.deadline-toolbar .toolbar-field{max-width:none}.deadline-toolbar .clear-filter{align-self:center}.deadline-toolbar .result-count{align-self:center;margin:0;white-space:nowrap}
.deadline-settings{display:flex;align-items:end;justify-content:space-between;gap:2rem;padding:1.4rem;border:1px solid #dfe5ef;border-radius:16px;background:#fff}.deadline-settings h2{margin:.1rem 0}.deadline-settings p{margin:0;color:#68758e}.settings-form{display:flex;gap:.7rem;min-width:440px}
.deadline-layout{display:grid;grid-template-columns:minmax(700px,1fr) 430px;gap:1rem;align-items:start}.deadline-layout.without-detail{grid-template-columns:1fr}.deadline-list{max-height:calc(100vh - 390px)}.deadline-table{min-width:1000px}.deadline-table tr.selected-row td{background:#f2f5ff}.deadline-table td small{display:block;color:#7b879b}.deadline-state{display:inline-grid;gap:.18rem}.deadline-state.overdue{color:#b92f40}.deadline-date{font-weight:750}.deadline-status{display:inline-flex;padding:.25rem .55rem;border-radius:999px;background:#eef1f6;color:#566277;font-size:.72rem;font-weight:800}.priority{display:block;margin-top:.2rem;font-size:.75rem;font-weight:750}.priority.alta{color:#c23243}.priority.media{color:#9a6500}.priority.baja{color:#35705a}
.deadline-detail{max-height:calc(100vh - 135px);overflow:auto;padding:1.25rem;border:1px solid #dfe5f0;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(29,43,75,.09)}.deadline-editor,.comment-editor{display:grid;gap:.8rem;margin-top:1rem}.deadline-editor label,.comment-editor label{display:grid;gap:.35rem;color:#4e5d76;font-size:.82rem;font-weight:750}.form-grid.compact{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.deadline-overlay{position:fixed;inset:0;z-index:1100;display:flex;justify-content:flex-end;background:rgba(12,22,42,.34)}.deadline-overlay-panel{width:min(470px,100%);height:100%;padding:1rem;background:#f7f8fb}.deadline-overlay-panel .deadline-detail{height:100%;max-height:none}
.calendar-card{padding:1rem;border:1px solid #dfe5ef;border-radius:16px;background:#fff}.calendar-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.calendar-card h2{margin:0;text-transform:capitalize}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays span{padding:.5rem;color:#66738a;font-size:.78rem;font-weight:800;text-align:center}.calendar-day{min-height:118px;padding:.55rem;border-top:1px solid #e7ebf2;border-left:1px solid #e7ebf2}.calendar-day:nth-child(7n){border-right:1px solid #e7ebf2}.calendar-day>span{font-size:.78rem;font-weight:800}.calendar-day.today>span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#3958cf;color:#fff}.calendar-item{display:block;width:100%;margin-top:.35rem;padding:.35rem .45rem;border:0;border-radius:7px;background:#edf1ff;color:#314cae;font-size:.72rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-item.overdue{background:#ffeaed;color:#ad2f3f}.calendar-more{display:block;margin-top:.3rem;color:#6b7890;font-size:.7rem}
.deadline-home-card{border-color:#e5ca94!important;background:#fffaf0!important}
@media(max-width:1250px){.deadline-metrics{grid-template-columns:repeat(3,1fr)}.deadline-toolbar{grid-template-columns:repeat(3,1fr)}.deadline-layout{grid-template-columns:1fr}.deadline-detail{max-height:none}}
@media(max-width:720px){.deadline-metrics{grid-template-columns:1fr 1fr}.deadline-toolbar{grid-template-columns:1fr}.deadline-settings,.settings-form,.watch-deadline-callout{align-items:stretch;flex-direction:column;min-width:0}.form-grid.compact{grid-template-columns:1fr}.calendar-day{min-height:78px}.deadline-alert-strip{align-items:flex-start;flex-direction:column}}

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;
}
.result-logo {
    display: block;
    width: 76px;
    height: 58px;
    margin-bottom: .55rem;
    padding: .25rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid #dce3f0;
    border-radius: .6rem;
}

.visual-summary { margin-top: .45rem; }
.similarity.visual { background: #e9e6ff; color: #5038a0; }
.visual-candidate { font-size: .68rem; color: #5038a0; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.visual-details { margin-top: .35rem; }
.visual-mode-note { display:flex; gap:.55rem; align-items:center; margin:-.35rem 0 1rem; color:#536078; font-size:.82rem; }
.visual-mode-note b { color:#5038a0; background:#efedff; border-radius:999px; padding:.3rem .65rem; white-space:nowrap; }
.portfolio-table { min-width:1050px; }
.portfolio-table td:first-child { width:112px; }
.portfolio-logo { display:block; width:82px; height:58px; padding:.25rem; object-fit:contain; background:#fff; border:1px solid #dce3f0; border-radius:.65rem; }
.portfolio-no-logo { display:flex; width:92px; min-height:58px; padding:.35rem; flex-direction:column; align-items:center; justify-content:center; border:1px dashed #c7cfde; border-radius:.65rem; background:#fafbfe; color:#64748b; cursor:pointer; }
.portfolio-no-logo span { font-weight:750; font-size:.75rem; }
.portfolio-no-logo small { margin:0; font-size:.58rem; line-height:1.15; text-align:center; }
.portfolio-image-preview { display:flex; align-items:center; gap:.9rem; margin-top:1rem; padding:.8rem; background:#f7f8fc; border:1px solid #e1e6f0; border-radius:.8rem; }
.portfolio-image-preview img { width:100px; height:72px; object-fit:contain; background:#fff; border:1px solid #dce3f0; border-radius:.6rem; }
.portfolio-new-image { display:grid; width:72px; height:58px; place-items:center; border-radius:.6rem; background:#e7f7ee; color:#187044; font-size:1.5rem; font-weight:800; }
.portfolio-image-preview div { display:flex; flex-direction:column; }.portfolio-image-preview span { color:#64748b; font-size:.82rem; }
.portfolio-upload-field { display:flex; flex-direction:column; align-items:flex-start; }
.portfolio-file-picker { display:flex; width:100%; min-height:72px; margin-top:.35rem; padding:.7rem; flex-direction:column; align-items:flex-start; justify-content:center; gap:.3rem; border:1px dashed #bdc8dc; border-radius:.7rem; background:#f8faff; transition:.18s ease; }
.portfolio-file-picker:hover { border-color:#3b5ccc; background:#f3f5ff; }
.portfolio-file-input { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
.portfolio-file-button { display:inline-flex; padding:.38rem .75rem; border-radius:.5rem; background:#eef2ff; color:#3553b5; font-size:.78rem; font-weight:750; cursor:pointer; transition:.18s ease; }
.portfolio-file-button:hover { background:#dfe6ff; color:#2946a3; }
.portfolio-file-picker small { color:#718096; font-size:.7rem; overflow-wrap:anywhere; }
#portfolio-editor { scroll-margin-top:1.25rem; }
.portfolio-no-logo.not-applicable { border-style:solid; border-color:#e2e7f0; background:#f8f9fc; color:#7a8497; cursor:default; }
.comparison-gazette-summary { display:flex; margin:-.35rem 0 .8rem; padding:.85rem 1rem; align-items:center; gap:1.25rem; border:1px solid #e2e7f1; border-radius:.85rem; background:#fff; }
.comparison-gazette-metrics { display:flex; flex:0 0 auto; gap:.55rem; }.comparison-gazette-metrics>div { display:flex; min-width:105px; padding:.5rem .7rem; flex-direction:column; border-radius:.65rem; background:#f5f7fb; }.comparison-gazette-metrics>div.has-images { background:#f0edff; }.comparison-gazette-metrics b { color:#17233b; font-size:.95rem; }.comparison-gazette-metrics span { color:#6e7890; font-size:.66rem; }
.comparison-gazette-sections { min-width:0; }.comparison-gazette-sections>span { display:block; margin-bottom:.3rem; color:#65728a; font-size:.66rem; font-weight:750; text-transform:uppercase; }.comparison-gazette-sections>div { display:flex; flex-wrap:wrap; gap:.3rem; }.comparison-gazette-sections>div>span { padding:.25rem .45rem; border-radius:999px; background:#eef2ff; color:#40548b; font-size:.65rem; }
@media(max-width:760px){.comparison-gazette-summary{align-items:stretch;flex-direction:column}.comparison-gazette-metrics{width:100%}.comparison-gazette-metrics>div{flex:1}}
.sic-automation-card { display:flex; margin-bottom:1rem; padding:1.15rem 1.25rem; align-items:center; justify-content:space-between; gap:1.5rem; border:1px solid #d9e1f0; border-radius:1rem; background:linear-gradient(135deg,#fff 0%,#f3f6ff 100%); box-shadow:0 10px 28px rgba(32,53,105,.06); }
.sic-automation-copy { display:flex; min-width:0; flex-direction:column; gap:.2rem; }.sic-automation-copy .eyebrow { margin:0 0 .15rem; }.sic-automation-copy>b { color:#172033; font-size:1rem; }.sic-automation-copy>span { color:#64708a; font-size:.82rem; }
.sic-import-history { margin-bottom:1.25rem; overflow:hidden; border:1px solid #dde4f0; border-radius:1rem; background:#fff; }
.sic-history-heading { display:flex; padding:.9rem 1rem; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid #e5eaf2; }.sic-history-heading>div { display:flex; flex-direction:column; }.sic-history-heading span,.sic-history-heading small { color:#738098; font-size:.72rem; }
.sic-history-list article { display:grid; grid-template-columns:minmax(140px,.8fr) minmax(190px,1fr) minmax(260px,2fr) auto; padding:.8rem 1rem; align-items:center; gap:1rem; border-bottom:1px solid #edf0f5; }.sic-history-list article:last-child { border-bottom:0; }.sic-history-list article>div { display:flex; min-width:0; flex-direction:column; gap:.25rem; }.sic-history-list small { color:#69758c; }.sic-history-result .error-text { color:#b42332; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.status-pill.detectada,.status-pill.descargando,.status-pill.descargada,.status-pill.importando { background:#eef2ff; color:#3454b4; }.status-pill.importada { background:#e4f7ed; color:#137047; }.status-pill.error { background:#fee9eb; color:#b42332; }
@media(max-width:900px){.sic-automation-card{align-items:stretch;flex-direction:column}.sic-history-list article{grid-template-columns:1fr 1fr}.sic-history-result{grid-column:1/-1}}
.new-gazettes-panel { margin-bottom:1.4rem; padding:1.2rem; border:1px solid #cfdaf2; border-radius:1rem; background:linear-gradient(135deg,#f8faff 0%,#fff 58%,#f6fbff 100%); box-shadow:0 14px 32px rgba(39,67,133,.08); }
.new-gazettes-heading { display:flex; margin-bottom:1rem; align-items:flex-start; justify-content:space-between; gap:1rem; }.new-gazettes-heading .eyebrow { margin-bottom:.25rem; }.new-gazettes-heading h2 { margin:0 0 .25rem; color:#172033; font-size:1.25rem; }.new-gazettes-heading p:not(.eyebrow) { margin:0; color:#64718a; font-size:.82rem; }
.new-gazettes-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:.85rem; }.new-gazette-card { display:flex; padding:1rem; flex-direction:column; gap:.8rem; border:1px solid #e0e6f2; border-radius:.85rem; background:#fff; }
.new-gazette-title { display:flex; align-items:center; gap:.7rem; }.new-gazette-title>div { display:flex; min-width:0; flex-direction:column; }.new-gazette-title b { color:#172033; font-size:1rem; }.new-gazette-title small { color:#758097; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.new-gazette-metrics { display:flex; gap:.5rem; }.new-gazette-metrics span { padding:.4rem .65rem; border-radius:.6rem; background:#f3f5f9; color:#667188; font-size:.72rem; }.new-gazette-metrics span.has-images { background:#f0edff; color:#55409d; }.new-gazette-metrics b { color:#1c2942; font-size:.85rem; }
.new-gazette-sections { display:flex; flex-wrap:wrap; gap:.3rem; }.new-gazette-sections span { padding:.25rem .45rem; border-radius:999px; background:#eef2ff; color:#40548b; font-size:.65rem; }
.new-gazette-actions { display:flex; margin-top:auto; align-items:center; flex-wrap:wrap; gap:.45rem; }.new-gazette-actions .btn { padding:.45rem .7rem; font-size:.76rem; }.new-gazette-actions .btn-link { font-size:.72rem; }.new-gazette-admin-note,.library-admin-note { display:block; color:#6f7b92; font-size:.72rem; line-height:1.35; }
@media(max-width:700px){.new-gazettes-heading{flex-direction:column}.new-gazettes-list{grid-template-columns:1fr}.new-gazette-actions{align-items:stretch;flex-direction:column}.new-gazette-actions>*{width:100%;text-align:center}}
