:root{--brand:#07111d;--brand-dark:#0b1725;--bg:#07111d;--panel:rgba(7,17,29,.94);--border:rgba(255,255,255,.13);--text:#f8fafc;--muted:#a8b3c2;--accent:#2584ff}*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:var(--brand);border-bottom:1px solid var(--border);position:relative;z-index:20}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-logo{width:54px;height:54px;object-fit:contain;flex:0 0 auto;background:#fff;border-radius:12px;padding:5px}.brand-copy{display:flex;align-items:baseline;gap:12px;min-width:0}.topbar strong{font-size:1.25rem;white-space:nowrap}.topbar span{color:var(--muted);margin-left:0;white-space:nowrap}.topbar button,.panel button{border:1px solid var(--border);background:var(--brand-dark);color:var(--text);border-radius:10px;padding:10px 13px;cursor:pointer}.app-shell{height:calc(100% - 68px);display:grid;grid-template-columns:330px minmax(320px,1fr) 390px}.panel{background:var(--panel);backdrop-filter:blur(12px);padding:20px;overflow:auto;z-index:10}.filters{border-right:1px solid var(--border)}.detail{border-left:1px solid var(--border)}#map{min-width:0}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.panel h1{font-size:1.25rem;margin:0 0 18px}.panel h2{font-size:.9rem;margin:20px 0 10px;color:#dbe5f1}.panel-title span{font-size:.8rem;color:var(--muted)}label{display:block;font-size:.78rem;color:var(--muted);margin:0 0 12px}input,select{width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#0d1a29;color:var(--text);outline:none}.range-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.panel .primary{background:var(--accent);color:#fff;border-color:transparent;font-weight:700}.legend>div{display:flex;align-items:center;gap:9px;margin:9px 0;color:#dbe5f1}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.planeada{background:#f6aa1c}.en_proceso{background:#2584ff}.concluida{background:#2dbb65}.suspendida{background:#985ee8}.check{display:flex;align-items:center;gap:9px;font-size:.9rem;color:#dbe5f1}.check input{width:auto;margin:0}.loading{margin-top:16px;color:#b8d6ff}.empty-state{margin-top:40%;text-align:center;color:var(--muted)}.empty-state strong{color:var(--text);font-size:1.1rem}.detail-head{display:flex;justify-content:space-between;gap:12px}.detail h2{font-size:1.45rem;margin:8px 0 18px;color:var(--text)}.close{padding:7px 10px!important;height:max-content}.badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;font-size:.78rem;background:#142337}.metric{margin:18px 0}.metric b{display:block;margin-bottom:6px}.metric p{margin:0;color:#c5cfdb;line-height:1.5}.progress{height:10px;background:#233142;border-radius:999px;overflow:hidden;margin-top:8px}.progress span{display:block;height:100%;background:var(--accent)}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.photos img{width:100%;height:84px;object-fit:cover;border-radius:9px;border:1px solid var(--border)}.mapboxgl-popup-content{background:var(--brand-dark);color:#fff;border-radius:10px;padding:12px}.mapboxgl-popup-tip{border-top-color:var(--brand-dark)!important}.mapboxgl-ctrl-group{background:var(--brand-dark)!important}.mapboxgl-ctrl button span{filter:invert(1)}

/* Tablet */
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .detail {
    position: fixed;
    z-index: 40;
    top: 68px;
    right: 0;
    bottom: 0;
    width: min(390px, 92vw);
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,.35);
  }

  .detail.open {
    transform: translateX(0);
  }
}

