/* ===== Corkly design system ===== */
:root {
  --bg: #f6f5f2;
  --bg-rail: #1c1d22;
  --bg-rail-hover: #2a2c33;
  --surface: #ffffff;
  --surface-2: #f0efeb;
  --surface-3: #e7e6e0;
  --line: #e3e1da;
  --line-strong: #d2cfc6;
  --ink: #1d1e22;
  --ink-2: #54565e;
  --ink-3: #8b8d96;
  --accent: #c4452f;       /* warm cinematic red */
  --accent-soft: #f3ddd7;
  --accent-ink: #fff;
  --ok: #2e9e6b;
  --warn: #d98a1f;
  --shadow-sm: 0 1px 2px rgba(20,18,15,.06), 0 1px 3px rgba(20,18,15,.05);
  --shadow-md: 0 4px 14px rgba(20,18,15,.10), 0 2px 6px rgba(20,18,15,.06);
  --shadow-lg: 0 18px 50px rgba(20,18,15,.20), 0 6px 16px rgba(20,18,15,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --rail-w: 248px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;

  /* card palette */
  --c-default:#ffffff; --c-butter:#fff4c7; --c-sage:#d8ecd0; --c-blush:#ffd9d4; --c-sky:#cfe6f7;
  --c-amber:#ffe08a; --c-mint:#a9e3bd; --c-coral:#ff9f8e; --c-orange:#ffc785; --c-blue:#a9c7ff;
  --c-grape:#d8c4ef; --c-pink:#ffc4dd; --c-stone:#dcdbd5;

  /* cork speckle tiles (same layout, two strengths) */
  --cork-speckles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='0.55'/%3E%3C/filter%3E%3Cg fill='%234a2e14' filter='url(%23s)'%3E%3Ccircle cx='175.0' cy='202.4' r='1.3' opacity='0.16'/%3E%3Ccircle cx='256.2' cy='76.5' r='0.8' opacity='0.12'/%3E%3Ccircle cx='86.2' cy='71.0' r='0.82' opacity='0.11'/%3E%3Ccircle cx='147.6' cy='54.2' r='0.92' opacity='0.11'/%3E%3Ccircle cx='101.7' cy='189.3' r='1.15' opacity='0.19'/%3E%3Ccircle cx='187.9' cy='194.9' r='1.25' opacity='0.14'/%3E%3Ccircle cx='235.4' cy='214.8' r='1.74' opacity='0.19'/%3E%3Ccircle cx='141.5' cy='188.8' r='0.76' opacity='0.19'/%3E%3Ccircle cx='162.1' cy='29.6' r='0.88' opacity='0.18'/%3E%3Ccircle cx='124.9' cy='33.4' r='1.28' opacity='0.15'/%3E%3Ccircle cx='230.7' cy='223.0' r='0.71' opacity='0.2'/%3E%3Ccircle cx='98.7' cy='31.9' r='0.75' opacity='0.18'/%3E%3Ccircle cx='75.1' cy='105.5' r='1.25' opacity='0.18'/%3E%3Ccircle cx='175.1' cy='14.5' r='1.48' opacity='0.12'/%3E%3Ccircle cx='28.7' cy='19.9' r='1.11' opacity='0.16'/%3E%3Ccircle cx='113.9' cy='72.8' r='0.81' opacity='0.11'/%3E%3Ccircle cx='121.6' cy='31.5' r='2.01' opacity='0.17'/%3E%3Ccircle cx='20.3' cy='167.7' r='0.85' opacity='0.17'/%3E%3Ccircle cx='168.7' cy='244.3' r='1.39' opacity='0.2'/%3E%3Ccircle cx='246.5' cy='56.5' r='1.01' opacity='0.16'/%3E%3Ccircle cx='169.0' cy='56.5' r='1.48' opacity='0.12'/%3E%3Ccircle cx='37.5' cy='85.1' r='1.05' opacity='0.16'/%3E%3Ccircle cx='187.2' cy='245.7' r='1.24' opacity='0.17'/%3E%3Ccircle cx='131.2' cy='112.0' r='1.04' opacity='0.15'/%3E%3Ccircle cx='42.2' cy='119.4' r='1.53' opacity='0.2'/%3E%3Ccircle cx='69.2' cy='121.6' r='0.85' opacity='0.14'/%3E%3Ccircle cx='116.1' cy='216.8' r='0.97' opacity='0.21'/%3E%3Ccircle cx='137.3' cy='107.9' r='0.83' opacity='0.1'/%3E%3Ccircle cx='96.2' cy='153.7' r='0.81' opacity='0.14'/%3E%3Ccircle cx='251.2' cy='102.5' r='0.97' opacity='0.21'/%3E%3Ccircle cx='143.8' cy='183.3' r='1.95' opacity='0.16'/%3E%3Ccircle cx='14.8' cy='176.4' r='0.99' opacity='0.17'/%3E%3Ccircle cx='215.3' cy='73.4' r='0.94' opacity='0.12'/%3E%3Ccircle cx='115.8' cy='21.3' r='1.39' opacity='0.15'/%3E%3Ccircle cx='92.9' cy='202.5' r='0.84' opacity='0.17'/%3E%3Ccircle cx='238.0' cy='59.1' r='0.93' opacity='0.15'/%3E%3Ccircle cx='205.0' cy='34.4' r='0.75' opacity='0.12'/%3E%3Ccircle cx='135.3' cy='127.2' r='1.36' opacity='0.2'/%3E%3Ccircle cx='9.7' cy='60.3' r='1.02' opacity='0.13'/%3E%3Ccircle cx='108.9' cy='37.6' r='0.77' opacity='0.16'/%3E%3Ccircle cx='157.4' cy='24.8' r='1.13' opacity='0.18'/%3E%3Ccircle cx='174.2' cy='247.2' r='2.16' opacity='0.18'/%3E%3Ccircle cx='72.0' cy='126.5' r='1.09' opacity='0.18'/%3E%3Ccircle cx='110.5' cy='8.5' r='1.11' opacity='0.11'/%3E%3Ccircle cx='157.9' cy='255.6' r='1.75' opacity='0.2'/%3E%3Ccircle cx='48.8' cy='20.9' r='0.73' opacity='0.2'/%3E%3Ccircle cx='172.5' cy='243.7' r='0.71' opacity='0.16'/%3E%3Ccircle cx='211.2' cy='177.8' r='1.77' opacity='0.13'/%3E%3Ccircle cx='40.7' cy='248.4' r='0.77' opacity='0.11'/%3E%3Ccircle cx='165.5' cy='127.2' r='1.15' opacity='0.13'/%3E%3Ccircle cx='252.8' cy='202.0' r='1.24' opacity='0.12'/%3E%3Ccircle cx='149.0' cy='83.1' r='1.14' opacity='0.12'/%3E%3Ccircle cx='255.2' cy='203.1' r='1.19' opacity='0.13'/%3E%3Ccircle cx='45.4' cy='100.3' r='1.07' opacity='0.18'/%3E%3Ccircle cx='66.8' cy='44.7' r='1.85' opacity='0.15'/%3E%3Ccircle cx='139.4' cy='253.7' r='0.78' opacity='0.16'/%3E%3Ccircle cx='135.5' cy='163.3' r='0.7' opacity='0.17'/%3E%3Ccircle cx='248.2' cy='178.0' r='1.86' opacity='0.19'/%3E%3Ccircle cx='50.4' cy='247.7' r='0.95' opacity='0.2'/%3E%3Ccircle cx='130.1' cy='9.2' r='1.32' opacity='0.16'/%3E%3Ccircle cx='67.8' cy='228.1' r='1.01' opacity='0.17'/%3E%3Ccircle cx='234.0' cy='101.6' r='0.75' opacity='0.16'/%3E%3Ccircle cx='219.0' cy='245.5' r='0.98' opacity='0.2'/%3E%3Ccircle cx='102.7' cy='57.6' r='0.73' opacity='0.2'/%3E%3Ccircle cx='91.8' cy='40.1' r='1.36' opacity='0.14'/%3E%3Ccircle cx='237.0' cy='125.6' r='1.11' opacity='0.12'/%3E%3Ccircle cx='170.6' cy='43.4' r='1.56' opacity='0.15'/%3E%3Ccircle cx='35.4' cy='74.7' r='1.29' opacity='0.14'/%3E%3Ccircle cx='252.3' cy='238.3' r='1.5' opacity='0.2'/%3E%3Ccircle cx='142.9' cy='54.3' r='1.01' opacity='0.12'/%3E%3Ccircle cx='173.0' cy='11.7' r='0.91' opacity='0.13'/%3E%3Ccircle cx='89.8' cy='125.6' r='1.33' opacity='0.14'/%3E%3Ccircle cx='202.8' cy='20.4' r='1.5' opacity='0.18'/%3E%3Ccircle cx='42.7' cy='76.2' r='1.76' opacity='0.2'/%3E%3Ccircle cx='98.6' cy='88.5' r='1.9' opacity='0.14'/%3E%3Ccircle cx='111.1' cy='232.5' r='1.99' opacity='0.17'/%3E%3Ccircle cx='115.3' cy='23.0' r='1.41' opacity='0.15'/%3E%3Ccircle cx='218.2' cy='95.9' r='2.17' opacity='0.16'/%3E%3Ccircle cx='212.3' cy='69.9' r='1.26' opacity='0.19'/%3E%3Ccircle cx='143.5' cy='204.6' r='0.9' opacity='0.19'/%3E%3Ccircle cx='171.5' cy='46.6' r='1.39' opacity='0.18'/%3E%3Ccircle cx='245.7' cy='83.3' r='1.97' opacity='0.13'/%3E%3Ccircle cx='4.6' cy='113.1' r='2.18' opacity='0.13'/%3E%3Ccircle cx='37.7' cy='175.2' r='0.88' opacity='0.19'/%3E%3Ccircle cx='11.5' cy='93.0' r='1.24' opacity='0.16'/%3E%3Ccircle cx='170.3' cy='143.6' r='1.5' opacity='0.14'/%3E%3Ccircle cx='203.4' cy='109.3' r='1.34' opacity='0.19'/%3E%3Ccircle cx='60.6' cy='129.7' r='1.82' opacity='0.11'/%3E%3Ccircle cx='94.3' cy='220.5' r='1.53' opacity='0.18'/%3E%3Ccircle cx='154.7' cy='221.6' r='1.57' opacity='0.13'/%3E%3C/g%3E%3Cg fill='%23ffe4b0' filter='url(%23s)'%3E%3Ccircle cx='104.8' cy='196.1' r='1.97' opacity='0.12'/%3E%3Ccircle cx='195.2' cy='31.1' r='0.94' opacity='0.13'/%3E%3Ccircle cx='198.6' cy='42.2' r='1.75' opacity='0.09'/%3E%3Ccircle cx='219.2' cy='239.2' r='1.44' opacity='0.1'/%3E%3Ccircle cx='196.3' cy='223.3' r='0.99' opacity='0.11'/%3E%3Ccircle cx='167.8' cy='196.6' r='0.82' opacity='0.13'/%3E%3Ccircle cx='161.6' cy='212.1' r='0.95' opacity='0.1'/%3E%3Ccircle cx='161.9' cy='231.0' r='1.3' opacity='0.14'/%3E%3Ccircle cx='137.7' cy='235.6' r='1.97' opacity='0.08'/%3E%3Ccircle cx='55.1' cy='83.0' r='1.44' opacity='0.12'/%3E%3Ccircle cx='153.7' cy='90.6' r='1.01' opacity='0.11'/%3E%3Ccircle cx='254.9' cy='52.2' r='1.01' opacity='0.11'/%3E%3Ccircle cx='48.4' cy='204.9' r='1.37' opacity='0.08'/%3E%3Ccircle cx='123.1' cy='180.9' r='1.5' opacity='0.09'/%3E%3Ccircle cx='241.7' cy='30.5' r='0.83' opacity='0.09'/%3E%3Ccircle cx='227.3' cy='136.5' r='1.59' opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
  --cork-speckles-whisper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='0.55'/%3E%3C/filter%3E%3Cg fill='%234a2e14' filter='url(%23s)'%3E%3Ccircle cx='175.0' cy='202.4' r='1.3' opacity='0.056'/%3E%3Ccircle cx='256.2' cy='76.5' r='0.8' opacity='0.042'/%3E%3Ccircle cx='86.2' cy='71.0' r='0.82' opacity='0.038'/%3E%3Ccircle cx='147.6' cy='54.2' r='0.92' opacity='0.038'/%3E%3Ccircle cx='101.7' cy='189.3' r='1.15' opacity='0.066'/%3E%3Ccircle cx='187.9' cy='194.9' r='1.25' opacity='0.049'/%3E%3Ccircle cx='235.4' cy='214.8' r='1.74' opacity='0.066'/%3E%3Ccircle cx='141.5' cy='188.8' r='0.76' opacity='0.066'/%3E%3Ccircle cx='162.1' cy='29.6' r='0.88' opacity='0.063'/%3E%3Ccircle cx='124.9' cy='33.4' r='1.28' opacity='0.052'/%3E%3Ccircle cx='230.7' cy='223.0' r='0.71' opacity='0.07'/%3E%3Ccircle cx='98.7' cy='31.9' r='0.75' opacity='0.063'/%3E%3Ccircle cx='75.1' cy='105.5' r='1.25' opacity='0.063'/%3E%3Ccircle cx='175.1' cy='14.5' r='1.48' opacity='0.042'/%3E%3Ccircle cx='28.7' cy='19.9' r='1.11' opacity='0.056'/%3E%3Ccircle cx='113.9' cy='72.8' r='0.81' opacity='0.038'/%3E%3Ccircle cx='121.6' cy='31.5' r='2.01' opacity='0.059'/%3E%3Ccircle cx='20.3' cy='167.7' r='0.85' opacity='0.059'/%3E%3Ccircle cx='168.7' cy='244.3' r='1.39' opacity='0.07'/%3E%3Ccircle cx='246.5' cy='56.5' r='1.01' opacity='0.056'/%3E%3Ccircle cx='169.0' cy='56.5' r='1.48' opacity='0.042'/%3E%3Ccircle cx='37.5' cy='85.1' r='1.05' opacity='0.056'/%3E%3Ccircle cx='187.2' cy='245.7' r='1.24' opacity='0.059'/%3E%3Ccircle cx='131.2' cy='112.0' r='1.04' opacity='0.052'/%3E%3Ccircle cx='42.2' cy='119.4' r='1.53' opacity='0.07'/%3E%3Ccircle cx='69.2' cy='121.6' r='0.85' opacity='0.049'/%3E%3Ccircle cx='116.1' cy='216.8' r='0.97' opacity='0.073'/%3E%3Ccircle cx='137.3' cy='107.9' r='0.83' opacity='0.035'/%3E%3Ccircle cx='96.2' cy='153.7' r='0.81' opacity='0.049'/%3E%3Ccircle cx='251.2' cy='102.5' r='0.97' opacity='0.073'/%3E%3Ccircle cx='143.8' cy='183.3' r='1.95' opacity='0.056'/%3E%3Ccircle cx='14.8' cy='176.4' r='0.99' opacity='0.059'/%3E%3Ccircle cx='215.3' cy='73.4' r='0.94' opacity='0.042'/%3E%3Ccircle cx='115.8' cy='21.3' r='1.39' opacity='0.052'/%3E%3Ccircle cx='92.9' cy='202.5' r='0.84' opacity='0.059'/%3E%3Ccircle cx='238.0' cy='59.1' r='0.93' opacity='0.052'/%3E%3Ccircle cx='205.0' cy='34.4' r='0.75' opacity='0.042'/%3E%3Ccircle cx='135.3' cy='127.2' r='1.36' opacity='0.07'/%3E%3Ccircle cx='9.7' cy='60.3' r='1.02' opacity='0.045'/%3E%3Ccircle cx='108.9' cy='37.6' r='0.77' opacity='0.056'/%3E%3Ccircle cx='157.4' cy='24.8' r='1.13' opacity='0.063'/%3E%3Ccircle cx='174.2' cy='247.2' r='2.16' opacity='0.063'/%3E%3Ccircle cx='72.0' cy='126.5' r='1.09' opacity='0.063'/%3E%3Ccircle cx='110.5' cy='8.5' r='1.11' opacity='0.038'/%3E%3Ccircle cx='157.9' cy='255.6' r='1.75' opacity='0.07'/%3E%3Ccircle cx='48.8' cy='20.9' r='0.73' opacity='0.07'/%3E%3Ccircle cx='172.5' cy='243.7' r='0.71' opacity='0.056'/%3E%3Ccircle cx='211.2' cy='177.8' r='1.77' opacity='0.045'/%3E%3Ccircle cx='40.7' cy='248.4' r='0.77' opacity='0.038'/%3E%3Ccircle cx='165.5' cy='127.2' r='1.15' opacity='0.045'/%3E%3Ccircle cx='252.8' cy='202.0' r='1.24' opacity='0.042'/%3E%3Ccircle cx='149.0' cy='83.1' r='1.14' opacity='0.042'/%3E%3Ccircle cx='255.2' cy='203.1' r='1.19' opacity='0.045'/%3E%3Ccircle cx='45.4' cy='100.3' r='1.07' opacity='0.063'/%3E%3Ccircle cx='66.8' cy='44.7' r='1.85' opacity='0.052'/%3E%3Ccircle cx='139.4' cy='253.7' r='0.78' opacity='0.056'/%3E%3Ccircle cx='135.5' cy='163.3' r='0.7' opacity='0.059'/%3E%3Ccircle cx='248.2' cy='178.0' r='1.86' opacity='0.066'/%3E%3Ccircle cx='50.4' cy='247.7' r='0.95' opacity='0.07'/%3E%3Ccircle cx='130.1' cy='9.2' r='1.32' opacity='0.056'/%3E%3Ccircle cx='67.8' cy='228.1' r='1.01' opacity='0.059'/%3E%3Ccircle cx='234.0' cy='101.6' r='0.75' opacity='0.056'/%3E%3Ccircle cx='219.0' cy='245.5' r='0.98' opacity='0.07'/%3E%3Ccircle cx='102.7' cy='57.6' r='0.73' opacity='0.07'/%3E%3Ccircle cx='91.8' cy='40.1' r='1.36' opacity='0.049'/%3E%3Ccircle cx='237.0' cy='125.6' r='1.11' opacity='0.042'/%3E%3Ccircle cx='170.6' cy='43.4' r='1.56' opacity='0.052'/%3E%3Ccircle cx='35.4' cy='74.7' r='1.29' opacity='0.049'/%3E%3Ccircle cx='252.3' cy='238.3' r='1.5' opacity='0.07'/%3E%3Ccircle cx='142.9' cy='54.3' r='1.01' opacity='0.042'/%3E%3Ccircle cx='173.0' cy='11.7' r='0.91' opacity='0.045'/%3E%3Ccircle cx='89.8' cy='125.6' r='1.33' opacity='0.049'/%3E%3Ccircle cx='202.8' cy='20.4' r='1.5' opacity='0.063'/%3E%3Ccircle cx='42.7' cy='76.2' r='1.76' opacity='0.07'/%3E%3Ccircle cx='98.6' cy='88.5' r='1.9' opacity='0.049'/%3E%3Ccircle cx='111.1' cy='232.5' r='1.99' opacity='0.059'/%3E%3Ccircle cx='115.3' cy='23.0' r='1.41' opacity='0.052'/%3E%3Ccircle cx='218.2' cy='95.9' r='2.17' opacity='0.056'/%3E%3Ccircle cx='212.3' cy='69.9' r='1.26' opacity='0.066'/%3E%3Ccircle cx='143.5' cy='204.6' r='0.9' opacity='0.066'/%3E%3Ccircle cx='171.5' cy='46.6' r='1.39' opacity='0.063'/%3E%3Ccircle cx='245.7' cy='83.3' r='1.97' opacity='0.045'/%3E%3Ccircle cx='4.6' cy='113.1' r='2.18' opacity='0.045'/%3E%3Ccircle cx='37.7' cy='175.2' r='0.88' opacity='0.066'/%3E%3Ccircle cx='11.5' cy='93.0' r='1.24' opacity='0.056'/%3E%3Ccircle cx='170.3' cy='143.6' r='1.5' opacity='0.049'/%3E%3Ccircle cx='203.4' cy='109.3' r='1.34' opacity='0.066'/%3E%3Ccircle cx='60.6' cy='129.7' r='1.82' opacity='0.038'/%3E%3Ccircle cx='94.3' cy='220.5' r='1.53' opacity='0.063'/%3E%3Ccircle cx='154.7' cy='221.6' r='1.57' opacity='0.045'/%3E%3C/g%3E%3Cg fill='%23ffffff' filter='url(%23s)'%3E%3Ccircle cx='104.8' cy='196.1' r='1.97' opacity='0.38'/%3E%3Ccircle cx='195.2' cy='31.1' r='0.94' opacity='0.42'/%3E%3Ccircle cx='198.6' cy='42.2' r='1.75' opacity='0.29'/%3E%3Ccircle cx='219.2' cy='239.2' r='1.44' opacity='0.32'/%3E%3Ccircle cx='196.3' cy='223.3' r='0.99' opacity='0.35'/%3E%3Ccircle cx='167.8' cy='196.6' r='0.82' opacity='0.42'/%3E%3Ccircle cx='161.6' cy='212.1' r='0.95' opacity='0.32'/%3E%3Ccircle cx='161.9' cy='231.0' r='1.3' opacity='0.45'/%3E%3Ccircle cx='137.7' cy='235.6' r='1.97' opacity='0.26'/%3E%3Ccircle cx='55.1' cy='83.0' r='1.44' opacity='0.38'/%3E%3Ccircle cx='153.7' cy='90.6' r='1.01' opacity='0.35'/%3E%3Ccircle cx='254.9' cy='52.2' r='1.01' opacity='0.35'/%3E%3Ccircle cx='48.4' cy='204.9' r='1.37' opacity='0.26'/%3E%3Ccircle cx='123.1' cy='180.9' r='1.5' opacity='0.29'/%3E%3Ccircle cx='241.7' cy='30.5' r='0.83' opacity='0.29'/%3E%3Ccircle cx='227.3' cy='136.5' r='1.59' opacity='0.32'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { width: 18px; height: 18px; flex: none; display: block; }   /* baseline; class rules override */
input, textarea { font-family: inherit; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }

/* ===== App shell ===== */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; height: 100vh; }
.app--norail { grid-template-columns: 1fr; }

/* ----- Sidebar rail ----- */
.rail { background: var(--bg-rail); color: #e9e9ec; display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; min-width: 0; }
.rail__brand { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; }
.rail__logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #e0775f); display: grid; place-items: center; box-shadow: var(--shadow-sm); flex: none; }
.rail__logo svg { width: 21px; height: 21px; }
.rail__brandtext { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .2px; }
.rail__proj { padding: 10px 10px 12px; margin-bottom: 6px; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); }
.rail__proj-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.rail__proj-sub { font-size: 11.5px; color: #9a9ba4; margin-top: 3px; }
.rail__section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #75767f; padding: 14px 10px 5px; }
.navitem { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #c8c9d0; font-size: 13.5px; font-weight: 500; width: 100%; text-align: left; transition: background .12s, color .12s; }
.navitem:hover { background: var(--bg-rail-hover); color: #fff; }
.navitem.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.navitem.active .navitem__ico { opacity: 1; }
.navitem__ico { width: 17px; height: 17px; opacity: .8; flex: none; }
.navitem__badge { margin-left: auto; font-size: 11px; color: #8d8e97; background: rgba(255,255,255,.07); padding: 1px 7px; border-radius: 20px; }
.navitem.active .navitem__badge { background: rgba(255,255,255,.22); color: #fff; }
.rail__sub { display: flex; flex-direction: column; gap: 1px; padding: 3px 0 3px 14px; margin-left: 8px; border-left: 1px solid rgba(255,255,255,.08); }
.rail__chip { display:flex; align-items:center; gap:8px; padding: 6px 9px; border-radius: 8px; color: #b5b6be; font-size: 12.5px; cursor: pointer; }
.rail__chip:hover { background: var(--bg-rail-hover); color:#fff; }
.rail__chip.active { color:#fff; background: rgba(196,69,47,.22); }
.rail__chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity:.6; flex:none;}
.rail__chip-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__chip-act { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #8d8e97; opacity: 0; transition: opacity .12s, background .12s, color .12s; }
.rail__chip:hover .rail__chip-act { opacity: 1; }
.rail__chip-act:hover { background: rgba(255,255,255,.12); color: #fff; }
.rail__chip-act.danger:hover { color: #ff8a72; }
.rail__chip-act svg { width: 14px; height: 14px; }
.rail__spacer { flex: 1; }
.rail__foot { padding: 8px 6px 2px; border-top: 1px solid rgba(255,255,255,.07); }

/* ----- Main column ----- */
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(246,245,242,.85); backdrop-filter: blur(8px); }
.topbar__crumb { display:flex; align-items:center; gap: 8px; min-width: 0; overflow: hidden; }
.topbar__title { font-family: var(--display); font-size: 20px; font-weight: 600; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; flex: none; max-width: 40vw; }
.topbar__sep { color: var(--ink-3); }
.topbar__sub { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.topbar__titleedit { font-size: 14px; color: var(--ink); font-weight: 500; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 4px 8px; outline: none; flex: 1 1 auto; min-width: 40px; max-width: 360px; transition: background .12s, border-color .12s; }
.topbar__titleedit::placeholder { color: var(--ink-3); font-weight: 400; font-style: italic; }
.topbar__titleedit:hover { background: var(--surface-2); }
.topbar__titleedit:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar__spacer { flex: 1; }
.seg--sm { padding: 2px; }
.seg--sm button { padding: 5px 11px; font-size: 12.5px; font-weight: 700; min-width: 30px; }
.sizegroup { display: inline-flex; align-items: center; gap: 5px; padding: 0 2px 0 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.sizegroup .seg { background: transparent; border: none; padding: 2px; }
.sizegroup__ico { display: grid; place-items: center; color: var(--ink-3); flex: none; }
.sizegroup__ico svg { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .12s, background .12s; }
.btn:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn--primary:hover { background: #b03c29; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--ai { background: linear-gradient(135deg,#7b3ff2,#c4452f); color:#fff; border-color: transparent; }
.btn--ai:hover { filter: brightness(1.06); }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); transition: background .12s, color .12s; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; }
.kbd { font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface); }

/* ----- Board surface ----- */
.board { flex: 1; overflow: auto; padding: 22px; }
.board-head { display:flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.board-head h2 { font-family: var(--display); font-size: 22px; margin: 0; font-weight: 600; }
.board-head .muted { color: var(--ink-2); font-size: 13.5px; }

/* ===== Act lanes ===== */
.lane { margin: 16px 0; border-radius: var(--radius); }
.lane__head { display:flex; align-items:center; gap: 10px; margin-bottom: 9px; }
.lane__label { font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--ink); display:flex; align-items:center; gap: 9px; }
.lane__tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 30px; color: var(--accent); background: var(--accent-soft); }
.lane__count { font-size: 12px; color: var(--ink-3); }
/* character name: reads as a label at rest, reveals itself as editable on hover/focus */
.input.lane__name { width: auto; max-width: 260px; border: 1px solid transparent; background: transparent; padding: 2px 6px; font-weight: 700; font-size: 13px; box-shadow: none; border-radius: 7px; }
.input.lane__name:hover { border-color: var(--line); }
.input.lane__name:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
/* character lane grip + delete: always visible so the affordance is discoverable, brighter on hover */
.lane__grip { width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink-3); cursor: grab; opacity: .45; transition: opacity .12s, color .12s; flex: none; }
.lane__grip svg { width: 18px; height: 13px; }
.lane__head:hover .lane__grip { opacity: .8; }
.lane__grip:active { cursor: grabbing; }
.lane__del { color: var(--ink-3); opacity: .5; transition: opacity .12s, color .12s; flex: none; }
.lane__head:hover .lane__del { opacity: .8; }
.lane__del:hover, .lane__del:focus-visible { opacity: 1; color: var(--accent); }
.lane__rule { flex: 1; height: 1px; background: var(--line); }
.lane__track { display: flex; gap: 14px; align-items: stretch; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.lane__track.is-drop { background: linear-gradient(0deg, rgba(196,69,47,.05), rgba(196,69,47,.05)); border-radius: var(--radius); }

/* ===== Compact Episode grid (act labels on the left, fills the viewport) ===== */
.board--episode { padding: 14px 16px; }
.ep-grid { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.eprow { display: flex; gap: 10px; align-items: stretch; flex: 1 1 auto; min-height: var(--card-h-min, 92px); max-height: var(--card-h-max, 124px); }
.eprow__cell { width: 112px; flex: none; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; padding: 8px 6px 4px; overflow: hidden; }
.eprow__cell.teaser, .eprow__cell.tag { background: var(--surface-2); }
.eprow__name { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); text-align: center; line-height: 1.05;
  width: 100%; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 2px 4px; outline: none; transition: background .12s, border-color .12s; }
.eprow__name:hover { background: rgba(0,0,0,.04); }
.eprow__name:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.eprow__tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.eprow__count { font-size: 10.5px; color: var(--ink-3); font-weight: 600; transition: opacity .12s; }
.eprow:hover .eprow__count { opacity: 0; }
.eprow__grip { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 26px; height: 15px; display: grid; place-items: center; color: var(--ink-3); cursor: grab; opacity: 0; transition: opacity .12s; }
.eprow__grip svg { width: 18px; height: 13px; }
.eprow:hover .eprow__grip { opacity: .65; }
.eprow__grip:active { cursor: grabbing; }
.eprow__tools { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 1px; opacity: 0; transition: opacity .12s; }
.eprow:hover .eprow__tools { opacity: 1; }
.eprow__tool { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-3); transition: background .12s, color .12s; }
.eprow__tool:hover { background: rgba(0,0,0,.08); color: var(--ink); }
.eprow__tool.danger:hover { color: var(--accent); }
.eprow__tool svg { width: 15px; height: 15px; }
.row-dragging { opacity: .4; }
.row-drop { height: 3px; background: var(--accent); border-radius: 3px; box-shadow: 0 0 0 3px var(--accent-soft); margin: -1px 0; }
.row-floating { position: fixed; z-index: 300; pointer-events: none; margin: 0; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg) scale(1.03); opacity: .97; }
.eprow--add { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; padding: 7px 12px; border-radius: 9px;
  border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: 12.5px; font-weight: 600; background: transparent; flex: none; transition: border-color .12s, color .12s; }
.eprow--add:hover { border-color: var(--accent); color: var(--accent); }
.eprow--add svg { width: 15px; height: 15px; }
.iconbtn--on { background: var(--accent); color: #fff; }
.iconbtn--on:hover { background: #b03c29; color: #fff; }

/* scale-to-fit: rows evenly split the full board height, however many acts there are */
.ep-grid.fit .eprow { flex: 1 1 0; min-height: 0; max-height: none; }

/* collapsed (titles only) */
.ep-grid.collapsed .eprow { flex: 0 0 auto; min-height: 0; max-height: none; height: 58px; }
.ep-grid.collapsed .eprow__cell { padding: 4px; }
.ep-grid.collapsed .eprow__name { font-size: 14px; }
.ep-grid.collapsed .eprow__tag { display: none; }
.ep-grid.collapsed .eprow__grip { top: 2px; }
.ep-grid.collapsed .card { padding: 8px 11px; }
.ep-grid.collapsed .card:has(.card__title) .card__body { display: none; }
.ep-grid.collapsed .card__foot { display: none; }
.ep-grid.collapsed .card__title { -webkit-line-clamp: 2; margin: 0; }
.ep-grid.collapsed .card__body { -webkit-line-clamp: 2; }
.eprow__track { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; align-items: stretch; padding-bottom: 2px; }
.ep-grid .card { width: var(--card-w, 196px); height: 100%; min-height: 0; padding: 10px 12px 8px; }
.ep-grid .card__title { font-size: calc(13px * var(--ts, 1)); margin-bottom: 3px; }
.ep-grid .card__body { font-size: calc(12px * var(--bs, 1)); -webkit-line-clamp: 3; }
.ep-grid .card__foot { margin-top: 6px; }
.ep-grid .addcard { width: var(--card-w, 196px); height: 100%; min-height: 0; }
.ep-grid .drop-line { height: 100%; min-height: 0; }

/* ===== Card ===== */
.card { position: relative; width: 232px; min-height: 132px; flex: none; background: var(--card-bg, #fff); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 13px 14px 12px; display: flex; flex-direction: column;
  scroll-snap-align: start; cursor: grab; transition: box-shadow .14s, transform .14s, border-color .12s; overflow: hidden; }
.card::before { content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--card-strip, transparent); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.card.dragging { opacity: .35; }
.card.drag-ghost { box-shadow: var(--shadow-lg); transform: rotate(1.5deg) scale(1.02); cursor: grabbing; z-index: 60; }
.card.selected { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.minicard.selected { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent-soft); }
.drag-badge { position: fixed; z-index: 301; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; pointer-events: none; box-shadow: var(--shadow-md); }
.card-floating { position: fixed; z-index: 300; pointer-events: none; margin: 0; box-shadow: var(--shadow-lg); transform: rotate(2deg) scale(1.03); opacity: .97; }
.card:active { cursor: grabbing; }
.card__title { font-weight: 700; font-size: calc(13.5px * var(--ts, 1)); line-height: 1.3; margin: 0 0 5px; word-break: break-word; }
.card__body { font-size: calc(12.5px * var(--bs, 1)); line-height: 1.45; color: var(--ink-2); flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-word; white-space: pre-line; }
.card__foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; min-height: 18px; }
.card__status { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 20px; display:inline-flex; align-items:center; gap: 5px; }
.card__menu { margin-left: auto; opacity: 0; transition: opacity .12s; color: var(--ink-3); width: 24px; height: 22px; border-radius: 6px; display: grid; place-items:center; }
.card:hover .card__menu { opacity: 1; }
.card__menu:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.card__num { position:absolute; top: 10px; right: 11px; font-size: 10.5px; font-weight:700; color: var(--ink-3); opacity:.6;}

/* status colors */
.st-idea   { background:#eee9fb; color:#6b3fd0; }
.st-draft  { background:#fdf0d8; color:#9a6a12; }
.st-approved{ background:#dcf2e6; color:#1f7a4d; }
.st-cut    { background:#f0e9e6; color:#8a6a5e; text-decoration: line-through; }
.st-question{ background:#e4eefb; color:#2c6bbf; }

/* add card slot */
.addcard { width: 152px; min-height: 132px; flex: none; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; background: transparent; transition: border-color .12s, color .12s, background .12s; }
.addcard:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.addcard svg { width: 20px; height: 20px; }
.lane__empty { color: var(--ink-3); font-size: 13px; padding: 6px 2px; }

/* drop indicator */
.drop-line { width: 3px; align-self: stretch; min-height: 132px; border-radius: 3px; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== Season board ===== */
.season-grid { display: flex; gap: 16px; padding-bottom: 18px; align-items: flex-start; overflow-x: auto; }
.epcol { width: 268px; flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.epcol__head { display:flex; align-items:center; gap: 9px; margin-bottom: 10px; cursor: pointer; }
.epcol__no { font-family: var(--display); font-weight:600; font-size: 15px; background: var(--surface); border:1px solid var(--line-strong); border-radius: 8px; padding: 2px 9px; }
.epcol__title { font-weight: 600; font-size: 13.5px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.epcol__open { color: var(--ink-3); }
.epcol__head:hover .epcol__open { color: var(--accent); }
.epcol__cards { display:flex; flex-direction: column; gap: 10px; }
.minicard { background: var(--card-bg,#fff); border:1px solid var(--line-strong); border-radius: 9px; padding: 10px 11px; box-shadow: var(--shadow-sm); position: relative; overflow:hidden; }
.minicard::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--card-strip, transparent);}
.minicard__t { font-weight:700; font-size: calc(12.5px * var(--ts, 1)); margin-bottom: 3px;}
.minicard__b { font-size: calc(11.5px * var(--bs, 1)); color: var(--ink-2); line-height:1.4; display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.epcol__beats { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); display:flex; gap: 6px; flex-wrap:wrap;}
.epcol__beats b { color: var(--ink-2); }

/* ===== Scrap / free canvas ===== */
.scrap { position: relative; min-height: 1400px; min-width: 1800px; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 24px 24px; border-radius: var(--radius); }
.scrap .card { position: absolute; }

/* ===== Overlays (modal / menu / palette / editor) ===== */
.scrim { position: fixed; inset: 0; background: rgba(28,24,20,.34); backdrop-filter: blur(2px); z-index: 100; animation: fade .14s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity:0; transform: translateY(8px) scale(.98); } }
@keyframes slidein { from { opacity:0; transform: translateY(10px); } }

.modal { position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(680px, 94vw); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); animation: popModal .18s cubic-bezier(.2,.8,.2,1); overflow:hidden; }
@keyframes popModal { from { opacity:0; transform: translate(-50%,-50%) translateY(10px) scale(.98); } to { opacity:1; transform: translate(-50%,-50%); } }
.modal__head { padding: 22px 26px 6px; }
.modal__head h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; }
.modal__head p { margin: 5px 0 0; color: var(--ink-2); font-size: 13.5px; }
.modal__body { padding: 18px 26px; max-height: 64vh; overflow:auto; }
.modal__foot { padding: 16px 26px; display:flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
.steps { display:flex; gap: 8px; padding: 14px 26px 4px; }
.step { display:flex; align-items:center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight:600; }
.step.active { color: var(--ink); }
.step.done .step__n { background: var(--ok); color:#fff; }
.step__n { width: 22px; height: 22px; border-radius: 50%; display:grid; place-items:center; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight:700;}
.step.active .step__n { background: var(--accent); color:#fff;}
.step__line { width: 28px; height: 2px; background: var(--line); }

.field { margin-bottom: 16px; }
.field > label { display:block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.row { display:flex; gap: 14px; }
.row > * { flex: 1; }
.choice { display:flex; gap: 12px; }
.choice__opt { flex:1; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.choice__opt:hover { border-color: var(--ink-3); }
.choice__opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice__opt b { display:block; font-size: 14px; margin-bottom: 3px;}
.choice__opt span { font-size: 12px; color: var(--ink-2); line-height:1.4; }
.seg { display:inline-flex; background: var(--surface-2); border:1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2);}
.seg button.sel { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle { display:flex; align-items:center; gap: 9px; font-size: 13.5px; font-weight: 500; cursor:pointer; }
.toggle input { display:none; }
.toggle .sw { width: 38px; height: 22px; border-radius: 20px; background: var(--surface-3); position: relative; transition: background .15s; flex:none; }
.toggle .sw::after { content:''; position:absolute; top: 2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow: var(--shadow-sm); transition: left .15s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { left: 18px; }

/* New-project "Customize structure" disclosure */
.np-disclose { display:inline-flex; align-items:center; gap: 8px; margin: 14px 0 0; padding: 4px 2px; background:none; border:none; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor:pointer; }
.np-disclose:hover { color: var(--ink); }
.np-disclose__caret { display:inline-block; font-size: 10px; color: var(--ink-3); transition: transform .15s; }
.np-disclose.open .np-disclose__caret { transform: rotate(90deg); }
.np-adv { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); animation: npAdvIn .16s ease; }
@keyframes npAdvIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* context menu */
.menu { position: fixed; z-index: 102; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 7px; min-width: 196px; animation: pop .12s ease; }
.menu__group { padding: 4px; }
.menu__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 4px 8px 6px; font-weight: 700;}
.menu__item { display:flex; align-items:center; gap: 10px; width:100%; text-align:left; padding: 8px 9px; border-radius: 8px; font-size: 13px; color: var(--ink); font-weight: 500; }
.menu__item:hover { background: var(--surface-2); }
.menu__item.danger { color: var(--accent); }
.menu__item svg { width: 16px; height: 16px; opacity:.75; }
.menu__sep { height:1px; background: var(--line); margin: 5px 2px; }
.swatches { display:grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 4px 6px 6px; }
.swatch { width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgba(0,0,0,.12); cursor:pointer; transition: transform .1s; }
.swatch:hover { transform: scale(1.12); }
.swatch.sel { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px #fff; }
.statusrow { display:flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 4px; }
.statuspill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; cursor:pointer; border: 1px solid transparent; }
.statuspill.sel { outline: 2px solid var(--accent); outline-offset: 1px; }

/* command palette */
.palette { position: fixed; z-index: 103; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, 92vw); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow:hidden; animation: popPal .16s ease; }
@keyframes popPal { from { opacity:0; transform: translateX(-50%) translateY(10px) scale(.98); } to { opacity:1; transform: translateX(-50%); } }
.palette__in { display:flex; align-items:center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.palette__in input { flex:1; border:none; outline:none; font-size: 16px; background: transparent; color: var(--ink); }
.palette__list { max-height: 56vh; overflow:auto; padding: 8px; }
.palette__item { display:flex; align-items:center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor:pointer; font-size: 14px; }
.palette__item .pk { margin-left:auto; font-size: 11px; color: var(--ink-3);}
.palette__item.active { background: var(--accent-soft); }
.palette__item .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display:grid; place-items:center; color: var(--ink-2); flex:none;}
.palette__item small { display:block; color: var(--ink-3); font-size: 11.5px; }

/* inline card editor */
.editor { position: fixed; z-index: 104; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 420px; animation: pop .16s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.editor__strip { height: 6px; background: var(--card-strip, var(--accent)); }
.editor__b { padding: 16px 18px; }
.editor__title { width:100%; border:none; outline:none; font-size: calc(16px * var(--ts, 1)); font-weight: 700; color: var(--ink); background: transparent; margin-bottom: 6px; }
.editor__title::placeholder { color: var(--ink-3); }
.editor__text { width:100%; border:none; outline:none; resize: none; font-size: calc(14px * var(--bs, 1)); line-height: 1.55; color: var(--ink-2); background: transparent; min-height: 120px; }
.editor__sizes { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.szgroup { display: flex; align-items: center; gap: 4px; }
.szlabel { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.szbtn { width: 26px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.szbtn:hover { background: var(--surface-2); color: var(--ink); }
.szval { font-size: 11px; font-weight: 700; color: var(--ink-2); min-width: 36px; text-align: center; }
.szicon { width: 26px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.szicon:hover { background: var(--surface-2); color: var(--ink); }
.szicon svg { width: 14px; height: 14px; }
.szapply { margin-left: auto; height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.szapply:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.editor__bar { display:flex; align-items:center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.editor__bar .iconbtn { width: 32px; height: 32px; }
.editor__bar .iconbtn svg { width:16px; height:16px; }
.editor__bar .grow { flex:1; }

/* AI panel */
.ai-result { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--surface-2); }
.ai-beat { display:flex; gap: 10px; align-items:flex-start; padding: 9px; border-radius: 9px; background: var(--surface); border:1px solid var(--line); margin-bottom: 8px; }
.ai-beat__act { font-size: 10.5px; font-weight:700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 20px; white-space:nowrap; }
.ai-beat__txt b { display:block; font-size: 13px; margin-bottom:2px;}
.ai-beat__txt span { font-size: 12.5px; color: var(--ink-2); }
.spinner { width: 16px; height:16px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* empty / first run */
.empty { position: relative; display:grid; place-items:center; min-height: 100vh; text-align:center; overflow: hidden;
  background-color: #fdc97e;
  background-image:
    radial-gradient(ellipse 60% 52% at 50% 44%, rgba(255,240,210,0.65) 0%, rgba(255,234,196,0.32) 45%, rgba(255,234,196,0) 75%),
    url('./cartoon-cork-light15.jpg');
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  box-shadow: inset 0 0 160px rgba(0,0,0,0.13);
}
.empty::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2;
  border: 44px solid transparent;
  border-image: url('./cb-with-frame.jpg') 51 stretch;
}
.empty__in { position: relative; z-index: 4; max-width: 560px; }
.empty__decor { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.empty__card { position: absolute; width: 148px; height: 100px; border-radius: 4px; background: #faf6ec;
  border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 14px 26px -8px rgba(20,12,4,0.45); }
.empty__card::before { content:''; position:absolute; left:12px; right:12px; top:26px; height:1px;
  background: rgba(120,140,170,0.35);
  box-shadow: 0 16px 0 rgba(120,140,170,0.22), 0 32px 0 rgba(120,140,170,0.22), 0 48px 0 rgba(120,140,170,0.22); }
.empty__card--tint-mint { background: #edf5ea; }
.empty__card--tint-blush { background: #fbeeea; }
.empty__pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 5px 8px rgba(20,12,4,0.5); }
.empty__pin::after { content:''; position:absolute; top:4px; left:5px; width:5px; height:5px;
  border-radius:50%; background: rgba(255,255,255,0.65); }
.empty__pin--red { background: radial-gradient(circle at 32% 28%, #ff7a68, #c0342a 72%); }
.empty__pin--blue { background: radial-gradient(circle at 32% 28%, #6fa8ea, #2a5fa8 72%); }
.empty__pin--green { background: radial-gradient(circle at 32% 28%, #7fd695, #2f8f52 72%); }
.empty__pin--yellow { background: radial-gradient(circle at 32% 28%, #ffe08a, #d19b1f 72%); }
.empty__pin--purple { background: radial-gradient(circle at 32% 28%, #c6a3ec, #7c4fc4 72%); }
.empty__card--1 { top: 8%;  left: 6%;  transform: rotate(-9deg); }
.empty__card--2 { bottom: 12%; left: 4%;  transform: rotate(7deg); }
.empty__card--3 { top: 10%; right: 6%; transform: rotate(8deg); }
.empty__card--4 { bottom: 14%; right: 8%; transform: rotate(-6deg); }
.empty__card--5 { top: 42%; left: 1%;  transform: rotate(-3deg) scale(0.82); }
.empty__card--6 { top: 40%; right: 0%; transform: rotate(4deg) scale(0.82); }
/* phones: corner cards only, smaller and tucked to the edges clear of the form;
   hidden entirely on short viewports (landscape phones) where they'd crowd the content */
@media (max-width: 720px) { .empty__card { display: none; } }
@media (max-width: 720px) and (min-height: 620px) {
  .empty__card--1, .empty__card--2, .empty__card--3, .empty__card--4 { display: block; }
  .empty__card--1 { top: 2.5%; left: -34px; transform: rotate(-9deg) scale(.72); }
  .empty__card--3 { top: 3.5%; right: -38px; transform: rotate(8deg) scale(.72); }
  .empty__card--2 { bottom: 3%; left: -30px; transform: rotate(7deg) scale(.72); }
  .empty__card--4 { bottom: 4%; right: -34px; transform: rotate(-6deg) scale(.72); }
}
.empty__art { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 28px; background: linear-gradient(135deg, var(--accent-soft), #fff); display:grid; place-items:center; box-shadow: 0 16px 32px -10px rgba(20,12,4,0.4);}
.empty__art svg { width: 84px; height:84px; color: var(--accent); }
.empty h1 { font-family: var(--display); font-size: 46px; margin: 0 0 12px; color: #241708; }
.empty p { color: #33240f; font-size: 17.5px; line-height: 1.6; margin: 0 0 24px; }

/* ===== Auth screen ===== */
.auth-card { max-width: 380px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 6px; }
.auth-form .field { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.auth-error { background: #fdecea; color: #b03c29; font-size: 13px; padding: 9px 12px; border-radius: 8px; border: 1px solid #f4c6bd; }
.auth-switch { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; margin-bottom: 0; }
.linklike { background: none; border: none; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ===== Save status pill ===== */
.savepill { position: fixed; right: 18px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 30px; box-shadow: var(--shadow-sm); }
.savepill svg { width: 13px; height: 13px; }
.savepill--ok { color: #2f8f5b; }
.savepill--ok svg { color: #2f8f5b; }
.savepill--err { color: #b03c29; }

/* peace-of-mind save hint, bottom-left (mirrors the bottom-right "Saved" pill) */
.savehint { position: fixed; left: 18px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong);
  padding: 6px 12px 6px 8px; border-radius: 30px; box-shadow: var(--shadow-md); pointer-events: none;
  max-width: min(60vw, 340px); }
.savehint .kbd { font-size: 11px; }
@media (max-width: 640px) { .savehint { display: none; } }
/* in-sidebar shortcut hints (like inkly): muted, sit under the rail footer on the dark rail */
.rail__savehint { margin: 2px 6px 2px; padding: 10px 8px 4px; border-top: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 6px; }
.rail__hint { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.4; color: #7f8089; }
.rail__hint .kbd { flex: none; font-size: 10.5px; color: #c8c9d0; background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16); }
.rail__betahint { display: block; margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.rail__betahint a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ===== Home / projects list ===== */
.home { height: 100vh; overflow: auto; }
.home__in { max-width: 1080px; margin: 0 auto; padding: 52px 32px; }
.home__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.home__brand { display: flex; align-items: center; gap: 14px; }
.home__brand .rail__logo { width: 46px; height: 46px; border-radius: 13px; }
.home__brand .rail__logo svg { width: 32px; height: 32px; }
.home__brand h1 { font-family: var(--display); font-size: 28px; margin: 0; }
.home__brand p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.home__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(284px, 1fr)); gap: 18px; }
.projcard { position: relative; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .14s, transform .12s, border-color .12s; text-align: left; }
.projcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.projcard__thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--accent-soft), #fff); display: grid; place-items: center; color: var(--accent); }
.projcard__thumb svg { width: 36px; height: 36px; }
.projcard__body { min-width: 0; flex: 1; }
.projcard__title { font-weight: 700; font-size: 15px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projcard__meta { font-size: 12.5px; color: var(--ink-2); }
.projcard__date { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.projcard__tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s;
  background: var(--surface); border-radius: 8px; box-shadow: -10px 0 8px -2px var(--surface); }
.projcard:hover .projcard__tools { opacity: 1; }
.projcard__tool { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); background: var(--surface); transition: background .12s, color .12s; }
.projcard__tool:hover { background: var(--surface-2); color: var(--ink); }
.projcard__tool.danger:hover { background: var(--accent-soft); color: var(--accent); }
.projcard__tool svg { width: 15px; height: 15px; }
.projnew { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 92px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-3); font-size: 13.5px; font-weight: 600; background: transparent; transition: border-color .12s, color .12s; }
.projnew:hover { border-color: var(--accent); color: var(--accent); }
.projnew__plus { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }

/* rail brand + project block become clickable (go home) */
.rail__brand { width: 100%; text-align: left; }
.rail__brand:hover { background: rgba(255,255,255,.05); border-radius: 10px; }
.rail__proj { width: 100%; text-align: left; cursor: pointer; transition: background .12s; }
.rail__proj:hover { background: rgba(255,255,255,.09); }
.rail__proj-sub { display: flex; align-items: center; gap: 3px; }
.rail__proj-sub svg { width: 13px; height: 13px; opacity: .7; margin-left: -2px; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slidein .2s ease; display:flex; align-items:center; gap: 10px; }
.toast .ok { color: #7ee6ad; }

/* ===== Selection toolbar (appears when cards are multi-selected) ===== */
.selbar { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; padding: 8px 10px 8px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); animation: slidein .16s ease; }
.selbar__count { font-size: 13px; font-weight: 600; white-space: nowrap; margin-right: 4px; }
.selbar__sep { width: 1px; height: 18px; background: rgba(255,255,255,.18); }
.selbar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); transition: background .12s; }
.selbar__btn:hover { background: rgba(255,255,255,.18); }
.selbar__btn.danger:hover { background: rgba(255,90,70,.35); }
.selbar__btn svg { width: 14px; height: 14px; }

.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height:1.5; }
.tag-soft { font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--surface-3); padding: 2px 8px; border-radius: 20px;}
.changelog { max-width: 720px; }
.cl-item { display:flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cl-item .t { color: var(--ink-3); font-size: 12px; white-space: nowrap; width: 86px; flex:none;}
.cl-item .d { color: var(--ink); }

/* ===== Board background modes: Clean / Default (whisper cork) / Theme (full cork) ===== */
body.bg-default .board, body.bg-default .home {
  background-color: #f7f1e5;
  background-image: url('./cartoon-cork-cream05.jpg');
  background-repeat: repeat;
  background-position: center;
}
body.bg-theme .board, body.bg-theme .home {
  background-color: #a58352;
  background-image: url('./cartoon-cork-dark75.jpg');
  background-repeat: repeat;
  background-position: center;
}
body.bg-theme .board-head h2, body.bg-theme .lane__label { color: #2b1c0a; }
body.bg-theme .board-head .muted, body.bg-theme .lane__count, body.bg-theme .lane__empty,
body.bg-theme .hint, body.bg-theme .cl-item .t { color: #5f4527; }
body.bg-theme .lane__rule { background: rgba(62,42,16,.28); }
body.bg-theme .lane__tag { background: rgba(255,238,220,.85); }
body.bg-theme .addcard, body.bg-theme .eprow--add { border-color: rgba(62,42,16,.45); color: #4e3a20; }
body.bg-theme .addcard:hover, body.bg-theme .eprow--add:hover { border-color: var(--accent); color: var(--accent); }
body.bg-theme .addcard:hover { background: rgba(255,240,224,.55); }
body.bg-theme .scrap { background-image: radial-gradient(rgba(52,34,13,.30) 1px, transparent 1px); }
body.bg-theme .cl-item { border-bottom-color: rgba(62,42,16,.25); }
body.bg-theme .cl-item .d { color: #241708; }
body.bg-theme .projnew { border-color: rgba(62,42,16,.45); color: #4e3a20; }
body.bg-theme .projnew:hover { border-color: var(--accent); color: var(--accent); }
body.bg-theme .home__brand p { color: #4e3a20; }
/* red selection ring is hard to read on dark cork — use white there */
body.bg-theme .card.selected { outline-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35), var(--shadow-md); }
body.bg-theme .minicard.selected { outline-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }

/* ===== Topbar responsive: JS overflow manager (layoutTopbar in main.js) hides
   controls in priority order only when the bar is actually crowded ===== */
.tb-hidden { display: none !important; }

/* background-mode toggle rendered as color swatches */
.seg--bg button { padding: 5px 8px; }
.bgswatch { width: 16px; height: 16px; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,.18); }

/* ===== Card stacks (cascade: buried cards peek out behind the top card) ===== */
.stack { position: relative; flex: none; display: flex; scroll-snap-align: start;
  /* reserve room for the fan so peeks never overflow the lane (which would add a scrollbar / clip them) */
  margin-right: calc(12px + var(--n, 0) * 8px);
  padding-bottom: calc(var(--n, 0) * 5px); }
.stack > .card { position: relative; z-index: 3; margin: 0; }
.ep-grid .stack { height: 100%; min-height: 0; }
.stack__peek { position: absolute; inset: 0 0 calc(var(--n, 0) * 5px) 0; z-index: 1; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translate(calc(var(--k) * 8px), calc(var(--k) * 3px)) rotate(calc(var(--k) * 0.5deg));
  transform-origin: bottom left; }
.stack:hover > .card { transform: translateY(-2px); }
.card__stackn { position: absolute; top: 7px; right: 8px; z-index: 2; min-width: 22px; height: 20px; border-radius: 20px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; }
.card__stackn:hover { background: var(--accent); }
.card.stack-target { outline: 2px dashed var(--accent); outline-offset: 3px; transform: scale(.98); }
body.bg-theme .card.stack-target { outline-color: #fff; }

/* ===== Home: drag-to-reorder projects ===== */
.projghost { border: 1.5px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); opacity: .5; }
.projcard.row-dragging { opacity: .35; }

/* ===== Multi-line act names ===== */
textarea.eprow__name { resize: none; overflow: hidden; display: block; line-height: 1.14; field-sizing: content; }

/* keyboard hint chip inside the red primary button */
.btn--primary .kbd { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }

/* pile foot: unstack button sits beside the kebab */
.card__unstack { margin-left: auto; }
.card__unstack + .card__menu { margin-left: 0; }

/* ===== Beta tag & feedback (remove when out of beta) ===== */
.beta-sup { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--accent); vertical-align: super; margin-left: 7px; }
.beta-note { margin-top: 14px; font-size: 13px; color: #4e3a20; }
.beta-note a { color: var(--accent); font-weight: 600; }
.auth-forgot { margin-top: 8px; font-size: 13px; }
.auth-forgot .linklike { color: var(--ink-2); }
.auth-forgot-help { margin: 10px auto 0; font-size: 13px; color: #4e3a20; max-width: 400px; line-height: 1.5; }
.auth-forgot-help a { color: var(--accent); font-weight: 600; }
.rail__brandrow { display: flex; align-items: center; width: 100%; }
.rail__brandrow .rail__brand { width: auto; flex: 0 1 auto; min-width: 0; }
.beta-pill { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1.5;
  color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 20px; text-decoration: none;
  margin: 0 4px 6px 0; }
.beta-pill:hover { background: #b03c29; }
/* Visible "Hide" affordance ON the rail (Andy: nobody found the topbar toggle) */
.rail__hide { flex: none; display: flex; align-items: center; gap: 5px; padding: 4px 8px;
  border: none; border-radius: 8px; background: rgba(255,255,255,.06); color: #b5b6be;
  font-size: 11px; font-weight: 600; cursor: pointer; margin: 0 0 6px auto;
  transition: color .12s, background .12s; }
.rail__hide:hover { color: #fff; background: rgba(255,255,255,.12); }
.rail__hide svg { width: 14px; height: 14px; }
a.navitem { text-decoration: none; color: inherit; }

/* project cards drag like notecards: grab-hand cursor, lifted while moving */
.projcard { cursor: grab; }
.projcard:active { cursor: grabbing; }

/* floating drag clone must stay fixed even for elements whose own rule sets position (.projcard) */
.projcard.card-floating { position: fixed; }

/* the ⌥N chip matches the grey of the plus square, on every theme */
.projnew .kbd { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-3); }
