:root {
    --bg:       #0d1117;
    --card:     #161b22;
    --border:   #30363d;
    --text1:    #e6edf3;
    --text2:    #8b949e;
    --text3:    #7d8590;
    --blue:     #58a6ff;
    --green:    #3fb950;
    --amber:    #d29922;
    --red:      #f85149;
    --blue-dim: rgba(88,166,255,0.12);
    --green-dim:rgba(63,185,80,0.15);
    --amber-dim:rgba(210,153,34,0.12);
    --radius:   10px;
    --mono:     ui-monospace, 'SF Mono', Menlo, Consolas, 'Cascadia Code', monospace;
    --sans:     system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --fs-xs:    0.7rem;  /* ticks, micro labels */
    --fs-sm:    0.8rem;  /* section labels, foot */
    --fs-md:    0.9rem;  /* secondary text */
    --fs-base:  1rem;    /* body, inputs, h1 */
    --fs-xl:    1.75rem; /* stat values */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text1);
    min-height: 100vh;
    padding: 32px 20px 64px;
}

.container { max-width: 880px; margin: 0 auto; }

h1 {
    font-size: var(--fs-base);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 28px;
}
h1 span { color: var(--green); }

/* -- Form -- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 6px;
}
.field-link {
    margin-left: 8px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--blue);
    text-decoration: none;
}
.field-link:hover { text-decoration: underline; }
.input {
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text1);
    font-family: var(--mono);
    font-size: var(--fs-base);
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-dim);
}
select.input { cursor: pointer; }
button.input { cursor: pointer; }
select.input option { background: var(--card); color: var(--text1); }
.field .input { width: 100%; }

/* -- External link indicator -- */
a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.25em;
    vertical-align: baseline;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7'/><path d='M8 7h9v9'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7'/><path d='M8 7h9v9'/></svg>") no-repeat center / contain;
    opacity: 0.75;
}

/* -- Update toast -- */
.update-toast[hidden] { display: none; }
.update-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-sm);
    color: var(--text1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}
.update-toast-btn {
    background: var(--green);
    border: none;
    border-radius: 6px;
    color: var(--bg);
    font-family: var(--mono);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
}
.update-toast-btn:hover { filter: brightness(1.1); }

/* -- Disclaimer -- */
.disclaimer {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: var(--fs-sm);
    color: var(--text2);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Hide input rows that sync is actively managing. */
body.sync-active .form-row-sync-managed { display: none; }

/* -- Section title -- */
.section-title {
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text2);
    margin: 32px 0 16px;
}

/* -- Stats row -- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .stats-row { grid-template-columns: 1fr; } }
.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.stat-label {
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 6px;
}
.stat-value {
    font-family: var(--mono);
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}
.stat-unit {
    font-family: var(--mono);
    font-size: var(--fs-md);
    font-weight: 400;
    color: var(--text3);
    margin-left: 2px;
}
.stat-sub {
    font-family: var(--mono);
    font-size: var(--fs-sm);
    color: var(--text3);
    margin-top: 4px;
}

/* -- Panel -- */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px 28px;
    margin-bottom: 16px;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.panel-title {
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
}
.panel-sub {
    font-family: var(--mono);
    font-size: var(--fs-md);
    color: var(--text3);
    transition: color 0.3s;
}