/* Mobile */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .topbar {
    height: 64px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    flex: 1 1 auto;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 9px;
  }

  .brand-copy {
    display: block;
    min-width: 0;
  }

  .topbar strong {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .92rem;
  }

  .topbar span {
    display: none;
  }

  .topbar nav {
    flex: 0 0 auto;
  }

  .topbar button {
    padding: 8px 10px;
    font-size: .78rem;
    line-height: 1.1;
  }

  .app-shell {
    position: relative;
    display: block;
    height: calc(100dvh - 64px);
    min-height: 0;
    overflow: hidden;
  }

  #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  .filters {
    position: absolute;
    z-index: 30;
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 52%;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.38);
    -webkit-overflow-scrolling: touch;
  }

  .filters .panel-title {
    position: sticky;
    top: -14px;
    z-index: 3;
    margin: -14px -14px 10px;
    padding: 14px;
    background: rgba(7,17,29,.98);
    border-bottom: 1px solid var(--border);
  }

  .panel h1 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .panel h2 {
    margin: 14px 0 8px;
  }

  label {
    margin-bottom: 9px;
    font-size: .72rem;
  }

  input,
  select {
    margin-top: 4px;
    padding: 9px 10px;
    font-size: .82rem;
  }

  .range-row,
  .button-row {
    gap: 8px;
  }

  .panel button {
    padding: 9px 10px;
    font-size: .8rem;
  }

  #works-list-section {
    margin: 10px 0 14px !important;
    padding: 10px !important;
  }

  #works-list {
    height: 180px !important;
    max-height: 180px !important;
  }

  .work-list-card {
    padding: 9px 10px !important;
  }

  .legend,
  .check {
    font-size: .78rem;
  }

  .detail {
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: 10px;
    left: 10px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: 58dvh;
    padding: 18px;
    transform: translateY(calc(100% + 20px));
    transition: transform .25s ease;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(7,17,29,.97);
    box-shadow: 0 -12px 30px rgba(0,0,0,.42);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail.open {
    transform: translateY(0);
  }

  .detail::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    margin: -6px auto 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
  }

  .detail-head {
    position: sticky;
    top: -18px;
    z-index: 4;
    margin: -18px -18px 12px;
    padding: 16px 18px 12px;
    background: rgba(7,17,29,.98);
    border-bottom: 1px solid var(--border);
  }

  .detail h2 {
    font-size: 1.2rem;
  }

  .photos {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .photos img {
    height: 110px;
  }

  .mapboxgl-ctrl-bottom-left {
    bottom: 10px;
    left: 10px;
  }

  .mapboxgl-ctrl-bottom-right {
    bottom: 10px;
    right: 10px;
  }

  .detail.open ~ #map .mapboxgl-ctrl-bottom-left,
  .detail.open ~ #map .mapboxgl-ctrl-bottom-right {
    bottom: calc(58dvh + 20px);
  }

  .mapboxgl-popup {
    max-width: calc(100vw - 30px) !important;
  }

  .mapboxgl-popup-content {
    max-width: calc(100vw - 30px);
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .topbar strong {
    max-width: 155px;
    font-size: .84rem;
  }

  .topbar button {
    max-width: 76px;
    white-space: normal;
  }

  .filters {
    max-height: 48%;
  }

  .detail {
    max-height: 52dvh;
  }

  #works-list {
    height: 150px !important;
    max-height: 150px !important;
  }

  .photos {
    grid-template-columns: 1fr;
  }
}


/* Compactar panel de filtros y listado en móvil */
@media (max-width: 720px) {
  .filters {
    top: 6px;
    left: 6px;
    right: 6px;
    max-height: 42%;
    padding: 10px;
    border-radius: 12px;
  }

  .filters .panel-title {
    top: -10px;
    margin: -10px -10px 8px;
    padding: 10px;
  }

  .panel h1 {
    font-size: .92rem;
    margin-bottom: 6px;
  }

  .panel-title span {
    font-size: .7rem;
  }

  #works-list-section {
    margin: 6px 0 10px !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  .work-list-heading {
    margin-bottom: 6px !important;
  }

  .work-list-heading h3 {
    font-size: .82rem !important;
  }

  .work-list-total {
    font-size: .68rem !important;
  }

  #works-list {
    height: 112px !important;
    max-height: 112px !important;
    gap: 5px !important;
    padding-right: 3px !important;
  }

  .work-list-card {
    padding: 6px 8px !important;
    border-radius: 8px !important;
  }

  .work-list-card strong {
    margin-bottom: 2px !important;
    font-size: .72rem !important;
    line-height: 1.2 !important;
  }

  .work-list-meta,
  .work-list-status {
    font-size: .64rem !important;
  }

  .work-list-status {
    margin-top: 3px !important;
  }

  .work-list-dot {
    width: 6px !important;
    height: 6px !important;
    flex-basis: 6px !important;
  }

  label {
    margin-bottom: 7px;
    font-size: .68rem;
  }

  input,
  select {
    padding: 8px 9px;
    font-size: .78rem;
  }

  .range-row,
  .button-row {
    gap: 6px;
  }

  .panel button {
    padding: 8px 9px;
    font-size: .76rem;
  }
}

