:root{
  --gov-red:#bf171d;
  --gov-red-dark:#9f1015;
  --blue:#0056b3;
  --text:#171717;
  --muted:#747474;
  --line:#d7d7d7;
  --soft:#eef3f8;
  --card:#fff;
  --shadow:0 2px 5px rgba(0,0,0,.22);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff}
body{font-size:16px}
button,input,select{font:inherit}
a{color:#001dce;text-decoration:none}
button{cursor:pointer}
.hidden{display:none!important}
.page-width{width:min(1260px,calc(100% - 42px));margin:0 auto}

/* ===================== PUBLIC HEADER ===================== */
.gov-header{height:74px;background:var(--gov-red);color:#fff}
.gov-header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:18px}
.gov-brand{display:flex;align-items:center;gap:14px;min-width:0}
.gov-symbol{width:36px;height:36px;border:2px solid #fff;border-radius:8px;display:grid;place-items:center;font-weight:800;font-size:18px}
.gov-title{font-size:32px;font-weight:700;letter-spacing:-1px}
.gov-divider{width:1px;height:42px;background:rgba(255,255,255,.9)}
.gov-subtitle{font-size:16px;font-weight:700;white-space:nowrap}
.environment-pill{border:1px solid rgba(255,255,255,.8);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.crumb-strip{height:56px;background:#eef1f5;border-bottom:1px solid #e6e8eb}
.breadcrumbs{height:100%;display:flex;align-items:center;gap:13px;font-weight:700;font-size:17px}
.breadcrumbs .chev{font-size:31px;line-height:0;color:#111;font-weight:400}
.breadcrumbs span:not(.chev){color:#111}
.admin-bar{background:#27313b;color:#fff}
.admin-links{min-height:42px;display:flex;align-items:center;gap:2px}
.admin-links a{color:#fff;padding:11px 14px}
.admin-links a:hover{background:#3a4652}
.admin-spacer{flex:1}
.admin-user{font-size:13px;padding:0 12px;color:#d7dce1}
.app-shell{padding:16px 0 34px}

/* ===================== SEARCH PAGE ===================== */
.search-card,.services-card,.admin-card{background:#fff;border:1px solid #e2e2e2;border-radius:4px;box-shadow:var(--shadow)}
.search-card{min-height:578px;padding:48px 28px 18px;text-align:center}
.search-card h1{font-size:28px;font-weight:400;margin:0 0 25px}
.lead{max-width:720px;margin:0 auto 37px;line-height:1.35;font-size:16px}
.search-form-wrap{width:min(560px,100%);margin:0 auto}
.floating-input{position:relative;height:61px;border:1px solid #cfd2d4;border-radius:6px;display:flex;align-items:center;text-align:left;background:#fff}
.floating-input.focused,.floating-input:focus-within{border-color:#d11d23;box-shadow:inset 0 0 0 1px #d11d23}
.floating-input span{position:absolute;left:13px;top:-8px;background:#fff;color:#5b5b5b;padding:0 5px;font-size:12px}
.floating-input input{width:100%;height:100%;border:0;outline:0;background:transparent;padding:13px 52px 3px 14px;font-size:16px}
.mic-icon{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:19px;height:25px}
.mic-icon:before{content:"";position:absolute;left:6px;top:1px;width:7px;height:13px;border:2px solid #111;border-radius:8px}
.mic-icon:after{content:"";position:absolute;left:4px;top:10px;width:11px;height:9px;border:2px solid #111;border-top:0;border-radius:0 0 9px 9px}
.mic-icon i{position:absolute;left:8px;top:19px;width:2px;height:5px;background:#111}
.switch-row{margin:28px auto 26px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:16px}
.switch-row input{display:none}
.switch{position:relative;width:42px;height:22px;border-radius:12px;background:#aaa}
.switch:before{content:"";position:absolute;left:-1px;top:0;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.captcha-box{width:255px;height:64px;margin:0 auto 24px;background:#f1f3f6;border:1px solid #df252a;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:12px;color:#111}
.captcha-check{width:21px;height:21px;border:2px solid #838383;display:inline-grid;place-items:center;font-size:17px;line-height:1;color:#fff}
.captcha-box.verified .captcha-check{border-color:#bd171d;background:#bd171d;color:#fff}
.privacy-line{margin:0 auto 8px;line-height:1.35;font-size:15px}
.accept-row{display:block;margin:0 0 14px;font-size:15px}
.accept-row input{width:18px;height:18px;accent-color:#bd171d;vertical-align:middle;margin-right:7px}
.btn{border:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 18px;font-weight:700;text-decoration:none}
.search-btn{background:var(--gov-red);color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.28);font-size:15px}
.search-btn:hover{background:var(--gov-red-dark)}
.search-icon{width:17px;height:17px;border:3px solid #fff;border-radius:50%;display:inline-block;position:relative}
.search-icon:after{content:"";position:absolute;width:7px;height:3px;background:#fff;right:-6px;bottom:-4px;transform:rotate(45deg);border-radius:2px}
.form-error{margin:13px auto 0;padding:10px 12px;border:1px solid #efb4b4;background:#fff3f3;color:#9f1313;border-radius:4px;font-size:14px}
.services-card{margin-top:14px;padding:37px 24px 40px;min-height:420px}
.services-card h2{text-align:center;font-size:26px;font-weight:400;margin:0 0 34px}
.service-grid{width:min(760px,100%);margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.service-tile{min-height:105px;background:#e7f4fb;box-shadow:0 2px 5px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;position:relative;text-align:center;color:#0055aa;font-size:17px;font-weight:700;padding:15px 95px 15px 18px}
.service-ico{position:absolute;right:20px;width:58px;height:58px;border:3px solid #0869bd;border-radius:8px;display:grid;place-items:center;font-size:28px;color:#0869bd}

/* ===================== CAPTCHA MODAL ===================== */
.modal-root{position:fixed;inset:0;z-index:9500}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42);display:grid;place-items:center;padding:22px}
.captcha-modal{width:min(710px,96vw);background:#fff;border-radius:5px;box-shadow:0 22px 70px rgba(0,0,0,.38);padding:28px}
.captcha-inner{border:2px solid #c61d22;border-radius:10px;padding:32px 48px 12px}
.captcha-inner h3{text-align:center;font-size:17px;margin:0 0 22px}
.captcha-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px 21px}
.captcha-card{aspect-ratio:1;background:#fff;border:1px solid #c9c9c9;border-radius:6px;overflow:hidden;padding:0;position:relative}
.captcha-card img{width:100%;height:100%;object-fit:cover;display:block}
.captcha-card:hover,.captcha-card:focus{outline:3px solid #c61d22;outline-offset:1px}
.captcha-actions{text-align:right;margin-top:29px}
.btn-danger{background:#bf171d;color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.22)}
.btn-danger:hover{background:#a21318}

/* ===================== INFO MODAL ===================== */
.info-modal{width:min(660px,96vw);min-height:420px;background:#fff;border-radius:5px;box-shadow:0 20px 60px rgba(0,0,0,.35);padding:47px 38px 30px;text-align:center}
.info-symbol{width:103px;height:103px;border:5px solid #bd171d;border-radius:50%;display:grid;place-items:center;margin:0 auto 35px;color:#bd171d;font-family:Georgia,serif;font-size:74px;line-height:1}
.info-modal h2{font-size:25px;font-weight:700;color:#4e4e4e;margin:0 0 40px}
.info-modal p{font-size:21px;margin:0 0 34px}
.local-note{display:block;margin-top:22px;color:#7b7b7b;font-size:10px;font-weight:700;letter-spacing:.07em}

/* ===================== SPINNER ===================== */
.overlay{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.72);display:grid;place-items:center}
.loading-center{width:150px;height:150px;position:relative;display:grid;place-items:center;color:#fff;text-align:center}
.spinner-ring{width:76px;height:76px;border-radius:50%;border:7px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .8s linear infinite;position:absolute;top:10px}
.spinner-word{position:absolute;top:92px;font-size:23px;font-weight:700}
.spinner-note{position:absolute;top:123px;font-size:9px;font-weight:700;letter-spacing:.15em;color:#ddd}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===================== RESULTS ===================== */
.result-shell{margin-top:-16px}
.result-head{background:#eaf1f8;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:28px max(65px,calc(50vw - 620px)) 38px}
.result-head h1{text-align:center;font-size:27px;font-weight:400;margin:0 0 34px}
.driver-data{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 180px;gap:24px 55px;align-items:end}
.data-block{border-bottom:1px solid #8d9399;padding:0 5px 7px}
.data-block small,.license-fields small{font-size:11px;color:#777}
.data-block p,.license-fields p{margin:5px 0 0;font-size:14px}
.driver-icon{grid-column:3;grid-row:1/3;display:flex;justify-content:center;align-items:center;padding-bottom:14px}
.id-card-icon{width:86px;height:60px;border:4px solid #056fc7;border-radius:5px;position:relative}
.id-card-icon:before{content:"";position:absolute;left:12px;top:12px;width:20px;height:20px;border:3px solid #056fc7;border-radius:50%}
.id-card-icon:after{content:"";position:absolute;left:10px;bottom:7px;width:25px;height:13px;border:3px solid #056fc7;border-radius:13px 13px 4px 4px}
.id-card-lines{position:absolute;right:8px;top:14px;width:34px;height:4px;background:#056fc7;box-shadow:0 11px 0 #056fc7,0 22px 0 #056fc7}
.tabs{display:flex;border-bottom:1px solid #d9d9d9;overflow:auto;margin-top:0}
.tabs button{background:#fff;border:0;border-bottom:2px solid transparent;padding:16px 38px 15px;color:#757575;font-weight:700;white-space:nowrap;font-size:14px}
.tabs button.active{border-bottom-color:#e11f26;color:#666}
.tabs .tab-ico{color:#d56f72;margin-right:8px}
.license-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:27px 13px 0;max-width:1050px}
.license-card{background:#fff;border:1px solid #ddd;box-shadow:0 2px 4px rgba(0,0,0,.2);padding:27px 29px 28px;min-height:345px}
.license-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.license-title h3{font-size:17px;margin:0 0 29px;font-weight:700}
.status-ok{color:#008a3e}.status-warn{color:#b36800}
.vehicle-icon{width:44px;height:44px;position:relative;flex:0 0 auto}
.vehicle-icon.car:before{content:"";position:absolute;left:3px;top:14px;width:36px;height:18px;border-radius:5px;background:#242424}
.vehicle-icon.car:after{content:"";position:absolute;left:9px;top:5px;width:24px;height:16px;border-radius:10px 10px 0 0;background:#242424;box-shadow:-3px 27px 0 -7px #242424,21px 27px 0 -7px #242424}
.vehicle-icon.bike:before{content:"";position:absolute;left:1px;bottom:3px;width:13px;height:13px;border:3px solid #242424;border-radius:50%;box-shadow:27px 0 0 -3px #fff,27px 0 0 0 #242424}
.vehicle-icon.bike:after{content:"";position:absolute;left:10px;top:11px;width:27px;height:3px;background:#242424;transform:rotate(-18deg);box-shadow:7px 7px 0 #242424}
.license-fields{display:grid;grid-template-columns:1fr 1fr;gap:21px 35px}
.license-fields>div{border-bottom:1px solid #91969a;padding:0 5px 7px}
.license-fields .wide{grid-column:1/-1}
.result-actions{padding:24px 12px 8px}
.btn-outline{background:#fff;border:1px solid #bac2c9;color:#28323b}
.empty-state{padding:30px;color:#777}

/* ===================== ADMIN ===================== */
.admin-card{padding:28px}
.admin-card h1{margin:0 0 7px}.admin-card h2{font-size:18px;margin:25px 0 14px}
.admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #e0e4e7;padding-bottom:18px}
.admin-card-head p{margin:0;color:#687078}
.badge-demo{font-size:11px;background:#27313b;color:#fff;padding:7px 9px;border-radius:3px}
.form-grid{display:grid;gap:16px}.form-grid.two{grid-template-columns:1fr 1fr}
.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.form-grid input,.form-grid select,.table-tools input,.inline-user-form input,.inline-user-form select{border:1px solid #c9d0d6;border-radius:4px;padding:10px;background:#fff}
.span-2{grid-column:1/-1}.check-label{flex-direction:row!important;align-items:center!important;margin-top:10px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.btn-primary{background:#2f80bb;color:#fff}.btn-secondary{background:#3f83b6;color:#fff}
.license-editor{border:1px solid #d9dfe4;border-radius:5px;background:#fafbfc;padding:17px;margin-bottom:14px}
.license-editor-head{display:flex;justify-content:space-between;margin-bottom:13px}
.mini-btn,.mini-danger{border:1px solid #bcc4ca;background:#fff;padding:6px 9px;border-radius:3px;color:#1f2933;font-size:12px}.mini-danger{border-color:#e5a2a2;color:#9a1717}
.admin-actions{display:flex;gap:10px;margin-top:20px}.table-tools{display:flex;gap:8px;margin:18px 0}.table-tools input{flex:1}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:11px;border-bottom:1px solid #e2e6e9;text-align:left;font-size:13px}.table-wrap th{background:#f5f7f9}.actions{display:flex;gap:5px;flex-wrap:wrap}.inline-user-form{display:grid;grid-template-columns:1fr 1.5fr 1.3fr 1fr 1.3fr auto;gap:8px;margin:20px 0}

/* ===================== LOGIN ===================== */
.login-body{min-height:100vh;overflow:auto;background:#111}
.login-bg{position:fixed;inset:0;background-size:cover;background-position:center center;background-repeat:no-repeat;opacity:0;transition:opacity 2s ease;z-index:0;will-change:opacity}
.login-bg.active{opacity:1}
.login-body:after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.04);z-index:1;pointer-events:none}
.login-local-label{position:fixed;right:18px;top:16px;z-index:5;background:rgba(0,0,0,.64);color:#fff;padding:7px 10px;border-radius:4px;font-size:11px;font-weight:700;letter-spacing:.06em}
.login-wrap{position:relative;z-index:2;min-height:100vh;padding:59px 16px 35px;display:flex;justify-content:center;align-items:flex-start}
.login-panel{width:565px;max-width:96vw;background:#fff;border-radius:5px;box-shadow:0 12px 35px rgba(0,0,0,.35);overflow:hidden}
.login-header{background:#f4f4f4;border-bottom:1px solid #d9d9d9;padding:10px 18px 6px;text-align:center}
.login-brand{height:108px;border:1px solid #d3d3d3;background:#fff;display:grid;grid-template-columns:105px 105px 1fr;align-items:stretch;text-align:left;overflow:hidden}
.login-crest{display:grid;place-items:center;font-size:27px;font-weight:800;color:#bf171d;background:#fff;border-right:1px solid #eee}
.login-peru{display:grid;place-items:center;background:#ed1c24;color:#fff;font-size:30px;font-weight:400}
.login-ministry{background:#5c5c5e;color:#fff;padding:11px 14px;font-size:22px;line-height:1.05;display:flex;align-items:center}
.login-header strong{font-size:14px;display:block;margin-top:3px}
.login-content{padding:60px 66px 35px}
.input-row{height:47px;border:1px solid #c9cdd1;border-radius:4px;display:flex;margin-bottom:16px;overflow:hidden;background:#fff}
.input-icon{width:45px;display:grid;place-items:center;background:#f0f0f0;border-right:1px solid #c9cdd1;color:#666;font-size:14px}
.lock-icon{font-size:12px}
.input-row input{flex:1;border:0;outline:0;padding:0 14px;font-size:15px}
.login-primary{width:100%;height:54px;background:#337fb9;color:#fff;font-size:20px;font-weight:400;border-radius:5px;margin-top:8px}
.login-secondary{margin-top:6px}
.login-footer{background:#f3f3f3;border-top:1px solid #d9d9d9;text-align:center;color:#8a8a8a;padding:10px 18px 17px;font-size:13px;line-height:1.55}
.login-footer h5{font-size:15px;font-weight:400;margin:8px 0 6px}.login-footer ul{list-style:none;margin:0;padding:0}.login-footer a{color:#1673b9}.new-text{color:red}

/* ===================== RESPONSIVE ===================== */
@media(max-width:900px){
  .gov-subtitle,.gov-divider{display:none}.environment-pill{font-size:9px}.page-width{width:min(100% - 24px,1260px)}
  .driver-data{grid-template-columns:1fr 1fr}.driver-icon{display:none}.license-grid{grid-template-columns:1fr}.service-grid{grid-template-columns:1fr}
  .tabs button{padding-left:18px;padding-right:18px}.inline-user-form{grid-template-columns:1fr 1fr}.admin-spacer,.admin-user{display:none}
}
@media(max-width:620px){
  .gov-header{height:64px}.gov-title{font-size:24px}.gov-symbol{width:31px;height:31px}.environment-pill{display:none}.crumb-strip{height:48px}.breadcrumbs{font-size:14px;gap:8px}.breadcrumbs .chev{font-size:24px}
  .search-card{padding:30px 15px 18px;min-height:auto}.search-card h1{font-size:23px}.lead{font-size:14px;margin-bottom:28px}.floating-input{height:57px}.services-card{padding:28px 14px}.service-grid{width:100%}
  .captcha-grid{grid-template-columns:repeat(2,1fr);gap:12px}.captcha-inner{padding:22px 18px 10px}.info-modal{min-height:340px;padding:35px 20px 24px}.info-modal p{font-size:17px}.info-symbol{width:84px;height:84px;font-size:60px}
  .result-head{padding:24px 18px 30px}.result-head h1{font-size:24px}.driver-data{grid-template-columns:1fr;gap:20px}.license-fields{grid-template-columns:1fr}.license-fields .wide{grid-column:auto}.license-card{padding:23px 20px}.tabs{margin-left:-12px;margin-right:-12px}
  .form-grid.two,.inline-user-form{grid-template-columns:1fr}.span-2{grid-column:auto}.admin-card{padding:18px}.admin-card-head{flex-direction:column}.table-tools{flex-direction:column}
  .login-wrap{padding:46px 10px 20px}.login-panel{width:96vw}.login-content{padding:40px 25px 28px}.login-brand{height:88px;grid-template-columns:78px 84px 1fr}.login-peru{font-size:23px}.login-ministry{font-size:16px;padding:8px}.login-crest{font-size:20px}.login-primary{height:50px;font-size:18px}.login-local-label{right:8px;top:8px;font-size:9px}
}

/* ===================== PRESENTATION REFINEMENTS v4 ===================== */
.presentation-mark{
  position:fixed;right:12px;bottom:8px;z-index:9800;
  font-size:10px;line-height:1;color:rgba(70,70,70,.62);
  background:rgba(255,255,255,.72);padding:4px 6px;border-radius:3px;
  pointer-events:none;letter-spacing:.02em
}
.presentation-mark-login{color:rgba(255,255,255,.82);background:rgba(0,0,0,.20)}

.gov-header{height:73px;background:#c51b1f}
.gov-header-inner{justify-content:flex-start}
.gov-brand{gap:13px}
.gov-symbol{width:41px;height:41px;border:0;border-radius:0;position:relative;background:transparent}
.gov-symbol:before{content:"";position:absolute;left:8px;top:4px;width:24px;height:28px;border:2px solid #fff;border-radius:2px 2px 9px 9px;opacity:.96}
.gov-symbol:after{content:"";position:absolute;left:14px;top:9px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;box-shadow:0 13px 0 -3px #c51b1f,0 13px 0 -1px #fff}
.gov-symbol span{display:none}
.gov-title{font-size:30px;letter-spacing:-.5px}
.gov-divider{height:40px}
.gov-subtitle{font-size:16px}
.crumb-strip{height:57px;background:#f0f2f5}
.breadcrumbs{font-size:17px;gap:12px}
.app-shell{padding-top:16px}
.search-card{border-color:#e4e4e4;box-shadow:0 2px 5px rgba(0,0,0,.18);padding-top:45px}
.search-card h1{font-size:29px;margin-bottom:25px}
.lead{font-size:15.7px;line-height:1.35;margin-bottom:39px}
.search-form-wrap{width:min(555px,100%)}
.floating-input{height:60px;border-radius:5px}
.floating-input input{font-size:16px}
.switch-row{margin-top:28px}
.captcha-box{height:63px;width:255px;background:#f2f3f6}
.search-btn{padding:10px 19px}
.services-card{box-shadow:0 2px 5px rgba(0,0,0,.18)}

/* modal proportions closer to reference */
.modal-backdrop{background:rgba(0,0,0,.42)}
.info-modal{width:min(660px,94vw);min-height:390px;padding-top:45px}
.info-symbol{width:102px;height:102px;font-size:72px;margin-bottom:33px}
.info-modal h2{font-size:24px;margin-bottom:37px}
.info-modal p{font-size:21px;margin-bottom:34px}
.captcha-modal{width:min(710px,95vw)}

/* spinner */
.loading-center{height:128px}
.spinner-ring{width:72px;height:72px;top:4px;border-width:6px}
.spinner-word{top:86px;font-size:23px}

/* result screen */
.result-head{background:#eaf2fa;padding-top:28px;padding-bottom:38px}
.result-head h1{font-size:27px;margin-bottom:34px}
.driver-data{max-width:1000px}
.tabs{max-width:1025px}
.license-grid{max-width:1025px;gap:7px;padding-top:27px}
.license-card{min-height:344px}

/* login icons and captcha */
.login-wrap{padding-top:59px}
.login-panel{width:565px}
.login-header{padding:9px 18px 6px}
.login-brand{height:107px;grid-template-columns:105px 105px 1fr}
.login-crest{position:relative;font-size:0}
.crest-mark{font-size:20px;font-weight:800;color:#b71319;border:2px solid #b71319;padding:10px 7px;border-radius:50%;position:relative}
.crest-mark:after{content:"REPÚBLICA DEL PERÚ";position:absolute;left:50%;top:-17px;transform:translateX(-50%);font-size:6px;white-space:nowrap;color:#333;font-weight:700}
.login-peru{background:#ed1c24;font-size:29px}
.login-ministry{font-size:22px;line-height:1.03;background:#5a5a5c}
.login-content{padding:59px 66px 33px}
.input-row{height:47px;margin-bottom:16px}
.input-icon{position:relative;font-size:0}
.user-icon:before{content:"";position:absolute;left:17px;top:9px;width:11px;height:11px;border-radius:50%;background:#666}
.user-icon:after{content:"";position:absolute;left:13px;top:21px;width:19px;height:15px;border-radius:10px 10px 3px 3px;background:#666}
.lock-icon:before{content:"";position:absolute;left:16px;top:20px;width:14px;height:13px;border-radius:2px;background:#666}
.lock-icon:after{content:"";position:absolute;left:18px;top:12px;width:10px;height:11px;border:3px solid #666;border-bottom:0;border-radius:8px 8px 0 0}
.login-captcha-row{margin-bottom:10px}
.login-captcha-input{margin-bottom:0}
.login-captcha-media{display:flex;align-items:center;height:49px;margin-left:45px;margin-top:-1px}
.login-captcha-media img{width:165px;height:48px;border:1px solid #b8b8b8;background:#fff;display:block}
.captcha-refresh{width:32px;height:32px;border:1px solid #c7c7c7;background:#fff;border-radius:4px;font-size:22px;line-height:1;color:#1d3650;margin-left:4px;padding:0}
.login-primary{height:54px;margin-top:8px;font-weight:400}
.login-secondary{margin-top:6px}
.login-footer{padding-top:8px;padding-bottom:15px}
.login-footer h5{margin-top:7px}

@media(max-width:900px){
  .presentation-mark{font-size:9px}
  .gov-title{font-size:27px}
}
@media(max-width:620px){
  .presentation-mark{right:7px;bottom:6px;font-size:8px}
  .login-captcha-media{margin-left:0;justify-content:center}
  .login-brand{grid-template-columns:78px 84px 1fr}
  .crest-mark{font-size:14px;padding:8px 5px}
}

/* ===================== LOGIN REFINEMENTS v5 ===================== */
.login-header{
  background:#f4f4f4;
  border-bottom:1px solid #d7d7d7;
  padding:10px 18px 6px;
  text-align:center;
}
.login-logo-mtc{
  display:block;
  width:100%;
  max-width:525px;
  height:auto;
  margin:0 auto 2px;
  background:#fff;
}
.login-header strong{
  display:block;
  margin-top:1px;
  font-size:14px;
  line-height:1.15;
  color:#222;
}
.login-content{padding:60px 66px 34px}
.login-captcha-row{margin-bottom:12px}
.login-captcha-input{margin-bottom:0}
.login-captcha-media{display:flex;align-items:center;margin-left:45px;margin-top:0;height:49px}
.login-captcha-media img{
  display:block;
  width:165px;
  height:48px;
  object-fit:cover;
  border:1px solid #c9cdd1;
  cursor:pointer;
  background:#fff;
}
.captcha-refresh{
  width:28px;
  height:28px;
  padding:0;
  margin-left:3px;
  border:1px solid #c9cdd1;
  border-radius:3px;
  background:#fff;
  color:#315b80;
  font-size:19px;
  line-height:1;
  cursor:pointer;
}
.login-error{
  margin-top:12px;
  border:1px solid #dc9d9d;
  background:#fff0f0;
  color:#9f1d1d;
  padding:9px 11px;
  border-radius:3px;
  font-size:12px;
  line-height:1.35;
}
@media(max-width:620px){
  .login-logo-mtc{max-width:100%}
  .login-content{padding:38px 25px 28px}
  .login-captcha-media{margin-left:45px}
}

/* ===================== RESULT / HEADER REFINEMENTS v6 ===================== */
.gov-header{
  height:74px;
  background:#b71c1c;
}
.gov-header-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.gov-logo-complete{
  display:block;
  width:auto;
  height:61px;
  max-width:min(610px,100%);
  object-fit:contain;
  object-position:left center;
}
.crumb-strip{
  height:56px;
  background:#eef1f5;
  border-bottom:0;
}
.breadcrumbs{
  font-size:17px;
  gap:12px;
}
.breadcrumbs a{
  color:#001cc8;
  font-weight:700;
}
.breadcrumbs .chev{
  color:#111;
  font-size:31px;
}

/* Admin navigation is deliberately shown only on admin routes. */
.admin-bar{box-shadow:0 1px 3px rgba(0,0,0,.2)}
.admin-fab{
  position:fixed;
  right:42px;
  bottom:28px;
  z-index:1200;
  width:64px;
  height:64px;
  border:0;
  border-radius:50%;
  background:#c7191e;
  color:#fff;
  font-size:36px;
  line-height:1;
  font-weight:300;
  box-shadow:0 5px 14px rgba(0,0,0,.32);
}
.admin-fab:hover{background:#a91318;transform:translateY(-1px)}

.material-svg{
  display:inline-block;
  width:24px;
  height:24px;
  fill:currentColor;
  flex:0 0 auto;
}

.result-shell{margin-top:-16px;padding-bottom:18px}
.result-head{
  background:#eaf2fa;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:31px max(32px,calc(50vw - 630px)) 46px;
}
.result-head h1{
  text-align:center;
  font-size:28px;
  font-weight:400;
  margin:0 0 42px;
}
.driver-data{
  max-width:1260px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 210px;
  grid-template-rows:auto auto auto;
  column-gap:54px;
  row-gap:27px;
  align-items:end;
}
.driver-heading{
  grid-column:1 / 3;
  font-size:20px;
  font-weight:700;
  margin-bottom:-10px;
}
.data-block{
  min-height:54px;
  border-bottom:1px solid #8d9399;
  padding:0 6px 8px;
}
.data-block small,.license-fields small{
  display:block;
  font-size:11px;
  line-height:1.2;
  color:#858585;
}
.data-block p,.license-fields p{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.2;
}
.driver-icon{
  grid-column:3;
  grid-row:2 / 4;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 12px;
}
.driving-license-img{
  width:112px;
  height:98px;
  object-fit:contain;
  display:block;
}

.tabs{
  width:100%;
  max-width:1260px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-bottom:1px solid #d6d6d6;
  overflow:visible;
}
.tabs button{
  min-width:0;
  height:64px;
  background:#fff;
  border:0;
  border-bottom:2px solid transparent;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  color:#747474;
  font-weight:700;
  white-space:nowrap;
  font-size:14px;
}
.tabs button.active{
  border-bottom-color:#e21d24;
  color:#6a6a6a;
}
.tab-svg{
  width:25px;
  height:25px;
  color:#d97479;
}

.license-grid{
  width:100%;
  max-width:1260px;
  margin:0 auto;
  padding:34px 13px 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.license-grid.single{grid-template-columns:1fr}
.license-grid.multi{grid-template-columns:repeat(2,minmax(0,1fr))}
.license-card{
  width:100%;
  min-height:365px;
  background:#fff;
  border:1px solid #dedede;
  border-radius:3px;
  box-shadow:0 2px 5px rgba(0,0,0,.22);
  padding:32px 34px 31px;
}
.license-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.license-title h3{
  margin:0 0 36px;
  font-size:17px;
  line-height:1.25;
  font-weight:700;
}
.status-ok{color:#00873b}
.vehicle-material-icon{
  width:48px;
  height:48px;
  color:#262626;
  margin-top:-7px;
}
.license-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px 30px;
}
.license-fields>div{
  min-height:45px;
  border-bottom:1px solid #929292;
  padding:0 5px 7px;
}
.license-fields .wide{grid-column:1/-1}

.social-row{
  width:100%;
  max-width:1260px;
  margin:34px auto 0;
  padding:0 19px;
  display:flex;
  align-items:center;
  gap:92px;
}
.social-icon{
  width:25px;
  height:25px;
  color:#050505;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  line-height:1;
}
.social-letter{display:inline-flex;align-items:center;justify-content:center}
.facebook-letter{
  width:22px;height:22px;border-radius:2px;background:#050505;color:#fff;
  font:bold 22px/25px Arial;align-items:flex-end;padding-left:6px;
}
.social-paper{font-size:20px;transform:rotate(-18deg)}
.twitter-letter{font-size:0;position:relative;width:23px;height:20px}
.twitter-letter:before{
  content:"";position:absolute;left:3px;top:7px;width:14px;height:10px;background:#050505;
  border-radius:60% 45% 55% 55%;transform:rotate(-8deg)
}
.twitter-letter:after{
  content:"";position:absolute;right:2px;top:4px;border-left:7px solid #050505;border-top:4px solid transparent;border-bottom:4px solid transparent;transform:rotate(-15deg)
}
.linkedin-letter{
  width:22px;height:22px;border-radius:50%;background:#050505;color:#fff;
  font:bold 11px/22px Arial;
}
.whatsapp-letter{
  width:22px;height:22px;border:2px solid #050505;border-radius:50%;font-size:0;position:relative
}
.whatsapp-letter:before{content:"";position:absolute;left:6px;top:5px;width:7px;height:9px;border-left:2px solid #050505;border-bottom:2px solid #050505;transform:rotate(-35deg);border-radius:0 0 0 5px}
.whatsapp-letter:after{content:"";position:absolute;left:1px;bottom:-4px;border-top:6px solid #050505;border-right:5px solid transparent;transform:rotate(18deg)}

/* Search screen keeps the public layout even when the admin session is active. */
.search-card,.services-card{max-width:1260px;margin-left:auto;margin-right:auto}

@media(max-width:900px){
  .gov-logo-complete{height:54px;max-width:520px}
  .driver-data{grid-template-columns:1fr 1fr 140px;column-gap:28px}
  .driving-license-img{width:90px;height:80px}
  .tabs{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}
  .license-grid{grid-template-columns:1fr!important;padding-left:0;padding-right:0}
  .social-row{gap:58px}
  .admin-fab{right:22px;bottom:22px}
}
@media(max-width:620px){
  .gov-header{height:64px}
  .gov-logo-complete{height:48px;max-width:100%}
  .crumb-strip{height:48px}
  .breadcrumbs{font-size:14px;gap:8px}
  .result-head{padding:25px 18px 34px}
  .result-head h1{font-size:23px;margin-bottom:30px}
  .driver-data{grid-template-columns:1fr;grid-template-rows:auto;row-gap:20px}
  .driver-heading{grid-column:1;font-size:18px;margin-bottom:0}
  .driver-icon{grid-column:1;grid-row:auto;justify-content:flex-start;padding:4px 6px 0}
  .driving-license-img{width:84px;height:72px}
  .tabs{margin-left:0;margin-right:0}
  .tabs button{height:58px;padding:0 16px;font-size:13px;gap:8px}
  .tab-svg{width:22px;height:22px}
  .license-grid{padding-top:24px}
  .license-card{padding:24px 20px;min-height:auto}
  .license-title h3{font-size:16px;margin-bottom:28px}
  .vehicle-material-icon{width:42px;height:42px}
  .license-fields{grid-template-columns:1fr;gap:21px}
  .license-fields .wide{grid-column:auto}
  .social-row{gap:0;justify-content:space-between;padding:0 12px;margin-top:28px}
  .admin-fab{width:56px;height:56px;font-size:31px;right:16px;bottom:16px}
}

/* ===================== RESULT POLISH v7 ===================== */
/* Desktop result view is intentionally compact so the public result fits cleanly
   in common presentation resolutions without visible browser scrollbars. */
html,body{max-width:100%;overflow-x:hidden}
html.result-mode,html.result-mode body{scrollbar-width:none;-ms-overflow-style:none}
html.result-mode::-webkit-scrollbar,html.result-mode body::-webkit-scrollbar{width:0;height:0;display:none}

.result-mode .gov-header{height:67px}
.result-mode .gov-logo-complete{height:55px}
.result-mode .crumb-strip{height:50px}
.result-mode .breadcrumbs{font-size:15px;gap:11px}
.result-mode .breadcrumbs .chev{font-size:28px}
.result-mode .app-shell{padding-top:14px;padding-bottom:10px}
.result-mode .result-shell{margin-top:-14px;padding-bottom:8px}

.result-mode .result-head{
  padding-top:28px;
  padding-bottom:40px;
}
.result-mode .result-head h1{
  font-size:25px;
  margin-bottom:35px;
}
.result-mode .driver-data{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 188px;
  grid-template-rows:auto auto auto;
  column-gap:49px;
  row-gap:24px;
}
.result-mode .driver-heading{
  grid-column:1 / 3;
  grid-row:1;
  font-size:18px;
  margin-bottom:-8px;
}
.result-mode .driver-last-names{grid-column:1;grid-row:2}
.result-mode .driver-first-names{grid-column:2;grid-row:2}
.result-mode .driver-doc-type{grid-column:1;grid-row:3}
.result-mode .driver-doc-number{grid-column:2;grid-row:3}
.result-mode .driver-icon{grid-column:3;grid-row:2 / 4;padding-bottom:10px}
.result-mode .data-block{min-height:49px;padding:0 5px 7px}
.result-mode .data-block small,.result-mode .license-fields small{font-size:10px}
.result-mode .data-block p,.result-mode .license-fields p{font-size:13px;margin-top:5px}
.result-mode .driving-license-img{width:101px;height:88px}

.result-mode .tabs{
  overflow:hidden;
  scrollbar-width:none;
}
.result-mode .tabs::-webkit-scrollbar{display:none}
.result-mode .tabs button{
  height:58px;
  padding:0 20px;
  gap:10px;
  font-size:13px;
}
.result-mode .tab-img{
  display:block;
  width:23px;
  height:23px;
  object-fit:contain;
  flex:0 0 23px;
}

.result-mode .license-grid{
  padding-top:30px;
  padding-left:12px;
  padding-right:12px;
  gap:8px;
}
.result-mode .license-card{
  min-height:328px;
  padding:29px 31px 28px;
}
.result-mode .license-title h3{
  margin-bottom:32px;
  font-size:15px;
}
.result-mode .vehicle-material-icon{
  width:43px;
  height:43px;
  margin-top:-6px;
}
.result-mode .license-fields{
  gap:25px 27px;
}
.result-mode .license-fields>div{
  min-height:41px;
  padding:0 5px 6px;
}

.result-mode .social-row{
  margin-top:28px;
  padding:0 18px;
  gap:87px;
}
.result-mode .social-button{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  padding:8px;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease;
}
.result-mode .social-button:hover{background:#f0f0f0}
.result-mode .social-img{
  display:block;
  width:20px;
  height:20px;
  object-fit:contain;
}
.result-mode .social-icon{display:none!important}
.result-mode .admin-fab{
  width:58px;
  height:58px;
  font-size:32px;
  right:36px;
  bottom:20px;
}

@media(max-width:900px){
  html.result-mode,html.result-mode body{overflow-y:auto}
  .result-mode .driver-data{grid-template-columns:1fr 1fr 126px;column-gap:25px}
  .result-mode .driver-heading{grid-column:1/3}
  .result-mode .driver-icon{grid-column:3;grid-row:2/4}
  .result-mode .tabs{grid-template-columns:repeat(5,minmax(128px,1fr));overflow-x:auto}
  .result-mode .social-row{gap:44px}
}
@media(max-width:620px){
  .result-mode .gov-header{height:58px}
  .result-mode .gov-logo-complete{height:43px}
  .result-mode .crumb-strip{height:44px}
  .result-mode .result-head{padding:22px 16px 29px}
  .result-mode .result-head h1{font-size:21px;margin-bottom:26px}
  .result-mode .driver-data{grid-template-columns:1fr;row-gap:17px}
  .result-mode .driver-heading,
  .result-mode .driver-last-names,
  .result-mode .driver-first-names,
  .result-mode .driver-doc-type,
  .result-mode .driver-doc-number,
  .result-mode .driver-icon{grid-column:1;grid-row:auto}
  .result-mode .driver-icon{justify-content:flex-start}
  .result-mode .tabs button{height:53px;padding:0 14px;font-size:12px}
  .result-mode .tab-img{width:21px;height:21px;flex-basis:21px}
  .result-mode .license-grid{padding-top:22px}
  .result-mode .license-card{padding:22px 18px;min-height:auto}
  .result-mode .license-title h3{font-size:15px;margin-bottom:24px}
  .result-mode .license-fields{grid-template-columns:1fr;gap:18px}
  .result-mode .social-row{justify-content:space-between;gap:0;padding:0 8px;margin-top:22px}
  .result-mode .admin-fab{width:52px;height:52px;font-size:29px;right:14px;bottom:14px}
}

/* ===================== SEARCH PRESENTATION POLISH v8 ===================== */
.presentation-demo-badge{
  margin-left:auto;
  flex:0 0 auto;
  color:#fff;
  border:1px solid rgba(255,255,255,.82);
  border-radius:3px;
  padding:5px 8px 4px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1;
  background:rgba(120,0,0,.18);
}
.login-demo-badge{
  display:inline-block;
  margin:4px auto 0;
  padding:3px 7px;
  border:1px solid #c7c7c7;
  border-radius:3px;
  color:#666;
  font-size:9px;
  line-height:1;
  letter-spacing:.08em;
  font-weight:700;
}

/* Important notice displayed whenever the public search is entered. */
.notice-backdrop{background:rgba(0,0,0,.36)}
.entry-notice-modal{
  width:min(635px,92vw);
  background:#fff;
  border-radius:4px;
  box-shadow:0 20px 58px rgba(0,0,0,.32);
  padding:20px;
  text-align:left;
}
.entry-notice-frame{
  border:2px solid #bf171d;
  border-radius:9px;
  padding:16px 17px 9px;
}
.entry-notice-banner{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#bf171d;
  color:#fff;
  font-size:25px;
  font-weight:700;
  line-height:1;
  margin:0 0 15px;
}
.entry-notice-modal h2{
  margin:0 0 20px;
  text-align:center;
  font-size:20px;
  line-height:1.2;
  font-weight:700;
  color:#242424;
}
.entry-notice-copy{
  font-size:14px;
  line-height:1.40;
  color:#2d2d2d;
}
.entry-notice-copy p{margin:0 0 14px;text-align:justify}
.entry-notice-copy ul{margin:0 0 8px 21px;padding:0}
.entry-notice-copy li{margin:0 0 8px;padding-left:2px;text-align:justify}
.entry-notice-copy a{color:#001be6;text-decoration:underline}
.entry-notice-actions{
  min-height:48px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-top:4px;
}
.entry-notice-actions .btn-danger{
  min-width:76px;
  min-height:38px;
  padding:7px 15px;
  font-size:14px;
  border-radius:4px;
}

/* Service cards now use the same image assets/fallback silhouette treatment. */
.services-card{padding-top:37px}
.service-grid{width:min(790px,100%);gap:17px 18px}
.service-tile{
  min-height:105px;
  justify-content:center;
  padding:15px 100px 15px 18px;
  overflow:hidden;
}
.service-tile>span{display:block;line-height:1.18}
.service-img{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  width:72px;
  height:72px;
  object-fit:contain;
}
.service-img-moto{width:78px;height:70px}
.service-ico{display:none!important}

@media(max-width:900px){
  .presentation-demo-badge{font-size:9px;padding:4px 6px}
  .service-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .entry-notice-modal{width:min(610px,94vw);padding:14px}
  .entry-notice-frame{padding:12px 13px 7px}
  .entry-notice-banner{min-height:45px;font-size:21px}
  .entry-notice-modal h2{font-size:18px;margin-bottom:15px}
  .entry-notice-copy{font-size:13.5px}
  .service-grid{grid-template-columns:1fr}
  .service-tile{min-height:94px;font-size:15px;padding-right:90px}
  .service-img{width:62px;height:62px}
}


/* ===================== PUBLIC COMPACT SCALE v10 ===================== */
/* The public search and result screens are reduced about 10% versus v9.
   Admin and login screens are intentionally unaffected. */
html.search-mode,html.search-mode body,
html.result-mode,html.result-mode body{
  max-width:100%;
  overflow-x:hidden;
}

/* Search screen */
.search-mode .gov-header{height:67px}
.search-mode .gov-logo-complete{height:55px;max-width:min(550px,100%)}
.search-mode .crumb-strip{height:50px}
.search-mode .breadcrumbs{font-size:15px;gap:11px}
.search-mode .breadcrumbs .chev{font-size:28px}
.search-mode .app-shell{padding:14px 0 26px}
.search-mode .page-width{width:min(1134px,calc(100% - 38px))}
.search-mode .search-card{
  min-height:520px;
  padding:41px 25px 16px;
}
.search-mode .search-card h1{font-size:25px;margin-bottom:22px}
.search-mode .lead{max-width:650px;font-size:14px;line-height:1.34;margin-bottom:33px}
.search-mode .search-form-wrap{width:min(504px,100%)}
.search-mode .floating-input{height:55px;border-radius:5px}
.search-mode .floating-input span{left:12px;top:-7px;font-size:11px;padding:0 4px}
.search-mode .floating-input input{padding:12px 47px 3px 13px;font-size:14.5px}
.search-mode .mic-icon{right:16px;transform:translateY(-50%) scale(.9)}
.search-mode .switch-row{margin:25px auto 23px;gap:8px;font-size:14.5px}
.search-mode .switch{width:38px;height:20px;border-radius:11px}
.search-mode .switch:before{width:20px;height:20px}
.search-mode .captcha-box{width:230px;height:58px;margin-bottom:22px;gap:11px;font-size:14px}
.search-mode .captcha-check{width:19px;height:19px;font-size:15px}
.search-mode .privacy-line{font-size:13.5px;margin-bottom:7px}
.search-mode .accept-row{font-size:13.5px;margin-bottom:13px}
.search-mode .accept-row input{width:16px;height:16px;margin-right:6px}
.search-mode .search-btn{font-size:13.5px;padding:9px 17px}
.search-mode .search-icon{width:15px;height:15px;border-width:2px}
.search-mode .services-card{margin-top:13px;padding:33px 22px 36px;min-height:378px}
.search-mode .services-card h2{font-size:23px;margin-bottom:30px}
.search-mode .service-grid{width:min(711px,100%);gap:15px 16px}
.search-mode .service-tile{min-height:95px;font-size:15.3px;padding:14px 90px 14px 16px}
.search-mode .service-img{right:14px;width:65px;height:65px}
.search-mode .service-img-moto{width:70px;height:63px}

/* Search entry notice follows the same compact visual scale. */
.search-mode .entry-notice-modal{width:min(572px,92vw);padding:18px}
.search-mode .entry-notice-frame{padding:14px 15px 8px}
.search-mode .entry-notice-banner{min-height:45px;font-size:22.5px;margin-bottom:14px}
.search-mode .entry-notice-modal h2{font-size:18px;margin-bottom:18px}
.search-mode .entry-notice-copy{font-size:12.7px;line-height:1.38}
.search-mode .entry-notice-copy p{margin-bottom:12px}
.search-mode .entry-notice-copy li{margin-bottom:7px}
.search-mode .entry-notice-actions{min-height:43px}
.search-mode .entry-notice-actions .btn-danger{min-width:68px;min-height:34px;padding:6px 14px;font-size:12.5px}

/* Result screen: an additional ~10% reduction from v9. */
.result-mode .page-width{width:min(1134px,calc(100% - 38px))}
.result-mode .gov-header{height:60px}
.result-mode .gov-logo-complete{height:50px;max-width:min(550px,100%)}
.result-mode .crumb-strip{height:45px}
.result-mode .breadcrumbs{font-size:13.5px;gap:10px}
.result-mode .breadcrumbs .chev{font-size:25px}
.result-mode .app-shell{padding-top:12px;padding-bottom:8px}
.result-mode .result-shell{margin-top:-12px;padding-bottom:7px}
.result-mode .result-head{padding-top:25px;padding-bottom:36px}
.result-mode .result-head h1{font-size:22.5px;margin-bottom:31px}
.result-mode .driver-data{
  max-width:1134px;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 169px;
  column-gap:44px;
  row-gap:22px;
}
.result-mode .driver-heading{font-size:16px;margin-bottom:-7px}
.result-mode .data-block{min-height:44px;padding:0 5px 6px}
.result-mode .data-block small,.result-mode .license-fields small{font-size:9px}
.result-mode .data-block p,.result-mode .license-fields p{font-size:11.7px;margin-top:4px}
.result-mode .driving-license-img{width:91px;height:79px}
.result-mode .tabs{max-width:1134px}
.result-mode .tabs button{height:52px;padding:0 18px;gap:9px;font-size:11.7px}
.result-mode .tab-img{width:21px;height:21px;flex-basis:21px}
.result-mode .license-grid{max-width:1134px;padding-top:27px;padding-left:11px;padding-right:11px;gap:7px}
.result-mode .license-card{min-height:295px;padding:26px 28px 25px}
.result-mode .license-title h3{margin-bottom:29px;font-size:13.5px}
.result-mode .vehicle-material-icon{width:39px;height:39px;margin-top:-5px}
.result-mode .license-fields{gap:22px 24px}
.result-mode .license-fields>div{min-height:37px;padding:0 4px 5px}
.result-mode .social-row{max-width:1134px;margin-top:25px;padding:0 16px;gap:78px}
.result-mode .social-button{width:32px;height:32px;padding:6px}
.result-mode .social-img{width:18px;height:18px}
.result-mode .admin-fab{width:52px;height:52px;font-size:29px;right:32px;bottom:18px}

@media(max-width:900px){
  .search-mode .page-width,.result-mode .page-width{width:min(100% - 24px,1134px)}
  .result-mode .driver-data{grid-template-columns:1fr 1fr 114px;column-gap:23px}
  .result-mode .tabs{grid-template-columns:repeat(5,minmax(115px,1fr));overflow-x:auto}
  .result-mode .social-row{gap:40px}
}
@media(max-width:620px){
  .search-mode .gov-header{height:58px}
  .search-mode .gov-logo-complete{height:43px}
  .search-mode .crumb-strip{height:44px}
  .search-mode .search-card{padding:27px 14px 16px;min-height:auto}
  .search-mode .search-card h1{font-size:21px}
  .search-mode .lead{font-size:12.8px;margin-bottom:25px}
  .search-mode .floating-input{height:52px}
  .search-mode .services-card{padding:25px 13px}
  .search-mode .services-card h2{font-size:21px}
  .search-mode .service-tile{min-height:85px;font-size:13.5px;padding-right:81px}
  .search-mode .service-img{width:56px;height:56px}
  .search-mode .entry-notice-modal{width:min(560px,94vw);padding:13px}
  .search-mode .entry-notice-banner{min-height:41px;font-size:19px}
  .search-mode .entry-notice-copy{font-size:12.2px}

  .result-mode .gov-header{height:52px}
  .result-mode .gov-logo-complete{height:39px}
  .result-mode .crumb-strip{height:40px}
  .result-mode .result-head{padding:20px 14px 26px}
  .result-mode .result-head h1{font-size:19px;margin-bottom:23px}
  .result-mode .driver-data{grid-template-columns:1fr;row-gap:15px}
  .result-mode .tabs button{height:48px;padding:0 12px;font-size:11px}
  .result-mode .tab-img{width:19px;height:19px;flex-basis:19px}
  .result-mode .license-grid{padding-top:20px}
  .result-mode .license-card{padding:20px 16px;min-height:auto}
  .result-mode .license-title h3{font-size:13px;margin-bottom:22px}
  .result-mode .license-fields{gap:16px}
  .result-mode .social-row{margin-top:20px;padding:0 7px}
  .result-mode .admin-fab{width:47px;height:47px;font-size:26px;right:13px;bottom:13px}
}

/* ===================== PUBLIC COMPACT SCALE v11 ===================== */
/* Additional ~10% reduction on public search/result screens. */
.gov-brand-lockup{
  display:flex;
  align-items:center;
  min-width:0;
  height:100%;
}
.gov-brand-logo{
  display:block;
  width:auto;
  height:42px;
  object-fit:contain;
  flex:0 0 auto;
}
.gov-brand-separator{
  width:1px;
  height:40px;
  background:rgba(255,255,255,.9);
  margin:0 16px;
  flex:0 0 auto;
}
.gov-brand-caption{
  color:#fff;
  font-size:15px;
  line-height:1.15;
  white-space:nowrap;
  font-weight:700;
}

/* SEARCH: ~10% smaller than v10 */
.search-mode .page-width{width:min(1020px,calc(100% - 34px))}
.search-mode .gov-header{height:60px}
.search-mode .gov-brand-logo{height:38px}
.search-mode .gov-brand-separator{height:36px;margin:0 14px}
.search-mode .gov-brand-caption{font-size:13.5px}
.search-mode .presentation-demo-badge{font-size:8px;padding:4px 6px}
.search-mode .crumb-strip{height:45px}
.search-mode .breadcrumbs{font-size:13.5px;gap:10px}
.search-mode .breadcrumbs .chev{font-size:25px}
.search-mode .app-shell{padding:13px 0 23px}
.search-mode .search-card{min-height:468px;padding:37px 23px 14px}
.search-mode .search-card h1{font-size:22.5px;margin-bottom:20px}
.search-mode .lead{max-width:585px;font-size:12.6px;line-height:1.34;margin-bottom:30px}
.search-mode .search-form-wrap{width:min(454px,100%)}
.search-mode .floating-input{height:50px}
.search-mode .floating-input span{left:11px;top:-7px;font-size:10px;padding:0 4px}
.search-mode .floating-input input{padding:11px 42px 3px 12px;font-size:13px}
.search-mode .mic-icon{right:14px;transform:translateY(-50%) scale(.82)}
.search-mode .switch-row{margin:22px auto 21px;gap:7px;font-size:13px}
.search-mode .switch{width:34px;height:18px;border-radius:10px}
.search-mode .switch:before{width:18px;height:18px}
.search-mode .captcha-box{width:207px;height:52px;margin-bottom:20px;gap:10px;font-size:12.6px}
.search-mode .captcha-check{width:17px;height:17px;font-size:14px}
.search-mode .privacy-line{font-size:12.2px;margin-bottom:6px}
.search-mode .accept-row{font-size:12.2px;margin-bottom:12px}
.search-mode .accept-row input{width:15px;height:15px;margin-right:5px}
.search-mode .search-btn{font-size:12.2px;padding:8px 15px}
.search-mode .search-icon{width:14px;height:14px}
.search-mode .services-card{margin-top:12px;padding:30px 20px 32px;min-height:340px}
.search-mode .services-card h2{font-size:20.7px;margin-bottom:27px}
.search-mode .service-grid{width:min(640px,100%);gap:14px}
.search-mode .service-tile{min-height:86px;font-size:13.8px;padding:13px 81px 13px 14px}
.search-mode .service-img{right:13px;width:59px;height:59px}
.search-mode .service-img-moto{width:63px;height:57px}

/* Entry warning scales with the public screen. */
.search-mode .entry-notice-modal{width:min(515px,92vw);padding:16px}
.search-mode .entry-notice-frame{padding:13px 14px 7px}
.search-mode .entry-notice-banner{min-height:41px;font-size:20px;margin-bottom:13px}
.search-mode .entry-notice-modal h2{font-size:16.2px;margin-bottom:16px}
.search-mode .entry-notice-copy{font-size:11.45px;line-height:1.38}
.search-mode .entry-notice-copy p{margin-bottom:11px}
.search-mode .entry-notice-copy ul{margin-left:19px}
.search-mode .entry-notice-copy li{margin-bottom:6px}
.search-mode .entry-notice-actions{min-height:39px}
.search-mode .entry-notice-actions .btn-danger{min-width:61px;min-height:31px;padding:5px 13px;font-size:11.3px}

/* RESULT: ~10% smaller than v10 */
.result-mode .page-width{width:min(1020px,calc(100% - 34px))}
.result-mode .gov-header{height:54px}
.result-mode .gov-brand-logo{height:34px}
.result-mode .gov-brand-separator{height:32px;margin:0 13px}
.result-mode .gov-brand-caption{font-size:12.2px}
.result-mode .presentation-demo-badge{font-size:8px;padding:4px 6px}
.result-mode .crumb-strip{height:41px}
.result-mode .breadcrumbs{font-size:12.2px;gap:9px}
.result-mode .breadcrumbs .chev{font-size:23px}
.result-mode .app-shell{padding-top:11px;padding-bottom:7px}
.result-mode .result-shell{margin-top:-11px;padding-bottom:6px}
.result-mode .result-head{padding-top:23px;padding-bottom:32px}
.result-mode .result-head h1{font-size:20.3px;margin-bottom:28px}
.result-mode .driver-data{
  max-width:1020px;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 152px;
  column-gap:40px;
  row-gap:20px;
}
.result-mode .driver-heading{font-size:14.4px;margin-bottom:-6px}
.result-mode .data-block{min-height:40px;padding:0 4px 5px}
.result-mode .data-block small,.result-mode .license-fields small{font-size:8.2px}
.result-mode .data-block p,.result-mode .license-fields p{font-size:10.5px;margin-top:4px}
.result-mode .driving-license-img{width:82px;height:71px}
.result-mode .tabs{max-width:1020px}
.result-mode .tabs button{height:47px;padding:0 16px;gap:8px;font-size:10.5px}
.result-mode .tab-img{width:19px;height:19px;flex-basis:19px}
.result-mode .license-grid{max-width:1020px;padding-top:24px;padding-left:10px;padding-right:10px;gap:6px}
.result-mode .license-card{min-height:266px;padding:23px 25px 23px}
.result-mode .license-title h3{margin-bottom:26px;font-size:12.2px}
.result-mode .vehicle-material-icon{width:35px;height:35px;margin-top:-4px}
.result-mode .license-fields{gap:20px 22px}
.result-mode .license-fields>div{min-height:33px;padding:0 4px 4px}
.result-mode .social-row{max-width:1020px;margin-top:23px;padding:0 14px;gap:70px}
.result-mode .social-button{width:29px;height:29px;padding:5px}
.result-mode .social-img{width:16px;height:16px}
.result-mode .admin-fab{width:47px;height:47px;font-size:26px;right:29px;bottom:16px}

@media(max-width:900px){
  .search-mode .page-width,.result-mode .page-width{width:min(100% - 22px,1020px)}
  .result-mode .driver-data{grid-template-columns:1fr 1fr 103px;column-gap:21px}
  .result-mode .tabs{grid-template-columns:repeat(5,minmax(104px,1fr));overflow-x:auto}
  .result-mode .social-row{gap:36px}
}

@media(max-width:620px){
  .gov-brand-lockup{max-width:calc(100% - 68px)}
  .search-mode .gov-header{height:52px}
  .search-mode .gov-brand-logo{height:31px}
  .search-mode .gov-brand-separator{height:29px;margin:0 10px}
  .search-mode .gov-brand-caption{font-size:10px;white-space:normal;max-width:190px}
  .search-mode .crumb-strip{height:40px}
  .search-mode .search-card{padding:24px 13px 14px}
  .search-mode .search-card h1{font-size:19px}
  .search-mode .lead{font-size:11.5px;margin-bottom:23px}
  .search-mode .floating-input{height:47px}
  .search-mode .services-card{padding:23px 12px}
  .search-mode .services-card h2{font-size:19px}
  .search-mode .service-tile{min-height:77px;font-size:12.2px;padding-right:73px}
  .search-mode .service-img{width:50px;height:50px}
  .search-mode .entry-notice-modal{width:min(504px,94vw);padding:12px}
  .search-mode .entry-notice-banner{min-height:37px;font-size:17px}
  .search-mode .entry-notice-copy{font-size:11px}

  .result-mode .gov-header{height:47px}
  .result-mode .gov-brand-logo{height:29px}
  .result-mode .gov-brand-separator{height:27px;margin:0 9px}
  .result-mode .gov-brand-caption{font-size:9.5px;white-space:normal;max-width:180px}
  .result-mode .crumb-strip{height:36px}
  .result-mode .result-head{padding:18px 13px 23px}
  .result-mode .result-head h1{font-size:17px;margin-bottom:21px}
  .result-mode .driver-data{grid-template-columns:1fr;row-gap:14px}
  .result-mode .tabs button{height:43px;padding:0 11px;font-size:10px}
  .result-mode .tab-img{width:17px;height:17px;flex-basis:17px}
  .result-mode .license-grid{padding-top:18px}
  .result-mode .license-card{padding:18px 14px;min-height:auto}
  .result-mode .license-title h3{font-size:11.7px;margin-bottom:20px}
  .result-mode .license-fields{gap:14px}
  .result-mode .social-row{margin-top:18px;padding:0 6px}
  .result-mode .admin-fab{width:42px;height:42px;font-size:23px;right:12px;bottom:12px}
}

/* ===================== FINAL POLISH v12 ===================== */
/* Remove prior presentation badges from visual layout. */
.presentation-demo-badge,.login-demo-badge,.presentation-mark,.presentation-mark-login{display:none!important}

/* Public interface: bring v11 back up by roughly 5% for a better match. */
.search-mode .page-width{width:min(1070px,calc(100% - 36px))}
.search-mode .gov-header{height:63px}
.search-mode .gov-brand-logo{height:40px}
.search-mode .gov-brand-separator{height:38px;margin:0 15px}
.search-mode .gov-brand-caption{font-size:14.2px}
.search-mode .crumb-strip{height:47px}
.search-mode .breadcrumbs{font-size:14.2px;gap:10.5px}
.search-mode .breadcrumbs .chev{font-size:26px}
.search-mode .app-shell{padding:14px 0 24px}
.search-mode .search-card{min-height:491px;padding:39px 24px 15px}
.search-mode .search-card h1{font-size:23.6px;margin-bottom:21px}
.search-mode .lead{max-width:615px;font-size:13.2px;margin-bottom:31.5px}
.search-mode .search-form-wrap{width:min(477px,100%)}
.search-mode .floating-input{height:52.5px}
.search-mode .floating-input span{font-size:10.5px}
.search-mode .floating-input input{font-size:13.7px}
.search-mode .switch-row{margin:23px auto 22px;font-size:13.7px}
.search-mode .captcha-box{width:217px;height:55px;margin-bottom:21px;font-size:13.2px}
.search-mode .privacy-line,.search-mode .accept-row{font-size:12.8px}
.search-mode .search-btn{font-size:12.8px;padding:8.5px 16px}
.search-mode .services-card{padding:31.5px 21px 34px;min-height:357px}
.search-mode .services-card h2{font-size:21.7px;margin-bottom:28px}
.search-mode .service-grid{width:min(672px,100%);gap:14.7px}
.search-mode .service-tile{min-height:90px;font-size:14.5px;padding:14px 85px 14px 15px}
.search-mode .service-img{width:62px;height:62px}
.search-mode .service-img-moto{width:66px;height:60px}
.search-mode .entry-notice-modal{width:min(541px,92vw);padding:17px}
.search-mode .entry-notice-banner{min-height:43px;font-size:21px}
.search-mode .entry-notice-modal h2{font-size:17px}
.search-mode .entry-notice-copy{font-size:12px}
.search-mode .entry-notice-actions .btn-danger{font-size:11.9px;min-width:64px;min-height:33px}

.result-mode .page-width{width:min(1070px,calc(100% - 36px))}
.result-mode .gov-header{height:57px}
.result-mode .gov-brand-logo{height:36px}
.result-mode .gov-brand-separator{height:34px;margin:0 14px}
.result-mode .gov-brand-caption{font-size:12.8px}
.result-mode .crumb-strip{height:43px}
.result-mode .breadcrumbs{font-size:12.8px;gap:9.5px}
.result-mode .breadcrumbs .chev{font-size:24px}
.result-mode .app-shell{padding-top:12px;padding-bottom:8px}
.result-mode .result-shell{margin-top:-12px;padding-bottom:7px}
.result-mode .result-head{padding-top:24px;padding-bottom:34px}
.result-mode .result-head h1{font-size:21.3px;margin-bottom:29px}
.result-mode .driver-data{max-width:1070px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 160px;column-gap:42px;row-gap:21px}
.result-mode .driver-heading{font-size:15.1px}
.result-mode .data-block{min-height:42px;padding:0 4px 6px}
.result-mode .data-block small,.result-mode .license-fields small{font-size:8.6px}
.result-mode .data-block p,.result-mode .license-fields p{font-size:11px;margin-top:4px}
.result-mode .driving-license-img{width:86px;height:75px}
.result-mode .tabs{max-width:1070px}
.result-mode .tabs button{height:49px;padding:0 17px;gap:8px;font-size:11px}
.result-mode .tab-img{width:20px;height:20px;flex-basis:20px}
.result-mode .license-grid{max-width:1070px;padding-top:25px;padding-left:11px;padding-right:11px}
.result-mode .license-card{min-height:279px;padding:24px 26px}
.result-mode .license-title h3{margin-bottom:27px;font-size:12.8px}
.result-mode .vehicle-material-icon{width:37px;height:37px}
.result-mode .license-fields{gap:21px 23px}
.result-mode .license-fields>div{min-height:35px;padding:0 4px 4px}
.result-mode .social-row{max-width:1070px;margin-top:24px;padding:0 15px;gap:74px}
.result-mode .social-button{width:30px;height:30px;padding:5px}
.result-mode .social-img{width:17px;height:17px}
.result-mode .admin-fab{width:49px;height:49px;font-size:27px}

/* Professional record editor */
.record-admin-card{padding:0;overflow:hidden;border-radius:8px;box-shadow:0 7px 24px rgba(27,39,51,.10);border:1px solid #dfe4e8}
.record-admin-head{padding:25px 28px 22px;background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);border-bottom:1px solid #e2e7eb;align-items:center}
.record-admin-head h1{font-size:25px;margin:5px 0 6px;color:#1d2731}
.record-admin-head p{max-width:720px;font-size:13.5px;line-height:1.45;color:#68737d}
.admin-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:#b71c1c}
.record-head-status{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f2f7f4;color:#27623b;border:1px solid #cfe1d5;font-size:12px;font-weight:700;white-space:nowrap}
.record-head-status span{width:8px;height:8px;border-radius:50%;background:#36a264;box-shadow:0 0 0 3px rgba(54,162,100,.12)}
.record-form{padding:24px 28px 28px;background:#f7f9fb}
.admin-form-section{background:#fff;border:1px solid #dfe5ea;border-radius:7px;padding:21px 22px;margin-bottom:18px;box-shadow:0 2px 8px rgba(36,48,60,.04)}
.admin-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.admin-section-title h2{font-size:17px!important;margin:0 0 3px!important;color:#25313c}
.admin-section-title p{margin:0;color:#7a848d;font-size:12px}
.admin-section-step{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#b71c1c;color:#fff;font-size:12px;font-weight:800;flex:0 0 auto}
.record-admin-card .form-grid{gap:15px 18px}
.record-admin-card .form-grid label{gap:7px;font-size:12.5px;color:#38434d}
.record-admin-card .form-grid input,.record-admin-card .form-grid select{height:43px;border:1px solid #cbd3d9;border-radius:5px;padding:0 12px;transition:border-color .15s,box-shadow .15s;background:#fff;color:#1c252c}
.record-admin-card .form-grid input:focus,.record-admin-card .form-grid select:focus{outline:0;border-color:#b71c1c;box-shadow:0 0 0 3px rgba(183,28,28,.08)}
.record-admin-card .form-grid input::placeholder{color:#a4abb1}
.record-options-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.toggle-option{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dfe5e9;border-radius:6px;background:#fafcfd;cursor:pointer}
.toggle-option input{display:none}
.toggle-option>span{width:36px;height:20px;border-radius:999px;background:#adb7bf;position:relative;flex:0 0 auto;transition:.18s}
.toggle-option>span:after{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.18s}
.toggle-option input:checked+span{background:#2f8f55}
.toggle-option input:checked+span:after{transform:translateX(16px)}
.toggle-option div{display:flex;flex-direction:column;gap:2px}
.toggle-option strong{font-size:12.5px;color:#33404a}
.toggle-option small{font-size:10.8px;color:#7b858e;font-weight:400}
.modern-section-head{align-items:flex-start;margin-bottom:16px}
.modern-section-head .admin-section-title{margin-bottom:0}
.add-license-btn{border-color:#b71c1c;color:#b71c1c;background:#fff;font-size:12px;padding:8px 12px}
.add-license-btn:hover{background:#fff5f5}
.license-editor{border:1px solid #d9e0e5;border-radius:7px;background:#fbfcfd;padding:17px 18px 18px;margin-bottom:13px;box-shadow:0 1px 4px rgba(32,43,54,.04)}
.license-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e5e9ec}
.license-editor-title-wrap{display:flex;align-items:center;gap:10px}
.license-editor-number{width:27px;height:27px;display:grid;place-items:center;border-radius:5px;background:#eaf1f8;color:#145b8e;font-weight:800;font-size:12px}
.license-editor-title-wrap>div{display:flex;flex-direction:column;gap:2px}
.license-editor-title{font-size:13px;color:#26343e}
.license-editor-title-wrap small{font-size:10.5px;color:#89929a}
.mini-danger{border:1px solid #efc5c5;background:#fff;color:#a31d1d;padding:6px 9px;border-radius:4px;font-size:11px}
.mini-danger:hover{background:#fff2f2}
.visibility-check{margin-top:3px!important;font-weight:600!important;color:#4f5b65!important}
.visibility-check input{height:auto!important;width:16px!important;accent-color:#2f8f55}
.record-admin-actions{justify-content:flex-end;align-items:center;margin-top:4px;padding-top:4px}
.record-admin-actions .btn{min-width:122px;height:42px}
.save-record-btn{background:#b71c1c;color:#fff;box-shadow:0 3px 7px rgba(183,28,28,.18)}
.save-record-btn:hover{background:#981515}
.save-record-btn:disabled{opacity:.65;cursor:not-allowed}

/* Interactive save result modal */
.record-feedback-backdrop{background:rgba(14,20,27,.54)}
.record-feedback-modal{width:min(455px,92vw);background:#fff;border-radius:9px;box-shadow:0 20px 65px rgba(0,0,0,.28);padding:30px 30px 24px;text-align:center;position:relative;overflow:hidden}
.record-feedback-modal:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#3b9b60}
.record-feedback-modal.is-error:before{background:#c62828}
.record-feedback-symbol{width:76px;height:76px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;background:#edf8f1;border:5px solid #4aa56b;color:#2f8f55}
.record-feedback-modal.is-error .record-feedback-symbol{background:#fff0f0;border-color:#d45252;color:#c62828}
.record-feedback-symbol span{font-size:43px;font-weight:400;line-height:1;transform:translateY(-1px)}
.record-feedback-modal h2{margin:0 0 7px;font-size:23px;color:#2d3a43}
.record-feedback-modal.is-success h2{color:#2e7d4e}
.record-feedback-modal.is-error h2{color:#b51f1f}
.record-feedback-message{margin:0 auto 18px;color:#6c757d;font-size:12.5px;line-height:1.4;max-width:340px}
.record-feedback-summary{border:1px solid #e1e6ea;border-radius:7px;background:#fafbfc;text-align:left;padding:7px 15px;margin-bottom:20px}
.record-feedback-summary>div{display:grid;grid-template-columns:125px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #e7ebee;align-items:start}
.record-feedback-summary>div:last-child{border-bottom:0}
.record-feedback-summary span{font-size:10.5px;color:#7a848c;text-transform:uppercase;letter-spacing:.03em}
.record-feedback-summary strong{font-size:12.5px;color:#303b44;word-break:break-word}
.record-feedback-logo-wrap{display:flex;justify-content:center;align-items:center;margin:-6px auto 18px;padding:3px 0 0}
.record-feedback-logo{display:block;width:min(238px,72%);height:auto;object-fit:contain}
.record-feedback-actions{display:flex;justify-content:center;gap:9px}
.record-feedback-actions .btn{min-width:125px;height:40px;border-radius:5px}
.feedback-primary{background:#b71c1c;color:#fff}
.record-feedback-modal.is-success .feedback-primary{background:#2f8f55}
.feedback-secondary{background:#fff;border:1px solid #ccd4da;color:#47535d}

@media(max-width:900px){
  .search-mode .page-width,.result-mode .page-width{width:min(100% - 24px,1070px)}
  .result-mode .driver-data{grid-template-columns:1fr 1fr 108px;column-gap:23px}
  .record-options-row{grid-template-columns:1fr}
}
@media(max-width:620px){
  .search-mode .gov-header{height:55px}.search-mode .gov-brand-logo{height:33px}.search-mode .gov-brand-caption{font-size:10.5px}
  .result-mode .gov-header{height:49px}.result-mode .gov-brand-logo{height:30px}.result-mode .gov-brand-caption{font-size:10px}
  .record-admin-head{padding:20px 18px;align-items:flex-start}.record-head-status{display:none}
  .record-form{padding:16px}.admin-form-section{padding:17px 15px}
  .record-admin-card .form-grid.two{grid-template-columns:1fr}
  .modern-section-head{flex-direction:column}.add-license-btn{width:100%}
  .license-editor{padding:15px 13px}.license-editor-head{align-items:flex-start;gap:10px}.license-editor-title-wrap small{display:none}
  .record-admin-actions{flex-direction:column-reverse}.record-admin-actions .btn{width:100%}
  .record-feedback-modal{padding:26px 18px 20px}
  .record-feedback-summary>div{grid-template-columns:1fr;gap:3px}
  .record-feedback-actions{flex-direction:column-reverse}.record-feedback-actions .btn{width:100%}
}

/* ===================== SEARCH INPUT MATCH v13 ===================== */
/* Initial state matches the reference: placeholder inside the field;
   the small label only appears after focus or once a document is typed. */
.search-mode .floating-input{
  position:relative;
  overflow:visible;
  border:1px solid #d5d7da;
  border-radius:5px;
  background:#fff;
}
.search-mode .floating-input input{
  padding:0 48px 0 13px;
  line-height:1;
  color:#222;
}
.search-mode .floating-input input::placeholder{
  color:#666;
  opacity:1;
  font-weight:400;
}
.search-mode .floating-input .floating-label{
  position:absolute;
  left:10px;
  top:-7px;
  z-index:2;
  display:none;
  width:auto;
  background:#fff;
  color:#5f5f5f;
  padding:0 5px;
  font-size:10.5px;
  line-height:14px;
  pointer-events:none;
}
.search-mode .floating-input:focus-within .floating-label,
.search-mode .floating-input.has-value .floating-label{display:block}
.search-mode .floating-input:focus-within input::placeholder,
.search-mode .floating-input.has-value input::placeholder{color:transparent}
.search-mode .floating-input:focus-within{
  border-color:#c51b1f;
  box-shadow:inset 0 0 0 1px #c51b1f;
}
.search-mode .material-mic{
  position:absolute;
  right:15px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0;
  background:transparent;
  color:#111;
  pointer-events:none;
}
.search-mode .material-mic svg{width:21px;height:21px;display:block;fill:currentColor}
.search-mode .mic-icon{display:none!important}

/* Bring the search action slightly upward and give it the reference height. */
.search-mode .accept-row{margin-bottom:9px}
.search-mode .search-btn{
  min-height:38px;
  padding:0 16px;
  margin-top:-3px;
  border-radius:4px;
  line-height:38px;
}
.search-mode .search-icon{width:16px;height:16px;border-width:2.5px}

@media(max-width:620px){
  .search-mode .material-mic{right:13px;width:20px;height:20px}
  .search-mode .material-mic svg{width:19px;height:19px}
  .search-mode .search-btn{min-height:36px;line-height:36px}
}


/* ===================== LOGIN REFINEMENTS v16 ===================== */
.login-body{
  min-height:100vh;
  overflow:hidden;
}
.login-wrap{
  min-height:100vh;
  padding:18px 14px;
  align-items:center;
  justify-content:center;
}
.login-panel{
  width:505px;
  max-width:94vw;
  border-radius:5px;
}
.login-header{
  padding:8px 15px 5px;
}
.login-logo-mtc{
  max-width:470px;
  margin-bottom:1px;
}
.login-header strong{
  font-size:12.5px;
  margin-top:1px;
}
.login-content{
  padding:39px 56px 25px;
}
.input-row{
  height:42px;
  margin-bottom:13px;
}
.input-icon{
  width:41px;
}
.input-row input{
  padding:0 12px;
  font-size:14px;
}
.login-captcha-row{
  margin-bottom:8px;
}
.login-captcha-media{
  height:43px;
  margin-left:41px;
}
.login-captcha-media img{
  width:148px;
  height:42px;
}
.captcha-refresh{
  width:26px;
  height:26px;
  font-size:18px;
}
.login-primary{
  height:47px;
  margin-top:7px;
  font-size:17px;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.login-secondary{
  margin-top:5px;
}
.login-primary:hover,
.login-primary:focus-visible{
  background:rgb(233,177,2);
  color:#fff;
}
.login-footer{
  padding:8px 15px 12px;
  font-size:11.7px;
  line-height:1.45;
}
.login-footer h5{
  font-size:13px;
  margin:6px 0 4px;
}
.login-footer a{
  color:#1673b9;
  transition:color .15s ease;
}
.login-footer a:hover,
.login-footer a:focus-visible,
.login-footer li:hover a{
  color:rgb(233,177,2);
}
.login-footer li{
  line-height:1.4;
}
@media (max-height:760px) and (min-width:621px){
  .login-panel{width:485px}
  .login-header{padding:6px 13px 4px}
  .login-logo-mtc{max-width:450px}
  .login-content{padding:26px 52px 18px}
  .input-row{height:39px;margin-bottom:10px}
  .login-captcha-media{height:40px}
  .login-captcha-media img{height:39px;width:140px}
  .login-primary{height:43px;font-size:16px}
  .login-footer{font-size:10.8px;padding:6px 13px 9px}
  .login-footer h5{font-size:12px;margin:4px 0 3px}
}
@media(max-width:620px){
  .login-body{overflow:auto}
  .login-wrap{min-height:100vh;padding:18px 10px;align-items:flex-start}
  .login-panel{width:94vw}
  .login-content{padding:30px 24px 22px}
  .login-captcha-media{margin-left:41px}
}

/* ===================== INTERNAL SNC SHELL v17 ===================== */
.snc-admin-header{background:#fff;border-bottom:1px solid #d7d7d7;box-shadow:0 1px 4px rgba(0,0,0,.10)}
.snc-admin-status{height:28px;display:flex;align-items:center;justify-content:flex-end;gap:16px;color:#898989;font-size:10px;border-bottom:1px solid #ececec;white-space:nowrap;overflow:hidden}
.snc-admin-main{min-height:102px;display:grid;grid-template-columns:250px 1fr minmax(420px,auto);align-items:center;gap:18px}
.snc-admin-main img{width:190px;height:auto;max-height:62px;object-fit:contain;object-position:left center}
.snc-admin-title{text-align:center;color:#cf1c22;font-size:28px;line-height:1.02;font-weight:400}
.snc-admin-actions{display:flex;justify-content:flex-end;gap:3px;flex-wrap:wrap}
.snc-admin-actions a{font-size:11px;color:#777;padding:8px 9px;border-radius:3px}
.snc-admin-actions a:hover{background:#b71c1c;color:#fff}
body.internal-mode{background:#f2f4f6}
body.internal-mode .app-shell{padding-top:18px}
body.internal-mode .admin-card{width:min(1100px,100%);margin:0 auto;box-shadow:0 2px 10px rgba(0,0,0,.12)}
body.internal-mode .record-admin-card{border-top:3px solid #b71c1c}
@media(max-width:1000px){.snc-admin-main{grid-template-columns:190px 1fr}.snc-admin-actions{grid-column:1/-1;justify-content:center;padding-bottom:10px}.snc-admin-main img{width:165px}.snc-admin-title{font-size:24px}}
@media(max-width:650px){.snc-admin-status{justify-content:flex-start}.snc-admin-main{grid-template-columns:1fr;text-align:center;padding:14px 0}.snc-admin-main img{margin:auto}.snc-admin-actions{display:grid;grid-template-columns:1fr 1fr}.snc-admin-title{font-size:22px}}
/* ===================== EMBEDDED SNC WORKAREA ===================== */
body.embedded-mode{background:#f4f6f8;overflow-x:hidden}
body.embedded-mode #publicGovHeader,
body.embedded-mode #publicCrumb,
body.embedded-mode #sncInternalHeader,
body.embedded-mode #adminBar,
body.embedded-mode #adminFab{display:none!important}
body.embedded-mode .app-shell{width:100%!important;max-width:none!important;margin:0!important;padding:12px!important;background:#f4f6f8}
body.embedded-mode.internal-mode .app-shell{padding:12px!important}
body.embedded-mode .admin-card{width:100%!important;max-width:none!important;margin:0!important;border-radius:5px;box-shadow:0 1px 5px rgba(20,33,45,.08)}
body.embedded-mode .record-admin-card{width:100%!important;max-width:none!important;margin:0!important;border-top:3px solid #b71c1c}
body.embedded-mode .search-card,body.embedded-mode .services-card{width:100%;max-width:none;margin-left:0;margin-right:0}
body.embedded-mode .page-width{width:100%;max-width:none}
body.embedded-mode .record-admin-head{padding:20px 22px 17px}
body.embedded-mode .admin-form-section{padding-left:22px;padding-right:22px}
body.embedded-mode .record-admin-actions{padding-left:22px;padding-right:22px}
body.embedded-mode .modal-root,body.embedded-mode .overlay{position:fixed}
@media(max-width:760px){body.embedded-mode .app-shell{padding:8px!important}}

/* ===================== USERS PROFESSIONAL PANEL v19 ===================== */
.users-admin-card{padding:0;overflow:hidden;border-radius:8px;box-shadow:0 5px 18px rgba(28,40,52,.10)}
.users-admin-head{padding:23px 26px 21px;background:linear-gradient(135deg,#fff 0,#f7f9fb 100%);border-bottom:1px solid #dde3e7;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.users-admin-head h1{font-size:23px!important;font-weight:500;margin:3px 0 5px!important;color:#28343d}
.users-admin-head p{margin:0;color:#74808a;font-size:12.5px;max-width:690px;line-height:1.45}
.users-eyebrow{font-size:9.5px;font-weight:800;letter-spacing:.09em;color:#b71c1c}
.users-head-badge{border:1px solid #d9e0e5;background:#fff;border-radius:999px;padding:7px 11px;color:#626d76;font-size:10.5px;white-space:nowrap}.users-head-badge span{color:#2f9a58;margin-right:4px}
.users-create-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:0;border-bottom:1px solid #e1e6e9;background:#fff}
.user-photo-panel{padding:24px 20px;background:#f7f9fa;border-right:1px solid #e1e6e9;display:flex;flex-direction:column;align-items:center;text-align:center}
.user-photo-preview{width:118px;height:118px;border-radius:50%;overflow:hidden;background:#e7ebee;border:5px solid #fff;box-shadow:0 0 0 1px #ccd4da,0 5px 14px rgba(31,42,52,.12);margin-bottom:14px}.user-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.user-photo-button{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #b9c3ca;color:#3d4952;height:34px;border-radius:4px;padding:0 12px;font-size:10.8px;font-weight:700;cursor:pointer;transition:.15s}.user-photo-button:hover{border-color:#b71c1c;color:#b71c1c}
.user-photo-panel small{font-size:9.5px;line-height:1.4;color:#87919a;margin-top:7px}.user-photo-remove{margin-top:8px;border:0;background:transparent;color:#a12626;font-size:10px;text-decoration:underline;cursor:pointer}
.user-professional-form{padding:22px 26px 23px}.user-form-title{display:flex;align-items:baseline;gap:10px;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #edf0f2}.user-form-title strong{font-size:15px;color:#2d3942}.user-form-title span{font-size:10.8px;color:#89929a}
.user-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.user-form-grid label{display:flex;flex-direction:column;gap:6px}.user-form-grid label>span{font-size:11px;font-weight:700;color:#4b5862}.user-form-grid input,.user-form-grid select{height:41px;border:1px solid #cbd3d9;border-radius:4px;background:#fff;padding:0 11px;font-size:12px;color:#26333c}.user-form-grid input:focus,.user-form-grid select:focus{outline:0;border-color:#b71c1c;box-shadow:0 0 0 3px rgba(183,28,28,.07)}
.user-form-actions{display:flex;justify-content:flex-end;margin-top:18px}.user-create-btn{height:39px;padding:0 17px;background:#b71c1c;gap:6px}.user-create-btn:hover{background:#971616}.user-create-btn:disabled{opacity:.65;cursor:wait}.button-spinner{width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:userSpin .75s linear infinite}@keyframes userSpin{to{transform:rotate(360deg)}}
.users-list-head{padding:19px 25px 12px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px}.users-list-head h2{font-size:15px!important;margin:0 0 3px!important;color:#2e3942}.users-list-head p{margin:0;font-size:10.5px;color:#89929a}
.users-table-wrap{padding:0 24px 24px;overflow:auto}.users-table{border:1px solid #e1e6e9;border-radius:5px;overflow:hidden}.users-table th{font-size:10.5px!important;color:#64717b;background:#f6f8f9!important}.users-table td{font-size:11.5px!important;vertical-align:middle}.user-cell{display:flex;align-items:center;gap:9px;min-width:150px}.user-cell img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e7ebee;border:1px solid #d3dbe0}.user-cell div{display:flex;flex-direction:column;gap:2px}.user-cell strong{font-size:11.5px;color:#2e3942}.user-cell small{font-size:9px;color:#929ba2}.role-pill{display:inline-block;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:800;letter-spacing:.02em;background:#edf2f6;color:#51606b}.role-admin{background:#f8e8e8;color:#a21d1d}.role-registrador{background:#e7f0f8;color:#24658f}.role-visor{background:#eeeaf8;color:#665394}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px;background:#9aa3aa}.status-dot.on{background:#2d9a55}.status-dot.off{background:#c94b4b}

/* ===================== DNIe / TOKEN INTERACTIVE FLOW v19 ===================== */
.dnie-modal-root{position:fixed;inset:0;z-index:12000}.dnie-backdrop{position:absolute;inset:0;background:rgba(8,14,20,.68);display:grid;place-items:center;padding:18px;backdrop-filter:blur(1.5px)}
.dnie-dialog{width:min(515px,95vw);background:#fff;border-radius:8px;box-shadow:0 22px 70px rgba(0,0,0,.38);overflow:hidden;border:1px solid #d5d9dd}.dnie-dialog-head{padding:16px 18px 14px;border-bottom:1px solid #e2e6e9;display:flex;align-items:flex-start;justify-content:space-between;background:linear-gradient(180deg,#fff,#fafbfc)}.dnie-kicker{display:block;font-size:8.5px;font-weight:800;letter-spacing:.11em;color:#b71c1c;margin-bottom:3px}.dnie-dialog h2{margin:0;font-size:18px;font-weight:500;color:#2b363e}.dnie-close{width:29px;height:29px;border:1px solid #d4d9dd;border-radius:4px;background:#fff;color:#69747c;font-size:19px;line-height:1;cursor:pointer}.dnie-close:disabled{opacity:.35;cursor:not-allowed}
.dnie-reader-visual{display:grid;grid-template-columns:70px minmax(0,1fr) 14px;align-items:center;gap:14px;margin:20px 21px 15px;padding:14px 16px;border:1px solid #dce2e6;border-radius:6px;background:#f8fafb}.dnie-card-chip{width:60px;height:42px;border-radius:5px;background:linear-gradient(135deg,#d8a92e,#f6d86b);border:1px solid #b8942c;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;padding:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.dnie-card-chip span{border:1px solid rgba(117,86,17,.45);border-radius:2px}.dnie-reader-copy{display:flex;flex-direction:column;min-width:0}.dnie-reader-copy strong{font-size:12.5px;color:#29343c;margin-bottom:4px}.dnie-reader-copy span{font-size:10px;color:#7d878f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dnie-status-light{width:11px;height:11px;border-radius:50%;background:#e6a52c;box-shadow:0 0 0 4px rgba(230,165,44,.13);animation:dniePulse 1.15s ease-in-out infinite}.dnie-status-light.success{background:#36a45b;box-shadow:0 0 0 4px rgba(54,164,91,.14);animation:none}.dnie-status-light.error{background:#c93838;box-shadow:0 0 0 4px rgba(201,56,56,.14);animation:none}@keyframes dniePulse{50%{opacity:.45}}
.dnie-progress-block{padding:0 22px 15px}.dnie-progress-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:9.5px;color:#6f7981}.dnie-progress-meta strong{font-size:10.5px;color:#b71c1c}.dnie-progress{height:7px;border-radius:999px;background:#e9edf0;overflow:hidden}.dnie-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#b71c1c,#d94a4a);border-radius:inherit;transition:width .38s ease}.dnie-dialog.is-error .dnie-progress span{background:#c93838}
.dnie-steps{list-style:none;margin:0;padding:0 22px 17px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.dnie-steps li{position:relative;display:grid;grid-template-columns:25px 1fr 17px;align-items:center;gap:8px;min-height:49px;padding:7px 9px;border:1px solid #e2e6e9;border-radius:5px;background:#fff;color:#68727a}.dnie-steps li>span{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#eef1f3;color:#7b858d;font-size:9.5px;font-weight:800}.dnie-steps li div{display:flex;flex-direction:column;min-width:0}.dnie-steps li strong{font-size:10px;color:#4c5861;margin-bottom:2px}.dnie-steps li small{font-size:8.7px;color:#90989f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dnie-steps li i{width:14px;height:14px;border-radius:50%;border:2px solid #d3d9dd}.dnie-steps li.active{border-color:#e2b7b8;background:#fff8f8}.dnie-steps li.active>span{background:#f8e4e4;color:#b71c1c}.dnie-steps li.active i{border-color:#b71c1c;border-top-color:transparent;animation:userSpin .7s linear infinite}.dnie-steps li.done{border-color:#cce3d4;background:#f8fcf9}.dnie-steps li.done>span{background:#e4f3e9;color:#2d8b50}.dnie-steps li.done i{border:0;background:#329657;position:relative}.dnie-steps li.done i:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-style:normal;font-size:9px}.dnie-steps li.error{border-color:#e7c0c0;background:#fff8f8}.dnie-steps li.error i{border:0;background:#c93838;position:relative}.dnie-steps li.error i:after{content:"×";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-style:normal;font-size:11px}
.dnie-result{margin:0 22px 20px;border-radius:5px;padding:12px 13px;display:grid;grid-template-columns:37px minmax(0,1fr) auto;gap:10px;align-items:center}.dnie-result.success{background:#edf8f1;border:1px solid #b9dec7}.dnie-result.error{background:#fff0f0;border:1px solid #e5bcbc}.dnie-result-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:500}.dnie-result.success .dnie-result-icon{background:#329657;color:#fff}.dnie-result.error .dnie-result-icon{background:#c93838;color:#fff}.dnie-result div:nth-child(2){min-width:0}.dnie-result strong{display:block;font-size:11.5px;color:#2d393f;margin-bottom:2px}.dnie-result p{margin:0;font-size:9.5px;line-height:1.35;color:#657078}.dnie-success-badge{font-size:8.5px;font-weight:800;letter-spacing:.06em;color:#287e47;border:1px solid #a5d0b5;border-radius:999px;padding:5px 7px;background:#fff}.dnie-result-close{border:0;background:#b71c1c;color:#fff;border-radius:4px;padding:7px 11px;font-size:10px;font-weight:700;cursor:pointer}

@media(max-width:760px){.users-create-layout{grid-template-columns:1fr}.user-photo-panel{border-right:0;border-bottom:1px solid #e1e6e9}.user-form-grid{grid-template-columns:1fr}.user-form-grid .span-2{grid-column:auto}.users-admin-head{flex-direction:column}.users-head-badge{display:none}.dnie-steps{grid-template-columns:1fr}.dnie-result{grid-template-columns:37px 1fr}.dnie-success-badge,.dnie-result-close{grid-column:1/-1;justify-self:center}.dnie-reader-visual{grid-template-columns:60px 1fr 12px;margin-left:14px;margin-right:14px}.dnie-progress-block,.dnie-steps{padding-left:14px;padding-right:14px}.dnie-result{margin-left:14px;margin-right:14px}}

/* Usuarios: edición y cambio de contraseña */
.user-form-title>div{display:flex;align-items:baseline;gap:10px;min-width:0}.user-form-mode{margin-left:auto;display:inline-flex;align-items:center;height:23px;padding:0 9px;border-radius:999px;background:#fff0f0;color:#a51f1f;border:1px solid #efc7c7;font-size:9px;font-weight:800;letter-spacing:.08em}.user-password-note{margin-top:10px;padding:9px 11px;border-radius:4px;background:#f6f8f9;border-left:3px solid #8a969f;color:#68747d;font-size:10.5px;line-height:1.45}.user-form-actions{gap:9px}.user-cancel-btn{height:39px;padding:0 15px}.user-actions{display:flex;gap:6px;align-items:center}.user-edit-btn{min-width:62px;border-color:#b9c3ca;background:#fff;color:#33414b}.user-edit-btn:hover{border-color:#b71c1c;color:#b71c1c;background:#fff7f7}.users-table td:last-child,.users-table th:last-child{text-align:center}.users-table td:last-child{white-space:nowrap}
@media(max-width:760px){.user-form-title{align-items:flex-start}.user-form-title>div{flex-direction:column;align-items:flex-start;gap:3px}.user-form-mode{margin-left:0}.users-table-wrap{padding-left:12px;padding-right:12px}}

/* ===================== PRE-REGISTRATION VALIDATION v21 ===================== */
.license-verify-backdrop{background:rgba(10,16,22,.70);backdrop-filter:blur(2px);padding:18px;overflow:auto;display:grid;place-items:center}
.license-verify-modal{width:min(720px,96vw);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:9px;border:1px solid #d7dde1;box-shadow:0 24px 80px rgba(0,0,0,.38);color:#2d3942}
.license-verify-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:19px 21px 16px;border-bottom:1px solid #e2e7ea;background:linear-gradient(180deg,#fff,#fafbfc)}
.license-verify-kicker{display:block;font-size:9px;font-weight:800;letter-spacing:.11em;color:#b71c1c;margin-bottom:5px}
.license-verify-head h2{font-size:19px!important;font-weight:500!important;line-height:1.2;margin:0 0 5px!important;color:#28353e}
.license-verify-head p{margin:0;font-size:10.8px;line-height:1.45;color:#7a858d;max-width:570px}
.license-verify-close{flex:0 0 auto;width:30px;height:30px;border:1px solid #d3d9dd;border-radius:4px;background:#fff;color:#66727b;font-size:20px;line-height:1;cursor:pointer}.license-verify-close:hover{border-color:#b71c1c;color:#b71c1c}
.license-verify-person{margin:17px 21px 12px;padding:11px 13px;border:1px solid #dce2e6;border-radius:6px;background:#f8fafb;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px}
.license-verify-person-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#b71c1c;color:#fff;font-weight:800;font-size:11px;box-shadow:0 0 0 4px rgba(183,28,28,.08)}
.license-verify-person>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.license-verify-person span{font-size:8.8px;color:#8a949b;text-transform:uppercase;letter-spacing:.06em}.license-verify-person strong{font-size:12.5px;color:#2d3942;margin:1px 0 2px}.license-verify-person small{font-size:9.6px;color:#77828a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.license-verify-state{border:1px solid #e0c5a7;background:#fff7ea;color:#9b6818;border-radius:999px;padding:5px 8px;font-size:8.5px;font-weight:800;letter-spacing:.05em;white-space:nowrap}.license-verify-state.is-approved{border-color:#afd4bc;background:#edf8f1;color:#287f48}
.license-verify-progress-meta{padding:0 22px 6px;display:flex;justify-content:space-between;gap:12px;font-size:9.5px;color:#6f7a82}.license-verify-progress-meta strong{font-size:10px;color:#b71c1c}
.license-verify-progress{height:7px;margin:0 22px 15px;background:#e8edf0;border-radius:999px;overflow:hidden}.license-verify-progress>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b71c1c,#d24747);transition:width .45s ease}
.license-verify-steps{list-style:none;margin:0;padding:0 21px 15px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.license-verify-steps li{min-height:58px;padding:8px 10px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e1e6e9;border-radius:5px;background:#fff;transition:.2s}
.verify-step-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eef2f4;color:#71808a;font-size:9.5px;font-weight:800}
.license-verify-steps li div{display:flex;flex-direction:column;min-width:0}.license-verify-steps li strong{font-size:10.5px;color:#43505a;margin-bottom:2px}.license-verify-steps li small{font-size:8.8px;color:#9099a0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.license-verify-steps li em{font-style:normal;font-size:8px;font-weight:800;color:#8a949c;text-transform:uppercase;letter-spacing:.04em}
.license-verify-steps li.active{border-color:#e5b7b9;background:#fff9f9}.license-verify-steps li.active .verify-step-icon{background:#f8e5e5;color:#b71c1c}.license-verify-steps li.active em{color:#b71c1c}
.license-verify-steps li.done{border-color:#c7dfcf;background:#f8fcf9}.license-verify-steps li.done .verify-step-icon{background:#dff1e6;color:#2d8950}.license-verify-steps li.done .verify-step-icon:before{content:'✓';font-size:12px}.license-verify-steps li.done .verify-step-icon{font-size:0}.license-verify-steps li.done em{color:#2f8d52}
.fingerprint-panel{margin:0 21px 15px;padding:13px 14px;border:1px solid #e0c3c4;border-radius:6px;background:#fff9f9;display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:13px;align-items:center}.fingerprint-panel[hidden]{display:none!important}.fingerprint-visual{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #ead1d2;box-shadow:0 0 0 5px rgba(183,28,28,.05)}.fingerprint-visual svg{width:40px;height:40px;fill:none;stroke:#b71c1c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.fingerprint-copy{min-width:0}.fingerprint-copy>span{display:block;font-size:7.8px;font-weight:800;letter-spacing:.08em;color:#a14f52;margin-bottom:3px}.fingerprint-copy strong{display:block;font-size:11.5px;color:#373f45;margin-bottom:3px}.fingerprint-copy p{margin:0;font-size:9.2px;line-height:1.4;color:#7c858c}.fingerprint-start{height:35px;padding:0 12px;background:#b71c1c;color:#fff;border-color:#b71c1c;font-size:9.6px;white-space:nowrap}.fingerprint-start:hover{background:#961616}.fingerprint-start:disabled{opacity:.65;cursor:wait}.fingerprint-meter{height:5px;margin-top:7px;border-radius:999px;background:#eadfe0;overflow:hidden}.fingerprint-meter>span{display:block;height:100%;width:0;background:#b71c1c;border-radius:inherit;transition:width .65s ease}.fingerprint-panel.is-accepted{border-color:#bdddc8;background:#f7fcf8}.fingerprint-panel.is-accepted .fingerprint-visual{border-color:#c6e2d0;box-shadow:0 0 0 5px rgba(47,145,83,.06)}.fingerprint-panel.is-accepted .fingerprint-visual svg{stroke:#2f9153}
.license-verify-approved{margin:0 21px 15px;padding:11px 13px;border:1px solid #badbc6;border-radius:6px;background:#eef8f2;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center}.license-verify-approved[hidden]{display:none!important}.approved-check{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#319357;color:#fff;font-size:20px;font-weight:700}.license-verify-approved strong{display:block;font-size:11px;color:#2d4536;margin-bottom:2px}.license-verify-approved p{margin:0;font-size:9px;color:#63756a}.license-verify-approved>span{font-size:8px;font-weight:800;letter-spacing:.08em;color:#2f8450;border:1px solid #a8cfb6;background:#fff;border-radius:999px;padding:5px 8px}
.license-verify-actions{padding:12px 21px 16px;border-top:1px solid #e5e9ec;display:flex;justify-content:flex-end;gap:8px;background:#fafbfc}.license-verify-actions .btn{height:37px;font-size:10.5px;padding:0 15px}.license-final-register{background:#b71c1c;border-color:#b71c1c}.license-final-register:hover{background:#961616}
.user-delete-btn{min-width:62px}.user-delete-btn:disabled{opacity:.45;cursor:wait}
@media(max-width:720px){.license-verify-modal{width:96vw}.license-verify-steps{grid-template-columns:1fr}.fingerprint-panel{grid-template-columns:54px minmax(0,1fr)}.fingerprint-start{grid-column:1/-1;width:100%}.license-verify-person{grid-template-columns:40px minmax(0,1fr)}.license-verify-state{grid-column:1/-1;justify-self:start}.license-verify-approved{grid-template-columns:34px minmax(0,1fr)}.license-verify-approved>span{grid-column:1/-1;justify-self:start}}

/* Confirmación profesional para acciones destructivas */
.danger-confirm-backdrop{background:rgba(9,14,19,.66);backdrop-filter:blur(2px);display:grid;place-items:center;padding:18px}
.danger-confirm-modal{width:min(410px,94vw);background:#fff;border-radius:8px;border:1px solid #e0e4e7;box-shadow:0 22px 70px rgba(0,0,0,.35);padding:23px 24px 20px;text-align:center}
.danger-confirm-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#fff0f0;color:#b71c1c;border:1px solid #efc5c5;font-size:25px;font-weight:800}
.danger-confirm-modal h2{font-size:18px!important;font-weight:500!important;margin:0 0 7px!important;color:#303b43}.danger-confirm-modal p{font-size:10.8px;line-height:1.5;color:#737e86;margin:0 auto 18px;max-width:340px}
.danger-confirm-actions{display:flex;justify-content:center;gap:8px}.danger-confirm-actions .btn{height:37px;font-size:10.5px;padding:0 15px}.danger-confirm-button{border:1px solid #b71c1c;background:#b71c1c;color:#fff;border-radius:4px;font-weight:700}.danger-confirm-button:hover{background:#961616}

/* ===================== EVALUACIONES / EXPEDIENTE v23 ===================== */
.license-verify-steps li.failed{border-color:#efc7c9;background:#fff5f5}.license-verify-steps li.failed .verify-step-icon{background:#f5d5d6;color:#a5262a}.license-verify-steps li.failed em{color:#a5262a}.license-verify-state.is-rejected{background:#f9e4e5!important;color:#a6272b!important;border-color:#e4b4b7!important}
.evaluation-admin-card,.expediente-admin-card{width:min(1100px,100%);margin:0 auto}.expediente-search{padding:18px 22px;border-bottom:1px solid #e3e8eb}.expediente-empty,.expediente-loading{padding:52px 22px;text-align:center;color:#7c878f;font-size:12px}.expediente-loading:before{content:"";display:inline-block;width:19px;height:19px;border:3px solid #d9dfe3;border-top-color:#b71c1c;border-radius:50%;vertical-align:middle;margin-right:9px;animation:expSpin .8s linear infinite}@keyframes expSpin{to{transform:rotate(360deg)}}.expediente-person{margin:20px 22px 14px;padding:15px 17px;border:1px solid #dde3e7;border-radius:6px;background:#f8fafb;display:flex;justify-content:space-between;align-items:center;gap:16px}.expediente-person>div{display:flex;flex-direction:column}.expediente-person span:first-child{font-size:8.5px;letter-spacing:.09em;color:#b71c1c;font-weight:800}.expediente-person strong{font-size:14px;margin-top:3px;color:#2e3942}.expediente-person small{font-size:9.5px;color:#7e8991;margin-top:3px}.expediente-status{font-size:9px;font-weight:800;border-radius:999px;padding:7px 10px;border:1px solid}.expediente-status.ok{color:#267546;background:#eaf7ee;border-color:#c8e3d1}.expediente-status.pending{color:#9b5a13;background:#fff6e7;border-color:#edd4a8}.expediente-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 22px 18px}.expediente-check-card{border:1px solid #dce2e6;border-radius:6px;padding:14px;display:grid;grid-template-columns:34px 1fr;gap:10px;background:#fff;min-height:148px}.expediente-check-card.is-ok{border-top:3px solid #32915a}.expediente-check-card.is-pending{border-top:3px solid #d89b33}.expediente-check-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:900;background:#edf2f4;color:#65717a}.expediente-check-card.is-ok .expediente-check-icon{background:#e5f5ea;color:#25834b}.expediente-check-card.is-pending .expediente-check-icon{background:#fff1d9;color:#a86a10}.expediente-check-card>div:nth-child(2){min-width:0}.expediente-check-card span{display:block;font-size:9px;color:#7d878f}.expediente-check-card strong{display:block;font-size:12px;margin-top:3px;color:#2e3942}.expediente-check-card p{font-size:9.5px;line-height:1.45;color:#77828a;min-height:42px;margin:5px 0 10px}.expediente-check-card .mini-btn{grid-column:1/-1;justify-self:start}.expediente-ready{margin:0 22px 22px;border:1px solid #c8e3d1;background:#eff9f2;border-radius:6px;padding:14px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px}.expediente-ready>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#2d8b52;color:#fff;font-size:18px;font-weight:900}.expediente-ready strong{font-size:11.5px}.expediente-ready p{margin:3px 0 0;font-size:9.5px;color:#68766d}
body.embedded-mode .evaluation-admin-card,body.embedded-mode .expediente-admin-card{width:100%;max-width:none}
@media(max-width:800px){.expediente-check-grid{grid-template-columns:1fr}.expediente-ready{grid-template-columns:36px 1fr}.expediente-ready .btn{grid-column:1/-1}.expediente-person{align-items:flex-start;flex-direction:column}}
.expediente-prefill-row{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;background:#f8fafb;border:1px solid #e0e5e8;border-radius:5px}.expediente-prefill-row span{font-size:9.5px;color:#78838b}.expediente-prefill-row span.ok{color:#247343;font-weight:700}.expediente-prefill-row span.pending{color:#9b6318;font-weight:700}@media(max-width:650px){.expediente-prefill-row{align-items:flex-start;flex-direction:column}}