/* -- Timeline bar -- */
.tl-bar {
    position: relative;
    height: 36px;
    border-radius: 6px;
    overflow: visible;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    margin-top: 40px;
}
.tl-seg {
    position: absolute;
    top: 0; bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.tl-seg:nth-child(odd)  { background: rgba(255,255,255,0.015); }
.tl-seg:nth-child(even) { background: transparent; }
.tl-tick {
    position: absolute;
    top: 0; width: 1px; height: 6px;
    background: rgba(255,255,255,0.08);
}
.tl-tick-midnight {
    height: 100%;
    background: rgba(255,255,255,0.10);
}
.tl-tick-lbl {
    position: absolute;
    top: -16px;
    left: 0;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--text3);
    transform: translateX(-50%);
    white-space: nowrap;
}
.tl-tick-midnight .tl-tick-lbl {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text2);
}
.tl-mkr {
    position: absolute;
    top: -4px; bottom: -4px;
    width: 2px;
    border-radius: 1px;
    z-index: 2;
    transition: left 0.8s ease;
}
.tl-mkr-lbl {
    position: absolute;
    font-family: var(--mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: left 0.8s ease;
}
.tl-mkr-now  { background: var(--blue); box-shadow: 0 0 8px rgba(88,166,255,0.4); }
.tl-mkr-now .tl-mkr-lbl  { top: -32px; color: var(--blue); }
.tl-mkr-use  { background: var(--amber); box-shadow: 0 0 8px rgba(210,153,34,0.4); }
.tl-mkr-use .tl-mkr-lbl  { bottom: -32px; top: auto; color: var(--amber); }
.tl-mkr-pace { background: var(--green); box-shadow: 0 0 8px rgba(63,185,80,0.4); }
.tl-mkr-pace .tl-mkr-lbl { bottom: -32px; top: auto; color: var(--green); }
.tl-mkr-hist { background: var(--red); box-shadow: 0 0 8px rgba(248,81,73,0.4); }
.tl-mkr-hist .tl-mkr-lbl { top: -32px; color: var(--red); }

/* -- Legend (shared) -- */
.legend {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--fs-md);
    color: var(--text2);
}
.legend-bar { margin-top: 32px; }
.legend-chart { margin-top: 40px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.legend-dot-expected { background: var(--blue); }
.legend-dot-actual   { background: var(--amber); }
.legend-dot-pace     { background: var(--green); }
.legend-dot-hist     { background: var(--red); }
.legend-dot-target   { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.20); }
.legend-dot-target-wall {
    background-color: rgba(255,255,255,0.03);
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0, rgba(255,255,255,0.10) 2px, transparent 2px, transparent 4px);
    border: 1px solid rgba(255,255,255,0.12);
}
.legend-dot-budget   { background: rgba(63,185,80,0.7); }
.legend-dot-budget-wall {
    background-color: rgba(63,185,80,0.06);
    background-image: repeating-linear-gradient(135deg, rgba(63,185,80,0.30) 0, rgba(63,185,80,0.30) 2px, transparent 2px, transparent 4px);
    border: 1px solid rgba(63,185,80,0.20);
}
.legend-dot-offline  {
    background-color: rgba(0, 0, 0, 0.55);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.20) 0,
        rgba(255,255,255,0.20) 2px,
        transparent 2px,
        transparent 4px
    );
    border: 1px solid rgba(255,255,255,0.12);
}
.legend-status-lg    { font-size: var(--fs-base); }
.legend-status {
    font-family: var(--mono);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: 3px 10px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}
.status-track  { color: var(--text2); background: rgba(255,255,255,0.05); }
.status-ahead  { color: var(--amber); background: var(--amber-dim); }
.status-behind { color: var(--blue);  background: var(--blue-dim); }

/* -- Chart -- */
.chart-wrap {
    position: relative;
    margin-top: 48px;
    padding-left: 44px;
}
.chart-area {
    position: relative;
    height: 130px;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    overflow: visible;
}
.chart-grid {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.04);
}
.chart-grid-25  { bottom: 25%; }
.chart-grid-50  { bottom: 50%; }
.chart-grid-75  { bottom: 75%; }
.chart-grid-100 { bottom: 100%; }
.chart-axis-unit {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text2);
}
.chart-grid-lbl {
    position: absolute;
    right: calc(100% + 8px);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--text3);
    transform: translateY(-50%);
    white-space: nowrap;
}
.chart-col {
    position: absolute;
    top: 0; bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
    border-right: 1px solid rgba(255,255,255,0.4);
    transition: left 0.5s, width 0.5s;
}
.chart-bar {
    position: relative;
    width: 2rem;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s ease;
}
.chart-bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 3px 3px 0 0;
}
.chart-bar-fill-ref {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.20);
    border-bottom: none;
}
.chart-bar-fill-alw {
    background: linear-gradient(to top, rgba(63,185,80,0.5), rgba(63,185,80,0.8));
    box-shadow: 0 0 6px rgba(63,185,80,0.15);
}
.chart-bar-ref {
    background: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.04) 0,
        rgba(255,255,255,0.04) 4px,
        transparent 4px,
        transparent 8px
    );
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
}
.chart-bar-alw {
    background: repeating-linear-gradient(
        135deg,
        rgba(63,185,80,0.10) 0,
        rgba(63,185,80,0.10) 4px,
        transparent 4px,
        transparent 8px
    );
    background-color: rgba(63,185,80,0.06);
    border: 1px solid rgba(63,185,80,0.20);
    border-bottom: none;
}
.chart-bar-pct {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text2);
    white-space: nowrap;
}
.chart-col-day {
    position: absolute;
    bottom: -26px;
    left: 0; right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text3);
}

/* -- Sync panel -- */
.sync-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 16px;
}
.sync-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}
.sync-summary::-webkit-details-marker { display: none; }
.sync-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text2);
}
.sync-body {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sync-intro {
    font-size: var(--fs-sm);
    color: var(--text3);
    line-height: 1.5;
}
.sync-intro code,
.sync-snippet-label code {
    font-family: var(--mono);
    background: rgba(255,255,255,0.05);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--text2);
}
.sync-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sync-snippet-label {
    font-size: var(--fs-sm);
    color: var(--text3);
    margin: 4px 0 0;
}
.snippet-wrap {
    position: relative;
}
.snippet-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text2);
    font-family: var(--mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.snippet-copy:hover {
    color: var(--text1);
    border-color: var(--blue);
}
.snippet-copy:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-dim);
}
.sync-snippet {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 70px 12px 14px;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--text2);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.5;
}

