/* GMS GSC Monitor Hub: public page ([gms_monitor]). Everything is scoped under .gmsf so the theme isn't affected. */
.gmsf {
	--ok: #1e8a44; --ok-bg: #e7f6ec;
	--warn: #b07d00; --warn-bg: #fff6d6;
	--bad: #d63638; --bad-bg: #fdecec;
	--err: #c25a00; --err-bg: #fff0e1;
	--pend: #6b7280; --pend-bg: #f1f2f4;
	--info: #2271b1; --info-bg: #eaf3fb;
	--ink: #1d2327; --muted: #646970; --line: #e3e5e8; --card: #fff; --soft: #f6f7f9;
	--gms-ok: var(--ok); --gms-bad: var(--bad); --gms-muted: var(--muted);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 40px;
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}
.gmsf *, .gmsf *::before, .gmsf *::after { box-sizing: border-box; }
.gmsf h2, .gmsf h3, .gmsf h4, .gmsf p, .gmsf ol, .gmsf ul, .gmsf dl { margin-top: 0; }
.gmsf a { color: var(--info); }
.gmsf button, .gmsf input, .gmsf select { font: inherit; letter-spacing: normal; text-transform: none; }
.gmsf .dashicons { font-size: 17px; width: 17px; height: 17px; line-height: 1; vertical-align: middle; }

