/* PugBop operations workspace */
:root {
    color-scheme: light;
    --bg:#f4f6f8; --surface:#fff; --line:#d8e1e4; --ink:#182d33;
    --muted:#48616b; --accent:#166456; --tint:#e4f2ed;
    font:15px/1.55 Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0; background:var(--bg); color:var(--ink)}
a {color:var(--accent); text-underline-offset:.19em}
a:hover {text-decoration:underline}
button,input,textarea,select {font:inherit}
button,.btn,.nav-button,.p-launch {
    display:inline-flex; align-items:center; justify-content:center; gap:.4rem; background:var(--accent);
    color:#fff; border:1px solid transparent; border-radius:7px; min-height:38px; padding:.42rem .9rem;
    font-weight:650; cursor:pointer; text-decoration:none;
}
button:hover,.btn:hover,.nav-button:hover,.p-launch:hover {filter:brightness(.95)}
button:disabled {opacity:.55;cursor:default}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
    max-width:100%; min-width:0; min-height:40px; padding:.46rem .65rem; border:1px solid #aabbbf;
    border-radius:7px; background:white; color:var(--ink);
}
textarea {width:100%;resize:vertical;min-height:90px}
input[type=checkbox],input[type=radio] {accent-color:var(--accent)}
input[type=file] {width:100%}
:focus-visible {outline:3px solid #128472;outline-offset:3px}
.skip:not(:focus),.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus {position:fixed;top:.5rem;left:.5rem;z-index:99;background:#fff;padding:.4rem}
.ops-shell {display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.ops-sidebar {position:sticky;top:0;background:#fcfdfd;border-right:1px solid var(--line);height:100dvh;
    padding:0 14px 15px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c5d3d3 transparent}
.ops-nav-tools {position:sticky;top:0;z-index:2;background:#fcfdfd;padding:18px 1px 12px}
.ops-brand {display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;margin:0 3px 18px}
.ops-brand img {width:100px;height:30px;object-fit:contain}
.ops-brand span {font-size:.8rem;font-weight:700;border-left:1px solid #bfcecf;padding-left:9px}
.ops-nav-search {position:relative;display:block}
.ops-nav-search input[type=search] {width:100%;padding-right:56px;min-height:36px;background:#f5f8f8;border-color:#d7e1e1}
.ops-nav-search kbd {position:absolute;right:7px;top:50%;transform:translateY(-50%);pointer-events:none;
    font:11px/1.5 system-ui;border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:4px;padding:0 4px}
.ops-nav-search:focus-within kbd {display:none}
.ops-nav-group {border-bottom:1px solid #edf0f1;padding:.24rem 0 .45rem}
.ops-nav-group summary {cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;
    min-height:32px;padding:4px 10px;font-size:.81rem;letter-spacing:.035em;color:var(--muted);font-weight:650}
.ops-nav-group summary::-webkit-details-marker {display:none}
.ops-nav-group summary::after {content:"";width:6px;height:6px;border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:3px}
.ops-nav-group[open] summary::after {transform:rotate(45deg)}
.ops-sidebar nav a {display:block;padding:.39rem .72rem;border-radius:6px;color:#30474d;font-size:.94rem;text-decoration:none}
.ops-sidebar nav a:hover {background:#f0f6f4}
.ops-sidebar nav a[aria-current] {background:var(--tint);color:#0b5a49;box-shadow:inset 3px 0 #19705a;font-weight:700}
.ops-sidebar [data-empty-navigation] {color:var(--muted);padding:0 .6rem}
.ops-work {min-width:0}
.ops-top {min-height:62px;background:white;border-bottom:1px solid var(--line);padding:9px clamp(12px,3vw,48px);display:flex;align-items:center;gap:12px}
.ops-top nav,.ops-session {display:flex;gap:10px;align-items:center}
.ops-top nav {font-size:.89rem;color:var(--muted)}
.ops-top nav a {color:inherit;text-decoration:none}
.ops-top nav b {color:var(--ink)}
.ops-session {margin-left:auto}
.ops-account {max-width:16ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ops-session button,.ops-toggle {min-height:34px;color:var(--ink);border-color:var(--line);background:#fff;padding:.3rem .7rem}
.ops-main {max-width:1600px;min-width:0;margin:0 auto;padding:clamp(16px,2.7vw,42px)}
h1,h2,h3 {line-height:1.32;overflow-wrap:anywhere}
.ops-main h1,.signin-card h1 {font-size:clamp(1.65rem,2.7vw,2.45rem);letter-spacing:-.045em;margin:.1em 0 .65em}
.ops-main h2 {font-size:1.14rem;letter-spacing:-.015em}
fieldset {border:1px solid var(--line);min-width:0;border-radius:8px;padding:1rem}
legend {font-weight:650}
p,dl {overflow-wrap:anywhere}
small,.muted,.ops-line time {color:var(--muted)}
.panel,.ops-games .p-table-scroll {min-width:0;background:white;border:1px solid var(--line);border-radius:11px;
    padding:clamp(14px,1.8vw,24px);margin-bottom:1rem;box-shadow:0 2px 6px #18353505}
.panel>:first-child {margin-top:0}
.panel>:last-child {margin-bottom:0}
.grid,.ops-columns {display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:left}
th,td {padding:.73rem .75rem;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
thead th {color:#485f67;font-size:.86rem;background:#f3f7f7}
table tbody tr:last-child td {border-bottom:0}
.table-wrap,.p-table-scroll {max-width:100%;overflow:auto}
.ops-main pre,.prose {white-space:pre-wrap;overflow-wrap:anywhere}
details summary {cursor:pointer}
.form-grid,.p-editor {display:grid;gap:.85rem;max-width:850px}
.form-grid label,.p-editor label,.filters label,.p-formrow label {display:grid;gap:.25rem;min-width:0}
.form-grid>button,.p-editor>button {justify-self:start}
.filters,.tabs,.action-row,.pager,.p-pager,.p-sectitle,.p-formrow,.ops-section-title,.ops-line {display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.filters,.p-formrow {align-items:end;margin:.8rem 0 1rem}
.tabs {margin:0 0 1rem}
.tabs a,.chip,.p-filter,.pager a {display:inline-flex;align-items:center;min-height:34px;
    color:var(--accent);background:#fff;border:1px solid #c4d1ce;border-radius:7px;
    padding:.3rem .68rem;text-decoration:none;font-weight:600}
.tabs a[aria-current],button.p-filter {color:white;background:var(--accent);border-color:var(--accent)}
.pager,.p-pager {margin:1rem 0}
.p-editor,.p-formrow {padding:1.15rem;background:#fff;border:1px solid var(--line);border-radius:10px}
.p-formrow .p-check,.p-editor .p-check {display:flex;align-items:center;gap:.45rem}
.p-sectitle {margin:0 0 .85rem}
.p-sectitle h1 {margin:0 auto 0 0}
.ops-section-title,.ops-line {justify-content:space-between}
.ops-line {padding:.65rem 0;border-bottom:1px solid var(--line);text-decoration:none}
.ops-line:last-child {border:0}
.ops-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.ops-metrics a {display:grid;background:#fff;border:1px solid var(--line);border-radius:10px;text-decoration:none;
    padding:clamp(12px,1.8vw,22px);color:var(--ink)}
.ops-metrics a:hover {border-color:var(--accent)}
.ops-metrics span {color:var(--muted);font-size:.93rem}
.ops-metrics strong {font-size:clamp(1.65rem,3vw,2.5rem);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.notice {margin:0 0 1rem;padding:.75rem 1rem;background:#e1f2e8;color:#154833;border:1px solid #a6cdba;border-radius:7px}
.notice.error {background:#fff1ef;color:#8d2635;border-color:#edbdc1}
.danger {color:#9e2946}
.ops-toggle,.ops-backdrop,.ops-drawer-close,.short-action {display:none}
.operator-signin {display:grid;place-items:center;padding:20px;min-height:100dvh;background:#edf3f2}
.signin-card {width:min(100%,410px);padding:clamp(22px,4vw,42px);border:1px solid var(--line);border-radius:15px;background:white;box-shadow:0 8px 32px #203b3610}
.signin-card h1 {margin:1.25rem 0;font-size:1.65rem}
.signin-card button {width:100%;margin-top:.4rem}
.ad-checks {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:7px}
.ad-checks label {display:flex;align-items:center}
.ad-list-row {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:.7rem 0;border-bottom:1px solid var(--line)}
.ad-preview img,.ad-preview iframe {max-width:100%;border:0;display:block;margin-inline:auto}
@media(max-width:1050px) {
    .ops-shell {grid-template-columns:214px minmax(0,1fr)} .ops-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
    .ops-columns {grid-template-columns:1fr}
}
@media(max-width:850px) {
    .ops-shell {display:block} .ops-toggle {display:inline-flex} .ops-top {min-height:53px}
    .ops-sidebar {position:fixed;inset:0 auto 0 0;z-index:51;width:min(282px,86vw);visibility:hidden;transform:translateX(-100%)}
    .drawer-open {overflow:hidden}
    .drawer-open .ops-sidebar {transform:none;visibility:visible}
    .drawer-open .ops-backdrop {display:block;position:fixed;inset:0;z-index:50;width:100%;height:100dvh;background:#132e3480;border:0;border-radius:0}
    .ops-drawer-close {position:absolute;right:1px;top:15px;display:grid;place-items:center;min-width:36px;min-height:36px;padding:0;background:#edf3f2;color:var(--ink);font-size:1.2rem}
    .ops-nav-group summary,.ops-sidebar nav a {min-height:42px;display:flex;align-items:center}
    .ops-main {padding:16px} th,td {padding:.55rem .45rem}
}
@media(max-width:550px) {
    .ops-account,.ops-top nav span,.ops-top nav a {display:none}
    .ops-main {padding:12px}
    .game-catalogue .short-action {display:inline}
    .game-catalogue .full-action {display:none}
    .game-catalogue td:nth-child(3),.game-catalogue th:nth-child(3),.game-catalogue td:last-child a {white-space:nowrap}
    .ops-games .game-catalogue th:nth-child(2),.ops-games .game-catalogue td:nth-child(2),
    .ops-games .game-catalogue th:nth-child(4),.ops-games .game-catalogue td:nth-child(4){display:none}
    .ops-main input:not([type=checkbox]):not([type=radio]),.ops-main select {max-width:100%}
}
