/* GMS GSC Monitor Hub: classic history chart (the design before 6.0, like Google Analytics). */
.gms-history.gh-classic { --gms-muted: #646970; --gms-ok: #00a32a; --gms-bad: #d63638; }
.gms-history.is-loading .gms-hist-chart { opacity: .55; transition: opacity .2s; }
.gms-hist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.gms-hist-title { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.gms-hist-title .dashicons { color: #2271b1; }
.gms-hist-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gms-hist-controls select, .gms-hist-controls input[type="date"] { min-height: 30px; font-size: 13px; }
.gms-hist-custom label { font-size: 12px; color: var(--gms-muted); }
.gms-hist-seg { display: inline-flex; border: 1px solid #c3c4c7; border-radius: 4px; overflow: hidden; }
.gms-hist-seg button { background: #fff; border: 0; border-right: 1px solid #c3c4c7; padding: 5px 11px; font-size: 13px; cursor: pointer; color: #1d2327; }
.gms-hist-seg button:last-child { border-right: 0; }
.gms-hist-seg button:hover { background: #f6f7f7; }
.gms-hist-seg button.is-on { background: #2271b1; color: #fff; }
.gms-hist-check { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gms-hist-check input { margin: 0; }
.gms-hist-icon { background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; width: 32px; height: 30px; cursor: pointer; color: #50575e; padding: 0; }
.gms-hist-icon:hover { color: #2271b1; border-color: #2271b1; }
.gms-history.is-collapsed .gms-hist-csv, .gms-history.is-collapsed .gms-hist-controls > :not(.gms-hist-toggle) { display: none; }
.gms-hist-picker { position: relative; }
.gms-hist-pick-btn { background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; min-height: 30px; padding: 0 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; max-width: 240px; }
.gms-hist-pick-btn .dashicons { font-size: 16px; width: 16px; height: 16px; color: #50575e; }
.gms-hist-pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gms-hist-pick-menu { position: absolute; z-index: 50; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #c3c4c7; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.12); width: 280px; padding: 8px; }
.gms-hist-pick-q { width: 100%; margin-bottom: 6px; }
.gms-hist-pick-list { max-height: 260px; overflow: auto; }
.gms-hist-pick-list label { display: flex; gap: 6px; align-items: center; padding: 4px 4px; border-radius: 3px; font-size: 13px; }
.gms-hist-pick-list label:hover { background: #f6f7f7; }
.gms-hist-pick-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f0f1; margin-top: 6px; padding-top: 6px; font-size: 12px; }
.gms-hist-pick-msg { color: var(--gms-bad); }
.gms-hist-chips { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 6px; }
.gms-hchip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gms-hchip-title { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gms-muted); width: 112px; flex: none; }
.gms-hchip { --c: #2271b1; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #dcdcde; border-radius: 16px; padding: 4px 11px 4px 8px; cursor: pointer; font-size: 12.5px; color: #50575e; line-height: 1.3; }
.gms-hchip:hover { border-color: #a7aaad; }
.gms-hchip .gms-hchip-dot { background: #dcdcde; }
.gms-hchip.is-on { border-color: var(--c); color: #1d2327; box-shadow: inset 0 0 0 1px var(--c); background: #fff; }
.gms-hchip.is-on .gms-hchip-dot { background: var(--c); }
.gms-hchip-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.gms-hchip-val { font-weight: 600; color: #1d2327; }
.gms-hchip-delta { font-size: 11.5px; }
.gms-hchip-delta.is-good { color: var(--gms-ok); }
.gms-hchip-delta.is-bad { color: var(--gms-bad); }
.gms-hchip-delta.is-flat { color: var(--gms-muted); }
.gms-hist-msg { background: #f6f7f7; border-radius: 6px; padding: 18px; color: #50575e; text-align: center; margin: 8px 0; }
.gms-hist-chart { position: relative; width: 100%; min-height: 10px; }
.gms-hist-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.gms-hist-grid { stroke: #f0f0f1; stroke-width: 1; }
.gms-hist-axis { font-size: 11px; fill: #787c82; }
.gms-hist-zone { font-size: 10.5px; fill: #8c8f94; text-transform: uppercase; letter-spacing: .04em; }
.gms-hist-cursor { stroke: #8c8f94; stroke-width: 1; stroke-dasharray: 3 3; }
.gms-hist-tip { position: absolute; z-index: 20; pointer-events: none; background: #fff; border: 1px solid #dcdcde; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 8px 10px; font-size: 12px; min-width: 190px; }
.gms-hist-tip table { border-collapse: collapse; margin-top: 6px; width: 100%; }
.gms-hist-tip td { padding: 2px 4px; white-space: nowrap; }
.gms-hist-tip td .gms-hchip-dot { margin-right: 6px; width: 8px; height: 8px; }
.gms-hist-tip td.num { text-align: right; font-variant-numeric: tabular-nums; }
.gms-hist-tip td.num:nth-child(2) { font-weight: 600; }
.gms-hist-tag { display: inline-block; background: #f0f6fc; color: #2271b1; border-radius: 3px; padding: 0 5px; font-size: 10.5px; text-transform: uppercase; margin-left: 4px; }
.gms-hist-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-top: 6px; }
.gms-hist-leg { display: inline-flex; align-items: center; gap: 6px; }
.gms-hist-leg-title { color: var(--gms-muted); }
.gms-hist-note { font-size: 12px; color: var(--gms-muted); margin: 6px 0 0; }
.gms-hist-note:empty { display: none; }
@media (max-width: 782px) {
	.gms-hchip-title { width: 100%; }
	.gms-hist-controls { gap: 6px; }
}

.gmsf .gms-hist-seg button, .gmsf .gms-hist-icon, .gmsf .gms-hist-pick-btn, .gmsf .gms-hchip { box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.3; font-weight: 400; min-height: 0; }
.gmsf .gms-hist-seg button { color: #1d2327; background: #fff; }
.gmsf .gms-hist-seg button.is-on { background: #2271b1; color: #fff; }
.gmsf .gms-hist-controls select { border: 1px solid #c3c4c7; border-radius: 4px; padding: 2px 26px 2px 8px; background-color: #fff; }
.gmsf .gms-hist-icon { display: inline-flex; align-items: center; justify-content: center; }
.gmsf .gms-hist-title { font-size: 18px; }
.gmsf .gms-hchip { background: #fff; color: #50575e; }
/* Public page designs */
.gmsf-design-dark .gms-history.gh-classic { background: transparent; color: var(--ink); }
.gmsf-design-dark .gms-hist-title { color: #fff; }
.gmsf-design-dark .gms-hist-seg { border-color: var(--line); }
.gmsf-design-dark .gms-hist-seg button { background: #16223d !important; color: var(--ink) !important; border-color: var(--line) !important; }
.gmsf-design-dark .gms-hist-seg button.is-on { background: #0ea5e9 !important; color: #fff !important; }
.gmsf-design-dark .gms-hist-controls select, .gmsf-design-dark .gms-hist-icon, .gmsf-design-dark .gms-hist-pick-btn, .gmsf-design-dark .gms-hist-controls input[type="date"] { background: #16223d !important; color: var(--ink) !important; border-color: var(--line) !important; }
.gmsf-design-dark .gms-hist-check { color: var(--ink); }
.gmsf-design-dark .gms-hchip { background: #121b30 !important; border-color: var(--line); color: #b6c2d9 !important; }
.gmsf-design-dark .gms-hchip.is-on { color: #fff !important; }
.gmsf-design-dark .gms-hchip-val { color: #fff; }
.gmsf-design-dark .gms-hist-grid { stroke: #1d2945; }
.gmsf-design-dark .gms-hist-axis, .gmsf-design-dark .gms-hist-zone { fill: #8fa0bd; }
.gmsf-design-dark .gms-hist-tip { background: #0f1729; border-color: var(--line); color: var(--ink); }
.gmsf-design-dark .gms-hist-pick-menu { background: #121b30; border-color: var(--line); color: var(--ink); }
.gmsf-design-dark .gms-hist-msg { background: var(--soft); color: var(--muted); }
.gmsf-design-dark .gms-hist-chart svg rect[fill="#f0f6fc"] { fill: rgba(56,189,248,.08); }
.gmsf-design-dark .gms-hist-chart svg circle[fill="#fff"] { fill: #0a1020; }
.gmsf-design-glass .gms-history.gh-classic { background: transparent; color: var(--ink); }
.gmsf-design-glass .gms-hist-seg { border: 0; border-radius: 999px; padding: 3px; gap: 2px; background: rgba(148,163,184,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), inset 0 1px 2px rgba(20,24,60,.08); }
.gmsf-design-glass .gms-hist-seg button { background: transparent !important; color: var(--ink) !important; border: 0 !important; border-radius: 999px !important; transition: background .25s, transform .4s var(--lg-spring); }
.gmsf-design-glass .gms-hist-seg button.is-on { background: #fff !important; box-shadow: 0 2px 8px rgba(30,41,59,.16), inset 0 1px 0 #fff; transform: scale(1.03); }
.gmsf-design-glass .gms-hist-controls select, .gmsf-design-glass .gms-hist-icon, .gmsf-design-glass .gms-hist-pick-btn, .gmsf-design-glass .gms-hist-controls input[type="date"] { background: rgba(255,255,255,.3) !important; color: var(--ink) !important; border: 0 !important; border-radius: 999px !important; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.75), inset 0 1px 1px rgba(255,255,255,.8); }
.gmsf-design-glass .gms-hchip { background: rgba(255,255,255,.25) !important; border-color: transparent; border-radius: 999px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.75); }
.gmsf-design-glass .gms-hchip.is-on { background: rgba(255,255,255,.62) !important; }
.gmsf-design-glass .gms-hist-grid { stroke: rgba(11,16,32,.08); }
.gmsf-design-glass .gms-hist-tip { background: rgba(255,255,255,.82); border: 0; border-radius: 16px; box-shadow: 0 14px 34px -8px rgba(30,41,59,.3), inset 0 0 0 .5px #fff; -webkit-backdrop-filter: blur(24px) saturate(200%); backdrop-filter: blur(24px) saturate(200%); }
.gmsf-design-glass .gms-hist-pick-menu { background: rgba(255,255,255,.9); border: 0; border-radius: 20px; box-shadow: 0 20px 44px -10px rgba(30,41,59,.32), inset 0 0 0 .5px #fff; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
.gmsf-design-glass .gms-hist-msg { background: rgba(255,255,255,.35); color: var(--muted); border-radius: 14px; }
.gmsf-design-glass .gms-hist-chart svg rect[fill="#f0f6fc"] { fill: rgba(255,255,255,.3); }

.gms-hist-switch { white-space: nowrap; }
.gms-hist-switch .dashicons { color: #2271b1 !important; }