/* Header */
.gmsf-head { margin-bottom: 18px; }
.gmsf-back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-size: 14px; }
.gmsf-head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gmsf-head-row > div { flex: 1 1 280px; min-width: 0; }
.gmsf-logo { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.gmsf-title { font-size: 26px; line-height: 1.2; margin: 0 0 4px; word-break: break-word; }
.gmsf-sub { margin: 0; color: var(--muted); font-size: 14px; }

/* Buttons */
.gmsf .gmsf-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.2; box-shadow: none; transition: background .15s, border-color .15s; }
.gmsf .gmsf-btn:hover { border-color: #b6bac1; background: var(--soft); }
.gmsf .gmsf-btn-primary { background: var(--info); border-color: var(--info); color: #fff; }
.gmsf .gmsf-btn-primary:hover { background: #135e96; border-color: #135e96; color: #fff; }
.gmsf .gmsf-btn-index { background: #f4effd; border-color: #d9c9f7; color: #5b2fa8; }
.gmsf .gmsf-btn-soft { background: var(--soft); }
.gmsf .gmsf-btn.is-busy { opacity: .6; cursor: progress; }
.gmsf .gmsf-link { background: none; border: 0; padding: 0; color: var(--info); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }

/* Tones */
.gmsf-chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--pend-bg); color: var(--pend); }
.gmsf-chip.gmsf-tone-ok { background: var(--ok-bg); color: var(--ok); }
.gmsf-chip.gmsf-tone-warn { background: var(--warn-bg); color: var(--warn); }
.gmsf-chip.gmsf-tone-bad { background: var(--bad-bg); color: var(--bad); }
.gmsf-chip.gmsf-tone-err { background: var(--err-bg); color: var(--err); }

/* Summary */
.gmsf-summary { display: grid; grid-template-columns: auto 1fr; gap: 18px 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.gmsf-ring { position: relative; flex: none; }
.gmsf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gmsf-ring-bg { fill: none; stroke: #eef0f2; stroke-width: 10; }
.gmsf-ring-fg { fill: none; stroke: var(--info); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.gmsf-tone-ok .gmsf-ring-fg { stroke: var(--ok); }
.gmsf-tone-warn .gmsf-ring-fg { stroke: #dba617; }
.gmsf-tone-bad .gmsf-ring-fg { stroke: var(--bad); }
.gmsf-tone-err .gmsf-ring-fg { stroke: var(--err); }
.gmsf-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.gmsf-ring-num small { font-size: 15px; font-weight: 600; margin-left: 1px; }
.gmsf-big { font-size: 22px; margin: 0 0 6px; line-height: 1.3; }
.gmsf-big b { font-weight: 700; }
.gmsf-explain { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.gmsf-week { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; font-weight: 600; }
.gmsf-up { color: var(--ok); }
.gmsf-down { color: var(--bad); }
.gmsf-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.gmsf-stat { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.gmsf-stat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pend); }
.gmsf-stat.gmsf-tone-ok .gmsf-stat-dot { background: var(--ok); }
.gmsf-stat.gmsf-tone-warn .gmsf-stat-dot { background: #dba617; }
.gmsf-stat.gmsf-tone-bad .gmsf-stat-dot { background: var(--bad); }
.gmsf-stat-label { font-size: 13.5px; color: var(--muted); }
.gmsf-stat b { grid-column: 1 / -1; font-size: 26px; line-height: 1.2; margin-top: 2px; }
.gmsf-stat small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }

/* Admin bar */
.gmsf-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f8f5ff; border: 1px dashed #cbb7f3; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.gmsf-admin-tag { width: 100%; font-size: 12px; color: #5b2fa8; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gmsf-jobs:empty { display: none; }
.gmsf-jobs { display: grid; gap: 10px; background: var(--info-bg); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.gmsf-job-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; margin-bottom: 6px; }
.gmsf-job-top .gmsf-link { margin-left: auto; font-size: 13px; }

/* Cards and sections */
.gmsf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 16px; overflow: visible; }
.gmsf-section { margin: 26px 0 16px; }
.gmsf-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gmsf-section-head h3 { font-size: 20px; margin: 0; }
.gmsf-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.gmsf .gmsf-search, .gmsf .gmsf-tools select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-width: 220px; background: var(--card); color: var(--ink); font-size: 14px; min-height: 38px; }
.gmsf .gmsf-tools select { min-width: 0; padding-right: 30px; }
.gmsf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gmsf .gmsf-pill { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.gmsf .gmsf-pill span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.gmsf .gmsf-pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gmsf .gmsf-pill.is-on span { color: #c3c4c7; }
.gmsf-empty { color: var(--muted); text-align: center; padding: 24px; background: var(--soft); border-radius: 12px; }
.gmsf-box { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.gmsf-box-warn { background: var(--warn-bg); color: #6b4e00; }

/* Website cards */
.gmsf-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.gmsf-site { background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; border-top: 4px solid var(--pend); }
.gmsf-site[hidden] { display: none; }
.gmsf-site.gmsf-tone-ok { border-top-color: var(--ok); }
.gmsf-site.gmsf-tone-warn { border-top-color: #dba617; }
.gmsf-site.gmsf-tone-bad { border-top-color: var(--bad); }
.gmsf-site.gmsf-tone-err { border-top-color: var(--err); }
.gmsf-site:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-1px); }
.gmsf .gmsf-site-link { display: block; padding: 16px 16px 12px; color: inherit; text-decoration: none; flex: 1; }
.gmsf-site-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 8px; margin-bottom: 10px; }
.gmsf-site-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; min-width: 0; }
.gmsf-site-pct { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.gmsf-site-pct b { font-size: 24px; color: var(--ink); }
.gmsf-bar { height: 8px; border-radius: 99px; background: #eef0f2; overflow: hidden; }
.gmsf-bar span { display: block; height: 100%; border-radius: 99px; background: var(--info); transition: width .4s; }
.gmsf-tone-ok .gmsf-bar span { background: var(--ok); }
.gmsf-tone-warn .gmsf-bar span { background: #dba617; }
.gmsf-tone-bad .gmsf-bar span { background: var(--bad); }
.gmsf-site-line { margin: 10px 0 4px; font-size: 13.5px; }
.gmsf-warn-t { color: var(--warn); }
.gmsf-bad-t { color: var(--bad); font-weight: 600; }
.gmsf-site-when { margin: 0; font-size: 12.5px; color: var(--muted); }
.gmsf-site-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.gmsf-site-actions .gmsf-btn { padding: 5px 11px; font-size: 13px; }

/* Reasons */
.gmsf-reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.gmsf-reason { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; border-left: 5px solid var(--pend); }
.gmsf-reason.gmsf-tone-warn { border-left-color: #dba617; }
.gmsf-reason.gmsf-tone-info { border-left-color: var(--info); }
.gmsf-reason.gmsf-tone-bad { border-left-color: var(--bad); }
.gmsf-reason-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.gmsf-reason-top b { font-size: 26px; line-height: 1; }
.gmsf-reason-top span { color: var(--muted); font-size: 13px; }
.gmsf-reason h4 { font-size: 15.5px; margin: 0 0 6px; }
.gmsf-reason p { font-size: 13.5px; color: #3c434a; margin-bottom: 8px; }
.gmsf-reason details { margin-bottom: 10px; font-size: 13.5px; }
.gmsf-reason summary { cursor: pointer; color: var(--info); font-weight: 600; }
.gmsf-reason ol { margin: 8px 0 0 18px; padding: 0; }
.gmsf-reason li { margin-bottom: 4px; }
.gmsf-reason-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--info-bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.gmsf-reason-filter[hidden] { display: none; }

/* Pages */
.gmsf-pages { display: grid; gap: 8px; transition: opacity .15s; }
.gmsf-pages.is-loading { opacity: .5; }
.gmsf-page { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.gmsf-page > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.gmsf-page > summary::-webkit-details-marker { display: none; }
.gmsf-page-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--pend); }
.gmsf-page.gmsf-tone-ok .gmsf-page-dot { background: var(--ok); }
.gmsf-page.gmsf-tone-warn .gmsf-page-dot { background: #dba617; }
.gmsf-page.gmsf-tone-bad .gmsf-page-dot { background: var(--bad); }
.gmsf-page.gmsf-tone-err .gmsf-page-dot { background: var(--err); }
.gmsf-page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gmsf-page-path { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmsf-page-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.gmsf-page-open { width: 10px; height: 10px; border-right: 2px solid #8c8f94; border-bottom: 2px solid #8c8f94; transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .15s; flex: none; }
.gmsf-page[open] .gmsf-page-open { transform: rotate(-135deg); margin-bottom: -4px; }
.gmsf-page-body { padding: 4px 18px 16px 38px; font-size: 14px; border-top: 1px solid var(--line); }
.gmsf-page-body h4 { font-size: 15.5px; margin: 12px 0 6px; }
.gmsf-page-body ol { margin: 0 0 10px 18px; padding: 0; }
.gmsf-page-body li { margin-bottom: 4px; }
.gmsf-good { color: var(--ok); font-weight: 600; margin: 12px 0; }
.gmsf-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.gmsf-hint { background: var(--info-bg); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.gmsf-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13.5px; margin: 12px 0 0; }
.gmsf-facts dt { color: var(--muted); }
.gmsf-facts dd { margin: 0; word-break: break-all; }
.gmsf-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--line); }
.gmsf-timeline li { position: relative; padding: 2px 0 6px 14px; font-size: 13.5px; }
.gmsf-timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #a7aaad; border: 2px solid #fff; }
.gmsf-timeline li span { color: var(--muted); }
.gmsf-tl-ok::before { background: var(--ok) !important; }
.gmsf-tl-bad::before { background: var(--bad) !important; }
.gmsf-tl-api::before { background: #9b51e0 !important; }
.gmsf-tl-req::before { background: #135e96 !important; }
.gmsf-page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cbb7f3; }
.gmsf-more { justify-self: center; margin-top: 6px; }

/* Sign in */
.gmsf-login { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px 20px; }
.gmsf-login h2 { margin: 12px 0 6px; }

/* Toast */
.gmsf-toasts { position: fixed; z-index: 99999; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; pointer-events: none; }
.gmsf-toast { position: relative; pointer-events: auto; transform: translateY(20px); opacity: 0; transition: all .25s; background: #1d2327; color: #fff; border-radius: 12px; padding: 12px 40px 12px 16px; font-size: 14px; line-height: 1.45; max-width: 100%; box-sizing: border-box; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: left; }
.gmsf-toast.is-in { transform: none; opacity: 1; }
.gmsf-toast.is-info { background: #1e4f7a; }
.gmsf-toast.is-ok { background: #135e2f; }
.gmsf-toast.is-error { background: #8a1f20; }
.gmsf-toast.is-warn { background: #7a5800; }
.gmsf-toast .gmsf-link { color: #fff; margin-left: 10px; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.gmsf-toast-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }

@media (max-width: 600px) {
	.gmsf { font-size: 14.5px; }
	.gmsf-title { font-size: 22px; }
	.gmsf-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 18px 16px; }
	.gmsf-summary-text { text-align: center; }
	.gmsf-week { justify-content: center; }
	.gmsf-stats { grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
	.gmsf-stat b { font-size: 22px; }
	.gmsf .gmsf-search { min-width: 0; width: 100%; }
	.gmsf-tools { width: 100%; }
	.gmsf-page-body { padding: 4px 14px 14px; }
	.gmsf-facts { grid-template-columns: 1fr; }
	.gmsf-facts dd { margin-bottom: 6px; }
}
@media print {
	.gmsf-admin, .gmsf-print, .gmsf-tools, .gmsf-more, .gmsf-page-actions, .gmsf-jobs, .gh-tools, .gh-more, .gmsf-see-reason { display: none !important; }
	.gmsf-site, .gmsf-reason, .gmsf-page, .gmsf-summary { break-inside: avoid; box-shadow: none; }
}


.gmsf-page > summary:focus:not(:focus-visible) { outline: none; }
.gmsf-page > summary:focus-visible { outline: 2px solid var(--info); outline-offset: -2px; border-radius: 12px; }

/* ===== Floating explanation (hover) ===== */
.gmsf-tooltip { position: absolute; z-index: 100000; max-width: 300px; background: #1d2327; color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; font-family: inherit; }
.gmsf-tooltip.is-in { opacity: 1; transform: none; }
.gmsf-tooltip.is-measure { visibility: hidden; opacity: 0; transition: none; }
.gmsf-tooltip::after { content: ""; position: absolute; left: var(--arrow, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #1d2327; }
.gmsf-tooltip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1d2327; }

/* ===== Table layout ===== */
.gmsf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.gmsf-kpi { padding: 14px 16px; border-right: 1px solid var(--line); border-top: 4px solid var(--pend); display: flex; flex-direction: column; gap: 2px; cursor: default; }
.gmsf-kpi:last-child { border-right: 0; }
.gmsf-kpi span { font-size: 13px; color: var(--muted); }
.gmsf-kpi b { font-size: 24px; line-height: 1.2; }
.gmsf-kpi b span { font-size: 18px; }
.gmsf-kpi.gmsf-tone-ok { border-top-color: var(--ok); }
.gmsf-kpi.gmsf-tone-warn { border-top-color: #dba617; }
.gmsf-kpi.gmsf-tone-bad { border-top-color: var(--bad); }
.gmsf-kpi.gmsf-tone-info { border-top-color: var(--info); }
.gmsf-count { color: var(--muted); font-size: 14px; }
.gmsf-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.gmsf-fsearch { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.gmsf-fsearch .dashicons { position: absolute; left: 12px; color: var(--muted); }
.gmsf .gmsf-fq { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 36px; min-height: 38px; font-size: 14px; background: var(--soft); color: var(--ink); }
.gmsf-fdrop { position: relative; }
.gmsf-fdrop > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; background: var(--card); user-select: none; }
.gmsf-fdrop > summary::-webkit-details-marker { display: none; }
.gmsf-fdrop > summary::after { content: "▾"; margin-left: 6px; color: var(--muted); }
.gmsf-fdrop[open] > summary { border-color: var(--info); }
.gmsf-fn:not(:empty) { background: var(--info); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.gmsf-fmenu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: 340px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; }
.gmsf-fmenu label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.gmsf-fmenu label:hover { background: var(--soft); }
.gmsf-fmenu .gmsf-fnone { margin: 6px 8px 2px; font-size: 13px; }
.gmsf-fsort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.gmsf .gmsf-fsortby { border: 1px solid var(--line); border-radius: 999px; padding: 6px 28px 6px 12px; min-height: 36px; font-size: 14px; background-color: var(--card); color: var(--ink); max-width: 290px; }
.gmsf .gmsf-fdir { padding: 6px 12px; }
.gmsf-fclear { font-size: 13.5px; }
.gmsf-fchips { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.gmsf-fchips:empty { display: none; }
.gmsf-fchip { display: inline-flex; align-items: center; gap: 4px; background: var(--info-bg); color: #135e96; border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 13px; }
.gmsf .gmsf-fchip button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 16px; line-height: 1; padding: 0 4px; }
.gmsf-twrap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.gmsf-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; }
.gmsf-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--soft); padding: 0; border: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gmsf-table th:not(:has(button)) { padding: 10px 12px; }
.gmsf .gmsf-th { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.gmsf .gmsf-th:hover, .gmsf .gmsf-th.is-on { color: var(--ink); }
.gmsf .gmsf-th:focus-visible { outline: 2px solid var(--info); outline-offset: -2px; }
.gmsf-th-dir { font-size: 10px; margin-left: 2px; opacity: .7; }
.gmsf-table th.num, .gmsf-table td.num { text-align: right; }
.gmsf-table th.num .gmsf-th { text-align: right; }
.gmsf-table td { padding: 11px 12px; border: 0; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.gmsf-table tbody tr:last-child td { border-bottom: 0; }
.gmsf-table tbody tr[hidden] { display: none; }
.gmsf-table tbody tr:not(.gmsf-detail-row):hover td { background: #fafbfc; }
.gmsf-table tbody tr:not(.gmsf-detail-row) td:first-child { box-shadow: inset 4px 0 0 var(--pend); }
.gmsf-table tbody tr.gmsf-tone-ok:not(.gmsf-detail-row) td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.gmsf-table tbody tr.gmsf-tone-warn:not(.gmsf-detail-row) td:first-child { box-shadow: inset 4px 0 0 #dba617; }
.gmsf-table tbody tr.gmsf-tone-bad:not(.gmsf-detail-row) td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.gmsf-table tbody tr.gmsf-tone-err:not(.gmsf-detail-row) td:first-child { box-shadow: inset 4px 0 0 var(--err); }
.gmsf-td-name a { text-decoration: none; color: var(--ink); }
.gmsf-td-name a:hover b { color: var(--info); text-decoration: underline; }
.gmsf-td-name { min-width: 170px; }
.gmsf-td-name b { display: block; overflow-wrap: anywhere; }
.gmsf-td-name small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.gmsf-td-pct { min-width: 120px; }
.gmsf-td-pct b { display: block; font-size: 15px; }
.gmsf-td-pct .gmsf-bar { display: block; height: 6px; margin-top: 4px; }
.gmsf-reason-tag { display: inline-block; background: var(--soft); border-radius: 6px; padding: 2px 7px; font-size: 12.5px; margin: 2px 0; white-space: nowrap; cursor: default; }
.gmsf-muted { color: var(--muted); }
.gmsf-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gmsf-row-actions .gmsf-btn { padding: 5px 10px; font-size: 13px; white-space: nowrap; }
.gmsf .gmsf-row-actions .gmsf-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gmsf-detail-row td { background: #fbfbfc; padding: 0; }
.gmsf-detail-row .gmsf-detail { border-top: 0; padding: 4px 20px 18px; }
.gmsf-tpages { transition: opacity .15s; }
.gmsf-tpages.is-loading { opacity: .5; }
.gmsf-tcount { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.gmsf-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; }
.gmsf .gmsf-pager .gmsf-btn[disabled] { opacity: .4; cursor: default; }

/* Table → stacked rows on phones */
@media (max-width: 760px) {
	.gmsf-twrap { border: 0; background: none; overflow: visible; }
	.gmsf-table thead { display: none; }
	.gmsf-table, .gmsf-table tbody, .gmsf-table tr, .gmsf-table td { display: block; width: 100%; }
	.gmsf-table tbody tr:not(.gmsf-detail-row) { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; border-left: 5px solid var(--pend); }
	.gmsf-table tr.gmsf-tone-ok { border-left-color: var(--ok) !important; }
	.gmsf-table tr.gmsf-tone-warn { border-left-color: #dba617 !important; }
	.gmsf-table tr.gmsf-tone-bad { border-left-color: var(--bad) !important; }
	.gmsf-table tr.gmsf-tone-err { border-left-color: var(--err) !important; }
	.gmsf-table tbody tr:not(.gmsf-detail-row) td:first-child { box-shadow: none !important; }
	.gmsf-table td { border: 0; padding: 5px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.gmsf-table td::before { content: attr(data-th); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
	.gmsf-table td { flex-wrap: wrap; align-items: center; }
	.gmsf-table td::before { margin-right: auto; }
	.gmsf-table td.gmsf-td-name, .gmsf-table td.gmsf-col-act { display: block; text-align: left; }
	.gmsf-table td.gmsf-td-name::before, .gmsf-table td.gmsf-col-act::before { content: none; }
	.gmsf-table td.gmsf-td-name b { font-size: 16px; }
	.gmsf-td-pct { min-width: 0; }
	.gmsf-td-pct .gmsf-bar { width: 120px; margin-left: auto; }
	.gmsf-row-actions { justify-content: flex-start; padding-top: 4px; }
	.gmsf-detail-row td { display: block; }
	.gmsf-detail-row { margin: -6px 0 10px; }
	.gmsf-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
	.gmsf-fsort { width: 100%; flex-wrap: wrap; }
	.gmsf-fsort label { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; min-width: 0; }
	.gmsf .gmsf-fsortby { max-width: none; flex: 1; min-width: 0; width: 100%; }
	.gmsf-fmenu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; max-height: 60vh; }
}
@media print {
	.gmsf-fbar, .gmsf-col-act, .gmsf-pager { display: none !important; }
}

/* =====================================================================
   Design: Dark panel
   ===================================================================== */
.gmsf.gmsf-design-dark {
	--ink: #e6ebf5; --muted: #8fa0bd; --line: #22304d; --card: #121b30; --soft: #0d1526;
	--info: #38bdf8; --info-bg: rgba(56,189,248,.14);
	--ok: #34d399; --ok-bg: rgba(52,211,153,.15);
	--warn: #fbbf24; --warn-bg: rgba(251,191,36,.15);
	--bad: #f87171; --bad-bg: rgba(248,113,113,.16);
	--err: #fb923c; --err-bg: rgba(251,146,60,.16);
	--pend: #8fa0bd; --pend-bg: rgba(143,160,189,.14);
	background: radial-gradient(1200px 500px at 10% -10%, #1b2a4d 0%, transparent 60%), #0a1020;
	color: var(--ink);
	border-radius: 22px;
	padding: 26px clamp(14px, 3vw, 30px) 30px;
}
.gmsf-design-dark a { color: var(--info); }
.gmsf-design-dark .gmsf-title { color: #fff; letter-spacing: -.01em; }
.gmsf-design-dark .gmsf-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.gmsf-design-dark .gmsf-kpis { background: transparent; border: 0; gap: 12px; overflow: visible; }
.gmsf-design-dark .gmsf-kpi { background: linear-gradient(160deg, #16223d, #0f182c); border: 1px solid var(--line); border-top: 0; border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; }
.gmsf-design-dark .gmsf-kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--pend); box-shadow: 0 0 18px var(--pend); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-ok::before { background: var(--ok); box-shadow: 0 0 18px var(--ok); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-warn::before { background: var(--warn); box-shadow: 0 0 18px var(--warn); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-bad::before { background: var(--bad); box-shadow: 0 0 18px var(--bad); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-info::before { background: var(--info); box-shadow: 0 0 18px var(--info); }
.gmsf-design-dark .gmsf-kpi b { font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-ok b { color: var(--ok); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-warn b { color: var(--warn); }
.gmsf-design-dark .gmsf-kpi.gmsf-tone-bad b { color: var(--bad); }
.gmsf-design-dark .gmsf-kpi:last-child { border-right: 1px solid var(--line); }
.gmsf-design-dark .gmsf-up { color: var(--ok); }
.gmsf-design-dark .gmsf-down { color: var(--bad); }
.gmsf-design-dark .gmsf-btn { background: #16223d; border-color: var(--line); color: var(--ink); }
.gmsf-design-dark .gmsf-btn:hover { background: #1c2b4d; border-color: #33466e; }
.gmsf-design-dark .gmsf-btn-primary { background: linear-gradient(135deg, #0ea5e9, #6366f1); border-color: transparent; color: #fff; }
.gmsf-design-dark .gmsf-btn-index { background: rgba(167,139,250,.16); border-color: rgba(167,139,250,.4); color: #c4b5fd; }
.gmsf-design-dark .gmsf-admin { background: rgba(167,139,250,.08); border-color: rgba(167,139,250,.35); }
.gmsf-design-dark .gmsf-admin-tag { color: #c4b5fd; }
.gmsf-design-dark .gmsf-fbar, .gmsf-design-dark .gmsf-twrap, .gmsf-design-dark .gmsf-card, .gmsf-design-dark .gmsf-reason { background: var(--card); border-color: var(--line); }
.gmsf-design-dark .gmsf-fq, .gmsf-design-dark .gmsf-fsortby, .gmsf-design-dark .gmsf-fdrop > summary { background: var(--soft) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.gmsf-design-dark .gmsf-fmenu { background: #121b30; border-color: var(--line); }
.gmsf-design-dark .gmsf-fmenu label:hover { background: #1a2742; }
.gmsf-design-dark .gmsf-fchip { background: var(--info-bg); color: var(--info); }
.gmsf-design-dark .gmsf-table th { background: #0f1729; color: var(--muted); border-color: var(--line); }
.gmsf-design-dark .gmsf-th { color: var(--muted) !important; }
.gmsf-design-dark .gmsf-th.is-on, .gmsf-design-dark .gmsf-th:hover { color: #fff !important; }
.gmsf-design-dark .gmsf-table td { border-color: #1a2540; }
.gmsf-design-dark .gmsf-table tbody tr:not(.gmsf-detail-row):hover td { background: #16213a; }
.gmsf-design-dark .gmsf-td-name a, .gmsf-design-dark .gmsf-td-pct b { color: #fff; }
.gmsf-design-dark .gmsf-bar { background: #1e2a45; }
.gmsf-design-dark .gmsf-bar span { box-shadow: 0 0 10px currentColor; }
.gmsf-design-dark .gmsf-tone-ok .gmsf-bar span, .gmsf-design-dark .gmsf-bar.gmsf-tone-ok span { background: var(--ok); color: var(--ok); }
.gmsf-design-dark .gmsf-tone-warn .gmsf-bar span, .gmsf-design-dark .gmsf-bar.gmsf-tone-warn span { background: var(--warn); color: var(--warn); }
.gmsf-design-dark .gmsf-tone-bad .gmsf-bar span, .gmsf-design-dark .gmsf-bar.gmsf-tone-bad span { background: var(--bad); color: var(--bad); }
.gmsf-design-dark .gmsf-reason-tag { background: #1a2742; color: var(--ink); }
.gmsf-design-dark .gmsf-warn-t { color: var(--warn); }
.gmsf-design-dark .gmsf-reason p, .gmsf-design-dark .gmsf-page-body { color: #c9d3e6; }
.gmsf-design-dark .gmsf-detail-row td { background: #0f1729; }
.gmsf-design-dark .gmsf-hint { background: var(--info-bg); color: #cfeafe; }
.gmsf-design-dark .gmsf-empty, .gmsf-design-dark .gmsf-box { background: var(--soft); color: var(--muted); }
.gmsf-design-dark .gmsf-jobs { background: var(--info-bg); }
.gmsf-design-dark .gmsf-timeline li::before { border-color: #121b30; }

/* =====================================================================
   Design: Traffic light
   ===================================================================== */
.gmsf-design-traffic { --lamp-red: #e5484d; --lamp-yellow: #f5b82e; --lamp-green: #2fa36b; --lamp-grey: #a8adb4; }
.gmsf-lamp { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 45%), var(--lamp, var(--lamp-grey)); box-shadow: 0 0 0 4px #2a2f36, 0 0 16px var(--lamp, transparent); flex: none; }
.gmsf-light-red { --lamp: var(--lamp-red); }
.gmsf-light-yellow { --lamp: var(--lamp-yellow); }
.gmsf-light-green { --lamp: var(--lamp-green); }
.gmsf-light-grey { --lamp: var(--lamp-grey); }
.gmsf-light-grey .gmsf-lamp { box-shadow: 0 0 0 4px #2a2f36; }
.gmsf-lights-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #1f2328; border-radius: 20px; padding: 18px; margin-bottom: 16px; color: #fff; }
.gmsf-ls { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 6px; border-radius: 14px; background: rgba(255,255,255,.04); cursor: default; }
.gmsf-ls .gmsf-lamp { width: 44px; height: 44px; box-shadow: 0 0 0 5px #111418, 0 0 26px var(--lamp); }
.gmsf-ls.gmsf-light-grey .gmsf-lamp { box-shadow: 0 0 0 5px #111418; }
.gmsf-ls b { font-size: 30px; line-height: 1; }
.gmsf-ls span:last-child { font-size: 14px; color: #c3c7cc; }
.gmsf-ls-total { grid-column: 1 / -1; text-align: center; margin: 4px 0 0; color: #c3c7cc; font-size: 14.5px; }
.gmsf-flist { display: grid; gap: 12px; }
.gmsf-light-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; border-left: 8px solid var(--lamp, var(--lamp-grey)); }
.gmsf-light-item[hidden] { display: none; }
.gmsf-lamp-big { width: 46px; height: 46px; box-shadow: 0 0 0 6px #2a2f36, 0 0 22px var(--lamp); }
.gmsf-light-grey .gmsf-lamp-big { box-shadow: 0 0 0 6px #2a2f36; }
.gmsf-light-body h4 { margin: 0 0 4px; font-size: 18px; }
.gmsf-light-body h4 a { color: var(--ink); text-decoration: none; }
.gmsf-light-body h4 a:hover { color: var(--info); text-decoration: underline; }
.gmsf-light-say { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.gmsf-light-red .gmsf-light-say { color: #b42318; }
.gmsf-light-yellow .gmsf-light-say { color: #8a5a00; }
.gmsf-light-green .gmsf-light-say { color: #1a7f4e; }
.gmsf-light-do { margin: 0 0 6px; font-size: 14.5px; background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.gmsf-light-do span { font-weight: 700; }
.gmsf-light-do em { color: var(--muted); font-style: normal; font-size: 13px; }
.gmsf-light-meta { margin: 0; font-size: 13px; color: var(--muted); }
.gmsf-light-item .gmsf-row-actions { flex-direction: column; align-items: stretch; }
.gmsf-design-traffic .gmsf-table tbody tr.gmsf-tone-bad:not(.gmsf-detail-row) td:first-child { box-shadow: inset 6px 0 0 var(--lamp-red); }
.gmsf-design-traffic .gmsf-table tbody tr.gmsf-tone-warn:not(.gmsf-detail-row) td:first-child { box-shadow: inset 6px 0 0 var(--lamp-yellow); }
.gmsf-design-traffic .gmsf-table tbody tr.gmsf-tone-ok:not(.gmsf-detail-row) td:first-child { box-shadow: inset 6px 0 0 var(--lamp-green); }
@media (max-width: 760px) {
	.gmsf-lights-summary { grid-template-columns: 1fr 1fr; }
	.gmsf-light-item { grid-template-columns: auto 1fr; padding: 14px; gap: 12px; }
	.gmsf-light-item .gmsf-row-actions { grid-column: 1 / -1; flex-direction: row; }
	.gmsf-lamp-big { width: 34px; height: 34px; }
}

/* =====================================================================
   Design: Executive report
   ===================================================================== */
.gmsf.gmsf-design-report {
	--ink: #111; --muted: #5f6368; --line: #d9d9d9; --card: #fff; --soft: #f7f7f5; --info: #b4232a; --info-bg: #fbf1f1;
	background: #fff; border: 1px solid #e6e6e6; box-shadow: 0 2px 30px rgba(0,0,0,.06); padding: clamp(16px, 2.6vw, 36px); border-radius: 4px;
}
.gmsf-design-report h2, .gmsf-design-report h3, .gmsf-design-report h4, .gmsf-design-report .gmsf-kpi b { font-family: Georgia, "Times New Roman", serif; }
.gmsf-design-report .gmsf-head { border-bottom: 3px double #111; padding-bottom: 14px; margin-bottom: 22px; }
.gmsf-design-report .gmsf-title { font-size: 34px; font-weight: 700; }
.gmsf-report-kicker { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b4232a; font-weight: 700; margin-bottom: 6px; }
.gmsf-design-report .gmsf-logo { border-radius: 2px; }
.gmsf-design-report .gmsf-kpis { border: 0; border-top: 1px solid #111; border-bottom: 1px solid #111; border-radius: 0; }
.gmsf-design-report .gmsf-kpi { border-top: 0; border-right: 1px solid var(--line); padding: 14px 16px; }
.gmsf-design-report .gmsf-kpi b { font-size: 32px; font-weight: 400; }
.gmsf-design-report .gmsf-kpi span { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.gmsf-design-report .gmsf-kpi.gmsf-tone-bad b { color: #b4232a; }
.gmsf-todo { margin: 22px 0; padding: 16px 20px 6px; border-left: 4px solid #b4232a; background: #fbf8f6; }
.gmsf-todo h3 { margin: 0 0 10px; font-size: 20px; }
.gmsf-todo ol { margin: 0 0 10px 20px; padding: 0; }
.gmsf-todo li { margin-bottom: 10px; line-height: 1.5; }
.gmsf-todo-first { font-size: 14.5px; }
.gmsf-design-report .gmsf-btn { border-radius: 3px; background: #fff; border-color: #bbb; }
.gmsf-design-report .gmsf-btn-primary { background: #111; border-color: #111; color: #fff; }
.gmsf-design-report .gmsf-btn-index { background: #fff; color: #b4232a; border-color: #b4232a; }
.gmsf-design-report .gmsf-admin { border-radius: 4px; background: #fafafa; border-color: #bbb; }
.gmsf-design-report .gmsf-admin-tag { color: #555; }
.gmsf-design-report .gmsf-card, .gmsf-design-report .gmsf-fbar, .gmsf-design-report .gmsf-reason { border-radius: 4px; }
.gmsf-design-report .gmsf-fq, .gmsf-design-report .gmsf-fdrop > summary, .gmsf-design-report .gmsf-fsortby { border-radius: 3px !important; background: #fff !important; }
.gmsf-design-report .gmsf-twrap { border: 0; border-radius: 0; border-top: 2px solid #111; border-bottom: 2px solid #111; }
.gmsf-design-report .gmsf-table th { background: #fff; color: #111; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; border-bottom: 1px solid #111; }
.gmsf-design-report .gmsf-th { color: #111 !important; font-size: 11px !important; }
.gmsf-design-report .gmsf-table td { border-bottom: 1px solid #ececec; }
.gmsf-design-report .gmsf-table tbody tr:not(.gmsf-detail-row) td:first-child { box-shadow: none !important; }
.gmsf-design-report .gmsf-table tbody tr:nth-child(4n+1):not(.gmsf-detail-row) td { background: #fcfcfb; }
.gmsf-design-report .gmsf-chip { border-radius: 2px; background: transparent !important; padding: 0; font-weight: 700; }
.gmsf-design-report .gmsf-chip.gmsf-tone-bad, .gmsf-design-report .gmsf-chip.gmsf-tone-err { color: #b4232a; }
.gmsf-design-report .gmsf-chip.gmsf-tone-warn { color: #8a5a00; }
.gmsf-design-report .gmsf-chip.gmsf-tone-ok { color: #1a7f4e; }
.gmsf-design-report .gmsf-bar { height: 4px; border-radius: 0; background: #eee; }
.gmsf-design-report .gmsf-bar span { border-radius: 0; background: #111 !important; }
.gmsf-design-report .gmsf-reason { border-left-width: 3px; }
.gmsf-design-report .gmsf-reason-tag { border-radius: 2px; background: #f2f2f0; }
.gmsf-design-report .gmsf-section-head h3 { font-size: 22px; border-bottom: 1px solid #111; padding-bottom: 4px; flex: 1; }
 .gmsf-design-report .gmsf-chart-card { border-radius: 4px; }
@media (max-width: 760px) {
	.gmsf-design-report .gmsf-title { font-size: 26px; }
	.gmsf-design-report .gmsf-twrap { border: 0; }
}
@media print {
	.gmsf.gmsf-design-dark { background: #fff; color: #000; }
	.gmsf.gmsf-design-report { box-shadow: none; border: 0; padding: 0; }
}

/* Fit the sites table without side scrolling on usual screens */
.gmsf-sites-table td, .gmsf-sites-table th:not(:has(button)) { padding-left: 9px; padding-right: 9px; }
.gmsf-sites-table .gmsf-th { padding-left: 9px; padding-right: 9px; }
.gmsf-sites-table .gmsf-reason-tag { white-space: normal; }
.gmsf-sites-table .gmsf-td-pct { min-width: 96px; }
.gmsf-sites-table .gmsf-td-name { min-width: 150px; }
.gmsf-design-report .gmsf-kpi b span { font-size: 22px; }

/* =====================================================================
   Buttons keep their own colours: some themes paint every link
   (blue text, underline, even with !important), which hid the label of
   link buttons such as "Request".
   ===================================================================== */
.gmsf .gmsf-btn { --gmsf-btn-ink: var(--ink); }
.gmsf .gmsf-btn-primary { --gmsf-btn-ink: #fff; }
.gmsf .gmsf-btn-index { --gmsf-btn-ink: #5b2fa8; }
.gmsf .gmsf-row-actions .gmsf-btn.is-on { --gmsf-btn-ink: #fff; }
.gmsf-design-dark .gmsf-btn-index { --gmsf-btn-ink: #c4b5fd; }
.gmsf-design-report .gmsf-btn-index { --gmsf-btn-ink: #b4232a; }
.gmsf-design-dark .gmsf-row-actions .gmsf-btn.is-on { --gmsf-btn-ink: #0b1220; }
.gmsf a.gmsf-btn, .gmsf a.gmsf-btn:link, .gmsf a.gmsf-btn:visited, .gmsf a.gmsf-btn:hover, .gmsf a.gmsf-btn:focus, .gmsf a.gmsf-btn:active,
.gmsf a.gmsf-btn span, .gmsf button.gmsf-btn, .gmsf button.gmsf-btn span {
	color: var(--gmsf-btn-ink) !important; text-decoration: none !important; -webkit-text-fill-color: currentColor;
}
.gmsf a.gmsf-btn .dashicons, .gmsf button.gmsf-btn .dashicons { color: var(--gmsf-btn-ink) !important; }

/* =====================================================================
   Tables that don't fit their space (narrow theme, wide padding, big
   fonts) switch to one card per row instead of being cut on the right.
   front.js adds .gmsf-stack only when the table would overflow.
   ===================================================================== */
.gmsf-twrap.gmsf-stack { border: 0; background: none; overflow: visible; }
.gmsf-stack .gmsf-table thead { display: none; }
.gmsf-stack .gmsf-table, .gmsf-stack .gmsf-table tbody { display: block; width: 100%; }
.gmsf-stack .gmsf-table tbody tr:not(.gmsf-detail-row) { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 14px; border-left: 5px solid var(--pend); }
.gmsf-stack .gmsf-table tr.gmsf-tone-ok { border-left-color: var(--ok) !important; }
.gmsf-stack .gmsf-table tr.gmsf-tone-warn { border-left-color: #dba617 !important; }
.gmsf-stack .gmsf-table tr.gmsf-tone-bad { border-left-color: var(--bad) !important; }
.gmsf-stack .gmsf-table tr.gmsf-tone-err { border-left-color: var(--err) !important; }
.gmsf-stack .gmsf-table tbody tr:not(.gmsf-detail-row) td:first-child { box-shadow: none !important; }
.gmsf-stack .gmsf-table tbody tr:not(.gmsf-detail-row) td { display: block; border: 0; padding: 4px 0; text-align: left !important; background: none !important; min-width: 0; }
.gmsf-stack .gmsf-table td::before { content: attr(data-th); display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.gmsf-stack .gmsf-table td.gmsf-td-name, .gmsf-stack .gmsf-table td.gmsf-col-act { grid-column: 1 / -1; }
.gmsf-stack .gmsf-table td.gmsf-td-name::before, .gmsf-stack .gmsf-table td.gmsf-col-act::before { content: none; }
.gmsf-stack .gmsf-table td.gmsf-td-name b { font-size: 16px; }
.gmsf-stack .gmsf-td-pct .gmsf-bar { max-width: 160px; }
.gmsf-stack .gmsf-row-actions { justify-content: flex-start; flex-direction: row !important; padding-top: 4px; }
.gmsf-stack .gmsf-reason-tag { white-space: normal; }
.gmsf-stack .gmsf-table tr.gmsf-detail-row { display: block; margin: -6px 0 10px; }
.gmsf-stack .gmsf-table tr.gmsf-detail-row td { display: block; }
.gmsf-design-report .gmsf-stack .gmsf-table tbody tr:not(.gmsf-detail-row) { border-radius: 4px; }

/* Sites table: let headers wrap so it fits more screens before switching to cards */
.gmsf-sites-table th, .gmsf .gmsf-sites-table .gmsf-th { white-space: normal; line-height: 1.25; }
.gmsf-sites-table .gmsf-col-act .gmsf-btn { padding: 4px 9px; font-size: 12.5px; }

/* =====================================================================
   Design: Glass — "Liquid Glass" (current Apple style)
   Clear, lens-like panels: very little milky fill, strong saturation of
   what is behind, a light rim that is bright on two corners and fades
   on the sides, an inner edge glow for thickness, a shine that follows
   the pointer, capsule controls and buttons that swell when pressed.
   ===================================================================== */
.gmsf.gmsf-design-glass {
	--ink: #0b1220; --muted: rgba(30,41,59,.62); --line: rgba(255,255,255,.6); --card: rgba(255,255,255,.4); --soft: rgba(241,245,249,.5);
	--info: #0a64d8; --info-bg: rgba(10,132,255,.12);
	--ok: #13803b; --ok-bg: rgba(52,199,89,.16);
	--warn: #a25a00; --warn-bg: rgba(255,159,10,.16);
	--bad: #cf2a20; --bad-bg: rgba(255,59,48,.12);
	--err: #b4470d; --err-bg: rgba(255,120,40,.14);
	--pend: #5b6678; --pend-bg: rgba(148,163,184,.2);
	/* Neutral glass: grey-blue tint, thick bright edge, darker lower edge like a lens */
	--lg-tint: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 100%);
	--lg-tint-strong: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.18) 100%);
	--lg-sheen: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 38%);
	--lg-filter: blur(10px) saturate(150%) brightness(1.04);
	--lg-rim: linear-gradient(150deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.55) 20%, rgba(255,255,255,.12) 42%, rgba(148,163,184,.22) 70%, rgba(255,255,255,.8) 100%);
	--lg-shadow:
		0 0 0 .5px rgba(15,23,42,.1),
		0 1px 2px rgba(15,23,42,.06),
		0 14px 36px -14px rgba(30,41,59,.32),
		inset 0 1.5px 1px rgba(255,255,255,.95),
		inset 0 -1.5px 2px rgba(71,85,105,.14),
		inset 0 0 16px rgba(255,255,255,.35);
	--lg-spring: cubic-bezier(.34, 1.56, .64, 1);
	position: relative; isolation: isolate;
	color: var(--ink);
	border-radius: 34px;
	padding: 30px clamp(14px, 3vw, 34px) 34px;
	/* Light grey-blue backdrop with soft blue light behind the glass */
	background:
		radial-gradient(40% 32% at 8% 4%, rgba(186,214,245,.55) 0%, transparent 72%),
		radial-gradient(36% 30% at 94% 10%, rgba(203,213,225,.6) 0%, transparent 72%),
		radial-gradient(44% 34% at 70% 52%, rgba(196,212,232,.5) 0%, transparent 72%),
		radial-gradient(38% 32% at 12% 64%, rgba(203,213,225,.55) 0%, transparent 72%),
		radial-gradient(44% 30% at 80% 96%, rgba(190,207,228,.5) 0%, transparent 72%),
		linear-gradient(170deg, #f7f8fa 0%, #eef1f5 55%, #e8ebf0 100%);
	background-attachment: local;
	box-shadow: 0 0 0 1px rgba(15,23,42,.06), 0 20px 60px -30px rgba(30,41,59,.35);
}
.gmsf-design-glass a { color: var(--info); }
.gmsf-design-glass .gmsf-title { color: var(--ink); letter-spacing: -.025em; font-weight: 700; }
.gmsf-design-glass .gmsf-sub, .gmsf-design-glass .gmsf-muted { color: var(--muted); }
.gmsf-design-glass .gmsf-logo { border-radius: 14px; box-shadow: 0 6px 18px rgba(30,41,59,.2), 0 0 0 1.5px rgba(255,255,255,.9); }
.gmsf-design-glass .gmsf-section-head h3 { color: var(--ink); letter-spacing: -.015em; }

/* ---------- The glass surface ---------- */
.gmsf-design-glass .gmsf-kpi,
.gmsf-design-glass .gmsf-fbar,
.gmsf-design-glass .gmsf-twrap,
.gmsf-design-glass .gmsf-card,
.gmsf-design-glass .gmsf-reason,
.gmsf-design-glass .gmsf-admin,
.gmsf-design-glass .gmsf-jobs,
.gmsf-design-glass .gmsf-btn {
	position: relative;
	background: var(--lg-sheen), var(--lg-tint);
	border: 0;
	box-shadow: var(--lg-shadow);
	-webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
}
/* Content-heavy panels get a little more tint so text stays easy to read */
.gmsf-design-glass .gmsf-twrap, .gmsf-design-glass .gmsf-card, .gmsf-design-glass .gmsf-reason { background: var(--lg-sheen), var(--lg-tint-strong); }
/* Light rim: bright top-left and bottom-right, almost invisible on the sides */
.gmsf-design-glass .gmsf-kpi::before,
.gmsf-design-glass .gmsf-fbar::before,
.gmsf-design-glass .gmsf-twrap::before,
.gmsf-design-glass .gmsf-card::before,
.gmsf-design-glass .gmsf-reason::before,
.gmsf-design-glass .gmsf-admin::before,
.gmsf-design-glass .gmsf-jobs::before,
.gmsf-design-glass .gmsf-btn::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 2;
	background: var(--lg-rim);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Shine that follows the pointer (front.js sets --mx / --my) */
.gmsf-design-glass .gmsf-kpi::after,
.gmsf-design-glass .gmsf-card::after,
.gmsf-design-glass .gmsf-reason::after,
.gmsf-design-glass .gmsf-admin::after,
.gmsf-design-glass .gmsf-btn::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
	background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.42), rgba(255,255,255,0) 65%);
	opacity: 0; transition: opacity .35s;
}
.gmsf-design-glass .gmsf-card::after, .gmsf-design-glass .gmsf-reason::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.26), rgba(255,255,255,0) 65%); }
.gmsf-design-glass .gmsf-kpi:hover::after, .gmsf-design-glass .gmsf-card:hover::after, .gmsf-design-glass .gmsf-reason:hover::after,
.gmsf-design-glass .gmsf-admin:hover::after, .gmsf-design-glass .gmsf-btn:hover::after { opacity: 1; }

/* Layers: menus must open above later glass panels */
.gmsf-design-glass .gmsf-fbar { z-index: 6; border-radius: 26px; }
.gmsf-design-glass .gmsf-chart-card { z-index: 5; }
.gmsf-design-glass .gmsf-twrap, .gmsf-design-glass .gmsf-kpi, .gmsf-design-glass .gmsf-reason { z-index: 0; }
.gmsf-design-glass .gmsf-twrap { border-radius: 26px; }
.gmsf-design-glass .gmsf-card, .gmsf-design-glass .gmsf-reason { border-radius: 26px; }
.gmsf-design-glass .gmsf-admin { border-radius: 24px; }
.gmsf-design-glass .gmsf-fbar > *, .gmsf-design-glass .gmsf-twrap > *, .gmsf-design-glass .gmsf-card > *, .gmsf-design-glass .gmsf-admin > *, .gmsf-design-glass .gmsf-reason > * { position: relative; z-index: 3; }
.gmsf-design-glass .gmsf-fbar > .gmsf-fdrop[open], .gmsf-design-glass .gmsf-fbar .gmsf-fdrop[open] { z-index: 10; }

/* ---------- Big numbers ---------- */
.gmsf-design-glass .gmsf-kpis { background: transparent; border: 0; gap: 14px; overflow: visible; }
.gmsf-design-glass .gmsf-kpi { border-radius: 24px; padding: 16px 18px 18px; overflow: hidden; }
.gmsf-design-glass .gmsf-kpi > * { position: relative; z-index: 3; }
.gmsf-design-glass .gmsf-kpi b { font-size: 36px; font-weight: 650; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gmsf-design-glass .gmsf-kpi span { color: var(--muted); font-weight: 500; }
.gmsf-design-glass .gmsf-kpi.gmsf-tone-ok b { color: var(--ok); }
.gmsf-design-glass .gmsf-kpi.gmsf-tone-warn b { color: var(--warn); }
.gmsf-design-glass .gmsf-kpi.gmsf-tone-bad b { color: var(--bad); }
.gmsf-design-glass .gmsf-kpi.gmsf-tone-info b { color: var(--info); }
.gmsf-design-glass .gmsf-up { color: var(--ok); }
.gmsf-design-glass .gmsf-down { color: var(--bad); }

/* ---------- Buttons: clear glass capsules that swell when pressed ---------- */
.gmsf-design-glass .gmsf-btn { border-radius: 999px; overflow: hidden; font-weight: 600; transition: transform .45s var(--lg-spring), box-shadow .25s, background .25s; }
.gmsf-design-glass .gmsf-btn > * { position: relative; z-index: 3; }
.gmsf-design-glass .gmsf-btn:hover { background: var(--lg-sheen), rgba(255,255,255,.5); }
.gmsf-design-glass .gmsf-btn:active { transform: scale(1.07); box-shadow: var(--lg-shadow), 0 10px 30px -6px rgba(30,41,59,.3); }
.gmsf-design-glass .gmsf-btn-primary { background: var(--lg-sheen), rgba(0,122,255,.88); box-shadow: var(--lg-shadow), 0 8px 22px -6px rgba(0,122,255,.55); }
.gmsf-design-glass .gmsf-btn-primary:hover { background: var(--lg-sheen), rgba(0,110,240,.92); }
.gmsf-design-glass .gmsf-btn-index { background: var(--lg-sheen), rgba(10,132,255,.08); }
.gmsf-design-glass .gmsf-btn-index { --gmsf-btn-ink: #0a64d8; }
.gmsf-design-glass .gmsf-row-actions .gmsf-btn.is-on { background: var(--lg-sheen), rgba(11,16,32,.82); }
.gmsf-design-glass .gmsf-admin-tag { color: #475569; }

/* ---------- Search, filters and menus: capsules ---------- */
.gmsf-design-glass .gmsf-fq, .gmsf-design-glass .gmsf-fsortby, .gmsf-design-glass .gmsf-fdrop > summary {
	background: rgba(255,255,255,.28) !important; border: 0 !important; color: var(--ink) !important; border-radius: 999px !important;
	box-shadow: 0 0 0 .5px rgba(15,23,42,.1), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 2px rgba(71,85,105,.1) !important;
	transition: background .2s, transform .4s var(--lg-spring);
}
.gmsf-design-glass .gmsf-fdrop > summary:hover, .gmsf-design-glass .gmsf-fsortby:hover { background: rgba(255,255,255,.8) !important; }
.gmsf-design-glass .gmsf-fdrop[open] > summary { background: rgba(255,255,255,.92) !important; transform: scale(1.03); }
.gmsf-design-glass .gmsf-fmenu {
	background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.8)); border: 0; border-radius: 22px; padding: 8px;
	box-shadow: 0 22px 50px -10px rgba(30,41,59,.35), inset 0 0 0 .5px rgba(255,255,255,.9), inset 0 1px 1px #fff;
	-webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%);
	animation: gmsf-lg-pop .38s var(--lg-spring);
}
@keyframes gmsf-lg-pop { from { opacity: 0; transform: scale(.92) translateY(-4px); } to { opacity: 1; transform: none; } }
.gmsf-design-glass .gmsf-fmenu label { border-radius: 12px; }
.gmsf-design-glass .gmsf-fmenu label:hover { background: rgba(0,122,255,.1); }
.gmsf-design-glass .gmsf-fchip { background: rgba(10,132,255,.1); color: #0a57b8; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.8); }

/* ---------- Tables ---------- */
.gmsf-design-glass .gmsf-table th { background: rgba(255,255,255,.12); color: var(--muted); border-color: rgba(255,255,255,.55); }
.gmsf-design-glass .gmsf-th { color: var(--muted) !important; }
.gmsf-design-glass .gmsf-th.is-on, .gmsf-design-glass .gmsf-th:hover { color: var(--ink) !important; }
.gmsf-design-glass .gmsf-table td { border-color: rgba(148,163,184,.2); }
.gmsf-design-glass .gmsf-table tbody tr:not(.gmsf-detail-row) td { transition: background .2s; }
.gmsf-design-glass .gmsf-table tbody tr:not(.gmsf-detail-row):hover td { background: rgba(255,255,255,.4); }
.gmsf-design-glass .gmsf-td-name a, .gmsf-design-glass .gmsf-td-pct b { color: var(--ink); }
.gmsf-design-glass .gmsf-detail-row td { background: rgba(255,255,255,.28); }
.gmsf-design-glass .gmsf-chip { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), inset 0 1px 0 rgba(255,255,255,.6); }
.gmsf-design-glass .gmsf-bar { background: rgba(148,163,184,.22); box-shadow: inset 0 1px 2px rgba(20,24,60,.1); }
.gmsf-design-glass .gmsf-bar span { box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.gmsf-design-glass .gmsf-reason-tag { background: rgba(148,163,184,.16); color: var(--ink); border-radius: 999px; padding: 2px 9px; }
.gmsf-design-glass .gmsf-reason p, .gmsf-design-glass .gmsf-page-body { color: rgba(11,16,32,.8); }
.gmsf-design-glass .gmsf-hint { background: rgba(0,122,255,.12); color: #0a3a80; border-radius: 16px; }
.gmsf-design-glass .gmsf-empty, .gmsf-design-glass .gmsf-box { background: rgba(255,255,255,.35); color: var(--muted); border-radius: 18px; }
.gmsf-design-glass .gmsf-timeline li::before { border-color: rgba(255,255,255,.9); }
/* Rows as cards (narrow space / phones): each row is its own glass card, the wrapper disappears */
.gmsf-design-glass .gmsf-twrap.gmsf-stack { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gmsf-design-glass .gmsf-twrap.gmsf-stack::before { content: none; }
.gmsf-design-glass .gmsf-stack .gmsf-table tbody tr:not(.gmsf-detail-row) {
	background: var(--lg-sheen), var(--lg-tint-strong); border: 0; border-radius: 24px; box-shadow: var(--lg-shadow), inset 4px 0 0 var(--pend);
	-webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
}
.gmsf-design-glass .gmsf-stack .gmsf-table tr.gmsf-tone-ok:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #34c759; }
.gmsf-design-glass .gmsf-stack .gmsf-table tr.gmsf-tone-warn:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff9f0a; }
.gmsf-design-glass .gmsf-stack .gmsf-table tr.gmsf-tone-bad:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff3b30; }
.gmsf-design-glass .gmsf-stack .gmsf-table tr.gmsf-tone-err:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff7a28; }


/* Hover explanations as glass when shown from this design (front.js adds the class) */
.gmsf-tooltip.gmsf-tooltip-glass { background: rgba(255,255,255,.82); color: #0b1020; border-radius: 14px; box-shadow: 0 14px 34px -8px rgba(30,41,59,.32), inset 0 0 0 .5px #fff, inset 0 1px 1px #fff; -webkit-backdrop-filter: blur(24px) saturate(200%); backdrop-filter: blur(24px) saturate(200%); }
.gmsf-tooltip.gmsf-tooltip-glass::after { border-top-color: rgba(255,255,255,.85); }
.gmsf-tooltip.gmsf-tooltip-glass.is-below::after { border-top-color: transparent; border-bottom-color: rgba(255,255,255,.85); }

/* Without backdrop-filter: more solid panels so text stays readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.gmsf-design-glass { --lg-tint: rgba(255,255,255,.62); --lg-tint-strong: rgba(255,255,255,.78); }
}
/* Phones: the filter menu is fixed to the screen, so the bar can't be a glass layer; rows are glass cards */
@media (max-width: 760px) {
	.gmsf-design-glass .gmsf-fbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lg-sheen), rgba(255,255,255,.55); }
	.gmsf-design-glass .gmsf-twrap { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.gmsf-design-glass .gmsf-twrap::before { content: none; }
	.gmsf-design-glass .gmsf-table tbody tr:not(.gmsf-detail-row) { background: var(--lg-sheen), var(--lg-tint-strong); border: 0; border-radius: 24px; box-shadow: var(--lg-shadow), inset 4px 0 0 var(--pend); -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter); }
	.gmsf-design-glass .gmsf-table tr.gmsf-tone-ok:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #34c759; }
	.gmsf-design-glass .gmsf-table tr.gmsf-tone-warn:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff9f0a; }
	.gmsf-design-glass .gmsf-table tr.gmsf-tone-bad:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff3b30; }
	.gmsf-design-glass .gmsf-table tr.gmsf-tone-err:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff7a28; }
	.gmsf.gmsf-design-glass { border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.gmsf-design-glass .gmsf-btn, .gmsf-design-glass .gmsf-fdrop > summary { transition: none; transform: none !important; }
	.gmsf-design-glass .gmsf-fmenu { animation: none; }
}
@media print {
	.gmsf.gmsf-design-glass { background: #fff; box-shadow: none; }
	.gmsf-design-glass .gmsf-kpi, .gmsf-design-glass .gmsf-twrap, .gmsf-design-glass .gmsf-card, .gmsf-design-glass .gmsf-reason, .gmsf-design-glass .gmsf-btn { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 1px solid #ddd; }
	.gmsf-design-glass .gmsf-kpi::before, .gmsf-design-glass .gmsf-twrap::before, .gmsf-design-glass .gmsf-card::before, .gmsf-design-glass .gmsf-reason::before, .gmsf-design-glass .gmsf-btn::before { content: none; }
}

/* 7.0: live check (read-only) */
.gmsf-live { margin: 10px 0 6px; }
.gmsf-live-item { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin-bottom: 6px; background: var(--card); }
.gmsf-live-item > summary { cursor: pointer; padding: 8px 0 8px 18px; font-weight: 600; position: relative; list-style: none; }
.gmsf-live-item > summary::-webkit-details-marker { display: none; }
.gmsf-live-item > summary::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--pend); }
.gmsf-sev-critical > summary::before { background: var(--bad); }
.gmsf-sev-high > summary::before { background: #e26f00; }
.gmsf-sev-medium > summary::before { background: #dba617; }
.gmsf-live-item p, .gmsf-live-item ol { margin: 0 0 8px; font-size: 14px; }
.gmsf-live-item ol { padding-left: 18px; }
.gmsf-live-ok { color: var(--ok); }
.gmsf-live-admin { font-size: 13.5px; }

/* Endless lists: rows loaded 30 / 50 / 100 at a time */
.gmsf .gmsf-cut { display: none !important; }
.gmsf .gmsf-per { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-left: 10px; white-space: nowrap; }
.gmsf .gmsf-per select, .gmsf .gmsf-tools .gmsf-per select { min-width: 0; min-height: 32px; padding: 4px 26px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--card); color: var(--ink); font-size: 13.5px; width: auto; }
.gmsf .gmsf-section-head .gmsf-per { margin-left: auto; }
.gmsf .gmsf-section-head .gmsf-count + .gmsf-per { margin-left: 10px; }
.gmsf-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13.5px; }
.gmsf-tcount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.gmsf-auto { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); font-size: 13.5px; text-align: center; }
.gmsf-auto[hidden] { display: none; }
.gmsf .gmsf-auto-btn { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.gmsf .gmsf-auto-btn:hover { border-color: #b6bac1; }
.gmsf .gmsf-auto-btn:disabled { opacity: .6; cursor: progress; }
.gmsf-auto.is-loading .gmsf-auto-hint { visibility: hidden; }
.gmsf-auto.is-end { font-size: 13px; }
@media print { .gmsf .gmsf-per, .gmsf-auto { display: none !important; } .gmsf .gmsf-cut { display: revert !important; } }

/* ---------- List | Cards switch ---------- */
.gmsf .gms-vt { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); margin-left: 8px; flex: none; }
.gmsf .gms-vt-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 5px 12px; min-height: 32px; font: inherit; font-size: 13.5px; line-height: 1; color: var(--muted); cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; border-radius: 0; }
.gmsf .gms-vt-btn + .gms-vt-btn { border-left: 1px solid var(--line); }
.gmsf .gms-vt-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.gmsf .gms-vt-btn:hover { color: var(--ink); }
.gmsf .gms-vt-btn.is-on { background: var(--info, #2271b1); color: #fff; }
.gmsf .gms-vt-btn:focus-visible { outline: 2px solid var(--info, #2271b1); outline-offset: -2px; }
.gmsf .gmsf-section-head .gms-vt, .gmsf .gmsf-tcount .gms-vt { margin-left: 0; }
.gmsf .gmsf-tcount .gmsf-per { margin-left: auto; }

/* Cards: the same rows, one card each, several per line. */
.gmsf-tsec.gms-is-grid .gmsf-twrap { border: 0; background: none; overflow: visible; box-shadow: none; }
.gmsf-tsec.gms-is-grid .gmsf-table { display: block; width: 100%; }
.gmsf-tsec.gms-is-grid .gmsf-table thead { display: none; }
.gmsf-tsec.gms-is-grid .gmsf-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: row dense; gap: 14px; }
.gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { display: flex; flex-wrap: wrap; align-content: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pend); border-radius: 14px; padding: 12px 14px; margin: 0; min-width: 0; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-ok { border-left-color: var(--ok) !important; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-warn { border-left-color: #dba617 !important; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-bad { border-left-color: var(--bad) !important; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-err { border-left-color: var(--err) !important; }
.gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) td { display: block; width: 50%; box-sizing: border-box; border: 0; padding: 5px 8px 5px 0; text-align: left !important; background: none !important; box-shadow: none !important; min-width: 0; overflow-wrap: anywhere; }
.gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) td::before { content: attr(data-th); display: block; color: var(--muted); font-size: 12px; margin: 0 0 2px; }
.gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-td-name, .gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-td-pct, .gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-col-act { width: 100% !important; }
.gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-td-name::before, .gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-col-act::before { content: none !important; }
.gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-td-name b { font-size: 16px; }
.gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-td-name small { display: block; }
.gmsf-tsec.gms-is-grid .gmsf-td-pct .gmsf-bar { width: 100%; max-width: none; margin: 4px 0 0; }
.gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-col-act { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.gmsf-tsec.gms-is-grid .gmsf-row-actions { justify-content: flex-start; flex-direction: row !important; flex-wrap: wrap; }
.gmsf-tsec.gms-is-grid .gmsf-reason-tag { white-space: normal; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row { display: block; grid-column: 1 / -1; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row[hidden] { display: none; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row td { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-cut, .gmsf-tsec.gms-is-grid .gmsf-table tr[hidden] { display: none !important; }
/* Traffic light list → grid of cards */
.gmsf-tsec.gms-is-grid .gmsf-flist { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gmsf-tsec.gms-is-grid .gmsf-light-item { grid-template-columns: auto 1fr; align-content: start; align-items: start; gap: 12px 14px; padding: 16px; }
.gmsf-tsec.gms-is-grid .gmsf-light-item .gmsf-row-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; align-self: end; }
.gmsf-tsec.gms-is-grid .gmsf-lamp-big { width: 34px; height: 34px; }
@media (max-width: 600px) {
	.gmsf-tsec.gms-is-grid .gmsf-table tbody, .gmsf-tsec.gms-is-grid .gmsf-flist { grid-template-columns: 1fr; }
	.gmsf .gms-vt-btn > span:not(.dashicons) { display: none; }
}
@media print { .gmsf .gms-vt { display: none !important; } }
/* Cards with each design's own look */
/* Dark panel: the same hover as its table rows */
.gmsf-design-dark .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { transition: background .15s; }
.gmsf-design-dark .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row):hover { background: #16213a; }
/* Glass: each card is a glass panel, like its rows on phones */
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-twrap::before { content: none; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-twrap { -webkit-backdrop-filter: none; backdrop-filter: none; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { background: var(--lg-sheen), var(--lg-tint-strong); border: 0 !important; border-radius: 24px; padding: 16px 18px; box-shadow: var(--lg-shadow), inset 4px 0 0 var(--pend); -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter); transition: transform .2s, box-shadow .2s; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-ok:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #34c759; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-warn:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff9f0a; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-bad:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff3b30; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-err:not(.gmsf-detail-row) { box-shadow: var(--lg-shadow), inset 4px 0 0 #ff7a28; }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row):hover { transform: translateY(-2px); }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-col-act { border-top-color: rgba(255,255,255,.6); }
.gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row td { background: var(--lg-sheen), var(--lg-tint-strong); border: 0; border-radius: 24px; box-shadow: var(--lg-shadow); -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter); }
.gmsf-design-glass .gms-vt { background: rgba(255,255,255,.45); border-color: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.gmsf-design-glass .gms-vt-btn + .gms-vt-btn { border-left-color: rgba(255,255,255,.7); }
/* Executive report: sober printed-document cards */
.gmsf-design-report .gmsf-tsec.gms-is-grid .gmsf-twrap { border: 0; }
.gmsf-design-report .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { border-radius: 4px; border-color: #d9d9d6; border-left-width: 3px; background: #fff; box-shadow: none; }
.gmsf-design-report .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) td::before { text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; color: #555; }
.gmsf-design-report .gmsf-tsec.gms-is-grid .gmsf-table td.gmsf-col-act { border-top-color: #ececec; }
.gmsf-design-report .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row td { border-radius: 4px; }
.gmsf-design-report .gms-vt { border-radius: 4px; }
/* Traffic light: the lamp colours and the rounder cards of its list */
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { border-radius: 18px; border-left-width: 8px; border-left-color: var(--lamp-grey) !important; }
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-ok:not(.gmsf-detail-row) { border-left-color: var(--lamp-green) !important; }
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-warn:not(.gmsf-detail-row) { border-left-color: var(--lamp-yellow) !important; }
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-bad:not(.gmsf-detail-row),
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-tone-err:not(.gmsf-detail-row) { border-left-color: var(--lamp-red) !important; }
.gmsf-design-traffic .gmsf-tsec.gms-is-grid .gmsf-table tr.gmsf-detail-row td { border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .gmsf-design-glass .gmsf-tsec.gms-is-grid .gmsf-table tbody tr:not(.gmsf-detail-row) { transition: none; transform: none !important; } }

/* Priority watch: read-only star next to the name */
.gmsf-star { color: #dba617; font-weight: 400; margin-right: 2px; cursor: help; }
.gmsf-design-dark .gmsf-star { color: #f0c33c; }
