.maps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.map-card { min-width: 0; align-self: start; }
.map-card h3 { overflow-wrap: anywhere; line-height: 1.4; }
.map-card p { color: #a4b5ab; font-size: 12px; }
.map-manage { margin-top: 12px; min-width: 0; }
.map-manage summary { display: none; cursor: pointer; list-style: none; }
.map-manage summary::-webkit-details-marker { display: none; }
.map-manage .map-actions { margin: 0; }
.map-manage .map-actions > * { flex: 1 1 100px; white-space: normal; text-align: center; }
.map-actions :is(button,.button) { min-height: 44px; min-width: 44px; }
@media (min-width: 1400px) { .maps-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1000px) { .maps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) {
  .maps-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .map-card { position: relative; padding: 14px !important; }
  .map-card h3 { margin-right: 48px; }
  .map-manage summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #354944; border-radius: 8px; background: #192827; font-size: 24px; position: absolute; right: 10px; top: 10px; }
  .map-manage[open] summary { color: #b5d588; }
  .map-manage .map-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid #354944; }
  #my-maps .section-heading { flex-wrap: wrap; gap: 8px; }
  #my-maps .section-heading .map-actions { width: 100%; }
  #my-maps .section-heading .map-actions > * { flex: 1; }
}

.traffic-grid {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
 gap:16px;
}
.traffic-card {
 min-width:0;
 padding:16px;
 background:#161b22;
 border:1px solid #30363d;
 border-radius:8px;
 text-align:left;
}
.traffic-card h3 {margin:0 0 16px;font-size:1rem;font-weight:700;color:#e6edf3;}
.traffic-card dl {display:grid;gap:16px;margin:0;}
.traffic-card dl>div {display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.traffic-card dt {font-size:.85rem;line-height:1.4;color:#8b949e;}
.traffic-card dd {margin:0;font-size:1.5rem;font-weight:700;line-height:1.2;color:#58a6ff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
#site-traffic .traffic-heading {
 position:static;
 display:flex;
 justify-content:space-between;
 align-items:center;
 flex-wrap:wrap;
 gap:16px;
 height:auto;
 margin:0 0 20px;
 padding:0;
 background:none;
 border:0;
}
.traffic-heading-text {flex:1 1 260px;min-width:0;}
#site-traffic .traffic-heading h2 {margin:0 0 8px;color:#e6edf3;}
#site-traffic .traffic-heading .muted {max-width:70ch;margin:0;font-size:.85rem;line-height:1.5;color:#8b949e;}
#traffic-status {margin:8px 0 0;min-height:1.4em;font-size:.8rem;line-height:1.4;color:#aab9c6;}
#refresh-traffic {flex:0 0 auto;min-height:44px;padding:10px 16px;border:1px solid #30363d;border-radius:8px;background:#21262d;color:#e6edf3;cursor:pointer;touch-action:manipulation;}
#refresh-traffic:hover {background:#30363d;}
#refresh-traffic:focus-visible {outline:2px solid #58a6ff;outline-offset:3px;}
#refresh-traffic:disabled {opacity:.65;cursor:wait;}
@media(max-width:480px) {
 .traffic-grid {grid-template-columns:minmax(0,1fr);}
 #site-traffic .traffic-heading {align-items:flex-start;gap:12px;}
 .traffic-heading-text {flex-basis:100%;}
}
