/* DevTools Hub — isolated visuals to preserve existing functions */
#tool-dashboard .hub-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0}
#tool-dashboard .hub-title h2{font-size:18px;color:#173553}
#tool-dashboard .hub-title span{font-size:12px;color:#55738a}
#tool-dashboard .hub-filter-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
#tool-dashboard .hub-search{flex:1;min-width:230px;display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #aec9df;border-radius:10px;padding:0 12px;color:#57738c}
#tool-dashboard .hub-search input{font:inherit;border:0;outline:0;background:transparent;width:100%;height:45px;min-width:0;color:#173553}
#tool-dashboard .hub-filters{display:flex;gap:7px;flex-wrap:wrap}
#tool-dashboard .hub-filter{border:1px solid #c9d8e5;background:#fff;color:#466077;padding:9px 11px;border-radius:9px;font-size:12px;font-weight:600;cursor:pointer}
#tool-dashboard .hub-filter[aria-pressed=true]{background:#e8f2ff;color:#075eb4;border-color:#83b8df}
#tool-dashboard .hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
#tool-dashboard .hub-tool{width:100%;min-height:167px;display:flex;flex-direction:column;text-align:left;padding:18px;background:#fff;border:1px solid #d5e0e9;border-radius:15px;box-shadow:0 4px 17px #1e4a6909;cursor:pointer;color:inherit;transition:transform .18s,border-color .18s,box-shadow .18s}
#tool-dashboard .hub-tool:hover,#tool-dashboard .hub-tool:focus-visible{transform:translateY(-3px);border-color:#8dbce5;box-shadow:0 10px 24px #2f6d9c1c}
#tool-dashboard .hub-tool-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
#tool-dashboard .hub-tool-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f2ff;color:#075eb4}
#tool-dashboard .hub-tool[data-group=security] .hub-tool-icon{background:#f0e9fd;color:#754aaa}
#tool-dashboard .hub-tool[data-group=infra] .hub-tool-icon{background:#e5f6f0;color:#0d7763}
#tool-dashboard .hub-tool[data-group=other] .hub-tool-icon{background:#fff0e4;color:#a55417}
#tool-dashboard .hub-tool-head>.material-icons{color:#7892a9;font-size:18px}
#tool-dashboard .hub-tool strong{color:#223c55;font-size:14px;margin-bottom:7px}
#tool-dashboard .hub-tool p{color:#596f83;font-size:12px;line-height:1.6;flex:1;margin:0}
#tool-dashboard .hub-tool-meta{font-size:10px;color:#68819a;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-top:11px}
#tool-dashboard .hub-empty{background:#fff;border:1px dashed #a8c6df;border-radius:12px;text-align:center;padding:35px;color:#55738a}
#tool-dashboard .hub-empty[hidden]{display:none}
#tool-gmaildot .dot-shell{max-width:1180px;margin:auto}
#tool-gmaildot .dot-hero{border:1px solid #cbddeb;border-radius:18px;padding:28px 30px;background:linear-gradient(110deg,#e8f4ff,#eaf9f5);margin-bottom:17px}
#tool-gmaildot .dot-kicker{font-size:11px;font-weight:700;letter-spacing:.1em;color:#075eb4;margin-bottom:8px}
#tool-gmaildot .dot-hero h1{font-size:clamp(23px,3vw,30px);color:#173553;margin-bottom:9px}
#tool-gmaildot .dot-hero p{font-size:13px;line-height:1.7;color:#526a7e}
#tool-gmaildot .dot-columns{display:grid;grid-template-columns:minmax(290px,380px) minmax(0,1fr);gap:16px;align-items:start}
#tool-gmaildot .dot-box{background:white;border:1px solid #d6e0ea;border-radius:14px;overflow:hidden}
#tool-gmaildot .dot-box-head{display:flex;align-items:center;gap:8px;border-bottom:1px solid #dbe6f0;background:#f9fcff;padding:15px 19px;color:#254761;font-weight:700}
#tool-gmaildot .dot-box-body{padding:19px}
#tool-gmaildot .dot-field{margin-bottom:16px}
#tool-gmaildot .dot-field label{display:block;color:#36546b;font-size:12px;font-weight:700;margin-bottom:8px}
#tool-gmaildot .dot-field small{display:block;margin-top:6px;color:#597289;font-size:11px;line-height:1.55}
#tool-gmaildot .dot-note{border:1px solid #aedbce;background:#ecf9f4;color:#126357;padding:13px;border-radius:10px;font-size:12px;line-height:1.7;margin-top:16px}
#tool-gmaildot .dot-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#tool-gmaildot .dot-output{width:100%;min-height:325px;resize:vertical;white-space:pre;overflow:auto;background:#f9fcff;color:#193e5b;border:1px solid #bcd2e2;border-radius:10px;padding:12px;font-size:12px;line-height:1.65}
#tool-gmaildot .dot-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:13px 0}
#tool-gmaildot #dot-range,#tool-gmaildot .dot-total{font-size:12px;color:#456078;line-height:1.65}
#tool-gmaildot .dot-total strong{color:#075eb4}
#tool-gmaildot .dot-status{margin:10px 0;font-size:12px;line-height:1.6;color:#146b57;min-height:20px}
#tool-gmaildot .dot-status.is-error{color:#a62636}
#tool-gmaildot button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1120px){#tool-dashboard .hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){#tool-gmaildot .dot-columns{grid-template-columns:1fr}}
@media(max-width:700px){#tool-dashboard .hub-grid{grid-template-columns:1fr}#tool-dashboard .hub-title{flex-wrap:wrap}#tool-gmaildot .dot-hero{padding:22px 18px}#tool-gmaildot .dot-box-body{padding:15px}}
@media(prefers-reduced-motion:reduce){#tool-dashboard .hub-tool{transition:none}}

/* Improve Vietnamese text: limit synthetic bold, preserve icon glyph fonts. */
#tool-dashboard,#tool-gmaildot{font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
#tool-dashboard .hub-title h2,#tool-dashboard .hub-tool strong,#tool-gmaildot .dot-hero h1{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:700;letter-spacing:-.012em}
#tool-dashboard .hub-tool p,#tool-gmaildot .dot-hero p,#tool-gmaildot .dot-field small{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:400;letter-spacing:normal;line-height:1.65}
.sidebar .sidebar-section-label{font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:.055em;font-weight:700}
.sidebar .nav-label{font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:normal;font-weight:500}
