/* Stay Awake — shared styles for every page */

/* ── Theme tokens ───────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-hover: #fafaf8;
  --card-bg: rgba(252,252,250,0.98);
  --border: #e4e4e2;
  --border-2: #efefed;
  --border-input: #dddddc;
  --text: #1a1a1a;
  --text-strong: #111111;
  --text-2: #444444;
  --muted: #555555;
  --subtle: #888888;
  --faint: #999999;
  --fainter: #bbbbbb;
  --accent: #1D9E75;
  --accent-hover: #0F6E56;
  --accent-soft: #f0faf6;
  --accent-chip: #e6f9f2;
  --accent-ink: #0a7a55;
  --danger: #c0392b;
  --danger-hover: #922b21;
  --idle: #4a9de0;
  --notice-bg: #fffbeb;
  --notice-border: #f0d080;
  --notice-text: #7a5500;
  --notice-strong: #5c3d00;
  --warn-bg: #fff8e6;
  --warn-ink: #a06000;
  --off-bg: #f0f0ee;
  --shadow: 0 1px 4px rgba(0,0,0,0.04);
  --tip-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121413;
    --surface: #1b1e1d;
    --surface-2: #232726;
    --surface-hover: #212524;
    --card-bg: rgba(27,30,29,0.84);
    --border: #2e3331;
    --border-2: #2a2e2d;
    --border-input: #3a403e;
    --text: #e6e8e7;
    --text-strong: #f4f5f5;
    --text-2: #c9cdcb;
    --muted: #b4b9b7;
    --subtle: #949a98;
    --faint: #858b89;
    --fainter: #69706e;
    --accent: #22ad80;
    --accent-hover: #1c9670;
    --accent-soft: #15302a;
    --accent-chip: #17352c;
    --accent-ink: #5fd6aa;
    --danger: #d9534a;
    --danger-hover: #b8403a;
    --idle: #5aa8e6;
    --notice-bg: #2a2412;
    --notice-border: #5c4a1c;
    --notice-text: #e3c67a;
    --notice-strong: #f1d999;
    --warn-bg: #33290f;
    --warn-ink: #e8b65a;
    --off-bg: #2a2e2d;
    --shadow: 0 1px 4px rgba(0,0,0,0.3);
    --tip-shadow: 0 6px 20px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121413;
  --surface: #1b1e1d;
  --surface-2: #232726;
  --surface-hover: #212524;
  --card-bg: rgba(27,30,29,0.84);
  --border: #2e3331;
  --border-2: #2a2e2d;
  --border-input: #3a403e;
  --text: #e6e8e7;
  --text-strong: #f4f5f5;
  --text-2: #c9cdcb;
  --muted: #b4b9b7;
  --subtle: #949a98;
  --faint: #858b89;
  --fainter: #69706e;
  --accent: #22ad80;
  --accent-hover: #1c9670;
  --accent-soft: #15302a;
  --accent-chip: #17352c;
  --accent-ink: #5fd6aa;
  --danger: #d9534a;
  --danger-hover: #b8403a;
  --idle: #5aa8e6;
  --notice-bg: #2a2412;
  --notice-border: #5c4a1c;
  --notice-text: #e3c67a;
  --notice-strong: #f1d999;
  --warn-bg: #33290f;
  --warn-ink: #e8b65a;
  --off-bg: #2a2e2d;
  --shadow: 0 1px 4px rgba(0,0,0,0.3);
  --tip-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* ── Reset & base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #353940;
  color: var(--text);
  min-height: 100vh;
  padding: 1.25rem 1rem 5rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s, color 0.2s;
}

/* ── Page background ────────────────────────────────
   Neutral graphite while idle; cross-fades to a vivid cyan → blue → violet
   aurora while running. The low-poly mesh sits on top in both states.
   Gradients can't be transitioned directly, so the states are stacked layers
   and only opacity animates. The aurora layer is oversized and drifts via
   transform, which stays smooth because it runs on the GPU. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-idle, .bg-mesh, .bg-dim { position: absolute; inset: 0; }
.bg-idle { background: linear-gradient(120deg, #4b5058 0%, #353940 50%, #24272c 100%); }
.bg-run {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 45% at 18% 52%, #18d6ff 0%, rgba(24,214,255,0) 70%),
    radial-gradient(40% 42% at 82% 24%, #c23cff 0%, rgba(194,60,255,0) 72%),
    radial-gradient(36% 40% at 76% 84%, #0a1255 0%, rgba(10,18,85,0) 75%),
    radial-gradient(30% 30% at 22% 18%, #1b2c8f 0%, rgba(27,44,143,0) 75%),
    radial-gradient(30% 34% at 40% 88%, #3b1fd6 0%, rgba(59,31,214,0) 75%),
    linear-gradient(120deg, #1aa6ff 0%, #2f6bff 40%, #5a3bff 68%, #3b12a8 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.is-running .bg-run  { opacity: 1; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(4%, -3%) rotate(6deg) scale(1.06); }
  100% { transform: translate(-4%, 3%) rotate(-5deg) scale(1.02); }
}
.bg-mesh { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1600' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23fff'%3E%3Cpath d='M-274.3 -257.1L24.6 -248.2L-54.8 -77.6Z' fill-opacity='0.045'/%3E%3Cpath d='M-274.3 -257.1L-54.8 -77.6L-198.8 -5.5Z' fill-opacity='0.003'/%3E%3Cpath d='M-198.8 -5.5L-54.8 -77.6L-265.4 280.6Z' fill-opacity='0.033'/%3E%3Cpath d='M-54.8 -77.6L4.5 196.2L-265.4 280.6Z' fill-opacity='0.041'/%3E%3Cpath d='M-265.4 280.6L4.5 196.2L-317.1 535.2Z' fill-opacity='0.032'/%3E%3Cpath d='M4.5 196.2L-49.6 492.0L-317.1 535.2Z' fill-opacity='0.036'/%3E%3Cpath d='M-317.1 535.2L-49.6 492.0L-245.9 846.9Z' fill-opacity='0.016'/%3E%3Cpath d='M-49.6 492.0L-75.2 794.2L-245.9 846.9Z' fill-opacity='0.031'/%3E%3Cpath d='M-245.9 846.9L-75.2 794.2L-331.6 1035.2Z' fill-opacity='0.039'/%3E%3Cpath d='M-75.2 794.2L-9.5 1121.5L-331.6 1035.2Z' fill-opacity='0.019'/%3E%3Cpath d='M-331.6 1035.2L-9.5 1121.5L-332.2 1382.9Z' fill-opacity='0.039'/%3E%3Cpath d='M-9.5 1121.5L3.1 1355.8L-332.2 1382.9Z' fill-opacity='0.026'/%3E%3Cpath d='M-332.2 1382.9L3.1 1355.8L-235.7 1526.7Z' fill-opacity='0.017'/%3E%3Cpath d='M3.1 1355.8L-0.0 1626.0L-235.7 1526.7Z' fill-opacity='0.026'/%3E%3Cpath d='M-235.7 1526.7L-0.0 1626.0L-189.5 1941.0Z' fill-opacity='0.004'/%3E%3Cpath d='M-0.0 1626.0L-6.8 1831.2L-189.5 1941.0Z' fill-opacity='0.029'/%3E%3Cpath d='M24.6 -248.2L346.3 -187.4L-54.8 -77.6Z' fill-opacity='0.040'/%3E%3Cpath d='M346.3 -187.4L321.1 33.2L-54.8 -77.6Z' fill-opacity='0.033'/%3E%3Cpath d='M-54.8 -77.6L321.1 33.2L237.1 223.4Z' fill-opacity='0.033'/%3E%3Cpath d='M-54.8 -77.6L237.1 223.4L4.5 196.2Z' fill-opacity='0.026'/%3E%3Cpath d='M4.5 196.2L237.1 223.4L232.9 464.6Z' fill-opacity='0.038'/%3E%3Cpath d='M4.5 196.2L232.9 464.6L-49.6 492.0Z' fill-opacity='0.004'/%3E%3Cpath d='M-49.6 492.0L232.9 464.6L-75.2 794.2Z' fill-opacity='0.001'/%3E%3Cpath d='M232.9 464.6L309.3 784.1L-75.2 794.2Z' fill-opacity='0.027'/%3E%3Cpath d='M-75.2 794.2L309.3 784.1L322.1 1048.5Z' fill-opacity='0.010'/%3E%3Cpath d='M-75.2 794.2L322.1 1048.5L-9.5 1121.5Z' fill-opacity='0.031'/%3E%3Cpath d='M-9.5 1121.5L322.1 1048.5L340.0 1388.9Z' fill-opacity='0.028'/%3E%3Cpath d='M-9.5 1121.5L340.0 1388.9L3.1 1355.8Z' fill-opacity='0.041'/%3E%3Cpath d='M3.1 1355.8L340.0 1388.9L186.8 1553.6Z' fill-opacity='0.001'/%3E%3Cpath d='M3.1 1355.8L186.8 1553.6L-0.0 1626.0Z' fill-opacity='0.014'/%3E%3Cpath d='M-0.0 1626.0L186.8 1553.6L-6.8 1831.2Z' fill-opacity='0.009'/%3E%3Cpath d='M186.8 1553.6L332.3 1861.9L-6.8 1831.2Z' fill-opacity='0.008'/%3E%3Cpath d='M346.3 -187.4L610.2 -283.1L321.1 33.2Z' fill-opacity='0.030'/%3E%3Cpath d='M610.2 -283.1L465.0 20.7L321.1 33.2Z' fill-opacity='0.020'/%3E%3Cpath d='M321.1 33.2L465.0 20.7L237.1 223.4Z' fill-opacity='0.015'/%3E%3Cpath d='M465.0 20.7L577.9 229.8L237.1 223.4Z' fill-opacity='0.030'/%3E%3Cpath d='M237.1 223.4L577.9 229.8L467.3 506.5Z' fill-opacity='0.019'/%3E%3Cpath d='M237.1 223.4L467.3 506.5L232.9 464.6Z' fill-opacity='0.036'/%3E%3Cpath d='M232.9 464.6L467.3 506.5L309.3 784.1Z' fill-opacity='0.040'/%3E%3Cpath d='M467.3 506.5L607.6 841.3L309.3 784.1Z' fill-opacity='0.017'/%3E%3Cpath d='M309.3 784.1L607.6 841.3L322.1 1048.5Z' fill-opacity='0.014'/%3E%3Cpath d='M607.6 841.3L472.2 1026.1L322.1 1048.5Z' fill-opacity='0.006'/%3E%3Cpath d='M322.1 1048.5L472.2 1026.1L469.5 1262.9Z' fill-opacity='0.038'/%3E%3Cpath d='M322.1 1048.5L469.5 1262.9L340.0 1388.9Z' fill-opacity='0.038'/%3E%3Cpath d='M340.0 1388.9L469.5 1262.9L186.8 1553.6Z' fill-opacity='0.043'/%3E%3Cpath d='M469.5 1262.9L580.9 1548.4L186.8 1553.6Z' fill-opacity='0.012'/%3E%3Cpath d='M186.8 1553.6L580.9 1548.4L542.8 1858.3Z' fill-opacity='0.020'/%3E%3Cpath d='M186.8 1553.6L542.8 1858.3L332.3 1861.9Z' fill-opacity='0.012'/%3E%3Cpath d='M610.2 -283.1L750.5 -229.6L741.0 23.0Z' fill-opacity='0.019'/%3E%3Cpath d='M610.2 -283.1L741.0 23.0L465.0 20.7Z' fill-opacity='0.028'/%3E%3Cpath d='M465.0 20.7L741.0 23.0L738.6 254.0Z' fill-opacity='0.014'/%3E%3Cpath d='M465.0 20.7L738.6 254.0L577.9 229.8Z' fill-opacity='0.038'/%3E%3Cpath d='M577.9 229.8L738.6 254.0L467.3 506.5Z' fill-opacity='0.020'/%3E%3Cpath d='M738.6 254.0L754.1 496.5L467.3 506.5Z' fill-opacity='0.003'/%3E%3Cpath d='M467.3 506.5L754.1 496.5L875.3 848.5Z' fill-opacity='0.039'/%3E%3Cpath d='M467.3 506.5L875.3 848.5L607.6 841.3Z' fill-opacity='0.002'/%3E%3Cpath d='M607.6 841.3L875.3 848.5L472.2 1026.1Z' fill-opacity='0.026'/%3E%3Cpath d='M875.3 848.5L768.7 1128.2L472.2 1026.1Z' fill-opacity='0.014'/%3E%3Cpath d='M472.2 1026.1L768.7 1128.2L469.5 1262.9Z' fill-opacity='0.001'/%3E%3Cpath d='M768.7 1128.2L753.7 1316.4L469.5 1262.9Z' fill-opacity='0.006'/%3E%3Cpath d='M469.5 1262.9L753.7 1316.4L856.7 1622.7Z' fill-opacity='0.001'/%3E%3Cpath d='M469.5 1262.9L856.7 1622.7L580.9 1548.4Z' fill-opacity='0.037'/%3E%3Cpath d='M580.9 1548.4L856.7 1622.7L736.1 1945.0Z' fill-opacity='0.006'/%3E%3Cpath d='M580.9 1548.4L736.1 1945.0L542.8 1858.3Z' fill-opacity='0.002'/%3E%3Cpath d='M750.5 -229.6L1020.8 -305.3L741.0 23.0Z' fill-opacity='0.020'/%3E%3Cpath d='M1020.8 -305.3L1110.3 -27.4L741.0 23.0Z' fill-opacity='0.028'/%3E%3Cpath d='M741.0 23.0L1110.3 -27.4L738.6 254.0Z' fill-opacity='0.036'/%3E%3Cpath d='M1110.3 -27.4L1034.1 198.4L738.6 254.0Z' fill-opacity='0.043'/%3E%3Cpath d='M738.6 254.0L1034.1 198.4L754.1 496.5Z' fill-opacity='0.009'/%3E%3Cpath d='M1034.1 198.4L1001.1 546.6L754.1 496.5Z' fill-opacity='0.021'/%3E%3Cpath d='M754.1 496.5L1001.1 546.6L1025.5 816.2Z' fill-opacity='0.000'/%3E%3Cpath d='M754.1 496.5L1025.5 816.2L875.3 848.5Z' fill-opacity='0.021'/%3E%3Cpath d='M875.3 848.5L1025.5 816.2L768.7 1128.2Z' fill-opacity='0.008'/%3E%3Cpath d='M1025.5 816.2L1046.1 1059.2L768.7 1128.2Z' fill-opacity='0.012'/%3E%3Cpath d='M768.7 1128.2L1046.1 1059.2L1140.1 1330.7Z' fill-opacity='0.031'/%3E%3Cpath d='M768.7 1128.2L1140.1 1330.7L753.7 1316.4Z' fill-opacity='0.023'/%3E%3Cpath d='M753.7 1316.4L1140.1 1330.7L856.7 1622.7Z' fill-opacity='0.034'/%3E%3Cpath d='M1140.1 1330.7L1078.6 1658.6L856.7 1622.7Z' fill-opacity='0.018'/%3E%3Cpath d='M856.7 1622.7L1078.6 1658.6L736.1 1945.0Z' fill-opacity='0.041'/%3E%3Cpath d='M1078.6 1658.6L1015.9 1811.3L736.1 1945.0Z' fill-opacity='0.004'/%3E%3Cpath d='M1020.8 -305.3L1398.7 -215.8L1110.3 -27.4Z' fill-opacity='0.033'/%3E%3Cpath d='M1398.7 -215.8L1293.3 -49.6L1110.3 -27.4Z' fill-opacity='0.006'/%3E%3Cpath d='M1110.3 -27.4L1293.3 -49.6L1371.6 337.1Z' fill-opacity='0.028'/%3E%3Cpath d='M1110.3 -27.4L1371.6 337.1L1034.1 198.4Z' fill-opacity='0.041'/%3E%3Cpath d='M1034.1 198.4L1371.6 337.1L1284.8 605.4Z' fill-opacity='0.026'/%3E%3Cpath d='M1034.1 198.4L1284.8 605.4L1001.1 546.6Z' fill-opacity='0.040'/%3E%3Cpath d='M1001.1 546.6L1284.8 605.4L1025.5 816.2Z' fill-opacity='0.042'/%3E%3Cpath d='M1284.8 605.4L1394.5 816.6L1025.5 816.2Z' fill-opacity='0.021'/%3E%3Cpath d='M1025.5 816.2L1394.5 816.6L1046.1 1059.2Z' fill-opacity='0.009'/%3E%3Cpath d='M1394.5 816.6L1320.8 1003.3L1046.1 1059.2Z' fill-opacity='0.032'/%3E%3Cpath d='M1046.1 1059.2L1320.8 1003.3L1140.1 1330.7Z' fill-opacity='0.029'/%3E%3Cpath d='M1320.8 1003.3L1259.5 1407.4L1140.1 1330.7Z' fill-opacity='0.032'/%3E%3Cpath d='M1140.1 1330.7L1259.5 1407.4L1291.5 1632.7Z' fill-opacity='0.040'/%3E%3Cpath d='M1140.1 1330.7L1291.5 1632.7L1078.6 1658.6Z' fill-opacity='0.044'/%3E%3Cpath d='M1078.6 1658.6L1291.5 1632.7L1015.9 1811.3Z' fill-opacity='0.024'/%3E%3Cpath d='M1291.5 1632.7L1294.5 1918.5L1015.9 1811.3Z' fill-opacity='0.036'/%3E%3Cpath d='M1398.7 -215.8L1615.4 -299.7L1548.1 35.3Z' fill-opacity='0.041'/%3E%3Cpath d='M1398.7 -215.8L1548.1 35.3L1293.3 -49.6Z' fill-opacity='0.039'/%3E%3Cpath d='M1293.3 -49.6L1548.1 35.3L1531.0 223.2Z' fill-opacity='0.004'/%3E%3Cpath d='M1293.3 -49.6L1531.0 223.2L1371.6 337.1Z' fill-opacity='0.020'/%3E%3Cpath d='M1371.6 337.1L1531.0 223.2L1284.8 605.4Z' fill-opacity='0.035'/%3E%3Cpath d='M1531.0 223.2L1609.5 589.7L1284.8 605.4Z' fill-opacity='0.022'/%3E%3Cpath d='M1284.8 605.4L1609.5 589.7L1618.3 764.8Z' fill-opacity='0.036'/%3E%3Cpath d='M1284.8 605.4L1618.3 764.8L1394.5 816.6Z' fill-opacity='0.003'/%3E%3Cpath d='M1394.5 816.6L1618.3 764.8L1320.8 1003.3Z' fill-opacity='0.008'/%3E%3Cpath d='M1618.3 764.8L1666.8 1019.3L1320.8 1003.3Z' fill-opacity='0.015'/%3E%3Cpath d='M1320.8 1003.3L1666.8 1019.3L1259.5 1407.4Z' fill-opacity='0.006'/%3E%3Cpath d='M1666.8 1019.3L1522.7 1296.4L1259.5 1407.4Z' fill-opacity='0.007'/%3E%3Cpath d='M1259.5 1407.4L1522.7 1296.4L1291.5 1632.7Z' fill-opacity='0.033'/%3E%3Cpath d='M1522.7 1296.4L1591.3 1529.7L1291.5 1632.7Z' fill-opacity='0.038'/%3E%3Cpath d='M1291.5 1632.7L1591.3 1529.7L1294.5 1918.5Z' fill-opacity='0.043'/%3E%3Cpath d='M1591.3 1529.7L1548.2 1845.7L1294.5 1918.5Z' fill-opacity='0.022'/%3E%3Cpath d='M1615.4 -299.7L1878.2 -325.6L1548.1 35.3Z' fill-opacity='0.004'/%3E%3Cpath d='M1878.2 -325.6L1844.6 62.6L1548.1 35.3Z' fill-opacity='0.010'/%3E%3Cpath d='M1548.1 35.3L1844.6 62.6L1531.0 223.2Z' fill-opacity='0.013'/%3E%3Cpath d='M1844.6 62.6L1943.5 291.8L1531.0 223.2Z' fill-opacity='0.033'/%3E%3Cpath d='M1531.0 223.2L1943.5 291.8L1609.5 589.7Z' fill-opacity='0.024'/%3E%3Cpath d='M1943.5 291.8L1897.3 546.8L1609.5 589.7Z' fill-opacity='0.038'/%3E%3Cpath d='M1609.5 589.7L1897.3 546.8L1618.3 764.8Z' fill-opacity='0.014'/%3E%3Cpath d='M1897.3 546.8L1809.1 725.6L1618.3 764.8Z' fill-opacity='0.017'/%3E%3Cpath d='M1618.3 764.8L1809.1 725.6L1666.8 1019.3Z' fill-opacity='0.041'/%3E%3Cpath d='M1809.1 725.6L1789.5 1132.3L1666.8 1019.3Z' fill-opacity='0.009'/%3E%3Cpath d='M1666.8 1019.3L1789.5 1132.3L1522.7 1296.4Z' fill-opacity='0.044'/%3E%3Cpath d='M1789.5 1132.3L1898.8 1407.4L1522.7 1296.4Z' fill-opacity='0.024'/%3E%3Cpath d='M1522.7 1296.4L1898.8 1407.4L1591.3 1529.7Z' fill-opacity='0.009'/%3E%3Cpath d='M1898.8 1407.4L1790.1 1621.8L1591.3 1529.7Z' fill-opacity='0.024'/%3E%3Cpath d='M1591.3 1529.7L1790.1 1621.8L1548.2 1845.7Z' fill-opacity='0.027'/%3E%3Cpath d='M1790.1 1621.8L1863.8 1903.5L1548.2 1845.7Z' fill-opacity='0.001'/%3E%3C/g%3E%3Cpath d='M-332.2 1382.9L-331.6 1035.2M-332.2 1382.9L-235.7 1526.7M-332.2 1382.9L-9.5 1121.5M-332.2 1382.9L3.1 1355.8M-331.6 1035.2L-245.9 846.9M-331.6 1035.2L-75.2 794.2M-331.6 1035.2L-9.5 1121.5M-317.1 535.2L-265.4 280.6M-317.1 535.2L-245.9 846.9M-317.1 535.2L-49.6 492.0M-317.1 535.2L4.5 196.2M-274.3 -257.1L-198.8 -5.5M-274.3 -257.1L-54.8 -77.6M-274.3 -257.1L24.6 -248.2M-265.4 280.6L-198.8 -5.5M-265.4 280.6L-54.8 -77.6M-265.4 280.6L4.5 196.2M-245.9 846.9L-75.2 794.2M-245.9 846.9L-49.6 492.0M-235.7 1526.7L-189.5 1941.0M-235.7 1526.7L-0.0 1626.0M-235.7 1526.7L3.1 1355.8M-198.8 -5.5L-54.8 -77.6M-189.5 1941.0L-6.8 1831.2M-189.5 1941.0L-0.0 1626.0M-75.2 794.2L-49.6 492.0M-75.2 794.2L-9.5 1121.5M-75.2 794.2L232.9 464.6M-75.2 794.2L309.3 784.1M-75.2 794.2L322.1 1048.5M-54.8 -77.6L4.5 196.2M-54.8 -77.6L24.6 -248.2M-54.8 -77.6L237.1 223.4M-54.8 -77.6L321.1 33.2M-54.8 -77.6L346.3 -187.4M-49.6 492.0L4.5 196.2M-49.6 492.0L232.9 464.6M-9.5 1121.5L3.1 1355.8M-9.5 1121.5L322.1 1048.5M-9.5 1121.5L340.0 1388.9M-6.8 1831.2L-0.0 1626.0M-6.8 1831.2L186.8 1553.6M-6.8 1831.2L332.3 1861.9M-0.0 1626.0L3.1 1355.8M-0.0 1626.0L186.8 1553.6M3.1 1355.8L186.8 1553.6M3.1 1355.8L340.0 1388.9M4.5 196.2L232.9 464.6M4.5 196.2L237.1 223.4M24.6 -248.2L346.3 -187.4M186.8 1553.6L332.3 1861.9M186.8 1553.6L340.0 1388.9M186.8 1553.6L469.5 1262.9M186.8 1553.6L542.8 1858.3M186.8 1553.6L580.9 1548.4M232.9 464.6L237.1 223.4M232.9 464.6L309.3 784.1M232.9 464.6L467.3 506.5M237.1 223.4L321.1 33.2M237.1 223.4L465.0 20.7M237.1 223.4L467.3 506.5M237.1 223.4L577.9 229.8M309.3 784.1L322.1 1048.5M309.3 784.1L467.3 506.5M309.3 784.1L607.6 841.3M321.1 33.2L346.3 -187.4M321.1 33.2L465.0 20.7M321.1 33.2L610.2 -283.1M322.1 1048.5L340.0 1388.9M322.1 1048.5L469.5 1262.9M322.1 1048.5L472.2 1026.1M322.1 1048.5L607.6 841.3M332.3 1861.9L542.8 1858.3M340.0 1388.9L469.5 1262.9M346.3 -187.4L610.2 -283.1M465.0 20.7L577.9 229.8M465.0 20.7L610.2 -283.1M465.0 20.7L738.6 254.0M465.0 20.7L741.0 23.0M467.3 506.5L577.9 229.8M467.3 506.5L607.6 841.3M467.3 506.5L738.6 254.0M467.3 506.5L754.1 496.5M467.3 506.5L875.3 848.5M469.5 1262.9L472.2 1026.1M469.5 1262.9L580.9 1548.4M469.5 1262.9L753.7 1316.4M469.5 1262.9L768.7 1128.2M469.5 1262.9L856.7 1622.7M472.2 1026.1L607.6 841.3M472.2 1026.1L768.7 1128.2M472.2 1026.1L875.3 848.5M542.8 1858.3L580.9 1548.4M542.8 1858.3L736.1 1945.0M577.9 229.8L738.6 254.0M580.9 1548.4L736.1 1945.0M580.9 1548.4L856.7 1622.7M607.6 841.3L875.3 848.5M610.2 -283.1L741.0 23.0M610.2 -283.1L750.5 -229.6M736.1 1945.0L856.7 1622.7M736.1 1945.0L1015.9 1811.3M736.1 1945.0L1078.6 1658.6M738.6 254.0L741.0 23.0M738.6 254.0L754.1 496.5M738.6 254.0L1034.1 198.4M738.6 254.0L1110.3 -27.4M741.0 23.0L750.5 -229.6M741.0 23.0L1020.8 -305.3M741.0 23.0L1110.3 -27.4M750.5 -229.6L1020.8 -305.3M753.7 1316.4L768.7 1128.2M753.7 1316.4L856.7 1622.7M753.7 1316.4L1140.1 1330.7M754.1 496.5L875.3 848.5M754.1 496.5L1001.1 546.6M754.1 496.5L1025.5 816.2M754.1 496.5L1034.1 198.4M768.7 1128.2L875.3 848.5M768.7 1128.2L1025.5 816.2M768.7 1128.2L1046.1 1059.2M768.7 1128.2L1140.1 1330.7M856.7 1622.7L1078.6 1658.6M856.7 1622.7L1140.1 1330.7M875.3 848.5L1025.5 816.2M1001.1 546.6L1025.5 816.2M1001.1 546.6L1034.1 198.4M1001.1 546.6L1284.8 605.4M1015.9 1811.3L1078.6 1658.6M1015.9 1811.3L1291.5 1632.7M1015.9 1811.3L1294.5 1918.5M1020.8 -305.3L1110.3 -27.4M1020.8 -305.3L1398.7 -215.8M1025.5 816.2L1046.1 1059.2M1025.5 816.2L1284.8 605.4M1025.5 816.2L1394.5 816.6M1034.1 198.4L1110.3 -27.4M1034.1 198.4L1284.8 605.4M1034.1 198.4L1371.6 337.1M1046.1 1059.2L1140.1 1330.7M1046.1 1059.2L1320.8 1003.3M1046.1 1059.2L1394.5 816.6M1078.6 1658.6L1140.1 1330.7M1078.6 1658.6L1291.5 1632.7M1110.3 -27.4L1293.3 -49.6M1110.3 -27.4L1371.6 337.1M1110.3 -27.4L1398.7 -215.8M1140.1 1330.7L1259.5 1407.4M1140.1 1330.7L1291.5 1632.7M1140.1 1330.7L1320.8 1003.3M1259.5 1407.4L1291.5 1632.7M1259.5 1407.4L1320.8 1003.3M1259.5 1407.4L1522.7 1296.4M1259.5 1407.4L1666.8 1019.3M1284.8 605.4L1371.6 337.1M1284.8 605.4L1394.5 816.6M1284.8 605.4L1531.0 223.2M1284.8 605.4L1609.5 589.7M1284.8 605.4L1618.3 764.8M1291.5 1632.7L1294.5 1918.5M1291.5 1632.7L1522.7 1296.4M1291.5 1632.7L1591.3 1529.7M1293.3 -49.6L1371.6 337.1M1293.3 -49.6L1398.7 -215.8M1293.3 -49.6L1531.0 223.2M1293.3 -49.6L1548.1 35.3M1294.5 1918.5L1548.2 1845.7M1294.5 1918.5L1591.3 1529.7M1320.8 1003.3L1394.5 816.6M1320.8 1003.3L1618.3 764.8M1320.8 1003.3L1666.8 1019.3M1371.6 337.1L1531.0 223.2M1394.5 816.6L1618.3 764.8M1398.7 -215.8L1548.1 35.3M1398.7 -215.8L1615.4 -299.7M1522.7 1296.4L1591.3 1529.7M1522.7 1296.4L1666.8 1019.3M1522.7 1296.4L1789.5 1132.3M1522.7 1296.4L1898.8 1407.4M1531.0 223.2L1548.1 35.3M1531.0 223.2L1609.5 589.7M1531.0 223.2L1844.6 62.6M1531.0 223.2L1943.5 291.8M1548.1 35.3L1615.4 -299.7M1548.1 35.3L1844.6 62.6M1548.1 35.3L1878.2 -325.6M1548.2 1845.7L1591.3 1529.7M1548.2 1845.7L1790.1 1621.8M1548.2 1845.7L1863.8 1903.5M1591.3 1529.7L1790.1 1621.8M1591.3 1529.7L1898.8 1407.4M1609.5 589.7L1618.3 764.8M1609.5 589.7L1897.3 546.8M1609.5 589.7L1943.5 291.8M1615.4 -299.7L1878.2 -325.6M1618.3 764.8L1666.8 1019.3M1618.3 764.8L1809.1 725.6M1618.3 764.8L1897.3 546.8M1666.8 1019.3L1789.5 1132.3M1666.8 1019.3L1809.1 725.6M1789.5 1132.3L1809.1 725.6M1789.5 1132.3L1898.8 1407.4M1790.1 1621.8L1863.8 1903.5M1790.1 1621.8L1898.8 1407.4M1809.1 725.6L1897.3 546.8M1844.6 62.6L1878.2 -325.6M1844.6 62.6L1943.5 291.8M1897.3 546.8L1943.5 291.8' fill='none' stroke='%230b1220' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E"); background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-dim { background: rgba(0,0,0,0); transition: background 0.2s; }
:root[data-theme="dark"] .bg-dim { background: rgba(0,0,0,0.28); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-dim { background: rgba(0,0,0,0.28); }
}

button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Layout ─────────────────────────────────────────── */
.page { max-width: 800px; margin: 0 auto; }