@media (max-width: 420px) {
  .filters {
    max-height: 40%;
  }

  #works-list {
    height: 96px !important;
    max-height: 96px !important;
  }
}


/* Marcador SEGIAGUA y animación de selección */
.mapboxgl-popup.obra-popup .mapboxgl-popup-content{
  min-width:250px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 16px 40px rgba(0,0,0,.42);
}

.work-list-card.active{
  animation:obra-card-selected .38s ease;
}

@keyframes obra-card-selected{
  0%{transform:translateX(0)}
  45%{transform:translateX(5px)}
  100%{transform:translateX(0)}
}

@media (prefers-reduced-motion: reduce){
  .work-list-card.active{
    animation:none;
  }
}


/* Agrupaciones desactivadas permanentemente */
label.check:has(#layer-clusters){
  display:none!important;
}


/* Marcadores individuales corregidos */
.mapboxgl-canvas{
  outline:none;
}


/* Polígono de alcaldía seleccionado */
.mapboxgl-canvas{
  outline:none;
}

/* Fotografías ampliables y lightbox */
.photos .photo-thumb{
  display:block;
  width:100%;
  padding:0;
  border:1px solid var(--border);
  border-radius:9px;
  background:transparent;
  cursor:zoom-in;
  overflow:hidden;
}
.photos .photo-thumb:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.photos .photo-thumb img{
  display:block;
  width:100%;
  height:84px;
  border:0;
  border-radius:0;
  transition:transform .2s ease;
}
.photos .photo-thumb:hover img{transform:scale(1.04)}
body.lightbox-open{overflow:hidden}
.photo-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:24px;
}
.photo-lightbox[hidden]{display:none}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(5px);
}
.lightbox-dialog{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;
  width:min(1100px,94vw);
  max-height:92vh;
}
.lightbox-dialog figure{
  margin:0;
  min-width:0;
  text-align:center;
}
.lightbox-dialog figure img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:82vh;
  margin:auto;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 20px 70px rgba(0,0,0,.55);
}
.lightbox-dialog figcaption{
  min-height:24px;
  margin-top:10px;
  color:#e2e8f0;
  font-size:.9rem;
}
.lightbox-close,.lightbox-nav{
  border:1px solid rgba(255,255,255,.25);
  background:rgba(7,17,29,.78);
  color:#fff;
  cursor:pointer;
}
.lightbox-close{
  position:absolute;
  top:-18px;
  right:0;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:1.1rem;
}
.lightbox-nav{
  width:44px;
  height:58px;
  border-radius:12px;
  font-size:2.2rem;
  line-height:1;
}
.lightbox-prev{justify-self:start}
.lightbox-next{justify-self:end}
.lightbox-counter{
  position:absolute;
  right:0;
  bottom:-10px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(7,17,29,.82);
  color:#fff;
  font-size:.78rem;
}
@media (max-width:720px){
  .photos .photo-thumb img{height:110px}
  .photo-lightbox{padding:10px}
  .lightbox-dialog{grid-template-columns:42px minmax(0,1fr) 42px;width:100%}
  .lightbox-dialog figure img{max-height:76vh}
  .lightbox-nav{width:36px;height:50px;font-size:1.8rem}
  .lightbox-close{top:-48px;right:4px}
}
@media (max-width:420px){
  .photos .photo-thumb img{height:150px}
}


/* Corrección para lightbox con una sola fotografía */
.photo-lightbox.is-single .lightbox-dialog{
  grid-template-columns:minmax(0,1fr);
  width:min(1200px,94vw);
}
.photo-lightbox.is-single .lightbox-dialog figure{
  width:100%;
}
.photo-lightbox.is-single .lightbox-dialog figure img{
  width:100%;
  height:min(80vh,820px);
  max-width:none;
  max-height:none;
  object-fit:contain;
}
.photo-lightbox.is-single .lightbox-close{
  top:0;
  right:0;
  z-index:2;
}
.photo-lightbox.is-single .lightbox-nav,
.photo-lightbox.is-single .lightbox-counter{
  display:none !important;
}
@media (max-width:720px){
  .photo-lightbox.is-single .lightbox-dialog{
    width:100%;
  }
  .photo-lightbox.is-single .lightbox-dialog figure img{
    height:78vh;
  }
  .photo-lightbox.is-single .lightbox-close{
    top:4px;
    right:4px;
  }
}

