.home-grid { display: grid; grid-template-columns: minmax(320px, .76fr) minmax(520px, 1.45fr); gap: 18px; }
.workspace-column { min-width: 0; }
.home-grid .status-column > .section-heading { align-items: flex-end; }
.query-panel { display: grid; gap: 17px; padding: 18px; }
.notice-band { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel); color: var(--muted); }
.notice-band > svg { width: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.notice-band p { display: grid; gap: 2px; margin: 0; }
.notice-band p span { display: block; }
.status-card { min-height: 190px; padding: 20px; }
.server-summary { display: flex; align-items: center; gap: 16px; }
.server-icon-shell { display: grid; place-items: center; position: relative; width: 78px; height: 78px; flex: 0 0 78px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--input); color: var(--accent); font-weight: 900; }
.server-icon-shell img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.server-icon-shell img:not([src]) { display: none; }
.server-copy { min-width: 0; flex: 1; }
.server-name-row { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.server-name-row h3 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 22px; }
.server-name-row > span, .server-copy > p { color: var(--muted); }
.server-copy > p { margin: 3px 0 10px; }
.metrics { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); }
.metrics span { display: flex; align-items: center; gap: 6px; }
.metrics svg { width: 16px; }
.metrics strong { color: var(--text); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }
.motd { margin-top: 17px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--input); white-space: pre-wrap; overflow-wrap: anywhere; }
.chart-panel { margin-top: 14px; padding: 18px; }
.chart-toolbar { display: flex; justify-content: space-between; gap: 16px; }
.chart-toolbar h3 { margin: 0; font-size: 18px; }
.chart-toolbar p:last-child { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.tool-buttons { display: flex; gap: 6px; }
.player-chart { width: 100%; height: 330px; margin-top: 8px; }
.range-control { padding: 2px 12px 5px; }
.range-track { position: relative; height: 28px; touch-action: none; }
.range-track::before, #range-fill { content: ""; position: absolute; top: 12px; right: 0; left: 0; height: 4px; border-radius: 4px; background: var(--border-soft); }
#range-fill { right: auto; z-index: 1; background: var(--accent); cursor: grab; }
#range-fill:active { cursor: grabbing; }
.range-track input { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; -webkit-appearance: none; }
.range-track input::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid var(--panel); border-radius: 50%; background: var(--accent); pointer-events: auto; -webkit-appearance: none; cursor: grab; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

.page-title { margin-bottom: 20px; }
.page-title h1 { margin: 0; font-size: 28px; }
.page-title p { margin: 5px 0 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 17px; }
.stat-card p { margin: 0; color: var(--muted); }
.stat-card strong { display: block; margin-top: 8px; font-size: 27px; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 15px; }
.doc-nav { position: sticky; top: 86px; align-self: start; padding: 10px; }
.doc-nav a { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 5px; color: var(--muted); }
.doc-nav a:hover { background: var(--panel-2); color: var(--text); }
.doc-nav b { width: 22px; color: var(--accent); font-size: 11px; }
.doc-content { min-width: 0; padding: 22px; }
.doc-content h2 { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.doc-content h2:first-child { margin-top: 0; }
.doc-content h2 > span { display: inline-grid; place-items: center; width: 31px; height: 25px; border: 1px solid var(--border); border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.endpoint { display: inline-block; max-width: 100%; padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; overflow-wrap: anywhere; background: var(--input); color: var(--accent); font-family: monospace; }
.endpoint b { color: var(--success); }
.doc-content pre { max-width: 100%; overflow: auto; padding: 13px; border-radius: 6px; background: var(--input); color: #d7dae0; }
.doc-content h3 { margin: 18px 0 7px; font-size: 14px; }
.api-notice { margin-bottom: 22px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--panel-2); }
.api-notice strong { color: var(--accent); }
.api-notice p { margin: 4px 0 0; color: var(--muted); }
.api-section { min-width: 0; }
.api-section > p { color: var(--muted); }
.api-section > p .endpoint { color: var(--accent); }
.api-meta { padding-left: 10px; border-left: 2px solid var(--border); font-size: 13px; }
.param-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 6px; }
.param-table { min-width: 690px; white-space: normal; }
.param-table th, .param-table td { padding: 9px 10px; vertical-align: top; }
.param-table th { background: var(--panel-2); color: var(--accent); }
.param-table th:nth-child(1), .param-table td:nth-child(1) { min-width: 120px; }
.param-table th:nth-child(2), .param-table td:nth-child(2), .param-table th:nth-child(3), .param-table td:nth-child(3) { width: 90px; }
.param-table tr:last-child td { border-bottom: 0; }
.error-table { min-width: 520px; }
.error-table th:first-child, .error-table td:first-child { width: 220px; }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.about-grid .panel { padding: 20px; }
.about-grid h2 { margin-top: 0; }
.service-notes { display: grid; gap: 13px; margin: 0; padding-left: 22px; }
.service-notes li { padding-left: 3px; }

.admin-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-shell > .panel { min-width: 0; padding: 18px; }
.admin-shell .wide { grid-column: 1 / -1; }
.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 10px; border-bottom: 1px solid var(--border-soft); text-align: left; }
th { color: var(--muted); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-panel { width: min(420px, 100%); margin: 8vh auto; padding: 22px; }
.login-panel form { display: grid; gap: 15px; }
.empty-cell { height: 76px; color: var(--muted); text-align: center; }
.full-code { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