/* ── Top bar ────────────────────────────────────────── */
/* Site header styles live in the "Site header & navigation" section at the end of this file */
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; min-width: 34px; justify-content: center;
  border-radius: 99px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #dfe6f0;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.14); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn[hidden] { display: none; }
.share-btn { padding: 0 14px; }
.share-btn.copied { color: #fff; border-color: rgba(95,214,170,0.7); background: rgba(34,173,128,0.35); }
.share-short { display: none; }
@media (max-width: 500px) {
  .share-long  { display: none; }
  .share-short { display: inline; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Hero ───────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 2.5rem; padding: 0 0.5rem; }
.hero h1 {
  font-size: clamp(26px, 6vw, 34px); text-wrap: balance;
  font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 10px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.hero p { font-size: 16.5px; color: rgba(255,255,255,0.8); line-height: 1.65; max-width: 580px; margin: 0 auto; }

.hero-badges {
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
}
.hbadge {
  font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #e6ebf3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ── Card ───────────────────────────────────────────── */
/* Frosted glass: a hint of the background shows through so the card sits in the page */
.card, .content-card {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.card {
  border-radius: 20px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
}

/* ── Status ring ────────────────────────────────────── */
.ring-wrap { text-align: center; margin-bottom: 1.75rem; }

.status-ring {
  width: 116px; height: 116px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 3px solid var(--border);
  background: transparent; color: inherit;
  position: relative; cursor: pointer;
  transition: border-color 0.4s, box-shadow 0.4s;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.status-ring:focus-visible { outline-offset: 6px; }
.status-ring.idle-ring {
  border-color: var(--idle);
  box-shadow: 0 0 0 6px rgba(74,157,224,0.1), 0 0 0 13px rgba(74,157,224,0.05);
}
.status-ring.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(29,158,117,0.12), 0 0 0 13px rgba(29,158,117,0.06);
  animation: glow 5.5s ease-in-out infinite;
}
/* Halo swells and settles in time with the pulse rings */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(29,158,117,0.12), 0 0 0 13px rgba(29,158,117,0.06), 0 0 16px rgba(29,158,117,0.15); }
  50%      { box-shadow: 0 0 0 9px rgba(29,158,117,0.22), 0 0 0 18px rgba(29,158,117,0.10), 0 0 36px rgba(29,158,117,0.40); }
}

/* Two rings, half a cycle apart, so there's always one heading outward */
.pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid rgba(29,158,117,0.7);
  animation: pulse 5.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  opacity: 0; display: none; pointer-events: none;
}
.pulse-2 { animation-delay: 2.75s; }
.status-ring.active .pulse { display: block; }
@keyframes pulse { 0%{transform:scale(1);opacity:0.85} 100%{transform:scale(1.55);opacity:0} }

/* ── Aurora ring (running) ──────────────────────────
   Overrides the green ring above with the background's cyan → blue → violet.
   To go back to green, delete this whole block. */
.status-ring.active {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from 200deg, #18d6ff, #2f6bff, #8a3dff, #c23cff, #18d6ff) border-box;
  animation-name: glow-aurora;
}
@keyframes glow-aurora {
  0%, 100% { box-shadow: 0 0 0 6px rgba(47,107,255,0.10), 0 0 0 13px rgba(138,61,255,0.05), 0 0 16px rgba(47,107,255,0.15); }
  50%      { box-shadow: 0 0 0 9px rgba(47,107,255,0.18), 0 0 0 18px rgba(138,61,255,0.09), 0 0 36px rgba(138,61,255,0.38); }
}
/* Gradient pulse rings: a filled conic gradient masked down to a 3px outline */
.status-ring.active .pulse {
  border: 0;
  background: conic-gradient(from 200deg, #18d6ff, #2f6bff, #8a3dff, #c23cff, #18d6ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.status-ring.active .icon-work { color: #4a55ff; }
:root[data-theme="dark"] .status-ring.active .icon-work { color: #7f8bff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-ring.active .icon-work { color: #7f8bff; }
}

.s-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
.s-icon svg { width: 36px; height: 36px; }
.s-icon[hidden] { display: none; }
.icon-sleep  { color: var(--idle); }
.icon-work   { color: var(--accent); }

@keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.spin svg { animation: spin 3s linear infinite; }

.s-label {
  font-size: 11px; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .08em;
}
.app-title { font-size: 21px; font-weight: 700; color: var(--text-strong); margin-bottom: 3px; }
.app-sub   { font-size: 14.5px; color: var(--subtle); }

/* ── Notice banner ──────────────────────────────────── */
.it-notice {
  background: var(--notice-bg); border: 1px solid var(--notice-border);
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 1.25rem;
  font-size: 14.5px; color: var(--notice-text); line-height: 1.55;
}
.it-notice strong { font-weight: 600; color: var(--notice-strong); display: block; margin-bottom: 2px; }

/* ── Duration picker ────────────────────────────────── */
.section-label {
  font-size: 12px; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 9px; display: flex; align-items: center; gap: 6px;
}
.section-label svg { width: 14px; height: 14px; }

.duration-wrap { margin-bottom: 1.25rem; }
.duration-options { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.dur-btn {
  padding: 7px 15px; border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font-size: 14.5px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dur-btn:hover:not(:disabled)   { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dur-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.dur-btn.selected:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.dur-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.picker-row {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: 10px; padding: 10px 12px;
}
.picker-row.visible { display: flex; }
.picker-row label { font-size: 14.5px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.picker-inputs { display: flex; align-items: center; gap: 7px; }
.picker-inputs input {
  width: 58px; padding: 7px 8px; border-radius: 8px;
  border: 1.5px solid var(--border-input); font-size: 15.5px; font-weight: 600;
  color: var(--text-strong); background: var(--surface); text-align: center; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s;
}
.picker-inputs input[type="time"] { width: auto; min-width: 116px; }
.picker-inputs input:focus { outline: none; border-color: var(--accent); }
.picker-inputs input[aria-invalid="true"] { border-color: var(--danger); }
.picker-inputs input:disabled { opacity: 0.45; cursor: not-allowed; }
.picker-inputs span, .picker-hint { font-size: 14.5px; color: var(--subtle); font-weight: 500; }

.dur-error { font-size: 14px; color: var(--danger); font-weight: 500; margin-top: 8px; }
.dur-error:empty { display: none; }

/* ── Countdown bar ──────────────────────────────────── */
.countdown-wrap { display: none; margin-bottom: 1.25rem; }
.countdown-wrap.visible { display: block; }
.countdown-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px; gap: 8px;
}
.countdown-lbl { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.countdown-val { font-size: 15.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.countdown-val.ending { color: var(--danger); }
.countdown-end { font-size: 13px; color: var(--subtle); margin-top: 6px; }
.progress-track { height: 7px; background: var(--border-2); border-radius: 99px; overflow: hidden; }
.progress-bar {
  height: 100%; background: var(--accent); border-radius: 99px;
  transition: width 1s linear, background 0.5s;
  width: 100%;
}
.progress-bar.ending { background: var(--danger); }

/* ── Main button ────────────────────────────────────── */
.btn-main {
  display: block; width: 100%; padding: 15px;
  border-radius: 13px; font-size: 17.5px; font-weight: 700;
  cursor: pointer; border: none; letter-spacing: 0.01em;
  background: var(--accent); color: #fff;
  margin-bottom: 1.25rem;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(29,158,117,0.25);
}
.btn-main:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(29,158,117,0.3); }
.btn-main:active { transform: scale(0.98); }
.btn-main.running { background: var(--danger); box-shadow: 0 2px 8px rgba(192,57,43,0.25); }
.btn-main.running:hover { background: var(--danger-hover); }

/* ── Metrics ────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 1.25rem; }
.metric { background: var(--surface-2); border-radius: 12px; padding: 13px 10px; text-align: center; border: 1px solid var(--border-2); }
.metric-val { font-size: 22px; font-weight: 700; color: var(--text-strong); line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.metric-lbl { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

/* ── Feature rows ───────────────────────────────────── */
.features { border: 1px solid var(--border); border-radius: 14px; overflow: visible; margin-bottom: 1.25rem; }
.feat { position: relative; }
.feat-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-bottom: 1px solid var(--border-2);
}
.feat:last-child .feat-row { border-bottom: none; }

.feat-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-icon.sun   { background: rgba(212,144,10,0.12);  color: #d4900a; }
.feat-icon.mouse { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.feat-icon.video { background: rgba(29,158,117,0.12);  color: var(--accent); }
.feat-icon.audio { background: rgba(219,39,119,0.11);  color: #db2777; }
.feat-icon.timer { background: rgba(124,58,237,0.12);  color: #8b5cf6; }
.feat-icon.tab   { background: rgba(234,88,12,0.12);   color: #ea580c; }

.feat-text { flex: 1; min-width: 0; }
.feat-name { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.feat-desc { font-size: 13px; color: var(--subtle); margin-top: 2px; line-height: 1.4; }

.feat-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border-radius: 99px; flex-shrink: 0; white-space: nowrap;
}
.badge-on   { background: var(--accent-chip); color: var(--accent-ink); }
.badge-off  { background: var(--off-bg); color: var(--faint); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }

.info-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 50%;
  width: 24px; height: 24px; min-width: 24px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--fainter); transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0; -webkit-tap-highlight-color: transparent;
}
.info-btn svg { width: 13px; height: 13px; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--off-bg); color: var(--muted); border-color: var(--fainter); }

/* ── Tooltip ────────────────────────────────────────── */
.tooltip {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  width: min(280px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  font-size: 14.5px; color: var(--muted); line-height: 1.6;
  z-index: 200; box-shadow: var(--tip-shadow);
}
.tooltip.show { display: block; }
.tooltip-title { font-size: 14.5px; font-weight: 700; color: var(--text-strong); margin-bottom: 5px; }

/* ── How-to accordion ───────────────────────────────── */
.howto { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 1.25rem; }
.howto-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 15px; cursor: pointer; user-select: none;
  background: none; border: 0; text-align: left;
  font-size: 15.5px; font-weight: 600; color: var(--text-strong);
  -webkit-tap-highlight-color: transparent;
  gap: 8px;
}
.howto-head:focus-visible { outline-offset: -2px; border-radius: 14px; }
.howto-head-left { display: flex; align-items: center; gap: 8px; }
.howto-head svg  { width: 16px; height: 16px; color: var(--subtle); flex-shrink: 0; }
.howto-head:hover { background: var(--surface-hover); }
.howto-head .howto-chevron { width: 16px; height: 16px; color: var(--fainter); transition: transform 0.22s; flex-shrink: 0; }
.howto-head[aria-expanded="true"] .howto-chevron { transform: rotate(180deg); }
.howto-body { border-top: 1px solid var(--border-2); padding: 0 15px 15px; }
.howto-body[hidden] { display: none; }
.howto-body-inner { padding-top: 14px; }

.step { display: flex; gap: 11px; margin-bottom: 11px; align-items: flex-start; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.step:last-of-type { margin-bottom: 0; }
.step strong { color: var(--text-strong); }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-chip); color: var(--accent-ink);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.compat {
  font-size: 13px; margin-top: 13px; padding: 9px 11px;
  background: var(--surface-2); border-radius: 9px; color: var(--muted); line-height: 1.6;
}
.compat strong { color: var(--text-strong); }

/* ── Activity log ───────────────────────────────────── */
.log {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 11px; padding: 10px 13px;
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
  font-size: 12.5px; color: var(--subtle);
  max-height: 96px; overflow-y: auto;
  line-height: 1.35;
}
.log-line { padding: 3px 0; border-bottom: 1px solid var(--border-2); }
.log-line:last-child { border-bottom: none; }
.ts   { color: var(--fainter); margin-right: 6px; }
.ev   { color: var(--accent); font-weight: 600; }
.warn-txt { color: var(--warn-ink); font-weight: 600; }

/* ── Content sections ───────────────────────────────── */
.content-card {
  border-radius: 20px;
  padding: 1.75rem; margin-bottom: 1.25rem;
}
.content-card h2 { font-size: 18.5px; font-weight: 700; color: var(--text-strong); margin-bottom: 11px; }
.content-card h3 { font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 16px 0 7px; }
.content-card p  { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin-bottom: 9px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card p strong { color: var(--text); }
.content-card ul { padding-left: 1.15rem; }
.content-card ul li { font-size: 15.5px; color: var(--muted); line-height: 1.8; }
/* Emoji take the place of the bullet in the "Who is it for?" list */
.content-card ul.emoji-list { list-style: none; padding-left: 0; }
.emoji-list li { display: flex; gap: 10px; align-items: baseline; }
.emoji { font-style: normal; flex-shrink: 0; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border-2); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: flex-start;
  width: 100%; padding: 14px 0; cursor: pointer; gap: 12px; user-select: none;
  background: none; border: 0; text-align: left;
  font-size: 15.5px; font-weight: 600; color: var(--text-strong); line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fainter); transition: transform 0.22s; margin-top: 2px; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { font-size: 15.5px; color: var(--muted); line-height: 1.7; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s; }
.faq-a.open { max-height: 300px; padding-bottom: 14px; visibility: visible; }

/* ── Footer ─────────────────────────────────────────── */
footer { text-align: center; font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 0.5rem; line-height: 2; }

/* ── Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .spin svg, .pulse, .status-ring.active, body.is-running .bg-run { animation: none; }
  .progress-bar, .faq-a { transition: none; }
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 500px) {
  body { padding-top: 1rem; padding-bottom: 4rem; }
  .hero h1 { font-size: 26px; }
  .card, .content-card { padding: 1.25rem 1.1rem; border-radius: 16px; }
  .metrics { gap: 6px; }
  .metric { padding: 10px 6px; }
  .metric-val { font-size: 20px; }
  .duration-options { gap: 5px; }
  .dur-btn { padding: 6px 12px; font-size: 13px; }
  .feat-row { padding: 11px 12px; gap: 9px; }
  .feat-icon { width: 30px; height: 30px; border-radius: 8px; }
  .feat-icon svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .hero-badges { gap: 4px; }
  .hbadge { font-size: 12px; padding: 4px 9px; }
  .metrics { gap: 4px; }
  .metric-val { font-size: 17.5px; }
}

/* ── Site header & navigation ───────────────────────
   Three groups: brand (left) · page links · utility buttons (right).
   Page links are plain text; utilities keep their pill buttons, with a thin
   divider between the two so they read as separate but related groups. */
/* The header is wider than the 800px content column: it breaks out to --header-width,
   stays centred, and never gets closer than 16px to the screen edges. */
.site-header {
  --header-width: min(1180px, calc(100vw - 32px));
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: var(--header-width);
  margin-left: calc((100% - var(--header-width)) / 2);
  margin-bottom: 2.25rem;
  z-index: 50;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 10px;
}
.brand img { width: 38px; height: 38px; display: block; }

/* Links sit just after the logo; the auto right margin pushes the buttons to the far right.
   The left margin lines "Home" up with the "F" of the homepage headline. Header and headline
   are both centred, so: half the header width − half the headline (768px ÷ 2 = 384px)
   − link padding (12px) − logo (160px) − header gap (12px) = 50% − 568px.
   On narrower screens it falls back to a 30px gap after the logo. */
.site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto 0 max(30px, calc(50% - 568px)); }
.site-nav a {
  position: relative;
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: #5fd6aa;
}

.header-tools {
  display: flex; align-items: center; gap: 8px;
  padding-left: 14px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.menu-btn { display: none; }

@media (max-width: 720px) {
  .brand { margin-right: auto; }
  .header-tools { border-left: 0; padding-left: 0; margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .install-label { display: none; }
  /* Page links drop down from the header as a frosted panel */
  .site-nav {
    display: none;
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 220px; padding: 8px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(28,31,36,0.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.16); border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 16px; padding: 12px 14px; }
  .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.08); }
  .site-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
}
@media (max-width: 500px) {
  .site-header { margin-bottom: 1.5rem; gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}

/* ── Footer links ───────────────────────────────── */
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ── About page ─────────────────────────────────── */
.about-story p { font-size: 16.5px; line-height: 1.8; color: var(--text-2); margin-bottom: 16px; }
.about-story p.lead { font-size: 18.5px; color: var(--text-strong); font-weight: 500; }
.about-story h2 { margin-top: 26px; }
.about-story h2:first-child { margin-top: 0; }
.signoff { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-2); }
.signoff strong { display: block; font-size: 17px; color: var(--text-strong); }
.signoff span { font-size: 14px; color: var(--subtle); }
a.btn-main { text-align: center; text-decoration: none; margin: 22px 0 0; }

/* ── Contact page ───────────────────────────────── */
.email-box {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin: 18px 0 6px; padding: 16px 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.email-box .email-icon { font-size: 22px; line-height: 1; }
.email-box .email-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.email-link {
  font-size: 18.5px; font-weight: 700; color: var(--accent);
  text-decoration: none; overflow-wrap: anywhere;
}
.email-link:hover { text-decoration: underline; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: manipulation;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.content-card ul.check-list { padding-left: 1.15rem; margin: 6px 0 14px; }
@media (max-width: 500px) {
  .email-link { font-size: 16.5px; }
  .email-box { padding: 14px; }
}

/* ── Privacy page ───────────────────────────────── */
.policy p { font-size: 15.5px; line-height: 1.75; }
.policy h3 { margin-top: 22px; }
.policy a { color: var(--accent); font-weight: 600; text-decoration: none; }
.policy a:hover { text-decoration: underline; }
.policy .email-link { font-size: inherit; }