.summary-section{margin-top:12px}.summary-section h2{font-size:13px}.summary-grid{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(110px,1fr) 75px;font-size:10px;overflow:auto;max-height:260px}.summary-grid>div{padding:6px;border-bottom:1px solid rgba(148,163,184,.18)}.summary-head,.summary-total{font-weight:800;color:#b895ff;position:sticky;top:0;background:#0d1e30}.summary-total{bottom:0;top:auto}


/* === Resumen extendido === */
.summary-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.summary-header-row h2{margin:0 0 4px}
.summary-header-row p{margin:0;color:var(--muted);font-size:.78rem;line-height:1.45}
.summary-button{background:rgba(37,132,255,.16)!important;border-color:rgba(37,132,255,.35)!important;color:#dceeff!important;font-weight:700;white-space:nowrap}
.summary-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.summary-card{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px;background:rgba(13,26,41,.74)}
.summary-card b{display:block;color:#dbe5f1;font-size:.76rem;margin-bottom:6px}
.summary-card strong{display:block;font-size:1.02rem;line-height:1.2}
.summary-card span{display:block;color:var(--muted);font-size:.74rem;margin-top:3px}
.summary-table-wrap{border:1px solid rgba(255,255,255,.08);border-radius:12px;overflow:auto;background:rgba(13,26,41,.72)}
.summary-table{width:100%;border-collapse:collapse;font-size:.79rem;min-width:420px}
.summary-table th,.summary-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top}
.summary-table th{font-size:.72rem;color:#c7d3e0;text-transform:uppercase;letter-spacing:.02em;background:rgba(255,255,255,.03)}
.summary-table tbody tr:hover td{background:rgba(255,255,255,.02)}
.summary-table tfoot td{font-weight:800;color:#f4f7fb;background:rgba(37,132,255,.10)}
.summary-table td:last-child,.summary-table th:last-child{text-align:right}
.summary-table td:nth-child(2),.summary-table th:nth-child(2){text-align:right}
.summary-note{margin-top:8px;font-size:.72rem;color:var(--muted);line-height:1.4}
.summary-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:18px}
.summary-modal-backdrop{position:absolute;inset:0;background:rgba(1,6,13,.72);backdrop-filter:blur(5px)}
.summary-modal-dialog{position:relative;width:min(1120px,calc(100vw - 28px));max-height:min(92vh,980px);display:flex;flex-direction:column;background:#07111d;border:1px solid rgba(255,255,255,.12);border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.4)}
.summary-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid rgba(255,255,255,.08);background:#091522}
.summary-modal-head h2{margin:4px 0 4px;font-size:1.28rem}
.summary-modal-head p{margin:0;color:var(--muted);font-size:.84rem}
.summary-kicker{display:inline-block;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:#93c5fd;font-weight:700}
.summary-close{width:42px;height:42px;padding:0;border-radius:12px;background:#102033!important}
.summary-modal-content{padding:18px 22px 22px;overflow:auto}
.summary-modal-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}
.summary-modal-side{display:grid;gap:16px}
.summary-chart-card{border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px;background:rgba(13,26,41,.7)}
.summary-chart-card h3{margin:0 0 12px;font-size:.94rem}
.summary-bars{display:grid;gap:10px}
.summary-bar-row{display:grid;gap:4px}
.summary-bar-label{display:flex;justify-content:space-between;gap:8px;font-size:.76rem;color:#dbe5f1}
.summary-bar-track{position:relative;height:12px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.summary-bar-fill{position:absolute;inset:0 auto 0 0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2584ff,#7dd3fc)}
.summary-bar-fill.money{background:linear-gradient(90deg,#10b981,#34d399)}
.summary-chart-legend{margin-top:10px;color:var(--muted);font-size:.72rem;line-height:1.4}
.mapboxgl-popup.obra-popup .mapboxgl-popup-content{background:#07111d;color:#f8fafc;border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.34);padding:12px}
.mapboxgl-popup.obra-popup .mapboxgl-popup-tip{border-top-color:#07111d;border-bottom-color:#07111d}
@media(max-width:1180px){.summary-modal-grid{grid-template-columns:1fr}.summary-modal-side{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.summary-header-row{flex-direction:column}.summary-highlights{grid-template-columns:1fr}.summary-modal{padding:10px}.summary-modal-content{padding:14px}.summary-modal-head{padding:16px}.summary-modal-side{grid-template-columns:1fr}}


/* Botón flotante y cierre correcto del modal de resumen */
.summary-modal[hidden]{display:none!important}
.summary-fab{position:fixed;right:24px;bottom:24px;z-index:55;display:flex!important;align-items:center!important;gap:11px!important;min-width:220px;padding:12px 14px!important;border:1px solid rgba(125,211,252,.35)!important;border-radius:16px!important;background:linear-gradient(135deg,#0f2742,#1769aa)!important;color:#fff!important;box-shadow:0 16px 42px rgba(0,0,0,.38),0 0 0 1px rgba(255,255,255,.05) inset!important;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.summary-fab:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.08) inset!important}
.summary-fab:focus-visible{outline:3px solid rgba(125,211,252,.55);outline-offset:3px}
.summary-fab-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.14);font-size:1.3rem;flex:0 0 auto}
.summary-fab-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0;flex:1}
.summary-fab-copy strong{font-size:.88rem;white-space:nowrap}
.summary-fab-copy small{margin-top:3px;color:#cfe8ff;font-size:.7rem}
.summary-fab-count{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border-radius:999px;background:#fff;color:#0b4f85;font-weight:800;font-size:.78rem}
.summary-close{color:#fff!important;border-color:rgba(255,255,255,.18)!important}
.summary-close:hover{background:#1b314a!important}
body.summary-modal-open{overflow:hidden}
@media(max-width:700px){.summary-fab{right:12px;bottom:12px;min-width:0;padding:11px!important}.summary-fab-copy{display:none}.summary-fab-count{min-width:30px;height:30px}.summary-modal-dialog{width:calc(100vw - 16px);max-height:94vh}}


/* Barras en métricas y gráfica donut */
.summary-card-progress{position:relative;overflow:hidden}
.summary-metric-track{height:8px;margin:10px 0 7px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.summary-metric-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2584ff,#7dd3fc);box-shadow:0 0 16px rgba(37,132,255,.3)}
.summary-metric-fill.money{background:linear-gradient(90deg,#10b981,#34d399);box-shadow:0 0 16px rgba(16,185,129,.28)}
.summary-donut-card{margin-top:18px;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:18px;background:rgba(13,26,41,.72)}
.summary-donut-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.summary-donut-head h3{margin:4px 0 0;font-size:1rem}
.summary-donut-head>strong{display:grid;place-items:center;min-width:58px;height:42px;padding:0 12px;border-radius:12px;background:rgba(37,132,255,.14);color:#dceeff;font-size:1.05rem}
.summary-donut-layout{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:26px;align-items:center}
.summary-donut{position:relative;width:min(280px,68vw);aspect-ratio:1;border-radius:50%;margin:auto;box-shadow:0 18px 45px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08)}
.summary-donut::after{content:"";position:absolute;inset:23%;border-radius:50%;background:#0b1725;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.summary-donut-center{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center;pointer-events:none}
.summary-donut-center strong{font-size:1.65rem;line-height:1}
.summary-donut-center span{margin-top:6px;color:var(--muted);font-size:.72rem}
.summary-donut-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px}
.summary-donut-item{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.025);font-size:.75rem}
.summary-donut-item i{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.04)}
.summary-donut-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbe5f1}
.summary-donut-item b{white-space:nowrap;color:#fff}
@media(max-width:850px){.summary-donut-layout{grid-template-columns:1fr}.summary-donut-legend{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.summary-donut-legend{grid-template-columns:1fr}.summary-donut-card{padding:14px}.summary-donut-head{align-items:center}.summary-donut-head h3{font-size:.9rem}}