/* -- Footer -- */
.foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-family: var(--mono);
    font-size: var(--fs-xs);
    color: var(--text3);
    margin-top: 20px;
}
.foot-links a {
    color: var(--text2);
    text-decoration: none;
}
.foot-links a:hover { color: var(--blue); }

/* -- Legal pages -- */
.legal h2 {
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal p {
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 12px;
}
.legal a {
    color: var(--blue);
    text-decoration: none;
}
.legal a:hover { text-decoration: underline; }
.legal code {
    font-family: var(--mono);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: var(--fs-sm);
    color: var(--text1);
}

/* -- History / stats -- */
.stats-section {
    margin-top: 32px;
}
.heatmap-row, .trend-row {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 180px;
    padding: 24px 0 24px;
}
.heatmap-value, .trend-value {
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text2);
    white-space: nowrap;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    margin-top: 8px;
}
.stats-table th, .stats-table td {
    padding: 6px 10px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}
.stats-table th:first-child, .stats-table td:first-child {
    text-align: left;
}
.stats-table th {
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-xs);
}
.stats-table tbody tr:last-child td {
    border-bottom: none;
}
.heatmap-cell, .trend-cell {
    flex: 1 1 0;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    height: 100%;
    min-width: 0;
}
.heatmap-bar {
    width: 100%;
    min-height: 2px;
    background: var(--blue);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s;
}
.heatmap-label, .trend-label {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trend-cell {
    position: relative;
}
.trend-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s;
}
.trend-bar-peak { background: var(--amber-dim); }
.trend-bar-avg  { background: var(--blue); }

/* -- Page header with nav icon -- */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.page-head h1 {
    margin-bottom: 0;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text2);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: color 0.15s, border-color 0.15s;
}
.icon-button:hover {
    color: var(--text1);
    border-color: var(--text3);
}
.page-head-nav {
    display: inline-flex;
    gap: 8px;
}

/* -- Stats page -- */
.container-wide {
    max-width: none;
    padding: 0 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.stats-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
    .stats-grid,
    .stats-grid-2 {
        grid-template-columns: 1fr;
    }
    .container-wide {
        padding: 0 12px;
    }
}
.panel-wide {
    grid-column: 1 / -1;
}
.panel-scroll {
    overflow-x: auto;
    max-width: 100%;
}
.panel-scroll .stats-table {
    min-width: 560px;
}

/* Tighten spacing on the wide stats page without shrinking readable text. */
.container-wide .panel {
    padding: 12px 14px;
    margin-bottom: 0;
}
.container-wide .panel-header {
    margin-bottom: 6px;
}
.container-wide .section-title {
    margin: 18px 0 8px;
}
.container-wide .stats-row {
    margin-bottom: 8px;
}
.container-wide .stat {
    padding: 10px 12px;
}
.container-wide .panel-note,
.container-wide .stat-note {
    font-size: var(--fs-sm);
}
.panel-note {
    color: var(--text3);
    font-size: var(--fs-xs);
    line-height: 1.4;
    margin: 0 0 8px;
}
.stat-note {
    color: var(--text3);
    font-size: var(--fs-xs);
    line-height: 1.3;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    padding-top: 6px;
}
.stats-granularity {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.stats-granularity button {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text2);
    font-size: var(--fs-sm);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.stats-granularity button:hover {
    color: var(--text1);
    border-color: var(--text3);
}
.stats-granularity button.is-active {
    color: var(--bg);
    background: var(--blue);
    border-color: var(--blue);
}
.chart-host {
    min-height: 280px;
    width: 100%;
}
.stats-empty {
    padding: 40px 0;
}
.stat-sub-faint {
    color: var(--text3);
    opacity: 0.75;
}
.stat-wall-paren {
    font-size: 0.5em;
    color: var(--text3);
    opacity: 0.75;
    margin-left: 4px;
    vertical-align: middle;
}
.tl-off {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0,
        rgba(255, 255, 255, 0.08) 5px,
        transparent 5px,
        transparent 10px
    );
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 1;
}
.wg-grid {
    display: grid;
    grid-template-columns: 40px repeat(48, 1fr);
    gap: 1px;
    background: var(--border);
    padding: 1px;
    border-radius: var(--radius);
    user-select: none;
    touch-action: none;
    margin-bottom: 12px;
}
.wg-corner,
.wg-head {
    background: var(--card);
    color: var(--text3);
    font-size: 10px;
    text-align: left;
    padding: 2px 0 2px 2px;
    line-height: 1;
}
.wg-rowlabel {
    background: var(--card);
    color: var(--text2);
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wg-cell {
    background: var(--card);
    height: 18px;
    cursor: pointer;
    transition: background 0.05s;
}
.wg-cell.wg-cell-tick {
    box-shadow: inset 1px 0 0 var(--border);
}
.wg-cell:hover {
    background: var(--text3);
}
.wg-cell.is-off {
    background: var(--blue);
}
.offline-status {
    font-size: var(--fs-sm);
    color: var(--text3);
}
.offline-status[data-kind="error"] { color: #d33; }
.offline-status[data-kind="ok"] { color: #2a8; }


