:root{
  color-scheme: light;
  --smp-bg:#f5f5f7;
  --smp-surface:rgba(255,255,255,.82);
  --smp-surface-solid:#ffffff;
  --smp-surface-soft:#fbfbfd;
  --smp-text:#1d1d1f;
  --smp-text-2:#424245;
  --smp-muted:#6e6e73;
  --smp-muted-2:#86868b;
  --smp-line:#d2d2d7;
  --smp-line-soft:rgba(60,60,67,.12);
  --smp-blue:#0071e3;
  --smp-blue-hover:#0077ed;
  --smp-blue-soft:#eaf4ff;
  --smp-green:#248a3d;
  --smp-orange:#b25000;
  --smp-red:#d70015;
  --smp-shadow:0 10px 30px rgba(0,0,0,.06);
  --smp-shadow-float:0 18px 50px rgba(0,0,0,.10);
  --smp-sidebar:224px;
  --smp-radius:20px;
  --smp-radius-lg:26px;
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--smp-bg);color:var(--smp-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{min-height:100vh}
button,input,select,textarea{font:inherit;color:inherit}
button,a{touch-action:manipulation}
a{color:inherit}

.smp-app{min-height:100vh;position:relative;background:
  radial-gradient(circle at 88% -10%,rgba(0,113,227,.10),transparent 28%),
  linear-gradient(180deg,#f8f8fa 0%,#f5f5f7 42%,#f2f2f4 100%)}
.smp-atmosphere{display:none}

/* Apple-inspired material: light, restrained and readable */
.smp-material{background:var(--smp-surface);border:1px solid rgba(255,255,255,.88);box-shadow:var(--smp-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;}

/* Sidebar */
.smp-sidebar{position:fixed;left:16px;top:16px;bottom:16px;width:var(--smp-sidebar);padding:16px 12px;display:flex;flex-direction:column;border-radius:24px;z-index:30;background:rgba(255,255,255,.76);border:1px solid rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(0,0,0,.05)}
.smp-brand{display:flex;align-items:center;gap:11px;padding:6px 8px 18px;border-bottom:1px solid var(--smp-line-soft);margin-bottom:12px}
.smp-brand-mark{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(180deg,#1687f8,#0071e3);color:#fff;font-size:13px;font-weight:800;letter-spacing:-.03em;box-shadow:0 6px 16px rgba(0,113,227,.20)}
.smp-brand strong{display:block;font-size:13px;line-height:1.2;font-weight:700;color:var(--smp-text)}
.smp-brand span{display:block;margin-top:3px;font-size:11px;color:var(--smp-muted)}
.smp-nav{display:grid;gap:4px}
.smp-nav-item{appearance:none;border:0;background:transparent;color:var(--smp-text-2);display:flex;align-items:center;gap:10px;width:100%;padding:10px 11px;border-radius:12px;cursor:pointer;font-size:13px;font-weight:600;text-align:left;transition:background .14s ease,color .14s ease,transform .14s ease}
.smp-nav-item svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.75}
.smp-nav-item:hover{background:rgba(118,118,128,.10);color:var(--smp-text)}
.smp-nav-item.is-active{background:rgba(0,113,227,.10);color:var(--smp-blue)}
.smp-nav-item:active{transform:scale(.99)}
.smp-sidebar-footer{margin-top:auto;padding:12px 5px 2px;border-top:1px solid var(--smp-line-soft);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}
.smp-user-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e8e8ed;color:#3a3a3c;font-size:12px;font-weight:700}
.smp-user-copy{min-width:0}.smp-user-copy strong,.smp-user-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smp-user-copy strong{font-size:11px;font-weight:700}.smp-user-copy span{font-size:10px;color:var(--smp-muted);margin-top:2px}.smp-icon-link{color:var(--smp-muted);text-decoration:none;padding:4px 6px;border-radius:8px}.smp-icon-link:hover{background:#eeeeF0;color:var(--smp-text)}

/* Main / toolbar */
.smp-main{margin-left:calc(var(--smp-sidebar) + 48px);padding:16px 22px 54px;max-width:1540px}
.smp-toolbar{position:sticky;top:16px;z-index:20;min-height:72px;border-radius:22px;padding:13px 16px 13px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(0,0,0,.045);backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-toolbar-eyebrow,.smp-eyebrow{display:block;font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--smp-muted)}
.smp-toolbar h1{margin:3px 0 0;font-size:24px;line-height:1.08;letter-spacing:-.03em;font-weight:700;color:var(--smp-text)}
.smp-toolbar-actions{display:flex;align-items:center;gap:8px}
.smp-icon-button{appearance:none;border:1px solid var(--smp-line-soft);background:rgba(255,255,255,.88);width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:var(--smp-text-2);cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.03);transition:background .14s ease,transform .14s ease}
.smp-icon-button:hover{background:#fff}.smp-icon-button:active{transform:scale(.97)}.smp-icon-button svg{width:19px;height:19px}

.smp-primary,.smp-secondary{appearance:none;border:0;border-radius:12px;padding:11px 15px;font-weight:650;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-decoration:none;transition:background .14s ease,transform .14s ease,box-shadow .14s ease}
.smp-primary{background:var(--smp-blue);color:#fff;box-shadow:0 5px 14px rgba(0,113,227,.20)}
.smp-primary:hover{background:var(--smp-blue-hover)}
.smp-secondary{background:#fff;color:var(--smp-text);border:1px solid var(--smp-line-soft);box-shadow:0 2px 8px rgba(0,0,0,.025)}
.smp-secondary:hover{background:#f9f9fb}.smp-primary:active,.smp-secondary:active{transform:scale(.985)}
.smp-primary svg,.smp-secondary svg{width:16px;height:16px}.smp-compact{padding:10px 13px}.smp-full{width:100%}.smp-button-link{width:max-content}

.smp-page{display:none;animation:smpFade .16s ease}.smp-page.is-active{display:block}@keyframes smpFade{from{opacity:.55;transform:translateY(2px)}to{opacity:1;transform:none}}

/* Dashboard */
.smp-hero{position:relative;overflow:hidden;border-radius:var(--smp-radius-lg);padding:28px 30px 30px;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);box-shadow:0 8px 28px rgba(0,0,0,.045)}
.smp-hero:after{content:"";position:absolute;width:280px;height:280px;right:-90px;top:-115px;border-radius:50%;background:radial-gradient(circle,rgba(0,113,227,.09),transparent 67%);pointer-events:none}
.smp-hero-copy{position:relative;z-index:1;max-width:820px}
.smp-hero h2{margin:7px 0 10px;max-width:770px;font-size:clamp(2rem,3.6vw,3rem);line-height:1.03;letter-spacing:-.045em;font-weight:720;color:var(--smp-text)}
.smp-hero p{margin:0;max-width:760px;color:var(--smp-muted);font-size:14px;line-height:1.55}
.smp-big-search{position:relative;z-index:2;max-width:850px;margin-top:22px}
.smp-big-search>span{position:absolute;left:16px;top:50%;transform:translateY(-50%);display:grid;color:var(--smp-muted-2)}.smp-big-search svg{width:21px;height:21px}
.smp-big-search input{width:100%;height:58px;padding:0 55px 0 48px;border:1px solid var(--smp-line);border-radius:17px;background:#fff;color:var(--smp-text);font-size:17px;outline:none;box-shadow:0 3px 12px rgba(0,0,0,.025)}
.smp-big-search input::placeholder,.smp-search-control input::placeholder,.smp-form input::placeholder,.smp-form textarea::placeholder{color:#a1a1a6}
.smp-big-search input:focus,.smp-search-control input:focus,.smp-form input:focus,.smp-form select:focus,.smp-form textarea:focus,.smp-filterbar select:focus{border-color:#8cc4ff;box-shadow:0 0 0 4px rgba(0,113,227,.10)}
.smp-big-search kbd{position:absolute;right:14px;top:50%;transform:translateY(-50%);border:1px solid var(--smp-line);border-bottom-width:2px;background:#f7f7f9;color:var(--smp-muted);border-radius:7px;padding:4px 7px;font-size:11px}
.smp-live-results{display:grid;gap:7px;margin-top:10px;max-width:850px;position:relative;z-index:3}
.smp-live-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 13px;border-radius:13px;background:#fff;border:1px solid var(--smp-line-soft);box-shadow:0 4px 14px rgba(0,0,0,.035);cursor:pointer}.smp-live-item:hover{background:#fbfbfd}.smp-live-item strong{display:block;font-size:13px;color:var(--smp-text)}.smp-live-item span{display:block;font-size:11px;color:var(--smp-muted);margin-top:2px}.smp-live-item b{font-size:10px;color:var(--smp-blue);background:var(--smp-blue-soft);padding:5px 8px;border-radius:999px}

.smp-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.smp-stat{border-radius:18px;padding:17px 18px;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);box-shadow:0 6px 20px rgba(0,0,0,.035)}
.smp-stat span{display:block;color:var(--smp-muted);font-size:11px;font-weight:600}.smp-stat strong{display:block;color:var(--smp-text);font-size:28px;letter-spacing:-.035em;font-weight:700;margin-top:7px}.smp-stat small{display:block;color:var(--smp-muted-2);font-size:10px;margin-top:3px}
.smp-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.68fr);gap:14px}
.smp-card{border-radius:var(--smp-radius);padding:21px;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);box-shadow:0 7px 22px rgba(0,0,0,.04)}
.smp-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}.smp-section-head h2,.smp-section-head h3,.smp-card h2{margin:4px 0 0;color:var(--smp-text);letter-spacing:-.03em}.smp-section-head h2,.smp-card h2{font-size:25px;font-weight:700}.smp-section-head h3{font-size:20px;font-weight:700}.smp-section-head p,.smp-muted{color:var(--smp-muted);line-height:1.5}.smp-wrap-head{flex-wrap:wrap}
.smp-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.smp-quick{appearance:none;border:1px solid var(--smp-line-soft);background:#fff;border-radius:14px;padding:14px;text-align:left;cursor:pointer;transition:background .14s ease,transform .14s ease}.smp-quick:hover{background:#f9f9fb;transform:translateY(-1px)}.smp-quick strong{display:block;color:var(--smp-text);font-size:13px}.smp-quick span{display:block;color:var(--smp-muted);font-size:11px;margin-top:4px;line-height:1.4}
.smp-activity{display:grid;gap:0}.smp-activity-row{display:grid;grid-template-columns:9px minmax(0,1fr);gap:9px;padding:9px 1px;border-bottom:1px solid var(--smp-line-soft)}.smp-activity-row:last-child{border-bottom:0}.smp-activity-dot{width:7px;height:7px;border-radius:50%;background:#64a9f5;margin-top:5px}.smp-activity-row strong{display:block;color:var(--smp-text);font-size:12px}.smp-activity-row span{display:block;color:var(--smp-muted);font-size:10px;margin-top:2px}

/* Filters, lists, sheet */
.smp-filterbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:16px 0}
.smp-search-control{position:relative;flex:1 1 320px}.smp-search-control>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:grid;color:var(--smp-muted-2)}.smp-search-control svg{width:17px;height:17px}
.smp-search-control input,.smp-filterbar select,.smp-form input,.smp-form select,.smp-form textarea{border:1px solid var(--smp-line);background:#fff;color:var(--smp-text);border-radius:12px;min-height:42px;outline:none}
.smp-search-control input{width:100%;padding:0 13px 0 38px}.smp-filterbar select{padding:0 34px 0 11px}.smp-wide-search{margin:0 0 16px}
.smp-segmented{display:flex;padding:3px;border-radius:11px;background:#ececf0}.smp-segmented button{border:0;background:transparent;border-radius:8px;padding:7px 11px;color:var(--smp-muted);font-size:12px;font-weight:600;cursor:pointer}.smp-segmented button.is-active{background:#fff;color:var(--smp-text);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.smp-table-wrap{width:100%;overflow:auto;border:1px solid var(--smp-line-soft);border-radius:15px;background:#fff}.smp-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}.smp-table th{position:sticky;top:0;background:#f7f7f9;color:var(--smp-muted);text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.055em;padding:10px 11px;border-bottom:1px solid var(--smp-line-soft);z-index:2}.smp-table td{padding:11px;border-bottom:1px solid var(--smp-line-soft);font-size:12px;color:var(--smp-text);vertical-align:middle}.smp-table tr:last-child td{border-bottom:0}.smp-table tbody tr{cursor:pointer}.smp-table tbody tr:hover{background:#fafafa}.smp-name-cell strong{display:block;color:var(--smp-text);font-size:13px}.smp-name-cell span{display:block;color:var(--smp-muted);font-size:10px;margin-top:2px}
.smp-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#f0f0f2;font-size:10px;font-weight:650;color:var(--smp-text-2);white-space:nowrap}.smp-pill.is-blue{background:#eaf4ff;color:#0066cc}.smp-pill.is-green{background:#e9f7ed;color:#247a35}.smp-pill.is-orange{background:#fff2e4;color:#9a4a00}.smp-pill.is-red{background:#ffeaed;color:#b00020}
.smp-card-list{display:grid;gap:8px}.smp-person-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(120px,.6fr) minmax(130px,.7fr) auto;gap:13px;align-items:center;padding:13px 14px;border-radius:14px;background:#fff;border:1px solid var(--smp-line-soft);cursor:pointer;transition:background .14s ease}.smp-person-row:hover{background:#fafafa}.smp-person-row strong{display:block;color:var(--smp-text);font-size:13px}.smp-person-row small{display:block;color:var(--smp-muted);font-size:10px;margin-top:3px}.smp-person-row .smp-row-action{color:var(--smp-muted-2);font-size:18px}
.smp-empty{border:1px dashed var(--smp-line);border-radius:14px;padding:24px;color:var(--smp-muted);text-align:center;background:#fafafa}.smp-loading{height:120px;border-radius:14px;background:linear-gradient(90deg,#f1f1f3,#fafafa,#f1f1f3);background-size:220% 100%;animation:smpShimmer 1.2s infinite}@keyframes smpShimmer{to{background-position:-220% 0}}
.smp-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;color:var(--smp-muted);font-size:11px}.smp-pagination .smp-pager{display:flex;gap:6px}.smp-pagination button{border:1px solid var(--smp-line-soft);background:#fff;border-radius:9px;padding:7px 10px;cursor:pointer;color:var(--smp-text-2)}.smp-pagination button:disabled{opacity:.4;cursor:not-allowed}
.smp-sheet-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 11px}.smp-sheet-toolbar p{margin:0;color:var(--smp-muted);font-size:11px}.smp-sheet-input{width:100%;min-width:105px;border:1px solid transparent;background:transparent;color:var(--smp-text);border-radius:7px;padding:6px 7px;outline:none}.smp-sheet-input:hover{background:#f7f7f9;border-color:var(--smp-line-soft)}.smp-sheet-input.is-changed{background:#fff8e9;border-color:#e8a740}.smp-sheet-input:focus{background:#fff;border-color:#8cc4ff;box-shadow:0 0 0 3px rgba(0,113,227,.09)}

/* Data / import / export */
.smp-data-grid,.smp-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.smp-feature-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--smp-blue-soft);color:var(--smp-blue);margin-bottom:15px}.smp-feature-icon svg{width:21px;height:21px}.smp-card>p{color:var(--smp-muted);line-height:1.52}.smp-template-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px}.smp-template-links a{color:var(--smp-blue);text-decoration:none;font-size:12px;font-weight:600}.smp-template-links a:hover{text-decoration:underline}
.smp-process{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.smp-process div{padding:14px;border:1px solid var(--smp-line-soft);border-radius:14px;background:#fff}.smp-process b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--smp-blue-soft);color:var(--smp-blue);font-size:11px;margin-bottom:9px}.smp-process strong,.smp-process span{display:block;color:var(--smp-text)}.smp-process span{color:var(--smp-muted);font-size:11px;margin-top:4px;line-height:1.38}

/* Forms */
.smp-form{display:grid;gap:13px}.smp-form label{display:grid;gap:6px;color:var(--smp-text-2);font-size:11px;font-weight:650}.smp-form input,.smp-form select,.smp-form textarea{width:100%;padding:10px 11px}.smp-form textarea{min-height:92px;resize:vertical}.smp-grid-2,.smp-grid-3{display:grid;gap:11px}.smp-grid-2{grid-template-columns:1fr 1fr}.smp-grid-3{grid-template-columns:repeat(3,1fr)}.smp-check{display:flex!important;align-items:center;gap:8px!important}.smp-check input{width:auto!important;min-height:auto!important}
.smp-alert{padding:12px 13px;border-radius:12px;margin-top:11px;font-size:11px;line-height:1.45}.smp-alert.is-ok{background:#eefbf1;color:#176b2b;border:1px solid #b8e9c2}.smp-alert.is-error{background:#fff0f1;color:#9f1425;border:1px solid #ffc9cf}.smp-alert.is-warn{background:#fff8ea;color:#7b4a00;border:1px solid #f4d89b}
.smp-user-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--smp-line-soft)}.smp-user-row:last-child{border-bottom:0}.smp-user-row strong{font-size:12px;color:var(--smp-text)}.smp-user-row span{display:block;font-size:10px;color:var(--smp-muted);margin-top:3px}.smp-user-row button{border:0;background:transparent;color:var(--smp-blue);font-weight:650;cursor:pointer}.smp-user-row button.is-danger{color:var(--smp-red)}

/* Drawer */
.smp-drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.18);backdrop-filter:none;opacity:0;pointer-events:none;transition:.18s;z-index:79}.smp-drawer-backdrop.is-open{opacity:1;pointer-events:auto}
.smp-drawer{position:fixed;right:12px;top:12px;bottom:12px;width:min(710px,calc(100vw - 24px));z-index:80;border-radius:24px;transform:translateX(calc(100% + 24px));transition:transform .22s cubic-bezier(.2,.8,.2,1);overflow:hidden;display:flex;flex-direction:column;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.95);box-shadow:var(--smp-shadow-float)}.smp-drawer.is-open{transform:none}.smp-drawer-head{padding:17px 18px 13px;display:flex;justify-content:space-between;align-items:flex-start;gap:13px;border-bottom:1px solid var(--smp-line-soft)}.smp-drawer-head h2{font-size:24px;letter-spacing:-.035em;margin:4px 0 0;color:var(--smp-text)}.smp-drawer-body{padding:18px;overflow:auto;overscroll-behavior:contain}.smp-detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}.smp-detail-tile{border:1px solid var(--smp-line-soft);border-radius:13px;padding:11px;background:#fff}.smp-detail-tile span{display:block;color:var(--smp-muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.smp-detail-tile strong{display:block;color:var(--smp-text);font-size:12px;margin-top:4px}.smp-drawer-tabs{display:flex;gap:3px;padding:3px;border-radius:10px;background:#ececf0;width:max-content;max-width:100%;margin-bottom:13px}.smp-drawer-tabs button{border:0;background:transparent;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:650;color:var(--smp-muted);cursor:pointer}.smp-drawer-tabs button.is-active{background:#fff;color:var(--smp-text);box-shadow:0 1px 4px rgba(0,0,0,.07)}
.smp-timeline{display:grid;gap:0}.smp-timeline-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px}.smp-timeline-line{position:relative;display:flex;justify-content:center}.smp-timeline-line:after{content:"";position:absolute;top:13px;bottom:-13px;width:1px;background:var(--smp-line)}.smp-timeline-row:last-child .smp-timeline-line:after{display:none}.smp-timeline-dot{width:8px;height:8px;border-radius:50%;background:#6aa9ec;margin-top:5px;z-index:1}.smp-timeline-content{padding-bottom:14px}.smp-timeline-content strong{font-size:12px;color:var(--smp-text)}.smp-timeline-content span{display:block;color:var(--smp-muted);font-size:10px;margin-top:3px}.smp-subcard{border:1px solid var(--smp-line-soft);border-radius:14px;padding:13px;background:#fff;margin-top:11px}.smp-subcard h3{font-size:15px;margin:0 0 10px;color:var(--smp-text)}.smp-inline-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}

/* Importer */
.smp-import-step{display:grid;gap:14px}.smp-dropzone{border:1.5px dashed #9bc7f3;background:#f6fbff;border-radius:16px;padding:26px;text-align:center}.smp-dropzone strong{display:block;color:var(--smp-text)}.smp-dropzone span{display:block;color:var(--smp-muted);font-size:11px;margin:6px 0 13px}.smp-mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.smp-mapping-grid label{display:grid;gap:6px;font-size:10px;font-weight:650;color:var(--smp-text-2)}.smp-mapping-grid select{min-height:40px;border:1px solid var(--smp-line);border-radius:10px;background:#fff;color:var(--smp-text);padding:0 9px}.smp-import-preview{max-height:260px;overflow:auto;border:1px solid var(--smp-line-soft);border-radius:12px;background:#fff}.smp-import-preview table{border-collapse:collapse;min-width:700px;width:100%;font-size:10px}.smp-import-preview th,.smp-import-preview td{padding:7px 8px;border-bottom:1px solid var(--smp-line-soft);white-space:nowrap;text-align:left;color:var(--smp-text)}.smp-import-preview th{position:sticky;top:0;background:#f7f7f9;color:var(--smp-muted)}.smp-progress{height:7px;background:#ededf0;border-radius:999px;overflow:hidden}.smp-progress i{display:block;height:100%;width:30%;background:var(--smp-blue);border-radius:999px;animation:smpProgress 1.1s infinite}@keyframes smpProgress{from{transform:translateX(-120%)}to{transform:translateX(430%)}}

.smp-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,16px);background:#1d1d1f;color:#fff;padding:10px 15px;border-radius:999px;box-shadow:0 12px 32px rgba(0,0,0,.22);font-size:11px;font-weight:650;opacity:0;pointer-events:none;transition:.18s;z-index:100}.smp-toast.is-show{opacity:1;transform:translate(-50%,0)}

/* Login */
.smp-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#fafafa,#f2f2f4);position:relative;overflow:hidden}.smp-login-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.6}.smp-login-orb.a{width:360px;height:360px;background:rgba(0,113,227,.10);left:-120px;top:-120px}.smp-login-orb.b{width:420px;height:420px;background:rgba(90,200,250,.11);right:-150px;bottom:-160px}.smp-login-card{width:min(430px,100%);padding:30px;border-radius:24px;position:relative;z-index:2;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.95);box-shadow:0 18px 55px rgba(0,0,0,.08)}.smp-login-mark{margin-bottom:18px}.smp-login-card h1{font-size:36px;line-height:1.02;letter-spacing:-.045em;margin:7px 0 9px;color:var(--smp-text)}.smp-login-card>p{color:var(--smp-muted);margin:0 0 20px;line-height:1.5}.smp-standalone-error{max-width:600px;margin:15vh auto;padding:30px;text-align:center}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1180px){:root{--smp-sidebar:208px}.smp-stat-grid{grid-template-columns:repeat(2,1fr)}.smp-dashboard-grid{grid-template-columns:1fr}.smp-process{grid-template-columns:repeat(2,1fr)}}
@media(max-width:920px){
  .smp-sidebar{left:10px;right:10px;top:auto;bottom:10px;width:auto;height:68px;border-radius:20px;padding:6px 8px;background:rgba(255,255,255,.90)}
  .smp-brand,.smp-sidebar-footer{display:none}.smp-nav{display:flex;justify-content:space-around;gap:2px;height:100%}.smp-nav-item{flex:1;min-width:0;justify-content:center;flex-direction:column;gap:2px;padding:6px 3px;border-radius:12px;font-size:9px}.smp-nav-item svg{width:18px;height:18px}
  .smp-main{margin-left:0;padding:10px 12px 94px}.smp-toolbar{top:10px;margin-bottom:12px}.smp-data-grid,.smp-two-col{grid-template-columns:1fr}.smp-detail-summary{grid-template-columns:1fr 1fr}.smp-grid-3{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .smp-toolbar{min-height:68px;padding:12px 13px}.smp-toolbar h1{font-size:21px}.smp-toolbar-actions .smp-primary span{display:none}.smp-hero{padding:22px 17px}.smp-hero h2{font-size:32px}.smp-big-search input{height:55px;font-size:15px;padding-right:17px}.smp-big-search kbd{display:none}
  .smp-stat-grid{grid-template-columns:1fr 1fr;gap:9px}.smp-stat{padding:14px}.smp-stat strong{font-size:25px}.smp-card{padding:17px}.smp-quick-grid{grid-template-columns:1fr}.smp-process{grid-template-columns:1fr}.smp-person-row{grid-template-columns:1fr auto}.smp-person-row>div:nth-child(2),.smp-person-row>div:nth-child(3){grid-column:1}.smp-detail-summary,.smp-grid-2,.smp-grid-3,.smp-mapping-grid{grid-template-columns:1fr}.smp-drawer{right:6px;top:6px;bottom:6px;width:calc(100vw - 12px);border-radius:20px}.smp-drawer-body{padding:15px}.smp-section-head h2,.smp-card h2{font-size:23px}.smp-filterbar>*{flex:1 1 100%}.smp-filterbar select{width:100%}.smp-toolbar-eyebrow{display:none}
}
@media(max-width:430px){.smp-stat-grid{grid-template-columns:1fr}.smp-nav-item span{font-size:8px}.smp-toolbar-actions{gap:5px}.smp-icon-button{width:38px;height:38px}.smp-compact{padding:9px 10px}.smp-login-card{padding:24px 19px}.smp-login-card h1{font-size:32px}}

/* Archivo municipal integrado */
.smp-seed-card{position:relative;overflow:hidden}.smp-seed-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-85px;top:-85px;background:radial-gradient(circle,rgba(0,113,227,.10),rgba(0,113,227,0));pointer-events:none}.smp-seed-status{display:grid;gap:3px;margin:14px 0;padding:12px 13px;border-radius:12px;background:#f7f8fa;border:1px solid var(--smp-line-soft);color:var(--smp-text-2);font-size:11px}.smp-seed-status strong{font-size:13px;color:var(--smp-text)}.smp-seed-status span{color:var(--smp-muted)}.smp-seed-status em{font-style:normal;color:#247a35;font-weight:650;margin-top:2px}.smp-primary:disabled,.smp-secondary:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;transform:none!important}

/* Estado y expediente v1.4 */
.smp-pill.is-purple{background:#f0eaff;color:#6941c6}
.smp-stat-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.smp-current-service{margin:12px 0;border:1px solid #b9dcff;background:linear-gradient(180deg,#f4f9ff 0%,#eef7ff 100%);border-radius:16px;padding:14px 15px;box-shadow:0 7px 20px rgba(0,113,227,.06)}
.smp-current-service-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.smp-current-service-head>div>span{display:block;color:#56708c;font-size:9px;font-weight:750;letter-spacing:.09em}.smp-current-service-head>div>strong{display:block;font-size:17px;letter-spacing:-.02em;color:#102a43;margin-top:2px}.smp-current-service-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:10px 0;border-top:1px solid rgba(0,113,227,.11)}.smp-current-service-row:first-of-type{border-top:0}.smp-current-service-row div{min-width:0}.smp-current-service-row b{display:block;color:var(--smp-text);font-size:13px}.smp-current-service-row span{display:block;color:var(--smp-muted);font-size:11px;margin-top:3px}.smp-current-service-row>strong{font-size:11px;color:#0066cc;white-space:nowrap;background:#fff;border:1px solid #cfe6ff;border-radius:999px;padding:5px 8px}
.smp-section-minihead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.smp-section-minihead h3{margin:0}.smp-section-minihead>span:not(.smp-pill){font-size:10px;color:var(--smp-muted)}
.smp-service-summary{display:grid;gap:3px;margin:4px 0 0}.smp-service-summary strong{font-size:13px}.smp-service-summary span{font-size:11px;color:var(--smp-muted)}
.smp-history-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.smp-history-title strong{min-width:0}.smp-timeline-row.is-current .smp-timeline-dot{background:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.12)}.smp-timeline-row.is-current .smp-timeline-content{background:#f5faff;border:1px solid #d9ebff;border-radius:12px;padding:9px 10px 12px;margin-bottom:8px}.smp-timeline-content span b{color:var(--smp-text-2);font-weight:650}
@media(max-width:1320px){.smp-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.smp-current-service-row{flex-direction:column;gap:6px}.smp-stat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.smp-stat-grid{grid-template-columns:1fr}}
.smp-upcoming-service{background:linear-gradient(180deg,#faf8ff 0%,#f6f2ff 100%);border-color:#ded3ff}.smp-upcoming-service .smp-current-service-row{border-top-color:rgba(105,65,198,.12)}.smp-upcoming-service .smp-current-service-row>strong{color:#6941c6;border-color:#e4dcff}

/* =========================================================
   v1.5 — Apple-inspired full-screen inspector + assemblies
   Glass stays in the control layer; content cards remain solid
   for legibility and fast scanning.
   ========================================================= */
.smp-drawer-backdrop{background:rgba(18,18,20,.22);backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-drawer{left:14px;right:14px;top:14px;bottom:14px;width:auto;max-width:none;border-radius:30px;background:rgba(246,246,248,.88);border:1px solid rgba(255,255,255,.86);box-shadow:0 32px 100px rgba(0,0,0,.20);backdrop-filter:none;-webkit-backdrop-filter:none;transform:translateY(18px) scale(.985);opacity:0;pointer-events:none}
.smp-drawer.is-open{transform:none;opacity:1;pointer-events:auto}
.smp-drawer-head{position:sticky;top:0;z-index:3;padding:18px max(22px,calc((100% - 1160px)/2));background:rgba(255,255,255,.72);border-bottom:1px solid rgba(60,60,67,.10);backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-drawer-head h2{font-size:28px;font-weight:720}
.smp-drawer-body{padding:22px max(22px,calc((100% - 1160px)/2)) 46px;background:transparent}
.smp-drawer .smp-subcard{background:rgba(255,255,255,.94);border-color:rgba(60,60,67,.10);border-radius:20px;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.035)}
.smp-drawer .smp-detail-tile{background:rgba(255,255,255,.90);border-radius:16px;padding:14px}

.smp-expedient-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 22px 18px;margin-bottom:14px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(242,248,255,.92));border:1px solid rgba(255,255,255,.95);box-shadow:0 10px 30px rgba(0,0,0,.045)}
.smp-expedient-hero h3{font-size:32px;letter-spacing:-.04em;margin:6px 0 4px}.smp-expedient-hero p{margin:0;color:var(--smp-muted);font-size:12px}.smp-expedient-status{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.smp-expedient-status strong{font-size:12px;color:var(--smp-text-2)}
.smp-history-card{padding:20px!important}.smp-history-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.smp-history-tools>span{font-size:11px;color:var(--smp-muted)}
.smp-timeline-row{grid-template-columns:32px minmax(0,1fr);gap:12px}.smp-timeline-dot{width:10px;height:10px;margin-top:8px}.smp-timeline-line:after{top:18px;bottom:-18px}.smp-timeline-content{padding:2px 0 20px}.smp-timeline-content strong{font-size:14px}.smp-timeline-content span{font-size:11px;line-height:1.45}.smp-history-actions{display:flex;align-items:center;gap:7px}.smp-icon-text{appearance:none;border:0;background:transparent;color:var(--smp-blue);font-size:11px;font-weight:700;padding:4px;cursor:pointer}.smp-icon-text:hover{text-decoration:underline}.smp-verified-line{color:#248a3d!important;font-weight:650}

.smp-credential-rule{margin-bottom:16px}.smp-verification-box{display:grid;gap:12px;padding:17px;border-radius:18px;background:linear-gradient(180deg,#f6fbff,#f2f8ff);border:1px solid #cae5ff}.smp-verification-box h3{margin:4px 0;font-size:18px}.smp-verification-box p{margin:0;color:var(--smp-muted);font-size:11px;line-height:1.5}.smp-verification-box .smp-check{background:#fff;border:1px solid #dcecff;border-radius:13px;padding:11px}

.smp-assembly-list{display:grid;gap:9px}.smp-assembly-row{appearance:none;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;text-align:left;border:1px solid var(--smp-line-soft);background:#fff;border-radius:16px;padding:15px 17px;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.025)}.smp-assembly-row:hover{background:#fbfdff;border-color:#c8def5}.smp-assembly-row strong,.smp-assembly-row small,.smp-assembly-row span{display:block}.smp-assembly-row strong{font-size:14px;margin-top:4px}.smp-assembly-row small{color:var(--smp-muted);font-size:10px;margin-top:4px}.smp-assembly-row>div:nth-child(2){text-align:right}.smp-assembly-row>div:nth-child(2)>span{font-size:18px;font-weight:750}.smp-assembly-row>b{font-size:22px;color:var(--smp-muted-2)}
.smp-assembly-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#fff,#f3f8ff);border:1px solid rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(0,0,0,.04);margin-bottom:12px}.smp-assembly-hero h3{font-size:30px;letter-spacing:-.04em;margin:5px 0}.smp-assembly-hero p{margin:0;color:var(--smp-muted);font-size:11px}
.smp-rule-banner{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 15px;border-radius:16px;background:rgba(255,255,255,.74);border:1px solid rgba(60,60,67,.10);margin:12px 0}.smp-rule-banner strong{font-size:12px}.smp-rule-banner span{font-size:10px;color:var(--smp-muted);text-align:right}
.smp-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.smp-slot{min-height:170px;padding:17px;border-radius:20px;border:1px solid var(--smp-line-soft);background:rgba(255,255,255,.94);box-shadow:0 5px 18px rgba(0,0,0,.035)}.smp-slot.is-approved{border-color:#b8dfc2;background:linear-gradient(180deg,#fff,#f7fff8)}.smp-slot.is-override{border-color:#ffd2a8;background:linear-gradient(180deg,#fff,#fff9f2)}.smp-slot-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.smp-slot-role{font-size:12px;font-weight:800;letter-spacing:.02em}.smp-slot-person{display:block;font-size:18px;letter-spacing:-.025em;margin-bottom:4px}.smp-slot>span:not(.smp-pill){font-size:10px;color:var(--smp-muted)}.smp-slot>p{color:var(--smp-muted);font-size:11px;line-height:1.5;max-width:40ch}.smp-mini-warning{margin-top:9px;color:#a14200;background:#fff4e9;border-radius:10px;padding:8px 9px;font-size:10px}
.smp-live-button{appearance:none;width:100%;text-align:left}
.smp-validation-card{margin-top:14px;border-radius:22px;padding:18px;background:#fff;border:1px solid var(--smp-line-soft);box-shadow:0 8px 26px rgba(0,0,0,.04)}.smp-validation-card.is-blocked{border-color:#ffc7cc}.smp-validation-card.is-pass{border-color:#b8dfc2}.smp-validation-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}.smp-validation-head h3{font-size:24px;letter-spacing:-.035em;margin:5px 0}.smp-rule-error{border-radius:16px;padding:14px 15px;margin:9px 0;background:#fff0f1;border:1px solid #ffc6cc;color:#7d0010}.smp-rule-error strong{display:block;font-size:13px}.smp-rule-error p{font-size:11px;line-height:1.5;margin:5px 0}.smp-rule-error span{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#a00014}.smp-history-preview{margin:13px 0;border:1px solid var(--smp-line-soft);border-radius:14px;background:#fafafa;padding:10px 12px}.smp-history-preview summary{cursor:pointer;font-size:11px;font-weight:700}.smp-override-box{display:grid;gap:10px;margin:14px 0;padding:16px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa}.smp-override-box>strong{color:#9a3412}.smp-override-box>p{margin:0;color:#7c2d12;font-size:11px;line-height:1.5}.smp-override-box textarea{min-height:80px}

@media(max-width:920px){
  .smp-drawer{left:8px;right:8px;top:8px;bottom:80px;border-radius:24px}.smp-drawer-head,.smp-drawer-body{padding-left:18px;padding-right:18px}.smp-slot-grid{grid-template-columns:1fr}.smp-expedient-hero,.smp-assembly-hero,.smp-rule-banner{align-items:flex-start;flex-direction:column}.smp-expedient-status{align-items:flex-start}.smp-rule-banner span{text-align:left}.smp-assembly-row{grid-template-columns:1fr auto}.smp-assembly-row>b{display:none}
}
@media(max-width:680px){
  .smp-drawer{left:0;right:0;top:0;bottom:0;border-radius:0}.smp-drawer-head{padding:15px}.smp-drawer-body{padding:15px 15px 88px}.smp-expedient-hero{padding:18px}.smp-expedient-hero h3,.smp-assembly-hero h3{font-size:25px}.smp-validation-head{flex-direction:column}.smp-history-title{flex-direction:column}.smp-history-actions{width:100%;justify-content:space-between}
}

/* =========================================================
   v2.0 — Apple-inspired clarity + fast materials
   Material is reserved for navigation/chrome. Large content
   surfaces stay almost opaque to improve readability and GPU use.
   ========================================================= */
:root{
  --smp-bg:#f5f5f7;
  --smp-glass:rgba(255,255,255,.68);
  --smp-glass-strong:rgba(255,255,255,.82);
  --smp-card-solid:rgba(255,255,255,.92);
  --smp-separator:rgba(60,60,67,.12);
  --smp-blue:#007aff;
  --smp-blue-hover:#006edc;
  --smp-radius:18px;
  --smp-radius-lg:24px;
}

/* Avoid a blur on every card. It looks cleaner and is substantially lighter to render. */
.smp-material{backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-sidebar,.smp-toolbar,.smp-drawer-head{
  background:var(--smp-glass)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.smp-sidebar{box-shadow:0 10px 36px rgba(0,0,0,.055);border-color:rgba(255,255,255,.76)}
.smp-toolbar{box-shadow:0 8px 28px rgba(0,0,0,.045);border-color:rgba(255,255,255,.74)}
.smp-card,.smp-hero,.smp-stat{background:var(--smp-card-solid);border-color:rgba(60,60,67,.08);box-shadow:0 5px 20px rgba(0,0,0,.035)}
.smp-nav-item{min-height:44px;border-radius:13px}.smp-nav-item.is-active{background:rgba(0,122,255,.11);color:var(--smp-blue)}
.smp-primary{min-height:42px;background:var(--smp-blue);box-shadow:0 5px 16px rgba(0,122,255,.18)}
.smp-primary:hover{background:var(--smp-blue-hover)}
.smp-secondary{min-height:42px}
.smp-icon-button{width:42px;height:42px;border-radius:13px}
.smp-big-search input{height:56px;border-color:rgba(60,60,67,.16);box-shadow:0 2px 10px rgba(0,0,0,.02)}
.smp-live-item,.smp-person-row,.smp-assembly-row{content-visibility:auto;contain-intrinsic-size:72px}
.smp-card{content-visibility:auto;contain-intrinsic-size:240px}

/* Full-screen inspector: translucent window, solid readable content. */
.smp-drawer-backdrop{
  background:rgba(18,18,20,.10)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.smp-drawer{
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  border-radius:0!important;
  border:0!important;
  background:
    radial-gradient(circle at 92% 4%,rgba(0,122,255,.09),transparent 28%),
    radial-gradient(circle at 8% 90%,rgba(88,86,214,.055),transparent 27%),
    rgba(245,245,247,.86)!important;
  box-shadow:none!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  transform:translateY(12px) scale(.995)!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.smp-drawer.is-open{transform:none!important}
.smp-drawer-head{
  padding:16px max(22px,calc((100% - 1180px)/2))!important;
  border-bottom:1px solid rgba(60,60,67,.10)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.55);
}
.smp-drawer-head h2{font-size:26px!important;letter-spacing:-.035em}
.smp-drawer-body{
  padding:22px max(22px,calc((100% - 1180px)/2)) 64px!important;
  max-width:none!important;
  background:transparent!important;
}
.smp-drawer .smp-subcard{
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(60,60,67,.10)!important;
  border-radius:18px!important;
  box-shadow:0 4px 16px rgba(0,0,0,.028)!important;
}
.smp-expedient-hero{
  background:linear-gradient(135deg,rgba(255,255,255,.84),rgba(248,251,255,.78))!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.035)!important;
}
.smp-detail-tile{background:rgba(255,255,255,.86)!important;border-color:rgba(60,60,67,.09)!important}
.smp-current-service{background:linear-gradient(180deg,rgba(241,248,255,.95),rgba(247,251,255,.92))!important;box-shadow:none!important}
.smp-history-card{background:rgba(255,255,255,.90)!important}
.smp-timeline-content{content-visibility:auto;contain-intrinsic-size:90px}
.smp-timeline-row.is-current .smp-timeline-content{background:rgba(239,247,255,.86)!important}
.smp-history-title strong{font-size:15px!important;letter-spacing:-.012em}
.smp-history-tools .smp-primary{min-height:38px}
.smp-verified-line{color:#248a3d!important}
.smp-back-link{
  appearance:none;border:0;background:rgba(255,255,255,.72);color:var(--smp-blue);
  border:1px solid rgba(60,60,67,.09);border-radius:999px;padding:9px 13px;
  font-weight:700;font-size:12px;cursor:pointer;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.025)
}
.smp-back-link:hover{background:#fff}
.smp-verification-box{background:rgba(243,249,255,.90)!important}

/* Accessibility and input comfort. */
button,a,input,select,textarea{outline:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  box-shadow:0 0 0 4px rgba(0,122,255,.18)!important;border-color:rgba(0,122,255,.55)!important
}
.smp-form input,.smp-form select,.smp-form textarea{min-height:44px}
.smp-form textarea{min-height:96px}

@media(max-width:920px){
  .smp-drawer{inset:0!important;border-radius:0!important}
  .smp-drawer-body{padding-bottom:92px!important}
}
@media(max-width:680px){
  .smp-drawer-head{padding:14px 15px!important}.smp-drawer-body{padding:14px 15px 92px!important}
  .smp-expedient-hero{border-radius:20px!important}.smp-drawer .smp-subcard{border-radius:17px!important}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
@media(prefers-contrast:more){
  .smp-sidebar,.smp-toolbar,.smp-drawer-head,.smp-drawer .smp-subcard,.smp-card,.smp-hero,.smp-stat{background:#fff!important;border-color:#8e8e93!important}
  .smp-muted,.smp-eyebrow,.smp-toolbar-eyebrow{color:#4a4a4d!important}
}

/* Seguridad de accesos v2.1 */
.smp-alert.is-info{background:#eef6ff;color:#184f90;border:1px solid #c9e1ff}
.smp-password-block{display:grid;gap:11px;padding:13px;border:1px solid var(--smp-line-soft);background:linear-gradient(180deg,#fbfdff 0%,#f6faff 100%);border-radius:14px}
.smp-password-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.smp-secondary.smp-small{min-height:36px;padding:8px 11px;border-radius:10px;font-size:10px}
.smp-show-password{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:7px!important;font-size:10px!important;color:var(--smp-muted)!important;cursor:pointer}
.smp-show-password input{width:auto!important;min-height:auto!important;margin:0}
.smp-password-meter{position:relative;overflow:hidden;height:28px;border-radius:9px;background:#f1f3f5;border:1px solid var(--smp-line-soft)}
.smp-password-meter i{position:absolute;left:0;top:0;bottom:0;width:6%;background:#d92d20;transition:width .18s ease,background .18s ease}
.smp-password-meter span{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 9px;font-size:9px;font-weight:650;color:#555b66}
.smp-password-meter[data-score="2"] i{background:#f79009}.smp-password-meter[data-score="3"] i{background:#12b76a}.smp-password-meter[data-score="4"] i{background:#039855}
.smp-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.smp-user-actions button{white-space:nowrap}
@media(max-width:760px){.smp-user-row{grid-template-columns:1fr}.smp-user-actions{justify-content:flex-start}.smp-password-actions{align-items:flex-start;flex-direction:column}}

/* =========================================================
   v2.2 — Premium light workspace
   Reference: airy frosted dashboard, blue + mint + champagne.
   No pink/purple atmosphere. Heavy blur stays only in chrome.
   ========================================================= */
:root{
  --smp-blue:#0a7cff;
  --smp-blue-hover:#006be6;
  --smp-premium-mint:#19a974;
  --smp-premium-champagne:#c9973f;
  --smp-premium-ice:#dff3ff;
  --smp-premium-sand:#fff4dc;
  --smp-premium-slate:#34506f;
}
html,body,.smp-app{
  background:
    radial-gradient(circle at 2% 9%,rgba(82,176,245,.28),transparent 34%),
    radial-gradient(circle at 47% 4%,rgba(72,199,160,.14),transparent 27%),
    radial-gradient(circle at 94% 16%,rgba(207,164,76,.16),transparent 32%),
    linear-gradient(180deg,#f9fbff 0%,#f4f8fc 54%,#f7f8fb 100%)!important;
}
.smp-app:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.12),rgba(255,255,255,0) 42%);z-index:0}
.smp-sidebar,.smp-main{position:relative;z-index:1}

@media(min-width:921px){
  .smp-sidebar{
    position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:min(1500px,calc(100% - 32px))!important;height:auto!important;margin:16px auto 12px!important;
    padding:17px 20px 10px!important;border-radius:28px!important;
    display:grid!important;grid-template-columns:auto 1fr auto!important;grid-template-areas:"brand spacer footer" "nav nav nav"!important;
    row-gap:12px!important;background:rgba(255,255,255,.68)!important;border:1px solid rgba(255,255,255,.88)!important;
    box-shadow:0 14px 40px rgba(35,64,104,.08)!important;backdrop-filter:none;-webkit-backdrop-filter:none;
  }
  .smp-brand{grid-area:brand!important;border:0!important;margin:0!important;padding:0!important;min-width:250px!important}
  .smp-brand-mark{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:14px!important;background:linear-gradient(180deg,#2793ff,#0877eb)!important;box-shadow:0 8px 20px rgba(10,124,255,.22)!important}
  .smp-brand strong{font-size:15px!important;color:#17335d!important}.smp-brand span{font-size:11px!important;color:#66809f!important}
  .smp-nav{grid-area:nav!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:10px 0 0!important;border-top:1px solid rgba(52,80,111,.10)!important}
  .smp-nav-item{width:auto!important;min-height:42px!important;padding:9px 13px!important;border-radius:13px!important;font-size:12px!important;flex-direction:row!important;justify-content:flex-start!important;gap:8px!important}
  .smp-nav-item.is-active{background:linear-gradient(180deg,#1889ff,#0a74e8)!important;color:#fff!important;box-shadow:0 7px 18px rgba(10,124,255,.20)!important}
  .smp-nav-item.is-active svg{color:#fff!important}
  .smp-sidebar-footer{grid-area:footer!important;margin:0!important;padding:0!important;border:0!important;min-width:260px!important;justify-self:end!important;background:rgba(255,255,255,.52)!important;border-radius:16px!important;padding:7px 10px!important}
  .smp-user-avatar{background:linear-gradient(180deg,#5a82ff,#315ee8)!important;color:#fff!important}.smp-user-copy strong{font-size:11px!important;color:#1b355a!important}.smp-user-copy span{color:#71839b!important}
  .smp-main{margin-left:0!important;max-width:1500px!important;margin-right:auto!important;margin-left:auto!important;padding:0 16px 54px!important}
  .smp-toolbar{position:relative!important;top:auto!important;margin:0 0 12px!important;min-height:64px!important;border-radius:22px!important;background:rgba(255,255,255,.66)!important;border:1px solid rgba(255,255,255,.86)!important;box-shadow:0 9px 30px rgba(35,64,104,.055)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}
}

.smp-card,.smp-hero,.smp-stat{background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 8px 26px rgba(35,64,104,.055)!important}
.smp-hero{background:linear-gradient(135deg,rgba(255,255,255,.90),rgba(245,251,255,.78))!important}
.smp-toolbar h1,.smp-card h2,.smp-card h3,.smp-hero h2{color:#172b4d!important}
.smp-muted,.smp-card>p,.smp-hero p{color:#687b94!important}
.smp-eyebrow,.smp-toolbar-eyebrow{color:#6f7f94!important}

.smp-stat{position:relative;overflow:hidden}
.smp-stat:after{content:"";position:absolute;width:115px;height:115px;border-radius:50%;right:-34px;top:-46px;filter:blur(2px);opacity:.55;pointer-events:none}
.smp-stat:nth-child(1){background:linear-gradient(135deg,rgba(237,248,255,.96),rgba(255,255,255,.84))!important}.smp-stat:nth-child(1):after{background:rgba(70,163,244,.26)}
.smp-stat:nth-child(2){background:linear-gradient(135deg,rgba(235,252,246,.96),rgba(255,255,255,.84))!important}.smp-stat:nth-child(2):after{background:rgba(61,198,151,.24)}
.smp-stat:nth-child(3){background:linear-gradient(135deg,rgba(255,248,231,.96),rgba(255,255,255,.84))!important}.smp-stat:nth-child(3):after{background:rgba(216,165,68,.25)}
.smp-stat:nth-child(4){background:linear-gradient(135deg,rgba(237,245,255,.96),rgba(255,255,255,.84))!important}.smp-stat:nth-child(4):after{background:rgba(78,124,209,.22)}
.smp-stat:nth-child(5){background:linear-gradient(135deg,rgba(239,250,250,.96),rgba(255,255,255,.84))!important}.smp-stat:nth-child(5):after{background:rgba(70,166,173,.20)}
.smp-stat span,.smp-stat strong,.smp-stat small{position:relative;z-index:1}

.smp-primary{background:linear-gradient(180deg,#168bff,#0875e8)!important;box-shadow:0 7px 18px rgba(10,124,255,.20)!important}.smp-primary:hover{background:linear-gradient(180deg,#0d82f8,#006bd8)!important}
.smp-secondary,.smp-icon-button{background:rgba(255,255,255,.78)!important;border-color:rgba(73,98,126,.14)!important}
.smp-pill.is-purple{background:#eef3ff!important;color:#3f5db7!important}.smp-upcoming-service{background:linear-gradient(180deg,#f7faff 0%,#eff5ff 100%)!important;border-color:#d5e1f6!important}.smp-upcoming-service .smp-current-service-row>strong{color:#3f5db7!important;border-color:#dce5f7!important}

/* Shareable access block */
.smp-access-share-card{margin-bottom:14px!important;display:grid!important;grid-template-columns:minmax(280px,.85fr) minmax(520px,1.4fr)!important;gap:22px!important;align-items:center!important;background:linear-gradient(135deg,rgba(239,248,255,.92),rgba(247,252,250,.88),rgba(255,248,233,.80))!important}
.smp-access-share-copy h2{margin:5px 0 7px!important}.smp-access-share-copy p{margin:0!important}
.smp-access-link-row{display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto;gap:8px;align-items:center}.smp-access-link-row input{height:44px;border:1px solid rgba(73,98,126,.16);border-radius:13px;background:rgba(255,255,255,.80);padding:0 13px;color:#254465;font-size:12px;outline:none;min-width:0}.smp-access-link-row input:focus{border-color:#8ec7ff;box-shadow:0 0 0 4px rgba(10,124,255,.09)}
.smp-access-tip{grid-column:1/-1;margin-top:-5px;font-size:10px;color:#7a6950;background:rgba(255,248,233,.72);border:1px solid rgba(201,151,63,.20);border-radius:11px;padding:9px 11px}
.smp-user-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.smp-user-actions button{padding:6px 8px;border-radius:8px!important}.smp-user-actions button:hover{background:rgba(10,124,255,.07)!important}
.smp-share-success{margin-top:14px;padding:16px;border-radius:17px;background:linear-gradient(135deg,#eff9ff,#f3fbf7);border:1px solid #cfe8f7;box-shadow:0 7px 20px rgba(35,64,104,.045)}.smp-share-success h3{margin:4px 0 5px;font-size:18px}.smp-share-success p{margin:0;color:#637991;font-size:11px}.smp-share-success>small{display:block;margin-top:10px;color:#748399;font-size:9px;line-height:1.5}.smp-credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.smp-credential-grid>div{background:rgba(255,255,255,.78);border:1px solid rgba(73,98,126,.10);border-radius:12px;padding:10px}.smp-credential-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#7889a0}.smp-credential-grid strong{display:block;margin-top:3px;font-size:11px;color:#234261;word-break:break-word}.smp-share-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

/* Login follows the same shareable theme */
.smp-login-screen{background:
  radial-gradient(circle at 4% 8%,rgba(82,176,245,.30),transparent 36%),
  radial-gradient(circle at 48% 2%,rgba(72,199,160,.13),transparent 29%),
  radial-gradient(circle at 96% 18%,rgba(207,164,76,.17),transparent 34%),
  linear-gradient(180deg,#f9fbff,#f3f7fb 68%,#f8f8fb)!important}
.smp-login-orb{display:none!important}.smp-login-card{background:rgba(255,255,255,.76)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 22px 70px rgba(35,64,104,.12)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}.smp-login-card h1{color:#17335d!important}.smp-login-card>p{color:#6b7e96!important}

@media(max-width:1180px) and (min-width:921px){
  .smp-sidebar{width:calc(100% - 24px)!important;margin:12px auto 10px!important}.smp-main{padding-left:12px!important;padding-right:12px!important}.smp-nav-item{padding:9px 10px!important;font-size:11px!important}.smp-sidebar-footer{min-width:220px!important}.smp-access-share-card{grid-template-columns:1fr!important}.smp-access-link-row{grid-template-columns:minmax(220px,1fr) auto auto!important}.smp-access-link-row .smp-secondary:first-of-type{display:none}
}
@media(max-width:920px){
  .smp-access-share-card{grid-template-columns:1fr!important}.smp-access-link-row{grid-template-columns:1fr 1fr!important}.smp-access-link-row input{grid-column:1/-1}.smp-access-tip{grid-column:1/-1}.smp-credential-grid{grid-template-columns:1fr!important}
}
@media(max-width:560px){
  .smp-access-link-row{grid-template-columns:1fr!important}.smp-access-link-row input{grid-column:auto}.smp-access-tip{grid-column:auto}.smp-share-actions>*{width:100%}
}

/* v2.3 — filtros avanzados y archivo histórico delicado */
.smp-filter-toggle.is-active{background:#eef6ff;border-color:#b9d9ff;color:#075bb5}
.smp-filter-presets{display:flex;gap:8px;flex-wrap:wrap;margin:-3px 0 12px}
.smp-filter-presets button{appearance:none;border:1px solid var(--smp-line);background:rgba(255,255,255,.82);color:var(--smp-text);border-radius:999px;padding:8px 12px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(30,64,175,.04)}
.smp-filter-presets button:hover,.smp-filter-presets button.is-active{background:#eef6ff;border-color:#a7cffb;color:#075bb5}
.smp-advanced-filters{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr)) auto;gap:12px;align-items:end;padding:15px;margin:0 0 12px;border:1px solid rgba(137,170,215,.30);border-radius:17px;background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(235,246,255,.66));box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.smp-advanced-filters[hidden]{display:none!important}
.smp-advanced-filters label{display:grid;gap:6px;font-size:11px;font-weight:750;color:var(--smp-text)}
.smp-advanced-filters select{width:100%;min-height:42px;border:1px solid var(--smp-line);background:#fff;color:var(--smp-text);border-radius:12px;padding:0 34px 0 11px;outline:none}
.smp-advanced-filters small{display:block;margin-top:6px;color:var(--smp-muted);font-size:10px;line-height:1.4}
.smp-filter-actions{display:flex;align-items:flex-end;height:100%}
.smp-filter-summary{margin:2px 0 12px;color:var(--smp-muted);font-size:11px;line-height:1.45}
.smp-filter-summary strong{color:var(--smp-text);font-size:13px}
.smp-filter-summary span{color:#344054}
.smp-filter-summary em{font-style:normal;color:#7b8798;margin-left:4px}
.smp-years-line{color:#346a9d!important;font-weight:650}
.smp-person-row.is-deceased{background:#faf9fa;opacity:.88;border-style:dashed}
.smp-deceased-banner{display:grid;gap:4px;margin:0 0 14px}
.smp-deceased-banner span,.smp-deceased-banner small{display:block}
.smp-danger-soft,.smp-danger-button{appearance:none;border-radius:12px;font:inherit;font-weight:750;cursor:pointer}
.smp-danger-soft{border:1px solid #ffd0d4;background:#fff6f7;color:#a11225;padding:10px 13px}
.smp-danger-button{border:0;background:#b42318;color:#fff;padding:12px 15px;box-shadow:0 8px 18px rgba(180,35,24,.16)}
.smp-danger-soft:hover{background:#fff0f2}.smp-danger-button:hover{background:#9f1f16}

@media(max-width:980px){.smp-advanced-filters{grid-template-columns:1fr 1fr}.smp-filter-actions{height:auto}}
@media(max-width:620px){.smp-advanced-filters{grid-template-columns:1fr}.smp-filter-presets{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.smp-filter-presets button{white-space:nowrap}.smp-filter-summary em{display:block;margin:4px 0 0}}

/* =========================================================
   v2.4 — tiempo de descanso, fundamento normativo y móvil
   ========================================================= */
.smp-timing-line{display:block!important;margin-top:4px!important;color:#2f6f9e!important;font-weight:650!important;font-size:10px!important;line-height:1.45!important}
.smp-timing-card{background:linear-gradient(135deg,rgba(239,248,255,.95),rgba(249,252,255,.94))!important;border-color:#d6e9fb!important}
.smp-timing-main{margin:8px 0 0;font-size:13px;line-height:1.55;color:#24415f;font-weight:650}
.smp-precision-note{margin:8px 0 0;padding:9px 11px;border-radius:12px;background:#fff8e8;border:1px solid #f5dfae;color:#6f5a2c;font-size:10px;line-height:1.5}
.smp-rule-inline{margin-top:10px;padding-top:10px;border-top:1px solid rgba(47,111,158,.12);font-size:10px;color:#61758b}.smp-rule-inline b{color:#31516e}
.smp-compliance-card{background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(247,250,252,.95))!important}
.smp-compliance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.smp-compliance-grid>div{padding:12px;border:1px solid rgba(73,98,126,.10);border-radius:14px;background:rgba(255,255,255,.85)}
.smp-compliance-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#7b899a}.smp-compliance-grid strong{display:block;margin-top:4px;font-size:22px;color:#203b58}
.smp-normative-card{background:linear-gradient(135deg,rgba(252,253,255,.96),rgba(245,249,252,.94))!important}
.smp-rule-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.smp-rule-source{padding:13px 14px;border:1px solid rgba(73,98,126,.10);border-radius:15px;background:rgba(255,255,255,.86)}
.smp-rule-source>div{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.smp-rule-source>div span{font-size:9px;color:#78879a;text-transform:uppercase;letter-spacing:.045em}.smp-rule-source>div strong{font-size:10px;color:#2e5d89;white-space:nowrap}.smp-rule-source p{margin:8px 0 0;font-size:11px;line-height:1.5;color:#4f657a}
.smp-hide-keyboard{display:none;position:fixed;z-index:100001;appearance:none;border:1px solid rgba(73,98,126,.18);background:rgba(255,255,255,.92);color:#194b78;border-radius:999px;padding:9px 13px;font:inherit;font-size:12px;font-weight:750;box-shadow:0 10px 30px rgba(30,64,175,.16);backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-hide-keyboard.is-visible{display:block}

@media(max-width:920px){
  html,body{overflow-x:hidden!important;-webkit-text-size-adjust:100%}
  .smp-main{width:100%!important;max-width:100%!important;padding-left:10px!important;padding-right:10px!important}
  .smp-toolbar{position:relative!important;top:auto!important;border-radius:18px!important;min-height:58px!important;padding:10px 11px!important}
  .smp-toolbar h1{font-size:20px!important;line-height:1.08!important}.smp-toolbar-actions{gap:6px!important}.smp-toolbar-actions .smp-primary{min-height:40px!important;padding:9px 11px!important}
  .smp-hero{padding:18px 14px!important;border-radius:20px!important}.smp-hero h2{font-size:29px!important;line-height:1.03!important}.smp-hero p{font-size:12px!important;line-height:1.5!important}
  .smp-big-search input,.smp-form input,.smp-form select,.smp-form textarea,.smp-filterbar input,.smp-filterbar select,.smp-advanced-filters select,.smp-access-link-row input,.smp-sheet-input{font-size:16px!important}
  .smp-big-search input{height:54px!important;padding-left:42px!important}
  .smp-card,.smp-stat{border-radius:18px!important}.smp-card{padding:15px!important}
  .smp-person-row{padding:13px!important;gap:8px!important}.smp-person-row>div:first-child{min-width:0}.smp-person-row strong{font-size:14px!important}.smp-person-row small{line-height:1.45!important;white-space:normal!important}
  .smp-timing-line{font-size:11px!important}
  .smp-compliance-grid,.smp-rule-source-grid{grid-template-columns:1fr 1fr}
  .smp-drawer-head{position:sticky!important;top:0!important;z-index:4!important}.smp-drawer-body{overflow-x:hidden!important}
  .smp-table-wrap{-webkit-overflow-scrolling:touch}
  input,textarea,select{scroll-margin-top:90px;scroll-margin-bottom:110px}
}
@media(max-width:620px){
  .smp-main{padding:8px 8px 92px!important}
  .smp-sidebar{left:6px!important;right:6px!important;bottom:6px!important;height:64px!important;border-radius:18px!important;padding:5px 6px!important}
  .smp-nav-item{font-size:8px!important;min-height:52px!important}.smp-nav-item svg{width:17px!important;height:17px!important}
  .smp-toolbar-actions .smp-primary{max-width:132px!important}
  .smp-stat-grid{grid-template-columns:1fr 1fr!important}.smp-stat{min-width:0!important}.smp-stat strong{font-size:22px!important}
  .smp-filterbar{display:grid!important;grid-template-columns:1fr!important}.smp-filterbar>*{width:100%!important;min-width:0!important}
  .smp-filter-presets{margin-left:-2px;margin-right:-2px;padding:2px 2px 7px!important;scrollbar-width:none}.smp-filter-presets::-webkit-scrollbar{display:none}
  .smp-detail-summary{grid-template-columns:1fr!important}.smp-expedient-hero{gap:12px!important}.smp-expedient-status{width:100%!important}.smp-expedient-status strong{white-space:normal!important;text-align:left!important}
  .smp-compliance-grid,.smp-rule-source-grid{grid-template-columns:1fr!important}
  .smp-current-service-row>strong{white-space:normal!important}
  .smp-history-tools{width:100%!important}.smp-history-tools .smp-primary{width:100%!important}
  .smp-inline-actions{display:grid!important;grid-template-columns:1fr!important}.smp-inline-actions>*{width:100%!important}
  .smp-login-screen{padding:12px!important}.smp-login-card{padding:22px 17px!important;border-radius:22px!important}.smp-login-card h1{font-size:30px!important}
}
@media(max-width:430px){
  .smp-stat-grid{grid-template-columns:1fr!important}
  .smp-expedient-hero h3{font-size:23px!important}
  .smp-rule-source>div{flex-direction:column;gap:3px}.smp-rule-source>div strong{white-space:normal}
}

/* v2.5 · Selección guiada para mesas de nombramiento */
.smp-candidate-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:22px 24px;border:1px solid var(--smp-line);border-radius:24px;background:rgba(255,255,255,.78);box-shadow:0 10px 30px rgba(15,23,42,.05)}
.smp-candidate-head h3{margin:4px 0 8px;font-size:28px;letter-spacing:-.035em}.smp-candidate-head p{margin:0;color:var(--smp-muted);line-height:1.55;max-width:70ch}
.smp-hierarchy-path{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.smp-hierarchy-path span{padding:8px 11px;border-radius:999px;background:#f2f4f7;border:1px solid #e4e7ec;color:#475467;font-size:12px;font-weight:800}.smp-hierarchy-path span.is-target{background:#eaf3ff;border-color:#b8d8ff;color:#0b63ce;box-shadow:0 0 0 3px rgba(10,132,255,.08)}.smp-hierarchy-path b{color:#98a2b3;font-size:14px}
.smp-candidate-segments{display:flex;gap:7px;padding:6px;margin:16px 0 12px;border:1px solid var(--smp-line);border-radius:18px;background:rgba(247,248,250,.92);overflow:auto}.smp-candidate-segments button{appearance:none;border:0;background:transparent;color:#475467;font:inherit;font-weight:750;padding:10px 14px;border-radius:13px;white-space:nowrap;cursor:pointer}.smp-candidate-segments button.is-active{background:#fff;color:#101828;box-shadow:0 4px 14px rgba(15,23,42,.08)}
.smp-material-soft{background:rgba(255,255,255,.66);border:1px solid var(--smp-line);box-shadow:0 8px 24px rgba(15,23,42,.04)}
.smp-candidate-filters{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(190px,.7fr) minmax(170px,.6fr);gap:12px;padding:16px;border-radius:20px}.smp-candidate-filters label{display:grid;gap:7px;font-size:12px;font-weight:750;color:#475467}.smp-candidate-filters select{width:100%;min-height:46px;border:1px solid #d0d5dd;border-radius:14px;background:#fff;padding:0 12px;color:#101828;font:inherit}.smp-candidate-filters .smp-search-control{margin:0}
.smp-candidate-explain{margin:12px 0}.smp-compact-rule{padding:12px 14px}.smp-compact-rule strong{font-size:13px}.smp-compact-rule span{font-size:12px}
.smp-candidate-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 2px 10px;color:#475467}.smp-candidate-results-head strong{color:#101828}.smp-candidate-results-head span{font-size:12px}
.smp-candidate-list{display:grid;gap:10px}.smp-candidate-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:15px 16px;border-radius:19px;background:#fff;border:1px solid #e4e7ec;box-shadow:0 6px 18px rgba(15,23,42,.035)}.smp-candidate-card:hover{border-color:#c8d8ee;box-shadow:0 9px 24px rgba(15,23,42,.06)}.smp-candidate-main{min-width:0}.smp-candidate-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.smp-candidate-title strong{font-size:16px;color:#101828}.smp-candidate-main>span{display:block;color:#667085;font-size:12px;margin-top:3px}.smp-candidate-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:9px}.smp-candidate-meta span{font-size:12px;color:#475467}.smp-progression-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;margin:14px 0;padding:14px 16px;border-radius:18px;background:#f8fbff;border:1px solid #d7e8ff}.smp-progression-summary strong{display:block;margin-top:3px}.smp-progression-summary p{grid-column:1/-1;margin:0;color:#667085;font-size:13px}

@media(max-width:900px){.smp-candidate-head{grid-template-columns:1fr}.smp-hierarchy-path{justify-content:flex-start}.smp-candidate-filters{grid-template-columns:1fr 1fr}.smp-candidate-search{grid-column:1/-1}}
@media(max-width:620px){.smp-candidate-head{padding:18px}.smp-candidate-head h3{font-size:24px}.smp-hierarchy-path{gap:5px}.smp-hierarchy-path span{padding:7px 9px;font-size:11px}.smp-candidate-segments{margin-left:-2px;margin-right:-2px}.smp-candidate-filters{grid-template-columns:1fr;padding:12px}.smp-candidate-search{grid-column:auto}.smp-candidate-results-head{align-items:flex-start;flex-direction:column}.smp-candidate-card{grid-template-columns:1fr}.smp-candidate-card .smp-primary{width:100%;justify-content:center}.smp-candidate-meta{display:grid;gap:4px}.smp-progression-summary{grid-template-columns:1fr}.smp-progression-summary .smp-pill{justify-self:start}.smp-progression-summary p{grid-column:auto}}

/* v2.6 · candidatos con expediente visible en la misma pantalla */
.smp-candidate-card-expanded{display:block;padding:0;overflow:hidden;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(15,23,42,.055)}
.smp-candidate-card-expanded:hover{border-color:#c7d7ec;box-shadow:0 16px 36px rgba(15,23,42,.075)}
.smp-candidate-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e8edf3;background:linear-gradient(180deg,rgba(251,253,255,.98),rgba(247,250,253,.92))}
.smp-candidate-identity{min-width:0}.smp-candidate-identity>span{display:block;margin-top:4px;color:#667085;font-size:12px}.smp-candidate-title strong{font-size:19px;letter-spacing:-.025em}
.smp-candidate-status-block{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.smp-status-big{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:850;letter-spacing:.055em}.smp-status-big.is-green{background:#eaf8ef;color:#137a3e}.smp-status-big.is-blue{background:#e9f3ff;color:#075ecb}.smp-status-big.is-orange{background:#fff4e5;color:#a15c00}.smp-status-big.is-purple{background:#f2edff;color:#6941c6}.smp-status-big.is-gray{background:#f2f4f7;color:#475467}
.smp-candidate-priority{display:grid;grid-template-columns:1fr 1fr;gap:0;border-bottom:1px solid #e8edf3}.smp-candidate-priority>div{padding:15px 20px}.smp-candidate-priority>div+div{border-left:1px solid #e8edf3}.smp-candidate-priority span,.smp-candidate-section-title span{display:block;color:#667085;font-size:10px;font-weight:850;letter-spacing:.11em}.smp-candidate-priority strong{display:block;margin-top:5px;color:#101828;font-size:14px}.smp-candidate-priority small{display:block;margin-top:5px;color:#667085;line-height:1.45}
.smp-candidate-inline-section{padding:16px 20px;border-bottom:1px solid #e8edf3}.smp-candidate-inline-section:last-child{border-bottom:0}.smp-candidate-section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:10px}.smp-candidate-section-title strong{display:block;margin-top:3px;font-size:13px;color:#101828}.smp-candidate-section-title>small{max-width:45%;text-align:right;color:#98a2b3;font-size:11px;line-height:1.35}
.smp-candidate-history-list{display:grid;gap:7px}.smp-candidate-history-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 11px;border-radius:13px;background:#f8fafc;border:1px solid #edf1f5}.smp-candidate-history-row.is-latest{background:#f3f8ff;border-color:#d9e9ff}.smp-candidate-history-row>div{min-width:0}.smp-candidate-history-row strong{display:block;color:#101828;font-size:12px}.smp-candidate-history-row span:not(.smp-pill){display:block;margin-top:2px;color:#667085;font-size:11px}.smp-candidate-history-list>small{color:#98a2b3;font-size:10px}
.smp-candidate-requirements{display:grid;grid-template-columns:1fr 1fr;gap:8px}.smp-requirement-row{display:grid;grid-template-columns:26px 1fr;gap:9px;padding:10px 11px;border:1px solid #e4e7ec;border-radius:14px;background:#fbfcfd}.smp-requirement-row i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;font-weight:900;font-size:12px}.smp-requirement-row strong{display:block;color:#101828;font-size:12px}.smp-requirement-row span{display:block;margin-top:3px;color:#667085;font-size:11px;line-height:1.4}.smp-requirement-row small{display:block;margin-top:4px;color:#98a2b3;font-size:10px;line-height:1.35}.smp-requirement-row.is-pass i{background:#eaf8ef;color:#137a3e}.smp-requirement-row.is-fail{border-color:#fecaca;background:#fff8f8}.smp-requirement-row.is-fail i{background:#fee4e2;color:#b42318}.smp-requirement-row.is-review{border-color:#fedf89;background:#fffbeb}.smp-requirement-row.is-review i{background:#fef0c7;color:#b54708}
@media(max-width:760px){.smp-candidate-card-head{flex-direction:column}.smp-candidate-status-block{width:100%;justify-content:space-between}.smp-candidate-status-block .smp-primary{width:auto}.smp-candidate-priority{grid-template-columns:1fr}.smp-candidate-priority>div+div{border-left:0;border-top:1px solid #e8edf3}.smp-candidate-section-title{align-items:flex-start;flex-direction:column}.smp-candidate-section-title>small{max-width:none;text-align:left}.smp-candidate-requirements{grid-template-columns:1fr}.smp-candidate-history-row{align-items:flex-start}.smp-candidate-card-expanded{border-radius:20px}}
@media(max-width:460px){.smp-candidate-card-head,.smp-candidate-inline-section,.smp-candidate-priority>div{padding-left:14px;padding-right:14px}.smp-candidate-status-block{align-items:stretch;flex-direction:column}.smp-candidate-status-block .smp-primary{width:100%}.smp-candidate-history-row{flex-direction:column}.smp-candidate-history-row .smp-pill{align-self:flex-start}}

/* v2.7 · ciclo de vida de Asamblea, borradores, activación y sustituciones */
.smp-assembly-lifecycle{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:12px 0;padding:15px 17px;border-radius:18px;border:1px solid #d7e8ff;background:linear-gradient(135deg,#f7fbff,#eef6ff)}
.smp-assembly-lifecycle.is-active{border-color:#b7e4c7;background:linear-gradient(135deg,#f7fff9,#ecfbf1)}
.smp-assembly-lifecycle strong{display:block;color:#102a43;font-size:13px}.smp-assembly-lifecycle span:not(.smp-pill){display:block;margin-top:5px;color:#5e7184;font-size:11px;line-height:1.55;max-width:80ch}
.smp-assembly-adminbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:11px 12px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid var(--smp-line-soft)}
.smp-danger-soft,.smp-danger-solid{appearance:none;border:0;border-radius:14px;font:inherit;font-weight:800;cursor:pointer;transition:.18s ease}
.smp-danger-soft{padding:10px 13px;background:#fff1f0;color:#b42318;border:1px solid #fecdca}
.smp-danger-soft:hover{background:#fee4e2}.smp-danger-solid{padding:13px 16px;background:#b42318;color:#fff;box-shadow:0 8px 18px rgba(180,35,24,.18)}
.smp-slot.is-live{border-color:#c6ead2;background:linear-gradient(180deg,#ffffff,#f8fff9)}
.smp-assembly-list-status{display:flex;align-items:center;gap:10px}.smp-assembly-list-status b{font-size:22px;color:var(--smp-muted-2)}
@media(max-width:620px){.smp-assembly-lifecycle,.smp-assembly-adminbar{flex-direction:column;align-items:stretch}.smp-assembly-adminbar>*{width:100%}.smp-assembly-list-status{grid-column:1/-1;justify-content:space-between}.smp-assembly-row{grid-template-columns:1fr auto}.smp-danger-soft,.smp-danger-solid{width:100%}}

/* v2.8 · Catálogo comunitario de solo lectura */
.smp-service-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.smp-service-stat{padding:18px;border:1px solid rgba(15,23,42,.08);border-radius:20px;background:rgba(255,255,255,.68);box-shadow:0 8px 30px rgba(41,56,78,.04)}
.smp-service-stat span{display:block;font-size:12px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.smp-service-stat strong{display:block;font-size:30px;line-height:1.05;margin:8px 0 5px;color:#172b4d}
.smp-service-stat small{display:block;color:#7b8494;line-height:1.35}
.smp-service-stat.is-current{background:linear-gradient(145deg,rgba(232,250,244,.95),rgba(255,255,255,.88));border-color:rgba(25,135,84,.14)}
.smp-service-stat.is-review{background:linear-gradient(145deg,rgba(255,249,235,.95),rgba(255,255,255,.88));border-color:rgba(245,158,11,.18)}
.smp-service-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) 230px 250px;gap:10px;align-items:center;margin:18px 0}
.smp-service-toolbar select{min-height:46px;border:1px solid rgba(15,23,42,.12);border-radius:14px;background:rgba(255,255,255,.86);padding:0 12px;color:#23314d;font:inherit}
.smp-services-current{margin:18px 0 22px;padding:20px;border:1px solid rgba(33,91,156,.1);border-radius:22px;background:linear-gradient(135deg,rgba(242,249,255,.86),rgba(247,252,249,.82));}
.smp-official-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px}
.smp-official-item{padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid rgba(15,23,42,.07)}
.smp-official-item strong{display:block;color:#162a4d;font-size:14px}
.smp-official-item span{display:block;color:#7a8597;font-size:12px;margin-top:4px}
.smp-statute-categories{margin-top:14px;border-top:1px solid rgba(15,23,42,.07);padding-top:13px}
.smp-statute-categories summary{cursor:pointer;font-weight:800;color:#284d7e}
.smp-statute-categories>div{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 8px}
.smp-statute-categories>div span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.74);border:1px solid rgba(15,23,42,.07);font-size:12px;color:#48566b}
.smp-statute-categories small{color:#7b8494}
.smp-service-group{margin-top:22px}
.smp-service-group-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 2px 10px}
.smp-service-group-head h3{margin:0;color:#172b4d;font-size:19px;letter-spacing:-.02em}
.smp-service-group-head span{font-size:12px;color:#7b8494}
.smp-service-table{overflow:hidden;border:1px solid rgba(15,23,42,.08);border-radius:19px;background:rgba(255,255,255,.72)}
.smp-service-row{display:grid;grid-template-columns:minmax(280px,1.7fr) 120px 120px 90px 170px;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(15,23,42,.06)}
.smp-service-row:last-child{border-bottom:0}
.smp-service-row>div:first-child strong{display:block;font-size:14px;color:#1a2a44}
.smp-service-row>div:first-child span{display:block;font-size:12px;color:#7a8494;margin-top:3px}
.smp-service-row>div:not(:first-child):not(:last-child) span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.045em;color:#98a2b3;font-weight:800}
.smp-service-row>div:not(:first-child):not(:last-child) strong{display:block;font-size:13px;color:#344054;margin-top:3px}
.smp-service-row>div:last-child{text-align:right}
.smp-service-footnote{margin-top:18px;padding:16px 18px;border-radius:17px;background:#f7f9fc;border:1px solid rgba(15,23,42,.06);color:#667085}
.smp-service-footnote strong{display:block;color:#344054}
.smp-service-footnote p{margin:6px 0;line-height:1.5}
.smp-service-footnote span{font-size:11px}
@media(max-width:1050px){
  .smp-service-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smp-service-toolbar{grid-template-columns:1fr 1fr}.smp-service-toolbar .smp-wide-search{grid-column:1/-1}
  .smp-official-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smp-service-row{grid-template-columns:minmax(220px,1.5fr) 100px 100px 80px 145px}
}
@media(max-width:720px){
  .smp-service-summary{grid-template-columns:1fr 1fr;gap:8px}.smp-service-stat{padding:14px}.smp-service-stat strong{font-size:25px}
  .smp-service-toolbar{grid-template-columns:1fr}.smp-service-toolbar .smp-wide-search{grid-column:auto}
  .smp-official-grid{grid-template-columns:1fr}
  .smp-service-row{grid-template-columns:1fr 1fr;gap:9px;padding:13px}
  .smp-service-row>div:first-child{grid-column:1/-1}.smp-service-row>div:last-child{grid-column:1/-1;text-align:left}
}

/* v2.9 · escalafón automático por familia */
#smp-candidate-more-wrap{display:flex;justify-content:center;padding:14px 0 4px}.smp-load-more{min-width:190px;justify-content:center}.smp-candidate-priority small{display:block;margin-top:5px;color:#667085}.smp-candidate-priority small+small{margin-top:3px;color:#475467;font-weight:650}

/* v2.9.1 · Candidatos: más información útil, menos repetición */
.smp-candidate-head-simple{padding:20px 22px}.smp-candidate-head-simple h3{font-size:26px}.smp-candidate-head-simple p{max-width:58ch}
.smp-hierarchy-path .is-prev{background:#eef4ff;color:#344054;border-color:#dbe8ff}.smp-hierarchy-path .is-target{background:#eaf3ff;color:#075ecb;border-color:#b9d8ff;box-shadow:0 0 0 3px rgba(10,132,255,.06)}
.smp-candidate-card-concise .smp-candidate-card-head{padding:16px 18px}
.smp-candidate-keyfacts{display:grid;grid-template-columns:1.25fr .9fr .9fr;border-bottom:1px solid #e8edf3;background:#fff}
.smp-candidate-keyfacts>div{padding:14px 18px;min-width:0}.smp-candidate-keyfacts>div+div{border-left:1px solid #e8edf3}
.smp-candidate-keyfacts span{display:block;color:#667085;font-size:10px;font-weight:850;letter-spacing:.11em}.smp-candidate-keyfacts strong{display:block;margin-top:5px;color:#101828;font-size:13px;line-height:1.4}.smp-candidate-keyfacts small{display:block;margin-top:4px;color:#667085;font-size:11px;line-height:1.35;min-height:14px}
.smp-candidate-history-compact{padding-top:14px;padding-bottom:14px}.smp-candidate-history-compact .smp-candidate-section-title{margin-bottom:8px}.smp-candidate-history-compact .smp-candidate-section-title>small{color:#667085;font-weight:650}
.smp-candidate-history-row{padding:8px 10px}.smp-history-main strong{font-size:12px}.smp-history-main span{font-size:11px}
.smp-candidate-source-detail,.smp-candidate-rule-detail{margin-top:8px;border:1px solid #e8edf3;border-radius:13px;background:#fbfcfd;overflow:hidden}
.smp-candidate-source-detail summary,.smp-candidate-rule-detail summary{cursor:pointer;list-style:none;padding:9px 11px;color:#667085;font-size:11px;font-weight:750}.smp-candidate-source-detail summary::-webkit-details-marker,.smp-candidate-rule-detail summary::-webkit-details-marker{display:none}.smp-candidate-source-detail summary::after,.smp-candidate-rule-detail summary::after{content:'+';float:right;color:#98a2b3;font-size:14px}.smp-candidate-source-detail[open] summary::after,.smp-candidate-rule-detail[open] summary::after{content:'−'}
.smp-candidate-source-detail p{margin:0;padding:0 11px 9px;color:#667085;font-size:10px;line-height:1.45}
.smp-candidate-rules-compact{padding-top:12px;padding-bottom:14px}.smp-rule-chip-row{display:flex;flex-wrap:wrap;gap:7px}.smp-rule-chip{display:inline-flex;align-items:center;gap:6px;min-height:29px;padding:6px 9px;border-radius:999px;border:1px solid #e4e7ec;background:#f8fafc;color:#475467;font-size:10px;font-weight:750}.smp-rule-chip i{font-style:normal;font-weight:900}.smp-rule-chip.is-pass{background:#eef9f2;border-color:#d5f0df;color:#137a3e}.smp-rule-chip.is-fail{background:#fff3f2;border-color:#fecaca;color:#b42318}.smp-rule-chip.is-review{background:#fff9e8;border-color:#fedf89;color:#9a6700}
.smp-candidate-rule-detail .smp-candidate-requirements{padding:0 10px 10px}.smp-candidate-rule-detail .smp-requirement-row{padding:8px 9px}.smp-candidate-rule-detail .smp-requirement-row span{font-size:10px}.smp-candidate-rule-detail .smp-requirement-row small{font-size:9px}
@media(max-width:860px){.smp-candidate-keyfacts{grid-template-columns:1fr}.smp-candidate-keyfacts>div+div{border-left:0;border-top:1px solid #e8edf3}}
@media(max-width:520px){.smp-candidate-head-simple{padding:16px}.smp-candidate-head-simple .smp-hierarchy-path{width:100%}.smp-candidate-keyfacts>div{padding:12px 14px}.smp-rule-chip-row{gap:6px}.smp-rule-chip{font-size:9.5px}.smp-candidate-source-detail,.smp-candidate-rule-detail{border-radius:11px}}

/* v2.9.2 · acción destructiva al final de la mesa */
.smp-assembly-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:34px;padding:18px 20px;border-radius:18px;border:1px solid #fecdca;background:rgba(255,246,247,.86)}
.smp-assembly-danger-zone>div{display:grid;gap:4px}.smp-assembly-danger-zone strong{font-size:14px;color:#7a271a}.smp-assembly-danger-zone span{font-size:12px;line-height:1.45;color:#b54708;max-width:760px}
@media(max-width:620px){.smp-assembly-danger-zone{flex-direction:column;align-items:stretch}.smp-assembly-danger-zone .smp-danger-soft{width:100%}}


/* v2.9.4 · expediente sin identidad duplicada + móvil/iPhone + navegación atrás */
.smp-drawer-head-main{display:flex;align-items:center;gap:10px;min-width:0}
.smp-drawer-head-main>div{min-width:0}
.smp-drawer-back{flex:0 0 auto}
.smp-drawer-head #smp-drawer-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smp-expedient-hero>*{min-width:0}
.smp-expedient-hero h3,.smp-expedient-hero p,.smp-current-service-row,.smp-service-summary,.smp-timeline-content,.smp-rule-source,.smp-detail-tile{overflow-wrap:anywhere;word-break:normal}

@media(max-width:920px){
  .smp-drawer{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;inset:0!important;overflow:hidden!important}
  .smp-drawer-head{padding-top:calc(12px + env(safe-area-inset-top))!important;padding-left:12px!important;padding-right:12px!important;flex:0 0 auto!important}
  .smp-drawer-head-main{gap:8px!important;flex:1 1 auto!important}
  .smp-drawer-head .smp-icon-button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .smp-drawer-head h2{font-size:20px!important;margin-top:2px!important}
  .smp-drawer-head .smp-eyebrow{font-size:9px!important}
  .smp-drawer-body{flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:100vw!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;touch-action:pan-y!important}
  .smp-drawer-body>*{max-width:100%!important;min-width:0!important}
  .smp-drawer-body input,.smp-drawer-body select,.smp-drawer-body textarea,.smp-drawer-body button{max-width:100%}
  .smp-drawer-body .smp-grid-2,.smp-drawer-body .smp-grid-3,.smp-drawer-body .smp-detail-summary{grid-template-columns:1fr!important}
  .smp-drawer-body .smp-section-minihead,.smp-drawer-body .smp-current-service-head,.smp-drawer-body .smp-history-title{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .smp-drawer-body .smp-current-service-row,.smp-drawer-body .smp-service-summary{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
  .smp-drawer-body .smp-history-actions{width:100%!important;justify-content:flex-start!important;flex-wrap:wrap!important}
  .smp-drawer-body .smp-rule-source>div{flex-wrap:wrap!important}
  .smp-drawer-body .smp-rule-source>div strong{white-space:normal!important;text-align:left!important}
  .smp-drawer-body .smp-timeline-content{min-width:0!important}
  .smp-drawer-body .smp-timeline-content span,.smp-drawer-body .smp-muted,.smp-drawer-body p{white-space:normal!important;max-width:100%!important}
}
@media(max-width:620px){
  .smp-drawer-body{padding-left:12px!important;padding-right:12px!important}
  .smp-expedient-hero{padding:16px!important;margin-bottom:10px!important}
  .smp-expedient-hero h3{font-size:24px!important;line-height:1.08!important}
  .smp-expedient-status{align-items:flex-start!important}
  .smp-drawer .smp-subcard,.smp-current-service{padding:14px!important}
  .smp-timeline-row{grid-template-columns:18px minmax(0,1fr)!important;gap:6px!important}
  .smp-history-tools{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .smp-history-tools .smp-primary{width:100%!important}
  .smp-compliance-grid,.smp-rule-source-grid{grid-template-columns:1fr!important}
  .smp-drawer .smp-inline-actions{grid-template-columns:1fr!important;width:100%!important}
  .smp-drawer .smp-inline-actions>*{width:100%!important}
}

/* =========================================================
   v3.0 · Liquid Glass navigation & control layer
   Inspired by Apple Liquid Glass principles: navigation and
   controls float above content; content remains highly legible.
   ========================================================= */
:root{
  --smp-glass-bg:rgba(252,253,255,.60);
  --smp-glass-bg-strong:rgba(255,255,255,.72);
  --smp-glass-edge:rgba(255,255,255,.76);
  --smp-glass-edge-soft:rgba(87,111,141,.15);
  --smp-glass-shadow:0 18px 54px rgba(39,64,96,.14),0 2px 10px rgba(39,64,96,.06);
  --smp-glass-inner:inset 0 1px 0 rgba(255,255,255,.90),inset 0 -1px 0 rgba(255,255,255,.30);
  --smp-glass-blue:rgba(15,126,255,.14);
  --smp-glass-mint:rgba(37,197,145,.11);
  --smp-glass-gold:rgba(202,158,70,.10);
}

/* Content layer stays calm; Liquid Glass is concentrated in functional chrome. */
.smp-app{
  background:
    radial-gradient(circle at 3% 5%,rgba(68,170,245,.25),transparent 32%),
    radial-gradient(circle at 52% -6%,rgba(69,199,158,.12),transparent 28%),
    radial-gradient(circle at 98% 8%,rgba(202,158,70,.12),transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,#f4f7fb 52%,#f7f8fb 100%)!important;
}

/* Top identity bar: no navigation lives here anymore. */
@media(min-width:921px){
  .smp-sidebar{
    grid-template-columns:auto 1fr auto!important;
    grid-template-areas:"brand spacer footer"!important;
    row-gap:0!important;
    padding:15px 20px!important;
    background:var(--smp-glass-bg)!important;
    border:1px solid var(--smp-glass-edge)!important;
    box-shadow:var(--smp-glass-shadow),var(--smp-glass-inner)!important;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .smp-main{padding-bottom:118px!important}
}

/* Floating bottom tab bar on every screen size. */
.smp-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:max(12px,env(safe-area-inset-bottom))!important;
  top:auto!important;
  z-index:68!important;
  width:min(980px,calc(100vw - 28px))!important;
  min-height:68px!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:7px!important;
  margin:0!important;
  border:1px solid var(--smp-glass-edge)!important;
  border-radius:25px!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(246,250,255,.50))!important;
  box-shadow:var(--smp-glass-shadow),var(--smp-glass-inner)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  transition:min-height .24s cubic-bezier(.2,.8,.2,1),padding .24s cubic-bezier(.2,.8,.2,1),opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1)!important;
}
.smp-nav::-webkit-scrollbar{display:none!important}
.smp-nav:before{
  content:"";position:absolute;inset:1px 8%;height:42%;pointer-events:none;border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,0));
  opacity:.72;mix-blend-mode:screen;
}
.smp-nav-item{
  position:relative!important;
  z-index:1!important;
  flex:1 0 auto!important;
  width:auto!important;
  min-width:82px!important;
  min-height:52px!important;
  padding:7px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  border:1px solid transparent!important;
  border-radius:18px!important;
  background:transparent!important;
  color:#50647d!important;
  font-size:10px!important;
  font-weight:720!important;
  line-height:1.05!important;
  text-align:center!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .16s ease,box-shadow .18s ease!important;
}
.smp-nav-item svg{width:20px!important;height:20px!important;stroke-width:1.85!important}
.smp-nav-item:hover{
  background:rgba(255,255,255,.42)!important;
  border-color:rgba(255,255,255,.58)!important;
  color:#24486e!important;
}
.smp-nav-item.is-active{
  color:#006ee6!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(229,242,255,.48))!important;
  border-color:rgba(255,255,255,.82)!important;
  box-shadow:0 8px 20px rgba(0,113,227,.12),inset 0 1px 0 rgba(255,255,255,.94),inset 0 -1px 0 rgba(116,178,246,.13)!important;
}
.smp-nav-item.is-active svg{color:#087af0!important;filter:drop-shadow(0 2px 4px rgba(0,113,227,.14))}
.smp-nav-item:active{transform:scale(.96)!important}

/* iPhone / mobile: the old sidebar becomes only an anchor for the floating tab bar. */
@media(max-width:920px){
  .smp-sidebar{
    position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    width:0!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;
    border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;
    overflow:visible!important;
  }
  .smp-brand,.smp-sidebar-footer{display:none!important}
  .smp-main{margin-left:0!important;padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
  .smp-nav{
    width:calc(100vw - 16px)!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    min-height:67px!important;
    padding:6px!important;
    justify-content:flex-start!important;
    border-radius:23px!important;
  }
  .smp-nav-item{min-width:72px!important;min-height:54px!important;padding:6px 8px!important;font-size:9px!important}
  .smp-nav-item svg{width:19px!important;height:19px!important}
  .smp-nav.is-compact{min-height:58px!important;padding-top:4px!important;padding-bottom:4px!important}
  .smp-nav.is-compact .smp-nav-item{min-height:46px!important}
  .smp-nav.is-compact .smp-nav-item svg{width:18px!important;height:18px!important}
}
@media(max-width:430px){
  .smp-nav-item{min-width:69px!important;font-size:8.5px!important}
  .smp-main{padding-left:8px!important;padding-right:8px!important}
}

/* Liquid Glass top chrome and drawers. */
.smp-toolbar,.smp-drawer-head,.smp-modal-card,.smp-login-card{
  background:var(--smp-glass-bg)!important;
  border:1px solid var(--smp-glass-edge)!important;
  box-shadow:var(--smp-glass-shadow),var(--smp-glass-inner)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.smp-drawer{
  background:rgba(248,251,255,.79)!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:0 30px 90px rgba(28,54,85,.22),inset 0 1px 0 rgba(255,255,255,.86)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.smp-drawer-backdrop{background:rgba(34,50,70,.14)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}

/* Buttons become small glass lenses. */
.smp-primary,.smp-secondary,.smp-icon-button,.smp-small,.smp-segmented button,.smp-candidate-segments button{
  border-radius:15px!important;
  border:1px solid rgba(255,255,255,.68)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:0 7px 18px rgba(42,70,104,.08),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
.smp-primary{
  background:linear-gradient(180deg,rgba(28,144,255,.93),rgba(0,111,230,.91))!important;
  border-color:rgba(168,213,255,.48)!important;
  box-shadow:0 9px 22px rgba(0,113,227,.22),inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(0,67,154,.18)!important;
}
.smp-primary:hover{background:linear-gradient(180deg,rgba(39,151,255,.98),rgba(0,105,224,.94))!important}
.smp-secondary,.smp-icon-button{
  background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(246,249,253,.54))!important;
  color:#264764!important;
  border-color:rgba(255,255,255,.80)!important;
}
.smp-secondary:hover,.smp-icon-button:hover{background:rgba(255,255,255,.86)!important}

/* Borders and field surfaces use the same glass edge language. */
.smp-card,.smp-hero,.smp-stat,.smp-subcard,.smp-person-row,.smp-candidate-card,.smp-filterbar,.smp-advanced-filters,.smp-candidate-filters,.smp-detail-tile,.smp-requirement-row,.smp-rule-source{
  border-color:rgba(255,255,255,.78)!important;
  box-shadow:0 8px 26px rgba(39,64,96,.055),inset 0 1px 0 rgba(255,255,255,.72)!important;
}
.smp-form input,.smp-form select,.smp-form textarea,.smp-big-search input,.smp-search-control input,.smp-filterbar select,.smp-filterbar input,.smp-advanced-filters select,.smp-candidate-filters select,.smp-access-link-row input,.smp-sheet-input{
  background:rgba(255,255,255,.70)!important;
  border:1px solid rgba(111,137,164,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 3px 12px rgba(39,64,96,.035)!important;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.smp-form input:focus,.smp-form select:focus,.smp-form textarea:focus,.smp-big-search input:focus,.smp-search-control input:focus,.smp-filterbar select:focus,.smp-filterbar input:focus,.smp-advanced-filters select:focus,.smp-candidate-filters select:focus{
  border-color:rgba(10,124,255,.42)!important;
  box-shadow:0 0 0 4px rgba(10,124,255,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
}

/* When a full-screen drawer is open, navigation politely gets out of the way. */
body.smp-drawer-open .smp-nav{opacity:0!important;pointer-events:none!important;transform:translate(-50%,18px)!important}

/* Respect accessibility preferences while preserving the same hierarchy. */
@media (prefers-reduced-transparency: reduce){
  .smp-nav,.smp-toolbar,.smp-sidebar,.smp-drawer,.smp-drawer-head,.smp-login-card,.smp-primary,.smp-secondary,.smp-icon-button{
    backdrop-filter:none;-webkit-backdrop-filter:none;background:#f8fbff!important;
  }
  .smp-nav-item.is-active{background:#e9f3ff!important}
  .smp-primary{background:#087af0!important;color:#fff!important}
}
@media (prefers-reduced-motion: reduce){
  .smp-nav,.smp-nav-item,.smp-primary,.smp-secondary,.smp-icon-button{transition:none!important}
}

/* =========================================================
   v3.1 · Performance pass
   Glass is kept on navigation/chrome only. Repeated content,
   buttons and fields use compositing-cheap surfaces so iPhone
   and shared hosting feel much faster while preserving style.
   ========================================================= */
.smp-material,
.smp-card,.smp-hero,.smp-stat,.smp-subcard,.smp-person-row,.smp-candidate-card,.smp-filterbar,.smp-advanced-filters,.smp-candidate-filters,.smp-detail-tile,.smp-requirement-row,.smp-rule-source{
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.smp-primary,.smp-secondary,.smp-icon-button,.smp-small,.smp-segmented button,.smp-candidate-segments button,
.smp-form input,.smp-form select,.smp-form textarea,.smp-big-search input,.smp-search-control input,.smp-filterbar select,.smp-filterbar input,.smp-advanced-filters select,.smp-candidate-filters select,.smp-access-link-row input,.smp-sheet-input{
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.smp-drawer{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(248,251,255,.985)!important}
.smp-drawer-backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(34,50,70,.12)!important}
.smp-toolbar,.smp-sidebar{backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-nav{backdrop-filter:none;-webkit-backdrop-filter:none;}
.smp-drawer-head{backdrop-filter:none;-webkit-backdrop-filter:none;}

/* Do not paint long off-screen result sets until they approach the viewport. */
.smp-candidate-card-expanded,.smp-person-row,.smp-service-item,.smp-activity-row,.smp-timeline-row,.smp-assembly-row{
  content-visibility:auto;
  contain-intrinsic-size:90px;
}
.smp-candidate-card-expanded{contain-intrinsic-size:420px}
.smp-timeline-row{contain-intrinsic-size:72px}

/* Keep layout work local to repeated cards. */
.smp-stat,.smp-person-row,.smp-candidate-card,.smp-service-stat,.smp-official-item{contain:layout paint style}

.smp-loading-line{height:10px!important;width:52%!important;min-height:10px!important;margin-bottom:10px!important}
.smp-loading-number{height:26px!important;width:34%!important;min-height:26px!important}

@media(max-width:920px){
  .smp-nav{backdrop-filter:none;-webkit-backdrop-filter:none;}
  .smp-toolbar,.smp-drawer-head{backdrop-filter:none;-webkit-backdrop-filter:none;}
  .smp-card,.smp-hero,.smp-stat,.smp-subcard,.smp-candidate-card-expanded{box-shadow:0 4px 14px rgba(39,64,96,.04)!important}
}


/* v3.1.2 — Zona de eliminación aislada al final de la mesa */
.smp-assembly-bottom-separator{
  height:clamp(48px,8vh,96px);
  width:100%;
}
.smp-assembly-danger-zone{
  position:relative!important;
  inset:auto!important;
  order:9999!important;
  width:100%!important;
  margin:0 0 10px!important;
  padding:20px!important;
  border-radius:20px!important;
  border:1px solid rgba(217,45,32,.18)!important;
  background:rgba(255,248,248,.78)!important;
  box-shadow:none!important;
}
.smp-assembly-danger-zone .smp-eyebrow{color:#b42318!important;margin-bottom:2px}
@media(max-width:620px){
  .smp-assembly-bottom-separator{height:56px}
  .smp-assembly-danger-zone{padding:16px!important;margin-bottom:calc(18px + env(safe-area-inset-bottom))!important}
}

/* =========================================================
   3.2.0 · Vista Hoja para selección de candidatos
   Compacta la información como una hoja de cálculo y conserva
   todos los campos mediante desplazamiento horizontal en móvil.
   ========================================================= */
.smp-candidate-sheet-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1.35fr) minmax(180px,.72fr) minmax(220px,.9fr) minmax(180px,.72fr)!important;
  gap:10px!important;
  align-items:end;
}
.smp-candidate-year-range>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.smp-candidate-year-range input{
  width:100%;min-width:0;height:44px;padding:0 11px;border:1px solid rgba(106,127,154,.22);border-radius:13px;
  background:rgba(255,255,255,.78);font:inherit;color:#16233a;outline:none;
}
.smp-candidate-year-range input:focus{border-color:rgba(10,132,255,.48);box-shadow:0 0 0 4px rgba(10,132,255,.09)}
.smp-candidate-results-head{margin-top:10px}
.smp-candidate-results-head span{color:#718096;font-size:11px}
.smp-candidate-sheet-host{margin-top:8px}
.smp-candidate-sheet-scroll{
  width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
  border:1px solid rgba(109,130,158,.16);border-radius:20px;background:rgba(255,255,255,.82);
  box-shadow:0 10px 28px rgba(35,57,84,.055);scrollbar-gutter:stable;
}
.smp-candidate-sheet{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#182438}
.smp-candidate-sheet thead th{
  position:sticky;top:0;z-index:4;height:42px;padding:0 12px;text-align:left;white-space:nowrap;
  background:rgba(244,248,252,.96);backdrop-filter:none;-webkit-backdrop-filter:none;
  border-bottom:1px solid rgba(109,130,158,.18);color:#617188;font-size:10px;font-weight:850;letter-spacing:.075em;text-transform:uppercase;
}
.smp-candidate-sheet tbody td{
  height:58px;padding:9px 12px;vertical-align:middle;border-bottom:1px solid rgba(109,130,158,.105);
  background:rgba(255,255,255,.80);font-size:12px;line-height:1.35;
}
.smp-candidate-sheet tbody tr:nth-child(even) td{background:rgba(248,251,254,.80)}
.smp-candidate-sheet tbody tr:last-child td{border-bottom:0}
.smp-candidate-sheet tbody tr:hover td{background:rgba(235,246,255,.86)}
.smp-candidate-sheet th:nth-child(1),.smp-candidate-sheet td:nth-child(1){width:220px}
.smp-candidate-sheet th:nth-child(2),.smp-candidate-sheet td:nth-child(2){width:112px}
.smp-candidate-sheet th:nth-child(3),.smp-candidate-sheet td:nth-child(3){width:210px}
.smp-candidate-sheet th:nth-child(4),.smp-candidate-sheet td:nth-child(4){width:100px}
.smp-candidate-sheet th:nth-child(5),.smp-candidate-sheet td:nth-child(5){width:145px}
.smp-candidate-sheet th:nth-child(6),.smp-candidate-sheet td:nth-child(6){width:180px}
.smp-candidate-sheet th:nth-child(7),.smp-candidate-sheet td:nth-child(7){width:165px}
.smp-candidate-sheet th:nth-child(8),.smp-candidate-sheet td:nth-child(8){width:135px}
.smp-candidate-sheet th:nth-child(9),.smp-candidate-sheet td:nth-child(9){width:112px}
.smp-candidate-sheet th:first-child,.smp-candidate-sheet td:first-child{
  position:sticky;left:0;z-index:3;box-shadow:8px 0 18px -16px rgba(20,42,70,.55)
}
.smp-candidate-sheet thead th:first-child{z-index:6;background:rgba(240,246,252,.985)}
.smp-candidate-sheet tbody tr:nth-child(odd) td:first-child{background:rgba(255,255,255,.97)}
.smp-candidate-sheet tbody tr:nth-child(even) td:first-child{background:rgba(248,251,254,.97)}
.smp-candidate-sheet tbody tr:hover td:first-child{background:rgba(235,246,255,.98)}
.smp-sheet-name strong,.smp-sheet-service strong{display:block;color:#13213a;font-size:12px;font-weight:800;white-space:normal}
.smp-sheet-name small,.smp-sheet-service small,.smp-candidate-sheet td small{display:block;margin-top:2px;color:#8290a5;font-size:10px;font-weight:550;white-space:normal}
.smp-sheet-period{font-weight:750;white-space:nowrap}
.smp-sheet-rest{color:#41536b;font-weight:650}
.smp-sheet-status{display:inline-flex;align-items:center;min-height:27px;padding:5px 8px;border-radius:999px;font-size:9.5px;font-weight:850;letter-spacing:.035em;white-space:nowrap}
.smp-sheet-status.is-green{background:#e9f8ef;color:#0e7a3c}.smp-sheet-status.is-blue{background:#e9f3ff;color:#075ecb}.smp-sheet-status.is-orange{background:#fff3df;color:#9b5c00}.smp-sheet-status.is-purple{background:#f1edff;color:#6941c6}.smp-sheet-status.is-gray{background:#f0f2f5;color:#667085}
.smp-sheet-compliance{display:inline-block;font-size:10px;font-weight:700;line-height:1.35}.smp-sheet-compliance.is-ok{color:#197a43}.smp-sheet-compliance.has-issues{color:#b54708}
.smp-sheet-action{text-align:right}.smp-sheet-action .smp-primary{min-height:34px;padding:8px 11px;border-radius:11px;font-size:11px;white-space:nowrap}

@media(max-width:980px){
  .smp-candidate-sheet-toolbar{grid-template-columns:1fr 1fr!important}
  .smp-candidate-search{grid-column:1/-1}
}
@media(max-width:640px){
  .smp-candidate-sheet-toolbar{grid-template-columns:1fr!important;padding:12px!important;gap:8px!important}
  .smp-candidate-sheet-toolbar label{grid-column:1!important}
  .smp-candidate-year-range>div{grid-template-columns:1fr 1fr}
  .smp-candidate-year-range input{font-size:16px}
  .smp-candidate-results-head{align-items:flex-start;flex-direction:column;gap:3px}
  .smp-candidate-sheet-scroll{border-radius:16px;margin-left:0;margin-right:0}
  .smp-candidate-sheet{min-width:980px}
  .smp-candidate-sheet thead th{height:39px;padding:0 9px;font-size:9px}
  .smp-candidate-sheet tbody td{height:54px;padding:8px 9px;font-size:11px}
  .smp-candidate-sheet th:nth-child(1),.smp-candidate-sheet td:nth-child(1){width:185px}
  .smp-candidate-sheet th:nth-child(2),.smp-candidate-sheet td:nth-child(2){width:100px}
  .smp-candidate-sheet th:nth-child(3),.smp-candidate-sheet td:nth-child(3){width:175px}
  .smp-candidate-sheet th:nth-child(4),.smp-candidate-sheet td:nth-child(4){width:92px}
  .smp-candidate-sheet th:nth-child(5),.smp-candidate-sheet td:nth-child(5){width:128px}
  .smp-candidate-sheet th:nth-child(6),.smp-candidate-sheet td:nth-child(6){width:155px}
  .smp-candidate-sheet th:nth-child(7),.smp-candidate-sheet td:nth-child(7){width:145px}
  .smp-candidate-sheet th:nth-child(8),.smp-candidate-sheet td:nth-child(8){width:120px}
  .smp-candidate-sheet th:nth-child(9),.smp-candidate-sheet td:nth-child(9){width:96px}
  .smp-sheet-action .smp-primary{min-height:32px;padding:7px 9px;font-size:10px}
}
@media(prefers-reduced-transparency:reduce){
  .smp-candidate-sheet thead th{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f4f8fc}
  .smp-candidate-sheet-scroll{background:#fff}
}

/* =========================================================
   v3.3 · Dual candidate views + lightweight Liquid Glass
   Cards are the default readable view; Sheet remains optional.
   Heavy blur stays on chrome only; repeated surfaces use
   translucent gradients, highlight borders and inner light.
   ========================================================= */
:root{
  --smp-v33-glass:linear-gradient(145deg,rgba(255,255,255,.88),rgba(247,251,255,.66));
  --smp-v33-glass-soft:linear-gradient(145deg,rgba(255,255,255,.76),rgba(244,249,255,.54));
  --smp-v33-edge:rgba(255,255,255,.92);
  --smp-v33-shadow:0 16px 42px rgba(47,72,105,.09),inset 0 1px 0 rgba(255,255,255,.96),inset 0 -1px 0 rgba(121,159,201,.08);
}

/* More visible premium background without expensive full-page blur. */
.smp-app{
  background:
    radial-gradient(circle at 0% 0%,rgba(93,190,255,.28),transparent 31%),
    radial-gradient(circle at 54% -8%,rgba(74,207,170,.16),transparent 27%),
    radial-gradient(circle at 100% 5%,rgba(214,171,88,.15),transparent 30%),
    linear-gradient(180deg,#f9fcff 0%,#f3f7fb 54%,#f8fafc 100%)!important;
}

/* Lightweight glass language across the system. */
.smp-card,.smp-hero,.smp-stat,.smp-subcard,.smp-person-row,.smp-filterbar,.smp-advanced-filters,
.smp-candidate-filters,.smp-candidate-head,.smp-candidate-explain,.smp-assembly-hero,.smp-rule-banner,
.smp-slot-card,.smp-expedient-hero,.smp-timing-card,.smp-history-card,.smp-normative-card,.smp-compliance-card,
.smp-service-item,.smp-assembly-row,.smp-table-wrap,.smp-candidate-sheet-scroll,.smp-glass-card,.smp-glass-surface{
  background:var(--smp-v33-glass)!important;
  border:1px solid var(--smp-v33-edge)!important;
  box-shadow:var(--smp-v33-shadow)!important;
}
.smp-glass-control,.smp-candidate-segments,.smp-segmented{
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(242,248,255,.54))!important;
  border:1px solid rgba(255,255,255,.9)!important;
  box-shadow:0 10px 28px rgba(47,72,105,.07),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.smp-glass-note{
  background:linear-gradient(145deg,rgba(255,255,255,.70),rgba(239,247,255,.52))!important;
  border:1px solid rgba(255,255,255,.86)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 7px 20px rgba(47,72,105,.05)!important;
}

/* Keep real blur on structural chrome for speed. */
.smp-toolbar,.smp-sidebar,.smp-nav,.smp-drawer-head,.smp-modal-card,.smp-login-card{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* View switch */
.smp-candidate-results-head-v2{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.smp-candidate-view-switch{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.9);border-radius:15px;background:rgba(255,255,255,.58);box-shadow:0 6px 18px rgba(47,72,105,.06),inset 0 1px 0 rgba(255,255,255,.96)}
.smp-candidate-view-switch>span{padding:0 7px;color:#75839a;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}
.smp-candidate-view-switch button{appearance:none;border:1px solid transparent;background:transparent;color:#50627a;min-height:34px;padding:7px 12px;border-radius:11px;font-size:11px;font-weight:800;cursor:pointer}
.smp-candidate-view-switch button.is-active{color:#056bd8;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(229,242,255,.76));border-color:rgba(255,255,255,.96);box-shadow:0 5px 14px rgba(0,113,227,.10),inset 0 1px 0 #fff}
.smp-candidate-view-hint{margin:5px 2px 9px;color:#78869a;font-size:10.5px;line-height:1.4}

/* Detailed cards: familiar, readable, no horizontal scrolling. */
.smp-candidate-results-host.is-cards{display:block}
.smp-candidate-card-list{display:grid;gap:14px}
.smp-candidate-card-v3{position:relative;overflow:hidden;border-radius:23px;padding:0}
.smp-candidate-card-v3:before,.smp-sheet-preview:before{
  content:"";position:absolute;left:7%;right:7%;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.98),transparent);pointer-events:none
}
.smp-candidate-card-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 17px;border-bottom:1px solid rgba(102,126,156,.10)}
.smp-candidate-card-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.smp-candidate-card-name-row h3{margin:0;color:#142239;font-size:17px;letter-spacing:-.025em}.smp-candidate-card-top small{display:block;margin-top:2px;color:#8290a5;font-size:10px}
.smp-step-badge{display:inline-flex;align-items:center;min-height:25px;padding:5px 9px;border-radius:999px;background:rgba(222,239,255,.72);border:1px solid rgba(255,255,255,.9);color:#0869d4;font-size:9.5px;font-weight:850}
.smp-candidate-card-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.smp-candidate-keyfacts-v3{grid-template-columns:repeat(4,minmax(0,1fr));background:rgba(255,255,255,.28)}
.smp-candidate-keyfacts-v3>div{min-width:0;padding:13px 15px}.smp-candidate-keyfacts-v3>div+div{border-left:1px solid rgba(102,126,156,.10)}
.smp-candidate-keyfacts-v3 span,.smp-sheet-preview-facts span{display:block;color:#7c8a9e;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;margin-bottom:5px}
.smp-candidate-keyfacts-v3 strong,.smp-sheet-preview-facts strong{display:block;color:#25364f;font-size:11.5px;line-height:1.35}.smp-candidate-keyfacts-v3 small,.smp-sheet-preview-facts small{display:block;color:#8995a6;font-size:9.5px;margin-top:3px}
.smp-candidate-card-v3 .smp-candidate-history-compact,.smp-candidate-card-v3 .smp-candidate-rules-compact{padding:13px 16px;border-top:1px solid rgba(102,126,156,.09)}
.smp-candidate-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.smp-candidate-section-title strong{font-size:11.5px}.smp-candidate-section-title small{color:#8793a5;font-size:9.5px}

/* Sheet view: fewer columns + eye preview. */
.smp-candidate-results-host.is-sheet{display:block}
.smp-candidate-sheet-scroll{position:relative;overflow:auto;max-width:100%;border-radius:20px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-color:rgba(95,123,157,.30) transparent}
.smp-candidate-sheet-v3{width:100%;min-width:1040px;table-layout:fixed}
.smp-candidate-sheet-v3 th:nth-child(1),.smp-candidate-sheet-v3 td:nth-child(1){width:210px}
.smp-candidate-sheet-v3 th:nth-child(2),.smp-candidate-sheet-v3 td:nth-child(2){width:105px}
.smp-candidate-sheet-v3 th:nth-child(3),.smp-candidate-sheet-v3 td:nth-child(3){width:245px}
.smp-candidate-sheet-v3 th:nth-child(4),.smp-candidate-sheet-v3 td:nth-child(4){width:190px}
.smp-candidate-sheet-v3 th:nth-child(5),.smp-candidate-sheet-v3 td:nth-child(5){width:175px}
.smp-candidate-sheet-v3 th:nth-child(6),.smp-candidate-sheet-v3 td:nth-child(6){width:125px}
.smp-candidate-sheet-v3 th:nth-child(7),.smp-candidate-sheet-v3 td:nth-child(7){width:62px;text-align:center}
.smp-candidate-sheet-v3 th:nth-child(8),.smp-candidate-sheet-v3 td:nth-child(8){width:95px;text-align:right}
.smp-candidate-sheet-v3 thead th{background:rgba(237,245,252,.84)!important;backdrop-filter:none;}
.smp-candidate-sheet-v3 tbody td{background:rgba(255,255,255,.54)!important}
.smp-candidate-sheet-v3 tbody tr:nth-child(even) td{background:rgba(247,250,253,.68)!important}
.smp-candidate-sheet-v3 tbody tr:hover td,.smp-candidate-sheet-v3 tbody tr.is-preview-open td{background:rgba(232,244,255,.78)!important}
.smp-candidate-sheet-v3 td:first-child,.smp-candidate-sheet-v3 th:first-child{position:sticky;left:0;z-index:5;box-shadow:10px 0 18px -18px rgba(35,59,89,.35)}
.smp-candidate-sheet-v3 thead th:first-child{z-index:7;background:rgba(237,245,252,.98)!important}
.smp-candidate-sheet-v3 tbody tr:nth-child(odd) td:first-child{background:rgba(255,255,255,.97)!important}.smp-candidate-sheet-v3 tbody tr:nth-child(even) td:first-child{background:rgba(247,250,253,.98)!important}.smp-candidate-sheet-v3 tbody tr:hover td:first-child,.smp-candidate-sheet-v3 tbody tr.is-preview-open td:first-child{background:rgba(232,244,255,.98)!important}
.smp-eye-btn{appearance:none;width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.94);border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(235,244,253,.74));color:#2875c7;box-shadow:0 5px 14px rgba(38,88,140,.08),inset 0 1px 0 #fff;cursor:pointer}.smp-eye-btn svg{width:18px;height:18px}.smp-eye-btn:hover{color:#006ee6;background:#fff}.smp-sheet-eye{text-align:center!important}
.smp-sheet-detail-row td{padding:0!important;border-bottom:1px solid rgba(102,126,156,.12)!important;background:rgba(240,247,254,.80)!important}.smp-sheet-detail-row td:first-child{position:static!important;box-shadow:none!important}.smp-sheet-preview{position:relative;margin:10px;padding:15px;border-radius:18px;text-align:left}.smp-sheet-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.smp-sheet-preview-head h4{margin:3px 0 0;font-size:16px}.smp-sheet-preview-head small{color:#8391a4;font-size:10px}.smp-sheet-preview-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid rgba(255,255,255,.90);border-radius:15px;background:rgba(255,255,255,.44);overflow:hidden}.smp-sheet-preview-facts>div{padding:11px 12px}.smp-sheet-preview-facts>div+div{border-left:1px solid rgba(102,126,156,.10)}.smp-sheet-preview-history,.smp-sheet-preview-rules{margin-top:12px}.smp-sheet-preview-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}

@media(max-width:980px){
  .smp-candidate-keyfacts-v3,.smp-sheet-preview-facts{grid-template-columns:1fr 1fr}
  .smp-candidate-keyfacts-v3>div:nth-child(3),.smp-sheet-preview-facts>div:nth-child(3){border-left:0;border-top:1px solid rgba(102,126,156,.10)}
  .smp-candidate-keyfacts-v3>div:nth-child(4),.smp-sheet-preview-facts>div:nth-child(4){border-top:1px solid rgba(102,126,156,.10)}
}
@media(max-width:620px){
  .smp-candidate-results-head-v2{align-items:flex-start;flex-direction:column}
  .smp-candidate-view-switch{width:100%}.smp-candidate-view-switch button{flex:1}
  .smp-candidate-card-top{align-items:flex-start;flex-direction:column;padding:14px}
  .smp-candidate-card-actions{width:100%;justify-content:space-between}.smp-candidate-card-actions .smp-primary{flex:1}
  .smp-candidate-keyfacts-v3,.smp-sheet-preview-facts{grid-template-columns:1fr}
  .smp-candidate-keyfacts-v3>div+div,.smp-sheet-preview-facts>div+div{border-left:0;border-top:1px solid rgba(102,126,156,.10)!important}
  .smp-candidate-sheet-v3{min-width:900px}
  .smp-sheet-preview{margin:7px;padding:12px}.smp-sheet-preview-head{flex-direction:column}.smp-sheet-preview-actions>*{width:100%}
  .smp-candidate-card-list{gap:10px}
}

@media (prefers-reduced-transparency: reduce){
  .smp-card,.smp-hero,.smp-stat,.smp-subcard,.smp-person-row,.smp-filterbar,.smp-advanced-filters,.smp-candidate-filters,.smp-candidate-head,.smp-candidate-explain,.smp-assembly-hero,.smp-rule-banner,.smp-slot-card,.smp-expedient-hero,.smp-candidate-card-v3,.smp-sheet-preview,.smp-candidate-sheet-scroll{background:#fff!important;border-color:#e4e9ef!important;box-shadow:0 5px 18px rgba(39,64,96,.06)!important}
}

/* v3.4.0 · importación segura */
.smp-import-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.smp-import-actions .smp-muted{font-size:11px}.smp-review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}.smp-review-grid>div{padding:13px;border:1px solid var(--smp-line-soft);border-radius:14px;background:rgba(255,255,255,.66);box-shadow:inset 0 1px 0 rgba(255,255,255,.78)}.smp-review-grid span{display:block;font-size:10px;color:var(--smp-muted);text-transform:uppercase;letter-spacing:.06em}.smp-review-grid strong{display:block;margin-top:4px;font-size:22px;color:var(--smp-text)}.smp-review-grid .is-ok{background:rgba(236,253,243,.82)}.smp-review-grid .is-warn{background:rgba(255,250,235,.88)}.smp-review-grid .is-error{background:rgba(254,243,242,.9)}.smp-review-summary{display:grid;gap:3px;padding:13px 14px;border-radius:14px;border:1px solid var(--smp-line-soft);background:rgba(247,249,252,.78);margin-bottom:10px}.smp-review-summary span{font-size:11px;color:var(--smp-muted)}.smp-review-issues{max-height:320px;overflow:auto;border:1px solid var(--smp-line-soft);border-radius:14px;background:rgba(255,255,255,.84);margin:10px 0 14px}.smp-review-issues table{width:100%;border-collapse:collapse;font-size:10.5px;min-width:720px}.smp-review-issues th,.smp-review-issues td{padding:9px 10px;border-bottom:1px solid var(--smp-line-soft);text-align:left;vertical-align:top}.smp-review-issues th{position:sticky;top:0;background:rgba(247,249,252,.96);color:var(--smp-muted);z-index:1}.smp-review-issues tr.is-error td:nth-child(2){color:#b42318;font-weight:800}.smp-review-issues tr.is-warn td:nth-child(2){color:#b54708;font-weight:800}
@media(max-width:700px){.smp-review-grid{grid-template-columns:1fr 1fr}.smp-review-issues{overflow-x:auto;-webkit-overflow-scrolling:touch}.smp-import-actions{align-items:stretch}.smp-import-actions .smp-primary{width:100%}}

/* v3.5 · Importación simple y guiada */
.smp-import-simple{display:grid;gap:18px}.smp-import-simple-head{display:flex;align-items:flex-start;gap:12px}.smp-import-simple-head strong{display:block;font-size:17px;letter-spacing:-.02em}.smp-import-simple-head p{margin:4px 0 0;color:var(--muted);line-height:1.45}.smp-import-orb{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:rgba(10,132,255,.12);color:#0674df;font-weight:800;border:1px solid rgba(10,132,255,.18)}
.smp-import-template-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.smp-import-template-actions .smp-button-link{text-align:center;justify-content:center;min-height:46px}
.smp-simple-upload{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:18px;border:1px dashed rgba(10,132,255,.30);background:rgba(255,255,255,.58);cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.smp-simple-upload input{position:absolute;opacity:0;pointer-events:none}.smp-simple-upload span{font-weight:800;color:#086bd8}.smp-simple-upload small{color:var(--muted)}
.smp-simple-review-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.smp-simple-review-title strong{font-size:19px}.smp-simple-review-title span{color:var(--muted);font-size:13px}.smp-review-grid-simple{grid-template-columns:repeat(4,minmax(0,1fr))}.smp-simple-decisions{display:grid;gap:10px;margin-top:16px}.smp-simple-decisions h3{margin:0;font-size:16px}.smp-simple-decisions>p{margin:-4px 0 2px;color:var(--muted);font-size:13px}.smp-import-decision{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 15px;border:1px solid rgba(15,23,42,.09);border-radius:17px;background:rgba(255,255,255,.68)}.smp-import-decision>div:first-child{min-width:0}.smp-import-decision strong{display:block}.smp-import-decision span{display:block;color:var(--muted);font-size:12px;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.smp-import-decision-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.smp-choice{border:1px solid rgba(15,23,42,.10);background:rgba(255,255,255,.7);border-radius:999px;padding:8px 11px;font:inherit;font-size:12px;font-weight:750;color:#475467;cursor:pointer}.smp-choice.is-active{background:rgba(10,132,255,.12);color:#086bd8;border-color:rgba(10,132,255,.28);box-shadow:0 0 0 3px rgba(10,132,255,.06)}.smp-simple-more{margin-top:12px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:rgba(255,255,255,.52);padding:12px 14px}.smp-simple-more summary{cursor:pointer;font-weight:750;color:#475467}.smp-simple-issue{display:grid;gap:2px;padding:9px 0;border-top:1px solid rgba(15,23,42,.06)}.smp-simple-issue:first-of-type{margin-top:9px}.smp-simple-issue span,.smp-simple-issue small{color:var(--muted)}.smp-import-now{width:100%;margin-top:16px;justify-content:center}.smp-import-note{text-align:center;margin:8px 0 0!important}
@media(max-width:700px){.smp-import-template-actions{grid-template-columns:1fr}.smp-review-grid-simple{grid-template-columns:1fr 1fr}.smp-import-decision{grid-template-columns:1fr}.smp-import-decision-actions{justify-content:flex-start}.smp-choice{min-height:42px}.smp-simple-upload{padding:15px}}


/* v3.5.1 · Conteo global siempre visible */
.smp-global-counts{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;
  margin:10px 0 14px;padding:5px;border-radius:20px;
  background:rgba(255,255,255,.58)!important;border:1px solid rgba(255,255,255,.84)!important;
  box-shadow:0 10px 30px rgba(47,86,128,.07)!important;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  overflow:hidden;
}
.smp-global-count{min-width:0;padding:8px 12px;border-radius:15px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;position:relative}
.smp-global-count:not(:last-child)::after{content:"";position:absolute;right:-1px;top:22%;bottom:22%;width:1px;background:rgba(69,103,142,.10)}
.smp-global-count span{font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#71829a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smp-global-count strong{grid-row:1 / span 2;grid-column:2;font-size:20px;line-height:1;font-weight:800;color:#17335d;font-variant-numeric:tabular-nums}
.smp-global-count small{font-size:9px;color:#8b99aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.smp-global-count.is-available{background:linear-gradient(135deg,rgba(232,251,241,.82),rgba(255,255,255,.24))}
.smp-global-count.is-active{background:linear-gradient(135deg,rgba(231,243,255,.88),rgba(255,255,255,.24))}
.smp-global-count.is-rest{background:linear-gradient(135deg,rgba(255,248,226,.86),rgba(255,255,255,.24))}
.smp-global-count.is-appointed{background:linear-gradient(135deg,rgba(240,237,255,.84),rgba(255,255,255,.24))}
.smp-global-count.is-total{background:linear-gradient(135deg,rgba(238,246,251,.86),rgba(255,255,255,.24))}
@media(max-width:900px){
  .smp-global-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;margin:8px 0 12px;border-radius:18px}
  .smp-global-count{padding:8px 10px;background-color:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.65)}
  .smp-global-count:not(:last-child)::after{display:none}
  .smp-global-count.is-total{grid-column:1/-1}
  .smp-global-count strong{font-size:18px}
}
@media(max-width:430px){
  .smp-global-counts{gap:4px;padding:5px;border-radius:16px}
  .smp-global-count{padding:7px 9px;border-radius:13px}
  .smp-global-count span{font-size:8px}.smp-global-count small{font-size:8px}.smp-global-count strong{font-size:17px}
}


/* ==========================================================================\n   SMP 4.0 — INTERFAZ RECONSTRUIDA / MOBILE FIRST / LIQUID GLASS LIGERO\n   ========================================================================== */
:root{
  --smp4-bg:#eef5fb;
  --smp4-bg-warm:#f7f4ee;
  --smp4-ink:#12213a;
  --smp4-muted:#62748b;
  --smp4-line:rgba(49,74,105,.12);
  --smp4-glass:rgba(255,255,255,.76);
  --smp4-glass-strong:rgba(255,255,255,.90);
  --smp4-blue:#0a84ff;
  --smp4-blue-deep:#0066d6;
  --smp4-green:#22a85a;
  --smp4-green-bg:#e7f8ee;
  --smp4-red:#d92d20;
  --smp4-red-bg:#ffebe8;
  --smp4-amber:#b66b00;
  --smp4-amber-bg:#fff4d9;
  --smp4-purple:#6f5bd3;
  --smp4-purple-bg:#f0edff;
  --smp4-shadow:0 18px 55px rgba(43,66,93,.10);
  --smp4-shadow-soft:0 8px 24px rgba(43,66,93,.075);
  --smp4-radius:24px;
  --smp4-nav-h:78px;
}
html{font-size:17px!important;background:var(--smp4-bg)!important;scroll-behavior:auto!important}
body{margin:0!important;min-height:100vh!important;color:var(--smp4-ink)!important;background:
 radial-gradient(circle at 8% -5%,rgba(10,132,255,.16),transparent 32%),
 radial-gradient(circle at 95% 4%,rgba(255,196,87,.12),transparent 27%),
 linear-gradient(160deg,#f4f9fd 0%,#edf5fb 52%,#f8f5ef 100%)!important;
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Arial,sans-serif!important;
 -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overscroll-behavior-y:auto}
button,a,input,select,textarea{font:inherit}
button,.smp-nav-item,.smp-primary,.smp-secondary,.smp-icon-button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
input,select,textarea{font-size:16px!important}

/* Layout: one content column + a universal bottom dock. */
.smp-app{min-height:100vh!important;display:block!important;padding:0!important}
.smp-main{margin:0 auto!important;width:min(1320px,100%)!important;max-width:none!important;padding:14px 18px calc(var(--smp4-nav-h) + 42px)!important}
.smp-sidebar{position:fixed!important;z-index:120!important;left:50%!important;right:auto!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:min(1120px,calc(100vw - 24px))!important;height:auto!important;min-height:var(--smp4-nav-h)!important;padding:7px!important;border-radius:28px!important;background:rgba(248,252,255,.74)!important;border:1px solid rgba(255,255,255,.88)!important;box-shadow:0 20px 60px rgba(36,58,84,.16),inset 0 1px 0 rgba(255,255,255,.90)!important;backdrop-filter:blur(18px) saturate(150%)!important;-webkit-backdrop-filter:blur(18px) saturate(150%)!important}
.smp-sidebar>.smp-brand{display:none!important}
.smp-sidebar-footer{position:fixed!important;top:13px!important;right:max(16px,calc((100vw - min(1320px,100vw))/2 + 20px))!important;bottom:auto!important;width:auto!important;min-width:52px!important;padding:7px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.76)!important;border:1px solid rgba(255,255,255,.90)!important;box-shadow:var(--smp4-shadow-soft)!important;backdrop-filter:blur(14px) saturate(145%)!important;-webkit-backdrop-filter:blur(14px) saturate(145%)!important;z-index:130!important}
.smp-user-copy{font-size:.78rem!important}.smp-user-copy strong{max-width:170px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.smp-nav{display:flex!important;align-items:stretch!important;gap:5px!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;margin:0!important;scrollbar-width:none!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;scroll-snap-type:x proximity}
.smp-nav::-webkit-scrollbar{display:none!important}
.smp-nav-item{flex:1 0 112px!important;min-width:112px!important;min-height:62px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:7px 10px!important;border:1px solid transparent!important;border-radius:20px!important;color:#4e6178!important;background:transparent!important;font-size:.78rem!important;font-weight:760!important;line-height:1.08!important;scroll-snap-align:center;transition:background .14s ease,color .14s ease,transform .14s ease!important}
.smp-nav-item svg{width:22px!important;height:22px!important;stroke-width:1.9!important}
.smp-nav-item:hover{background:rgba(255,255,255,.52)!important}
.smp-nav-item.is-active{color:#075fbf!important;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(229,242,255,.88))!important;border-color:rgba(10,132,255,.16)!important;box-shadow:0 8px 20px rgba(10,132,255,.13),inset 0 1px 0 #fff!important;transform:translateY(-1px)}
.smp-nav.is-compact .smp-nav-item{min-height:58px!important}

/* Top toolbar is content title, not the main navigation. */
.smp-toolbar{position:sticky!important;top:10px!important;z-index:60!important;min-height:76px!important;margin:0 0 16px!important;padding:12px 16px 12px 20px!important;border-radius:26px!important;background:rgba(252,254,255,.78)!important;border:1px solid rgba(255,255,255,.91)!important;box-shadow:0 10px 30px rgba(43,66,93,.075),inset 0 1px 0 rgba(255,255,255,.94)!important;backdrop-filter:blur(16px) saturate(145%)!important;-webkit-backdrop-filter:blur(16px) saturate(145%)!important}
.smp-toolbar-eyebrow,.smp-eyebrow{font-size:.71rem!important;letter-spacing:.095em!important;font-weight:820!important;color:#6c819a!important}
.smp-toolbar h1{font-size:1.65rem!important;line-height:1.06!important;letter-spacing:-.035em!important;color:var(--smp4-ink)!important;margin:2px 0 0!important}
.smp-toolbar-actions{gap:9px!important}

/* Liquid Glass language without expensive blur on every repeated card. */
.smp-material,.smp-card,.smp-hero,.smp-global-counts,.smp-stat-card,.smp-filterbar,.smp-assembly-row,.smp-candidate-card,.smp-table-wrap{
 background:linear-gradient(145deg,rgba(255,255,255,.89),rgba(249,252,255,.72))!important;
 border:1px solid rgba(255,255,255,.94)!important;
 box-shadow:var(--smp4-shadow-soft)!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.smp-card,.smp-hero{border-radius:var(--smp4-radius)!important}
.smp-card h2,.smp-card h3,.smp-hero h2{color:var(--smp4-ink)!important;letter-spacing:-.025em!important}
.smp-card p,.smp-muted,.smp-help{color:var(--smp4-muted)!important}
.smp-page{padding-bottom:8px!important}

/* Global live status strip */
.smp-global-counts{display:flex!important;gap:10px!important;padding:10px!important;margin:0 0 16px!important;border-radius:22px!important;overflow-x:auto!important;scrollbar-width:none!important}
.smp-global-counts::-webkit-scrollbar{display:none!important}
.smp-global-count{flex:1 0 155px!important;min-width:155px!important;min-height:82px!important;border-radius:17px!important;padding:12px 14px!important;background:rgba(255,255,255,.78)!important;border:1px solid rgba(75,97,123,.08)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)!important}
.smp-global-count span{font-size:.78rem!important;font-weight:760!important;color:#64768d!important}.smp-global-count strong{display:block!important;font-size:1.7rem!important;letter-spacing:-.04em!important;margin:3px 0!important}.smp-global-count small{font-size:.73rem!important;color:#7d8ca0!important}
.smp-global-count.is-available{background:linear-gradient(145deg,var(--smp4-green-bg),rgba(255,255,255,.83))!important}.smp-global-count.is-available strong{color:var(--smp4-green)!important}
.smp-global-count.is-active{background:linear-gradient(145deg,var(--smp4-red-bg),rgba(255,255,255,.84))!important}.smp-global-count.is-active strong{color:var(--smp4-red)!important}
.smp-global-count.is-rest{background:linear-gradient(145deg,var(--smp4-amber-bg),rgba(255,255,255,.84))!important}.smp-global-count.is-rest strong{color:var(--smp4-amber)!important}
.smp-global-count.is-appointed{background:linear-gradient(145deg,var(--smp4-purple-bg),rgba(255,255,255,.84))!important}.smp-global-count.is-appointed strong{color:var(--smp4-purple)!important}
.smp-global-count.is-total strong{color:var(--smp4-blue-deep)!important}

/* Clear state semantics: text + color, never color only. */
.smp-pill.is-green,.smp-status.is-available,.is-available .smp-pill{background:var(--smp4-green-bg)!important;color:#15723c!important;border-color:rgba(34,168,90,.16)!important}
.smp-pill.is-red,.smp-status.is-active{background:var(--smp4-red-bg)!important;color:#a62519!important;border-color:rgba(217,45,32,.16)!important}
.smp-pill.is-orange,.smp-status.is-rest{background:var(--smp4-amber-bg)!important;color:#8e5800!important;border-color:rgba(182,107,0,.17)!important}
.smp-pill.is-blue,.smp-status.is-appointed{background:#e8f3ff!important;color:#0564c6!important;border-color:rgba(10,132,255,.15)!important}

/* Bigger, calmer typography for people with limited digital literacy. */
.smp-hero h2{font-size:clamp(2rem,4vw,3.45rem)!important;line-height:1.02!important;max-width:760px!important}
.smp-hero p{font-size:1rem!important;line-height:1.55!important;max-width:760px!important}
.smp-section-head h2{font-size:1.62rem!important}.smp-section-head h3{font-size:1.35rem!important}
.smp-person-name,.smp-name-cell strong{font-size:1rem!important}
.smp-person-meta,.smp-name-cell span{font-size:.80rem!important}
label{font-size:.88rem!important;font-weight:720!important;color:#3f5269!important}
small{line-height:1.35}

/* Controls: 48px minimum target, clear primary action. */
.smp-primary,.smp-secondary,.smp-icon-button,.smp-filter-toggle,.smp-pager button,.smp-segmented button{min-height:46px!important;border-radius:16px!important;font-size:.91rem!important;font-weight:780!important}
.smp-primary{background:linear-gradient(180deg,#1d91ff,#0877e6)!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 9px 22px rgba(10,132,255,.23),inset 0 1px 0 rgba(255,255,255,.35)!important}
.smp-primary:hover{filter:brightness(1.02)}
.smp-secondary{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(239,246,252,.84))!important;color:#24415f!important;border:1px solid rgba(61,83,108,.12)!important;box-shadow:0 6px 16px rgba(43,66,93,.07),inset 0 1px 0 #fff!important}
.smp-icon-button{min-width:46px!important;width:46px!important;padding:0!important;background:rgba(255,255,255,.82)!important;border:1px solid rgba(64,85,110,.10)!important;box-shadow:0 6px 16px rgba(43,66,93,.07)!important}
input,select,textarea{min-height:48px!important;border-radius:16px!important;border:1px solid rgba(63,84,109,.15)!important;background:rgba(255,255,255,.91)!important;color:#14283f!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.96)!important;padding:11px 13px!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:rgba(10,132,255,.50)!important;box-shadow:0 0 0 4px rgba(10,132,255,.11),inset 0 1px 0 #fff!important}

/* Dense data can scroll, but default interaction remains card/list based. */
.smp-table-wrap,.smp-candidate-sheet-scroll{overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:20px!important}
.smp-table th,.smp-table td,.smp-candidate-sheet th,.smp-candidate-sheet td{padding:13px 14px!important;font-size:.86rem!important}
.smp-table th,.smp-candidate-sheet th{font-size:.72rem!important;letter-spacing:.045em!important;color:#60738a!important;background:rgba(240,247,253,.92)!important}

/* Drawers: full-screen mobile, generous desktop sheet. */
.smp-drawer-backdrop{background:rgba(27,44,64,.22)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
.smp-drawer{background:rgba(247,251,255,.96)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 28px 90px rgba(29,48,69,.23)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}
.smp-drawer-head{background:rgba(252,254,255,.82)!important;border-bottom:1px solid rgba(57,79,104,.10)!important;backdrop-filter:blur(15px)!important;-webkit-backdrop-filter:blur(15px)!important}
.smp-drawer-head h2{font-size:1.55rem!important}

/* Login */
.smp-login-screen{background:transparent!important}
.smp-login-card{background:rgba(255,255,255,.80)!important;border:1px solid rgba(255,255,255,.92)!important;border-radius:30px!important;box-shadow:0 30px 90px rgba(43,66,93,.16)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important}
.smp-login-card h1{font-size:2.15rem!important;color:var(--smp4-ink)!important}

/* Desktop comfort */
@media (min-width:1200px){
  html{font-size:17.5px!important}
  .smp-main{padding-left:26px!important;padding-right:26px!important}
  .smp-card{padding:24px!important}
  .smp-toolbar{padding-left:24px!important;padding-right:20px!important}
}

/* Tablet */
@media (max-width:980px){
  :root{--smp4-nav-h:76px}
  .smp-main{padding:10px 12px calc(var(--smp4-nav-h) + 34px)!important}
  .smp-sidebar{width:calc(100vw - 16px)!important;bottom:max(7px,env(safe-area-inset-bottom))!important;border-radius:24px!important;padding:6px!important}
  .smp-nav-item{flex-basis:92px!important;min-width:92px!important;font-size:.72rem!important}
  .smp-nav-item svg{width:21px!important;height:21px!important}
  .smp-sidebar-footer{top:8px!important;right:8px!important}.smp-user-copy{display:none!important}
  .smp-toolbar{top:6px!important;border-radius:22px!important;padding:10px 12px 10px 16px!important}
  .smp-toolbar h1{font-size:1.42rem!important}
  .smp-global-counts{margin-bottom:12px!important}
  .smp-global-count{flex-basis:138px!important;min-width:138px!important}
}

/* Phone / iPhone */
@media (max-width:640px){
  html{font-size:16.5px!important}
  body{padding-bottom:env(safe-area-inset-bottom)!important}
  .smp-main{padding:8px 8px calc(var(--smp4-nav-h) + 28px + env(safe-area-inset-bottom))!important}
  .smp-toolbar{min-height:64px!important;margin-bottom:9px!important;border-radius:20px!important;padding:8px 10px 8px 14px!important}
  .smp-toolbar-eyebrow{display:none!important}.smp-toolbar h1{font-size:1.36rem!important}
  .smp-toolbar-actions .smp-primary span{display:none!important}.smp-toolbar-actions .smp-primary{width:46px!important;padding:0!important;display:grid!important;place-items:center!important}
  .smp-sidebar-footer{display:none!important}
  .smp-sidebar{width:calc(100vw - 10px)!important;bottom:max(5px,env(safe-area-inset-bottom))!important;border-radius:23px!important;padding:5px!important}
  .smp-nav{gap:3px!important}
  .smp-nav-item{flex:0 0 82px!important;min-width:82px!important;min-height:60px!important;padding:5px 7px!important;border-radius:18px!important;font-size:.70rem!important}
  .smp-nav-item svg{width:20px!important;height:20px!important}
  .smp-global-counts{padding:7px!important;gap:7px!important;border-radius:18px!important}
  .smp-global-count{flex-basis:123px!important;min-width:123px!important;min-height:74px!important;padding:9px 11px!important}
  .smp-global-count strong{font-size:1.48rem!important}.smp-global-count small{font-size:.68rem!important}
  .smp-hero,.smp-card{border-radius:20px!important;padding:17px!important}
  .smp-hero h2{font-size:2rem!important}.smp-hero p{font-size:.95rem!important}
  .smp-big-search{min-height:54px!important}.smp-big-search input{font-size:16px!important}
  .smp-grid-2,.smp-grid-3,.smp-two-col,.smp-dashboard-grid,.smp-stat-grid{grid-template-columns:1fr!important}
  .smp-filterbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .smp-filter-presets{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important;padding-bottom:3px!important}
  .smp-filter-presets button{white-space:nowrap!important;min-height:42px!important}
  .smp-section-head{gap:10px!important}.smp-section-head h2{font-size:1.42rem!important}
  .smp-person-card,.smp-candidate-card{padding:14px!important}
  .smp-drawer{inset:0!important;border-radius:0!important;border:0!important;max-width:none!important;width:100vw!important;height:100dvh!important}
  .smp-drawer-head{padding:max(10px,env(safe-area-inset-top)) 12px 10px!important}
  .smp-drawer-body{padding:14px 10px calc(24px + env(safe-area-inset-bottom))!important}
  .smp-drawer-head h2{font-size:1.32rem!important}
  .smp-primary,.smp-secondary{min-height:48px!important;font-size:.95rem!important}
  .smp-hide-keyboard.is-visible{display:block!important}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media (prefers-reduced-transparency:reduce){
  .smp-sidebar,.smp-toolbar,.smp-drawer,.smp-drawer-head,.smp-login-card,.smp-sidebar-footer{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#f8fbff!important}
}

/* =========================================================
   v4.1 — Prioridad cognitiva + navegación azul marino
   Reconocimiento antes que recuerdo, información esencial primero,
   detalle progresivo bajo demanda.
   ========================================================= */
:root{
  --smp41-navy:#08294f;
  --smp41-navy-2:#0b3768;
  --smp41-sky:#21a0ff;
  --smp41-sky-2:#0a84ff;
  --smp41-white:#ffffff;
  --smp41-green:#15803d;
  --smp41-green-bg:#eaf8ef;
  --smp41-red:#b42318;
  --smp41-red-bg:#fff0ef;
  --smp41-amber:#9a6200;
  --smp41-amber-bg:#fff5df;
}

/* Universal bottom dock: dark navy glass, white icons, obvious active item. */
.smp-sidebar{
  background:linear-gradient(135deg,rgba(6,34,68,.94),rgba(11,55,104,.92))!important;
  border-color:rgba(255,255,255,.22)!important;
  box-shadow:0 22px 70px rgba(7,37,72,.28),inset 0 1px 0 rgba(255,255,255,.22)!important;
  backdrop-filter:blur(18px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(145%)!important;
}
.smp-nav-item{color:rgba(255,255,255,.88)!important;text-shadow:0 1px 1px rgba(0,0,0,.08)!important}
.smp-nav-item svg{color:#fff!important;stroke:#fff!important}
.smp-nav-item:hover{background:rgba(255,255,255,.10)!important;color:#fff!important}
.smp-nav-item.is-active{
  color:#fff!important;
  background:linear-gradient(180deg,var(--smp41-sky),var(--smp41-sky-2))!important;
  border-color:rgba(255,255,255,.30)!important;
  box-shadow:0 10px 28px rgba(10,132,255,.36),inset 0 1px 0 rgba(255,255,255,.42)!important;
}
.smp-nav-item.is-active svg{stroke:#fff!important}

/* Universal semantic states. */
.smp-sheet-status.is-red{background:var(--smp41-red-bg)!important;color:var(--smp41-red)!important}
.smp-sheet-status.is-green{background:var(--smp41-green-bg)!important;color:var(--smp41-green)!important}
.smp-sheet-status.is-orange{background:var(--smp41-amber-bg)!important;color:var(--smp41-amber)!important}
.smp-current-service{border-color:rgba(180,35,24,.16)!important;background:linear-gradient(180deg,#fff,#fff8f7)!important}
.smp-current-service-head .smp-pill.is-red{font-weight:850!important}
.smp-global-count.is-active strong,.smp-global-count.is-active span{color:var(--smp41-red)!important}
.smp-global-count.is-available strong,.smp-global-count.is-available span{color:var(--smp41-green)!important}
.smp-global-count.is-rest strong,.smp-global-count.is-rest span{color:var(--smp41-amber)!important}

/* Search: status first, then current/last service, then only 3 history cues. */
.smp-live-item-v41{
  appearance:none;width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) 24px;gap:10px;align-items:center;
  text-align:left;padding:13px 14px!important;border:1px solid rgba(62,83,109,.11)!important;border-radius:16px!important;
  background:rgba(255,255,255,.88)!important;color:var(--smp-text)!important;cursor:pointer;
}
.smp-live-item-v41:hover{background:#fff!important;border-color:rgba(10,132,255,.20)!important;box-shadow:0 8px 20px rgba(29,67,105,.07)!important}
.smp-live-main{min-width:0}
.smp-live-title-row{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:4px}
.smp-live-title-row strong{font-size:15px;line-height:1.25;min-width:0}
.smp-live-primary{display:block;color:#3c4e64;font-size:11.5px;font-weight:700;white-space:normal}
.smp-live-history{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.smp-live-history span{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;background:#f4f7fb;color:#53657b;font-size:9.5px;line-height:1.2}
.smp-live-history span b{color:#293b51;margin-right:2px}
.smp-live-history-empty{display:block;margin-top:5px;color:#8a96a5;font-size:10px}
.smp-live-open{font-size:24px;color:#7890a9;justify-self:end}

/* Expedient: identity/status -> current service -> history -> secondary details. */
.smp-expedient-hero-v41{margin-bottom:10px!important}
.smp-history-priority{margin-top:10px!important;border-color:rgba(10,132,255,.12)!important}
.smp-history-priority .smp-timeline-content{padding-bottom:14px!important}
.smp-person-info-v41{margin-top:10px!important}
.smp-normative-disclosure{margin-top:10px;border:1px solid rgba(62,83,109,.10);border-radius:17px;background:rgba(255,255,255,.70);overflow:hidden}
.smp-normative-disclosure>summary{cursor:pointer;padding:14px 16px;font-size:12px;font-weight:800;color:#334a64;list-style:none}
.smp-normative-disclosure>summary::-webkit-details-marker{display:none}
.smp-normative-disclosure>summary:after{content:'+';float:right;font-size:18px;color:#6e8299}
.smp-normative-disclosure[open]>summary:after{content:'−'}
.smp-normative-disclosure .smp-normative-card{margin:0!important;border:0!important;border-top:1px solid rgba(62,83,109,.08)!important;border-radius:0!important;box-shadow:none!important}

/* Candidate selection: compact list, not oversized cards. */
.smp-candidate-card-v41{margin-bottom:8px!important;border-radius:18px!important;overflow:hidden!important;background:rgba(255,255,255,.90)!important;border:1px solid rgba(69,94,125,.10)!important;box-shadow:0 5px 16px rgba(31,60,91,.045)!important}
.smp-candidate-card-top-v41{padding:11px 13px!important;border-bottom:1px solid rgba(69,94,125,.08)!important}
.smp-candidate-card-top-v41 h3{font-size:14.5px!important;line-height:1.22!important;margin:0!important}
.smp-candidate-card-top-v41 small{font-size:9px!important;color:#8391a4!important}
.smp-candidate-card-actions{gap:7px!important;flex-wrap:nowrap!important}
.smp-candidate-card-actions .smp-primary{min-height:36px!important;padding:8px 11px!important;font-size:10px!important}
.smp-candidate-quickline{display:grid;grid-template-columns:1.05fr 1.5fr 1fr;border-bottom:1px solid rgba(69,94,125,.08);background:rgba(247,250,253,.68)}
.smp-candidate-quickline>div{padding:9px 12px;min-width:0}
.smp-candidate-quickline>div+div{border-left:1px solid rgba(69,94,125,.08)}
.smp-candidate-quickline span{display:block;color:#8391a4;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;margin-bottom:3px}
.smp-candidate-quickline strong{display:block;font-size:11px;color:#263a50;line-height:1.25;white-space:normal}
.smp-candidate-quickline small{display:block;color:#718198;font-size:9px;margin-top:2px;line-height:1.25}
.smp-candidate-history-v41{padding:9px 12px!important;border-bottom:1px solid rgba(69,94,125,.07)!important}
.smp-candidate-history-v41 .smp-candidate-section-title{margin-bottom:6px!important}
.smp-candidate-history-v41 .smp-candidate-history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.smp-candidate-history-v41 .smp-candidate-history-row{display:block!important;padding:7px 8px!important;border:1px solid rgba(69,94,125,.08)!important;border-radius:11px!important;background:#f8fafc!important;min-width:0}
.smp-candidate-history-v41 .smp-history-main strong{font-size:9px!important;line-height:1.2!important;white-space:normal!important}
.smp-candidate-history-v41 .smp-history-main span{font-size:8.5px!important;display:block;margin-top:2px;color:#66778d}
.smp-candidate-history-v41 .smp-pill{margin-top:5px!important;font-size:8px!important;padding:3px 6px!important}
.smp-candidate-footer-v41{padding:8px 12px 10px!important}
.smp-candidate-compliance-line{font-size:9.5px;font-weight:760;margin-bottom:6px;color:#267240}
.smp-candidate-compliance-line.has-issues{color:#a43b20}
.smp-candidate-footer-v41 .smp-rule-chip-row{gap:5px!important}
.smp-candidate-footer-v41 .smp-rule-chip{font-size:8.5px!important;padding:4px 7px!important}
.smp-candidate-footer-v41 .smp-candidate-rule-detail summary{font-size:9.5px!important}

/* Keep the sheet as an alternate productivity view, but list is the readable default. */
.smp-candidate-view-switch button.is-active{background:#eaf4ff!important;color:#075fbf!important;box-shadow:inset 0 0 0 1px rgba(10,132,255,.14)!important}

/* Larger, calmer typography for low digital-literacy environments. */
body{font-size:16px!important}
.smp-toolbar h1{font-size:clamp(1.45rem,2.2vw,2rem)!important}
.smp-card h2,.smp-section-head h2{font-size:clamp(1.25rem,1.8vw,1.65rem)!important}
.smp-form label,.smp-filter-grid label,.smp-candidate-filters label{font-size:12px!important}
input,select,textarea,button{font-size:16px}

@media(max-width:820px){
  .smp-live-title-row{align-items:flex-start;flex-direction:column;gap:5px}.smp-live-title-row .smp-pill{align-self:flex-start}
  .smp-live-history{display:grid;grid-template-columns:1fr;gap:4px}.smp-live-history span{border-radius:9px}
  .smp-candidate-quickline{grid-template-columns:1fr 1fr}.smp-candidate-quickline>div:nth-child(3){grid-column:1/-1;border-left:0;border-top:1px solid rgba(69,94,125,.08)}
  .smp-candidate-history-v41 .smp-candidate-history-list{grid-template-columns:1fr}
}
@media(max-width:560px){
  body{font-size:16px!important}
  .smp-nav-item{color:#fff!important}
  .smp-nav-item span{font-size:.72rem!important}
  .smp-live-item-v41{padding:12px!important;grid-template-columns:minmax(0,1fr) 18px}
  .smp-live-primary{font-size:11px}.smp-timing-line{font-size:10px!important}
  .smp-candidate-card-top-v41{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .smp-candidate-card-actions{width:100%!important;justify-content:space-between!important}
  .smp-candidate-card-actions .smp-primary{min-width:94px!important}
  .smp-candidate-quickline{grid-template-columns:1fr}.smp-candidate-quickline>div+div,.smp-candidate-quickline>div:nth-child(3){border-left:0!important;border-top:1px solid rgba(69,94,125,.08)!important;grid-column:auto}
  .smp-candidate-history-v41{padding:8px 10px!important}
  .smp-expedient-hero-v41{padding:15px!important}
  .smp-expedient-hero-v41 h3{font-size:24px!important}
  .smp-history-priority{padding:14px!important}
}


/* =========================================================
   v4.2 — búsqueda universal en nombramientos + dock claro
   Datos vivos: cualquier nombre escrito debe aparecer aunque esté
   en servicio o descanso. Detalle esencial primero, sin repeticiones.
   ========================================================= */
.smp-sidebar-footer{display:none!important}
body.smp-drawer-open .smp-sidebar{opacity:0!important;pointer-events:none!important;transform:translate(-50%,18px)!important}
.smp-account-logout{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 11px;border-radius:14px;border:1px solid rgba(45,72,103,.10);background:rgba(255,255,255,.72);color:#41566f;text-decoration:none;font-size:.78rem;font-weight:780;box-shadow:0 5px 16px rgba(37,67,101,.06)}
.smp-account-logout svg{width:18px;height:18px}.smp-account-logout:hover{color:#0a74e8;background:#fff}
.smp-current-timing{margin:10px 0 0;padding:9px 11px;border-radius:12px;background:#fff3f1;color:#7f2e25;font-size:12px;font-weight:720}
.smp-candidate-search-help{display:block;margin-top:6px;color:#6d7f93;font-size:10px;line-height:1.35}
.smp-candidate-segments.is-universal-search:after{content:'Búsqueda en todo el padrón';margin-left:auto;align-self:center;padding:6px 9px;border-radius:999px;background:#eaf4ff;color:#075fbf;font-size:9px;font-weight:850;white-space:nowrap}
.smp-candidate-statusline{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid rgba(69,94,125,.08);background:rgba(250,252,255,.74)}
.smp-candidate-statusline strong{font-size:10px;color:#263a50}.smp-candidate-statusline span{font-size:10px;color:#65778d;line-height:1.3}
.smp-candidate-compliance-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.smp-candidate-compliance-summary span{display:inline-flex;align-items:center;gap:3px;padding:4px 7px;border-radius:999px;background:#eef8f1;color:#257440;font-size:9px;font-weight:760}
.smp-candidate-compliance-summary span.is-alert{background:#fff0ef;color:#a33a2e}.smp-candidate-compliance-summary b{font-size:10px}
@media(max-width:760px){
  .smp-account-logout{width:42px;padding:0}.smp-account-logout span{display:none}
  .smp-candidate-segments.is-universal-search:after{display:none}
  .smp-candidate-statusline{align-items:flex-start;flex-direction:column;gap:3px}
}

/* ============================================================
   SMP 4.3 — CAPA CANÓNICA DE ESTABILIDAD RESPONSIVE
   Objetivo: una sola jerarquía visual, navegación inferior estable,
   legibilidad alta y cero desbordamientos accidentales.
   ============================================================ */
:root{
  --smp43-navy:#103a66;
  --smp43-navy-2:#0b2f56;
  --smp43-active:#1597ff;
  --smp43-green:#20843c;
  --smp43-red:#c5221f;
  --smp43-amber:#a05a00;
  --smp43-purple:#6d50c9;
  --smp43-touch:46px;
  --smp43-max:1320px;
}
html,body{max-width:100%;overflow-x:hidden!important}
body{font-size:16px;line-height:1.42}
.smp-app{min-height:100dvh;overflow-x:clip;padding-bottom:calc(108px + env(safe-area-inset-bottom))}
.smp-main{width:min(var(--smp43-max),calc(100% - 28px))!important;max-width:var(--smp43-max)!important;margin:0 auto!important;padding:14px 0 calc(118px + env(safe-area-inset-bottom))!important}

/* Dock inferior: constante, legible y sin cambios de tamaño al hacer scroll. */
.smp-sidebar{
  position:fixed!important;z-index:120!important;left:50%!important;right:auto!important;top:auto!important;
  bottom:max(10px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;
  width:min(1180px,calc(100vw - 24px))!important;height:auto!important;min-height:70px!important;
  padding:7px!important;border-radius:26px!important;background:linear-gradient(180deg,rgba(18,63,106,.94),rgba(11,47,86,.96))!important;
  border:1px solid rgba(255,255,255,.20)!important;box-shadow:0 18px 55px rgba(10,35,62,.24),inset 0 1px 0 rgba(255,255,255,.16)!important;
  backdrop-filter:blur(14px) saturate(135%)!important;-webkit-backdrop-filter:blur(14px) saturate(135%)!important;
  transition:opacity .18s ease,transform .22s ease!important;
}
.smp-brand,.smp-sidebar-footer{display:none!important}
.smp-nav{display:flex!important;align-items:stretch!important;gap:5px!important;width:100%!important;margin:0!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;scroll-snap-type:x proximity;background:transparent!important;border:0!important;box-shadow:none!important}
.smp-nav::-webkit-scrollbar{display:none}
.smp-nav-item{
  flex:1 0 104px!important;min-width:104px!important;min-height:56px!important;padding:7px 9px!important;border-radius:19px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  color:rgba(255,255,255,.86)!important;background:transparent!important;font-size:11px!important;font-weight:760!important;letter-spacing:-.01em!important;text-align:center!important;
  scroll-snap-align:center!important;touch-action:manipulation!important;
}
.smp-nav-item svg{width:21px!important;height:21px!important;stroke-width:1.9!important;color:#fff!important}
.smp-nav-item:hover{background:rgba(255,255,255,.09)!important;color:#fff!important}
.smp-nav-item.is-active,.smp-nav-item[aria-current="page"]{background:linear-gradient(180deg,#2aa8ff,#0d86eb)!important;color:#fff!important;box-shadow:0 7px 20px rgba(10,134,235,.34),inset 0 1px 0 rgba(255,255,255,.30)!important}
body.smp-drawer-open .smp-sidebar{opacity:0!important;pointer-events:none!important;transform:translate(-50%,120%)!important}

/* Encabezado superior: sólo contexto y acciones. */
.smp-toolbar{top:8px!important;min-height:72px!important;border-radius:24px!important;padding:12px 14px 12px 18px!important;background:rgba(252,254,255,.86)!important;border:1px solid rgba(255,255,255,.92)!important;box-shadow:0 8px 26px rgba(37,59,82,.07),inset 0 1px 0 rgba(255,255,255,.96)!important;backdrop-filter:blur(12px) saturate(130%)!important;-webkit-backdrop-filter:blur(12px) saturate(130%)!important}
.smp-toolbar h1{font-size:clamp(23px,2vw,30px)!important;line-height:1.05!important}
.smp-toolbar-eyebrow,.smp-eyebrow{font-size:11px!important;letter-spacing:.08em!important}
.smp-account-logout,.smp-icon-button,.smp-primary,.smp-secondary{min-height:var(--smp43-touch)!important}
.smp-icon-button{min-width:var(--smp43-touch)!important}
.smp-primary,.smp-secondary{font-size:14px!important;padding:11px 15px!important}
button:disabled,[aria-busy="true"]{opacity:.58!important;cursor:wait!important;pointer-events:none!important}

/* Estados universales: nunca depender sólo del color. */
.smp-pill.is-green,.smp-sheet-status.is-green{background:#e7f6ea!important;color:#176b30!important}
.smp-pill.is-red,.smp-sheet-status.is-red{background:#fdebea!important;color:#a91c19!important}
.smp-pill.is-orange,.smp-sheet-status.is-orange{background:#fff1dc!important;color:#8b4b00!important}
.smp-pill.is-purple,.smp-sheet-status.is-purple{background:#f0ebff!important;color:#5e42b5!important}

/* Conteos globales: compactos, visibles, desplazables sólo cuando hace falta. */
.smp-global-counts{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important;padding:9px!important;margin:0 0 14px!important;overflow:visible!important}
.smp-global-count{min-width:0!important;padding:11px 12px!important;border-radius:15px!important}
.smp-global-count span{font-size:11px!important;font-weight:760!important}.smp-global-count strong{font-size:clamp(22px,2vw,30px)!important}.smp-global-count small{font-size:11px!important}

/* Contenido: menos ruido y más lectura. */
.smp-card,.smp-hero,.smp-material-soft{border-radius:22px!important}
.smp-card h2,.smp-card h3{line-height:1.15}
.smp-muted{line-height:1.5}
input,select,textarea{min-height:46px;border-radius:13px!important}
textarea{min-height:96px}

/* Búsqueda: resultados con estado, servicio e historial sin abrir otro panel. */
.smp-live-item{min-height:70px!important;padding:12px 14px!important;align-items:flex-start!important}
.smp-live-title-row{gap:8px!important;flex-wrap:wrap!important}.smp-live-title-row strong{font-size:15px!important}.smp-live-primary{font-size:13px!important}.smp-live-history{margin-top:6px!important;display:grid!important;gap:2px!important}.smp-live-history span{font-size:11px!important;line-height:1.35!important}

/* Candidatos: lista prioritaria, sin tarjetas gigantes. */
.smp-candidate-card-list{display:grid!important;gap:9px!important}
.smp-candidate-card-v41{padding:0!important;border-radius:18px!important;overflow:hidden!important}
.smp-candidate-card-top-v41{padding:11px 13px!important;gap:10px!important}
.smp-candidate-card-name-row h3{font-size:15px!important;line-height:1.18!important}
.smp-candidate-card-actions{gap:7px!important}.smp-candidate-statusline{padding:8px 13px!important;font-size:12px!important}
.smp-candidate-quickline{grid-template-columns:1.05fr 1.45fr .95fr!important;gap:0!important}
.smp-candidate-quickline>div{padding:9px 12px!important;min-width:0!important}.smp-candidate-quickline span{font-size:9px!important}.smp-candidate-quickline strong{font-size:12px!important;line-height:1.3!important}.smp-candidate-quickline small{font-size:10px!important}
.smp-candidate-history-v41{padding:9px 12px!important}.smp-candidate-history-row{padding:7px 8px!important}.smp-candidate-footer-v41{padding:8px 12px!important}

/* Drawer / expediente: autoritativo, sin doble navegación y sin solaparse con el dock. */
.smp-drawer{right:10px!important;top:10px!important;bottom:10px!important;width:min(900px,calc(100vw - 20px))!important;border-radius:28px!important;background:rgba(249,252,255,.97)!important;overflow:hidden!important}
.smp-drawer-head{min-height:72px!important;padding:12px 14px!important;align-items:center!important;position:relative!important;z-index:2!important;background:rgba(252,254,255,.91)!important}
.smp-drawer-head h2{font-size:clamp(22px,2.2vw,30px)!important}
.smp-drawer-body{min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;padding:14px!important;padding-bottom:calc(28px + env(safe-area-inset-bottom))!important}
.smp-drawer-body>*{max-width:100%!important}

/* Offline: aviso visual, sin bloquear la consulta ya cargada. */
body.smp-offline .smp-toolbar:after{content:'Sin conexión';display:inline-flex;align-items:center;margin-left:auto;padding:6px 9px;border-radius:999px;background:#fdebea;color:#a91c19;font-size:11px;font-weight:800}

/* Tablet */
@media (max-width:1024px){
  .smp-main{width:min(100% - 20px,980px)!important;padding-top:10px!important}
  .smp-global-counts{grid-template-columns:repeat(5,150px)!important;overflow-x:auto!important;scrollbar-width:none!important}.smp-global-counts::-webkit-scrollbar{display:none}
  .smp-nav-item{flex-basis:96px!important;min-width:96px!important}
  .smp-candidate-quickline{grid-template-columns:1fr 1fr!important}.smp-candidate-quickline>div:last-child{grid-column:1/-1!important}
}

/* Móvil / iPhone */
@media (max-width:700px){
  body{font-size:16px!important}
  .smp-app{padding-bottom:calc(102px + env(safe-area-inset-bottom))!important}
  .smp-main{width:100%!important;padding:6px 8px calc(110px + env(safe-area-inset-bottom))!important}
  .smp-toolbar{top:5px!important;min-height:64px!important;border-radius:18px!important;padding:9px 10px 9px 12px!important;margin-bottom:8px!important}
  .smp-toolbar h1{font-size:22px!important}.smp-toolbar-eyebrow{font-size:9px!important}
  .smp-toolbar-actions{gap:5px!important}.smp-toolbar-actions .smp-primary span{display:none}.smp-account-logout span{display:none}
  .smp-sidebar{width:calc(100vw - 12px)!important;bottom:max(6px,env(safe-area-inset-bottom))!important;border-radius:22px!important;padding:5px!important;min-height:67px!important;backdrop-filter:blur(10px) saturate(125%)!important;-webkit-backdrop-filter:blur(10px) saturate(125%)!important}
  .smp-nav{gap:3px!important;padding:0 2px!important}
  .smp-nav-item{flex:0 0 82px!important;min-width:82px!important;min-height:56px!important;border-radius:17px!important;font-size:10px!important;padding:6px 5px!important}
  .smp-nav-item svg{width:20px!important;height:20px!important}
  .smp-global-counts{grid-template-columns:repeat(5,138px)!important;margin-bottom:8px!important;gap:6px!important;padding:6px!important;border-radius:16px!important}
  .smp-global-count{padding:9px 10px!important}.smp-global-count strong{font-size:23px!important}.smp-global-count small{font-size:10px!important}
  .smp-hero{padding:18px 14px!important;border-radius:18px!important}.smp-hero h2{font-size:clamp(27px,8.5vw,38px)!important;line-height:1.03!important}.smp-hero p{font-size:14px!important}
  .smp-big-search input,.smp-search-control input,input,select,textarea{font-size:16px!important}
  .smp-live-item{border-radius:14px!important;padding:11px!important}.smp-live-history span:nth-child(n+3){display:none!important}
  .smp-candidate-filters{grid-template-columns:1fr!important;gap:8px!important}.smp-candidate-year-range>div{grid-template-columns:1fr 1fr!important}
  .smp-candidate-segments{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important;scrollbar-width:none!important}.smp-candidate-segments::-webkit-scrollbar{display:none}.smp-candidate-segments button{white-space:nowrap!important;min-height:44px!important}
  .smp-candidate-quickline{grid-template-columns:1fr!important}.smp-candidate-quickline>div:last-child{grid-column:auto!important}.smp-candidate-card-actions .smp-primary{min-width:88px!important}
  .smp-candidate-history-row{grid-template-columns:1fr auto!important;gap:6px!important}.smp-candidate-history-row .smp-history-main strong{font-size:11px!important}.smp-candidate-history-row .smp-history-main span{font-size:10px!important}
  .smp-drawer{inset:0!important;width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important;max-width:none!important}
  .smp-drawer-head{padding:calc(8px + env(safe-area-inset-top)) 9px 9px!important;min-height:70px!important}.smp-drawer-head h2{font-size:21px!important}.smp-drawer-body{padding:10px!important;padding-bottom:calc(26px + env(safe-area-inset-bottom))!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important}
  .smp-detail-summary,.smp-grid-2,.smp-grid-3,.smp-two-col{grid-template-columns:1fr!important}
  .smp-history-row,.smp-user-row{min-width:0!important;overflow-wrap:anywhere!important}
  .smp-hide-keyboard{font-size:13px!important;min-height:42px!important;padding:9px 12px!important}
}

@media (max-width:390px){
  .smp-nav-item{flex-basis:76px!important;min-width:76px!important;font-size:9.5px!important}
  .smp-toolbar-actions .smp-primary{width:44px!important;padding:0!important}.smp-toolbar-actions .smp-primary svg{margin:0!important}
  .smp-global-counts{grid-template-columns:repeat(5,128px)!important}
}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
@media (prefers-reduced-transparency:reduce){.smp-sidebar,.smp-toolbar,.smp-drawer,.smp-drawer-head{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.smp-sidebar{background:var(--smp43-navy)!important}.smp-toolbar,.smp-drawer,.smp-drawer-head{background:#f8fbff!important}}

/* ==========================================================
   v4.4 — Búsqueda directa: estado -> historial -> motivo -> resto
   ========================================================== */
.smp-live-candidate-list{display:grid;gap:14px}
.smp-live-candidate{overflow:hidden;border-radius:24px;border:1px solid rgba(60,82,108,.11);background:rgba(255,255,255,.90);box-shadow:0 12px 34px rgba(35,58,86,.08)}
.smp-live-candidate-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid rgba(60,82,108,.09)}
.smp-live-candidate-head h3{margin:2px 0 0;font-size:19px;line-height:1.18;color:#132238;letter-spacing:-.025em}.smp-live-candidate-head small{display:block;margin-top:3px;color:#758399;font-size:11px}
.smp-live-now,.smp-live-history,.smp-live-decision,.smp-live-more{padding:14px 16px;border-bottom:1px solid rgba(60,82,108,.09)}
.smp-live-step{display:flex;align-items:center;gap:8px;margin-bottom:9px;color:#66758b}.smp-live-step>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#eaf3ff;color:#0a6ed1;font-size:11px;font-weight:900}.smp-live-step>b{font-size:10px;letter-spacing:.09em}.smp-live-step>em{margin-left:auto;font-size:10px;color:#8794a7;font-style:normal}
.smp-live-now>strong,.smp-live-decision-title{display:block;font-size:16px;line-height:1.25}.smp-live-now>p,.smp-live-decision>p{margin:5px 0 0;color:#4f6075;font-size:13px;line-height:1.45}.smp-live-now>small{display:block;margin-top:6px;color:#6d7b8f;font-size:11px;line-height:1.4}
.smp-live-now.is-occupied{background:linear-gradient(90deg,rgba(254,242,242,.96),rgba(255,255,255,.86));border-left:4px solid #d92d20}.smp-live-now.is-occupied>strong{color:#b42318}
.smp-live-now.is-rest{background:linear-gradient(90deg,rgba(255,249,235,.98),rgba(255,255,255,.86));border-left:4px solid #f79009}.smp-live-now.is-rest>strong{color:#a15c00}
.smp-live-now.is-appointed{background:linear-gradient(90deg,rgba(247,243,255,.98),rgba(255,255,255,.86));border-left:4px solid #7f56d9}.smp-live-now.is-appointed>strong{color:#6941c6}
.smp-live-now.is-free{background:linear-gradient(90deg,rgba(236,253,243,.98),rgba(255,255,255,.86));border-left:4px solid #12b76a}.smp-live-now.is-free>strong{color:#067647}
.smp-live-history{background:rgba(255,255,255,.46)}
.smp-live-decision{border-left:4px solid transparent}.smp-live-decision.is-blocked{background:#fff6f5;border-left-color:#d92d20}.smp-live-decision.is-review{background:#fffaeb;border-left-color:#f79009}.smp-live-decision.is-pass{background:#ecfdf3;border-left-color:#12b76a}
.smp-live-decision.is-blocked .smp-live-decision-title{color:#b42318}.smp-live-decision.is-review .smp-live-decision-title{color:#a15c00}.smp-live-decision.is-pass .smp-live-decision-title{color:#067647}
.smp-live-reasons{display:grid;gap:7px;margin-top:10px}.smp-live-reasons>div{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start}.smp-live-reasons i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-style:normal;font-weight:900;background:rgba(180,35,24,.10);color:#b42318}.smp-live-reasons b{display:block;font-size:12.5px;color:#27364a}.smp-live-reasons small,.smp-live-reasons em{display:block;margin-top:2px;font-size:11px;line-height:1.4;color:#66758b;font-style:normal}
.smp-live-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.smp-live-facts>div{padding:10px 11px;border:1px solid rgba(60,82,108,.09);border-radius:13px;background:rgba(248,251,255,.75)}.smp-live-facts span{display:block;color:#78879a;font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.smp-live-facts strong{display:block;margin-top:4px;color:#23344a;font-size:12px;line-height:1.4}
.smp-live-details{margin-top:9px}.smp-live-details>summary{cursor:pointer;color:#31638f;font-size:12px;font-weight:750}.smp-live-actions{display:flex;justify-content:flex-end;padding:12px 16px 15px}.smp-live-actions .smp-primary{min-height:44px}

/* Cuando el usuario escribe un nombre, el objetivo es reconocer a la persona, no filtrar.
   Por eso desaparecen controles secundarios y el resultado queda pegado al buscador. */
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-head,
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-segments,
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-filters>label:not(.smp-candidate-search),
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-view-switch,
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-view-hint{display:none!important}
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-filters{display:block!important;padding:8px!important;margin:0 0 6px!important;border-radius:18px!important;position:sticky;top:0;z-index:2;background:rgba(249,252,255,.92)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-search{display:grid!important;gap:5px!important}.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-search-help{font-size:10.5px!important;line-height:1.35!important}
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-explain{margin:5px 0 7px!important;padding:9px 11px!important;font-size:11px!important;line-height:1.4!important}
.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-results-head{margin:5px 1px 7px!important}.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-results-head strong{font-size:12px!important}

@media(max-width:620px){
  .smp-live-candidate{border-radius:18px}.smp-live-candidate-head{align-items:flex-start;flex-direction:column;padding:13px}.smp-live-candidate-head h3{font-size:18px}.smp-live-candidate-head .smp-sheet-status{align-self:flex-start}
  .smp-live-now,.smp-live-history,.smp-live-decision,.smp-live-more{padding:12px 13px}.smp-live-facts{grid-template-columns:1fr}.smp-live-actions{padding:11px 13px 13px}.smp-live-actions .smp-primary{width:100%;justify-content:center}
  .smp-drawer-body.smp-universal-candidate-mode{padding-top:8px!important}.smp-drawer-body.smp-universal-candidate-mode .smp-candidate-filters{top:0}
  .smp-drawer-body.smp-universal-candidate-mode .smp-candidate-search-help{display:none!important}
  .smp-drawer-body.smp-universal-candidate-mode .smp-candidate-explain{display:none!important}
  .smp-drawer-body.smp-universal-candidate-mode .smp-candidate-results-head{margin-top:4px!important}
}


/* ==========================================================
   V4.5 · Selector de nombramientos de ancho completo en PC
   - En escritorio aprovecha prácticamente toda la pantalla.
   - El contenido queda centrado y legible en monitores grandes.
   - Tablet y móvil conservan el drawer a pantalla completa.
   ========================================================== */
@media (min-width: 901px){
  .smp-drawer.smp-drawer-wide{
    left:14px!important;
    right:14px!important;
    top:10px!important;
    bottom:10px!important;
    width:auto!important;
    max-width:none!important;
    border-radius:28px!important;
  }
  .smp-drawer.smp-candidate-picker-drawer .smp-drawer-head{
    padding-left:clamp(20px,3vw,52px)!important;
    padding-right:clamp(20px,3vw,52px)!important;
  }
  .smp-drawer.smp-candidate-picker-drawer .smp-drawer-body{
    padding-left:clamp(20px,3vw,52px)!important;
    padding-right:clamp(20px,3vw,52px)!important;
  }
  .smp-drawer.smp-candidate-picker-drawer .smp-drawer-body > *{
    width:min(100%,1540px)!important;
    max-width:1540px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .smp-drawer.smp-candidate-picker-drawer .smp-candidate-filters{
    grid-template-columns:minmax(360px,1.6fr) minmax(190px,.65fr) minmax(250px,.8fr)!important;
  }
  .smp-drawer.smp-candidate-picker-drawer.smp-drawer-wide .smp-live-candidate{
    width:100%!important;
  }
}
@media (min-width: 1200px){
  .smp-drawer.smp-candidate-picker-drawer .smp-live-facts{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* ==========================================================
   V4.5.1 · Mesa de nombramientos a pantalla completa en PC
   ========================================================== */
@media (min-width: 901px){
  .smp-drawer.smp-assembly-drawer{
    left:14px!important;
    right:14px!important;
    top:10px!important;
    bottom:10px!important;
    width:auto!important;
    max-width:none!important;
    border-radius:28px!important;
  }
  .smp-drawer.smp-assembly-drawer .smp-drawer-head,
  .smp-drawer.smp-assembly-drawer .smp-drawer-body{
    padding-left:clamp(20px,3vw,44px)!important;
    padding-right:clamp(20px,3vw,44px)!important;
  }
  .smp-drawer.smp-assembly-drawer .smp-drawer-body > *{
    width:min(100%,1720px)!important;
    max-width:1720px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .smp-drawer.smp-assembly-drawer .smp-slot-grid{
    grid-template-columns:repeat(2,minmax(320px,1fr))!important;
    gap:16px!important;
  }
  .smp-drawer.smp-assembly-drawer .smp-assembly-adminbar,
  .smp-drawer.smp-assembly-drawer .smp-inline-actions{
    width:min(100%,1720px)!important;
    max-width:1720px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
@media (min-width: 1380px){
  .smp-drawer.smp-assembly-drawer .smp-slot-grid{
    grid-template-columns:repeat(4,minmax(260px,1fr))!important;
  }
}

/* ==========================================================
   V4.6 · Hoja rápida para búsqueda universal de candidatos
   ========================================================== */
.smp-universal-sheet-intro{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 8px;padding:10px 12px;border-radius:14px;
  background:rgba(236,246,255,.72);border:1px solid rgba(0,113,227,.10);
  color:#24405f;
}
.smp-universal-sheet-intro strong{font-size:13px;color:#12375f}
.smp-universal-sheet-intro span{font-size:11px;color:#5d7188;text-align:right}
.smp-universal-table{min-width:1420px!important;table-layout:fixed!important}
.smp-universal-table th:nth-child(1),.smp-universal-table td:nth-child(1){width:230px}
.smp-universal-table th:nth-child(2),.smp-universal-table td:nth-child(2){width:130px}
.smp-universal-table th:nth-child(3),.smp-universal-table td:nth-child(3){width:105px}
.smp-universal-table th:nth-child(4),.smp-universal-table td:nth-child(4){width:150px}
.smp-universal-table th:nth-child(5),.smp-universal-table td:nth-child(5){width:230px}
.smp-universal-table th:nth-child(6),.smp-universal-table td:nth-child(6){width:180px}
.smp-universal-table th:nth-child(7),.smp-universal-table td:nth-child(7){width:230px}
.smp-universal-table th:nth-child(8),.smp-universal-table td:nth-child(8){width:72px;text-align:center}
.smp-universal-table th:nth-child(9),.smp-universal-table td:nth-child(9){width:110px;text-align:right}
.smp-universal-candidate-row td{vertical-align:middle!important}
.smp-universal-candidate-row .smp-sheet-rest{font-weight:700;color:#384b63}
.smp-universal-candidate-row .smp-sheet-service strong{white-space:normal;line-height:1.2}
.smp-document-scope{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}
.smp-document-scope>div{padding:12px 13px;border-radius:13px;border:1px solid #dfe7ef;background:#f8fbff}
.smp-document-scope strong,.smp-document-scope small{display:block}
.smp-document-scope strong{font-size:12px;color:#1d3651}
.smp-document-scope small{font-size:10px;color:#687b90;line-height:1.45;margin-top:3px}

@media(max-width:760px){
  .smp-universal-sheet-intro{align-items:flex-start;flex-direction:column}
  .smp-universal-sheet-intro span{text-align:left}
  .smp-universal-sheet{overflow:visible!important;border:0!important;background:transparent!important}
  .smp-universal-table{display:block!important;min-width:0!important;width:100%!important}
  .smp-universal-table thead{display:none!important}
  .smp-universal-table tbody{display:grid!important;gap:10px!important}
  .smp-universal-table tr.smp-universal-candidate-row{display:grid!important;grid-template-columns:1fr auto!important;gap:7px 12px!important;padding:14px!important;border:1px solid rgba(89,113,142,.14)!important;border-radius:17px!important;background:rgba(255,255,255,.86)!important;box-shadow:0 4px 16px rgba(39,64,96,.04)!important}
  .smp-universal-table tr.smp-universal-candidate-row td{display:block!important;width:auto!important;padding:0!important;border:0!important;text-align:left!important}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(1){grid-column:1/2;grid-row:1}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(2){grid-column:2/3;grid-row:1;align-self:start}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(3),
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(4),
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(5),
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(6),
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(7){grid-column:1/-1;display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:8px!important;align-items:start!important}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(3)::before,
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(4)::before,
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(5)::before,
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(6)::before,
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(7)::before{content:attr(data-label);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#738499}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(8){grid-column:1/2;margin-top:4px!important}
  .smp-universal-table tr.smp-universal-candidate-row td:nth-child(9){grid-column:2/3;margin-top:4px!important}
  .smp-universal-table .smp-eye-btn{width:44px;height:44px}
  .smp-universal-table .smp-sheet-action .smp-primary{min-height:44px}
  .smp-universal-table tr.smp-sheet-detail-row{display:block!important}
  .smp-universal-table tr.smp-sheet-detail-row>td{display:block!important;width:100%!important;padding:0!important;border:0!important}
  .smp-document-scope{grid-template-columns:1fr}
}

/* V4.6 · columnas explícitas en Hoja rápida */
.smp-candidate-sheet-v46{min-width:1480px!important}
.smp-candidate-sheet-v46 th:nth-child(1),.smp-candidate-sheet-v46 td:nth-child(1){width:220px!important}
.smp-candidate-sheet-v46 th:nth-child(2),.smp-candidate-sheet-v46 td:nth-child(2){width:120px!important}
.smp-candidate-sheet-v46 th:nth-child(3),.smp-candidate-sheet-v46 td:nth-child(3){width:100px!important}
.smp-candidate-sheet-v46 th:nth-child(4),.smp-candidate-sheet-v46 td:nth-child(4){width:145px!important}
.smp-candidate-sheet-v46 th:nth-child(5),.smp-candidate-sheet-v46 td:nth-child(5){width:220px!important}
.smp-candidate-sheet-v46 th:nth-child(6),.smp-candidate-sheet-v46 td:nth-child(6){width:180px!important}
.smp-candidate-sheet-v46 th:nth-child(7),.smp-candidate-sheet-v46 td:nth-child(7){width:190px!important}
.smp-candidate-sheet-v46 th:nth-child(8),.smp-candidate-sheet-v46 td:nth-child(8){width:135px!important}
.smp-candidate-sheet-v46 th:nth-child(9),.smp-candidate-sheet-v46 td:nth-child(9){width:72px!important;text-align:center}
.smp-candidate-sheet-v46 th:nth-child(10),.smp-candidate-sheet-v46 td:nth-child(10){width:110px!important;text-align:right}

/* ==========================================================
   V4.7 · Revisión flotante + decisión documentada
   ========================================================== */
.smp-eligibility-preview-backdrop{
  position:fixed;inset:0;z-index:140;display:grid;place-items:center;
  padding:clamp(12px,2.5vw,32px);background:rgba(26,40,58,.30);
  backdrop-filter:blur(14px) saturate(1.08);-webkit-backdrop-filter:blur(14px) saturate(1.08);
}
.smp-eligibility-preview{
  position:relative;width:min(980px,100%);max-height:min(86dvh,860px);overflow:auto;
  border-radius:28px;border:1px solid rgba(255,255,255,.82);
  background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(247,251,255,.91));
  box-shadow:0 26px 80px rgba(24,45,72,.22),inset 0 1px 0 rgba(255,255,255,.94);
  padding:clamp(18px,2.6vw,30px);-webkit-overflow-scrolling:touch;
}
.smp-preview-close{
  position:sticky;top:0;float:right;z-index:2;width:42px;height:42px;border:1px solid rgba(63,88,120,.14);
  border-radius:14px;background:rgba(255,255,255,.86);font-size:28px;line-height:1;color:#27415f;cursor:pointer;
  box-shadow:0 4px 14px rgba(34,64,98,.08)
}
.smp-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-right:52px;margin-bottom:16px}
.smp-preview-head h3{margin:4px 0 3px;font-size:clamp(22px,2.6vw,32px);line-height:1.05;letter-spacing:-.035em;color:#10233c}
.smp-preview-head p{margin:0;color:#66788e;font-size:13px}
.smp-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.smp-preview-grid>div{min-width:0;padding:14px;border-radius:16px;border:1px solid rgba(96,119,148,.14);background:rgba(255,255,255,.78)}
.smp-preview-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#72839a;font-weight:800}
.smp-preview-grid strong{display:block;margin-top:5px;font-size:13px;color:#172d48;line-height:1.35}
.smp-preview-grid small{display:block;margin-top:5px;font-size:10px;line-height:1.4;color:#687b92}
.smp-preview-rules{display:grid;gap:8px;margin:12px 0}
.smp-preview-rule{border-left:4px solid #d97706;border-radius:14px;padding:12px 14px;background:#fff8eb;border-top:1px solid #f7dfb6;border-right:1px solid #f7dfb6;border-bottom:1px solid #f7dfb6}
.smp-preview-rule.is-hard{border-left-color:#c62828;background:#fff2f2;border-color:#f3c5c5}
.smp-preview-rule strong{display:block;font-size:12px;color:#5f3a00}.smp-preview-rule.is-hard strong{color:#8a1515}
.smp-preview-rule p{margin:4px 0 0;font-size:11px;line-height:1.45;color:#5b6778}.smp-preview-rule small{display:block;margin-top:5px;font-size:9px;font-weight:750;color:#7d6d56}
.smp-preview-history{margin-top:14px;border:1px solid rgba(96,119,148,.14);border-radius:17px;background:rgba(255,255,255,.78);overflow:hidden}
.smp-minihead{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 13px;border-bottom:1px solid rgba(96,119,148,.12)}
.smp-minihead strong{font-size:12px}.smp-minihead span{font-size:10px;color:#7a899c}
.smp-preview-history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 13px;border-bottom:1px solid rgba(96,119,148,.10)}
.smp-preview-history-row:last-child{border-bottom:0}.smp-preview-history-row strong{display:block;font-size:11px;color:#17304d}.smp-preview-history-row span:not(.smp-pill){display:block;margin-top:2px;font-size:10px;color:#718097}
.smp-preview-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:16px;padding-top:14px;background:linear-gradient(180deg,rgba(248,251,255,0),rgba(248,251,255,.96) 28%)}
.smp-decision-box{display:grid;gap:10px;margin:14px 0;padding:16px;border-radius:18px;background:#eef7ff;border:1px solid #cfe4fb}
.smp-decision-box>strong{color:#184f87}.smp-decision-box>p{margin:0;color:#47677f;font-size:11px;line-height:1.5}
.smp-decision-box label{display:grid;gap:6px;font-size:11px;font-weight:700;color:#244561}.smp-decision-box textarea,.smp-decision-box input{width:100%;border:1px solid #b8d5ee;border-radius:12px;background:#fff;padding:11px 12px;font-size:14px}.smp-decision-box textarea{min-height:92px;resize:vertical}
body.smp-preview-open{overflow:hidden!important}
@media(max-width:760px){
  .smp-eligibility-preview-backdrop{padding:0;place-items:stretch}
  .smp-eligibility-preview{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));}
  .smp-preview-grid{grid-template-columns:1fr}.smp-preview-head{flex-direction:column;align-items:flex-start;padding-right:48px}.smp-preview-actions{justify-content:stretch}.smp-preview-actions>*{flex:1 1 100%;width:100%}
  .smp-preview-history-row{align-items:flex-start}.smp-preview-close{top:calc(2px + env(safe-area-inset-top))}
}
@media(prefers-reduced-transparency:reduce){.smp-eligibility-preview-backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(36,52,71,.46)}.smp-eligibility-preview{background:#f9fbfe}}


/* v4.8 · Gestión segura de usuarios */
.smp-user-actions button.is-danger{color:#c62828!important}
.smp-user-actions button.is-danger:hover{background:rgba(198,40,40,.08)!important}
@media(max-width:760px){.smp-user-actions{gap:8px!important}.smp-user-actions button{min-height:40px;padding:8px 10px!important}}

/* ==========================================================
   V5.0 · Diseño humano, legible, responsive y Liquid Glass
   Prioridad: estado → cargo → tiempo → historial → decisión.
   ========================================================== */
:root{
  --smp5-navy:#0b315d;
  --smp5-navy-2:#082747;
  --smp5-blue:#0a84ff;
  --smp5-sky:#2fa8ff;
  --smp5-green:#157a3d;
  --smp5-green-bg:#eaf8ef;
  --smp5-red:#b42318;
  --smp5-red-bg:#fff0ef;
  --smp5-amber:#925d00;
  --smp5-amber-bg:#fff5df;
  --smp5-purple:#6747c7;
  --smp5-purple-bg:#f1edff;
  --smp5-ink:#12213a;
  --smp5-muted:#5e7189;
  --smp5-line:rgba(44,73,106,.14);
  --smp5-glass:rgba(255,255,255,.78);
  --smp5-glass-strong:rgba(255,255,255,.92);
  --smp5-shadow:0 16px 48px rgba(28,56,87,.10),inset 0 1px 0 rgba(255,255,255,.90);
  --smp5-radius:22px;
  --smp5-touch:48px;
}
html{font-size:17px!important;background:#eef5fb!important}
body{color:var(--smp5-ink)!important;font-size:16px!important;line-height:1.5!important}
.smp-app{min-height:100dvh!important;background:
  radial-gradient(circle at 0 0,rgba(47,168,255,.18),transparent 32%),
  radial-gradient(circle at 100% 0,rgba(201,163,93,.10),transparent 28%),
  linear-gradient(180deg,#f7fbff 0%,#f2f6fb 55%,#f8fafc 100%)!important}
.smp-main{width:calc(100% - 24px)!important;max-width:1720px!important;margin:0 auto!important;padding:14px 0 calc(116px + env(safe-area-inset-bottom))!important}
.smp-page{width:100%!important;max-width:none!important}
.smp-toolbar,.smp-card,.smp-hero,.smp-global-counts,.smp-filterbar,.smp-advanced-filters,.smp-candidate-head,.smp-candidate-filters,.smp-modal-card,.smp-login-card,.smp-drawer{
  border:1px solid rgba(255,255,255,.88)!important;
  box-shadow:var(--smp5-shadow)!important;
}
.smp-toolbar,.smp-global-counts,.smp-drawer-head,.smp-login-card{
  background:var(--smp5-glass)!important;
  backdrop-filter:blur(18px) saturate(145%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(145%)!important;
}
.smp-card,.smp-hero,.smp-global-count,.smp-subcard,.smp-person-row,.smp-slot,.smp-table-wrap{
  background:rgba(255,255,255,.90)!important;
}
.smp-toolbar h1{font-size:clamp(1.7rem,2.2vw,2.25rem)!important;line-height:1.05!important;color:var(--smp5-ink)!important}
.smp-card h2{font-size:clamp(1.45rem,1.7vw,1.85rem)!important;line-height:1.12!important}
.smp-card h3,.smp-subcard h3{font-size:1.12rem!important}
.smp-muted,.smp-help,.smp-card p{font-size:15px!important;color:var(--smp5-muted)!important;line-height:1.55!important}
.smp-eyebrow,.smp-toolbar-eyebrow{font-size:12px!important;letter-spacing:.08em!important;font-weight:800!important}

/* Navigation: navy glass + white labels, active bright blue. */
.smp-sidebar{background:linear-gradient(180deg,rgba(12,51,93,.94),rgba(7,39,72,.94))!important;border:1px solid rgba(255,255,255,.20)!important;box-shadow:0 18px 55px rgba(4,35,66,.28),inset 0 1px 0 rgba(255,255,255,.14)!important;backdrop-filter:blur(20px) saturate(145%)!important;-webkit-backdrop-filter:blur(20px) saturate(145%)!important}
.smp-nav-item{color:#fff!important;font-size:12px!important;font-weight:750!important;min-height:56px!important;border:1px solid transparent!important}
.smp-nav-item svg{stroke:#fff!important;color:#fff!important}
.smp-nav-item.is-active,.smp-nav-item[aria-current="page"]{background:linear-gradient(180deg,var(--smp5-sky),var(--smp5-blue))!important;color:#fff!important;border-color:rgba(255,255,255,.25)!important;box-shadow:0 8px 22px rgba(10,132,255,.35),inset 0 1px 0 rgba(255,255,255,.30)!important}
.smp-nav-item.is-active svg{stroke:#fff!important;color:#fff!important}

/* Universal state language. */
.smp-pill{font-weight:800!important;font-size:12px!important;padding:7px 10px!important;border-radius:999px!important;border:1px solid transparent!important}
.smp-pill.is-green,.smp-sheet-status.is-green{background:var(--smp5-green-bg)!important;color:var(--smp5-green)!important;border-color:rgba(21,122,61,.16)!important}
.smp-pill.is-red,.smp-sheet-status.is-red{background:var(--smp5-red-bg)!important;color:var(--smp5-red)!important;border-color:rgba(180,35,24,.16)!important}
.smp-pill.is-orange,.smp-sheet-status.is-orange{background:var(--smp5-amber-bg)!important;color:var(--smp5-amber)!important;border-color:rgba(146,93,0,.17)!important}
.smp-pill.is-purple,.smp-sheet-status.is-purple{background:var(--smp5-purple-bg)!important;color:var(--smp5-purple)!important;border-color:rgba(103,71,199,.18)!important}
.smp-primary,.smp-secondary,.smp-icon-button,.smp-account-logout{min-height:var(--smp5-touch)!important;font-size:15px!important;font-weight:800!important}
.smp-primary{background:linear-gradient(180deg,#2fa8ff,#0a84ff)!important;color:#fff!important;border-color:rgba(0,92,190,.12)!important}
.smp-secondary{background:rgba(255,255,255,.88)!important;color:var(--smp5-navy)!important;border:1px solid var(--smp5-line)!important}

/* Human-first people list. */
.smp-human-list{display:grid;gap:10px}
.smp-human-row{appearance:none;width:100%;display:grid;grid-template-columns:minmax(220px,1.15fr) 130px minmax(210px,1fr) minmax(190px,.9fr) minmax(270px,1.25fr) minmax(200px,.9fr) 64px;gap:12px;align-items:center;text-align:left;padding:14px 16px;border-radius:18px;border:1px solid var(--smp5-line);background:rgba(255,255,255,.92);color:var(--smp5-ink);cursor:pointer;box-shadow:0 6px 18px rgba(28,56,87,.05)}
.smp-human-row:hover{border-color:rgba(10,132,255,.24);box-shadow:0 10px 26px rgba(28,56,87,.08)}
.smp-human-person strong{display:block;font-size:17px;line-height:1.18}.smp-human-person small{display:block;margin-top:4px;color:var(--smp5-muted);font-size:13px}
.smp-human-fact span,.smp-human-history>span,.smp-human-compliance span{display:block;color:var(--smp5-muted);font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:800;margin-bottom:4px}
.smp-human-fact strong,.smp-human-compliance strong{display:block;font-size:14px;line-height:1.35}
.smp-human-history{display:grid;gap:2px}.smp-human-history small{font-size:12px;color:#34465d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smp-human-open{font-weight:850;color:var(--smp5-blue);font-size:14px;text-align:right}
.smp-live-compliance{display:block;margin-top:7px;color:var(--smp5-muted)!important;font-size:12px!important;font-weight:700}

/* Search results: status first, then cargo/time/history. */
.smp-live-item{padding:14px 16px!important;border-radius:17px!important}
.smp-live-title-row strong{font-size:17px!important}.smp-live-primary{font-size:14px!important;font-weight:750!important}.smp-timing-line{font-size:13px!important}
.smp-live-history span{font-size:12px!important;line-height:1.4!important}

/* Forms: readable, touch-safe. */
.smp-form input,.smp-form select,.smp-form textarea,.smp-big-search input,.smp-search-control input,.smp-filterbar select,.smp-filterbar input,.smp-advanced-filters select,.smp-candidate-filters select,.smp-candidate-filters input,.smp-access-link-row input,.smp-sheet-input{min-height:50px!important;font-size:16px!important;border-radius:14px!important;border:1px solid rgba(73,97,126,.20)!important;background:rgba(255,255,255,.92)!important;color:var(--smp5-ink)!important}
.smp-form label,.smp-candidate-filters label{font-size:13px!important;font-weight:800!important;color:#33445a!important}

/* Wide detail surfaces in desktop: use the screen, don't waste half of it. */
@media(min-width:921px){
  .smp-drawer{left:14px!important;right:14px!important;top:10px!important;bottom:10px!important;width:auto!important;max-width:none!important;border-radius:26px!important}
  .smp-drawer-head,.smp-drawer-body{padding-left:clamp(20px,3vw,48px)!important;padding-right:clamp(20px,3vw,48px)!important}
  .smp-drawer-body>*{width:min(100%,1720px)!important;max-width:1720px!important;margin-left:auto!important;margin-right:auto!important}
  .smp-slot-grid{grid-template-columns:repeat(2,minmax(300px,1fr))!important}
}
@media(min-width:1440px){.smp-slot-grid{grid-template-columns:repeat(4,minmax(250px,1fr))!important}}

/* Tablet. */
@media(max-width:1100px){
  .smp-main{width:calc(100% - 18px)!important}
  .smp-human-row{grid-template-columns:minmax(200px,1.2fr) 125px 1fr 1fr 62px}
  .smp-human-history,.smp-human-compliance{grid-column:1/-1;padding-top:7px;border-top:1px solid rgba(44,73,106,.08)}
  .smp-global-counts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Mobile: no horizontal hunting; convert dense lists into vertical cards. */
@media(max-width:720px){
  html{font-size:16px!important}
  body{font-size:16px!important}
  .smp-main{width:calc(100% - 12px)!important;padding-top:8px!important;padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
  .smp-toolbar{padding:13px 14px!important;border-radius:20px!important}
  .smp-toolbar h1{font-size:1.75rem!important}.smp-toolbar-actions{gap:6px!important}.smp-toolbar-actions .smp-primary span{display:none}
  .smp-global-counts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:7px!important}
  .smp-global-count{padding:11px!important}.smp-global-count strong{font-size:1.55rem!important}.smp-global-count small{font-size:11px!important}
  .smp-card,.smp-hero{border-radius:20px!important;padding-left:14px!important;padding-right:14px!important}
  .smp-hero h2{font-size:2rem!important;line-height:1.06!important}.smp-hero p{font-size:15px!important}
  .smp-human-row{display:grid;grid-template-columns:1fr auto;gap:9px 12px;padding:14px;border-radius:18px}
  .smp-human-person{grid-column:1}.smp-human-status{grid-column:2;grid-row:1}
  .smp-human-fact,.smp-human-history,.smp-human-compliance{grid-column:1/-1;padding-top:8px;border-top:1px solid rgba(44,73,106,.08)}
  .smp-human-history small{white-space:normal}
  .smp-human-open{grid-column:1/-1;text-align:left;padding-top:4px}
  .smp-drawer{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important}
  .smp-drawer-head{padding:calc(10px + env(safe-area-inset-top)) 10px 10px!important}
  .smp-drawer-body{padding:12px 12px calc(96px + env(safe-area-inset-bottom))!important}
  .smp-drawer-head h2{font-size:20px!important}
  .smp-form input,.smp-form select,.smp-form textarea,.smp-candidate-filters input,.smp-candidate-filters select{font-size:16px!important}
  .smp-grid-2,.smp-grid-3,.smp-two-col,.smp-data-grid,.smp-detail-summary{grid-template-columns:1fr!important}
  .smp-candidate-head{grid-template-columns:1fr!important;padding:16px!important}.smp-candidate-head h3{font-size:24px!important}
  .smp-candidate-segments{gap:5px!important}.smp-candidate-segments button{min-height:46px!important;padding:9px 12px!important;font-size:14px!important}
  .smp-candidate-filters{grid-template-columns:1fr!important}
}

/* Very small phones: labels remain readable and tap targets remain large. */
@media(max-width:420px){
  .smp-nav-item{min-width:74px!important;font-size:10px!important;padding:7px 6px!important}
  .smp-nav-item svg{width:20px!important;height:20px!important}
  .smp-global-counts{grid-template-columns:1fr 1fr!important}
  .smp-toolbar h1{font-size:1.55rem!important}
}

@media(prefers-reduced-transparency:reduce){
  .smp-sidebar,.smp-toolbar,.smp-global-counts,.smp-drawer-head,.smp-login-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .smp-sidebar{background:var(--smp5-navy)!important}.smp-toolbar,.smp-global-counts,.smp-drawer-head,.smp-login-card{background:#fff!important}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ==========================================================
   V5.1 · Nombramientos configurables + historial completo en búsqueda
   ========================================================== */
.smp-nomination-services-card{overflow:visible}
.smp-nomination-service-list{display:grid;gap:10px;margin-top:14px}
.smp-nomination-service-row{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(260px,1.6fr) auto;gap:18px;align-items:center;padding:15px 16px;border:1px solid rgba(70,94,124,.13);border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 5px 18px rgba(39,64,96,.04)}
.smp-nomination-service-main{min-width:0}.smp-nomination-service-main strong{display:block;font-size:17px;line-height:1.25;color:var(--smp-text);letter-spacing:-.02em}.smp-nomination-service-main small{display:block;margin-top:5px;color:var(--smp-muted);font-size:13px;line-height:1.4}
.smp-nomination-slots>span{display:block;color:var(--smp-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}.smp-nomination-slots>div{display:flex;gap:6px;flex-wrap:wrap}.smp-nomination-slots b{font-size:12px;font-weight:700;padding:6px 9px;border-radius:999px;background:#eef5ff;color:#174f8b;border:1px solid #d7e8fb}
.smp-nomination-service-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.smp-nomination-slot-preview{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.smp-nomination-slot-preview span{padding:8px 10px;border-radius:10px;background:#eef5ff;color:#174f8b;font-size:13px;font-weight:700}

.smp-live-history-full{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(247,250,253,.88);border:1px solid rgba(70,94,124,.10);display:grid;gap:4px}
.smp-live-history-title{font-size:11px!important;color:#516274!important;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}
.smp-live-history-full span{display:block;font-size:12.5px;line-height:1.38;color:#344054}
.smp-live-history-full span b{color:#16283b}.smp-live-history-full span em{font-style:normal;color:#667085;margin-left:5px}
.smp-live-item-v41{align-items:flex-start!important}.smp-live-item-v41 .smp-live-main{min-width:0;width:100%}

@media(max-width:980px){.smp-nomination-service-row{grid-template-columns:1fr}.smp-nomination-service-actions{justify-content:flex-start}}
@media(max-width:620px){
  .smp-nomination-service-row{padding:14px;border-radius:16px;gap:12px}
  .smp-nomination-service-actions>*{flex:1 1 auto;min-height:46px}
  .smp-live-history-full{padding:9px 10px}.smp-live-history-full span{font-size:13px}
}

/* v5.1.3 — único ajuste visual solicitado: separar la lupa del texto del buscador. */
.smp-big-search > span{
  left:16px!important;
  width:22px!important;
  height:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  pointer-events:none!important;
  z-index:2!important;
}
.smp-big-search > span svg{
  width:20px!important;
  height:20px!important;
}
.smp-big-search input{
  padding-left:50px!important;
}
