:root {
  color-scheme: dark;
  --space-900: #0b0f1a;
  --space-800: #11182b;
  --space-700: #16203a;
  --space-600: #1e2a4a;
  --space-500: #2a3a5c;
  --glow: #6f7d95;
  --pulse: #7f8da7;
  --accent: #465a78;
  --accent-2: #33435b;
  --text: #eef3ff;
  --muted: #9aa8c2;
  --shadow: 0 24px 60px rgba(7, 10, 20, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --hub-gray-1: #171a20;
  --hub-gray-2: #12151b;
  --hub-gray-border: rgba(255, 255, 255, 0.14);
  --btn-primary-1: #3e4b5f;
  --btn-primary-2: #2f3b4e;
  --btn-primary-text: #e8edf8;
  --warm-orange: #8d98ae;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top, #0e1324 0%, #0a0f1d 55%, #070b14 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  --water-flow-primary: rgba(136, 212, 224, 0.17);
  --water-flow-secondary: rgba(168, 237, 232, 0.23);
  --water-flow-shine: rgba(196, 244, 236, 0.2);
  --water-flow-back-opacity: 0.42;
  --water-flow-front-opacity: 0.56;
}

body.theme-space {
  background-image: radial-gradient(circle at top, #101a33 0%, #0b1222 55%, #070b14 100%);
}

body.theme-ocean {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><defs><linearGradient id='sky' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%23080b17'/><stop offset='60%' stop-color='%230c1327'/><stop offset='100%' stop-color='%23060b16'/></linearGradient><linearGradient id='sea' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%2312263f'/><stop offset='100%' stop-color='%230a162a'/></linearGradient></defs><rect width='1200' height='800' fill='url(%23sky)'/><circle cx='900' cy='170' r='90' fill='%23f7d48f' opacity='0.9'/><ellipse cx='900' cy='310' rx='160' ry='26' fill='%23f7d48f' opacity='0.2'/><rect x='0' y='360' width='1200' height='440' fill='url(%23sea)'/><path d='M0 430 C120 420 220 450 340 440 C460 430 560 470 680 455 C820 435 920 450 1040 465 C1120 475 1180 470 1200 465 L1200 800 L0 800 Z' fill='%231b3658' opacity='0.85'/><path d='M0 500 C140 490 260 515 380 505 C520 493 640 530 780 520 C920 510 1060 540 1200 528 L1200 800 L0 800 Z' fill='%23152845' opacity='0.8'/><path d='M0 560 C160 550 280 575 420 565 C560 555 700 590 840 580 C980 570 1100 595 1200 585 L1200 800 L0 800 Z' fill='%23111f39' opacity='0.88'/></svg>");
  background-size: cover;
  background-position: center bottom;
}

body.theme-neon {
  --glow: #ce7fff;
  --pulse: #a35cff;
  --accent: #b561ff;
  --accent-2: #6424ca;
  --text: #f0e9ff;
  --muted: #bda3d8;
  --btn-primary-1: #8f39ff;
  --btn-primary-2: #6125c0;
  --btn-primary-text: #f6eeff;
  background-image: radial-gradient(circle at 12% 18%, rgba(158, 77, 255, 0.26), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(104, 42, 224, 0.24), transparent 44%),
    radial-gradient(circle at top, #08060d 0%, #06050b 54%, #040307 100%);
}

body.theme-moonlight {
  --glow: #9cb6ea;
  --pulse: #7f95c7;
  --accent: #7892c6;
  --accent-2: #4f648f;
  --text: #edf3ff;
  --muted: #adbbd7;
  --btn-primary-1: #6f86b8;
  --btn-primary-2: #4e638f;
  --btn-primary-text: #eff4ff;
  --water-flow-primary: rgba(102, 147, 208, 0.15);
  --water-flow-secondary: rgba(148, 194, 241, 0.2);
  --water-flow-shine: rgba(172, 207, 244, 0.19);
  background-image: radial-gradient(circle at 16% 18%, rgba(111, 132, 186, 0.16), transparent 44%),
    radial-gradient(circle at 82% 12%, rgba(80, 102, 157, 0.15), transparent 48%),
    linear-gradient(165deg, #070d1a 0%, #090f1c 50%, #050913 100%);
}

body.theme-wave {
  --glow: #8fc7d8;
  --pulse: #70adbe;
  --accent: #5ca8c1;
  --accent-2: #2f708a;
  --text: #edfbff;
  --muted: #a7c8d5;
  --btn-primary-1: #4d9bb5;
  --btn-primary-2: #2f738d;
  --btn-primary-text: #eefbff;
  background-image: radial-gradient(circle at 14% 20%, rgba(98, 170, 191, 0.24), transparent 46%),
    radial-gradient(circle at 85% 15%, rgba(60, 115, 151, 0.22), transparent 45%),
    linear-gradient(165deg, #08121c 0%, #0a1b2a 55%, #08141f 100%);
}

body.theme-bubble {
  --glow: #a5d8ff;
  --pulse: #88bee6;
  --accent: #7ec2f4;
  --accent-2: #3e79b0;
  --text: #f0f8ff;
  --muted: #abc4da;
  --btn-primary-1: #79bae3;
  --btn-primary-2: #4d8fbe;
  --btn-primary-text: #f4fbff;
  background-image: radial-gradient(circle at 14% 22%, rgba(167, 218, 255, 0.27), transparent 36%),
    radial-gradient(circle at 74% 14%, rgba(124, 188, 240, 0.22), transparent 33%),
    radial-gradient(circle at 88% 72%, rgba(118, 172, 226, 0.18), transparent 38%),
    linear-gradient(160deg, #0a1523 0%, #0c1c2e 56%, #091523 100%);
}

body.theme-koala {
  color-scheme: light;
  --glow: #96c0e4;
  --pulse: #77a7d3;
  --accent: #75a7d2;
  --accent-2: #5988b8;
  --text: #1f3a53;
  --muted: #5a7795;
  --btn-primary-1: #78abd8;
  --btn-primary-2: #588dbf;
  --btn-primary-text: #f6fbff;
  --hub-gray-border: rgba(108, 150, 192, 0.24);
  --water-flow-primary: rgba(118, 173, 218, 0.19);
  --water-flow-secondary: rgba(160, 205, 239, 0.24);
  --water-flow-shine: rgba(198, 225, 246, 0.24);
  background-image: radial-gradient(circle at 12% 14%, rgba(164, 205, 240, 0.78), transparent 54%),
    radial-gradient(circle at 86% 12%, rgba(137, 187, 230, 0.66), transparent 52%),
    radial-gradient(circle at 64% 76%, rgba(172, 211, 242, 0.56), transparent 58%),
    linear-gradient(166deg, #f3f8ff 0%, #e4effb 48%, #d4e4f5 100%);
}

body.theme-slate {
  --glow: #bcc5d2;
  --pulse: #9ea8b8;
  --accent: #8f9daf;
  --accent-2: #5d6a7b;
  --text: #f1f4f8;
  --muted: #b6bfcb;
  --btn-primary-1: #7f8b9c;
  --btn-primary-2: #5b6878;
  --btn-primary-text: #f0f4fa;
  background-image: radial-gradient(circle at 16% 18%, rgba(145, 158, 177, 0.2), transparent 44%),
    radial-gradient(circle at 86% 14%, rgba(99, 109, 126, 0.2), transparent 42%),
    linear-gradient(165deg, #10151f 0%, #121923 55%, #0d131c 100%);
}

body.theme-sage {
  --glow: #b7d5c0;
  --pulse: #99b8a5;
  --accent: #84b39a;
  --accent-2: #4f7b65;
  --text: #eef8f2;
  --muted: #aac6b4;
  --btn-primary-1: #78a78e;
  --btn-primary-2: #4f795f;
  --btn-primary-text: #f0fbf5;
  background-image: radial-gradient(circle at 18% 18%, rgba(137, 184, 156, 0.22), transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(93, 141, 116, 0.2), transparent 42%),
    linear-gradient(168deg, #0c1613 0%, #12201a 54%, #0c1712 100%);
}

body.theme-dawn {
  --glow: #e8c6a6;
  --pulse: #d8ae87;
  --accent: #c89467;
  --accent-2: #8c6040;
  --text: #fff4ea;
  --muted: #d9bea6;
  --btn-primary-1: #bd8a5e;
  --btn-primary-2: #866043;
  --btn-primary-text: #fff8f2;
  background-image: radial-gradient(circle at 18% 17%, rgba(237, 190, 146, 0.22), transparent 42%),
    radial-gradient(circle at 84% 16%, rgba(212, 153, 115, 0.2), transparent 43%),
    linear-gradient(165deg, #17110d 0%, #211711 56%, #160f0a 100%);
}

body.theme-rose {
  --glow: #e2b5c8;
  --pulse: #cb95a8;
  --accent: #b98398;
  --accent-2: #7d5163;
  --text: #fff0f5;
  --muted: #d6b4c0;
  --btn-primary-1: #ad768a;
  --btn-primary-2: #754d5d;
  --btn-primary-text: #fff5f9;
  background-image: radial-gradient(circle at 16% 20%, rgba(225, 164, 196, 0.22), transparent 43%),
    radial-gradient(circle at 82% 14%, rgba(182, 126, 156, 0.2), transparent 42%),
    linear-gradient(165deg, #180f15 0%, #21131c 55%, #150c12 100%);
}

body.theme-glow {
  --glow: #98d0f4;
  --pulse: #6eaad4;
  --accent: #5e97bf;
  --accent-2: #3f6f91;
  --text: #e8f5ff;
  --muted: #90a9bd;
  --btn-primary-1: #4f7fa3;
  --btn-primary-2: #355a78;
  --btn-primary-text: #ebf6ff;
  --hub-gray-border: rgba(118, 164, 197, 0.2);
  --water-flow-primary: rgba(88, 132, 164, 0.18);
  --water-flow-secondary: rgba(104, 151, 188, 0.18);
  --water-flow-shine: rgba(185, 220, 246, 0.12);
  background-color: #000000;
  background-image: none;
}

body.theme-sunset {
  --glow: #ffbe88;
  --pulse: #f39666;
  --accent: #f28b5f;
  --accent-2: #bf4d3a;
  --text: #fff2e5;
  --muted: #e2bda7;
  --btn-primary-1: #f18d5f;
  --btn-primary-2: #c14e39;
  --btn-primary-text: #fff9f3;
  --water-flow-primary: rgba(214, 129, 94, 0.21);
  --water-flow-secondary: rgba(255, 173, 134, 0.24);
  --water-flow-shine: rgba(255, 210, 170, 0.2);
  background-image: radial-gradient(circle at 18% 18%, rgba(255, 157, 95, 0.26), transparent 42%),
    radial-gradient(circle at 84% 14%, rgba(223, 99, 76, 0.24), transparent 45%),
    linear-gradient(165deg, #221327 0%, #2a1a2f 42%, #2d2229 66%, #1b1f35 100%);
}

body.theme-professional {
  color-scheme: light;
  --glow: #c8d1dc;
  --pulse: #b8c2cf;
  --accent: #6f7b88;
  --accent-2: #4e5a67;
  --text: #1f2730;
  --muted: #5a6776;
  --btn-primary-1: #5e6875;
  --btn-primary-2: #454f5a;
  --btn-primary-text: #f8f9fb;
  --hub-gray-border: rgba(129, 140, 151, 0.26);
  --water-flow-back-opacity: 0;
  --water-flow-front-opacity: 0;
  background-image: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 60%, #eef2f6 100%);
}

body.theme-dark {
  --glow: #6f7987;
  --pulse: #596272;
  --accent: #5e6776;
  --accent-2: #3e4653;
  --text: #f4f6fa;
  --muted: #9ca6b7;
  --btn-primary-1: #4f5865;
  --btn-primary-2: #3a424d;
  --btn-primary-text: #f3f6fb;
  --water-flow-back-opacity: 0;
  --water-flow-front-opacity: 0;
  background-image: radial-gradient(circle at 15% 15%, rgba(92, 104, 124, 0.18), transparent 48%),
    radial-gradient(circle at 84% 12%, rgba(70, 81, 95, 0.16), transparent 50%),
    linear-gradient(165deg, #050608 0%, #0b0d12 56%, #040507 100%);
}

body.theme-tropical {
  --glow: #8ee1d0;
  --pulse: #63c8bc;
  --accent: #40b9ac;
  --accent-2: #1e7f79;
  --text: #ebfff8;
  --muted: #a8ddd2;
  --btn-primary-1: #34b7a7;
  --btn-primary-2: #1c8179;
  --btn-primary-text: #ecfffb;
  --water-flow-primary: rgba(103, 230, 205, 0.2);
  --water-flow-secondary: rgba(136, 243, 223, 0.25);
  --water-flow-shine: rgba(197, 249, 234, 0.24);
  background-image: radial-gradient(circle at 12% 14%, rgba(77, 200, 182, 0.28), transparent 46%),
    radial-gradient(circle at 82% 18%, rgba(57, 141, 189, 0.24), transparent 44%),
    linear-gradient(165deg, #071a27 0%, #0a2a36 48%, #0b3028 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

body.modal-open {
  overflow: hidden;
}

.ocean-scene {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'><defs><linearGradient id='sky' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%230c1024'/><stop offset='55%' stop-color='%23121b33'/><stop offset='100%' stop-color='%230b1324'/></linearGradient><linearGradient id='sea' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%23162d4a'/><stop offset='100%' stop-color='%230e1b32'/></linearGradient></defs><rect width='1200' height='800' fill='url(%23sky)'/><circle cx='920' cy='160' r='90' fill='%23f7d48f' opacity='0.9'/><rect x='0' y='360' width='1200' height='440' fill='url(%23sea)'/><path d='M0 430 C120 420 220 450 340 440 C460 430 560 470 680 455 C820 435 920 450 1040 465 C1120 475 1180 470 1200 465 L1200 800 L0 800 Z' fill='%231b3658' opacity='0.8'/><path d='M0 500 C140 490 260 515 380 505 C520 493 640 530 780 520 C920 510 1060 540 1200 528 L1200 800 L0 800 Z' fill='%23152845' opacity='0.75'/><path d='M0 560 C160 550 280 575 420 565 C560 555 700 590 840 580 C980 570 1100 595 1200 585 L1200 800 L0 800 Z' fill='%23111f39' opacity='0.85'/><g fill='%230e0f14'><path d='M240 520 l20 -80 6 0 24 80z'/><rect x='254' y='430' width='4' height='90'/><path d='M258 430 l60 -40 6 2 -62 44z'/><circle cx='318' cy='390' r='6'/></g><ellipse cx='920' cy='300' rx='140' ry='20' fill='%23f7d48f' opacity='0.18'/></svg>");
  background-size: cover;
  background-position: center bottom;
  isolation: isolate;
  overflow: hidden;
  z-index: -4;
  opacity: 0.9;
}

.ocean-scene .water-flow {
  display: none !important;
}

body.theme-moonlight .ocean-scene.ocean-scene-inline-svg {
  background-image: none;
  background-color: #050b19;
}

body.theme-moonlight .ocean-scene.ocean-scene-inline-svg > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.nebula {
  position: fixed;
  inset: -40% -5% auto -5%;
  height: 70vh;
  background: radial-gradient(circle at 20% 35%, rgba(106, 121, 255, 0.28), transparent 55%),
    radial-gradient(circle at 60% 20%, rgba(76, 194, 194, 0.28), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(244, 201, 122, 0.22), transparent 60%);
  filter: blur(24px);
  z-index: -2;
  opacity: 0.9;
}

body.theme-ocean .nebula {
  opacity: 0.5;
  filter: blur(30px);
}

body.theme-ocean .stars {
  opacity: 0.12;
}

body.theme-space .stars {
  opacity: 0.28;
}

body.theme-neon .nebula {
  background: radial-gradient(circle at 14% 30%, rgba(180, 104, 255, 0.3), transparent 55%),
    radial-gradient(circle at 62% 22%, rgba(121, 48, 236, 0.28), transparent 55%),
    radial-gradient(circle at 82% 52%, rgba(219, 164, 255, 0.2), transparent 62%);
  opacity: 0.86;
  filter: blur(26px);
}

body.theme-neon .stars {
  background-image:
    radial-gradient(rgba(228, 194, 255, 0.38) 1px, transparent 1px),
    radial-gradient(rgba(169, 114, 255, 0.24) 1px, transparent 1px);
  opacity: 0.24;
}

body.theme-moonlight .ocean-scene {
  background-image: url("assets/backgrounds/ocean-moonlight-animated.svg?v=20260310a");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.9;
}

body.theme-glow .ocean-scene {
  background: #000000;
  opacity: 1;
}

body.theme-sunset .ocean-scene {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'><defs><linearGradient id='sky' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%2338162b'/><stop offset='36%' stop-color='%23602234'/><stop offset='66%' stop-color='%23a4433e'/><stop offset='100%' stop-color='%23252a44'/></linearGradient><linearGradient id='sea' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%23324e68'/><stop offset='100%' stop-color='%2318273a'/></linearGradient></defs><rect width='1600' height='1000' fill='url(%23sky)'/><circle cx='1240' cy='188' r='104' fill='%23ffd093' opacity='0.92'/><ellipse cx='1240' cy='328' rx='188' ry='30' fill='%23ffd093' opacity='0.24'/><rect x='0' y='686' width='1600' height='314' fill='url(%23sea)'/><path d='M0 706 C162 690 320 728 486 712 C658 696 824 732 996 716 C1166 700 1330 734 1504 722 C1546 720 1578 724 1600 724 L1600 1000 L0 1000 Z' fill='%233a6182' opacity='.82'/><path d='M0 778 C166 764 334 796 506 784 C682 772 850 806 1028 794 C1202 784 1368 814 1544 804 C1568 804 1586 806 1600 808 L1600 1000 L0 1000 Z' fill='%232e4e6c' opacity='.84'/><path d='M0 848 C176 836 348 864 524 854 C704 844 878 872 1062 862 C1238 854 1412 882 1584 874 L1600 1000 L0 1000 Z' fill='%23263e57' opacity='.88'/></svg>");
  opacity: 0.92;
}

body.theme-professional .ocean-scene {
  background-image: linear-gradient(180deg, #f6f8fb 0%, #eff2f6 64%, #e8edf3 100%);
  opacity: 0.9;
}

body.theme-dark .ocean-scene {
  background-image: linear-gradient(180deg, #07080b 0%, #0b0d12 58%, #07090d 100%);
  opacity: 0.88;
}

body.theme-tropical .ocean-scene {
  background-image: url("assets/backgrounds/ocean-tropical-animated.svg?v=20260306g");
  opacity: 0.9;
}

body.theme-moonlight .stars,
body.landing-koala.theme-moonlight .stars {
  background-image:
    radial-gradient(circle at 3% 8%, rgba(246, 250, 255, 0.88) 1.6px, transparent 2.2px),
    radial-gradient(circle at 8% 21%, rgba(229, 239, 255, 0.62) 1px, transparent 1.7px),
    radial-gradient(circle at 14% 6%, rgba(236, 246, 255, 0.78) 1.3px, transparent 2px),
    radial-gradient(circle at 19% 29%, rgba(214, 228, 250, 0.54) 0.9px, transparent 1.5px),
    radial-gradient(circle at 24% 13%, rgba(244, 250, 255, 0.82) 1.4px, transparent 2.1px),
    radial-gradient(circle at 29% 4%, rgba(224, 236, 255, 0.58) 1px, transparent 1.8px),
    radial-gradient(circle at 33% 24%, rgba(243, 249, 255, 0.8) 1.5px, transparent 2.2px),
    radial-gradient(circle at 38% 12%, rgba(217, 232, 252, 0.56) 0.9px, transparent 1.6px),
    radial-gradient(circle at 42% 31%, rgba(239, 247, 255, 0.8) 1.3px, transparent 2px),
    radial-gradient(circle at 47% 9%, rgba(245, 251, 255, 0.86) 1.7px, transparent 2.4px),
    radial-gradient(circle at 52% 19%, rgba(219, 234, 252, 0.56) 0.9px, transparent 1.5px),
    radial-gradient(circle at 57% 6%, rgba(237, 246, 255, 0.78) 1.2px, transparent 1.9px),
    radial-gradient(circle at 61% 27%, rgba(209, 225, 249, 0.52) 0.8px, transparent 1.4px),
    radial-gradient(circle at 65% 12%, rgba(241, 248, 255, 0.82) 1.4px, transparent 2.1px),
    radial-gradient(circle at 69% 3%, rgba(227, 239, 255, 0.62) 1px, transparent 1.7px),
    radial-gradient(circle at 74% 22%, rgba(244, 250, 255, 0.84) 1.6px, transparent 2.3px),
    radial-gradient(circle at 79% 10%, rgba(214, 230, 252, 0.56) 0.9px, transparent 1.6px),
    radial-gradient(circle at 83% 30%, rgba(238, 247, 255, 0.8) 1.3px, transparent 2px),
    radial-gradient(circle at 88% 16%, rgba(245, 251, 255, 0.86) 1.5px, transparent 2.2px),
    radial-gradient(circle at 93% 5%, rgba(223, 237, 255, 0.62) 1px, transparent 1.7px),
    radial-gradient(circle at 6% 36%, rgba(232, 243, 255, 0.72) 1.2px, transparent 1.9px),
    radial-gradient(circle at 14% 44%, rgba(214, 229, 251, 0.54) 0.9px, transparent 1.5px),
    radial-gradient(circle at 23% 40%, rgba(243, 249, 255, 0.78) 1.3px, transparent 2px),
    radial-gradient(circle at 31% 49%, rgba(220, 234, 252, 0.58) 1px, transparent 1.7px),
    radial-gradient(circle at 39% 37%, rgba(236, 246, 255, 0.78) 1.2px, transparent 1.9px),
    radial-gradient(circle at 49% 45%, rgba(212, 227, 249, 0.52) 0.8px, transparent 1.4px),
    radial-gradient(circle at 58% 38%, rgba(243, 249, 255, 0.8) 1.3px, transparent 2px),
    radial-gradient(circle at 67% 47%, rgba(219, 232, 251, 0.56) 0.9px, transparent 1.5px),
    radial-gradient(circle at 76% 41%, rgba(235, 245, 255, 0.76) 1.2px, transparent 1.9px),
    radial-gradient(circle at 84% 50%, rgba(214, 228, 249, 0.54) 0.8px, transparent 1.4px),
    radial-gradient(circle at 92% 35%, rgba(240, 248, 255, 0.78) 1.2px, transparent 1.9px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  opacity: 0.4;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 63%, 0 63%);
  clip-path: polygon(0 0, 100% 0, 100% 63%, 0 63%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 61%, rgba(0, 0, 0, 0) 63%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 61%, rgba(0, 0, 0, 0) 63%, rgba(0, 0, 0, 0) 100%);
}

body.theme-moonlight .nebula {
  background: radial-gradient(circle at 20% 32%, rgba(124, 149, 205, 0.24), transparent 56%),
    radial-gradient(circle at 66% 20%, rgba(101, 124, 187, 0.2), transparent 54%);
  opacity: 0.22;
  filter: blur(10px);
}

body.theme-wave .nebula {
  background: radial-gradient(circle at 20% 32%, rgba(111, 183, 205, 0.24), transparent 56%),
    radial-gradient(circle at 70% 20%, rgba(76, 140, 184, 0.2), transparent 54%);
  opacity: 0.78;
}

body.theme-bubble .nebula {
  background: radial-gradient(circle at 24% 30%, rgba(159, 221, 255, 0.24), transparent 52%),
    radial-gradient(circle at 66% 24%, rgba(136, 198, 247, 0.22), transparent 52%),
    radial-gradient(circle at 84% 48%, rgba(168, 224, 255, 0.18), transparent 55%);
  opacity: 0.82;
}

body.theme-koala .nebula {
  background: radial-gradient(circle at 24% 28%, rgba(172, 209, 239, 0.58), transparent 62%),
    radial-gradient(circle at 70% 20%, rgba(142, 186, 224, 0.46), transparent 60%),
    radial-gradient(circle at 82% 56%, rgba(184, 216, 243, 0.34), transparent 64%);
  opacity: 0.7;
  filter: blur(24px);
}

body.theme-koala .nebula::after {
  content: "";
  position: absolute;
  right: max(22px, 5vw);
  bottom: -6vh;
  width: min(300px, 28vw);
  height: min(390px, 42vh);
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 340'><g opacity='.82'><path d='M150 338 L176 338 L168 138 L144 138 Z' fill='%23a8bfd5'/><path d='M160 146 C188 112 212 94 244 82' stroke='%239bc3dd' stroke-width='14' stroke-linecap='round' fill='none'/><path d='M158 142 C132 108 106 90 74 78' stroke='%23a7cde6' stroke-width='13' stroke-linecap='round' fill='none'/><path d='M164 124 C194 108 220 104 250 106' stroke='%23b7d9ef' stroke-width='11' stroke-linecap='round' fill='none'/><path d='M152 122 C124 104 96 98 64 98' stroke='%23b6d7ee' stroke-width='11' stroke-linecap='round' fill='none'/></g><g transform='translate(108 120)' opacity='.8'><ellipse cx='24' cy='16' rx='12' ry='10' fill='%23d4e0ee'/><ellipse cx='48' cy='16' rx='12' ry='10' fill='%23d4e0ee'/><circle cx='36' cy='24' r='18' fill='%23e2ebf6'/><circle cx='30' cy='22' r='2' fill='%2368829f'/><circle cx='42' cy='22' r='2' fill='%2368829f'/><ellipse cx='36' cy='29' rx='4.5' ry='3.5' fill='%2368829f'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
}

body.theme-glow .nebula {
  background: radial-gradient(circle at 24% 28%, rgba(126, 177, 214, 0.26), transparent 62%),
    radial-gradient(circle at 72% 20%, rgba(104, 154, 193, 0.22), transparent 60%),
    radial-gradient(circle at 84% 56%, rgba(149, 194, 228, 0.18), transparent 64%);
  opacity: 0.56;
  filter: blur(24px);
}

body.theme-professional .nebula {
  background: radial-gradient(circle at 18% 24%, rgba(204, 213, 225, 0.24), transparent 56%),
    radial-gradient(circle at 72% 16%, rgba(179, 190, 204, 0.2), transparent 52%);
  opacity: 0.34;
  filter: blur(26px);
}

body.theme-dark .nebula {
  background: radial-gradient(circle at 24% 30%, rgba(106, 117, 136, 0.22), transparent 56%),
    radial-gradient(circle at 72% 24%, rgba(78, 87, 102, 0.18), transparent 58%);
  opacity: 0.5;
  filter: blur(30px);
}

body.theme-sunset .nebula {
  background: radial-gradient(circle at 22% 26%, rgba(248, 148, 99, 0.3), transparent 56%),
    radial-gradient(circle at 74% 18%, rgba(209, 93, 95, 0.25), transparent 58%);
  opacity: 0.6;
  filter: blur(26px);
}

body.theme-tropical .nebula {
  background: radial-gradient(ellipse 34% 20% at 24% 24%, rgba(86, 205, 184, 0.24), transparent 74%),
    radial-gradient(ellipse 38% 22% at 74% 18%, rgba(66, 154, 210, 0.2), transparent 76%);
  opacity: 0.54;
  filter: blur(24px);
}

body.theme-slate .nebula,
body.theme-sage .nebula,
body.theme-dawn .nebula,
body.theme-rose .nebula {
  opacity: 0.7;
  filter: blur(28px);
}

body.theme-wave .stars,
body.theme-bubble .stars,
body.theme-sage .stars {
  opacity: 0.18;
}

body.theme-dawn .stars,
body.theme-rose .stars {
  opacity: 0.14;
}

body.theme-koala .stars {
  background-image:
    radial-gradient(rgba(169, 196, 224, 0.24) 1px, transparent 1px),
    radial-gradient(rgba(209, 226, 244, 0.32) 1px, transparent 1px);
  opacity: 0.16;
}

body.theme-glow .stars {
  display: none;
  opacity: 0;
}

body.theme-glow .nebula {
  display: none;
  opacity: 0;
}

body.theme-professional .stars {
  opacity: 0.05;
  background-image: radial-gradient(rgba(177, 186, 198, 0.16) 1px, transparent 1px);
  background-size: 220px 220px;
}

body.theme-dark .stars {
  opacity: 0.1;
  background-image:
    radial-gradient(rgba(178, 186, 202, 0.22) 1px, transparent 1px),
    radial-gradient(rgba(123, 131, 148, 0.16) 1px, transparent 1px);
}

body.theme-sunset .stars {
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255, 209, 166, 0.2) 1px, transparent 1px),
    radial-gradient(rgba(232, 144, 135, 0.16) 1px, transparent 1px);
}

body.theme-tropical .stars {
  opacity: 0.14;
  background-image:
    radial-gradient(rgba(155, 231, 214, 0.24) 1px, transparent 1px),
    radial-gradient(rgba(121, 196, 234, 0.2) 1px, transparent 1px);
}

.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    radial-gradient(rgba(244, 201, 122, 0.25) 1px, transparent 1px);
  background-size: 160px 160px, 260px 260px;
  opacity: 0.22;
  z-index: -3;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 7vw;
  backdrop-filter: blur(18px);
  background: rgba(10, 14, 25, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

body.theme-neon .site-header {
  background: rgba(9, 7, 15, 0.86);
  border-bottom: 1px solid rgba(184, 106, 255, 0.26);
  box-shadow: 0 8px 26px rgba(96, 38, 176, 0.2);
}

body.theme-moonlight .site-header {
  background: rgba(14, 21, 38, 0.86);
  border-bottom: 1px solid rgba(148, 169, 218, 0.24);
  box-shadow: 0 8px 24px rgba(26, 40, 77, 0.22);
}

body.theme-wave .site-header {
  background: rgba(10, 22, 32, 0.86);
  border-bottom: 1px solid rgba(113, 178, 201, 0.24);
  box-shadow: 0 8px 24px rgba(15, 47, 64, 0.22);
}

body.theme-bubble .site-header {
  background: rgba(11, 24, 38, 0.86);
  border-bottom: 1px solid rgba(139, 198, 240, 0.24);
  box-shadow: 0 8px 24px rgba(23, 57, 88, 0.22);
}

body.theme-koala .site-header {
  background: rgba(248, 252, 255, 0.86);
  border-bottom: 1px solid rgba(150, 182, 213, 0.36);
  box-shadow: 0 8px 20px rgba(120, 152, 185, 0.16);
}

body.theme-slate .site-header {
  background: rgba(18, 24, 34, 0.88);
  border-bottom: 1px solid rgba(158, 170, 188, 0.2);
  box-shadow: 0 8px 22px rgba(20, 28, 40, 0.22);
}

body.theme-sage .site-header {
  background: rgba(15, 26, 21, 0.88);
  border-bottom: 1px solid rgba(133, 178, 154, 0.22);
  box-shadow: 0 8px 22px rgba(20, 43, 31, 0.22);
}

body.theme-dawn .site-header {
  background: rgba(29, 21, 16, 0.88);
  border-bottom: 1px solid rgba(211, 160, 120, 0.24);
  box-shadow: 0 8px 22px rgba(48, 32, 22, 0.22);
}

body.theme-rose .site-header {
  background: rgba(28, 18, 24, 0.88);
  border-bottom: 1px solid rgba(189, 141, 165, 0.22);
  box-shadow: 0 8px 22px rgba(44, 25, 37, 0.22);
}

body.theme-glow .site-header {
  background: rgba(8, 12, 18, 0.9);
  border-bottom: 1px solid rgba(118, 168, 206, 0.26);
  box-shadow: 0 10px 24px rgba(4, 9, 16, 0.34);
}

body.theme-sunset .site-header {
  background: rgba(43, 27, 41, 0.88);
  border-bottom: 1px solid rgba(232, 142, 109, 0.26);
  box-shadow: 0 8px 22px rgba(66, 30, 42, 0.3);
}

body.theme-professional .site-header {
  background: rgba(249, 251, 253, 0.9);
  border-bottom: 1px solid rgba(169, 177, 186, 0.45);
  box-shadow: 0 8px 20px rgba(152, 163, 175, 0.14);
}

body.theme-dark .site-header {
  background: rgba(10, 11, 14, 0.92);
  border-bottom: 1px solid rgba(114, 122, 138, 0.24);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
}

body.theme-tropical .site-header {
  background: rgba(8, 35, 43, 0.88);
  border-bottom: 1px solid rgba(92, 194, 178, 0.24);
  box-shadow: 0 8px 22px rgba(10, 47, 56, 0.26);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f4f6ff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(245, 249, 255, 0.28);
  box-shadow: 0 10px 26px rgba(76, 194, 194, 0.3);
}

.logo::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  transform: rotate(12deg);
  opacity: 0.75;
  pointer-events: none;
}

.logo::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 6px;
  right: 6px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #d8ecff);
  box-shadow: 0 0 10px rgba(214, 240, 255, 0.6);
  pointer-events: none;
}

body.theme-neon .logo {
  box-shadow: 0 10px 26px rgba(147, 70, 235, 0.4), 0 0 20px rgba(190, 122, 255, 0.28);
}

body.theme-neon .logo::before {
  border-color: rgba(245, 216, 255, 0.55);
}

body.theme-neon .logo::after {
  background: radial-gradient(circle at 30% 30%, #ffe9ff, #c783ff);
  box-shadow: 0 0 12px rgba(215, 147, 255, 0.7);
}

body.theme-koala .logo {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(145deg, #eef6ff, #dbeaf8);
  color: transparent;
  text-shadow: none;
  box-shadow: 0 10px 24px rgba(123, 157, 191, 0.28);
}

body.theme-koala .logo::before {
  inset: 0;
  border: none;
  transform: none;
  opacity: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><ellipse cx='19' cy='21' rx='7' ry='8.8' fill='%23cfd8e6'/><ellipse cx='45' cy='21' rx='7' ry='8.8' fill='%23cfd8e6'/><circle cx='32' cy='24' r='12' fill='%23dde6f3'/><circle cx='27.5' cy='23.5' r='1.8' fill='%23495f7b'/><circle cx='36.5' cy='23.5' r='1.8' fill='%23495f7b'/><ellipse cx='32' cy='28.6' rx='3.1' ry='2.4' fill='%23617692'/><path d='M28 31q4 3 8 0' stroke='%23617692' stroke-width='1.8' fill='none' stroke-linecap='round'/><rect x='20' y='36' width='24' height='18' rx='3' fill='%23f8fbff' stroke='%239bb9d8' stroke-width='1.5'/><path d='M25 41h14M25 45h14M25 49h9' stroke='%237c99bc' stroke-width='1.4' stroke-linecap='round'/><rect x='22.8' y='36' width='2.2' height='18' fill='%23c7d9ed'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90% 90%;
}

body.theme-koala .logo::after {
  display: none;
}

body.theme-glow .logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, #1a2736, #131d2a);
  color: #e9f6ff;
  text-shadow: 0 0 10px rgba(145, 205, 246, 0.32);
}

body.theme-glow .logo::before {
  inset: 4px;
  border: 1px solid rgba(151, 206, 244, 0.4);
  transform: rotate(11deg);
  opacity: 0.8;
  background-image: none;
}

body.theme-glow .logo::after {
  display: block;
  background: radial-gradient(circle at 30% 30%, #9ed8ff, #4f87b1);
  box-shadow: 0 0 10px rgba(124, 188, 231, 0.54);
}

body.theme-professional .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6b7682, #4f5964);
  color: #f3f5f8;
  text-shadow: none;
  box-shadow: 0 10px 22px rgba(71, 82, 93, 0.28);
}

body.theme-professional .logo::before {
  inset: 4px;
  border: 1px solid rgba(237, 241, 245, 0.44);
  transform: rotate(0deg);
  opacity: 0.7;
  background-image: none;
}

body.theme-professional .logo::after {
  display: none;
}

body.theme-dark .logo {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

body.theme-tropical .logo {
  box-shadow: 0 10px 24px rgba(28, 146, 131, 0.34);
}

.logo.logo-image {
  background: transparent;
  color: transparent;
  text-shadow: none;
}

.logo.logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.logo.logo-image::before,
.logo.logo-image::after {
  content: none;
  display: none;
}

.brand-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-header:not(.lp-header) .header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 44px;
}

.site-header:not(.lp-header) .header-actions > a,
.site-header:not(.lp-header) .header-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  min-width: 0;
  justify-content: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  font-synthesis: none;
}

.site-header:not(.lp-header) .header-actions .ghost,
.site-header:not(.lp-header) .header-actions .primary {
  padding: 11px 18px;
  font-size: 14px;
  line-height: 14px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  touch-action: manipulation;
}

.header-app-link {
  gap: 11px;
  letter-spacing: 0.01em;
}

.header-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(210, 230, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.header-action-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-action-label {
  display: inline-block;
}

@media (min-width: 1401px) {
  .site-header:not(.lp-header) .header-actions {
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(185, 214, 245, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 30px rgba(5, 10, 20, 0.16);
  }

  .site-header:not(.lp-header) .header-actions .ghost,
  .site-header:not(.lp-header) .header-actions .primary {
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(196, 220, 246, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
  }

  .site-header:not(.lp-header) .header-actions .ghost:hover,
  .site-header:not(.lp-header) .header-actions .primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(210, 229, 250, 0.22);
  }

  body.theme-koala .site-header:not(.lp-header) .header-actions,
  body.theme-professional .site-header:not(.lp-header) .header-actions {
    background: rgba(248, 252, 255, 0.55);
    border-color: rgba(122, 158, 192, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 30px rgba(92, 126, 160, 0.14);
  }

  body.theme-koala .site-header:not(.lp-header) .header-actions .ghost,
  body.theme-professional .site-header:not(.lp-header) .header-actions .ghost,
  body.theme-koala .site-header:not(.lp-header) .header-actions .primary,
  body.theme-professional .site-header:not(.lp-header) .header-actions .primary {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(126, 165, 200, 0.18);
  }
}

.site-header:not(.lp-header) .header-actions a[aria-current='page'] {
  background: rgba(134, 187, 237, 0.14);
  border-color: rgba(184, 226, 255, 0.3);
  color: #eaf7ff;
  box-shadow: 0 12px 24px rgba(39, 78, 120, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  cursor: default;
}

body:is(.theme-koala, .theme-sky, .theme-professional) .site-header:not(.lp-header) .header-actions a[aria-current='page'] {
  background: rgba(127, 163, 196, 0.18);
  border-color: rgba(109, 149, 184, 0.26);
  color: #1f3a53;
}

.site-header:not(.lp-header) .header-actions a[aria-current='page'] .header-action-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 236, 255, 0.18);
}

.site-header:not(.lp-header) .header-actions .header-settings-link {
  opacity: 0.98;
}

.site-header:not(.lp-header) .header-actions .header-settings-link:hover {
  opacity: 1;
}

.header-actions.is-navigating {
  pointer-events: none;
}

@media (max-width: 1180px) {
  .site-header:not(.lp-header) {
    gap: 16px;
  }

  .site-header:not(.lp-header) .header-actions {
    display: none;
  }

  .site-header:not(.lp-header) .nav {
    display: none;
  }

  .site-header:not(.lp-header) .menu {
    display: inline-flex;
  }

  .site-header:not(.lp-header) .header-actions .ghost,
  .site-header:not(.lp-header) .header-actions .primary {
    height: 34px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .site-header:not(.lp-header).open .nav,
  .site-header:not(.lp-header).open .header-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(10, 14, 25, 0.95);
    padding: 16px 20px;
    border-radius: 18px;
    position: absolute;
    right: 7vw;
    top: 80px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 20;
  }

  body:is(.theme-koala, .theme-sky, .theme-professional) .site-header:not(.lp-header).open .nav,
  body:is(.theme-koala, .theme-sky, .theme-professional) .site-header:not(.lp-header).open .header-actions {
    background: rgba(248, 252, 255, 0.97);
    border-color: rgba(136, 171, 206, 0.38);
    box-shadow: 0 12px 22px rgba(113, 146, 181, 0.22);
  }

  body.theme-professional .site-header:not(.lp-header).open .nav,
  body.theme-professional .site-header:not(.lp-header).open .header-actions {
    background: rgba(250, 252, 253, 0.98);
    border-color: rgba(149, 159, 171, 0.34);
    box-shadow: 0 12px 22px rgba(125, 136, 149, 0.2);
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .invoice-content {
    grid-template-columns: 1fr;
  }

  .bill-row {
    grid-template-columns: 1fr 1.2fr 0.6fr 0.8fr 1fr 0.9fr 0.8fr;
  }
}

@media (max-width: 780px) {
  .bill-row {
    grid-template-columns: 1fr 1fr;
  }

  .bill-row.bill-head {
    display: none;
  }

  .invoice-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .invoice-actions-row {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sent-row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sent-toolbar {
    align-items: flex-start;
  }

  .sent-search {
    width: 100%;
    min-width: 0;
  }

  .send-bottom-form,
  .invoice-send-inline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .dashboard-onboarding {
    grid-template-columns: 1fr;
  }

  .send-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .send-inline-actions .ghost {
    width: 100%;
    min-width: 0;
  }

  .send-inline-row-controls {
    grid-template-columns: 1fr;
  }

  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    width: 100%;
    min-width: 0;
  }

  .invoice-live-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-live-badges {
    justify-content: flex-start;
  }

  .invoice-live-meta,
  .invoice-live-columns {
    grid-template-columns: 1fr;
  }

  .item-header {
    display: none;
  }

  .item-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "desc desc"
      "rate qty"
      "amount remove";
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
  }

  .item-desc {
    grid-area: desc;
  }

  .item-rate-wrap {
    grid-area: rate;
  }

  .item-qty-wrap {
    grid-area: qty;
  }

  .item-field-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    color: rgba(209, 221, 241, 0.56);
  }

  .item-rate,
  .item-qty {
    width: 100%;
  }

  .item-amount {
    grid-area: amount;
    justify-self: start;
  }

  .item-remove {
    grid-area: remove;
    justify-self: end;
  }

  .invoice-extra-actions .ghost {
    min-width: 0;
    flex: 1 1 140px;
  }
}

.bypass {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5e6f89, #344357);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 22px rgba(6, 10, 18, 0.45);
  display: inline-block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--btn-primary-1), var(--btn-primary-2));
  color: var(--btn-primary-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(5, 8, 16, 0.42);
}

.primary:hover {
  filter: brightness(1.06);
}

body.theme-neon .primary {
  border-color: rgba(213, 161, 255, 0.45);
  box-shadow: 0 12px 26px rgba(97, 38, 186, 0.44);
}

body.theme-koala .primary {
  border-color: rgba(117, 157, 197, 0.35);
  box-shadow: 0 10px 22px rgba(94, 129, 163, 0.22);
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.theme-neon .ghost {
  border-color: rgba(190, 130, 255, 0.34);
  background: rgba(125, 68, 196, 0.16);
}

body.theme-neon .ghost:hover {
  background: rgba(137, 79, 210, 0.24);
}

body.theme-koala .ghost {
  border-color: rgba(117, 157, 197, 0.38);
  background: rgba(130, 170, 208, 0.14);
}

body.theme-koala .ghost:hover {
  background: rgba(130, 170, 208, 0.22);
}

body.theme-glow .primary {
  border-color: rgba(127, 177, 214, 0.3);
  box-shadow: 0 10px 22px rgba(8, 16, 26, 0.4);
}

body.theme-glow .ghost {
  border-color: rgba(109, 159, 196, 0.34);
  background: rgba(64, 99, 130, 0.2);
}

body.theme-glow .ghost:hover {
  background: rgba(81, 123, 160, 0.28);
}

body.theme-sunset .primary {
  border-color: rgba(255, 194, 154, 0.34);
  box-shadow: 0 12px 24px rgba(95, 34, 42, 0.34);
}

body.theme-sunset .ghost {
  border-color: rgba(238, 161, 131, 0.34);
  background: rgba(197, 95, 83, 0.18);
}

body.theme-sunset .ghost:hover {
  background: rgba(209, 109, 93, 0.24);
}

body.theme-professional .primary {
  border-color: rgba(110, 121, 134, 0.34);
  box-shadow: 0 10px 20px rgba(110, 122, 136, 0.22);
}

body.theme-professional .ghost {
  border-color: rgba(132, 143, 154, 0.34);
  background: rgba(159, 168, 178, 0.14);
}

body.theme-professional .ghost:hover {
  background: rgba(159, 168, 178, 0.22);
}

body.theme-dark .primary {
  border-color: rgba(127, 138, 154, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
}

body.theme-dark .ghost {
  border-color: rgba(103, 113, 129, 0.3);
  background: rgba(72, 80, 94, 0.18);
}

body.theme-dark .ghost:hover {
  background: rgba(83, 92, 108, 0.24);
}

body.theme-tropical .primary {
  border-color: rgba(133, 232, 214, 0.32);
  box-shadow: 0 12px 24px rgba(16, 94, 86, 0.36);
}

body.theme-tropical .ghost {
  border-color: rgba(109, 214, 196, 0.3);
  background: rgba(47, 137, 125, 0.2);
}

body.theme-tropical .ghost:hover {
  background: rgba(59, 161, 147, 0.28);
}

.menu {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
}

@media (max-width: 1180px) {
  .site-header:not(.lp-header) .menu {
    display: inline-flex;
  }
}

.menu span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

body:is(.theme-koala, .theme-sky, .theme-professional) .menu {
  background: rgba(137, 170, 201, 0.16);
  border-color: rgba(118, 154, 187, 0.36);
}

main {
  padding: 60px 7vw 120px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.dashboard {
  gap: 72px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  padding: 40px 7vw 120px;
}

.dashboard-shell.no-sidebar {
  grid-template-columns: 1fr;
}

.dashboard-shell .dashboard {
  padding: 0;
}

.sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 24px;
  background: linear-gradient(165deg, rgba(24, 27, 34, 0.95), rgba(17, 20, 27, 0.95));
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--hub-gray-border);
  height: fit-content;
  box-shadow: 0 16px 40px rgba(6, 10, 18, 0.45);
  transform: translate(var(--preview-translate-x, 0px), var(--preview-translate-y, 0px));
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.sidebar-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.sidebar-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.sidebar-top {
  position: relative;
  display: grid;
  gap: 4px;
  padding-right: 34px;
}

.sidebar[data-preview-movable='1'] .sidebar-top {
  cursor: grab;
  user-select: none;
}

.sidebar[data-preview-movable='1'] .sidebar-top:focus-visible {
  outline: 2px solid rgba(149, 206, 255, 0.78);
  outline-offset: 6px;
  border-radius: 12px;
}

.sidebar.is-preview-dragging {
  transition: none;
  box-shadow: 0 26px 56px rgba(4, 10, 18, 0.5);
  z-index: 14;
}

.sidebar.is-preview-dragging .sidebar-top {
  cursor: grabbing;
}

.preview-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1;
}

.preview-open-icon {
  display: none;
  position: fixed;
  left: 12px;
  top: 102px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  z-index: 44;
}

.preview-collapsed .preview-open-icon {
  display: inline-flex;
}

.invoice-mobile-stepper {
  display: none;
}

.preview-open-icon-glyph {
  position: relative;
  width: 16px;
  height: 12px;
  border: 1.6px solid rgba(226, 239, 255, 0.92);
  border-radius: 2px;
  display: inline-block;
}

.preview-open-icon-glyph::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 9px;
  height: 6px;
  border: 1.4px solid rgba(226, 239, 255, 0.92);
  border-radius: 1px;
}

.preview-collapsed .dashboard-shell {
  grid-template-columns: 1fr;
}

.preview-collapsed .sidebar {
  display: none;
}

@media (max-width: 900px) {
  .preview-open-icon {
    display: none !important;
  }

  .preview-close-btn {
    display: none !important;
  }
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-card {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-card h3 {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.invoice-preview-hero {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
}

.invoice-preview-hero-copy {
  max-width: 520px;
}

.command-pill {
  background: rgba(23, 26, 34, 0.82);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--hub-gray-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.pill-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.panel-block {
  background: rgba(14, 22, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.invoice-editor {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
}

.invoice-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 0;
}

.send-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.invoice-toast-stack {
  position: fixed;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 430px);
  display: grid;
  gap: 12px;
  z-index: 1600;
  pointer-events: none;
}

.invoice-toast {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(196, 217, 244, 0.2);
  background: rgba(11, 17, 28, 0.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #f4f8ff;
  box-shadow: 0 24px 44px rgba(3, 6, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.invoice-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.invoice-toast.is-info {
  border-color: rgba(140, 201, 242, 0.28);
}

.invoice-toast.is-success {
  border-color: rgba(125, 215, 186, 0.32);
}

.invoice-toast.is-warning {
  border-color: rgba(255, 182, 182, 0.28);
}

.invoice-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  border: 1px solid rgba(196, 217, 244, 0.16);
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.96) 0 14%, transparent 16%),
    radial-gradient(circle at 38% 70%, rgba(255, 255, 255, 0.96) 0 20%, transparent 22%),
    linear-gradient(160deg, #87a5eb, #5d6fb0 58%, #465380);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 18px rgba(0, 0, 0, 0.28);
}

.invoice-toast-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.invoice-toast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invoice-toast-app {
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(246, 250, 255, 0.98);
}

.invoice-toast-time {
  font-size: 0.72rem;
  color: rgba(179, 198, 224, 0.7);
}

.invoice-toast-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(238, 245, 255, 0.96);
}

@media (max-width: 900px) {
  .invoice-toast-stack {
    top: max(10px, calc(env(safe-area-inset-top) + 2px));
    width: min(94vw, 420px);
  }

  .invoice-toast {
    padding: 11px 12px;
    border-radius: 20px;
  }

  .invoice-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .invoice-toast-message {
    font-size: 0.88rem;
  }
}

.invoice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-title {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.02em;
}

.tab-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 999px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
}

.invoice-form {
  background: rgba(18, 21, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  gap: 24px;
  overflow: hidden;
}

.invoice-form-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: -6px;
}

.doc-mode-toggle {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.78), rgba(6, 14, 26, 0.86));
  border: 1px solid rgba(148, 191, 228, 0.34);
  box-shadow: inset 0 1px 0 rgba(236, 246, 255, 0.12), 0 10px 20px rgba(3, 8, 16, 0.32);
  overflow: hidden;
}

.doc-mode-toggle .ghost {
  min-width: 104px;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(4, 12, 23, 0.56);
  color: rgba(216, 232, 248, 0.72);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.doc-mode-toggle .ghost:hover {
  background: rgba(28, 57, 88, 0.52);
  color: rgba(233, 245, 255, 0.96);
}

.doc-mode-toggle .ghost.is-active {
  background: linear-gradient(180deg, rgba(149, 214, 252, 0.48), rgba(81, 170, 227, 0.48));
  color: #eff9ff;
  box-shadow: inset 0 0 0 1px rgba(218, 239, 255, 0.72), 0 8px 16px rgba(46, 130, 192, 0.36);
}

.doc-mode-toggle .ghost.is-active:hover,
.doc-mode-toggle .ghost.is-active:focus-visible {
  background: linear-gradient(180deg, rgba(149, 214, 252, 0.48), rgba(81, 170, 227, 0.48));
  color: #eff9ff;
}

.doc-mode-toggle-page {
  margin-bottom: 12px;
}

.doc-mode-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.invoice-reset-btn {
  min-width: 0;
  padding: 8px 14px;
}

.invoice-mobile-settings-btn,
.invoice-mobile-bottomnav,
.invoice-mobile-settings-sheet {
  display: none;
}

.invoice-step-block + .invoice-step-block {
  border-top: 1px solid rgba(169, 188, 220, 0.2);
  padding-top: 22px;
}

.invoice-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.invoice-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(169, 201, 240, 0.32);
  background: rgba(108, 145, 196, 0.16);
  padding: 4px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d2e9ff;
  font-weight: 700;
}

.invoice-section-head h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.send-invoice {
  background: linear-gradient(120deg, #44546a, #344256);
  color: var(--btn-primary-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 22px rgba(5, 8, 16, 0.44);
}

.send-invoice:hover {
  filter: brightness(1.03);
}

.invoice-header input[type="text"] {
  font-size: 1.4rem;
  font-weight: 600;
}

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: start;
}

.invoice-meta > label {
  align-self: start;
}

.invoice-terms-custom {
  margin-top: 8px;
  display: none;
  gap: 6px;
}

.invoice-terms-custom.is-visible {
  display: grid;
}

.invoice-terms-custom[hidden] {
  display: none !important;
}

.invoice-terms-custom > span {
  font-size: 0.78rem;
  color: var(--muted);
}

.invoice-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.invoice-columns .invoice-section-head,
.invoice-extra .invoice-section-head {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.invoice-columns-tools {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin: -2px 0 2px;
}

.invoice-block {
  display: grid;
  gap: 10px;
}

.invoice-block h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.invoice-block .address-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
  text-align: center;
}

.invoice-block .address-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

.address-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.address-fields[hidden] {
  display: none;
}

body.theme-neon .invoice-block .address-toggle {
  border-color: rgba(214, 146, 255, 0.4);
  background: rgba(128, 68, 196, 0.16);
}

body.theme-neon .address-fields {
  border-color: rgba(183, 111, 255, 0.3);
  background: rgba(136, 67, 214, 0.1);
}

.invoice-items {
  display: grid;
  gap: 12px;
}

.item-rows {
  display: grid;
  gap: 8px;
}

.item-header {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(96px, 0.72fr) minmax(74px, 0.55fr) minmax(98px, 0.78fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding-left: 48px;
}

.item-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.65fr) minmax(96px, 0.72fr) minmax(74px, 0.55fr) minmax(98px, 0.78fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.item-header span,
.item-row > *,
.item-row input,
.item-row span {
  min-width: 0;
}

.item-field-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.item-field-label {
  display: none;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(201, 218, 241, 0.62);
}

.item-header span {
  white-space: nowrap;
}

.item-row input {
  width: 100%;
}

.item-row span {
  color: var(--text);
  font-weight: 600;
}

.item-rate,
.item-qty {
  text-align: right;
}

.item-amount {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-remove {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
}

.item-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.add-item {
  justify-self: start;
  min-width: 230px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
}

.add-item::before {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1fd57f;
  color: #05301d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(23, 191, 117, 0.35);
}

.totals {
  display: grid;
  gap: 6px;
  margin-left: auto;
  min-width: 220px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.totals .total-strong {
  color: var(--text);
  font-weight: 700;
}

.invoice-notes textarea {
  min-height: 110px;
}

.invoice-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.invoice-extra-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.invoice-extra-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invoice-extra-card-head h3 {
  margin: 0;
}

.signature-preview,
.photo-grid {
  min-height: 110px;
  border-radius: 14px;
  border: 1px dashed rgba(176, 205, 236, 0.42);
  background: rgba(10, 17, 31, 0.5);
  padding: 10px;
}

.invoice-logo-preview {
  min-height: 110px;
}

.invoice-logo-preview img {
  max-width: min(260px, 100%);
  max-height: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.signature-preview {
  display: grid;
  place-items: center;
}

.signature-preview span {
  color: var(--muted);
  font-size: 0.82rem;
}

.signature-preview img {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
  border-radius: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  align-content: start;
}

.photo-grid.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.photo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 14, 26, 0.82);
  aspect-ratio: 4 / 3;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
  background: rgba(9, 14, 22, 0.78);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.invoice-extra-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-extra-actions .ghost {
  min-width: 126px;
}

.invoice-extra-actions-compact {
  margin-top: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.invoice-extra-actions-compact .invoice-extra-action-btn {
  min-width: 34px;
  width: 34px;
}

.invoice-extra-action-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.invoice-send-inline {
  position: relative;
  margin: 0 -24px -24px;
  padding: 30px 24px 24px;
  border: 0;
  border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
  background:
    linear-gradient(
      180deg,
      rgba(174, 196, 236, 0) 0%,
      rgba(152, 180, 224, 0.05) 26%,
      rgba(130, 161, 208, 0.1) 54%,
      rgba(97, 131, 180, 0.14) 78%,
      rgba(70, 100, 147, 0.18) 100%
    ),
    linear-gradient(140deg, rgba(40, 56, 94, 0.22) 0%, rgba(30, 43, 72, 0.24) 48%, rgba(22, 32, 54, 0.26) 100%);
  box-shadow: 0 -12px 26px rgba(8, 13, 26, 0.14);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.invoice-section-head-send {
  margin-bottom: 4px;
}

.invoice-send-inline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 22, 33, 0.9) 0%, rgba(17, 22, 33, 0.64) 48%, rgba(17, 22, 33, 0) 100%);
}

.send-inline-fields {
  display: grid;
  gap: 12px;
}

.send-inline-row > label,
.send-inline-row-head > label {
  color: rgba(220, 232, 252, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
}

.send-inline-title {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.03em;
}

.send-inline-sub {
  margin: -2px 0 2px;
  color: rgba(205, 220, 246, 0.84);
  font-size: 0.82rem;
}

.send-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-send-stripe-summary {
  display: none;
}

.send-inline-actions .ghost {
  min-width: 160px;
}

.send-inline-actions-top {
  margin-bottom: 2px;
}

.send-inline-row {
  display: grid;
  gap: 6px;
}

.send-inline-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.send-inline-row-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  width: 100%;
  min-height: 44px;
  border-color: rgba(170, 198, 238, 0.34);
  background: rgba(10, 19, 36, 0.52);
}

.send-inline-row-controls .send-invoice,
.send-inline-row-controls .send-invoice-text {
  min-width: 140px;
}

.send-inline-row-controls :is(.send-invoice, .send-invoice-text)[data-send-state="sending"] {
  cursor: progress;
  opacity: 1;
}

.send-inline-row-controls :is(.send-invoice, .send-invoice-text)[data-send-state="cooldown"] {
  cursor: not-allowed;
  opacity: 1;
}

.send-inline-row[data-send-state="sending"] .send-inline-row-controls :is(.send-invoice, .send-invoice-text) {
  box-shadow: 0 14px 30px rgba(47, 96, 196, 0.24);
}

.send-inline-row[data-send-state="cooldown"] .send-inline-row-controls :is(.send-invoice, .send-invoice-text) {
  border-color: rgba(183, 198, 220, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 234, 247, 0.82);
  box-shadow: none;
}

.send-inline-lock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 26px;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(184, 212, 244, 0.24);
  background: rgba(8, 18, 34, 0.36);
  color: rgba(232, 241, 255, 0.88);
}

.usage-lock-icon {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 8px;
  flex: 0 0 auto;
  border: 1.7px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
}

.usage-lock-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 100%;
  margin-bottom: 1px;
  height: 6px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-sizing: border-box;
}

.send-inline-row-note {
  margin: 2px 0 0;
  color: rgba(214, 226, 246, 0.76);
  font-size: 0.76rem;
  line-height: 1.45;
}

.send-inline-row-note:empty {
  display: none;
}

.send-inline-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-upgrade-link {
  padding: 0;
  border: 0;
  background: none;
  color: #79b8ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.inline-upgrade-link:hover {
  color: #9ed2ff;
}

body.theme-professional .inline-upgrade-link,
body.theme-koala .inline-upgrade-link,
body.theme-sky .inline-upgrade-link {
  color: #2e7ac5;
}

.send-inline-row[data-locked='1'] .send-inline-row-controls {
  opacity: 0.7;
}

.send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(174, 193, 219, 0.16);
  background: rgba(8, 15, 28, 0.3);
  color: rgba(223, 231, 244, 0.74);
  -webkit-text-fill-color: rgba(223, 231, 244, 0.74);
}

.send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"])::placeholder {
  color: rgba(191, 204, 224, 0.52);
}

.send-inline-row[data-locked='1'] .send-inline-row-controls .send-invoice-text {
  border-color: rgba(183, 198, 220, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 234, 247, 0.78);
  box-shadow: none;
  cursor: not-allowed;
}

.send-inline-row[data-locked='1'] .send-inline-row-controls > :disabled {
  opacity: 1;
}

.send-inline-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.invoice-client-import {
  position: relative;
  display: inline-grid;
  gap: 8px;
  margin-bottom: 0;
}

@media (min-width: 961px) {
  .dashboard-shell {
    gap: 22px;
    padding: 32px 6vw 96px;
  }

  .invoice-editor {
    gap: 10px;
  }

  .invoice-form {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    column-gap: 10px;
    row-gap: 10px;
    padding: 16px;
  }

  .invoice-form > :is(.invoice-form-tools, .invoice-mobile-stepper, .invoice-header, .invoice-columns, .invoice-items, .invoice-send-inline) {
    grid-column: 1 / -1;
  }

  .invoice-notes {
    grid-column: 1;
    align-content: start;
  }

  .invoice-extra {
    grid-column: 2;
    align-content: start;
  }

  .invoice-form-tools {
    margin-bottom: 0;
    gap: 8px;
  }

  .invoice-step-block + .invoice-step-block {
    padding-top: 10px;
  }

  .invoice-section-head {
    margin-bottom: 6px;
    gap: 7px;
  }

  .invoice-step-chip {
    padding: 2px 6px;
    font-size: 0.55rem;
  }

  .invoice-section-head h3 {
    font-size: 0.82rem;
  }

  .invoice-meta {
    margin-top: 6px;
    gap: 7px;
  }

  .invoice-columns,
  .invoice-extra {
    gap: 8px;
  }

  .invoice-extra {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .invoice-extra > :is(.invoice-extra-card, #invoice-logo-attachment-wrap) {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(174, 201, 236, 0.12);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }

  .invoice-block {
    gap: 6px;
  }

  .invoice-block h3,
  .send-inline-title {
    font-size: 0.84rem;
  }

  .invoice-form :is(label, .item-header span, .send-inline-row > label, .send-inline-row-head > label, .photo-empty, .signature-preview span) {
    font-size: 0.74rem;
  }

  .invoice-form :is(input, select, textarea) {
    padding: 7px 9px;
    font-size: 0.86rem;
    border-radius: 9px;
  }

  .invoice-items {
    gap: 8px;
  }

  .item-rows {
    gap: 6px;
  }

  .item-header,
  .item-row {
    gap: 6px;
  }

  .item-remove {
    width: 30px;
    height: 30px;
  }

  .totals {
    gap: 4px;
    min-width: 200px;
  }

  .doc-mode-toggle .ghost {
    min-width: 88px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .doc-mode-label {
    font-size: 0.74rem;
  }

  .invoice-header input[type="text"] {
    font-size: 1.06rem;
  }

  .invoice-notes textarea {
    min-height: 64px;
  }

  .invoice-extra-card-head {
    gap: 6px;
  }

  .invoice-extra-card-head h3 {
    font-size: 0.8rem;
    min-width: 0;
  }

  .signature-preview,
  .photo-grid,
  .invoice-logo-preview,
  .invoice-extra .invoice-branding-preview.invoice-logo-preview {
    min-height: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 10px;
  }

  .invoice-logo-preview img,
  .signature-preview img {
    max-height: 40px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: auto;
  }

  .invoice-extra-actions {
    margin-top: 2px;
    gap: 6px;
  }

  .invoice-extra-actions-compact .ghost {
    flex: 0 0 auto;
  }

  .invoice-extra-action-btn {
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 8px;
    font-size: 0.94rem;
    flex: 0 0 26px;
  }

  .invoice-extra-actions-compact .invoice-extra-action-btn {
    min-width: 26px;
    width: 26px;
  }

  .invoice-send-inline {
    margin: 4px 0 0;
    padding: 14px;
    gap: 8px;
    border: 1px solid rgba(177, 207, 241, 0.12);
    border-radius: 16px;
    box-shadow: none;
  }

  .invoice-send-inline::before {
    display: none;
  }

  .invoice-section-head-send {
    margin-bottom: 0;
  }

  .send-inline-fields {
    gap: 8px;
  }

  .send-inline-sub {
    margin: 0;
    font-size: 0.74rem;
  }

  .send-inline-actions {
    gap: 6px;
  }

  .send-inline-actions .ghost {
    min-width: 136px;
  }

  .send-inline-row {
    gap: 4px;
  }

  .send-inline-row > label,
  .send-inline-row-head > label {
    font-size: 0.82rem;
  }

  .send-inline-row-controls {
    gap: 6px;
  }

  .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
    min-height: 40px;
  }

  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    min-width: 124px;
  }

  .invoice-block .address-toggle {
    width: 110px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .address-fields {
    gap: 8px;
    padding: 10px;
  }
}

.invoice-client-import-toggle {
  justify-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(164, 203, 248, 0.56);
  background: linear-gradient(140deg, rgba(106, 155, 224, 0.56) 0%, rgba(72, 108, 172, 0.7) 100%);
  box-shadow: 0 10px 22px rgba(5, 11, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #eff7ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.invoice-client-import-toggle::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(226, 241, 255, 0.62);
  background: rgba(228, 241, 255, 0.16);
  color: #f4faff;
  font-weight: 800;
  line-height: 1;
}

.invoice-client-import-toggle.is-open::before {
  content: '-';
}

.invoice-client-import-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 13px 24px rgba(7, 14, 30, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.invoice-client-import-toggle:focus-visible {
  outline: 2px solid rgba(180, 222, 255, 0.8);
  outline-offset: 2px;
}

body:is(.theme-professional, .theme-sky, .theme-koala) .invoice-client-import-toggle {
  border-color: rgba(119, 149, 188, 0.58);
  background: linear-gradient(145deg, rgba(161, 191, 227, 0.92) 0%, rgba(120, 151, 197, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(111, 134, 166, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #17304f;
}

body:is(.theme-professional, .theme-sky, .theme-koala) .invoice-client-import-toggle::before {
  border-color: rgba(76, 112, 156, 0.54);
  background: rgba(255, 255, 255, 0.6);
  color: #1a3658;
}

.invoice-client-import-panel {
  display: grid;
  gap: 8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 84vw);
  z-index: 8;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(158, 192, 225, 0.32);
  background: rgba(10, 21, 39, 0.96);
  box-shadow: 0 16px 26px rgba(5, 10, 20, 0.34);
}

.invoice-client-import-panel[hidden] {
  display: none !important;
}

.invoice-client-import-panel input {
  width: 100%;
  min-height: 40px;
}

body.theme-professional .invoice-client-import-panel,
body.theme-sky .invoice-client-import-panel,
body.theme-koala .invoice-client-import-panel {
  border-color: rgba(123, 163, 196, 0.34);
  background: rgba(242, 249, 255, 0.98);
  box-shadow: 0 14px 22px rgba(88, 122, 154, 0.22);
}

body.theme-professional .invoice-client-import-panel input,
body.theme-sky .invoice-client-import-panel input,
body.theme-koala .invoice-client-import-panel input {
  background: rgba(255, 255, 255, 0.94);
}

body.theme-neon .invoice-send-inline {
  border: 0;
  background:
    linear-gradient(
      180deg,
      rgba(215, 134, 255, 0) 0%,
      rgba(188, 112, 255, 0.08) 26%,
      rgba(158, 86, 242, 0.14) 54%,
      rgba(118, 60, 198, 0.2) 78%,
      rgba(86, 42, 152, 0.24) 100%
    ),
    linear-gradient(145deg, rgba(94, 40, 156, 0.24) 0%, rgba(66, 27, 120, 0.24) 50%, rgba(49, 20, 96, 0.26) 100%);
  box-shadow: 0 -12px 24px rgba(55, 19, 104, 0.2);
}

body.theme-tropical .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(84, 226, 197, 0) 0%, rgba(61, 199, 174, 0.12) 34%, rgba(43, 165, 146, 0.24) 100%),
    linear-gradient(142deg, rgba(9, 58, 66, 0.93) 0%, rgba(8, 47, 57, 0.93) 52%, rgba(7, 37, 49, 0.95) 100%);
  box-shadow: 0 -12px 26px rgba(4, 28, 33, 0.34);
}

body.theme-tropical .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(8, 39, 46, 0.94) 0%, rgba(8, 39, 46, 0.66) 52%, rgba(8, 39, 46, 0) 100%);
}

body.theme-tropical .send-inline-row > label,
body.theme-tropical .send-inline-row-head > label {
  color: rgba(213, 245, 236, 0.92);
}

body.theme-tropical .send-inline-sub {
  color: rgba(189, 233, 224, 0.86);
}

body.theme-tropical .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(112, 217, 199, 0.34);
  background: rgba(6, 36, 43, 0.76);
}

body.theme-sunset .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(255, 181, 118, 0) 0%, rgba(238, 140, 102, 0.12) 32%, rgba(205, 92, 84, 0.24) 100%),
    linear-gradient(145deg, rgba(46, 28, 50, 0.92) 0%, rgba(54, 33, 58, 0.92) 48%, rgba(39, 30, 53, 0.95) 100%);
  box-shadow: 0 -12px 24px rgba(31, 17, 34, 0.34);
}

body.theme-sunset .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(35, 22, 41, 0.95) 0%, rgba(35, 22, 41, 0.66) 52%, rgba(35, 22, 41, 0) 100%);
}

body.theme-sunset .send-inline-row > label,
body.theme-sunset .send-inline-row-head > label {
  color: rgba(255, 225, 209, 0.92);
}

body.theme-sunset .send-inline-sub {
  color: rgba(247, 211, 194, 0.86);
}

body.theme-sunset .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(242, 163, 145, 0.36);
  background: rgba(34, 22, 40, 0.78);
}

body.theme-professional .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(221, 228, 236, 0) 0%, rgba(211, 220, 229, 0.3) 30%, rgba(202, 213, 224, 0.45) 100%),
    linear-gradient(150deg, rgba(246, 249, 252, 0.94) 0%, rgba(238, 243, 248, 0.94) 52%, rgba(232, 238, 244, 0.95) 100%);
  box-shadow: 0 -10px 22px rgba(123, 138, 154, 0.2);
}

body.theme-professional .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.96) 0%, rgba(246, 249, 253, 0.76) 52%, rgba(246, 249, 253, 0) 100%);
}

body.theme-professional .send-inline-row > label,
body.theme-professional .send-inline-row-head > label {
  color: #4b5b6d;
}

body.theme-professional .send-inline-sub {
  color: #627588;
}

body.theme-professional .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(138, 154, 172, 0.34);
  color: #213244;
}

body.theme-dark .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(135, 148, 164, 0) 0%, rgba(98, 112, 131, 0.12) 32%, rgba(72, 84, 101, 0.22) 100%),
    linear-gradient(145deg, rgba(17, 21, 28, 0.93) 0%, rgba(13, 17, 23, 0.93) 52%, rgba(9, 13, 18, 0.95) 100%);
  box-shadow: 0 -10px 22px rgba(5, 7, 11, 0.42);
}

body.theme-dark .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.96) 0%, rgba(12, 16, 22, 0.68) 52%, rgba(12, 16, 22, 0) 100%);
}

body.theme-dark .send-inline-row > label,
body.theme-dark .send-inline-row-head > label {
  color: rgba(224, 233, 247, 0.9);
}

body.theme-dark .send-inline-sub {
  color: rgba(196, 209, 229, 0.82);
}

body.theme-dark .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(118, 132, 157, 0.34);
  background: rgba(10, 13, 18, 0.84);
}

body.theme-neon .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(18, 12, 34, 0.94) 0%, rgba(39, 17, 70, 0.68) 50%, rgba(39, 17, 70, 0) 100%);
}

body.theme-koala .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(182, 211, 239, 0) 0%, rgba(171, 204, 236, 0.24) 28%, rgba(160, 195, 229, 0.36) 100%),
    linear-gradient(140deg, rgba(245, 250, 255, 0.84) 0%, rgba(229, 241, 252, 0.86) 50%, rgba(217, 233, 248, 0.88) 100%);
  box-shadow: 0 -10px 22px rgba(115, 147, 179, 0.18);
}

body.theme-koala .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 247, 254, 0.72) 52%, rgba(239, 247, 254, 0) 100%);
}

body.theme-koala .send-inline-row > label,
body.theme-koala .send-inline-row-head > label {
  color: #355775;
}

body.theme-koala .send-inline-sub {
  color: #557695;
}

body.theme-koala .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(125, 161, 194, 0.4);
  background: rgba(255, 255, 255, 0.86);
}

.invoice-side {
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: start;
  position: sticky;
  top: 96px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.color {
  position: relative;
  width: 100%;
  min-height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: var(--swatch, rgba(255, 255, 255, 0.2));
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 10px rgba(4, 10, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.color:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 14px rgba(4, 10, 20, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.color.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.54), 0 8px 14px rgba(3, 8, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.color[data-color="none"] {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.color[data-color="none"]::after {
  content: none;
}

.color[data-color="#111111"] {
  background-color: #111111;
}

.color[data-color="#FF8A3D"] {
  background-color: #ff8a3d;
}

.color[data-color="#5B6DFF"] {
  background-color: #5b6dff;
}

.color[data-color="#8A4DFF"] {
  background-color: #8a4dff;
}

.color[data-color="#F94F92"] {
  background-color: #f94f92;
}

.color[data-color="#4FD1C5"] {
  background-color: #4fd1c5;
}

.color[data-color="#FF4D5A"] {
  background-color: #ff4d5a;
}

.template-theme-control {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.template-theme-control > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.template-theme-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.invoice-controls-panel {
  gap: 16px;
  padding: 18px;
}

.invoice-controls-hero {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(169, 194, 227, 0.26);
  background: linear-gradient(145deg, rgba(51, 75, 109, 0.28), rgba(32, 48, 72, 0.24));
}

.invoice-controls-kicker {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bcd7f6;
}

.invoice-controls-hero h3 {
  margin: 0;
  font-size: 0.98rem;
  font-family: "Unbounded", sans-serif;
}

.invoice-controls-hero span {
  color: var(--muted);
  font-size: 0.8rem;
}

.compact-control > span {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.invoice-controls-panel select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.invoice-branding-stack {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.invoice-stripe-inline {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(151, 188, 231, 0.3);
  background: linear-gradient(145deg, rgba(38, 58, 92, 0.34), rgba(24, 39, 66, 0.28));
}

.invoice-stripe-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invoice-stripe-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(166, 203, 244, 0.45);
  background: rgba(132, 171, 218, 0.2);
}

.invoice-stripe-logo img {
  display: block;
  width: 72px;
  height: auto;
}

.invoice-stripe-status {
  margin: 0;
  color: #b7cbe7;
  font-size: 0.78rem;
  font-weight: 600;
}

.invoice-stripe-inline[data-connected='1'] .invoice-stripe-status {
  color: #9ee3be;
}

.invoice-stripe-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.invoice-stripe-toggle input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #4ca6ff;
}

.invoice-stripe-toggle input[type='checkbox']:disabled + span {
  opacity: 0.56;
}

.invoice-stripe-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.usage-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(151, 188, 231, 0.22);
  background: linear-gradient(145deg, rgba(25, 40, 67, 0.28), rgba(18, 29, 49, 0.22));
}

.invoice-send-usage-panel {
  margin-top: 2px;
}

.usage-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.usage-panel-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.usage-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.usage-meter-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(185, 214, 246, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.usage-meter-card[data-locked='1'] {
  border-color: rgba(185, 197, 214, 0.14);
  background: linear-gradient(145deg, rgba(28, 35, 49, 0.44), rgba(21, 27, 38, 0.34));
}

.usage-meter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.usage-meter-label {
  margin: 0;
  color: rgba(214, 228, 248, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.usage-meter-value {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.usage-meter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(188, 203, 224, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(228, 237, 248, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.usage-meter-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.usage-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79b9ff, #9fe5ff);
  transition: width 180ms ease;
}

.usage-meter-card[data-usage-channel='sms'] .usage-meter-fill {
  background: linear-gradient(90deg, #68dfa4, #adf8c3);
}

.usage-meter-card[data-locked='1'] .usage-meter-fill {
  background: linear-gradient(90deg, rgba(187, 196, 209, 0.28), rgba(187, 196, 209, 0.1));
}

.usage-meter-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.settings-usage-panel {
  gap: 14px;
}

.settings-usage-panel .usage-panel-sub {
  margin: 0;
}

.settings-usage-panel .usage-panel-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.settings-usage-panel .usage-meter-card {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
}

.settings-usage-panel .usage-meter-card:first-child {
  padding-top: 2px;
  border-top: 0;
}

.settings-usage-panel .usage-meter-header {
  align-items: center;
}

.settings-usage-panel .usage-meter-value {
  font-size: 1.04rem;
}

.settings-usage-panel .usage-meter-note {
  margin-top: -2px;
}

body.theme-professional .invoice-stripe-inline,
body.theme-koala .invoice-stripe-inline,
body.theme-sky .invoice-stripe-inline {
  border-color: rgba(134, 168, 204, 0.34);
  background: linear-gradient(145deg, rgba(232, 241, 249, 0.94), rgba(224, 236, 246, 0.94));
}

body.theme-professional .invoice-stripe-logo,
body.theme-koala .invoice-stripe-logo,
body.theme-sky .invoice-stripe-logo {
  border-color: rgba(113, 151, 191, 0.48);
  background: rgba(165, 196, 232, 0.3);
  color: #2f5986;
}

body.theme-professional .invoice-stripe-status,
body.theme-koala .invoice-stripe-status,
body.theme-sky .invoice-stripe-status {
  color: #61758d;
}

body.theme-professional .invoice-stripe-inline[data-connected='1'] .invoice-stripe-status,
body.theme-koala .invoice-stripe-inline[data-connected='1'] .invoice-stripe-status,
body.theme-sky .invoice-stripe-inline[data-connected='1'] .invoice-stripe-status {
  color: #2f8d62;
}

body.theme-professional .usage-panel,
body.theme-koala .usage-panel,
body.theme-sky .usage-panel {
  border-color: rgba(134, 168, 204, 0.3);
  background: linear-gradient(145deg, rgba(236, 244, 251, 0.95), rgba(229, 238, 247, 0.94));
}

body.theme-professional .usage-meter-card,
body.theme-koala .usage-meter-card,
body.theme-sky .usage-meter-card {
  border-color: rgba(126, 160, 195, 0.2);
  background: rgba(255, 255, 255, 0.84);
}

body.theme-professional .usage-meter-card[data-locked='1'],
body.theme-koala .usage-meter-card[data-locked='1'],
body.theme-sky .usage-meter-card[data-locked='1'] {
  border-color: rgba(158, 177, 201, 0.2);
  background: linear-gradient(145deg, rgba(242, 245, 249, 0.98), rgba(233, 238, 244, 0.96));
}

body.theme-professional .usage-panel-sub,
body.theme-professional .usage-meter-note,
body.theme-koala .usage-panel-sub,
body.theme-koala .usage-meter-note,
body.theme-sky .usage-panel-sub,
body.theme-sky .usage-meter-note {
  color: #6f8499;
}

body.theme-professional .usage-meter-label,
body.theme-koala .usage-meter-label,
body.theme-sky .usage-meter-label {
  color: #5a6f85;
}

body.theme-professional .settings-usage-panel .usage-meter-card,
body.theme-koala .settings-usage-panel .usage-meter-card,
body.theme-sky .settings-usage-panel .usage-meter-card {
  background: none;
  border-top-color: rgba(126, 160, 195, 0.16);
}

body.theme-professional .usage-meter-badge,
body.theme-koala .usage-meter-badge,
body.theme-sky .usage-meter-badge,
body.theme-professional .send-inline-lock-pill,
body.theme-koala .send-inline-lock-pill,
body.theme-sky .send-inline-lock-pill {
  border-color: rgba(113, 151, 191, 0.26);
  background: rgba(165, 196, 232, 0.2);
  color: #446789;
}

body.theme-professional .send-inline-row-note,
body.theme-koala .send-inline-row-note,
body.theme-sky .send-inline-row-note {
  color: #6e8297;
}

body.theme-professional .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"]),
body.theme-koala .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"]),
body.theme-sky .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(151, 177, 206, 0.2);
  background: rgba(225, 236, 246, 0.66);
  color: #62778f;
  -webkit-text-fill-color: #62778f;
}

body.theme-professional .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"])::placeholder,
body.theme-koala .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"])::placeholder,
body.theme-sky .send-inline-row[data-locked='1'] .send-inline-row-controls > :is(input[type="email"], input[type="tel"])::placeholder {
  color: rgba(98, 119, 143, 0.64);
}

body.theme-professional .send-inline-row[data-locked='1'] .send-inline-row-controls .send-invoice-text,
body.theme-koala .send-inline-row[data-locked='1'] .send-inline-row-controls .send-invoice-text,
body.theme-sky .send-inline-row[data-locked='1'] .send-inline-row-controls .send-invoice-text {
  border-color: rgba(151, 177, 206, 0.22);
  background: rgba(225, 236, 246, 0.62);
  color: #6a8097;
}

.template-swatches-label {
  margin: 0;
  color: #dceeff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.color-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.invoice-preview-hero-card,
.invoice-live-preview-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  overflow: hidden;
}

.invoice-live-preview {
  --live-frame-bg: linear-gradient(160deg, rgba(11, 23, 40, 0.92), rgba(8, 18, 34, 0.94));
  position: relative;
  border-radius: 22px;
  padding: 8px;
  overflow: hidden;
  background: var(--live-frame-bg);
  border: 1px solid rgba(140, 176, 218, 0.26);
  box-shadow: 0 16px 32px rgba(5, 12, 25, 0.3);
  isolation: isolate;
  display: grid;
  gap: 8px;
}

.invoice-live-preview::before,
.invoice-live-preview::after {
  display: none;
}

.invoice-live-paper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(167, 190, 218, 0.4);
  box-shadow: 0 16px 32px rgba(6, 12, 23, 0.34);
}

.invoice-live-pdf-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.invoice-live-pdf-frame.is-active {
  opacity: 1;
}

.invoice-live-preview-note {
  margin: 0;
  color: rgba(194, 214, 240, 0.84);
  font-size: 0.78rem;
  line-height: 1.35;
}

.invoice-live-preview-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.invoice-live-preview-controls .ghost {
  min-width: 0;
  width: 100%;
  justify-content: center;
}

.invoice-live-preview-status {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  color: rgba(226, 236, 250, 0.92);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

body.invoice-builder-page .invoice-live-preview {
  padding: 4px;
  gap: 4px;
  border-color: rgba(165, 195, 230, 0.2);
}

body.invoice-builder-page .invoice-live-paper {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(6, 12, 23, 0.26);
}


.invoice-live-sheet {
  position: relative;
  border-radius: 20px 20px 28px 28px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: linear-gradient(165deg, var(--live-bg-a), var(--live-bg-b));
  border: 1px solid var(--live-line);
  color: var(--live-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(5, 11, 22, 0.36);
  overflow: hidden;
}

.invoice-live-sheet::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--live-accent);
  opacity: 0.86;
}

.invoice-live-top {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.invoice-live-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--live-muted);
}

.invoice-live-number {
  margin: 4px 0 0;
  font-size: 1.02rem;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.02em;
}

.invoice-live-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.invoice-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--live-line);
  background: var(--live-card);
  color: var(--live-ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.invoice-live-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.invoice-live-meta > div {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  padding: 8px 9px;
  border: 1px solid var(--live-line);
  background: var(--live-card);
}

.invoice-live-meta > div > span {
  color: var(--live-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.invoice-live-meta > div > strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.invoice-live-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.invoice-live-party {
  border-radius: 12px;
  padding: 9px;
  border: 1px solid var(--live-line);
  background: var(--live-card);
  display: grid;
  gap: 5px;
}

.invoice-live-party p {
  margin: 0;
  font-size: 0.67rem;
  color: var(--live-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.invoice-live-party strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.invoice-live-party span {
  font-size: 0.74rem;
  color: var(--live-muted);
  line-height: 1.3;
}

.invoice-live-items {
  display: grid;
  gap: 7px;
}

.invoice-live-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  border-radius: 11px;
  padding: 8px 9px;
  border: 1px solid var(--live-line);
  background: var(--live-card);
}

.invoice-live-item-copy {
  min-width: 0;
}

.invoice-live-item-copy strong {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.invoice-live-item-copy span {
  display: block;
  margin-top: 2px;
  font-size: 0.69rem;
  color: var(--live-muted);
}

.invoice-live-item-amount {
  font-size: 0.78rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.invoice-live-item.is-empty {
  border-style: dashed;
}

.invoice-live-item.is-more .invoice-live-item-copy strong {
  font-size: 0.74rem;
}

.invoice-live-totals {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.invoice-live-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--live-muted);
}

.invoice-live-total-row strong {
  color: var(--live-ink);
  font-variant-numeric: tabular-nums;
}

.invoice-live-total-row.is-strong {
  padding-top: 7px;
  border-top: 1px solid var(--live-line);
  font-size: 0.8rem;
}

.invoice-live-notes {
  border-radius: 12px;
  border: 1px solid var(--live-line);
  background: var(--live-card);
  padding: 8px 10px;
  display: grid;
  gap: 5px;
}

.invoice-live-notes p {
  margin: 0;
  color: var(--live-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.invoice-live-notes span {
  font-size: 0.74rem;
  line-height: 1.35;
}

.invoice-preview {
  padding: 60px 10vw 120px;
  display: grid;
  gap: 22px;
}

.public-invoice-shell {
  gap: 18px;
}

.public-invoice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.public-invoice-copy,
.public-invoice-cta-card,
.public-invoice-summary-card {
  border-radius: 24px;
  border: 1px solid rgba(142, 176, 218, 0.24);
  background: linear-gradient(165deg, rgba(16, 23, 40, 0.92), rgba(10, 16, 31, 0.94));
  box-shadow: 0 18px 42px rgba(4, 10, 20, 0.32);
}

.public-invoice-copy {
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.public-invoice-copy h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  margin: 0;
}

.public-invoice-copy .lede {
  margin: 0;
  color: rgba(205, 221, 245, 0.82);
  max-width: 36ch;
}

.public-invoice-cta-card {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.public-invoice-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-invoice-meta div,
.public-invoice-summary-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(135, 170, 214, 0.16);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
}

.public-invoice-meta span,
.public-invoice-summary-card small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(154, 177, 208, 0.72);
}

.public-invoice-meta strong,
.public-invoice-summary-card strong {
  font-size: 1rem;
  color: rgba(245, 249, 255, 0.98);
}

.public-invoice-summary-card span {
  color: rgba(193, 211, 237, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.public-invoice-pay-btn {
  width: 100%;
  justify-content: center;
}

.public-invoice-pay-note {
  margin: 0;
  color: rgba(194, 214, 240, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.public-invoice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-invoice-unavailable .invoice-preview.public-invoice-shell {
  min-height: calc(100vh - 72px);
  place-items: center;
  padding-top: 32px;
}

.public-invoice-unavailable .ocean-scene,
.public-invoice-unavailable .nebula,
.public-invoice-unavailable .stars {
  opacity: 0.52;
}

.public-invoice-missing-screen {
  width: min(560px, 100%);
  padding: 34px 30px;
  border-radius: 30px;
  border: 1px solid rgba(154, 186, 228, 0.24);
  background: linear-gradient(180deg, rgba(15, 22, 38, 0.94), rgba(8, 13, 24, 0.97));
  box-shadow: 0 28px 56px rgba(3, 8, 18, 0.4);
  text-align: center;
  display: grid;
  gap: 14px;
}

.public-invoice-missing-badge {
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 186, 228, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(211, 226, 247, 0.84);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-invoice-missing-screen h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.public-invoice-missing-screen p {
  margin: 0;
  color: rgba(207, 223, 246, 0.84);
  line-height: 1.65;
}

.public-invoice-missing-home {
  justify-self: center;
  min-width: 180px;
}

.public-invoice-header .header-actions {
  gap: 10px;
}

.invoice-preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.invoice-preview-status {
  min-width: 104px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.invoice-preview-pages {
  display: grid;
  gap: 24px;
}

.invoice-sheet-page {
  display: none;
}

.invoice-sheet-page.is-active {
  display: grid;
}

.invoice-sheet {
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(5, 7, 13, 0.2);
  display: grid;
  gap: 28px;
  position: relative;
}

.invoice-sheet::before {
  content: \"\";
  position: absolute;
  inset: 16px 16px auto;
  height: 6px;
  border-radius: 999px;
  background: var(--template-color, transparent);
  opacity: 0.9;
}

.invoice-sheet.is-plain-template::before {
  display: none;
}

.sheet-logo {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.sheet-logo img {
  max-width: min(280px, 62%);
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sheet-title h1 {
  font-family: \"Unbounded\", sans-serif;
  font-size: 2.2rem;
}

.sheet-number {
  display: inline-block;
  margin-top: 8px;
  color: #6b7280;
}

.sheet-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: rgba(226, 232, 240, 0.72);
}

.sheet-meta {
  display: grid;
  gap: 10px;
  color: #6b7280;
  min-width: 0;
}

.sheet-meta div {
  min-width: 0;
}

.sheet-meta span {
  color: #111827;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sheet-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  color: #6b7280;
}

.sheet-columns h3 {
  color: #111827;
  margin-bottom: 8px;
}

.sheet-columns p {
  margin: 0;
}

.sheet-items {
  display: grid;
  gap: 12px;
}

.sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(108px, 0.82fr) minmax(52px, 0.42fr) minmax(132px, 0.96fr);
  gap: 14px;
  align-items: start;
  color: #6b7280;
}

.sheet-row > span {
  min-width: 0;
}

.sheet-row > span:first-child {
  overflow-wrap: anywhere;
}

.sheet-row > span:nth-child(n + 2) {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sheet-row.header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sheet-row.header > span:first-child {
  justify-self: start;
  text-align: left;
}

.sheet-details {
  color: #6b7280;
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

.sheet-details strong {
  color: #111827;
  font-size: 0.86rem;
}

.sheet-totals {
  margin-left: auto;
  min-width: 240px;
  display: grid;
  gap: 8px;
}

.sheet-totals div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  color: #6b7280;
}

.sheet-totals div > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sheet-totals div > span:last-child {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sheet-totals .strong {
  color: #111827;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.sheet-notes {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 16px;
  color: #6b7280;
}

.sheet-notes h4 {
  color: #111827;
  margin-bottom: 6px;
}

.sheet-note-muted {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }

  .site-header,
  .nebula,
  .stars,
  .invoice-preview-controls,
  .public-invoice-hero,
  .public-invoice-summary {
    display: none;
  }

  .invoice-preview {
    padding: 0;
  }

  .invoice-preview-pages {
    gap: 0;
  }

  .invoice-sheet-page {
    display: grid !important;
    page-break-after: always;
  }

  .invoice-sheet-page:last-child {
    page-break-after: auto;
  }

  .invoice-sheet {
    box-shadow: none;
    border: none;
    border-radius: 0;
  }
}

@media (max-width: 960px) {
  .public-invoice-hero,
  .public-invoice-summary {
    grid-template-columns: 1fr;
  }
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 7vw;
}

.auth-card {
  background: rgba(12, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.auth-finalizing {
  place-items: center;
}

.auth-finalizing-card {
  max-width: 520px;
  text-align: center;
  justify-items: center;
  gap: 18px;
}

.auth-finalizing-card > div:first-child {
  display: grid;
  gap: 8px;
}

.auth-finalizing-progress {
  width: min(100%, 320px);
  height: 14px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(155, 186, 246, 0.24);
  background: rgba(18, 28, 46, 0.78);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-finalizing-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #57efb0, #34cf93);
  box-shadow: 0 10px 22px rgba(18, 72, 53, 0.28);
  animation: authFinalizingSweep 1.8s ease-in-out infinite;
}

.auth-finalizing-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.auth-finalizing-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 178, 236, 0.18);
  background: rgba(108, 138, 196, 0.1);
  color: #dbe7ff;
  font-size: 0.78rem;
}

.auth-finalizing-note {
  justify-self: center;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c7d7ff;
  font: inherit;
  font-size: 0.84rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: #ffffff;
}

.auth-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-note.is-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(108, 138, 196, 0.16);
  border: 1px solid rgba(147, 178, 236, 0.24);
  color: #dbe7ff;
}

.auth-note.is-busy::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #b4d3ff);
  box-shadow: 0 0 0 4px rgba(124, 169, 245, 0.16), 0 0 14px rgba(146, 189, 255, 0.46);
  animation: authStatusPulse 1.1s ease-in-out infinite;
}

.auth-error {
  color: #fca5a5;
  font-size: 0.85rem;
}

@keyframes authStatusPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes authFinalizingSweep {
  0% {
    transform: translateX(-115%);
  }
  50% {
    transform: translateX(78%);
  }
  100% {
    transform: translateX(212%);
  }
}

/* ── Set-password email locked row ── */
.set-password-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 170, 220, 0.1);
  margin-bottom: 4px;
}

.set-password-email-text {
  flex: 1;
  font-size: 0.88rem;
  color: rgba(180, 210, 248, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
}

.set-password-edit-btn {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.8rem;
  color: rgba(140, 190, 240, 0.4);
  transition: color 160ms ease, opacity 160ms ease;
  line-height: 1;
  border-radius: 6px;
}

.set-password-edit-btn:hover {
  color: rgba(140, 190, 240, 0.85);
  background: rgba(120, 170, 220, 0.08);
}

.billing-gate .auth-card {
  max-width: 860px;
}

.billing-gate-copy {
  display: grid;
  gap: 8px;
}

.billing-gate-copy h1 {
  margin: 0;
}

.billing-gate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-gate-actions .ghost {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .billing-gate-actions {
    align-items: stretch;
  }

  .billing-gate-actions .ghost {
    width: 100%;
    justify-content: center;
  }
}

.invoice-sheet h1,
.invoice-sheet h3,
.invoice-sheet h4,
.invoice-sheet p,
.invoice-sheet span {
  color: inherit;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 160px;
}

.chart-bar {
  background: linear-gradient(180deg, rgba(47, 183, 198, 0.9), rgba(47, 183, 198, 0.2));
  border-radius: 12px;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-list,
.transaction-list,
.alert-list {
  display: grid;
  gap: 12px;
}

.bank-list div,
.transaction-list div,
.transaction-list a {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.transaction-list a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.transaction-list a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.saved-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.saved-actions {
  display: flex;
  gap: 8px;
}

.saved-actions button {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.transaction-list .estimate-saved-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.transaction-list .estimate-saved-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.transaction-list .estimate-saved-summary p {
  margin: 0;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.transaction-list .estimate-saved-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.6);
}

.modal-content {
  position: relative;
  background: rgba(12, 18, 32, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  width: min(820px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-body {
  display: grid;
  gap: 16px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.signature-modal-content {
  width: min(760px, 92vw);
}

.signature-modal-body {
  gap: 14px;
}

#signature-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
  cursor: crosshair;
  touch-action: none;
  display: block;
}

body.theme-neon #signature-canvas {
  border-color: rgba(193, 120, 255, 0.42);
}

.modal-pdf-content {
  width: clamp(420px, 36vw, 560px);
  max-height: 84vh;
  padding: 18px;
}

.modal-pdf-body {
  padding: 0;
}

#invoice-pdf-frame {
  width: 100%;
  height: min(68vh, 860px);
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 12px;
  background: #f7f8fb;
}

body.theme-neon #invoice-pdf-frame {
  border-color: rgba(188, 124, 255, 0.35);
}

@media (max-width: 980px) {
  .modal-pdf-content {
    width: min(94vw, 620px);
  }

  #invoice-pdf-frame {
    height: 62vh;
  }
}

.invoice-dashboard {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 28px;
}

.home {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 24px;
}

.home-creative {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  padding: 30px clamp(20px, 3vw, 34px);
  border-radius: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(132, 218, 206, 0.34);
  background:
    radial-gradient(circle at 14% 18%, rgba(80, 204, 184, 0.22), transparent 46%),
    radial-gradient(circle at 88% 16%, rgba(84, 161, 232, 0.22), transparent 44%),
    linear-gradient(148deg, rgba(12, 38, 58, 0.84) 0%, rgba(10, 33, 49, 0.9) 52%, rgba(8, 27, 42, 0.92) 100%);
  box-shadow: 0 22px 44px rgba(5, 25, 38, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.home-creative-single {
  grid-template-columns: 1fr;
}

.home-creative::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -62px;
  height: 132px;
  background:
    radial-gradient(circle at 22% 26%, rgba(72, 188, 174, 0.34), transparent 42%),
    radial-gradient(circle at 72% 34%, rgba(80, 146, 224, 0.28), transparent 44%);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.home-creative-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-creative-copy .eyebrow {
  color: #84ead2;
  letter-spacing: 0.08em;
}

.home-creative-copy h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #e8fbf7;
}

.home-creative-copy .lede {
  max-width: 60ch;
  color: #b9dfe2;
}

.home-creative-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-creative-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(121, 222, 198, 0.34);
  background: rgba(77, 162, 156, 0.2);
  color: #d3fff4;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.home-creative-art {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  min-height: 190px;
}

.home-creative-art::before {
  content: "";
  position: absolute;
  right: min(2vw, 14px);
  bottom: 22px;
  width: min(220px, 64%);
  height: min(180px, 70%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 230'><defs><linearGradient id='leaf' x1='0' x2='1' y1='0' y2='1'><stop offset='0%' stop-color='%239ce2bf'/><stop offset='100%' stop-color='%234da87a'/></linearGradient><linearGradient id='card' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%23f5f9ff'/><stop offset='100%' stop-color='%23e4eef9'/></linearGradient></defs><path d='M230 196 C220 152 222 112 235 76' stroke='%2385a4c5' stroke-width='10' stroke-linecap='round' fill='none' opacity='0.7'/><path d='M235 80 C212 89 189 106 164 132 C199 130 218 116 235 98 Z' fill='url(%23leaf)' opacity='0.74'/><path d='M236 79 C255 86 269 98 278 114 C257 112 245 104 233 90 Z' fill='url(%23leaf)' opacity='0.72'/><rect x='110' y='104' width='118' height='92' rx='16' fill='url(%23card)' stroke='%239db9d8' stroke-width='2.2'/><rect x='128' y='92' width='82' height='24' rx='11' fill='%23d8e6f5' stroke='%239db9d8' stroke-width='2'/><ellipse cx='146' cy='84' rx='18' ry='20' fill='%23d2dbe8'/><ellipse cx='194' cy='84' rx='18' ry='20' fill='%23d2dbe8'/><circle cx='170' cy='95' r='29' fill='%23e2eaf5'/><circle cx='161' cy='94' r='3' fill='%235a708c'/><circle cx='179' cy='94' r='3' fill='%235a708c'/><ellipse cx='170' cy='102' rx='5.2' ry='4' fill='%2369819c'/><path d='M162 108q8 7 16 0' stroke='%2369819c' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M128 132h80M128 148h80M128 164h56' stroke='%237d99ba' stroke-width='3.2' stroke-linecap='round' opacity='0.88'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
}

.home-creative-card {
  width: min(320px, 88%);
  margin-left: auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(188, 221, 255, 0.24);
  background: linear-gradient(154deg, rgba(24, 40, 66, 0.78), rgba(17, 30, 52, 0.82));
  box-shadow: 0 14px 28px rgba(10, 19, 34, 0.25);
  display: grid;
  gap: 6px;
}

.home-creative-card p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(195, 224, 255, 0.84);
}

.home-creative-card strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.home-creative-card span {
  font-size: 0.8rem;
  color: rgba(191, 216, 242, 0.86);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.home-section-head h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  letter-spacing: 0.01em;
}

.home-section-head p {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 88%, #ffffff 12%);
  font-size: 0.88rem;
}

.home-header-link {
  white-space: nowrap;
}

.home-range-select-wrap {
  position: relative;
  min-width: 152px;
  display: flex;
  align-items: center;
}

.home-range-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid #87b8dc;
  border-bottom: 1.7px solid #87b8dc;
  top: 50%;
  transform: translateY(-58%) rotate(45deg);
  pointer-events: none;
}

.home-range-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(132, 170, 204, 0.34);
  border-radius: 999px;
  background: rgba(12, 24, 40, 0.52);
  color: #b8d8f2;
  -webkit-text-fill-color: #b8d8f2;
  text-shadow: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1;
  height: 34px;
  padding: 0 28px 0 11px;
  cursor: pointer;
}

.home-range-select:focus {
  outline: none;
  border-color: rgba(109, 218, 253, 0.58);
  box-shadow: 0 0 0 2px rgba(109, 218, 253, 0.18);
}

.home-range-select option {
  color: #c8def2;
  background: #0b1e33;
}

.home-card {
  min-height: 196px;
  position: relative;
  overflow: hidden;
  align-content: start;
}

.home-card > * {
  position: relative;
  z-index: 1;
}

.home-card::after {
  content: none;
}

.home-grid-metrics {
  gap: 0;
}

.home-kpi-card {
  grid-column: 1 / -1;
  gap: 18px;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.home-kpi-item {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(166, 197, 228, 0.24);
  border-left: 4px solid transparent;
  background: rgba(10, 18, 30, 0.34);
  display: grid;
  gap: 8px;
}

.home-kpi-item p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.home-kpi-item h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.14rem, 1.6vw, 1.38rem);
  letter-spacing: 0.01em;
}

.home-kpi-outstanding {
  border-left-color: #ffd27d;
  background: rgba(177, 130, 67, 0.15);
}

.home-kpi-overdue {
  border-left-color: #ff8f8f;
  background: rgba(162, 73, 73, 0.18);
}

.home-kpi-collected {
  border-left-color: #65efb7;
  background: rgba(74, 170, 132, 0.16);
}

.home-kpi-clients {
  border-left-color: #8dc8ff;
  background: rgba(67, 113, 170, 0.17);
}

.home-kpi-item h3.is-negative {
  color: #ff8f9c;
}

.home-snapshot-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.home-card-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.home-grid-insights .home-revenue-card,
.home-grid-insights .home-health-card {
  grid-column: span 6;
  overflow: visible;
  z-index: 3;
}

.home-grid-actions .home-attention-card,
.home-grid-actions .home-activity-card {
  grid-column: span 6;
}

.home-revenue-chart {
  display: grid;
  gap: 10px;
}

.home-revenue-bars {
  min-height: 184px;
  display: grid;
  grid-template-columns: repeat(var(--home-bars-count, 6), minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  padding: 8px 4px 4px;
}

.home-revenue-col {
  height: 164px;
  border-radius: 12px;
  background: rgba(7, 15, 28, 0.34);
  border: 1px solid rgba(151, 186, 219, 0.16);
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.home-revenue-bar {
  width: 100%;
  min-height: 6px;
  border-radius: 10px;
  background: rgba(157, 188, 218, 0.22);
  transition: height 280ms ease;
}

.home-revenue-bar.has-value {
  background: linear-gradient(180deg, rgba(107, 236, 193, 0.94) 0%, rgba(93, 173, 232, 0.94) 100%);
}

.home-revenue-axis {
  display: grid;
  grid-template-columns: repeat(var(--home-bars-count, 6), minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.home-health-grid {
  display: grid;
  grid-template-columns: minmax(170px, 210px) 1fr;
  align-items: center;
  gap: 18px;
}

.home-health-donut-wrap {
  display: flex;
  justify-content: center;
}

.home-health-donut {
  --home-collected-angle: 0deg;
  width: clamp(138px, 14vw, 170px);
  aspect-ratio: 1;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: #e7f8ff;
  background: conic-gradient(#6de6be 0 var(--home-collected-angle), #f1c579 var(--home-collected-angle) 360deg);
  box-shadow: inset 0 0 0 1px rgba(210, 231, 250, 0.26), 0 12px 26px rgba(7, 16, 28, 0.32);
}

.home-health-donut::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: inherit;
  background: rgba(8, 17, 29, 0.88);
  border: 1px solid rgba(151, 186, 219, 0.26);
}

.home-health-donut span {
  position: relative;
  z-index: 1;
}

.home-health-legend {
  display: grid;
  gap: 12px;
}

.home-health-item {
  border-radius: 12px;
  border: 1px solid rgba(168, 199, 229, 0.22);
  border-left: 4px solid transparent;
  background: rgba(8, 15, 26, 0.32);
  padding: 12px 13px;
  display: grid;
  gap: 4px;
}

.home-health-item.collected {
  border-left-color: #65efb7;
}

.home-health-item.outstanding {
  border-left-color: #ffd27d;
}

.home-health-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-health-item strong {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.home-list {
  display: grid;
  gap: 10px;
}

.home-list-open-button[hidden] {
  display: none;
}

.home-list-open-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.home-list-item {
  border-radius: 12px;
  border: 1px solid rgba(168, 199, 229, 0.22);
  background: rgba(8, 15, 26, 0.3);
  padding: 12px 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.home-list-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-list-item p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-list-item span {
  color: var(--muted);
  font-size: 0.79rem;
  overflow-wrap: anywhere;
}

.home-list-item time {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  padding-top: 2px;
}

.home-list-meta {
  text-align: right;
}

.home-list-meta strong {
  display: block;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.home-list-item.overdue {
  border-left: 4px solid #ff8f8f;
  background: rgba(144, 54, 54, 0.17);
}

.home-list-item.unsent {
  border-left: 4px solid #8dc8ff;
  background: rgba(57, 92, 142, 0.17);
}

.home-list-item.due-soon {
  border-left: 4px solid #ffd27d;
  background: rgba(166, 115, 53, 0.18);
}

.home-list-item.activity {
  border-left: 4px solid rgba(109, 218, 253, 0.75);
}

.home-list-item.activity.paid {
  border-left-color: rgba(101, 239, 183, 0.86);
}

.home-list-item.activity.overdue {
  border-left-color: rgba(255, 143, 143, 0.85);
}

.home-list-empty {
  border: 1px dashed rgba(168, 199, 229, 0.26);
  border-radius: 12px;
  background: rgba(8, 15, 26, 0.22);
  padding: 15px;
  display: grid;
  gap: 4px;
}

.home-list-empty p {
  margin: 0;
  font-size: 0.91rem;
  font-weight: 600;
}

.home-list-empty span {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-board-modal-content {
  width: min(920px, 94vw);
  max-height: min(86vh, 920px);
}

.home-board-modal-body {
  gap: 0;
}

.home-board-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-board-list {
  max-height: min(62vh, 720px);
  overflow-y: auto;
  padding-right: 6px;
}

.home-kpi-overdue h3,
#home-total-overdue {
  color: #ff9ca6;
}

.home-kpi-collected h3,
#home-collected-month,
#home-health-collected {
  color: #90ecc3;
}

.home-kpi-outstanding h3,
#home-total-outstanding,
#home-health-outstanding {
  color: #ffd58a;
}

.home-kpi-clients h3 {
  color: #9ed2ff;
}

@media (max-width: 1120px) {
  .home-grid-insights .home-revenue-card,
  .home-grid-insights .home-health-card,
  .home-grid-actions .home-attention-card,
  .home-grid-actions .home-activity-card {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .home {
    padding: 20px 4vw 60px;
    gap: 14px;
  }

  .home-section-head {
    align-items: flex-start;
  }

  .home-header-link {
    width: 100%;
    justify-content: center;
  }

  .home-range-select-wrap {
    width: 100%;
    min-width: 0;
  }

  .home-range-select {
    width: 100%;
  }

  .home-grid-metrics,
  .home-grid-insights,
  .home-grid-actions {
    grid-template-columns: 1fr;
  }

  .home-grid-insights .home-revenue-card,
  .home-grid-insights .home-health-card,
  .home-grid-actions .home-attention-card,
  .home-grid-actions .home-activity-card {
    grid-column: 1 / -1;
  }

  .home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-health-grid {
    grid-template-columns: minmax(110px, 140px) 1fr;
    gap: 12px;
  }

  .home-health-donut {
    width: clamp(90px, 28vw, 120px);
    font-size: 0.84rem;
  }

  .home-health-item {
    padding: 9px 11px;
  }

  .home-health-item strong {
    font-size: 0.88rem;
  }

  .home-health-item span {
    font-size: 0.74rem;
  }

  .home-revenue-bars {
    min-height: 120px;
  }

  .home-revenue-col {
    height: 100px;
  }

  .home-list-item {
    flex-direction: column;
  }

  .home-list-meta {
    text-align: left;
  }

  .home-list-open-button {
    width: 100%;
    justify-content: center;
  }

  .home-board-modal-content {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    padding: 18px;
  }

  .home-board-list {
    max-height: calc(100vh - 180px);
    padding-right: 2px;
  }
}

@media (max-width: 560px) {
  .home-card,
  .home-kpi-card {
    min-height: 0;
    padding: 14px;
  }

  .home-kpi-card {
    gap: 10px;
  }

  .home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-kpi-item {
    padding: 10px 10px 9px;
    gap: 5px;
    border-radius: 12px;
  }

  .home-kpi-item p {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .home-kpi-item h3 {
    font-size: 0.88rem;
    line-height: 1.08;
  }

  .home-snapshot-foot {
    gap: 4px 8px;
  }

  .home-card-footnote {
    font-size: 0.68rem;
  }

  .home-revenue-bars {
    gap: 6px;
    min-height: 100px;
  }

  .home-revenue-col {
    height: 84px;
  }

  .home-revenue-axis {
    gap: 6px;
    font-size: 0.66rem;
  }

  .home-health-grid {
    grid-template-columns: minmax(90px, 110px) 1fr;
    gap: 10px;
  }

  .home-health-donut {
    width: clamp(80px, 24vw, 100px);
    font-size: 0.78rem;
  }

  .home-section-head h2 {
    font-size: 0.96rem;
  }

  .home-section-head p {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .home-kpi-grid {
    gap: 7px;
  }

  .home-kpi-item {
    padding: 9px 9px 8px;
  }

  .home-kpi-item h3 {
    font-size: 0.82rem;
  }
}

body.theme-koala .home-creative {
  border-color: rgba(141, 177, 209, 0.48);
  background:
    radial-gradient(circle at 16% 16%, rgba(203, 228, 250, 0.78), transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(175, 211, 241, 0.7), transparent 43%),
    linear-gradient(156deg, rgba(251, 255, 255, 0.95) 0%, rgba(236, 246, 255, 0.93) 54%, rgba(223, 237, 251, 0.92) 100%);
  box-shadow: 0 18px 40px rgba(111, 146, 180, 0.2);
}

body.theme-koala .home-creative::after {
  background:
    radial-gradient(circle at 24% 26%, rgba(182, 216, 243, 0.58), transparent 42%),
    radial-gradient(circle at 72% 34%, rgba(143, 188, 224, 0.52), transparent 43%);
}

body.theme-koala .home-creative-copy h1 {
  color: #2a4d6a;
}

body.theme-koala .home-creative-copy .lede {
  color: #547491;
}

body.theme-koala .home-creative-pills span {
  border-color: rgba(129, 167, 201, 0.44);
  background: rgba(187, 217, 242, 0.58);
  color: #365a7a;
}

body.theme-koala .home-creative-art::before {
  opacity: 0.9;
}

body.theme-koala .home-creative-card {
  border-color: rgba(132, 170, 205, 0.45);
  background: linear-gradient(156deg, rgba(249, 254, 255, 0.95), rgba(231, 243, 254, 0.92));
  box-shadow: 0 14px 28px rgba(123, 158, 189, 0.2);
}

body.theme-koala .home-creative-card p {
  color: #6786a3;
}

body.theme-koala .home-creative-card strong {
  color: #2f5270;
}

body.theme-koala .home-creative-card span {
  color: #5a7894;
}

body.theme-koala .home-card::after {
  background: radial-gradient(circle at 30% 30%, rgba(160, 203, 236, 0.5), rgba(105, 151, 197, 0.08));
  opacity: 0.46;
}

body.theme-professional .home-creative {
  border-color: rgba(167, 178, 189, 0.42);
  background:
    radial-gradient(circle at 16% 16%, rgba(221, 228, 236, 0.56), transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(205, 214, 224, 0.5), transparent 43%),
    linear-gradient(156deg, rgba(252, 253, 255, 0.96) 0%, rgba(244, 247, 250, 0.94) 54%, rgba(236, 240, 246, 0.93) 100%);
  box-shadow: 0 18px 40px rgba(138, 150, 164, 0.16);
}

body.theme-professional .home-creative::after {
  background:
    radial-gradient(circle at 24% 26%, rgba(206, 216, 227, 0.42), transparent 42%),
    radial-gradient(circle at 72% 34%, rgba(187, 199, 213, 0.38), transparent 43%);
}

body.theme-professional .home-creative-copy h1 {
  color: #283241;
}

body.theme-professional .home-creative-copy .lede {
  color: #566273;
}

body.theme-professional .home-creative-pills span {
  border-color: rgba(151, 162, 173, 0.36);
  background: rgba(209, 218, 228, 0.52);
  color: #3f4d5d;
}

body.theme-professional .home-creative-card {
  border-color: rgba(158, 169, 180, 0.38);
  background: linear-gradient(156deg, rgba(252, 253, 255, 0.96), rgba(241, 245, 250, 0.94));
  box-shadow: 0 14px 28px rgba(134, 145, 158, 0.18);
}

body.theme-professional .home-creative-card p {
  color: #627082;
}

body.theme-professional .home-creative-card strong {
  color: #2b3746;
}

body.theme-professional .home-creative-card span {
  color: #556477;
}

body.theme-professional .home-card::after {
  background: radial-gradient(circle at 30% 30%, rgba(198, 208, 220, 0.44), rgba(160, 173, 187, 0.08));
  opacity: 0.4;
}

@media (max-width: 980px) {
  .home-creative {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-creative-art {
    min-height: 156px;
  }

  .home-creative-art::before {
    width: min(190px, 56%);
    height: min(150px, 72%);
    right: 0;
  }
}

@media (max-width: 700px) {
  .home-creative {
    padding: 22px 18px;
  }

  .home-creative-copy h1 {
    font-size: 1.45rem;
  }

  .home-creative-pills span {
    font-size: 0.74rem;
    padding: 7px 10px;
  }

  .home-creative-card {
    width: 100%;
  }
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.overview-grid h3 {
  font-family: "Unbounded", sans-serif;
  margin-top: 6px;
}

.metric-stack {
  display: grid;
  gap: 10px;
}

.metric-stack div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.metric-stack strong {
  color: var(--text);
}

.bar-group {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-fill.overdue {
  background: linear-gradient(90deg, #ff9a8b, #ff6a88);
}

.bar-fill.due {
  background: linear-gradient(90deg, #4cc2c2, #6a79ff);
}

.bar-fill.pending {
  background: linear-gradient(90deg, #f4c97a, #ffb074);
}

.bar-fill.deposited {
  background: linear-gradient(90deg, #78dba5, #4cc2c2);
}

.filter-menu {
  position: relative;
}

.filter-menu summary {
  list-style: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::after {
  content: "▾";
  margin-left: 8px;
  color: var(--muted);
}

.filter-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(12, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  min-width: 160px;
  z-index: 5;
}

.filter-options .ghost {
  width: 100%;
  justify-content: flex-start;
  height: auto;
  padding: 8px 10px;
}
.mini-chart {
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(76, 194, 194, 0.15), rgba(76, 194, 194, 0.45));
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.mini-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(244, 201, 122, 0.6), transparent);
  animation: shimmer 3s linear infinite;
}

.mini-chart.alt {
  background: linear-gradient(90deg, rgba(244, 201, 122, 0.15), rgba(244, 201, 122, 0.4));
}

.mini-chart.profit {
  background: linear-gradient(90deg, rgba(106, 121, 255, 0.15), rgba(106, 121, 255, 0.4));
}

.purchases {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 24px;
}

.bills {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 28px;
}

.bills-section {
  display: grid;
  gap: 22px;
}

.bill-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(76, 194, 194, 0.4);
  background: rgba(76, 194, 194, 0.12);
}

.bill-badge {
  font-weight: 600;
  color: var(--glow);
}

.bill-card {
  gap: 20px;
}

.bill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bill-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bill-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bill-total input {
  font-weight: 700;
}

.bill-table {
  display: grid;
  gap: 10px;
}

.bill-row {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 0.6fr 0.8fr 1.4fr 1.2fr 0.8fr;
  gap: 8px;
  align-items: center;
}

.bill-row input,
.bill-row select {
  font-size: 0.85rem;
}

.bill-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.bill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bill-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.line-chart {
  height: 120px;
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.line-chart polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

#profit-line {
  stroke: var(--glow);
}

.line-chart.detailed {
  position: relative;
  padding-bottom: 28px;
}

.chart-midline {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.6;
}

.chart-axis {
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.expense-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.expense-total strong {
  color: var(--text);
  font-size: 1.1rem;
}

.sales {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 24px;
}

.sales-card {
  gap: 16px;
}

.sales-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.sales-total {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sales-total strong {
  color: var(--text);
  font-size: 1.1rem;
}

.inventory-card {
  gap: 16px;
}

.inventory-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.inventory-kpis > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.inventory-kpis span {
  color: var(--muted);
  font-size: 0.8rem;
}

.inventory-kpis strong {
  font-size: 1rem;
  color: var(--text);
}

.inventory-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.inventory-list .saved-row,
.inventory-alerts .saved-row {
  width: 100%;
}

.inventory-alerts .saved-row span {
  color: #ffcc7a;
}

.crm-card {
  gap: 16px;
}

.crm-card h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.crm-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.crm-wide {
  grid-column: 1 / -1;
}

.crm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.crm-portal-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.crm-log-list .saved-row {
  margin-bottom: 6px;
}

.crm-log-detail {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 10px;
  padding: 0 2px;
}

.crm-contact-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.crm-contact-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-contact-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
  border: 1px solid rgba(170, 206, 233, 0.38);
  background: rgba(113, 161, 198, 0.18);
  color: rgba(219, 240, 255, 0.94);
}

.clients-page {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 18px;
}

.clients-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.clients-panel {
  min-height: 520px;
  align-content: start;
}

.clients-panel .crm-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clients-panel .crm-wide {
  grid-column: 1 / -1;
}

.clients-portal-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.clients-list-panel {
  gap: 12px;
}

.clients-list-panel .transaction-list {
  min-height: 200px;
}

.crm-portal-picker-row {
  cursor: pointer;
  border: 1px solid transparent;
}

.crm-portal-picker-row:hover {
  border-color: rgba(150, 184, 220, 0.3);
  background: rgba(90, 130, 184, 0.12);
}

.crm-portal-picker-row.is-selected {
  border-color: rgba(138, 194, 230, 0.44);
  background: rgba(75, 126, 177, 0.2);
}

.crm-portal-modal-content {
  width: min(1100px, 94vw);
  max-height: 88vh;
}

.crm-portal-modal-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.crm-portal-modal-body {
  gap: 14px;
}

.crm-portal-modal-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.crm-portal-modal-kpis > div {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.crm-portal-modal-kpis span {
  color: var(--muted);
  font-size: 0.78rem;
}

.crm-portal-modal-kpis strong {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 0.98rem;
}

.crm-portal-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.crm-portal-modal-section {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 320px;
}

.crm-portal-modal-section h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 0.88rem;
}

.crm-portal-modal-list {
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.crm-portal-modal-list .saved-row {
  padding: 8px 10px;
}

/* ── Mobile clients view ── */
.clients-mobile-view,
.clients-mobile-sheet {
  display: none;
}

@media (max-width: 760px) {
  /* Hide desktop layout, show mobile view */
  .clients-page {
    display: none !important;
  }

  .clients-mobile-view {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 72px;
    z-index: 1;
    background: transparent;
  }

  .clients-mobile-search-bar {
    padding: 10px 14px 8px;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 160, 220, 0.1);
  }

  .clients-mobile-search-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(120, 170, 220, 0.16);
    background: rgba(14, 26, 44, 0.8);
    color: #e8f4ff;
    font-size: 0.86rem;
  }

  .clients-mobile-search-input::placeholder {
    color: rgba(160, 200, 240, 0.4);
  }

  .clients-mobile-search-input:focus {
    outline: none;
    border-color: rgba(108, 228, 184, 0.5);
    box-shadow: 0 0 0 3px rgba(108, 228, 184, 0.08);
  }

  .clients-mobile-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 14px 100px;
  }

  .clients-mobile-empty {
    margin: 40px auto;
    text-align: center;
    color: rgba(160, 200, 240, 0.4);
    font-size: 0.84rem;
  }

  .clients-mobile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 16px;
    border: 1px solid rgba(120, 170, 220, 0.1);
    background: rgba(12, 22, 38, 0.7);
    cursor: pointer;
    transition: background 150ms ease;
  }

  .clients-mobile-row:active {
    background: rgba(20, 36, 60, 0.9);
  }

  .clients-mobile-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 200, 255, 0.3), rgba(108, 228, 184, 0.2));
    border: 1px solid rgba(120, 170, 220, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #a8e8ff;
    text-transform: uppercase;
  }

  .clients-mobile-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .clients-mobile-row-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e8f4ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .clients-mobile-row-sub {
    font-size: 0.72rem;
    color: rgba(160, 200, 240, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }

  .clients-mobile-row-chevron {
    color: rgba(140, 180, 220, 0.3);
    font-size: 0.8rem;
  }

  .clients-mobile-row-type {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: capitalize;
    color: rgba(108, 228, 184, 0.7);
    background: rgba(108, 228, 184, 0.08);
    border: 1px solid rgba(108, 228, 184, 0.15);
    border-radius: 999px;
    padding: 2px 8px;
  }

  /* FAB */
  .clients-mobile-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, #6ce8b8, #5bc8a8);
    color: #04261a;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(108, 228, 184, 0.36), 0 2px 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 140ms ease, box-shadow 140ms ease;
    z-index: 10;
  }

  .clients-mobile-fab:active {
    transform: scale(0.94);
    box-shadow: 0 4px 12px rgba(108, 228, 184, 0.28);
  }

  /* Add/edit sheet */
  .clients-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
  }

  .clients-mobile-sheet[hidden] {
    display: none !important;
  }

  .clients-mobile-sheet:not([hidden]) {
    display: block;
  }

  .clients-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: sheetFadeIn 200ms ease;
  }

  .clients-mobile-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(14, 26, 44, 0.99), rgba(8, 16, 30, 1));
    border-top: 1px solid rgba(120, 170, 220, 0.15);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    animation: sheetSlideUp 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .clients-mobile-sheet-handle {
    width: 36px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: rgba(180, 210, 240, 0.2);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .clients-mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    flex: 0 0 auto;
  }

  .clients-mobile-sheet-header strong {
    font-size: 0.96rem;
    font-weight: 700;
    color: #e8f4ff;
  }

  .clients-mobile-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.8rem;
    padding: 0;
    border-color: rgba(120, 170, 220, 0.16);
    color: rgba(180, 210, 240, 0.6);
  }

  .clients-mobile-sheet-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 18px 10px;
    display: grid;
    gap: 8px;
  }

  .clients-mobile-sheet-body label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(180, 210, 240, 0.55);
    letter-spacing: 0.02em;
  }

  .clients-mobile-sheet-body :is(input, select, textarea) {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid rgba(120, 170, 220, 0.14);
    background: rgba(12, 24, 42, 0.7);
    color: #e8f4ff;
    font-size: 0.86rem;
    font-family: inherit;
  }

  .clients-mobile-sheet-body :is(input, select, textarea):focus {
    outline: none;
    border-color: rgba(108, 228, 184, 0.5);
    box-shadow: 0 0 0 3px rgba(108, 228, 184, 0.08);
  }

  .clients-mobile-sheet-body textarea {
    min-height: 68px;
    resize: none;
  }

  .clients-mobile-sheet-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 18px;
    padding-bottom: max(16px, calc(10px + env(safe-area-inset-bottom)));
    border-top: 1px solid rgba(100, 160, 220, 0.08);
  }

  .clients-mobile-sheet-footer .primary {
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
  }

  .clients-mobile-delete {
    min-height: 38px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 120, 120, 0.7);
    border-color: rgba(255, 100, 100, 0.18);
  }

  .clients-mobile-sheet-footer [hidden] {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .clients-top-grid {
    grid-template-columns: 1fr;
  }

  .clients-panel {
    min-height: 0;
  }

  .clients-panel .crm-form {
    grid-template-columns: 1fr;
  }

  .crm-portal-actions {
    grid-template-columns: 1fr;
  }

  .crm-portal-modal-grid {
    grid-template-columns: 1fr;
  }

  .crm-portal-modal-section {
    min-height: 0;
  }
}

.cash-totals {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.cash-totals strong {
  color: var(--text);
}

.line-chart.dual polyline#cash-out-line {
  stroke: var(--pulse);
}

.settings {
  padding: 52px 6vw 110px;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.settings .panel-block {
  padding: 16px;
  gap: 12px;
}

.payroll {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 22px;
}

.payroll-hero .lede {
  margin-top: 2px;
}

.payroll-connect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payroll-connect strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.payroll-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.payroll-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.payroll-kpi span {
  color: var(--muted);
  font-size: 0.82rem;
}

.payroll-kpi strong {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.payroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.payroll-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.payroll-form-grid button {
  min-height: 42px;
}

.payroll-list {
  display: grid;
  gap: 10px;
}

.payroll-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.payroll-list > div p {
  font-weight: 600;
}

.payroll-list > div span {
  color: var(--muted);
  font-size: 0.84rem;
}

.payroll-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payroll-item-actions button {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
}

.payroll-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.payrun-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.payroll-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.payroll-feature-grid > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.payroll-feature-grid p {
  font-weight: 600;
}

.payroll-feature-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

.payables {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 22px;
}

.payables-overview {
  gap: 14px;
}

.payables-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.payables-kpis > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.payables-kpis p {
  color: var(--muted);
  font-size: 0.82rem;
}

.payables-kpis strong {
  font-family: "Unbounded", sans-serif;
  color: var(--text);
  font-size: 1rem;
}

.payables-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.payables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.payables-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.payables-wide {
  grid-column: 1 / -1;
}

.payables-subhead {
  margin-top: 10px;
}

.payables-table-head {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1fr) 120px 120px minmax(140px, 220px);
  gap: 10px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payables-list {
  display: grid;
  gap: 10px;
}

.payables-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1fr) 120px 120px minmax(140px, 220px);
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
}

.payables-row-main p {
  font-weight: 600;
}

.payables-row-main span {
  color: var(--muted);
  font-size: 0.82rem;
}

.payables-select {
  display: flex;
  justify-content: center;
}

.payables-reminders {
  display: grid;
  gap: 10px;
}

.payables-reminders > div,
.payables-reminder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.payables-reminder-row p {
  font-weight: 600;
}

.payables-reminder-row span,
.payables-reminders > div span {
  color: var(--muted);
  font-size: 0.82rem;
}

.reports {
  padding: 60px 7vw 120px;
  display: grid;
  gap: 22px;
}

.report-dashboard {
  gap: 14px;
}

.report-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-controls label {
  min-width: 220px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.report-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.report-kpi span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-kpi strong {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.report-cash-chart svg polyline#report-cash-in-line {
  stroke: #95b6ff;
  stroke-width: 1.6;
  fill: none;
}

.report-cash-chart svg polyline#report-cash-out-line {
  stroke: #8f95a1;
  stroke-width: 1.6;
  fill: none;
}

.report-cash-axis {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}

.report-viz-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-viz-controls label {
  min-width: 170px;
}

.report-viz-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.report-viz-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.report-viz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.report-viz-dot.primary {
  background: #6f79c7;
}

.report-viz-dot.secondary {
  background: #a9b5e6;
}

.report-viz-chart {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: stretch;
}

.report-viz-y-axis {
  height: 300px;
  display: grid;
  align-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  padding-right: 8px;
}

.report-viz-canvas {
  height: 300px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 25%;
  display: grid;
  grid-template-columns: repeat(12, minmax(26px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 12px 12px 8px;
}

.report-viz-month {
  display: grid;
  grid-template-columns: repeat(2, minmax(10px, 1fr));
  gap: 4px;
  align-items: end;
  height: 100%;
}

.report-viz-month.single {
  grid-template-columns: 1fr;
}

.report-viz-bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  min-height: 2px;
}

.report-viz-bar.primary {
  background: #6f79c7;
}

.report-viz-bar.secondary {
  background: #a9b5e6;
}

.report-viz-axis {
  padding-left: 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(40px, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.report-viz-axis span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-bars {
  display: grid;
  gap: 10px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(160px, 1fr) minmax(90px, 120px);
  gap: 10px;
  align-items: center;
}

.report-bar-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-bar-row strong {
  text-align: right;
}

.report-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, #5f7ca8, #425873);
  transition: width 0.25s ease;
}

.report-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.report-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.report-table {
  display: grid;
  gap: 8px;
}

.report-table > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-table > div strong {
  color: var(--text);
}

.report-table > div.strong {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  padding-top: 12px;
}

.report-table > div.strong span,
.report-table > div.strong strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .report-bar-row {
    grid-template-columns: 1fr;
  }

  .report-bar-row strong {
    text-align: left;
  }

  .payables-table-head {
    display: none;
  }

  .payables-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .payables-select {
    justify-content: flex-start;
  }

  .report-viz-chart {
    grid-template-columns: 1fr;
  }

  .report-viz-y-axis {
    height: auto;
    grid-auto-flow: column;
    text-align: left;
    padding-right: 0;
  }

  .report-viz-axis {
    padding-left: 0;
  }

.report-viz-axis span:nth-child(even) {
  display: none;
}

  .manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-card-wide {
    grid-column: span 2;
  }

  .manage-grid .report-viz-y-axis,
  .manage-grid .report-viz-canvas {
    height: 200px;
  }

  .manage-grid .report-viz-axis {
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-card-wide {
    grid-column: span 1;
  }

  .manage-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-kpi-item {
    padding: 12px 14px;
    min-height: 74px;
  }
}

.settings-dropdown {
  display: grid;
  gap: 14px;
}

.settings-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.01em;
}

.settings-dropdown > summary::-webkit-details-marker {
  display: none;
}

.settings-dropdown > summary small {
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.settings-dropdown > summary::after {
  content: "+";
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.settings-dropdown[open] > summary::after {
  content: "-";
}

.settings-dropdown-static > .settings-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.01em;
}

.settings-dropdown-static > .settings-dropdown-summary small {
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.settings-dropdown-content {
  display: grid;
  gap: 14px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.theme-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: -4px;
}

.invoice-branding-settings {
  display: grid;
  gap: 12px;
}

.invoice-defaults-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.invoice-defaults-grid .crm-wide {
  grid-column: 1 / -1;
}

.invoice-signature-settings {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed rgba(176, 205, 236, 0.26);
}

#settings-profile-feedback {
  min-height: 1.2rem;
  margin-top: 6px;
}

.invoice-branding-preview {
  min-height: 116px;
  border-radius: 14px;
  border: 1px dashed rgba(176, 205, 236, 0.42);
  background: rgba(10, 17, 31, 0.5);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoice-branding-preview img {
  max-width: min(320px, 100%);
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26));
}

.invoice-branding-placeholder {
  color: var(--muted);
  font-size: 0.86rem;
}

.invoice-branding-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-branding-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.billing-cancel-wrap {
  margin-top: 14px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(9, 14, 24, 0.42);
  max-width: 460px;
}

.billing-cancel-wrap summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.billing-cancel-wrap[open] summary {
  margin-bottom: 10px;
}

.billing-cancel-wrap .theme-note {
  margin: 0 0 10px;
  font-size: 0.78rem;
}

.billing-cancel-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.billing-cancel-phrase-label {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
}

#billing-cancel-phrase {
  width: 100%;
  margin-bottom: 10px;
}

#billing-cancel-btn {
  width: 100%;
}

#billing-cancel-feedback {
  min-height: 18px;
  margin-top: 8px;
  font-size: 0.78rem;
}

#billing-cancel-feedback.is-success {
  color: #8cd8b2;
}

#billing-cancel-feedback.is-warning {
  color: #f6c485;
}

.team-seat-form {
  display: grid;
  gap: 8px;
}

.team-seat-form label {
  font-size: 0.82rem;
  color: var(--muted);
}

.team-seat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-seat-input-row input {
  width: 100%;
}

.team-seat-meta {
  margin-top: 2px;
}

#team-seat-feedback {
  min-height: 18px;
  margin-top: -4px;
}

#team-seat-feedback.is-success {
  color: #8cd8b2;
}

#team-seat-feedback.is-warning {
  color: #f6c485;
}

.team-seat-list {
  display: grid;
  gap: 10px;
}

.team-seat-item,
.team-seat-empty {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.team-seat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-seat-email {
  font-weight: 600;
}

.team-seat-date {
  font-size: 0.76rem;
  color: var(--muted);
}

.team-seat-upgrade {
  margin-top: -2px;
}

.membership-content {
  gap: 12px;
}

.membership-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.membership-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.membership-plan-actions .ghost {
  white-space: nowrap;
}

#membership-upgrade-feedback {
  min-height: 18px;
}

#membership-upgrade-feedback.is-success {
  color: #8cd8b2;
}

#membership-upgrade-feedback.is-warning {
  color: #f6c485;
}

.membership-plan-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-plan-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 3px;
}

#membership-plan-status {
  margin-top: 4px;
}

.billing-plan-modal-content {
  width: min(760px, 92vw);
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.billing-plan-grid-single {
  justify-content: center;
}

.billing-plan-grid-single > .billing-plan-option {
  max-width: 420px;
  justify-self: center;
}

.billing-plan-option {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 7px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.billing-plan-option:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 173, 233, 0.36);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(6, 12, 23, 0.22);
}

.billing-plan-option:focus-visible {
  outline: none;
  border-color: rgba(132, 188, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(92, 162, 236, 0.18);
}

.billing-plan-option strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.billing-plan-option em {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(244, 248, 255, 0.96);
  letter-spacing: -0.02em;
}

.billing-plan-option span {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.billing-plan-option small {
  color: var(--muted);
  line-height: 1.4;
}

.billing-plan-option.is-current,
.billing-plan-option:disabled {
  border-color: rgba(122, 201, 165, 0.34);
  background: rgba(88, 154, 122, 0.12);
  box-shadow: inset 0 0 0 1px rgba(122, 201, 165, 0.12);
  cursor: default;
  transform: none;
  opacity: 1;
}

.billing-plan-option.is-busy {
  opacity: 0.7;
  cursor: progress;
}

body.theme-professional .billing-plan-option,
body.theme-koala .billing-plan-option,
body.theme-sky .billing-plan-option {
  border-color: rgba(131, 166, 204, 0.24);
  background: rgba(243, 248, 253, 0.92);
}

body.theme-professional .billing-plan-option:hover,
body.theme-koala .billing-plan-option:hover,
body.theme-sky .billing-plan-option:hover {
  border-color: rgba(108, 154, 206, 0.34);
  background: rgba(248, 252, 255, 0.98);
  box-shadow: 0 14px 26px rgba(93, 123, 156, 0.14);
}

body.theme-professional .billing-plan-option.is-current,
body.theme-koala .billing-plan-option.is-current,
body.theme-sky .billing-plan-option.is-current,
body.theme-professional .billing-plan-option:disabled,
body.theme-koala .billing-plan-option:disabled,
body.theme-sky .billing-plan-option:disabled {
  border-color: rgba(110, 176, 135, 0.34);
  background: rgba(225, 243, 232, 0.92);
}

body.theme-professional .billing-plan-option em,
body.theme-koala .billing-plan-option em,
body.theme-sky .billing-plan-option em {
  color: rgba(21, 41, 66, 0.92);
}

.stripe-connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.stripe-connect-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stripe-connect-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.stripe-connect-logo {
  display: block;
  width: 72px;
  height: auto;
}

.stripe-connect-status {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

#stripe-connect-details {
  margin-top: 4px;
}

.stripe-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-professional .stripe-connect-logo-wrap,
body.theme-koala .stripe-connect-logo-wrap,
body.theme-sky .stripe-connect-logo-wrap {
  border-color: rgba(113, 151, 191, 0.34);
  background: rgba(165, 196, 232, 0.24);
}

#stripe-connect-feedback {
  min-height: 18px;
  margin-top: 8px;
}

#stripe-connect-feedback.is-success {
  color: #8cd8b2;
}

#stripe-connect-feedback.is-warning {
  color: #f6c485;
}

@media (max-width: 1100px) {
  .settings {
    grid-template-columns: 1fr;
    padding: 48px 7vw 100px;
  }

  .settings-column {
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .invoice-defaults-grid {
    grid-template-columns: 1fr;
  }

  .usage-panel-grid {
    grid-template-columns: 1fr;
  }

  .membership-plan-row {
    align-items: stretch;
  }

  .membership-plan-actions {
    width: 100%;
    justify-content: stretch;
  }

  .membership-plan-actions .ghost {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .stripe-connect-actions {
    width: 100%;
  }

  .stripe-connect-meta {
    width: 100%;
  }

  .stripe-connect-actions button {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .team-seat-input-row {
    grid-template-columns: 1fr;
  }

  .team-seat-input-row button {
    width: 100%;
  }

  .team-seat-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.theme-card {
  background: rgba(12, 18, 32, 0.85);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.theme-card h3 {
  margin: 0;
  font-size: 0.9rem;
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.theme-card .primary {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.theme-preview {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 82px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
}

.theme-preview.moonlight {
  background-image:
    radial-gradient(circle at 78% 24%, rgba(255, 228, 181, 0.96) 0 10px, transparent 11px),
    radial-gradient(circle at 20% 18%, rgba(108, 148, 230, 0.32), transparent 34%),
    radial-gradient(circle at 72% 14%, rgba(82, 109, 193, 0.3), transparent 38%),
    linear-gradient(180deg, #0d1530 0%, #16244e 40%, #22466f 41%, #173353 66%, #09111f 100%);
}

.theme-preview.moonlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(245, 250, 255, 0.82) 1.1px, transparent 1.7px),
    radial-gradient(rgba(214, 228, 252, 0.55) 1px, transparent 1.5px);
  background-size: 72px 38px, 108px 54px;
  background-position: 0 0, 16px 10px;
  opacity: 0.58;
  pointer-events: none;
}

.theme-preview.moonlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background:
    linear-gradient(180deg, rgba(118, 165, 223, 0) 0%, rgba(89, 138, 198, 0.18) 30%, rgba(56, 95, 146, 0.42) 100%),
    linear-gradient(180deg, rgba(16, 31, 54, 0.04), rgba(7, 16, 30, 0.7));
  pointer-events: none;
}

.theme-preview.wave {
  background-image: radial-gradient(circle at 18% 24%, rgba(107, 180, 201, 0.42), transparent 44%),
    radial-gradient(circle at 80% 16%, rgba(82, 143, 188, 0.36), transparent 44%),
    linear-gradient(160deg, #08121c 0%, #0a1b2a 65%, #08141f 100%);
}

.theme-preview.bubble {
  background-image: radial-gradient(circle at 22% 28%, rgba(168, 223, 255, 0.45), transparent 38%),
    radial-gradient(circle at 78% 22%, rgba(124, 188, 240, 0.38), transparent 35%),
    radial-gradient(circle at 86% 74%, rgba(153, 213, 255, 0.28), transparent 42%),
    linear-gradient(160deg, #0a1523 0%, #0c1c2e 65%, #091523 100%);
}

.theme-preview.koala {
  background-image: radial-gradient(circle at 22% 26%, rgba(194, 223, 246, 0.72), transparent 44%),
    radial-gradient(circle at 82% 18%, rgba(167, 206, 238, 0.56), transparent 44%),
    linear-gradient(160deg, #f9fdff 0%, #edf6fd 62%, #e8f1fb 100%);
}

.theme-preview.glow {
  background-image: radial-gradient(circle at 18% 24%, rgba(138, 197, 236, 0.26), transparent 42%),
    radial-gradient(circle at 80% 18%, rgba(102, 165, 208, 0.2), transparent 40%),
    linear-gradient(160deg, #0a0f17 0%, #0d141d 58%, #090e15 100%);
}

.theme-preview.glow::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 7px;
  border: 1px solid rgba(150, 206, 243, 0.32);
  box-shadow: 0 0 0 1px rgba(124, 186, 230, 0.14);
}

.theme-preview.sunset {
  background-image:
    radial-gradient(56px 24px at 24% 22%, rgba(255, 198, 150, 0.4) 0 100%, transparent 100%),
    radial-gradient(60px 24px at 76% 16%, rgba(246, 160, 132, 0.32) 0 100%, transparent 100%),
    radial-gradient(circle at 82% 30%, rgba(255, 191, 126, 0.92) 0 14px, transparent 15px),
    linear-gradient(180deg, #3b1a29 0%, #683043 50%, #d06c4f 60%, #8a3e55 100%);
}

.theme-preview.sunset::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background-image: repeating-linear-gradient(
    -5deg,
    rgba(255, 210, 164, 0.34) 0 1px,
    transparent 1px 9px
  );
  opacity: 0.84;
  pointer-events: none;
}

.theme-preview.professional {
  background-image: linear-gradient(160deg, #f8fafd 0%, #eef2f7 58%, #e3e9f0 100%);
}

.theme-preview.dark {
  background-image: linear-gradient(160deg, #06080c 0%, #0a0d12 62%, #030407 100%);
}

.theme-preview.tropical {
  background-image:
    radial-gradient(circle at 76% 20%, rgba(255, 245, 184, 0.95) 0 9px, transparent 10px),
    radial-gradient(circle at 18% 18%, rgba(73, 215, 197, 0.34), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(61, 158, 226, 0.32), transparent 36%),
    linear-gradient(180deg, #0d3a4b 0%, #125563 42%, #19816d 43%, #145147 68%, #081a22 100%);
}

.theme-preview.tropical::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 74%, rgba(16, 50, 40, 0.88) 0 10px, transparent 11px),
    radial-gradient(circle at 88% 68%, rgba(14, 48, 39, 0.84) 0 11px, transparent 12px);
  opacity: 0.42;
  pointer-events: none;
}

.theme-preview.tropical::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background:
    linear-gradient(180deg, rgba(65, 205, 175, 0) 0%, rgba(46, 177, 152, 0.18) 28%, rgba(15, 114, 103, 0.52) 100%),
    linear-gradient(180deg, rgba(8, 29, 35, 0.06), rgba(5, 18, 24, 0.72));
  pointer-events: none;
}

@media (max-width: 760px) {
  .theme-preview {
    transform: none !important;
    -webkit-transform: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .theme-preview::before,
  .theme-preview::after {
    transform: none !important;
    -webkit-transform: none !important;
  }

  .theme-preview.moonlight::before,
  .theme-preview.moonlight::after,
  .theme-preview.tropical::before,
  .theme-preview.tropical::after {
    content: none;
  }

  .theme-preview.moonlight {
    background-image:
      radial-gradient(circle at 78% 24%, rgba(255, 228, 181, 0.94) 0 9px, transparent 10px),
      radial-gradient(circle at 22% 18%, rgba(109, 149, 229, 0.28), transparent 31%),
      linear-gradient(180deg, #0d1530 0%, #17254d 52%, #22466d 53%, #0b1424 100%);
  }

  .theme-preview.tropical {
    background-image:
      radial-gradient(circle at 76% 20%, rgba(255, 245, 184, 0.94) 0 8px, transparent 9px),
      radial-gradient(circle at 18% 18%, rgba(73, 215, 197, 0.28), transparent 29%),
      linear-gradient(180deg, #0d3a4b 0%, #125864 48%, #19816d 49%, #081a22 100%);
  }
}

.theme-preview.neon {
  background-image: radial-gradient(circle at 20% 20%, rgba(184, 103, 255, 0.45), transparent 45%),
    radial-gradient(circle at 78% 16%, rgba(120, 56, 230, 0.42), transparent 45%),
    linear-gradient(160deg, #0a0711 0%, #07050d 65%, #040308 100%);
}

.theme-preview.slate {
  background-image: radial-gradient(circle at 20% 20%, rgba(154, 168, 189, 0.38), transparent 46%),
    radial-gradient(circle at 82% 14%, rgba(100, 113, 133, 0.3), transparent 44%),
    linear-gradient(160deg, #10151f 0%, #121923 65%, #0d131c 100%);
}

.theme-preview.sage {
  background-image: radial-gradient(circle at 20% 20%, rgba(141, 187, 160, 0.4), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(92, 144, 117, 0.3), transparent 45%),
    linear-gradient(160deg, #0c1613 0%, #12201a 65%, #0c1712 100%);
}

.theme-preview.dawn {
  background-image: radial-gradient(circle at 20% 20%, rgba(235, 190, 147, 0.38), transparent 45%),
    radial-gradient(circle at 82% 14%, rgba(212, 151, 112, 0.3), transparent 45%),
    linear-gradient(160deg, #17110d 0%, #211711 65%, #160f0a 100%);
}

.theme-preview.rose {
  background-image: radial-gradient(circle at 20% 20%, rgba(224, 165, 196, 0.38), transparent 45%),
    radial-gradient(circle at 82% 14%, rgba(181, 126, 156, 0.3), transparent 45%),
    linear-gradient(160deg, #180f15 0%, #21131c 65%, #150c12 100%);
}

.theme-card .primary.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 12px 28px rgba(16, 26, 46, 0.45);
  filter: brightness(1.06);
}

.settings-page {
  padding: 46px 6vw 110px;
  display: grid;
  gap: 20px;
}

.settings-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(124, 180, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(13, 22, 38, 0.92), rgba(10, 17, 31, 0.88));
  border: 1px solid rgba(168, 203, 245, 0.16);
  box-shadow: 0 26px 48px rgba(4, 8, 17, 0.28);
}

.settings-hero::before {
  content: "";
  position: absolute;
  inset: auto -100px -120px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 174, 255, 0.14), transparent 66%);
  pointer-events: none;
}

.settings-hero-copy,
.settings-hero-grid {
  position: relative;
  z-index: 1;
}

.settings-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 720px;
}

.settings-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(169, 205, 246, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #cfe1ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.settings-hero p {
  margin: 0;
  max-width: 60ch;
  color: rgba(223, 234, 248, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
}

.settings-hero-grid {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.settings-highlight-card {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(178, 209, 244, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.settings-highlight-label {
  color: #9ec8ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-highlight-card strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.settings-highlight-card p {
  margin: 0;
  color: rgba(211, 225, 242, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

.settings {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 20px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.settings-column-secondary {
  position: sticky;
  top: 96px;
}

.settings-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  gap: 18px;
  border-radius: 22px;
  border: 1px solid rgba(172, 205, 242, 0.12);
  background:
    linear-gradient(150deg, rgba(15, 23, 39, 0.9), rgba(10, 17, 29, 0.86));
  box-shadow: 0 18px 42px rgba(3, 7, 15, 0.22);
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 225, 248, 0.22), transparent);
  pointer-events: none;
}

.settings-card > * {
  position: relative;
  z-index: 1;
}

.settings-card-spacious {
  padding: 24px;
}

.settings-card-spotlight {
  background:
    radial-gradient(circle at top right, rgba(120, 169, 255, 0.12), transparent 38%),
    linear-gradient(150deg, rgba(16, 24, 41, 0.94), rgba(11, 18, 31, 0.9));
}

.settings-card-compact {
  gap: 14px;
}

.settings-card-intro {
  display: grid;
  gap: 10px;
}

.settings-section-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(160, 199, 244, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(204, 223, 246, 0.88);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-header.panel-header-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.panel-header.panel-header-stack p {
  margin: 0;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.panel-header.panel-header-stack span {
  color: rgba(217, 229, 244, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.settings-page .theme-note {
  margin: 0;
  color: rgba(206, 220, 240, 0.72);
  font-size: 0.84rem;
  line-height: 1.55;
}

.settings-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 208, 243, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.settings-form-heading {
  display: grid;
  gap: 4px;
}

.settings-form-heading h3 {
  margin: 0;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 0.92rem;
}

.settings-form-heading p {
  margin: 0;
  color: rgba(205, 219, 238, 0.68);
  font-size: 0.82rem;
  line-height: 1.48;
}

.invoice-defaults-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.invoice-defaults-grid label {
  display: grid;
  gap: 8px;
  color: rgba(205, 219, 238, 0.74);
  font-size: 0.82rem;
}

.settings-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-brand-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(177, 208, 243, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.settings-brand-head {
  display: grid;
  gap: 4px;
}

.settings-brand-head strong {
  color: var(--text);
  font-size: 0.92rem;
}

.settings-brand-head span {
  color: rgba(204, 219, 238, 0.68);
  font-size: 0.79rem;
  line-height: 1.5;
}

.invoice-branding-preview {
  min-height: 136px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(177, 208, 243, 0.28);
  background: linear-gradient(145deg, rgba(9, 16, 28, 0.78), rgba(14, 23, 37, 0.6));
}

.invoice-branding-preview img {
  max-height: 90px;
}

.settings-save-actions {
  padding-top: 4px;
}

.theme-grid-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-card {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  gap: 12px;
  background: linear-gradient(150deg, rgba(12, 19, 33, 0.9), rgba(9, 15, 26, 0.84));
  border: 1px solid rgba(177, 208, 243, 0.12);
}

.theme-card h3 {
  font-size: 0.96rem;
}

.theme-card p {
  font-size: 0.79rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.theme-card .primary {
  width: 100%;
  min-height: 38px;
  justify-content: center;
  font-size: 0.8rem;
}

.membership-plan-row {
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 208, 243, 0.14);
  background: linear-gradient(145deg, rgba(22, 33, 55, 0.62), rgba(14, 22, 37, 0.5));
  gap: 14px;
}

.membership-plan-label {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.membership-plan-value {
  margin-top: 6px;
  font-size: 1.44rem;
  letter-spacing: -0.03em;
}

#membership-plan-status {
  margin-top: 8px;
  max-width: 34ch;
  line-height: 1.48;
}

.membership-plan-actions {
  justify-content: flex-start;
}

.membership-plan-actions .ghost {
  min-height: 40px;
}

.billing-cancel-wrap {
  margin-top: 0;
  padding: 14px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 208, 243, 0.12);
  background: rgba(255, 255, 255, 0.03);
  max-width: none;
}

.billing-cancel-wrap summary {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.billing-cancel-wrap[open] summary {
  margin-bottom: 12px;
}

.billing-cancel-wrap .theme-note {
  margin: 0 0 12px;
}

.billing-cancel-check {
  margin-bottom: 12px;
}

#billing-cancel-phrase {
  margin-bottom: 12px;
}

#membership-upgrade-feedback,
#settings-profile-feedback,
#stripe-connect-feedback,
#team-seat-feedback,
#billing-cancel-feedback {
  min-height: 18px;
}

.settings-usage-panel {
  gap: 16px;
}

.settings-usage-panel .usage-panel-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.settings-usage-panel .usage-meter-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(177, 208, 243, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.settings-usage-panel .usage-meter-card:first-child {
  padding-top: 14px;
  border-top: 1px solid rgba(177, 208, 243, 0.12);
}

.settings-usage-panel .usage-meter-header {
  align-items: flex-start;
}

.settings-usage-panel .usage-meter-value {
  font-size: 1.2rem;
}

.settings-usage-panel .usage-meter-note {
  margin-top: 0;
}

.usage-meter-label {
  font-size: 0.8rem;
}

.usage-meter-track {
  height: 9px;
}

.settings-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-mini-points span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(177, 208, 243, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(208, 221, 239, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
}

.stripe-connect-row {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 208, 243, 0.14);
  background: linear-gradient(145deg, rgba(20, 31, 53, 0.56), rgba(13, 21, 35, 0.42));
  gap: 14px;
}

.stripe-connect-meta {
  align-items: flex-start;
}

.stripe-connect-logo-wrap {
  min-height: 34px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.stripe-connect-status {
  font-size: 1.02rem;
}

#stripe-connect-details {
  margin-top: 4px;
  max-width: 34ch;
  line-height: 1.45;
}

.stripe-connect-actions {
  justify-content: flex-start;
}

.stripe-connect-actions button {
  min-height: 40px;
}

.team-seat-form,
.team-seat-list {
  gap: 12px;
}

.team-seat-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.team-seat-item,
.team-seat-empty {
  padding: 14px;
  border-radius: 16px;
  border-color: rgba(177, 208, 243, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

body.theme-professional .settings-hero,
body.theme-koala .settings-hero,
body.theme-sky .settings-hero {
  background:
    radial-gradient(circle at top right, rgba(145, 188, 229, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(245, 249, 253, 0.98), rgba(232, 240, 248, 0.96));
  border-color: rgba(133, 167, 204, 0.22);
}

body.theme-professional :is(.settings-highlight-card, .settings-form-section, .settings-brand-card, .membership-plan-row, .billing-cancel-wrap, .settings-mini-points span, .stripe-connect-row, .team-seat-item, .team-seat-empty),
body.theme-koala :is(.settings-highlight-card, .settings-form-section, .settings-brand-card, .membership-plan-row, .billing-cancel-wrap, .settings-mini-points span, .stripe-connect-row, .team-seat-item, .team-seat-empty),
body.theme-sky :is(.settings-highlight-card, .settings-form-section, .settings-brand-card, .membership-plan-row, .billing-cancel-wrap, .settings-mini-points span, .stripe-connect-row, .team-seat-item, .team-seat-empty) {
  background: rgba(247, 251, 255, 0.9);
  border-color: rgba(127, 160, 195, 0.18);
}

body.theme-professional :is(.settings-eyebrow, .settings-section-tag),
body.theme-koala :is(.settings-eyebrow, .settings-section-tag),
body.theme-sky :is(.settings-eyebrow, .settings-section-tag) {
  background: rgba(165, 196, 232, 0.24);
  border-color: rgba(118, 152, 189, 0.24);
  color: #3c6189;
}

body.theme-professional .settings-hero p,
body.theme-professional .settings-highlight-card p,
body.theme-professional .settings-form-heading p,
body.theme-professional .settings-page .theme-note,
body.theme-professional .settings-brand-head span,
body.theme-professional .settings-mini-points span,
body.theme-professional .panel-header.panel-header-stack span,
body.theme-koala .settings-hero p,
body.theme-koala .settings-highlight-card p,
body.theme-koala .settings-form-heading p,
body.theme-koala .settings-page .theme-note,
body.theme-koala .settings-brand-head span,
body.theme-koala .settings-mini-points span,
body.theme-koala .panel-header.panel-header-stack span,
body.theme-sky .settings-hero p,
body.theme-sky .settings-highlight-card p,
body.theme-sky .settings-form-heading p,
body.theme-sky .settings-page .theme-note,
body.theme-sky .settings-brand-head span,
body.theme-sky .settings-mini-points span,
body.theme-sky .panel-header.panel-header-stack span {
  color: rgba(76, 97, 122, 0.82);
}

body.theme-professional .invoice-branding-preview,
body.theme-koala .invoice-branding-preview,
body.theme-sky .invoice-branding-preview {
  background: linear-gradient(145deg, rgba(244, 249, 253, 0.96), rgba(236, 244, 251, 0.96));
  border-color: rgba(127, 160, 195, 0.22);
}

@media (max-width: 1180px) {
  .settings-page {
    padding: 42px 6vw 100px;
  }

  .settings-hero {
    grid-template-columns: 1fr;
  }

  .settings {
    grid-template-columns: 1fr;
  }

  .settings-column-secondary {
    position: static;
  }

  .settings-usage-panel .usage-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .settings-page {
    padding: 34px 5vw 92px;
    gap: 16px;
  }

  .settings {
    gap: 16px;
  }

  .settings-column {
    gap: 16px;
  }

  .settings-hero,
  .settings-card,
  .settings-card-spacious {
    padding: 20px;
    border-radius: 22px;
  }

  .settings-hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .invoice-defaults-grid,
  .settings-brand-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .theme-grid-settings,
  .settings-usage-panel .usage-panel-grid {
    grid-template-columns: 1fr;
  }

  .settings-highlight-card {
    padding: 14px;
  }

  .membership-plan-row,
  .stripe-connect-row {
    padding: 14px;
  }

  .membership-plan-actions,
  .stripe-connect-actions,
  .invoice-branding-actions,
  .settings-save-actions {
    width: 100%;
  }

  .membership-plan-actions .ghost,
  .stripe-connect-actions button,
  .invoice-branding-actions button,
  .settings-save-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .settings-mini-points {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .settings-page {
    padding: 18px 4vw 92px;
    gap: 10px;
  }

  .settings {
    gap: 10px;
  }

  .settings-column {
    gap: 10px;
  }

  .settings-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  .settings-hero-copy {
    gap: 8px;
  }

  .settings-eyebrow {
    padding: 5px 9px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .settings-hero h1 {
    max-width: 16ch;
    font-size: clamp(1.15rem, 5.7vw, 1.5rem);
    line-height: 1.08;
  }

  .settings-hero p,
  .settings-hero-grid {
    display: none;
  }

  .settings-card,
  .settings-card-spacious,
  .settings-card-spotlight,
  .settings-card-compact {
    padding: 12px;
    gap: 10px;
    border-radius: 16px;
  }

  .settings-card-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .settings-section-tag {
    padding: 5px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }

  .panel-header.panel-header-stack {
    gap: 2px;
  }

  .panel-header.panel-header-stack p {
    font-size: 0.82rem;
  }

  .panel-header.panel-header-stack span {
    display: none;
  }

  .settings-mobile-card-toggle {
    min-width: 72px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .settings-mobile-card-toggle::after {
    content: "+";
    margin-left: 6px;
    font-size: 0.9rem;
    line-height: 1;
  }

  .settings-card[data-mobile-open='1'] .settings-mobile-card-toggle::after {
    content: "−";
  }

  .settings-card-mobile-body {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .settings-card-mobile-body[hidden] {
    display: none !important;
  }

  .settings-form-section {
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .settings-form-heading {
    gap: 2px;
  }

  .settings-form-heading h3 {
    font-size: 0.78rem;
  }

  .settings-form-heading p,
  .settings-brand-head span,
  .theme-card p,
  .settings-page .theme-note,
  .settings-mini-points {
    display: none;
  }

  .invoice-defaults-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .invoice-defaults-grid label {
    gap: 5px;
    font-size: 0.72rem;
  }

  .invoice-defaults-grid label.crm-wide {
    grid-column: 1 / -1;
  }

  .invoice-defaults-grid :is(input, select, textarea),
  .team-seat-input-row :is(input, button),
  .membership-plan-actions .ghost,
  .stripe-connect-actions button,
  .invoice-branding-actions button,
  .settings-save-actions button,
  .billing-cancel-wrap :is(input, button) {
    min-height: 40px;
    font-size: 16px;
  }

  .invoice-defaults-grid textarea {
    min-height: 74px;
  }

  .settings-brand-grid,
  .theme-grid-settings,
  .settings-usage-panel .usage-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .settings-brand-card,
  .theme-card,
  .membership-plan-row,
  .billing-cancel-wrap,
  .settings-usage-panel .usage-meter-card,
  .stripe-connect-row,
  .team-seat-item,
  .team-seat-empty {
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .settings-brand-head strong,
  .theme-card h3,
  .stripe-connect-status {
    font-size: 0.8rem;
  }

  .invoice-branding-preview {
    min-height: 82px;
    padding: 10px;
    border-radius: 12px;
  }

  .invoice-branding-preview img {
    max-height: 52px;
  }

  .theme-card {
    gap: 8px;
  }

  .theme-card .primary {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .theme-preview {
    min-height: 64px;
    border-radius: 12px;
  }

  .membership-plan-value {
    margin-top: 2px;
    font-size: 1.04rem;
  }

  #membership-plan-status,
  #stripe-connect-details,
  .settings-usage-panel .usage-meter-note {
    max-width: none;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .settings-usage-panel .usage-meter-value {
    font-size: 0.98rem;
  }

  .usage-meter-label {
    font-size: 0.72rem;
  }

  .usage-meter-track {
    height: 7px;
  }

  .team-seat-form,
  .team-seat-list {
    gap: 8px;
  }

  .team-seat-input-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

body.theme-neon .theme-card .primary.is-active {
  box-shadow: 0 0 0 1px rgba(223, 186, 255, 0.36), 0 14px 30px rgba(109, 45, 200, 0.48);
}

body.theme-neon :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row
  ) {
  border-color: rgba(177, 106, 250, 0.24);
}

body.theme-neon :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content) {
  box-shadow: 0 16px 34px rgba(24, 10, 48, 0.34);
}

body.theme-neon .panel-header span {
  color: #da95ff;
}

body.theme-glow :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row,
    .command-pill
  ) {
  --glow-edge: rgba(112, 201, 255, 0.44);
  --glow-border: rgba(98, 178, 226, 0.48);
  border-color: rgba(98, 178, 226, 0.48);
  background: linear-gradient(160deg, rgba(4, 7, 11, 0.94), rgba(6, 9, 13, 0.92));
}

body.theme-glow :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content, .command-pill) {
  border-color: var(--glow-border);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow-border) 62%, transparent),
    0 0 24px -8px var(--glow-edge),
    0 14px 30px rgba(3, 8, 14, 0.56);
}

body.theme-glow .panel-header span {
  color: #9bd5ff;
}

body.theme-glow [data-glow-accent="cyan"] {
  --glow-edge: rgba(112, 201, 255, 0.56);
  --glow-border: rgba(98, 178, 226, 0.52);
}

body.theme-glow [data-glow-accent="violet"] {
  --glow-edge: rgba(194, 122, 255, 0.52);
  --glow-border: rgba(170, 120, 224, 0.48);
}

body.theme-glow [data-glow-accent="mint"] {
  --glow-edge: rgba(127, 236, 197, 0.5);
  --glow-border: rgba(102, 204, 171, 0.46);
}

body.theme-glow [data-glow-accent="amber"] {
  --glow-edge: rgba(255, 172, 122, 0.46);
  --glow-border: rgba(224, 153, 114, 0.44);
}

body.theme-koala :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row,
    .command-pill
  ) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(241, 248, 255, 0.88));
  border-color: rgba(139, 172, 206, 0.3);
}

body.theme-koala :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content, .command-pill) {
  box-shadow: 0 14px 30px rgba(105, 136, 168, 0.16);
}

body.theme-koala .panel-header span {
  color: #6789a8;
}

body.theme-koala .sidebar-nav a:hover {
  background: rgba(133, 172, 208, 0.18);
}

body.theme-koala .sidebar-nav a.active {
  background: rgba(133, 172, 208, 0.24);
  border-color: rgba(117, 157, 197, 0.34);
}

body.theme-koala .invoice-content :is(input, select, textarea) {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(130, 167, 200, 0.44);
  color: #1f3a53;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-koala .invoice-content :is(input, textarea)::placeholder {
  color: rgba(88, 116, 144, 0.75);
}

body.theme-koala .invoice-content .address-fields {
  background: rgba(239, 248, 255, 0.82);
  border-color: rgba(141, 177, 209, 0.38);
}

body.theme-koala .invoice-content .item-row {
  background: rgba(246, 252, 255, 0.7);
  border-color: rgba(151, 187, 218, 0.32);
}

body.theme-koala .invoice-content .item-amount {
  color: #2a5579;
}

body.theme-professional :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row,
    .command-pill
  ) {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.92));
  border-color: rgba(149, 160, 171, 0.28);
}

body.theme-professional :is(
    .panel-block,
    .invoice-form,
    .panel-card,
    .sidebar,
    .hero-panel,
    .theme-card,
    .modal-content,
    .command-pill
  ) {
  box-shadow: 0 12px 26px rgba(138, 149, 162, 0.14);
}

body.theme-professional .panel-header span {
  color: #5b6674;
}

body.theme-professional .sidebar-nav a:hover {
  background: rgba(152, 162, 172, 0.16);
}

body.theme-professional .sidebar-nav a.active {
  background: rgba(152, 162, 172, 0.22);
  border-color: rgba(127, 138, 149, 0.34);
}

body.theme-professional .invoice-content :is(input, select, textarea) {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(151, 161, 173, 0.42);
  color: #1f2730;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-professional .invoice-content :is(input, textarea)::placeholder {
  color: rgba(94, 104, 116, 0.68);
}

body.theme-professional .invoice-content .address-fields {
  background: rgba(247, 249, 252, 0.9);
  border-color: rgba(168, 177, 188, 0.3);
}

body.theme-professional .invoice-content .item-row {
  background: rgba(251, 252, 253, 0.94);
  border-color: rgba(175, 184, 194, 0.3);
}

body.theme-professional .invoice-content .item-amount {
  color: #2c3743;
}

body:is(.theme-sunset, .theme-dark, .theme-tropical) :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row,
    .command-pill
  ) {
  border-color: rgba(170, 197, 221, 0.16);
}

body.theme-sunset :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content) {
  box-shadow: 0 16px 34px rgba(47, 24, 40, 0.34);
}

body.theme-sunset .panel-header span {
  color: #f0ad8f;
}

body.theme-dark :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content) {
  background: linear-gradient(165deg, rgba(10, 12, 18, 0.95), rgba(6, 8, 13, 0.95));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

body.theme-dark .panel-header span {
  color: #a8b0c1;
}

body.theme-dark .sidebar-nav a:hover {
  background: rgba(103, 111, 127, 0.18);
}

body.theme-dark .sidebar-nav a.active {
  background: rgba(103, 111, 127, 0.24);
  border-color: rgba(103, 111, 127, 0.36);
}

body.theme-tropical :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content) {
  box-shadow: 0 16px 34px rgba(10, 58, 58, 0.32);
}

body.theme-tropical .panel-header span {
  color: #8fe6d4;
}

.dashboard-summary {
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.manage-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.manage-kpi-item {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  min-height: 106px;
}

.manage-kpi-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.manage-kpi-item:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.manage-kpi-item .panel-title {
  font-size: 0.86rem;
  color: var(--muted);
}

.manage-kpi-item .panel-value {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.26rem);
}

.dashboard-summary .kpi-sent .panel-value {
  color: #b8deff;
}

.dashboard-summary .kpi-paid .panel-value {
  color: #98f2cb;
}

.dashboard-summary .kpi-pending .panel-value {
  color: #ffd993;
}

.dashboard-summary .kpi-overdue .panel-value {
  color: #ffb0b0;
}

.dashboard-summary.is-loading .panel-value {
  color: var(--muted);
  animation: kpiLoadingPulse 1.2s ease-in-out infinite;
}

.manage-shell {
  gap: 20px;
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.manage-card {
  min-height: 100%;
}

.manage-card-wide {
  grid-column: span 3;
}

.panel-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.manage-expand-btn {
  min-width: 82px;
}

.manage-grid .report-viz-chart {
  grid-template-columns: 52px 1fr;
}

.manage-grid .report-viz-y-axis {
  height: 180px;
  font-size: 0.72rem;
}

.manage-grid .report-viz-canvas {
  height: 180px;
}

.manage-grid .report-viz-axis {
  padding-left: 62px;
}

.manage-grid .transaction-list {
  max-height: 164px;
  overflow: auto;
}

.manage-expand-modal-content {
  width: min(980px, 94vw);
  max-height: 88vh;
}

.manage-expand-modal-body {
  overflow: auto;
}

.manage-expand-modal-body .report-viz-chart {
  grid-template-columns: 70px 1fr;
}

.manage-expand-modal-body .report-viz-y-axis,
.manage-expand-modal-body .report-viz-canvas {
  height: 300px;
}

.manage-expand-modal-body .report-viz-axis {
  padding-left: 80px;
}

.dashboard-onboarding {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-onboarding .panel-value {
  margin: 6px 0;
  font-size: 1.05rem;
}

.dashboard-onboarding .primary {
  white-space: nowrap;
}

.invoice-list {
  display: grid;
  gap: 12px;
}

.manage-doc-toggle {
  display: inline-flex;
  gap: 0;
  margin-bottom: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(151, 184, 220, 0.32);
  background: rgba(8, 19, 33, 0.64);
}

.manage-doc-toggle .ghost {
  min-width: 0;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: 0;
  background: transparent;
}

.manage-doc-toggle .ghost.is-active {
  background: linear-gradient(180deg, rgba(143, 214, 255, 0.38), rgba(69, 159, 223, 0.34));
  color: #e9f6ff;
  box-shadow: inset 0 0 0 1px rgba(208, 235, 255, 0.6);
}

.invoice-toolbar {
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 12px;
}

.invoice-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invoice-filter-group .ghost {
  padding: 9px 14px;
  font-size: 0.86rem;
  border-radius: 999px;
  border-color: rgba(167, 195, 223, 0.3);
  background: rgba(13, 31, 51, 0.44);
}

.invoice-filter-group .ghost.is-active {
  background: linear-gradient(180deg, rgba(143, 214, 255, 0.36), rgba(69, 159, 223, 0.32));
  border-color: rgba(201, 233, 255, 0.62);
  color: #e9f6ff;
}

.invoice-date-filter-wrap {
  display: grid;
  gap: 8px;
}

.invoice-date-filter-wrap > span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.invoice-search {
  min-width: min(420px, 100%);
  width: min(420px, 100%);
  display: grid;
  gap: 5px;
}

.invoice-search span {
  color: var(--muted);
  font-size: 0.76rem;
}

.invoice-search input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.9rem;
}

.invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(159, 191, 223, 0.2);
  border-left: 4px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.invoice-row.invoice-row-paid {
  border-left-color: #63efb5;
  background: rgba(66, 176, 129, 0.12);
}

.invoice-row.invoice-row-pending,
.invoice-row.invoice-row-unpaid {
  border-left-color: #ffc975;
  background: rgba(181, 130, 66, 0.13);
}

.invoice-row.invoice-row-overdue {
  border-left-color: #ff8f8f;
  background: rgba(170, 69, 69, 0.16);
}

.invoice-row-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.invoice-row-title {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.invoice-row-meta,
.invoice-row-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.83rem;
}

.invoice-row-amount {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 0.96rem;
}

.invoice-status-chip {
  text-transform: capitalize;
  border-radius: 999px;
  padding: 5px 11px;
  border: 1px solid rgba(174, 208, 237, 0.56);
  background: rgba(73, 142, 197, 0.28);
  color: #e9f6ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(227, 242, 255, 0.18);
}

.invoice-status-chip.paid {
  border-color: rgba(143, 235, 202, 0.72);
  background: rgba(87, 190, 151, 0.36);
  color: #dcffef;
}

.invoice-status-chip.pending,
.invoice-status-chip.unpaid {
  border-color: rgba(255, 214, 148, 0.72);
  background: rgba(188, 137, 71, 0.38);
  color: #fff0cc;
}

.invoice-status-chip.overdue {
  border-color: rgba(255, 170, 170, 0.72);
  background: rgba(179, 84, 84, 0.4);
  color: #ffdada;
}

.invoice-row-hint {
  display: none;
}

.invoice-row-hint-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-grid;
  place-items: center;
  font-size: 0.67rem;
  font-weight: 700;
}

.invoice-row-empty {
  align-items: center;
}

.invoice-row-empty > div {
  display: grid;
  gap: 4px;
}

.invoice-row-loading {
  opacity: 0.85;
}

.invoice-empty-cta {
  white-space: nowrap;
}

.invoice-row strong.status {
  text-transform: capitalize;
}

.invoice-row strong.status.paid {
  color: var(--glow);
}

.invoice-row strong.status.pending {
  color: var(--pulse);
}

.invoice-due-state {
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(168, 200, 227, 0.32);
  background: rgba(60, 116, 167, 0.16);
}

.invoice-due-state.due {
  color: #b9d7ff;
}

.invoice-due-state.due-soon {
  color: #ffd18a;
}

.invoice-due-state.overdue {
  color: #ff9f9f;
}

.invoice-due-state.paid {
  color: #8af0cd;
}

.invoice-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.invoice-actions-row .ghost,
.invoice-actions-row .primary {
  padding: 8px 12px;
  font-size: 0.78rem;
}

.invoice-list-compact .invoice-row {
  padding: 12px 14px;
}

.invoice-list-compact .invoice-row > div {
  display: grid;
  gap: 4px;
}

.reminder-modal-content {
  width: min(760px, 92vw);
}

.reminder-modal-body {
  gap: 14px;
}

.reminder-modal-label {
  margin: 0;
  color: var(--muted);
}

.reminder-tone-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.reminder-tone-option {
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.reminder-custom-wrap {
  display: grid;
  gap: 6px;
}

.reminder-custom-wrap[hidden] {
  display: none;
}

.reminder-channel-wrap {
  display: grid;
  gap: 8px;
}

.reminder-channel-wrap p {
  margin: 0;
}

.reminder-channel-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reminder-channel-option {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.reminder-channel-option input:disabled {
  opacity: 0.55;
}

.reminder-channel-option input:disabled + span {
  opacity: 0.55;
}

.reminder-channel-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.sent-invoice-list {
  display: grid;
  gap: 12px;
}

.sent-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.sent-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.sent-kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sent-kpi strong {
  font-size: 1.05rem;
}

.sent-kpi span {
  color: var(--muted);
  font-size: 0.8rem;
}

.sent-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.send-bottom-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.send-bottom-form label {
  color: var(--muted);
  font-size: 0.82rem;
}

.send-bottom-form input {
  margin-top: 6px;
}

.send-bottom-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.sent-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sent-filter-group .ghost {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.sent-filter-group .ghost.is-active {
  background: rgba(61, 155, 219, 0.2);
  border-color: rgba(143, 214, 255, 0.5);
  color: #d6eeff;
}

.sent-search {
  min-width: 250px;
  display: grid;
  gap: 5px;
}

.sent-search span {
  color: var(--muted);
  font-size: 0.76rem;
}

.sent-search input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 9px 12px;
}

.sent-invoice-list > div {
  color: var(--muted);
}

.sent-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.sent-row.is-paid {
  border-color: rgba(74, 205, 162, 0.35);
  background: rgba(74, 205, 162, 0.08);
}

.sent-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sent-primary {
  display: grid;
  gap: 4px;
}

.sent-primary p {
  margin: 0;
}

.sent-primary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.sent-status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sent-status-pill.pending {
  color: #8fd6ff;
  background: rgba(61, 155, 219, 0.18);
  border: 1px solid rgba(61, 155, 219, 0.36);
}

.sent-status-pill.paid {
  color: #8af0cd;
  background: rgba(74, 205, 162, 0.2);
  border: 1px solid rgba(74, 205, 162, 0.36);
}

.sent-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.sent-due {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.sent-due.due {
  color: #b9d7ff;
}

.sent-due.due-soon {
  color: #ffd18a;
}

.sent-due.overdue {
  color: #ff9f9f;
}

.sent-due.paid {
  color: #8af0cd;
}

.sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sent-actions .ghost,
.sent-actions .primary {
  padding: 6px 11px;
  font-size: 0.78rem;
}

.sent-actions .ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sent-actions-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.estimate-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.transaction-list span {
  color: var(--text);
  font-weight: 600;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pipeline div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
}

.pipeline h3 {
  font-family: "Unbounded", sans-serif;
  margin-top: 6px;
  color: var(--text);
}

.task-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.task-list input {
  accent-color: var(--glow);
  margin-right: 10px;
}

.alert-list div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.alert-list h4 {
  margin-bottom: 6px;
}

.sales-form {
  gap: 22px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.chip.active {
  color: var(--text);
  background: rgba(76, 194, 194, 0.2);
  border-color: rgba(76, 194, 194, 0.45);
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 18, 32, 0.5);
}

.form-section h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 32, 0.9);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(164, 179, 211, 0.7);
}

.upload-field input[type="file"] {
  padding: 8px;
  background: rgba(12, 18, 32, 0.8);
}

body.landing-koala .ocean-scene {
  display: none;
}

body.landing-koala {
  color-scheme: light;
  --text: #1f3a53;
  --muted: #5a7795;
  --glow: #86add2;
  --pulse: #729cc8;
  --accent: #75a7d2;
  --accent-2: #5988b8;
}

body.landing-koala .nebula {
  background: radial-gradient(circle at 18% 20%, rgba(186, 221, 248, 0.58), transparent 56%),
    radial-gradient(circle at 78% 20%, rgba(151, 197, 232, 0.48), transparent 52%),
    radial-gradient(circle at 72% 72%, rgba(174, 212, 242, 0.36), transparent 58%);
  opacity: 0.78;
}

body.landing-koala .stars {
  background-image:
    radial-gradient(rgba(179, 203, 228, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(216, 231, 245, 0.24) 1px, transparent 1px);
  opacity: 0.2;
}

body.landing-koala .hero {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(138, 176, 210, 0.34);
  background:
    radial-gradient(circle at 14% 16%, rgba(207, 231, 251, 0.76), transparent 46%),
    radial-gradient(circle at 84% 22%, rgba(167, 208, 240, 0.62), transparent 44%),
    linear-gradient(158deg, rgba(252, 255, 255, 0.94), rgba(238, 247, 255, 0.92) 56%, rgba(224, 238, 252, 0.9));
  box-shadow: 0 20px 42px rgba(109, 143, 176, 0.2);
  overflow: hidden;
}

body.landing-koala .hero::before {
  content: "";
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(12px, 2vw, 24px);
  width: clamp(150px, 20vw, 220px);
  height: clamp(110px, 14vw, 160px);
  opacity: 0.24;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 180'><defs><linearGradient id='leaf' x1='0' x2='1' y1='0' y2='1'><stop offset='0%' stop-color='%23a7e7c2'/><stop offset='100%' stop-color='%234ea979'/></linearGradient></defs><path d='M190 168 C181 126 183 92 194 62' stroke='%2389a6c5' stroke-width='8' stroke-linecap='round' fill='none' opacity='0.74'/><path d='M194 64 C171 74 151 90 130 112 C161 110 179 98 193 82 Z' fill='url(%23leaf)' opacity='0.72'/><path d='M194 62 C214 70 230 83 240 100 C220 99 207 92 193 78 Z' fill='url(%23leaf)' opacity='0.68'/><ellipse cx='112' cy='70' rx='16' ry='18' fill='%23d2deeb'/><ellipse cx='154' cy='70' rx='16' ry='18' fill='%23d2deeb'/><circle cx='133' cy='78' r='26' fill='%23e2ebf6'/><circle cx='125' cy='77' r='2.6' fill='%235c7390'/><circle cx='141' cy='77' r='2.6' fill='%235c7390'/><ellipse cx='133' cy='84' rx='4.8' ry='3.7' fill='%236a829d'/><path d='M126 90q7 6 14 0' stroke='%236a829d' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.landing-koala .hero-copy h1 {
  color: #2b4f6f;
}

body.landing-koala .hero .lede {
  color: #587895;
}

body.landing-koala .hero-metrics > div {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(140, 177, 209, 0.3);
  background: rgba(249, 253, 255, 0.74);
}

body.landing-koala .metric {
  color: #2f5577;
}

body.landing-koala .metric-label {
  color: #6786a3;
}

body.landing-koala .hero-panel {
  background: linear-gradient(156deg, rgba(249, 254, 255, 0.95), rgba(232, 244, 255, 0.9));
  border-color: rgba(131, 172, 206, 0.34);
  box-shadow: 0 16px 34px rgba(104, 139, 172, 0.18);
}

body.landing-koala .panel-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(137, 176, 208, 0.3);
}

body.landing-koala .panel-card.accent {
  border-color: rgba(113, 163, 201, 0.48);
  box-shadow: inset 0 0 16px rgba(138, 188, 225, 0.2);
}

body.landing-koala .sparkline {
  background: linear-gradient(90deg, rgba(128, 188, 232, 0.24), rgba(109, 166, 211, 0.52));
}

body.landing-koala .feature,
body.landing-koala .workflow-panel,
body.landing-koala .price-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 255, 0.9));
  border-color: rgba(142, 179, 210, 0.3);
  box-shadow: 0 14px 28px rgba(108, 141, 173, 0.14);
}

body.landing-koala .price-card.highlight {
  border-color: rgba(119, 166, 200, 0.5);
  box-shadow: 0 24px 42px rgba(117, 155, 189, 0.22);
}

body.landing-koala .badge {
  background: #8cb5dd;
  color: #1f3f5b;
}

body.landing-koala .logo-row span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(142, 180, 211, 0.3);
  background: rgba(193, 221, 245, 0.36);
}

body.landing-koala .pricing-intro {
  max-width: 680px;
}

body.landing-koala .pricing-grid {
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  max-width: 920px;
}

body.landing-koala .cta {
  background: linear-gradient(128deg, rgba(188, 221, 248, 0.56), rgba(170, 204, 236, 0.48));
  border-color: rgba(135, 173, 204, 0.34);
}

body.landing-koala .site-footer {
  background: rgba(241, 249, 255, 0.82);
  border-top-color: rgba(138, 177, 208, 0.28);
}

@media (max-width: 900px) {
  body.landing-koala .hero {
    padding: 22px 18px;
  }

  body.landing-koala .hero::before {
    opacity: 0.26;
  }

  body.landing-koala .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--pulse);
  margin-bottom: 12px;
}

.dashboard-hero .eyebrow {
  color: var(--warm-orange);
}

.hero-copy h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.metric {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Unbounded", sans-serif;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid rgba(76, 194, 194, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel-header-with-link {
  align-items: flex-start;
  gap: 14px;
}

.panel-header-with-link > div {
  display: grid;
  gap: 4px;
}

.panel-header-with-link p {
  margin: 0;
}

.panel-header-link {
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 7px 12px;
}

.panel-header span {
  color: var(--glow);
  font-weight: 600;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.panel-card {
  padding: 16px;
  background: rgba(12, 18, 32, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 140px;
}

.panel-card.accent {
  border-color: rgba(76, 194, 194, 0.4);
  box-shadow: inset 0 0 18px rgba(76, 194, 194, 0.18);
}

.panel-title {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-value {
  font-size: 1.4rem;
  margin: 12px 0;
  font-family: "Unbounded", sans-serif;
}

.panel-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.sparkline {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(76, 194, 194, 0.12), rgba(76, 194, 194, 0.5));
  position: relative;
  overflow: hidden;
}

.sparkline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(244, 201, 122, 0.6), transparent);
  animation: shimmer 3s linear infinite;
}

.ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  margin-top: 12px;
}

.panel-footer {
  font-size: 0.85rem;
  color: var(--muted);
}

.logos {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.logo-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
  font-family: "Unbounded", sans-serif;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: rgba(12, 18, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: var(--radius-md);
  min-height: 260px;
}

.feature h3 {
  font-family: "Unbounded", sans-serif;
  margin-bottom: 12px;
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.feature li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--glow);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.workflow-copy h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 14px;
}

.workflow-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.workflow-list {
  display: grid;
  gap: 18px;
}

.workflow-list h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.workflow-panel {
  background: rgba(12, 18, 32, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 194, 194, 0.24);
  padding: 24px;
  box-shadow: var(--shadow);
}

.forecast {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.forecast-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
}

.bar.alt {
  background: linear-gradient(90deg, var(--accent-2), var(--pulse));
}

.sliders {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.sliders input[type="range"] {
  width: 100%;
  margin-top: 6px;
}

.pricing {
  display: grid;
  gap: 32px;
}

.pricing-intro h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 8px;
}

.pricing-intro p {
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.price-card {
  background: rgba(12, 18, 32, 0.88);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 16px;
}

.price-card.highlight {
  border-color: rgba(76, 194, 194, 0.5);
  box-shadow: 0 30px 50px rgba(76, 194, 194, 0.25);
  position: relative;
}

.badge {
  position: absolute;
  top: -14px;
  right: 18px;
  background: var(--pulse);
  color: #2a1c12;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.price {
  font-size: 2rem;
  font-family: "Unbounded", sans-serif;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.price-card li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--glow);
}

.cta {
  background: linear-gradient(120deg, rgba(76, 194, 194, 0.25), rgba(244, 201, 122, 0.2));
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta h2 {
  font-family: "Unbounded", sans-serif;
  margin-bottom: 10px;
}

.cta p {
  color: var(--muted);
  max-width: 520px;
}

.site-footer {
  padding: 40px 7vw 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 25, 0.75);
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.coa-grid {
  align-items: start;
}

.coa-form {
  display: grid;
  gap: 12px;
}

.coa-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.coa-form input,
.coa-form select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
}

.coa-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coa-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.coa-filter select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  padding: 6px 10px;
}

@keyframes kpiLoadingPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions {
    display: none;
  }

  .menu {
    display: inline-flex;
  }

  .site-header.open .nav,
  .site-header.open .header-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(10, 14, 25, 0.95);
    padding: 16px 20px;
    border-radius: 18px;
    position: absolute;
    right: 7vw;
    top: 80px;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.theme-koala .site-header.open .nav,
  body.theme-koala .site-header.open .header-actions {
    background: rgba(248, 252, 255, 0.97);
    border-color: rgba(136, 171, 206, 0.38);
    box-shadow: 0 12px 22px rgba(113, 146, 181, 0.22);
  }

  body.theme-professional .site-header.open .nav,
  body.theme-professional .site-header.open .header-actions {
    background: rgba(250, 252, 253, 0.98);
    border-color: rgba(149, 159, 171, 0.34);
    box-shadow: 0 12px 22px rgba(125, 136, 149, 0.2);
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .invoice-content {
    grid-template-columns: 1fr;
  }

  .invoice-side {
    position: static;
    top: auto;
  }
}

@media (max-width: 1100px) {
  .invoice-preview-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main {
    padding: 40px 7vw 100px;
  }

  .hero-panel {
    padding: 20px;
  }

  .panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Landing v2 */
body.landing-koala {
  --lp-ink: #153550;
  --lp-muted: #466b8a;
  --lp-line: rgba(121, 170, 210, 0.36);
  --lp-surface: rgba(226, 241, 255, 0.84);
  --lp-surface-strong: rgba(212, 234, 252, 0.88);
  background-image: linear-gradient(180deg, #2e6b9a 0%, #245f8e 28%, #1b4f7c 55%, #133e66 100%);
}

body.landing-koala .ocean-scene {
  display: block;
  opacity: 0.44;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'><defs><linearGradient id='sky' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%23488dc0'/><stop offset='44%' stop-color='%23356f9d'/><stop offset='100%' stop-color='%231d4972'/></linearGradient><linearGradient id='sea' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%232d6797'/><stop offset='100%' stop-color='%2314365a'/></linearGradient></defs><rect width='1600' height='1000' fill='url(%23sky)'/><circle cx='1320' cy='160' r='74' fill='%23ffd993' opacity='0.58'/><g opacity='.28' fill='%23cbe6f7'><ellipse cx='290' cy='170' rx='86' ry='34'/><ellipse cx='358' cy='178' rx='62' ry='26'/><ellipse cx='1060' cy='142' rx='96' ry='34'/><ellipse cx='1134' cy='150' rx='68' ry='27'/></g><rect x='0' y='390' width='1600' height='610' fill='url(%23sea)'/><path d='M0 456 C112 438 215 474 324 462 C468 446 585 492 736 478 C886 464 1000 508 1148 492 C1288 478 1428 518 1600 500 L1600 1000 L0 1000 Z' fill='%23357aa8' opacity='.8'/><path d='M0 530 C130 514 250 548 380 536 C520 522 664 564 804 550 C955 535 1108 580 1268 564 C1398 552 1512 582 1600 574 L1600 1000 L0 1000 Z' fill='%232a6b98' opacity='.74'/><path d='M0 612 C132 596 268 626 406 612 C550 598 710 636 852 624 C1000 612 1146 646 1298 636 C1430 628 1526 648 1600 644 L1600 1000 L0 1000 Z' fill='%231f5985' opacity='.78'/><g stroke='%23a7d0ea' stroke-width='4' stroke-linecap='round' opacity='.26'><path d='M120 476 C200 460 280 486 360 474'/><path d='M610 512 C690 498 774 524 858 512'/><path d='M1020 558 C1100 546 1180 572 1260 560'/></g><g opacity='.24'><path d='M248 676 c58 -52 124 -52 182 0 z' fill='%2389c0df'/><path d='M1168 706 c66 -56 138 -56 206 0 z' fill='%238abfdd'/></g></svg>");
  background-size: cover;
  background-position: center bottom;
}

body.landing-koala .ocean-scene::before,
body.landing-koala .ocean-scene::after {
  content: none;
  display: none;
}

/* ── Product showcase — 3 app-screen cards ── */
.lp-showcase {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.lp-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-showcase-card {
  text-align: center;
}

.lp-showcase-card h3 {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #eef7ff;
  margin: 16px 0 6px;
}

.lp-showcase-card p {
  font-size: 0.82rem;
  color: rgba(170, 200, 230, 0.6);
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto;
}

/* Screen chrome */
.lp-showcase-screen {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 220, 0.18);
  background: rgba(8, 16, 30, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(120, 170, 220, 0.06);
  aspect-ratio: 4 / 3.2;
  display: flex;
  flex-direction: column;
}

.lp-screen-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(120, 170, 220, 0.08);
}

.lp-screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(140, 180, 220, 0.18);
}

.lp-screen-bar span:first-child { background: rgba(255, 95, 87, 0.5); }
.lp-screen-bar span:nth-child(2) { background: rgba(255, 189, 46, 0.5); }
.lp-screen-bar span:nth-child(3) { background: rgba(40, 200, 65, 0.5); }

.lp-screen-body {
  flex: 1;
  padding: 14px;
  display: flex;
  overflow: hidden;
}

/* ── Card 1: Invoice builder ── */
.lp-screen-builder {
  gap: 10px;
}

.lp-mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  flex: 0 0 auto;
}

.lp-mock-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid transparent;
}

.lp-mock-dot--teal { background: #38bfa0; border-color: rgba(108, 228, 184, 0.5); }
.lp-mock-dot--purple { background: #8b6cc5; }
.lp-mock-dot--gold { background: #d4a33e; }
.lp-mock-dot--rose { background: #d06a8a; }

.lp-mock-invoice {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(120, 170, 220, 0.1);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-mock-inv-head {
  height: 10px;
  width: 55%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(108, 228, 184, 0.5), rgba(108, 200, 255, 0.3));
}

.lp-mock-inv-line {
  height: 5px;
  width: 80%;
  border-radius: 3px;
  background: rgba(160, 200, 240, 0.12);
}

.lp-mock-inv-line--short { width: 50%; }

.lp-mock-inv-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  margin-top: auto;
}

.lp-mock-inv-table span {
  height: 5px;
  border-radius: 3px;
  background: rgba(160, 200, 240, 0.1);
}

.lp-mock-inv-total {
  height: 8px;
  width: 35%;
  margin-left: auto;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(108, 228, 184, 0.4), rgba(108, 228, 184, 0.2));
}

/* ── Card 2: Payment tracking ── */
.lp-screen-tracking {
  flex-direction: column;
  gap: 10px;
}

.lp-mock-stats {
  display: flex;
  gap: 6px;
}

.lp-mock-stat {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid transparent;
}

.lp-mock-stat--green { background: rgba(40, 200, 80, 0.1); border-color: rgba(40, 200, 80, 0.2); }
.lp-mock-stat--amber { background: rgba(240, 180, 40, 0.1); border-color: rgba(240, 180, 40, 0.2); }
.lp-mock-stat--red { background: rgba(240, 70, 70, 0.1); border-color: rgba(240, 70, 70, 0.2); }

.lp-mock-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.lp-mock-stat--green .lp-mock-stat-val { color: #6ce4b8; }
.lp-mock-stat--amber .lp-mock-stat-val { color: #f0c850; }
.lp-mock-stat--red .lp-mock-stat-val { color: #f07070; }

.lp-mock-stat-lbl {
  display: block;
  font-size: 0.58rem;
  color: rgba(160, 200, 240, 0.45);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-mock-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(120, 170, 220, 0.06);
}

.lp-mock-row-name {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(160, 200, 240, 0.12);
}

.lp-mock-row-amount {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(160, 200, 240, 0.08);
}

.lp-mock-badge {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lp-mock-badge--paid { color: #6ce4b8; background: rgba(40, 200, 80, 0.12); }
.lp-mock-badge--pending { color: #f0c850; background: rgba(240, 180, 40, 0.12); }
.lp-mock-badge--overdue { color: #f07070; background: rgba(240, 70, 70, 0.12); }

/* ── Card 3: Clients ── */
.lp-screen-clients {
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.lp-mock-search {
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 170, 220, 0.1);
}

.lp-mock-client {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(120, 170, 220, 0.06);
}

.lp-mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  flex: 0 0 26px;
}

.lp-mock-avatar--a { background: linear-gradient(135deg, rgba(108, 200, 255, 0.5), rgba(108, 228, 184, 0.4)); }
.lp-mock-avatar--b { background: linear-gradient(135deg, rgba(140, 110, 200, 0.5), rgba(200, 120, 180, 0.4)); }
.lp-mock-avatar--c { background: linear-gradient(135deg, rgba(240, 180, 50, 0.5), rgba(240, 120, 80, 0.4)); }

.lp-mock-client-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lp-mock-client-info span:first-child {
  width: 65%;
  height: 5px;
  border-radius: 3px;
  background: rgba(200, 220, 240, 0.15);
}

.lp-mock-client-info span:last-child {
  width: 45%;
  height: 4px;
  border-radius: 3px;
  background: rgba(160, 200, 240, 0.08);
}

.lp-mock-fab {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bfa0, #2a9e84);
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(56, 191, 160, 0.3);
  line-height: 1;
}

/* ═══════════════════════════════════════
   Hero copy-only variant
   ═══════════════════════════════════════ */
.lp-hero-copy-only {
  display: block !important;
}

/* Scroll CTA link */
.lp-hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid rgba(76, 226, 171, 0.25);
  background: rgba(76, 226, 171, 0.06);
  color: #4ce2ab;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.lp-hero-scroll-cta:hover {
  background: rgba(76, 226, 171, 0.12);
  border-color: rgba(76, 226, 171, 0.4);
}

.lp-hero-arrow {
  display: inline-block;
  animation: lp-bounce 1.8s ease-in-out infinite;
}

@keyframes lp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Accent title shimmer */
body.landing-koala .lp-hero-title-accent {
  background: linear-gradient(
    90deg,
    #4ce2ab 0%,
    #82f0d0 30%,
    #4ce2ab 60%,
    #38c596 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lp-shimmer 4s ease-in-out infinite;
}

@keyframes lp-shimmer {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════
   Signup CTA section
   ═══════════════════════════════════════ */
.lp-signup-cta {
  padding: 8px 20px 4px;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.lp-signup-cta-inner {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(76, 226, 171, 0.22);
  background: linear-gradient(145deg, rgba(18,36,62,0.92) 0%, rgba(10,22,42,0.96) 100%);
  box-shadow: 0 0 0 1px rgba(76,226,171,0.06), 0 24px 60px rgba(0,0,0,0.4), 0 0 80px rgba(76,226,171,0.04);
  padding: 28px 24px 22px;
  overflow: hidden;
  text-align: center;
}

.lp-signup-cta-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(76,226,171,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lp-signup-cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ce2ab;
  margin: 0 0 10px;
  opacity: 0.85;
}

.lp-signup-cta-heading {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 700;
  color: #edf5ff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.lp-signup-cta-sub {
  font-size: 0.82rem;
  color: rgba(170, 210, 240, 0.65);
  margin: 0 0 20px;
  line-height: 1.45;
}

.lp-signup-cta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.lp-signup-cta-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(76, 226, 171, 0.25);
  background: rgba(255,255,255,0.06);
  color: #edf5ff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.lp-signup-cta-row input[type="email"]::placeholder {
  color: rgba(170,210,240,0.35);
}

.lp-signup-cta-row input[type="email"]:focus {
  border-color: rgba(76, 226, 171, 0.55);
  background: rgba(255,255,255,0.08);
}

.lp-signup-cta-btn {
  white-space: nowrap;
  padding: 13px 20px;
  font-size: 0.84rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.lp-signup-cta-trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lp-signup-cta-trust span {
  font-size: 0.68rem;
  color: rgba(76, 226, 171, 0.6);
  font-weight: 500;
}

@media (max-width: 480px) {
  .lp-signup-cta-row {
    flex-direction: column;
  }
  .lp-signup-cta-btn {
    width: 100%;
  }
  .lp-signup-cta-inner {
    padding: 22px 16px 18px;
  }
  .lp-signup-cta-trust {
    gap: 10px;
  }
}

/* ═══════════════════════════════════════
   Compact feature rows
   ═══════════════════════════════════════ */
.lp-feats {
  max-width: 600px;
  margin: 0 auto;
  padding: 4px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-feat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,170,220,0.12);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(6px);
}

.lp-feat-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(8,16,30,0.6);
  border: 1px solid rgba(120,170,220,0.1);
}

/* Icon — colour theme dots */
.lp-feat-icon--build {
  flex-direction: column;
  gap: 3px;
  padding: 8px 6px;
}

.lp-fi-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.lp-fi-dot--teal   { background: #38bfa0; }
.lp-fi-dot--purple { background: #8b6cc5; }
.lp-fi-dot--gold   { background: #d4a33e; }
.lp-fi-dot--rose   { background: #d06a8a; }

/* Icon — status badges */
.lp-feat-icon--track {
  flex-direction: column;
  gap: 3px;
  padding: 6px;
}

.lp-fi-badge {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.lp-fi-badge--green  { background: rgba(40,167,69,0.25);  color: #5de08a; }
.lp-fi-badge--amber  { background: rgba(255,180,0,0.2);   color: #ffc940; }
.lp-fi-badge--red    { background: rgba(220,53,69,0.2);   color: #ff7a85; }

/* Icon — client avatars */
.lp-feat-icon--clients {
  gap: 2px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.lp-fi-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.38rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lp-fi-avatar--a { background: linear-gradient(135deg, #4ce2ab, #2aa87e); }
.lp-fi-avatar--b { background: linear-gradient(135deg, #8b6cc5, #5e3fa0); }
.lp-fi-avatar--c { background: linear-gradient(135deg, #d4a33e, #a87820); }

.lp-feat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-feat-copy strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lp-ink, #edf5ff);
}

.lp-feat-copy span {
  font-size: 0.76rem;
  color: var(--lp-muted, #c3d6ea);
  line-height: 1.35;
  opacity: 0.75;
}

@media (min-width: 900px) {
  .lp-feats {
    max-width: 980px;
    padding: 10px 28px 28px;
    gap: 14px;
  }

  .lp-feat-row {
    gap: 22px;
    padding: 22px 26px;
    border-radius: 22px;
  }

  .lp-feat-icon {
    flex: 0 0 86px;
    height: 86px;
    border-radius: 20px;
    gap: 6px;
  }

  .lp-feat-icon--build {
    gap: 6px;
    padding: 12px 10px;
  }

  .lp-fi-dot {
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  .lp-feat-icon--track {
    gap: 6px;
    padding: 10px;
  }

  .lp-fi-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 7px;
  }

  .lp-feat-icon--clients {
    gap: 5px;
    padding: 0 8px;
  }

  .lp-fi-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.58rem;
  }

  .lp-feat-copy {
    gap: 6px;
  }

  .lp-feat-copy strong {
    font-size: 1.26rem;
    line-height: 1.15;
  }

  .lp-feat-copy span {
    max-width: 48ch;
    font-size: 0.98rem;
    line-height: 1.5;
    opacity: 0.84;
  }
}

@media (min-width: 1100px) {
  body.landing-koala .lp-hero.lp-hero-focused {
    max-width: 1140px;
    width: 100%;
    gap: 14px;
  }

  body.landing-koala .lp-hero-copy {
    padding: 28px 34px;
    gap: 12px;
  }

  body.landing-koala .lp-lede {
    max-width: 66ch;
  }

  body.landing-koala .lp-pricing {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 20px;
    gap: 16px;
  }

  body.landing-koala .lp-pricing-copy h2 {
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    margin-bottom: 8px;
  }

  body.landing-koala .lp-pricing-copy p:last-child {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  body.landing-koala .lp-price-grid.lp-price-grid-single {
    grid-template-columns: minmax(0, 388px);
  }

  body.landing-koala .lp-price-card {
    padding: 16px;
    gap: 10px;
  }

  body.landing-koala .lp-price {
    font-size: clamp(1.55rem, 2.25vw, 2.08rem);
  }
}

/* ═══════════════════════════════════════
   PDF Hero section
   ═══════════════════════════════════════ */
.lp-pdf-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 30px;
}

.lp-pdf-hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.lp-pdf-hero-copy h2 {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--lp-ink, #edf5ff);
  line-height: 1.3;
  margin: 0 0 10px;
}

.lp-pdf-hero-copy > p {
  color: var(--lp-muted, #c3d6ea);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.lp-pdf-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid;
}

.lp-pill--sms {
  background: rgba(76, 226, 171, 0.1);
  border-color: rgba(76, 226, 171, 0.3);
  color: #4ce2ab;
}

.lp-pill--email {
  background: rgba(108, 160, 255, 0.1);
  border-color: rgba(108, 160, 255, 0.3);
  color: #6ca0ff;
}

.lp-pill--stripe {
  background: rgba(99, 91, 255, 0.1);
  border-color: rgba(99, 91, 255, 0.3);
  color: #8b83ff;
}

.lp-pdf-hero-cta {
  font-size: 0.82rem;
  padding: 10px 22px;
}

.lp-pdf-hero-visual {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.lp-pdf-float {
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(76, 226, 171, 0.06));
  max-height: 240px;
  overflow: hidden;
  border-radius: 12px;
}

.lp-pdf-float:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.lp-pdf-float .lp-workflow-builder-pdf-sheet {
  max-width: 200px;
  font-size: 0.62rem;
}

/* ═══════════════════════════════════════
   How it works — 3 steps
   ═══════════════════════════════════════ */
.lp-steps {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 24px 40px;
  text-align: center;
}

.lp-steps-title {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--lp-ink, #edf5ff);
  margin: 0 0 28px;
}

.lp-steps-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.lp-step {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.lp-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ce2ab 0%, #36b08a 100%);
  color: #0a1a2e;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(76, 226, 171, 0.3);
  margin-bottom: 4px;
}

.lp-step strong {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  color: var(--lp-ink, #edf5ff);
}

.lp-step p {
  color: var(--lp-muted, #c3d6ea);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

.lp-step-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(76, 226, 171, 0.5), rgba(76, 226, 171, 0.1));
  margin-top: 18px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════
   Social proof strip
   ═══════════════════════════════════════ */
.lp-social-strip {
  text-align: center;
  padding: 0 24px 10px;
}

.lp-social-strip p {
  font-size: 0.82rem;
  color: rgba(170, 200, 230, 0.45);
  margin: 0;
  letter-spacing: 0.01em;
}

.lp-social-strip strong {
  color: rgba(170, 200, 230, 0.65);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   Sticky mobile CTA bar
   ═══════════════════════════════════════ */
.lp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 18, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(76, 226, 171, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

.lp-sticky-bar.is-visible {
  transform: translateY(0);
}

.lp-sticky-bar button {
  width: 100%;
  font-size: 0.88rem;
  padding: 13px 20px;
  border-radius: 14px;
}

/* Only show sticky bar on mobile */
@media (min-width: 761px) {
  .lp-sticky-bar { display: none !important; }
}
@media (max-width: 760px) {
  .lp-sticky-bar { display: block; }

  /* add bottom padding to body so sticky bar doesn't cover content */
  body.landing-koala { padding-bottom: 72px; }
}

/* ── PDF hero mobile ── */
@media (max-width: 760px) {
  .lp-pdf-hero {
    padding: 6px 16px 20px;
  }
  .lp-pdf-hero-layout {
    grid-template-columns: 1fr 110px;
    gap: 14px;
    align-items: center;
  }
  .lp-pdf-hero-copy h2 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .lp-pdf-hero-copy > p {
    font-size: 0.74rem;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  .lp-pdf-hero-pills {
    gap: 4px;
    margin-bottom: 10px;
  }
  .lp-pill {
    padding: 3px 8px;
    font-size: 0.6rem;
  }
  .lp-pdf-hero-cta {
    width: 100%;
    font-size: 0.76rem;
    padding: 9px 14px;
  }
  .lp-pdf-float {
    transform: perspective(600px) rotateY(-4deg);
  }
  .lp-pdf-float {
    max-height: 150px;
    border-radius: 8px;
  }
  .lp-pdf-float .lp-workflow-builder-pdf-sheet {
    max-width: 110px;
    font-size: 0.44rem;
  }
}

/* ── Steps mobile ── */
@media (max-width: 760px) {
  .lp-steps { padding: 0 20px 24px; }
  .lp-steps-title { font-size: 0.95rem; margin-bottom: 20px; }
  .lp-step-num { width: 32px; height: 32px; font-size: 0.88rem; }
  .lp-step strong { font-size: 0.82rem; }
  .lp-step p { font-size: 0.72rem; }
  .lp-step-arrow { width: 20px; margin-top: 15px; }
}

/* ── Social strip mobile ── */
@media (max-width: 760px) {
  .lp-social-strip p { font-size: 0.72rem; }
}

/* ── Showcase mobile ── */
@media (max-width: 760px) {
  .lp-showcase {
    padding: 28px 0 20px;
    overflow: hidden;
  }
  .lp-showcase-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 20px 12px;
    max-width: none;
    margin: 0;
    scrollbar-width: none;
    /* prevent page-level horizontal bleed */
    box-sizing: border-box;
    width: 100%;
  }
  .lp-showcase-grid::-webkit-scrollbar { display: none; }
  .lp-showcase-card {
    flex: 0 0 72vw;
    max-width: 260px;
    scroll-snap-align: start;
  }
  .lp-showcase-screen {
    aspect-ratio: 4 / 2.8;
  }
  .lp-showcase-card h3 { font-size: 0.88rem; margin: 10px 0 4px; }
  .lp-showcase-card p { font-size: 0.73rem; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .lp-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

body.landing-koala.theme-moonlight {
  color-scheme: dark;
  --text: #e8f2ff;
  --muted: #a9bddb;
  --glow: #93acd4;
  --pulse: #7f97c2;
  --accent: #6f87b4;
  --accent-2: #4f648f;
  --lp-green: #4ce2ab;
  --lp-green-soft: rgba(76, 226, 171, 0.18);
  --lp-ink: #edf5ff;
  --lp-muted: #c3d6ea;
  --lp-line: rgba(137, 169, 201, 0.34);
  --lp-surface: rgba(18, 33, 55, 0.88);
  --lp-surface-strong: rgba(14, 28, 48, 0.92);
  background-image: linear-gradient(180deg, #090f1f 0%, #0b1326 46%, #0d1529 76%, #0f172c 100%);
}

body.landing-koala.theme-moonlight .ocean-scene {
  opacity: 0.92;
  background-image: url("assets/backgrounds/ocean-moonlight-animated.svg?v=20260310a");
  background-size: cover;
  background-position: center bottom;
}

body.landing-koala.theme-moonlight .ocean-scene::before,
body.landing-koala.theme-moonlight .ocean-scene::after {
  content: none;
  display: none;
}

body.landing-koala.theme-moonlight .stars {
  opacity: 0.52;
}

body.landing-koala.theme-moonlight .nebula {
  background: radial-gradient(circle at 18% 12%, rgba(124, 151, 212, 0.28), transparent 50%),
    radial-gradient(circle at 78% 8%, rgba(97, 124, 192, 0.2), transparent 50%),
    radial-gradient(circle at 52% 72%, rgba(99, 126, 188, 0.16), transparent 56%);
  opacity: 0.22;
  filter: blur(8px);
}

body.landing-koala.theme-moonlight .lp-kicker {
  color: #61e7b4;
  background: rgba(18, 71, 66, 0.52);
  border-color: rgba(94, 216, 170, 0.42);
}

body.landing-koala.theme-moonlight .lp-hero-copy,
body.landing-koala.theme-moonlight .lp-console,
body.landing-koala.theme-moonlight .lp-trust-inline,
body.landing-koala.theme-moonlight .lp-stat-strip,
body.landing-koala.theme-moonlight .lp-what-you-get,
body.landing-koala.theme-moonlight .lp-proof,
body.landing-koala.theme-moonlight .lp-product-visual,
body.landing-koala.theme-moonlight .lp-faq,
body.landing-koala.theme-moonlight .lp-difference-strip article,
body.landing-koala.theme-moonlight .lp-contrast,
body.landing-koala.theme-moonlight .lp-contrast-card,
body.landing-koala.theme-moonlight .lp-capability-strip article,
body.landing-koala.theme-moonlight .lp-split-copy,
body.landing-koala.theme-moonlight .lp-split-panel,
body.landing-koala.theme-moonlight .lp-pricing,
body.landing-koala.theme-moonlight .lp-final-cta {
  background: linear-gradient(155deg, rgba(21, 38, 61, 0.9), rgba(14, 29, 49, 0.9));
  border-color: rgba(137, 169, 201, 0.34);
  box-shadow: 0 18px 32px rgba(5, 14, 25, 0.36);
}

body.landing-koala.theme-moonlight .lp-hero-copy h1,
body.landing-koala.theme-moonlight .lp-trust-inline h2,
body.landing-koala.theme-moonlight .lp-what-you-get h2,
body.landing-koala.theme-moonlight .lp-split-copy h2,
body.landing-koala.theme-moonlight .lp-pricing-copy h2,
body.landing-koala.theme-moonlight .lp-final-cta h2,
body.landing-koala.theme-moonlight .lp-difference-strip h3,
body.landing-koala.theme-moonlight .lp-contrast-card h3,
body.landing-koala.theme-moonlight .lp-capability-strip h3 {
  color: #edf6ff;
}

body.landing-koala.theme-moonlight .lp-lede,
body.landing-koala.theme-moonlight .lp-trial-note,
body.landing-koala.theme-moonlight .lp-trust-inline .lp-logo-row span,
body.landing-koala.theme-moonlight .lp-difference-strip p,
body.landing-koala.theme-moonlight .lp-contrast-card > p,
body.landing-koala.theme-moonlight .lp-contrast-list li,
body.landing-koala.theme-moonlight .lp-stat-strip span,
body.landing-koala.theme-moonlight .lp-capability-strip p,
body.landing-koala.theme-moonlight .lp-split-copy > p,
body.landing-koala.theme-moonlight .lp-proof-head p:last-child,
body.landing-koala.theme-moonlight .lp-what-you-get p:last-child,
body.landing-koala.theme-moonlight .lp-product-copy p:last-child,
body.landing-koala.theme-moonlight .lp-timeline span,
body.landing-koala.theme-moonlight .lp-pricing-copy p:last-child,
body.landing-koala.theme-moonlight .lp-price-card li,
body.landing-koala.theme-moonlight .lp-payment-note,
body.landing-koala.theme-moonlight .lp-client,
body.landing-koala.theme-moonlight .lp-tags span,
body.landing-koala.theme-moonlight .lp-mini-board p,
body.landing-koala.theme-moonlight .lp-payment-status article,
body.landing-koala.theme-moonlight .lp-methods span,
body.landing-koala.theme-moonlight .lp-testimonial p,
body.landing-koala.theme-moonlight .lp-case-card p,
body.landing-koala.theme-moonlight .lp-shot-grid p,
body.landing-koala.theme-moonlight .lp-faq-list p,
body.landing-koala.theme-moonlight .lp-contact-card p,
body.landing-koala.theme-moonlight .lp-resources p {
  color: #c4d8ec;
}

body.landing-koala.theme-moonlight .lp-price-card,
body.landing-koala.theme-moonlight .lp-invoice-card,
body.landing-koala.theme-moonlight .lp-action-rail,
body.landing-koala.theme-moonlight .lp-activity,
body.landing-koala.theme-moonlight .lp-stat-strip article,
body.landing-koala.theme-moonlight .lp-mini-board div,
body.landing-koala.theme-moonlight .lp-difference-strip article,
body.landing-koala.theme-moonlight .lp-contrast-card,
body.landing-koala.theme-moonlight .lp-contrast-list li,
body.landing-koala.theme-moonlight .lp-payment-hero-card,
body.landing-koala.theme-moonlight .lp-payment-status article,
body.landing-koala.theme-moonlight .lp-timeline li,
body.landing-koala.theme-moonlight .lp-hero-points span,
body.landing-koala.theme-moonlight .lp-console-head span,
body.landing-koala.theme-moonlight .lp-plan-persona,
body.landing-koala.theme-moonlight .lp-logo-row span,
body.landing-koala.theme-moonlight .lp-testimonial,
body.landing-koala.theme-moonlight .lp-case-card,
body.landing-koala.theme-moonlight .lp-product-shot,
body.landing-koala.theme-moonlight .lp-shot-grid article,
body.landing-koala.theme-moonlight .lp-faq-list details,
body.landing-koala.theme-moonlight .lp-contact-card,
body.landing-koala.theme-moonlight .lp-resources article {
  background: rgba(26, 47, 74, 0.82);
  border-color: rgba(132, 165, 199, 0.34);
}

body.landing-koala.theme-moonlight .lp-price-card h3,
body.landing-koala.theme-moonlight .lp-price,
body.landing-koala.theme-moonlight .lp-amount,
body.landing-koala.theme-moonlight .lp-stat-strip strong,
body.landing-koala.theme-moonlight .lp-mini-board strong,
body.landing-koala.theme-moonlight .lp-payment-amount,
body.landing-koala.theme-moonlight .lp-proof-head h2,
body.landing-koala.theme-moonlight .lp-what-you-get h2,
body.landing-koala.theme-moonlight .lp-product-copy h2,
body.landing-koala.theme-moonlight .lp-faq-copy h2,
body.landing-koala.theme-moonlight .lp-case-card h3,
body.landing-koala.theme-moonlight .lp-contact-card h3,
body.landing-koala.theme-moonlight .lp-shot-grid h3,
body.landing-koala.theme-moonlight .lp-resources h3 {
  color: #eef7ff;
}

body.landing-koala.theme-moonlight .lp-price span,
body.landing-koala.theme-moonlight .lp-activity p,
body.landing-koala.theme-moonlight .lp-payment-head,
body.landing-koala.theme-moonlight .lp-contact-note,
body.landing-koala.theme-moonlight .lp-shot-head p {
  color: #aac4de;
}

body.landing-koala.theme-moonlight .lp-price-card-pro {
  background: linear-gradient(160deg, rgba(31, 59, 90, 0.9), rgba(20, 42, 67, 0.9));
  border-color: rgba(125, 165, 205, 0.44);
  box-shadow: 0 16px 28px rgba(5, 15, 28, 0.4);
}

body.landing-koala.theme-moonlight .lp-price-card-enterprise {
  background: linear-gradient(160deg, rgba(35, 65, 98, 0.9), rgba(22, 44, 70, 0.9));
  border-color: rgba(133, 178, 218, 0.48);
}

body.landing-koala.theme-moonlight .lp-badge {
  background: #7ea0c8;
  color: #092039;
  border-color: rgba(161, 196, 227, 0.54);
}

body.landing-koala.theme-moonlight .lp-price-card li::before {
  background: rgba(150, 193, 233, 0.18);
  color: #eef7ff;
}

body.landing-koala.theme-moonlight .lp-action-rail button {
  color: #dcecff;
  background: linear-gradient(145deg, rgba(35, 65, 97, 0.9), rgba(23, 45, 70, 0.88));
  border-color: rgba(135, 173, 209, 0.38);
}

body.landing-koala.theme-moonlight .lp-workflow-manage-head {
  border-color: rgba(149, 182, 214, 0.34);
  background: linear-gradient(150deg, rgba(37, 62, 95, 0.9), rgba(27, 48, 77, 0.92));
}

body.landing-koala.theme-moonlight .lp-workflow-manage-head strong {
  color: #e9f3ff;
}

body.landing-koala.theme-moonlight .lp-workflow-manage-head span {
  color: #a9c1da;
}

body.landing-koala.theme-moonlight .lp-workflow-bars {
  border-color: rgba(130, 166, 202, 0.34);
  background: linear-gradient(165deg, rgba(18, 38, 63, 0.9), rgba(14, 30, 51, 0.92));
}

body.landing-koala.theme-moonlight .lp-workflow-bars span {
  background: linear-gradient(180deg, rgba(171, 206, 243, 0.95), rgba(99, 148, 199, 0.92));
}

body.landing-koala.theme-moonlight .lp-workflow-manage-metrics div {
  border-color: rgba(126, 163, 198, 0.34);
  background: rgba(19, 41, 68, 0.62);
}

body.landing-koala.theme-moonlight .lp-workflow-manage-metrics small {
  color: #9db9d6;
}

body.landing-koala.theme-moonlight .lp-workflow-manage-metrics b {
  color: #ecf6ff;
}

body.landing-koala.theme-moonlight .lp-workflow-manage-tags span {
  border-color: rgba(124, 162, 197, 0.36);
  background: rgba(20, 42, 68, 0.56);
  color: #b6cee5;
}

body.landing-koala.theme-tropical {
  color-scheme: dark;
  --text: #e8fff9;
  --muted: #abd7cf;
  --glow: #7ad9cb;
  --pulse: #62bfbc;
  --accent: #43b9ab;
  --accent-2: #1f7f79;
  --lp-green: #6ef0bf;
  --lp-green-soft: rgba(110, 240, 191, 0.2);
  --lp-ink: #ebfff9;
  --lp-muted: #bfe4dc;
  --lp-line: rgba(120, 210, 193, 0.34);
  --lp-surface: rgba(9, 45, 57, 0.88);
  --lp-surface-strong: rgba(7, 36, 48, 0.92);
  background-image: linear-gradient(180deg, #052332 0%, #073140 38%, #0a3a44 66%, #0b443e 100%);
}

body.landing-koala.theme-tropical .ocean-scene {
  opacity: 0.94;
  background-image: url("assets/backgrounds/ocean-tropical-animated.svg?v=20260306g");
  background-size: cover;
  background-position: center bottom;
}

body.landing-koala.theme-tropical .stars {
  opacity: 0.24;
  background-image:
    radial-gradient(rgba(154, 242, 224, 0.26) 1px, transparent 1px),
    radial-gradient(rgba(119, 216, 240, 0.2) 1px, transparent 1px);
}

body.landing-koala.theme-tropical .nebula {
  background: radial-gradient(circle at 16% 10%, rgba(86, 204, 188, 0.36), transparent 48%),
    radial-gradient(circle at 86% 8%, rgba(69, 160, 214, 0.26), transparent 52%),
    radial-gradient(circle at 42% 72%, rgba(97, 207, 160, 0.22), transparent 58%);
  opacity: 0.36;
  filter: blur(12px);
}

body.landing-koala.theme-tropical .lp-kicker {
  color: #7ef3ca;
  background: rgba(11, 78, 71, 0.58);
  border-color: rgba(111, 236, 197, 0.46);
}

body.landing-koala.theme-tropical .lp-hero-copy,
body.landing-koala.theme-tropical .lp-console,
body.landing-koala.theme-tropical .lp-trust-inline,
body.landing-koala.theme-tropical .lp-stat-strip,
body.landing-koala.theme-tropical .lp-what-you-get,
body.landing-koala.theme-tropical .lp-proof,
body.landing-koala.theme-tropical .lp-product-visual,
body.landing-koala.theme-tropical .lp-faq,
body.landing-koala.theme-tropical .lp-difference-strip article,
body.landing-koala.theme-tropical .lp-contrast,
body.landing-koala.theme-tropical .lp-contrast-card,
body.landing-koala.theme-tropical .lp-capability-strip article,
body.landing-koala.theme-tropical .lp-split-copy,
body.landing-koala.theme-tropical .lp-split-panel,
body.landing-koala.theme-tropical .lp-pricing,
body.landing-koala.theme-tropical .lp-final-cta {
  background: linear-gradient(155deg, rgba(10, 53, 69, 0.9), rgba(7, 43, 57, 0.9));
  border-color: rgba(118, 209, 195, 0.32);
  box-shadow: 0 18px 34px rgba(3, 18, 23, 0.4);
}

body.landing-koala.theme-tropical .lp-hero-copy {
  background: linear-gradient(154deg, rgba(16, 76, 94, 0.95), rgba(10, 55, 71, 0.95));
  border-color: rgba(149, 232, 219, 0.5);
  box-shadow: 0 22px 38px rgba(2, 17, 24, 0.46);
}

body.landing-koala.theme-tropical .lp-hero-copy h1,
body.landing-koala.theme-tropical .lp-trust-inline h2,
body.landing-koala.theme-tropical .lp-what-you-get h2,
body.landing-koala.theme-tropical .lp-split-copy h2,
body.landing-koala.theme-tropical .lp-pricing-copy h2,
body.landing-koala.theme-tropical .lp-final-cta h2,
body.landing-koala.theme-tropical .lp-difference-strip h3,
body.landing-koala.theme-tropical .lp-contrast-card h3,
body.landing-koala.theme-tropical .lp-capability-strip h3 {
  color: #eefff9;
}

body.landing-koala.theme-tropical .lp-lede,
body.landing-koala.theme-tropical .lp-trial-note,
body.landing-koala.theme-tropical .lp-trust-inline .lp-logo-row span,
body.landing-koala.theme-tropical .lp-difference-strip p,
body.landing-koala.theme-tropical .lp-contrast-card > p,
body.landing-koala.theme-tropical .lp-contrast-list li,
body.landing-koala.theme-tropical .lp-stat-strip span,
body.landing-koala.theme-tropical .lp-capability-strip p,
body.landing-koala.theme-tropical .lp-split-copy > p,
body.landing-koala.theme-tropical .lp-proof-head p:last-child,
body.landing-koala.theme-tropical .lp-what-you-get p:last-child,
body.landing-koala.theme-tropical .lp-product-copy p:last-child,
body.landing-koala.theme-tropical .lp-timeline span,
body.landing-koala.theme-tropical .lp-pricing-copy p:last-child,
body.landing-koala.theme-tropical .lp-price-card li,
body.landing-koala.theme-tropical .lp-payment-note,
body.landing-koala.theme-tropical .lp-client,
body.landing-koala.theme-tropical .lp-tags span,
body.landing-koala.theme-tropical .lp-mini-board p,
body.landing-koala.theme-tropical .lp-payment-status article,
body.landing-koala.theme-tropical .lp-methods span,
body.landing-koala.theme-tropical .lp-testimonial p,
body.landing-koala.theme-tropical .lp-case-card p,
body.landing-koala.theme-tropical .lp-shot-grid p,
body.landing-koala.theme-tropical .lp-faq-list p,
body.landing-koala.theme-tropical .lp-contact-card p,
body.landing-koala.theme-tropical .lp-resources p {
  color: #c3e6de;
}

body.landing-koala.theme-tropical .lp-price-card,
body.landing-koala.theme-tropical .lp-invoice-card,
body.landing-koala.theme-tropical .lp-action-rail,
body.landing-koala.theme-tropical .lp-activity,
body.landing-koala.theme-tropical .lp-mini-board div,
body.landing-koala.theme-tropical .lp-difference-strip article,
body.landing-koala.theme-tropical .lp-contrast-card,
body.landing-koala.theme-tropical .lp-contrast-list li,
body.landing-koala.theme-tropical .lp-payment-hero-card,
body.landing-koala.theme-tropical .lp-payment-status article,
body.landing-koala.theme-tropical .lp-timeline li,
body.landing-koala.theme-tropical .lp-hero-points span,
body.landing-koala.theme-tropical .lp-console-head span,
body.landing-koala.theme-tropical .lp-plan-persona,
body.landing-koala.theme-tropical .lp-logo-row span,
body.landing-koala.theme-tropical .lp-testimonial,
body.landing-koala.theme-tropical .lp-case-card,
body.landing-koala.theme-tropical .lp-product-shot,
body.landing-koala.theme-tropical .lp-shot-grid article,
body.landing-koala.theme-tropical .lp-faq-list details,
body.landing-koala.theme-tropical .lp-contact-card,
body.landing-koala.theme-tropical .lp-resources article {
  background: rgba(15, 67, 78, 0.82);
  border-color: rgba(119, 212, 197, 0.34);
}

body.landing-koala.theme-tropical .lp-stat-strip {
  gap: 14px;
}

body.landing-koala.theme-tropical .lp-stat-strip article {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 78, 91, 0.92), rgba(11, 59, 73, 0.93));
  border-color: rgba(136, 228, 213, 0.45);
  box-shadow: 0 16px 28px rgba(4, 21, 30, 0.34);
  overflow: hidden;
}

body.landing-koala.theme-tropical .lp-stat-strip article::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 241, 201, 0.8), rgba(85, 204, 236, 0.72));
}

body.landing-koala.theme-tropical .lp-price-card h3,
body.landing-koala.theme-tropical .lp-price,
body.landing-koala.theme-tropical .lp-amount,
body.landing-koala.theme-tropical .lp-stat-strip strong,
body.landing-koala.theme-tropical .lp-mini-board strong,
body.landing-koala.theme-tropical .lp-payment-amount,
body.landing-koala.theme-tropical .lp-proof-head h2,
body.landing-koala.theme-tropical .lp-what-you-get h2,
body.landing-koala.theme-tropical .lp-product-copy h2,
body.landing-koala.theme-tropical .lp-faq-copy h2,
body.landing-koala.theme-tropical .lp-case-card h3,
body.landing-koala.theme-tropical .lp-contact-card h3,
body.landing-koala.theme-tropical .lp-shot-grid h3,
body.landing-koala.theme-tropical .lp-resources h3 {
  color: #f0fff9;
}

body.landing-koala.theme-tropical .lp-price span,
body.landing-koala.theme-tropical .lp-activity p,
body.landing-koala.theme-tropical .lp-payment-head,
body.landing-koala.theme-tropical .lp-contact-note,
body.landing-koala.theme-tropical .lp-shot-head p {
  color: #9ed2c8;
}

body.landing-koala.theme-tropical .lp-price-card-pro {
  background: linear-gradient(160deg, rgba(16, 76, 90, 0.92), rgba(10, 56, 67, 0.9));
  border-color: rgba(125, 224, 206, 0.46);
  box-shadow: 0 16px 28px rgba(3, 19, 23, 0.42);
}

body.landing-koala.theme-tropical .lp-price-card-enterprise {
  background: linear-gradient(160deg, rgba(17, 88, 102, 0.92), rgba(10, 64, 77, 0.9));
  border-color: rgba(135, 232, 209, 0.5);
}

body.landing-koala.theme-tropical .lp-badge {
  background: #6be3bd;
  color: #083931;
  border-color: rgba(157, 244, 217, 0.54);
}

body.landing-koala.theme-tropical .lp-price-card li::before {
  background: rgba(116, 232, 201, 0.16);
  color: #f0fff9;
}

body.landing-koala.theme-tropical .lp-action-rail button {
  color: #ddfff5;
  background: linear-gradient(145deg, rgba(19, 87, 101, 0.92), rgba(12, 61, 74, 0.9));
  border-color: rgba(129, 222, 206, 0.4);
}

body.landing-koala .nebula {
  background: radial-gradient(circle at 16% 10%, rgba(126, 180, 221, 0.35), transparent 48%),
    radial-gradient(circle at 88% 5%, rgba(104, 161, 206, 0.28), transparent 52%),
    radial-gradient(circle at 42% 72%, rgba(123, 178, 220, 0.24), transparent 58%);
  opacity: 0.62;
  filter: blur(22px);
}

body.landing-koala .stars {
  opacity: 0.1;
}

body.landing-koala .site-header.lp-header {
  top: 16px;
  margin: 14px 6vw 0;
  padding: 14px 18px;
  border: 1px solid rgba(156, 200, 233, 0.34);
  border-radius: 20px;
  background: rgba(24, 56, 84, 0.64);
  box-shadow: 0 18px 34px rgba(16, 38, 60, 0.32);
  color: #e8f3ff;
}

body.landing-koala .lp-header .nav,
body.landing-koala .lp-header .header-actions {
  display: flex;
}

body.landing-koala .lp-header .menu {
  display: none;
}

body.landing-koala .lp-header .nav a {
  color: #d3e7f9;
  font-weight: 500;
}

body.landing-koala .lp-header .brand-title {
  color: #edf7ff;
}

body.landing-koala .lp-header .brand-tag {
  color: #bbd2e7;
}

body.landing-koala .lp-header .header-actions {
  gap: 18px;
}

body.landing-koala .lp-header .header-actions > :is(a, button) {
  width: auto;
}

body.landing-koala .lp-header .ghost {
  color: #d9ecfb;
  border-color: transparent;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: 0;
  width: auto;
  box-shadow: none;
}

body.landing-koala .lp-header .header-login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(227, 240, 255, 0.38);
  background: rgba(16, 34, 52, 0.34);
  color: #edf7ff;
  box-shadow: 0 10px 18px rgba(5, 13, 23, 0.18);
}

body.landing-koala .lp-header .ghost:hover {
  color: #f4fcff;
  background: rgba(18, 40, 60, 0.46);
  border-color: rgba(236, 244, 255, 0.5);
  text-decoration: none;
}

body.landing-koala .lp-header .primary,
body.landing-koala .lp-hero-actions .primary {
  background: linear-gradient(135deg, #46e8aa, #34cf93);
  color: #06261d;
  border-color: rgba(99, 229, 175, 0.52);
  box-shadow: 0 12px 24px rgba(8, 36, 32, 0.36);
}

body.landing-koala .lp-header .primary:hover,
body.landing-koala .lp-hero-actions .primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.landing-koala main.landing-v2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 6vw 92px;
  display: grid;
  gap: 58px;
}

body.landing-koala .lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  color: #426786;
  background: rgba(231, 244, 255, 0.78);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 16px;
}

body.landing-koala .lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

body.landing-koala .lp-hero.lp-hero-focused {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

body.landing-koala .lp-hero-copy,
body.landing-koala .lp-console,
body.landing-koala .lp-hero-signup-card {
  border-radius: 26px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(154deg, rgba(224, 241, 255, 0.86), rgba(196, 222, 244, 0.82));
  box-shadow: 0 22px 40px rgba(13, 37, 61, 0.25);
}

body.landing-koala .lp-hero-copy {
  padding: clamp(16px, 1.8vw, 22px);
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-hero-signup-card {
  padding: clamp(12px, 1.5vw, 16px);
  border-color: rgba(108, 228, 184, 0.32);
  background: linear-gradient(160deg, rgba(14, 30, 48, 0.94), rgba(9, 20, 34, 0.96));
  box-shadow: 0 0 0 1px rgba(108, 228, 184, 0.07), 0 18px 48px rgba(0, 0, 0, 0.48), 0 0 80px rgba(108, 228, 184, 0.06);
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-hero-signup-head {
  display: grid;
  gap: 2px;
}

body.landing-koala .lp-hero-signup-head h2 {
  margin: 0;
  color: #f4fbff;
  font-family: "Plus Jakarta Sans", "Space Grotesk", sans-serif;
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.landing-koala .lp-hero .lp-kicker {
  color: #07372a;
  background: linear-gradient(135deg, #59ecb7, #3edfa9);
  border-color: transparent;
  letter-spacing: 0.06em;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(6, 39, 34, 0.28);
}

body.landing-koala .lp-hero-title {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

body.landing-koala .lp-hero-title-main {
  font-family: "Plus Jakarta Sans", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(2.9rem, 4.8vw, 4.55rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #f2f7ff;
}

body.landing-koala .lp-hero-break {
  display: none;
}

body.landing-koala .lp-hero-title-accent {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.85rem, 4.7vw, 4.45rem);
  line-height: 0.95;
  color: #4ce2ab;
  letter-spacing: 0;
}

body.landing-koala .lp-lede {
  color: var(--lp-muted);
  line-height: 1.56;
  max-width: 44ch;
  font-size: clamp(0.96rem, 1.08vw, 1.22rem);
}

body.landing-koala .lp-hero-signup-form {
  gap: 4px;
}

body.landing-koala .lp-hero-signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.96fr) auto;
  gap: 10px;
  align-items: end;
}

body.landing-koala .lp-hero-signup-field {
  display: grid;
  gap: 6px;
}

body.landing-koala .lp-hero-signup-field span {
  color: #dcecff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.landing-koala .lp-hero-signup-form input {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(162, 196, 230, 0.28);
  background: rgba(6, 20, 37, 0.36);
  color: #f4f9ff;
  padding: 0 14px;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-koala .lp-hero-signup-form input::placeholder {
  color: #90a9c6;
}

body.landing-koala .lp-hero-signup-form input:focus {
  outline: none;
  border-color: rgba(108, 228, 184, 0.62);
  box-shadow:
    0 0 0 3px rgba(76, 226, 171, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-koala .lp-hero-signup-submit {
  min-width: 232px;
  min-height: 50px;
  align-self: stretch;
  justify-content: center;
  white-space: nowrap;
  background: linear-gradient(135deg, #56efaf, #34cf93);
  color: #06261d;
  border-color: rgba(99, 229, 175, 0.52);
  box-shadow: 0 12px 24px rgba(8, 36, 32, 0.28);
}

body.landing-koala .lp-hero-signup-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 0;
}

body.landing-koala .lp-hero-signup-meta .auth-note,
body.landing-koala .lp-hero-signup-meta .auth-error {
  margin: 0;
}

body.landing-koala .lp-hero-signup-meta #auth-status:empty,
body.landing-koala .lp-hero-signup-meta #auth-error:empty {
  display: none;
}

body.landing-koala .lp-hero-signup-meta:has(#auth-status:empty):has(#auth-error:empty) {
  display: none;
}

body.landing-koala .lp-hero-signup-meta .auth-note:not(.is-busy) {
  color: #9fb6d1;
}

body.landing-koala .lp-hero-signup-card .auth-note.is-busy {
  background: rgba(108, 138, 196, 0.14);
}

/* Trial badge on signup card */
body.landing-koala .lp-trial-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(108, 228, 184, 0.95);
  background: rgba(108, 228, 184, 0.1);
  border: 1px solid rgba(108, 228, 184, 0.28);
  white-space: nowrap;
}

body.landing-koala .lp-signup-trust {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(147, 196, 242, 0.68);
  letter-spacing: 0.02em;
}

body.landing-koala .lp-price-trust {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
}

/* Sticky header CTA */
body.landing-koala .lp-header-cta {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 999px;
  white-space: nowrap;
}

body.landing-koala .lp-heroes-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.landing-koala .lp-hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.landing-koala .lp-hero-points {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.landing-koala .lp-hero-points span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: rgba(218, 238, 255, 0.72);
  color: #486b89;
  font-size: 0.8rem;
}

body.landing-koala .lp-trial-note {
  margin-top: 12px;
  color: #9eb8d2;
  font-size: 0.92rem;
}

body.landing-koala .lp-hero-checks {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

body.landing-koala .lp-hero-checks li {
  position: relative;
  color: #9bb3ce;
  font-size: 0.95rem;
  padding-left: 18px;
}

body.landing-koala .lp-hero-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -0.02em;
  color: #49d9a2;
  font-weight: 700;
}

body.landing-koala .lp-trust-inline {
  border-radius: 24px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(154deg, var(--lp-surface), var(--lp-surface-strong));
  box-shadow: 0 18px 30px rgba(14, 36, 58, 0.24);
  padding: clamp(18px, 2.1vw, 28px);
  display: grid;
  gap: 12px;
}

body.landing-koala .lp-trust-inline h2 {
  font-family: "Unbounded", sans-serif;
  color: #234a6a;
  font-size: clamp(1.34rem, 2.15vw, 2rem);
}

body.landing-koala .lp-stat-strip {
  border-radius: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

body.landing-koala .lp-stat-strip article {
  padding: 20px 16px 18px;
  border: 1px solid rgba(138, 171, 206, 0.28);
  border-radius: 16px;
  background: linear-gradient(162deg, rgba(12, 26, 46, 0.9), rgba(8, 20, 37, 0.92));
  box-shadow: 0 14px 24px rgba(7, 15, 27, 0.25);
  display: grid;
  gap: 8px;
  justify-items: flex-start;
  text-align: left;
}

body.landing-koala .lp-stat-strip strong {
  font-family: "Space Grotesk", sans-serif;
  color: #eef7ff;
  font-size: clamp(1.08rem, 1.45vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

body.landing-koala .lp-stat-strip span {
  font-family: "Space Grotesk", sans-serif;
  color: #9fb6d1;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

body.landing-koala .lp-feature-rail {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 840px;
  margin: -10px auto 0;
}

body.landing-koala .lp-feature-rail .lp-stat-strip {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.landing-koala .lp-feature-rail .lp-stat-strip article {
  min-height: 56px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(156, 192, 228, 0.34);
  background: linear-gradient(160deg, rgba(18, 42, 70, 0.52), rgba(9, 23, 40, 0.46));
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 22px rgba(7, 15, 27, 0.28);
}

body.landing-koala .lp-feature-rail .lp-stat-strip article::before,
body.landing-koala .lp-feature-rail .lp-stat-strip article::after {
  content: none !important;
}

body.landing-koala .lp-feature-rail .lp-stat-strip strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

body.landing-koala .lp-workflow-snapshot {
  display: grid;
}

body.landing-koala .lp-workflow-shell {
  border-radius: 24px;
  border: 1px solid rgba(133, 208, 193, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(78, 200, 170, 0.16), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(127, 169, 255, 0.12), transparent 30%),
    linear-gradient(160deg, rgba(7, 42, 52, 0.94), rgba(4, 27, 40, 0.96));
  box-shadow: 0 22px 34px rgba(4, 20, 28, 0.38);
  overflow: hidden;
}

body.landing-koala .lp-workflow-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(129, 198, 184, 0.22);
  background: rgba(7, 37, 47, 0.5);
  backdrop-filter: blur(16px);
}

body.landing-koala .lp-workflow-dots {
  display: inline-flex;
  gap: 6px;
}

body.landing-koala .lp-workflow-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

body.landing-koala .lp-workflow-dots span:nth-child(1) {
  background: #ff635b;
}

body.landing-koala .lp-workflow-dots span:nth-child(2) {
  background: #ffc140;
}

body.landing-koala .lp-workflow-dots span:nth-child(3) {
  background: #34cc54;
}

body.landing-koala .lp-workflow-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  color: #a4d4ca;
}

body.landing-koala .lp-workflow-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 237, 186, 0.3);
  background: rgba(58, 200, 156, 0.12);
  color: #7cf3cb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.landing-koala .lp-workflow-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ef0bf;
  animation: lpWorkflowBlink 1.6s ease-in-out infinite;
}

body.landing-koala .lp-workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  background: rgba(8, 42, 52, 0.44);
  border-bottom: 1px solid rgba(129, 198, 184, 0.16);
}

body.landing-koala .lp-workflow-tab {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(123, 197, 183, 0.22);
  background: rgba(11, 56, 67, 0.3);
  color: #b3e0d7;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

body.landing-koala .lp-workflow-tab.is-active {
  border-color: rgba(132, 236, 205, 0.42);
  background: linear-gradient(145deg, rgba(36, 132, 117, 0.62), rgba(16, 71, 80, 0.66));
  color: #effff9;
  box-shadow: 0 16px 28px rgba(3, 21, 24, 0.24);
}

body.landing-koala .lp-workflow-tab:hover,
body.landing-koala .lp-workflow-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(132, 236, 205, 0.36);
  outline: none;
}

body.landing-koala .lp-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

body.landing-koala .lp-workflow-panel {
  display: none;
  gap: 10px;
  border: 1px solid rgba(127, 203, 189, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(156deg, rgba(10, 54, 65, 0.64), rgba(7, 39, 50, 0.72));
  backdrop-filter: blur(18px);
  align-content: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 28px rgba(7, 15, 27, 0.2);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

body.landing-koala .lp-workflow-panel.is-active {
  display: grid;
}

body.landing-koala .lp-workflow-panel[hidden] {
  display: none !important;
}

body.landing-koala .lp-workflow-panel-head {
  display: grid;
  gap: 6px;
}

body.landing-koala .lp-workflow-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(111, 241, 201, 0.13);
  border: 1px solid rgba(111, 241, 201, 0.28);
  color: #82f7cf;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing-koala .lp-workflow-panel-head h3 {
  color: #f1f7ff;
  font-size: 0.96rem;
  line-height: 1.16;
}

body.landing-koala .lp-workflow-panel-head p {
  color: #b3c8dd;
  font-size: 0.76rem;
  line-height: 1.36;
}

body.landing-koala .lp-workflow-card {
  display: grid;
  gap: 7px;
  border-radius: 14px;
  border: 1px solid rgba(134, 207, 194, 0.18);
  background: linear-gradient(160deg, rgba(6, 31, 44, 0.44), rgba(5, 22, 32, 0.58));
  padding: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-koala .lp-workflow-builder-card {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.landing-koala .lp-workflow-builder-micro {
  display: grid;
  gap: 0;
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  background: transparent;
}

body.landing-koala .lp-workflow-builder-layout {
  display: grid;
  width: 100%;
  max-width: 308px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-content: center;
}

body.landing-koala .lp-workflow-builder-layout-pdf-only {
  max-width: 248px;
}

body.landing-koala .lp-workflow-builder-form {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  align-self: start;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(122, 197, 182, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 12%, rgba(101, 173, 232, 0.12), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(90, 205, 172, 0.08), transparent 22%),
    linear-gradient(160deg, rgba(7, 40, 52, 0.9), rgba(5, 27, 40, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-koala .lp-workflow-builder-micro::before,
body.landing-koala .lp-workflow-send-flow::before,
body.landing-koala .lp-workflow-donut-card::before,
body.landing-koala .lp-workflow-chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 231, 189, 0.16) 0 10px, transparent 11px),
    radial-gradient(circle at 18% 18%, rgba(108, 148, 230, 0.15), transparent 28%),
    radial-gradient(rgba(240, 247, 255, 0.18) 1px, transparent 1.6px),
    radial-gradient(rgba(214, 228, 252, 0.12) 0.9px, transparent 1.4px),
    linear-gradient(180deg, rgba(15, 28, 54, 0.06), rgba(6, 16, 30, 0.12));
  background-size: auto, auto, 72px 38px, 108px 54px, auto;
  background-position: center, center, 0 0, 16px 10px, center;
  opacity: 0.9;
  z-index: 0;
}

body.landing-koala .lp-workflow-builder-micro::before {
  content: none;
}

body.landing-koala .lp-workflow-builder-micro > *,
body.landing-koala .lp-workflow-send-flow > *,
body.landing-koala .lp-workflow-donut-card > *,
body.landing-koala .lp-workflow-chart-card > * {
  position: relative;
  z-index: 1;
}

body.landing-koala .lp-workflow-builder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 6px;
  border-bottom: 1px solid rgba(129, 198, 184, 0.14);
}

body.landing-koala .lp-workflow-builder-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 8px 5px;
}

body.landing-koala .lp-workflow-builder-field {
  border-radius: 9px;
  border: 1px solid rgba(123, 196, 183, 0.14);
  background: rgba(10, 57, 67, 0.2);
  padding: 5px 6px;
  display: grid;
  gap: 2px;
}

body.landing-koala .lp-workflow-builder-field-wide {
  grid-column: 1 / -1;
}

body.landing-koala .lp-workflow-builder-field small,
body.landing-koala .lp-workflow-builder-total small,
body.landing-koala .lp-workflow-link-box small,
body.landing-koala .lp-workflow-chart-head span,
body.landing-koala .lp-workflow-manage-metrics small,
body.landing-koala .lp-workflow-client-list span {
  color: #91c8bc;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.63rem;
  font-weight: 700;
}

body.landing-koala .lp-workflow-builder-field strong,
body.landing-koala .lp-workflow-client-list strong {
  color: #f1f7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

body.landing-koala .lp-workflow-theme-picker {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 18px;
  gap: 8px;
  padding: 2px 0 0;
  justify-content: start;
}

body.landing-koala .lp-workflow-theme-picker span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(224, 242, 255, 0.42);
  background: linear-gradient(135deg, rgba(86, 145, 230, 0.92), rgba(50, 219, 168, 0.88));
  box-shadow: 0 0 0 2px rgba(6, 25, 37, 0.44);
}

body.landing-koala .lp-workflow-theme-picker span:nth-child(2) {
  background: linear-gradient(135deg, rgba(44, 211, 180, 0.92), rgba(17, 116, 141, 0.88));
}

body.landing-koala .lp-workflow-theme-picker span:nth-child(3) {
  background: linear-gradient(135deg, rgba(252, 178, 122, 0.94), rgba(232, 110, 120, 0.9));
}

body.landing-koala .lp-workflow-theme-picker span:nth-child(4) {
  background: linear-gradient(135deg, rgba(197, 214, 232, 0.94), rgba(111, 143, 190, 0.88));
}

body.landing-koala .lp-workflow-theme-picker span.is-active {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(6, 25, 37, 0.44), 0 0 0 4px rgba(113, 239, 200, 0.18);
}

body.landing-koala .lp-workflow-builder-preview {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

body.landing-koala .lp-workflow-builder-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.landing-koala .lp-workflow-builder-sheet-head strong {
  color: #dffaf0;
  font-size: 0.72rem;
}

body.landing-koala .lp-workflow-builder-sheet-head span {
  color: #8ec5b7;
  font-size: 0.58rem;
  font-weight: 600;
}

body.landing-koala .lp-workflow-builder-lines {
  display: grid;
  gap: 4px;
  padding: 0 8px;
  align-content: start;
}

body.landing-koala .lp-workflow-builder-lines div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  border: 1px solid rgba(129, 198, 184, 0.14);
  background: rgba(8, 41, 53, 0.5);
  padding: 4px 6px;
}

body.landing-koala .lp-workflow-builder-lines div:nth-child(n + 2) {
  display: flex;
}

body.landing-koala .lp-workflow-builder-lines span {
  color: #cce6de;
  font-size: 0.62rem;
  font-weight: 500;
}

body.landing-koala .lp-workflow-builder-lines b {
  color: #f0fffa;
  font-size: 0.62rem;
  font-weight: 700;
}

body.landing-koala .lp-workflow-builder-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 5px 8px 8px;
  border-radius: 10px;
  border: 1px solid rgba(124, 205, 185, 0.18);
  background: rgba(41, 150, 124, 0.1);
  padding: 5px 7px;
}

body.landing-koala .lp-workflow-builder-total strong {
  color: #53f4b7;
  font-size: 0.76rem;
}

body.landing-koala .lp-workflow-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 8px 8px;
}

body.landing-koala .lp-workflow-builder-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(124, 205, 185, 0.18);
  background: rgba(12, 52, 64, 0.56);
  color: #98d8ca;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.landing-koala .lp-workflow-builder-pdf {
  display: grid;
  align-content: start;
  justify-items: center;
  width: 100%;
}

body.landing-koala .lp-workflow-builder-pdf-sheet {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 248px;
  min-height: 336px;
  aspect-ratio: auto;
  grid-template-rows: auto auto auto auto auto auto auto auto;
  align-content: start;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(175, 207, 239, 0.34);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(235, 242, 249, 0.96));
  padding: 10px;
  box-shadow: 0 18px 28px rgba(3, 12, 24, 0.24);
}

body.landing-koala .lp-workflow-builder-pdf-brand,
body.landing-koala .lp-workflow-builder-pdf-head,
body.landing-koala .lp-workflow-builder-pdf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.landing-koala .lp-workflow-builder-pdf-brand strong,
body.landing-koala .lp-workflow-builder-pdf-head strong,
body.landing-koala .lp-workflow-builder-pdf-client strong,
body.landing-koala .lp-workflow-builder-pdf-footer strong {
  color: #1d2f43;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

body.landing-koala .lp-workflow-builder-pdf-logo {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 32%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 68%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    linear-gradient(160deg, #83aef5, #5f6acb);
  box-shadow: 0 8px 16px rgba(83, 113, 189, 0.3);
  flex: 0 0 auto;
}

body.landing-koala .lp-workflow-builder-pdf-head > div,
body.landing-koala .lp-workflow-builder-pdf-meta > div,
body.landing-koala .lp-workflow-builder-pdf-client,
body.landing-koala .lp-workflow-builder-pdf-from,
body.landing-koala .lp-workflow-builder-pdf-footer > div {
  display: grid;
  gap: 2px;
}

body.landing-koala .lp-workflow-builder-pdf-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(188, 204, 221, 0.72);
}

body.landing-koala .lp-workflow-builder-pdf-head small,
body.landing-koala .lp-workflow-builder-pdf-meta small,
body.landing-koala .lp-workflow-builder-pdf-client small,
body.landing-koala .lp-workflow-builder-pdf-from small,
body.landing-koala .lp-workflow-builder-pdf-footer small {
  color: #6b7b8f;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.landing-koala .lp-workflow-builder-pdf-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 5px;
}

body.landing-koala .lp-workflow-builder-pdf-meta > div {
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(228, 236, 245, 0.82);
  border: 1px solid rgba(199, 212, 226, 0.88);
}

body.landing-koala .lp-workflow-builder-pdf-meta strong {
  color: #24364a;
  font-size: 0.56rem;
  line-height: 1;
}

body.landing-koala .lp-workflow-builder-pdf-client strong,
body.landing-koala .lp-workflow-builder-pdf-from span {
  color: #23374a;
  font-size: 0.62rem;
  line-height: 1.2;
}

body.landing-koala .lp-workflow-builder-pdf-from {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(208, 219, 231, 0.74);
}

body.landing-koala .lp-workflow-builder-pdf-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(208, 219, 231, 0.74);
}

body.landing-koala .lp-workflow-builder-pdf-table-head span {
  color: #73859a;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

body.landing-koala .lp-workflow-builder-pdf-rows {
  display: grid;
  gap: 3px;
}

body.landing-koala .lp-workflow-builder-pdf-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(211, 221, 232, 0.72);
}

body.landing-koala .lp-workflow-builder-pdf-rows span,
body.landing-koala .lp-workflow-builder-pdf-rows b {
  color: #314559;
  font-size: 0.58rem;
  line-height: 1.1;
}

body.landing-koala .lp-workflow-builder-pdf-rows b {
  font-weight: 700;
}

body.landing-koala .lp-workflow-builder-pdf-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

body.landing-koala .lp-workflow-builder-pdf-summary > div,
body.landing-koala .lp-workflow-builder-pdf-note {
  display: grid;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(198, 211, 227, 0.84);
  background: rgba(239, 244, 249, 0.88);
}

body.landing-koala .lp-workflow-builder-pdf-note span {
  color: #314559;
  font-size: 0.55rem;
  line-height: 1.15;
  font-weight: 600;
}

body.landing-koala .lp-workflow-builder-pdf-footer {
  padding-top: 6px;
  border-top: 1px solid rgba(188, 204, 221, 0.72);
}

body.landing-koala .lp-workflow-builder-pdf-signature {
  color: #7f92a8;
  font-family: "Unbounded", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

body.landing-koala .lp-workflow-send-card {
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-workflow-send-flow {
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-workflow-send-flow,
body.landing-koala .lp-workflow-chart-card {
  border-radius: 12px;
  border: 1px solid rgba(129, 198, 184, 0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(9, 50, 61, 0.36);
  padding: 9px;
  display: grid;
  gap: 7px;
}

body.landing-koala .lp-workflow-send-step {
  border-radius: 11px;
  border: 1px solid rgba(129, 198, 184, 0.16);
  background: rgba(8, 41, 53, 0.5);
  padding: 9px;
  display: grid;
  gap: 4px;
}

body.landing-koala .lp-workflow-send-step small {
  color: #91c8bc;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

body.landing-koala .lp-workflow-send-step strong {
  color: #f1f7ff;
  font-size: 0.8rem;
}

body.landing-koala .lp-workflow-send-step span {
  color: #c7dfd8;
  font-size: 0.68rem;
  line-height: 1.3;
}

body.landing-koala .lp-workflow-send-step-pay {
  background: linear-gradient(165deg, rgba(74, 89, 221, 0.2), rgba(35, 53, 136, 0.18));
  border-color: rgba(129, 134, 255, 0.3);
}

body.landing-koala .lp-workflow-send-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #82f7cf;
  font-size: 0.92rem;
  font-weight: 700;
}

body.landing-koala .lp-workflow-delivery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.landing-koala .lp-workflow-delivery-pills span {
  border-radius: 999px;
  border: 1px solid rgba(129, 197, 184, 0.26);
  background: rgba(10, 52, 63, 0.5);
  color: #9fd4c8;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 8px;
}

body.landing-koala .lp-workflow-pay-card {
  display: contents;
}

body.landing-koala .lp-workflow-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(240, 242, 255, 0.14);
  border: 1px solid rgba(198, 207, 255, 0.22);
  color: #d8e0ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing-koala .lp-workflow-pay-card strong {
  color: #f5f8ff;
  font-size: 0.9rem;
}

body.landing-koala .lp-workflow-pay-card small {
  color: #d0d8ff;
  font-size: 0.68rem;
  line-height: 1.45;
}

body.landing-koala .lp-workflow-pay-button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  background: linear-gradient(135deg, #79b0ff, #90d2ff);
  color: #102746;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: default;
}

body.landing-koala .lp-workflow-pay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.landing-koala .lp-workflow-pay-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(240, 242, 255, 0.12);
  border: 1px solid rgba(198, 207, 255, 0.16);
  color: #dbe4ff;
  font-size: 0.67rem;
  font-weight: 600;
}

body.landing-koala .lp-workflow-pay-card b {
  color: #ffffff;
  font-size: 0.98rem;
}

body.landing-koala .lp-workflow-manage-card {
  display: grid;
  gap: 7px;
}

body.landing-koala .lp-workflow-manage-visuals {
  display: grid;
  grid-template-columns: minmax(128px, 170px) minmax(0, 1fr);
  gap: 10px;
}

body.landing-koala .lp-workflow-donut-card {
  border-radius: 12px;
  border: 1px solid rgba(129, 198, 184, 0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(9, 50, 61, 0.36);
  padding: 9px;
  display: grid;
  place-items: center;
  gap: 6px;
}

body.landing-koala .lp-workflow-donut {
  --lp-workflow-paid-angle: 295deg;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(#6de6be 0 var(--lp-workflow-paid-angle), #f1c579 var(--lp-workflow-paid-angle) 360deg);
  box-shadow: inset 0 0 0 1px rgba(210, 231, 250, 0.2), 0 10px 22px rgba(7, 16, 28, 0.28);
}

body.landing-koala .lp-workflow-donut::after {
  content: "";
  position: absolute;
  width: 66%;
  height: 66%;
  border-radius: inherit;
  background: rgba(8, 17, 29, 0.9);
  border: 1px solid rgba(151, 186, 219, 0.2);
}

body.landing-koala .lp-workflow-donut span {
  position: relative;
  z-index: 1;
  color: #e7f8ff;
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
}

body.landing-koala .lp-workflow-donut-card small {
  color: #a6d4c8;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.landing-koala .lp-workflow-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

body.landing-koala .lp-workflow-chart-head strong {
  color: #effff9;
  font-size: 0.82rem;
}

body.landing-koala .lp-workflow-bars {
  min-height: 58px;
  padding: 6px 2px 2px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}

body.landing-koala .lp-workflow-bars span {
  display: block;
  height: var(--bar-height, 50%);
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, rgba(148, 237, 208, 0.95), rgba(69, 191, 160, 0.92));
  box-shadow: 0 5px 12px rgba(6, 22, 22, 0.35);
  animation: lpWorkflowBarPulse 6.4s ease-in-out infinite;
}

body.landing-koala .lp-workflow-bars span:nth-child(2) {
  animation-delay: -0.8s;
}

body.landing-koala .lp-workflow-bars span:nth-child(3) {
  animation-delay: -1.6s;
}

body.landing-koala .lp-workflow-bars span:nth-child(4) {
  animation-delay: -2.4s;
}

body.landing-koala .lp-workflow-bars span:nth-child(5) {
  animation-delay: -3.2s;
}

body.landing-koala .lp-workflow-bars span:nth-child(6) {
  animation-delay: -4s;
}

body.landing-koala .lp-workflow-manage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.landing-koala .lp-workflow-manage-metrics div {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(136, 209, 195, 0.22);
  background: rgba(8, 52, 63, 0.4);
  padding: 6px 7px;
  display: grid;
  align-content: center;
  gap: 2px;
}

body.landing-koala .lp-workflow-manage-metrics small {
  color: #9acfc4;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.landing-koala .lp-workflow-manage-metrics b {
  color: #e9fff8;
  font-size: 0.74rem;
  font-weight: 700;
}

body.landing-koala .lp-workflow-client-list {
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-workflow-client-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(132, 203, 190, 0.18);
  background: rgba(9, 50, 61, 0.3);
  padding: 7px 9px;
}

body.landing-koala .lp-workflow-trust {
  border-top: 2px solid rgba(141, 228, 211, 0.34);
  background: linear-gradient(160deg, rgba(9, 47, 58, 0.9), rgba(7, 34, 45, 0.9));
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-workflow-trust .lp-kicker {
  margin-bottom: 0;
}

body.landing-koala .lp-workflow-trust h2 {
  color: #ebfff8;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.26rem, 2vw, 1.62rem);
  line-height: 1.25;
  max-width: 40ch;
}

body.landing-koala .lp-workflow-stats {
  margin-top: 8px;
}

body.landing-koala .lp-workflow-trust .lp-stat-strip article {
  background: linear-gradient(162deg, rgba(12, 66, 80, 0.9), rgba(9, 48, 62, 0.92));
  border-color: rgba(130, 224, 208, 0.34);
}

body.landing-koala .lp-workflow-trust .lp-stat-strip article::before {
  content: none;
}

@keyframes lpWorkflowBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

@keyframes lpWorkflowBarPulse {
  0%,
  100% {
    transform: scaleY(0.96);
    filter: brightness(0.92);
  }
  50% {
    transform: scaleY(1.03);
    filter: brightness(1.05);
  }
}

body.landing-koala .lp-what-you-get {
  border-radius: 24px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(154deg, var(--lp-surface), var(--lp-surface-strong));
  box-shadow: 0 18px 30px rgba(14, 36, 58, 0.24);
  padding: clamp(18px, 2.2vw, 30px);
}

body.landing-koala .lp-what-you-get h2 {
  font-family: "Cormorant Garamond", serif;
  color: #edf6ff;
  font-size: clamp(2.7rem, 4.6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  max-width: 11ch;
}

body.landing-koala .lp-what-you-get p:last-child {
  margin-top: 14px;
  color: #acc2db;
  max-width: 42ch;
  font-size: clamp(1.04rem, 1.22vw, 1.3rem);
  line-height: 1.58;
}

body.landing-koala .lp-difference-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.landing-koala .lp-difference-strip article {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: rgba(210, 232, 250, 0.72);
  padding: 14px;
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-difference-icon {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: rgba(227, 244, 255, 0.78);
  color: #385d7d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.landing-koala .lp-difference-strip h3 {
  font-family: "Unbounded", sans-serif;
  color: #274e6f;
  font-size: 0.92rem;
}

body.landing-koala .lp-difference-strip p:last-child {
  color: #5c7c98;
  font-size: 0.86rem;
  line-height: 1.52;
}

body.landing-koala .lp-contrast {
  border-radius: 24px;
  border: 1px solid rgba(76, 226, 171, 0.12);
  background: linear-gradient(154deg, rgba(10, 22, 42, 0.88), rgba(8, 16, 32, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: clamp(14px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.landing-koala .lp-contrast-card {
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 220, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  display: grid;
  gap: 8px;
}

/* "Without" card — slightly red-tinted */
body.landing-koala .lp-contrast-card:first-child {
  border-color: rgba(220, 80, 80, 0.15);
  background: rgba(180, 40, 40, 0.06);
}

body.landing-koala .lp-contrast-card:first-child h3 {
  color: rgba(255, 140, 140, 0.85);
}

body.landing-koala .lp-contrast-card:first-child .lp-contrast-list li {
  border-color: rgba(220, 80, 80, 0.12);
  background: rgba(180, 40, 40, 0.05);
  color: rgba(220, 180, 180, 0.7);
}

/* "With" card — green-tinted */
body.landing-koala .lp-contrast-card:last-child {
  border-color: rgba(76, 226, 171, 0.18);
  background: rgba(30, 100, 70, 0.08);
}

body.landing-koala .lp-contrast-card:last-child h3 {
  color: #4ce2ab;
}

body.landing-koala .lp-contrast-card:last-child .lp-contrast-list li {
  border-color: rgba(76, 226, 171, 0.12);
  background: rgba(30, 100, 70, 0.06);
  color: rgba(160, 220, 195, 0.75);
}

body.landing-koala .lp-contrast-card h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 0.88rem;
}

body.landing-koala .lp-contrast-card > p {
  margin: 0;
  color: rgba(170, 200, 230, 0.5);
  font-size: 0.78rem;
  line-height: 1.5;
}

body.landing-koala .lp-contrast-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

body.landing-koala .lp-contrast-list li {
  border-radius: 10px;
  border: 1px solid rgba(120, 170, 220, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(170, 200, 230, 0.6);
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 8px 10px;
}

body.landing-koala .lp-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.landing-koala .lp-metric-card {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: rgba(214, 236, 255, 0.72);
  padding: 12px;
}

body.landing-koala .lp-metric {
  font-family: "Unbounded", sans-serif;
  color: #274b68;
  font-size: clamp(1.04rem, 1.7vw, 1.42rem);
  margin-bottom: 4px;
}

body.landing-koala .lp-metric-label {
  color: #607e99;
  font-size: 0.78rem;
}

body.landing-koala .lp-console {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

body.landing-koala .lp-console::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -38px;
  top: -54px;
  background: radial-gradient(circle, rgba(164, 205, 237, 0.56), rgba(164, 205, 237, 0));
  pointer-events: none;
}

body.landing-koala .lp-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--lp-muted);
}

body.landing-koala .lp-console-head p {
  font-weight: 600;
}

body.landing-koala .lp-console-head span {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: rgba(245, 251, 255, 0.92);
}

body.landing-koala .lp-console-body {
  display: grid;
  gap: 14px;
}

body.landing-koala .lp-inline-console {
  margin-top: 2px;
}

body.landing-koala .lp-console-payment .lp-console-body {
  gap: 12px;
}

body.landing-koala .lp-console-pricing .lp-price-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.landing-koala .lp-console-pricing .lp-price-card {
  padding: 14px;
  gap: 10px;
}

body.landing-koala .lp-plan-persona {
  margin-top: -4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(96, 132, 167, 0.28);
  background: linear-gradient(150deg, rgba(78, 111, 146, 0.92), rgba(61, 92, 125, 0.9));
  color: #f5fbff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

body.landing-koala .lp-price-card-pro li strong {
  color: #1f9d62;
}

body.landing-koala.theme-moonlight .lp-plan-persona,
body.landing-koala.theme-tropical .lp-plan-persona {
  border-color: rgba(155, 194, 228, 0.28);
  background: linear-gradient(150deg, rgba(58, 92, 126, 0.94), rgba(41, 71, 101, 0.92));
  color: #f5fbff;
}

body.landing-koala.theme-moonlight .lp-price-card-pro li strong,
body.landing-koala.theme-tropical .lp-price-card-pro li strong {
  color: #77f0ae;
}

body.landing-koala .lp-console-pricing .lp-price {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

body.landing-koala .lp-console-pricing .lp-price-card li {
  font-size: 0.84rem;
}

body.landing-koala .lp-console-pricing .lp-badge {
  top: -9px;
  right: 12px;
}

body.landing-koala .lp-payment-hero-card {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: rgba(216, 236, 253, 0.8);
  padding: 14px;
}

body.landing-koala .lp-payment-amount {
  font-family: "Unbounded", sans-serif;
  color: #214969;
  font-size: 1.48rem;
  margin: 6px 0 8px;
}

body.landing-koala .lp-payment-status {
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-payment-status article {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--lp-line);
  background: rgba(215, 236, 253, 0.72);
  padding: 9px 10px;
  color: #4b708f;
}

body.landing-koala .lp-payment-status p {
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  min-width: 64px;
  color: #305a7b;
}

body.landing-koala .lp-split-panel-invoice .lp-mini-board {
  margin-bottom: 2px;
}

body.landing-koala .lp-payments .lp-pricing-copy {
  max-width: 760px;
}

body.landing-koala .lp-payments-copy .lp-payment-hero-card {
  margin-top: 12px;
}

body.landing-koala .lp-payments-panel .lp-action-rail {
  margin-top: 4px;
}

body.landing-koala .lp-payments-panel .lp-mini-board {
  margin-top: 2px;
}

body.landing-koala .lp-invoice-card,
body.landing-koala .lp-action-rail,
body.landing-koala .lp-activity {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: rgba(217, 237, 255, 0.74);
}

body.landing-koala .lp-invoice-card {
  padding: 14px;
  animation: lpFloat 5s ease-in-out infinite;
}

body.landing-koala .lp-invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.landing-koala .lp-pill {
  padding: 4px 9px;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(227, 240, 251, 0.92);
  color: #3f6281;
}

body.landing-koala .lp-client {
  margin-top: 12px;
  color: #4e6f8d;
}

body.landing-koala .lp-amount {
  font-family: "Unbounded", sans-serif;
  font-size: 1.54rem;
  color: #264968;
  margin-top: 6px;
}

body.landing-koala .lp-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.landing-koala .lp-tags span {
  font-size: 0.74rem;
  color: #5a7a98;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 5px 10px;
}

body.landing-koala .lp-action-rail {
  display: grid;
  gap: 8px;
  padding: 10px;
}

body.landing-koala .lp-action-rail button {
  text-align: left;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--lp-line);
  color: #3f6381;
  background: linear-gradient(145deg, rgba(228, 244, 255, 0.88), rgba(200, 226, 246, 0.82));
}

body.landing-koala .lp-activity {
  padding: 10px;
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-activity article {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--lp-line);
  padding: 10px;
  color: #4b6d8a;
  background: rgba(224, 242, 255, 0.76);
}

body.landing-koala .lp-activity p {
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  min-width: 44px;
  color: #335a7b;
}

body.landing-koala .lp-capability-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.landing-koala .lp-capability-strip article {
  border-radius: 20px;
  border: 1px solid var(--lp-line);
  background: rgba(20, 37, 62, 0.88);
  box-shadow: 0 16px 26px rgba(8, 19, 34, 0.28);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
}

body.landing-koala .lp-feature-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--lp-green-soft);
  border: 1px solid rgba(76, 226, 171, 0.34);
  color: #74f1c0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body.landing-koala .lp-difference-strip .lp-difference-icon {
  background: linear-gradient(135deg, #49e1aa, #38cc93);
  border-color: rgba(114, 236, 190, 0.58);
  color: #081f17;
  box-shadow: 0 8px 14px rgba(8, 30, 24, 0.26);
}

body.landing-koala.theme-moonlight .lp-difference-strip .lp-difference-icon {
  background: linear-gradient(135deg, #49e1aa, #38cc93);
  border-color: rgba(114, 236, 190, 0.58);
  color: #081f17;
}

body.landing-koala .lp-capability-strip h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #eef6ff;
  margin-bottom: 2px;
}

body.landing-koala .lp-capability-strip p {
  color: #b2c7dd;
  font-size: 1.02rem;
  line-height: 1.56;
}

body.landing-koala .lp-proof,
body.landing-koala .lp-product-visual,
body.landing-koala .lp-faq {
  border-radius: 24px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(154deg, var(--lp-surface), var(--lp-surface-strong));
  box-shadow: 0 18px 30px rgba(14, 36, 58, 0.24);
  padding: clamp(18px, 2.2vw, 30px);
}

body.landing-koala .lp-proof {
  display: grid;
  gap: 14px;
}

body.landing-koala .lp-proof-head h2,
body.landing-koala .lp-product-copy h2,
body.landing-koala .lp-faq-copy h2 {
  font-family: "Unbounded", sans-serif;
  color: #244765;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  margin-bottom: 8px;
}

body.landing-koala .lp-proof-head p:last-child,
body.landing-koala .lp-product-copy p:last-child {
  color: #5e7d98;
  line-height: 1.66;
}

body.landing-koala .lp-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.landing-koala .lp-logo-row span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: rgba(217, 237, 255, 0.74);
  color: #496c8b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.landing-koala .lp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.landing-koala .lp-testimonial,
body.landing-koala .lp-case-card {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  background: rgba(214, 236, 255, 0.78);
  padding: 14px;
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-testimonial blockquote {
  color: #385c7a;
  font-size: 0.94rem;
  line-height: 1.62;
}

body.landing-koala .lp-testimonial p {
  color: #5f809d;
  font-size: 0.8rem;
}

body.landing-koala .lp-case-card h3 {
  font-family: "Unbounded", sans-serif;
  color: #2b5272;
  font-size: 0.96rem;
}

body.landing-koala .lp-case-card p {
  color: #527390;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.landing-koala .lp-case-card span {
  color: #2f5a7c;
  font-weight: 600;
  font-size: 0.82rem;
}

body.landing-koala .lp-product-visual {
  display: grid;
  gap: 18px;
}

body.landing-koala .lp-product-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

body.landing-koala .lp-product-shot {
  border-radius: 18px;
  border: 1px solid var(--lp-line);
  background: rgba(210, 232, 250, 0.75);
  padding: 12px;
  display: grid;
  gap: 12px;
}

body.landing-koala .lp-shot-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.landing-koala .lp-shot-head p {
  color: #5a7a97;
  font-size: 0.78rem;
  font-weight: 600;
}

body.landing-koala .lp-shot-dots {
  display: inline-flex;
  gap: 6px;
}

body.landing-koala .lp-shot-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ea3c7;
}

body.landing-koala .lp-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.landing-koala .lp-shot-grid article {
  border-radius: 16px;
  border: 1px solid rgba(149, 182, 214, 0.3);
  background: linear-gradient(160deg, rgba(15, 31, 51, 0.84), rgba(10, 23, 39, 0.92));
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 18px 28px rgba(7, 15, 27, 0.2);
}

body.landing-koala .lp-feature-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(108, 142, 255, 0.14);
  border: 1px solid rgba(143, 173, 255, 0.24);
  color: #8bb4ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.landing-koala .lp-shot-grid h3 {
  color: #f1f7ff;
  font-size: 1rem;
  line-height: 1.2;
}

body.landing-koala .lp-shot-grid p {
  color: #b3c8dd;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.landing-koala .lp-faq {
  display: grid;
  gap: 14px;
}

body.landing-koala .lp-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 12px;
}

body.landing-koala .lp-faq-list {
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-faq-list details {
  border-radius: 12px;
  border: 1px solid var(--lp-line);
  background: rgba(217, 237, 255, 0.72);
  padding: 12px;
}

body.landing-koala .lp-faq-list summary {
  cursor: pointer;
  color: #2f5879;
  font-weight: 600;
}

body.landing-koala .lp-faq-list p {
  margin-top: 8px;
  color: #5d7d9a;
  font-size: 0.88rem;
  line-height: 1.6;
}

body.landing-koala .lp-contact-card {
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  background: rgba(207, 231, 250, 0.76);
  padding: 14px;
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-contact-card h3 {
  font-family: "Unbounded", sans-serif;
  color: #284e6f;
  font-size: 1rem;
}

body.landing-koala .lp-contact-card p {
  color: #5a7a97;
  line-height: 1.6;
  font-size: 0.88rem;
}

body.landing-koala .lp-contact-note {
  color: #6a89a4;
  font-size: 0.78rem;
}

body.landing-koala .lp-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.landing-koala .lp-resources article {
  border-radius: 12px;
  border: 1px solid var(--lp-line);
  background: rgba(218, 238, 255, 0.7);
  padding: 12px;
  display: grid;
  gap: 6px;
}

body.landing-koala .lp-resources h3 {
  color: #31597b;
  font-size: 0.86rem;
}

body.landing-koala .lp-resources p {
  color: #5e7e9b;
  font-size: 0.8rem;
  line-height: 1.5;
}

body.landing-koala .lp-split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
}

body.landing-koala .lp-split-copy,
body.landing-koala .lp-split-panel {
  border-radius: 24px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(150deg, rgba(219, 238, 254, 0.84), rgba(194, 220, 241, 0.8));
  box-shadow: 0 18px 30px rgba(16, 40, 63, 0.22);
  padding: clamp(18px, 2.2vw, 28px);
}

body.landing-koala .lp-split-copy h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  color: #244765;
  margin-bottom: 10px;
}

body.landing-koala .lp-split-copy > p {
  color: #5a7a96;
  line-height: 1.7;
}

body.landing-koala .lp-timeline {
  margin-top: 18px;
  list-style: none;
  display: grid;
  gap: 10px;
}

body.landing-koala .lp-timeline li {
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  background: rgba(216, 236, 254, 0.78);
  padding: 12px;
  display: grid;
  gap: 4px;
}

body.landing-koala .lp-timeline strong {
  color: #2f5879;
  font-size: 0.95rem;
}

body.landing-koala .lp-timeline span {
  color: #5f7f9a;
  line-height: 1.55;
  font-size: 0.88rem;
}

body.landing-koala .lp-split-panel {
  display: grid;
  gap: 14px;
}

body.landing-koala .lp-mini-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.landing-koala .lp-mini-board div {
  border-radius: 14px;
  border: 1px solid var(--lp-line);
  background: rgba(214, 236, 255, 0.78);
  padding: 12px;
}

body.landing-koala .lp-mini-board p {
  font-size: 0.77rem;
  color: #5f7f9b;
  margin-bottom: 6px;
}

body.landing-koala .lp-mini-board strong {
  color: #294f6f;
  font-family: "Unbounded", sans-serif;
}

body.landing-koala .lp-payment-card {
  border-radius: 16px;
  border: 1px solid var(--lp-line);
  padding: 14px;
  background: rgba(214, 236, 255, 0.8);
}

body.landing-koala .lp-payment-head {
  color: #2d5272;
  font-weight: 600;
  margin-bottom: 10px;
}

body.landing-koala .lp-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body.landing-koala .lp-methods span {
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  padding: 6px 10px;
  color: #4f6f8b;
  font-size: 0.8rem;
  background: rgba(206, 230, 249, 0.78);
}

body.landing-koala .lp-payment-note {
  color: #607f9a;
  line-height: 1.62;
  font-size: 0.88rem;
}

body.landing-koala .lp-pricing {
  border-radius: 26px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(154deg, rgba(222, 241, 255, 0.84), rgba(192, 219, 240, 0.8));
  box-shadow: 0 18px 34px rgba(14, 37, 61, 0.24);
  padding: clamp(18px, 2.3vw, 30px);
  display: grid;
  gap: 20px;
}

body.landing-koala .lp-pricing-copy h2 {
  font-family: "Unbounded", sans-serif;
  color: #224a6b;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-bottom: 10px;
}

body.landing-koala .lp-pricing-copy p:last-child {
  color: #5d7b98;
}

body.landing-koala .lp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.landing-koala .lp-price-grid.lp-price-grid-single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

body.landing-koala .lp-plan-note {
  margin: -2px 4px 0;
  color: #5d7b98;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.landing-koala .lp-payment-via {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: rgba(49, 84, 116, 0.98);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.landing-koala .lp-payment-via img {
  display: block;
  height: 15px;
  width: auto;
  opacity: 1;
}

body.landing-koala .lp-price-card {
  position: relative;
  overflow: visible;
  border-radius: 20px;
  border: 1px solid var(--lp-line);
  background: rgba(212, 234, 252, 0.76);
  padding: 18px;
  display: grid;
  gap: 12px;
}

body.landing-koala .lp-price-card h3 {
  font-family: "Unbounded", sans-serif;
  color: #2a516f;
}

body.landing-koala .lp-price {
  font-family: "Unbounded", sans-serif;
  color: #1f4565;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}

body.landing-koala .lp-price span {
  font-family: "Space Grotesk", sans-serif;
  color: #6786a2;
  font-size: 0.95rem;
  margin-left: 6px;
}

body.landing-koala .lp-price-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

body.landing-koala .lp-price-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  color: #5b7a96;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.landing-koala .lp-price-card li strong {
  color: inherit;
  font-weight: 700;
}

body.landing-koala .lp-price-card li::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(92, 132, 171, 0.16);
  color: #315979;
  font-size: 0.72rem;
  font-weight: 700;
}

body.landing-koala .lp-price-card-pro {
  background: linear-gradient(160deg, rgba(197, 225, 247, 0.86), rgba(177, 210, 236, 0.84));
  border-color: rgba(91, 136, 174, 0.46);
  box-shadow: 0 16px 30px rgba(12, 35, 57, 0.28);
}

body.landing-koala .lp-badge {
  position: absolute;
  top: -7px;
  right: 14px;
  background: #95bddf;
  color: #1f4767;
  border-radius: 999px;
  border: 1px solid rgba(85, 126, 163, 0.34);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

body.landing-koala .lp-plan-modal {
  z-index: 140;
}

body.landing-koala .lp-plan-modal .modal-backdrop {
  background: rgba(4, 18, 24, 0.72);
  backdrop-filter: blur(5px);
}

body.landing-koala .lp-plan-modal[data-plan-modal-ready='0'] .lp-plan-modal-content {
  opacity: 0;
  pointer-events: none;
}

body.landing-koala .lp-plan-modal-content {
  position: relative;
  width: min(980px, 94vw);
  max-height: 86vh;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(130, 222, 204, 0.34);
  background: linear-gradient(162deg, rgba(8, 44, 56, 0.97), rgba(6, 32, 44, 0.97));
  box-shadow: 0 22px 36px rgba(3, 17, 24, 0.48);
  transition: opacity 140ms ease;
}

body.landing-koala .lp-plan-modal-header {
  align-items: flex-start;
}

body.landing-koala .lp-plan-modal-header .lp-kicker {
  margin-bottom: 10px;
}

body.landing-koala .lp-plan-modal-header h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #eefff9;
  margin-bottom: 8px;
}

body.landing-koala .lp-plan-modal-header p:last-child {
  color: #b9e3d9;
  font-size: 0.95rem;
}

body.landing-koala .lp-plan-modal-grid {
  margin-top: 2px;
}

body.landing-koala .lp-plan-modal-card {
  min-height: 100%;
  gap: 10px;
}

body.landing-koala .lp-plan-trial-stack {
  display: grid;
  gap: 6px;
}

body.landing-koala .lp-trial-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(111, 238, 194, 0.28);
  background: linear-gradient(135deg, rgba(80, 231, 177, 0.2), rgba(120, 248, 210, 0.08));
  color: #bbffe4;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(224, 255, 244, 0.08);
}

body.landing-koala .lp-price-label {
  color: rgba(191, 226, 214, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.landing-koala .lp-plan-modal-card .lp-price {
  margin-top: -2px;
  font-size: clamp(1.42rem, 1.9vw, 1.92rem);
}

body.landing-koala .lp-plan-modal-card.is-active {
  border-color: rgba(140, 240, 206, 0.56);
  box-shadow: 0 20px 32px rgba(2, 17, 23, 0.46);
}

body.landing-koala .lp-plan-modal-card button {
  width: 100%;
  justify-content: center;
}

body.landing-koala .lp-final-cta {
  border-radius: 24px;
  border: 1px solid var(--lp-line);
  background: linear-gradient(130deg, rgba(162, 199, 230, 0.72), rgba(129, 171, 205, 0.7));
  box-shadow: 0 18px 30px rgba(14, 36, 58, 0.26);
  padding: clamp(18px, 2.2vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.landing-koala .lp-final-cta h2 {
  font-family: "Unbounded", sans-serif;
  color: #234a6b;
  margin-bottom: 8px;
}

body.landing-koala .lp-final-cta p {
  color: #597894;
}

body.landing-koala .site-footer.lp-footer {
  background: rgba(20, 47, 72, 0.48);
  border-top: 1px solid rgba(145, 188, 220, 0.34);
}

body.landing-koala::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 2px);
  background: rgba(14, 21, 38, 0.86);
  pointer-events: none;
  z-index: 11;
}

body.landing-koala .lp-footer .brand-title {
  color: #eaf6ff;
}

body.landing-koala .lp-footer .brand-tag,
body.landing-koala .lp-footer .footer-links,
body.landing-koala .lp-footer .footer-note {
  color: #c2d9ed;
}

@keyframes lpFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1100px) {
  body.landing-koala .lp-header .nav,
  body.landing-koala .lp-header .header-actions {
    display: none;
  }

  body.landing-koala .lp-header .menu {
    display: inline-flex;
  }

  body.landing-koala .lp-header.open .nav,
  body.landing-koala .lp-header.open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    right: 14px;
    top: 72px;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid var(--lp-line);
    background: rgba(23, 53, 81, 0.96);
    padding: 12px;
    box-shadow: 0 12px 20px rgba(10, 28, 46, 0.36);
  }

  body.landing-koala .lp-hero,
  body.landing-koala .lp-split,
  body.landing-koala .lp-product-visual,
  body.landing-koala .lp-faq-layout {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-capability-strip,
  body.landing-koala .lp-difference-strip,
  body.landing-koala .lp-price-grid,
  body.landing-koala .lp-proof-grid,
  body.landing-koala .lp-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-capability-strip {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-workflow-grid {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-workflow-builder-card,
  body.landing-koala .lp-workflow-send-card {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-workflow-manage-visuals {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-feature-rail {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 840px);
  }

  body.landing-koala .lp-contrast {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.landing-koala::before {
    display: none;
  }

  body.landing-koala .site-header.lp-header {
    top: 0;
    margin: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 22px 22px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 4vw 12px;
  }

  body.landing-koala main.landing-v2 {
    padding: 30px 4vw 70px;
    gap: 36px;
    overflow-x: hidden;
  }

  body.landing-koala .lp-metrics,
  body.landing-koala .lp-mini-board,
  body.landing-koala .lp-capability-strip,
  body.landing-koala .lp-difference-strip,
  body.landing-koala .lp-stat-strip,
  body.landing-koala .lp-price-grid,
  body.landing-koala .lp-proof-grid,
  body.landing-koala .lp-shot-grid,
  body.landing-koala .lp-resources {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.landing-koala .lp-capability-strip article {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  body.landing-koala .lp-workflow-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.landing-koala .lp-workflow-title {
    width: 100%;
    order: 2;
  }

  body.landing-koala .lp-workflow-live {
    order: 1;
    margin-left: auto;
  }

  body.landing-koala .lp-workflow-tabs {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-workflow-manage-metrics,
  body.landing-koala .lp-workflow-manage-tags {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-feature-icon {
    width: 50px;
    height: 50px;
  }

  body.landing-koala .lp-capability-strip h3 {
    font-size: 1.5rem;
  }

  body.landing-koala .lp-contrast {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-contrast {
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
  }

  body.landing-koala .lp-contrast-card {
    gap: 5px;
    padding: 8px;
    border-radius: 10px;
  }

  body.landing-koala .lp-contrast-card > p {
    display: none;
  }

  body.landing-koala .lp-contrast-card h3 {
    font-size: 0.78rem;
  }

  body.landing-koala .lp-contrast-list {
    gap: 4px;
  }

  body.landing-koala .lp-contrast-list li {
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.28;
    border-radius: 8px;
  }

  body.landing-koala .lp-final-cta {
    align-items: flex-start;
  }

}

/* Koala Night (non-landing pages) */
body.theme-koala:not(.landing-koala) {
  color-scheme: dark;
  --glow: #a7d7ff;
  --pulse: #8ec4ee;
  --accent: #8ec7f4;
  --accent-2: #5f95ca;
  --text: #edf7ff;
  --muted: #b4cce2;
  --btn-primary-1: #84bbe8;
  --btn-primary-2: #5d95ca;
  --btn-primary-text: #f5fbff;
  --hub-gray-border: rgba(129, 170, 206, 0.3);
  background-image: linear-gradient(180deg, #2e6b9a 0%, #245f8e 28%, #1b4f7c 55%, #133e66 100%);
}

body.theme-koala:not(.landing-koala) .ocean-scene {
  display: block;
  opacity: 0.48;
  background-image: url("assets/backgrounds/ocean-sky-animated.svg?v=20260306g");
  background-size: cover;
  background-position: center bottom;
}

body.theme-koala:not(.landing-koala)::before {
  content: none;
}

body.theme-koala:not(.landing-koala) .nebula {
  background: radial-gradient(circle at 16% 10%, rgba(126, 180, 221, 0.35), transparent 48%),
    radial-gradient(circle at 88% 5%, rgba(104, 161, 206, 0.28), transparent 52%),
    radial-gradient(circle at 42% 72%, rgba(123, 178, 220, 0.24), transparent 58%);
  opacity: 0.62;
  filter: none;
}

body.theme-koala:not(.landing-koala) .nebula::after {
  content: none !important;
  display: none !important;
}

body.theme-koala:not(.landing-koala) .stars {
  background-image:
    radial-gradient(rgba(179, 203, 228, 0.3) 1px, transparent 1px),
    radial-gradient(rgba(216, 231, 245, 0.22) 1px, transparent 1px);
  background-size: 140px 140px, 230px 230px;
  background-position: 0 0, 22px 34px;
  opacity: 0.18;
}

body.theme-koala:not(.landing-koala) .site-header {
  background: rgba(9, 23, 40, 0.8);
  border-bottom: 0;
  box-shadow: 0 8px 16px rgba(5, 15, 27, 0.24);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-koala:not(.landing-koala) .brand-tag {
  color: #b4cde2;
}

body.theme-koala:not(.landing-koala) .primary {
  border-color: rgba(143, 188, 224, 0.38);
  box-shadow: 0 12px 24px rgba(17, 40, 64, 0.4);
}

body.theme-koala:not(.landing-koala) .ghost {
  border-color: rgba(131, 173, 208, 0.38);
  background: rgba(66, 111, 153, 0.22);
}

body.theme-koala:not(.landing-koala) .ghost:hover {
  background: rgba(82, 130, 175, 0.3);
}

body.theme-koala:not(.landing-koala)
  :is(
    .panel-block,
    .invoice-form,
    .sidebar,
    .panel-card,
    .hero-panel,
    .theme-card,
    .modal-content,
    .site-footer,
    .invoice-row,
    .saved-row,
    .bill-row,
    .command-pill
  ) {
  background: linear-gradient(160deg, rgba(14, 32, 52, 0.88), rgba(10, 23, 40, 0.9));
  border-color: rgba(118, 161, 197, 0.28);
}

body.theme-koala:not(.landing-koala)
  :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content, .command-pill) {
  box-shadow: 0 16px 32px rgba(4, 12, 23, 0.45);
}

body.theme-koala:not(.landing-koala) .panel-header span {
  color: #9cc6e7;
}

body.theme-koala:not(.landing-koala) .sidebar-nav a:hover {
  background: rgba(85, 134, 178, 0.26);
}

body.theme-koala:not(.landing-koala) .sidebar-nav a.active {
  background: rgba(90, 139, 185, 0.34);
  border-color: rgba(117, 162, 202, 0.42);
}

body.theme-koala:not(.landing-koala) .invoice-content :is(input, select, textarea) {
  background: rgba(13, 29, 46, 0.9);
  border-color: rgba(117, 159, 194, 0.42);
  color: #eaf4ff;
  box-shadow: inset 0 1px 0 rgba(180, 213, 240, 0.08);
}

body.theme-koala:not(.landing-koala) .invoice-content :is(input, textarea)::placeholder {
  color: rgba(156, 187, 214, 0.72);
}

body.theme-koala:not(.landing-koala) .invoice-content .address-fields {
  background: rgba(17, 36, 56, 0.82);
  border-color: rgba(103, 146, 182, 0.4);
}

body.theme-koala:not(.landing-koala) .invoice-content .item-row {
  background: rgba(16, 34, 52, 0.78);
  border-color: rgba(103, 146, 182, 0.34);
}

body.theme-koala:not(.landing-koala) .invoice-content .item-amount {
  color: #b6d8f3;
}

body.theme-koala:not(.landing-koala) .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(73, 118, 158, 0) 0%, rgba(70, 112, 152, 0.24) 30%, rgba(57, 97, 136, 0.34) 100%),
    linear-gradient(140deg, rgba(16, 36, 56, 0.88) 0%, rgba(13, 30, 48, 0.9) 52%, rgba(11, 25, 42, 0.92) 100%);
  box-shadow: 0 -10px 22px rgba(8, 21, 35, 0.3);
}

body.theme-koala:not(.landing-koala) .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(11, 25, 41, 0.92) 0%, rgba(14, 32, 50, 0.62) 52%, rgba(14, 32, 50, 0) 100%);
}

body.theme-koala:not(.landing-koala) .send-inline-row > label,
body.theme-koala:not(.landing-koala) .send-inline-row-head > label {
  color: #b7d3ea;
}

body.theme-koala:not(.landing-koala) .send-inline-sub {
  color: #98b9d5;
}

body.theme-koala:not(.landing-koala) .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(115, 157, 191, 0.44);
  background: rgba(12, 28, 45, 0.86);
}

body.theme-sky.theme-koala:not(.landing-koala) .invoice-send-inline {
  background:
    linear-gradient(180deg, rgba(187, 219, 245, 0) 0%, rgba(168, 206, 238, 0.3) 32%, rgba(147, 187, 223, 0.42) 100%),
    linear-gradient(146deg, rgba(244, 251, 255, 0.9) 0%, rgba(230, 244, 255, 0.92) 52%, rgba(217, 235, 249, 0.94) 100%);
  box-shadow: 0 -10px 22px rgba(101, 141, 177, 0.22);
}

body.theme-sky.theme-koala:not(.landing-koala) .invoice-send-inline::before {
  background: linear-gradient(180deg, rgba(250, 254, 255, 0.96) 0%, rgba(235, 246, 253, 0.76) 52%, rgba(235, 246, 253, 0) 100%);
}

body.theme-sky.theme-koala:not(.landing-koala) .send-inline-row > label,
body.theme-sky.theme-koala:not(.landing-koala) .send-inline-row-head > label {
  color: #335877;
}

body.theme-sky.theme-koala:not(.landing-koala) .send-inline-sub {
  color: #507796;
}

body.theme-sky.theme-koala:not(.landing-koala) .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
  border-color: rgba(123, 165, 200, 0.46);
  background: rgba(245, 251, 255, 0.88);
}

body.theme-koala:not(.landing-koala) .home-creative {
  border-color: rgba(95, 138, 174, 0.5);
  background:
    radial-gradient(circle at 16% 16%, rgba(79, 126, 166, 0.5), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(61, 104, 146, 0.46), transparent 44%),
    linear-gradient(156deg, rgba(12, 28, 46, 0.92) 0%, rgba(10, 24, 40, 0.93) 56%, rgba(9, 21, 36, 0.94) 100%);
  box-shadow: 0 18px 40px rgba(7, 18, 30, 0.34);
}

body.theme-koala:not(.landing-koala) .home-creative-copy h1 {
  color: #e7f3ff;
}

body.theme-koala:not(.landing-koala) .home-creative-copy .lede {
  color: #a8c5dd;
}

body.theme-koala:not(.landing-koala) .home-creative-pills span {
  border-color: rgba(105, 149, 185, 0.46);
  background: rgba(52, 92, 130, 0.42);
  color: #c9e0f3;
}

body.theme-koala:not(.landing-koala) .home-creative-card {
  border-color: rgba(91, 136, 173, 0.45);
  background: linear-gradient(156deg, rgba(16, 34, 52, 0.9), rgba(13, 28, 44, 0.92));
  box-shadow: 0 14px 28px rgba(7, 18, 30, 0.3);
}

body.theme-koala:not(.landing-koala) .home-creative-card p {
  color: #9ec1df;
}

body.theme-koala:not(.landing-koala) .home-creative-card strong {
  color: #e0effd;
}

body.theme-koala:not(.landing-koala) .home-creative-card span {
  color: #aac8e2;
}

body.theme-koala:not(.landing-koala) .home-card::after {
  background: radial-gradient(circle at 30% 30%, rgba(93, 144, 190, 0.42), rgba(45, 85, 123, 0.08));
  opacity: 0.42;
}

body.theme-koala:not(.landing-koala) .home-kpi-item,
body.theme-koala:not(.landing-koala) .home-health-item,
body.theme-koala:not(.landing-koala) .home-list-item,
body.theme-koala:not(.landing-koala) .home-list-empty,
body.theme-koala:not(.landing-koala) .home-revenue-col {
  background: rgba(11, 27, 44, 0.56);
  border-color: rgba(112, 156, 192, 0.34);
}

body.theme-koala:not(.landing-koala) .home-health-donut::after {
  background: rgba(8, 19, 33, 0.9);
  border-color: rgba(111, 156, 194, 0.35);
}

body.theme-koala:not(.landing-koala) .home-card-footnote {
  color: #97bada;
}

body.theme-koala:not(.landing-koala) .home-kpi-item h3.is-negative {
  color: #ffb0b8;
}

@media (max-width: 900px) {
  body.theme-koala:not(.landing-koala) .site-header.open .nav,
  body.theme-koala:not(.landing-koala) .site-header.open .header-actions {
    background: rgba(10, 24, 40, 0.96);
    border-color: rgba(113, 156, 192, 0.36);
    box-shadow: 0 12px 24px rgba(6, 17, 29, 0.36);
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  main {
    padding: 28px 4vw 84px;
    gap: 72px;
  }

  .site-header {
    padding: 12px 4vw;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand > div {
    min-width: 0;
  }

  .brand-title,
  .brand-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header.open .nav,
  .site-header.open .header-actions {
    left: 4vw;
    right: 4vw;
    top: 68px;
  }

  .saved-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .saved-row > div {
    min-width: 0;
  }

  .saved-row p,
  .saved-row span {
    overflow-wrap: anywhere;
  }

  .saved-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .saved-actions button {
    flex: 1 1 120px;
    min-width: 0;
  }

  .manage-shell {
    gap: 14px;
  }

  .invoice-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .manage-doc-toggle {
    width: 100%;
  }

  .manage-doc-toggle .ghost {
    flex: 1 1 0;
    text-align: center;
  }

  #invoice-status-filter-group,
  #invoice-date-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .invoice-filter-group .ghost {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .invoice-search {
    width: 100%;
    min-width: 0;
  }

  .invoice-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .invoice-actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .invoice-actions-row .ghost,
  .invoice-actions-row .primary {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 9px 8px;
  }

  .dashboard-shell {
    padding: 22px 4vw 96px;
  }

  .invoice-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    overflow: visible;
  }

  .invoice-form > * {
    min-width: 0;
  }

  .invoice-form-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .doc-mode-label {
    white-space: normal;
  }

  .doc-mode-toggle {
    width: 100%;
  }

  .doc-mode-toggle .ghost {
    min-width: 0;
    flex: 1 1 0;
  }

  .invoice-meta,
  .invoice-columns {
    grid-template-columns: 1fr;
  }

  .invoice-block .address-toggle {
    width: 100%;
  }

  .item-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "desc desc"
      "rate qty"
      "amount remove";
    gap: 10px;
    padding: 12px;
  }

  .invoice-items.invoice-step-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .item-header {
    display: none;
  }

  .item-rows,
  .item-row {
    min-width: 0;
    width: 100%;
  }

  .item-desc {
    grid-area: desc;
  }

  .item-rate {
    grid-area: rate;
  }

  .item-qty {
    grid-area: qty;
  }

  .item-amount {
    grid-area: amount;
  }

  .item-remove {
    grid-area: remove;
    justify-self: end;
    align-self: end;
  }

  .add-item {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .totals {
    min-width: 0;
    margin-left: 0;
  }

  .invoice-send-inline {
    margin: 8px 0 0;
    padding: 16px 12px 12px;
    border-radius: 14px;
  }

  .invoice-send-inline::before {
    display: none;
  }

  .send-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .send-inline-actions .ghost,
  .invoice-extra-actions .ghost,
  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    width: 100%;
    min-width: 0;
  }

  .send-inline-row-controls {
    grid-template-columns: 1fr;
  }

  body.landing-koala .site-header.lp-header {
    top: 0;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 4vw 10px;
  }

  body.landing-koala .lp-header .brand-tag {
    display: none;
  }

  body.landing-koala .lp-header .nav,
  body.landing-koala .lp-header.open .nav {
    display: none !important;
  }

  body.landing-koala .lp-header .menu {
    display: none !important;
  }

  body.landing-koala .lp-header .header-actions,
  body.landing-koala .lp-header.open .header-actions {
    display: flex !important;
    position: static;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.landing-koala .lp-header .header-actions > :is(a, button) {
    min-width: 0;
  }

  body.landing-koala .lp-header.open .nav,
  body.landing-koala .lp-header.open .header-actions {
    left: 4vw;
    right: 4vw;
    top: 62px;
  }

  body.landing-koala main.landing-v2 {
    padding: 22px 4vw 56px;
    gap: 22px;
  }

  body.landing-koala .lp-hero-copy,
  body.landing-koala .lp-hero-signup-card,
  body.landing-koala .lp-trust-inline,
  body.landing-koala .lp-what-you-get,
  body.landing-koala .lp-contrast,
  body.landing-koala .lp-product-shot,
  body.landing-koala .lp-pricing,
  body.landing-koala .lp-faq,
  body.landing-koala .lp-final-cta {
    border-radius: 18px;
    padding: 14px;
  }

  body.landing-koala .lp-feature-rail {
    margin-top: -2px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip {
    gap: 10px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip article {
    min-height: 44px;
    padding: 8px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip strong {
    font-size: 0.8rem;
  }

  body.landing-koala .lp-workflow-grid {
    padding: 10px;
    gap: 10px;
  }

  body.landing-koala .lp-workflow-panel {
    padding: 11px;
  }
}

@media (max-width: 420px) {
  .invoice-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile stabilization overrides */
@media (max-width: 960px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 4vw;
    gap: 10px;
  }

  .site-header.open .nav,
  .site-header.open .header-actions {
    left: 4vw;
    right: 4vw;
    top: 68px;
  }

  .brand,
  .brand > div {
    min-width: 0;
  }

  .brand-title,
  .brand-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main,
  .dashboard-shell,
  .clients-page {
    max-width: 100%;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    padding: 22px 4vw 96px;
    gap: 16px;
  }

  .dashboard-shell > .dashboard {
    order: 1;
  }

  .dashboard-shell > .sidebar {
    order: 2;
  }

  .invoice-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    top: auto;
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .invoice-form {
    padding: 12px;
    gap: 16px;
    border-radius: 16px;
  }

  .invoice-step-block + .invoice-step-block {
    padding-top: 14px;
  }

  .invoice-section-head {
    margin-bottom: 8px;
    gap: 8px;
  }

  .invoice-step-chip {
    padding: 3px 7px;
    font-size: 0.6rem;
  }

  .invoice-section-head h3 {
    font-size: 0.84rem;
  }

  .invoice-header input[type="text"] {
    font-size: 1.12rem;
  }

  .invoice-meta {
    margin-top: 10px;
    gap: 10px;
  }

  .invoice-columns,
  .invoice-extra {
    gap: 10px;
  }

  .invoice-block {
    gap: 8px;
  }

  .invoice-block h3 {
    font-size: 0.9rem;
  }

  .invoice-notes textarea {
    min-height: 90px;
  }

  .signature-preview,
  .photo-grid,
  .invoice-logo-preview {
    min-height: 90px;
  }

  .invoice-live-preview {
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
  }

  .invoice-live-paper {
    border-radius: 10px;
    aspect-ratio: auto;
    height: min(58vh, 420px);
  }

  .invoice-live-preview-note {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .saved-row,
  .invoice-row,
  .transaction-list {
    max-width: 100%;
  }

  .crm-contact-meta p,
  .crm-contact-meta span,
  .invoice-row-title,
  .invoice-row-contact,
  .invoice-row-submeta span {
    overflow-wrap: anywhere;
  }

  .manage-shell .invoice-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .manage-shell .manage-doc-toggle {
    width: 100%;
  }

  .manage-shell .manage-doc-toggle .ghost {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .manage-shell #invoice-status-filter-group,
  .manage-shell #invoice-date-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .manage-shell .invoice-filter-group .ghost {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .manage-shell .invoice-date-filter-wrap {
    width: 100%;
  }

  .manage-shell .invoice-search {
    width: 100%;
    min-width: 0;
  }

  .manage-shell .invoice-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .manage-shell .invoice-actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .manage-shell .invoice-actions-row .ghost,
  .manage-shell .invoice-actions-row .primary {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 9px 8px;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 760px) {
  .invoice-live-paper {
    height: min(52vh, 360px);
  }

  .invoice-live-pdf-frame {
    width: 122%;
    height: 122%;
    transform: scale(0.82);
    transform-origin: 0 0;
  }

  .invoice-send-inline {
    margin: 0 -12px -12px;
    padding: 16px 12px 12px;
    gap: 10px;
  }

  body.landing-koala main.landing-v2 {
    padding: 18px 4vw 48px;
    gap: 18px;
  }

  body.landing-koala .lp-hero-copy,
  body.landing-koala .lp-contrast,
  body.landing-koala .lp-product-visual,
  body.landing-koala .lp-product-shot,
  body.landing-koala .lp-pricing,
  body.landing-koala .lp-faq,
  body.landing-koala .lp-final-cta {
    padding: 12px;
    border-radius: 16px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip article {
    min-height: 0;
    padding: 10px 8px;
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip strong {
    font-size: 0.76rem;
  }

  body.landing-koala .lp-shot-grid {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-shot-grid-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-shot-grid-features article {
    min-height: 0;
  }

  body.landing-koala .lp-workflow-shell {
    border-radius: 16px;
    padding: 10px;
    gap: 10px;
  }

  body.landing-koala .lp-workflow-grid,
  body.landing-koala .lp-shot-grid {
    gap: 8px;
  }

  body.landing-koala .lp-workflow-panel,
  body.landing-koala .lp-shot-grid article,
  body.landing-koala .lp-price-card {
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .manage-kpi-item {
    padding: 10px 12px;
    min-height: 64px;
    gap: 4px;
  }

  .manage-kpi-item .panel-title {
    font-size: 0.78rem;
  }

  .manage-kpi-item .panel-value {
    font-size: 0.92rem;
  }

  .manage-shell #invoice-status-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .manage-shell #invoice-date-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .manage-shell .invoice-actions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-shell .invoice-toolbar {
    gap: 8px;
  }
}

/* Global mobile compaction pass */
@media (max-width: 760px) {
  html {
    font-size: 15px;
  }

  main {
    padding: 18px 4vw 56px;
    gap: 28px;
  }

  .site-header {
    padding: 10px 4vw;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-tag,
  .metric-label,
  .auth-note,
  .auth-error,
  .panel-note,
  .pill-label,
  .lp-trial-note,
  .lp-plan-note {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .auth {
    padding: 20px 4vw;
  }

  .auth-card {
    padding: 18px;
    gap: 14px;
    border-radius: 16px;
  }

  .auth-form :is(input, select, textarea) {
    font-size: 16px;
  }

  .auth-card h1,
  .billing-gate-copy h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.1;
  }

  :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content, .command-pill) {
    padding: 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .dashboard-shell,
  .invoice-dashboard,
  .clients-page {
    padding: 16px 4vw 72px;
    gap: 12px;
  }

  .dashboard-hero,
  .dashboard-cards,
  .dashboard-grid,
  .home-grid,
  .clients-top-grid,
  .crm-grid,
  .overview-grid {
    gap: 12px;
  }

  .panel-header,
  .panel-title {
    font-size: 0.76rem;
  }

  .panel-value,
  .pill-value,
  .metric {
    font-size: 1.05rem;
  }

  .home-kpi-item,
  .home-revenue-card,
  .home-health-card,
  .home-attention-card,
  .home-activity-card {
    padding: 12px;
  }

  .home-kpi-item h3 {
    font-size: 0.96rem;
  }

  .sidebar-title {
    font-size: 0.86rem;
  }

  .sidebar-sub,
  .panel-header span {
    font-size: 0.74rem;
  }

  .invoice-header input[type="text"] {
    font-size: 1rem;
  }

  .invoice-live-paper {
    height: min(46vh, 300px);
  }

  .public-invoice-shell {
    padding: 18px 4vw 56px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .public-invoice-copy,
  .public-invoice-cta-card,
  .public-invoice-summary-card {
    padding: 14px;
    border-radius: 16px;
  }

  .public-invoice-meta {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .public-invoice-meta div,
  .public-invoice-summary-card {
    padding: 10px;
    border-radius: 12px;
  }

  .public-invoice-copy h1 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .public-invoice-copy .lede,
  .public-invoice-pay-note,
  .public-invoice-summary-card span {
    font-size: 0.82rem;
  }

  .invoice-preview {
    padding:
      18px
      max(12px, env(safe-area-inset-right))
      56px
      max(12px, env(safe-area-inset-left));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body.public-invoice-page .invoice-preview.public-invoice-shell {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding:
      18px
      max(12px, env(safe-area-inset-right))
      56px
      max(12px, env(safe-area-inset-left));
  }

  .invoice-preview-pages,
  .invoice-sheet-page,
  .invoice-sheet,
  .public-invoice-hero,
  .public-invoice-summary {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .invoice-preview-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .invoice-preview-controls .ghost {
    min-width: 0;
    width: 100%;
    padding-inline: 14px;
  }

  .invoice-preview-status {
    min-width: 0;
    font-size: 0.86rem;
  }

  .invoice-sheet {
    padding: 22px 18px 20px;
    gap: 18px;
    overflow: hidden;
  }

  .sheet-logo img {
    max-width: min(170px, 58%);
    max-height: 52px;
  }

  .sheet-header {
    gap: 12px;
  }

  .sheet-title h1 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .sheet-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sheet-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(54px, 0.62fr) minmax(34px, 0.28fr) minmax(82px, 0.78fr);
    gap: 8px;
    font-size: 0.82rem;
  }

  .sheet-row.header {
    font-size: 0.62rem;
  }

  .sheet-details {
    font-size: 0.82rem;
  }

  .sheet-details strong {
    font-size: 0.8rem;
  }

  .sheet-totals {
    min-width: 0;
    width: 100%;
    margin-left: 0;
  }

  body.landing-koala main.landing-v2 {
    padding: 14px 4vw 40px;
    gap: 14px;
  }

  body.landing-koala .lp-hero-copy,
  body.landing-koala .lp-trust-inline,
  body.landing-koala .lp-what-you-get,
  body.landing-koala .lp-contrast,
  body.landing-koala .lp-product-visual,
  body.landing-koala .lp-product-shot,
  body.landing-koala .lp-pricing,
  body.landing-koala .lp-faq,
  body.landing-koala .lp-final-cta {
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  body.landing-koala .lp-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  body.landing-koala .lp-hero-copy h1,
  body.landing-koala .lp-proof-head h2,
  body.landing-koala .lp-product-copy h2,
  body.landing-koala .lp-faq-copy h2,
  body.landing-koala .lp-pricing-copy h2,
  body.landing-koala .lp-final-cta h2,
  body.landing-koala .lp-split-copy h2 {
    font-size: clamp(1.18rem, 6vw, 1.55rem);
    line-height: 1.12;
  }

  body.landing-koala .lp-hero-title-main {
    font-size: clamp(2.4rem, 9.2vw, 3.2rem);
  }

  body.landing-koala .lp-lede,
  body.landing-koala .lp-hero-checks li,
  body.landing-koala .lp-capability-strip p,
  body.landing-koala .lp-proof-head p:last-child,
  body.landing-koala .lp-product-copy p:last-child,
  body.landing-koala .lp-contact-card p,
  body.landing-koala .lp-payment-note,
  body.landing-koala .lp-faq-list p,
  body.landing-koala .lp-shot-grid p,
  body.landing-koala .lp-case-card p,
  body.landing-koala .lp-timeline span {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  body.landing-koala .lp-hero-actions {
    margin-top: 10px;
  }

  body.landing-koala .lp-hero-signup-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-koala .lp-hero-signup-submit {
    min-width: 0;
    width: 100%;
  }

  body.landing-koala .lp-hero-signup-form input {
    min-height: 46px;
  }

  body.landing-koala .lp-hero-actions .primary,
  body.landing-koala .lp-final-cta .primary,
  body.landing-koala .lp-final-cta .ghost {
    width: 100%;
    justify-content: center;
  }

  body.landing-koala .lp-workflow-shell {
    border-radius: 14px;
    padding: 8px;
    gap: 8px;
  }

  body.landing-koala .lp-workflow-topbar,
  body.landing-koala .lp-workflow-grid,
  body.landing-koala .lp-shot-grid {
    gap: 8px;
  }

  body.landing-koala .lp-product-shot {
    padding: 10px;
  }

  body.landing-koala .lp-workflow-title,
  body.landing-koala .lp-workflow-live,
  body.landing-koala .lp-workflow-label,
  body.landing-koala .lp-workflow-panel small,
  body.landing-koala .lp-workflow-panel span,
  body.landing-koala .lp-shot-head p {
    font-size: 0.72rem;
  }

  body.landing-koala .lp-workflow-panel,
  body.landing-koala .lp-shot-grid article,
  body.landing-koala .lp-price-card,
  body.landing-koala .lp-testimonial,
  body.landing-koala .lp-case-card,
  body.landing-koala .lp-contact-card,
  body.landing-koala .lp-resources article,
  body.landing-koala .lp-timeline li,
  body.landing-koala .lp-mini-board div,
  body.landing-koala .lp-payment-card {
    padding: 10px;
    border-radius: 12px;
    gap: 8px;
  }

  body.landing-koala .lp-shot-grid article {
    padding: 9px;
    gap: 6px;
  }

  body.landing-koala .lp-shot-grid-features article {
    padding: 8px;
    gap: 5px;
  }

  body.landing-koala .lp-shot-grid h3,
  body.landing-koala .lp-contact-card h3 {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  body.landing-koala .lp-shot-grid-features h3 {
    font-size: 0.8rem;
  }

  body.landing-koala .lp-shot-grid p {
    font-size: 0.76rem;
    line-height: 1.34;
  }

  body.landing-koala .lp-shot-grid-features p {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  body.landing-koala .lp-workflow-card {
    padding: 10px;
  }

  body.landing-koala .lp-workflow-builder-card,
  body.landing-koala .lp-workflow-send-card,
  body.landing-koala .lp-workflow-manage-visuals {
    grid-template-columns: 1fr;
  }

  body.landing-koala .lp-workflow-builder-fields,
  body.landing-koala .lp-workflow-manage-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-workflow-builder-micro,
  body.landing-koala .lp-workflow-send-flow,
  body.landing-koala .lp-workflow-manage-card {
    gap: 8px;
  }

  body.landing-koala .lp-workflow-client-list div {
    font-size: 0.72rem;
  }

  body.landing-koala .lp-feature-chip {
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  body.landing-koala .lp-contact-card p,
  body.landing-koala .lp-contact-note {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  body.landing-koala .lp-capability-strip article {
    padding: 12px;
    column-gap: 10px;
    row-gap: 8px;
  }

  body.landing-koala .lp-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.68rem;
  }

  body.landing-koala .lp-capability-strip h3 {
    font-size: 1.12rem;
  }

  body.landing-koala .lp-price {
    font-size: 1.35rem;
  }

  body.landing-koala .lp-price span {
    font-size: 0.76rem;
  }

  body.landing-koala .lp-trial-highlight {
    font-size: 0.88rem;
    padding: 7px 12px;
  }

  body.landing-koala .lp-price-label {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  body.landing-koala .lp-price-card li {
    font-size: 0.78rem;
    line-height: 1.38;
    column-gap: 8px;
  }

  body.landing-koala .lp-payment-via {
    gap: 6px;
    font-size: 0.74rem;
  }

  body.landing-koala .lp-payment-via img {
    height: 13px;
  }

  body.landing-koala .lp-pricing {
    gap: 8px;
  }

  body.landing-koala .lp-pricing-copy {
    display: grid;
    gap: 6px;
  }

  body.landing-koala .lp-price-grid,
  body.landing-koala .lp-plan-modal-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    margin: 0 -2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 50%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.landing-koala .lp-plan-modal-grid {
    margin: 0;
  }

  body.landing-koala .lp-price-grid::before,
  body.landing-koala .lp-price-grid::after,
  body.landing-koala .lp-plan-modal-grid::before,
  body.landing-koala .lp-plan-modal-grid::after {
    content: "";
    flex: 0 0 0;
    pointer-events: none;
  }

  body.landing-koala .lp-price-grid::before,
  body.landing-koala .lp-price-grid::after {
    flex-basis: max(0px, calc(50% - min(82vw, 270px) / 2));
  }

  body.landing-koala .lp-plan-modal-grid::before,
  body.landing-koala .lp-plan-modal-grid::after {
    flex-basis: max(0px, calc(50% - min(78vw, 260px) / 2));
  }

  body.landing-koala .lp-price-grid::-webkit-scrollbar,
  body.landing-koala .lp-plan-modal-grid::-webkit-scrollbar {
    display: none;
  }

  body.landing-koala .lp-price-grid > .lp-price-card {
    flex: 0 0 min(82vw, 270px);
    min-width: min(82vw, 270px);
    scroll-snap-align: center;
  }

  body.landing-koala .lp-plan-modal-grid > .lp-price-card {
    flex: 0 0 min(78vw, 260px);
    min-width: min(78vw, 260px);
    scroll-snap-align: center;
  }

  body.landing-koala .lp-price-card,
  body.landing-koala .lp-plan-modal-card {
    gap: 7px;
    padding-top: 14px;
  }

  body.landing-koala .lp-plan-persona {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 0.76rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.landing-koala .lp-price-card ul {
    gap: 6px;
  }

  body.landing-koala .lp-price-card li {
    grid-template-columns: 15px minmax(0, 1fr);
    font-size: 0.74rem;
    line-height: 1.3;
    column-gap: 7px;
  }

  body.landing-koala .lp-price-card li::before {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    font-size: 0.62rem;
  }

  body.landing-koala .lp-badge {
    top: 6px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  body.landing-koala .lp-plan-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  body.landing-koala .lp-plan-modal-content {
    width: min(96vw, 430px);
    max-height: 84vh;
    padding: 12px;
    border-radius: 18px;
  }

  body.landing-koala .lp-plan-modal-header {
    gap: 10px;
    margin-bottom: 2px;
  }

  body.landing-koala .lp-plan-modal-header .lp-kicker {
    margin-bottom: 6px;
  }

  body.landing-koala .lp-plan-modal-header h2 {
    font-size: clamp(1.08rem, 6vw, 1.36rem);
    margin-bottom: 4px;
  }

  body.landing-koala .lp-plan-modal-header p:last-child {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body.landing-koala .lp-plan-modal-card .lp-price {
    font-size: 1.26rem;
  }

  body.landing-koala .lp-plan-modal-header .ghost {
    padding: 8px 10px;
  }

  body.landing-koala .lp-plan-modal-card button,
  body.landing-koala .lp-price-card > a {
    min-height: 42px;
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 14px;
  }

  main,
  .dashboard-shell,
  .invoice-dashboard,
  .clients-page {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .site-header {
    padding: 8px 4vw;
  }

  .auth-card,
  :is(.panel-block, .invoice-form, .panel-card, .sidebar, .hero-panel, .theme-card, .modal-content, .command-pill) {
    padding: 12px;
    gap: 10px;
  }

  .invoice-live-paper {
    height: min(42vh, 260px);
  }

  body.landing-koala main.landing-v2 {
    padding: 12px 4vw 32px;
    gap: 12px;
  }

  body.landing-koala .lp-hero-copy,
  body.landing-koala .lp-trust-inline,
  body.landing-koala .lp-what-you-get,
  body.landing-koala .lp-contrast,
  body.landing-koala .lp-product-visual,
  body.landing-koala .lp-product-shot,
  body.landing-koala .lp-pricing,
  body.landing-koala .lp-faq,
  body.landing-koala .lp-final-cta {
    padding: 10px;
    border-radius: 12px;
  }

  body.landing-koala .lp-hero-copy h1,
  body.landing-koala .lp-proof-head h2,
  body.landing-koala .lp-product-copy h2,
  body.landing-koala .lp-faq-copy h2,
  body.landing-koala .lp-pricing-copy h2,
  body.landing-koala .lp-final-cta h2,
  body.landing-koala .lp-split-copy h2 {
    font-size: clamp(1.08rem, 7.2vw, 1.38rem);
  }

  body.landing-koala .lp-hero-break {
    display: block;
  }

  body.landing-koala .lp-contrast {
    gap: 5px;
    padding: 6px;
    border-radius: 14px;
  }

  body.landing-koala .lp-contrast-card {
    gap: 4px;
    padding: 7px;
    border-radius: 9px;
  }

  body.landing-koala .lp-contrast-list {
    gap: 3px;
  }

  body.landing-koala .lp-contrast-list li {
    padding: 5px 7px;
    font-size: 0.68rem;
    line-height: 1.24;
    border-radius: 7px;
  }
}

@keyframes lpWorkflowPanelReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  body.landing-koala .lp-workflow-topbar {
    padding: 6px 8px;
  }

  body.landing-koala .lp-workflow-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 2px 0;
    background: transparent;
    border-bottom: 0;
  }

  body.landing-koala .lp-workflow-tab {
    justify-content: center;
    min-height: 0;
    padding: 7px 5px;
    font-size: 0.67rem;
    line-height: 1.12;
    white-space: normal;
    gap: 6px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 8px 18px rgba(6, 18, 25, 0.18);
  }

  body.landing-koala .lp-workflow-tab:not(.is-active)::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: #74f3ca;
    opacity: 0.26;
    transform: scale(0.76);
    box-shadow: 0 0 0 0 rgba(116, 243, 202, 0);
    transition:
      opacity 1400ms ease-in-out,
      transform 1400ms ease-in-out,
      box-shadow 1400ms ease-in-out;
  }

  body.landing-koala .lp-workflow-shell.is-dot-pulse .lp-workflow-tab:not(.is-active)::before {
    opacity: 0.8;
    transform: scale(0.9);
    box-shadow: 0 0 0 4px rgba(116, 243, 202, 0.08);
  }

  body.landing-koala .lp-workflow-grid {
    display: flex;
    justify-content: center;
    padding: 7px 2px 2px;
  }

  body.landing-koala .lp-workflow-panel {
    display: none;
  }

  body.landing-koala .lp-workflow-panel.is-active {
    display: grid;
    width: min(100%, 354px);
    margin: 0 auto;
    padding: 6px;
    gap: 5px;
    animation: lpWorkflowPanelReveal 220ms ease;
  }

  body.landing-koala .lp-workflow-title,
  body.landing-koala .lp-workflow-label {
    display: none;
  }

  body.landing-koala .lp-workflow-panel-head h3 {
    font-size: 0.74rem;
    line-height: 1.1;
  }

  body.landing-koala .lp-workflow-panel-head p {
    display: none;
  }

  body.landing-koala .lp-workflow-card {
    padding: 0;
    gap: 5px;
  }

  body.landing-koala .lp-workflow-builder-layout {
    max-width: 284px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-content: center;
  }

  body.landing-koala .lp-workflow-builder-layout-pdf-only {
    max-width: 182px;
  }

  body.landing-koala .lp-workflow-builder-form {
    border-right: 0;
    grid-template-rows: auto auto auto auto auto;
  }

  body.landing-koala .lp-workflow-builder-top {
    padding: 6px 7px 5px;
    gap: 6px;
  }

  body.landing-koala .lp-workflow-theme-picker {
    grid-auto-flow: column;
    grid-auto-columns: 12px;
    justify-content: start;
    gap: 5px;
  }

  body.landing-koala .lp-workflow-theme-picker span {
    width: 12px;
    height: 12px;
  }

  body.landing-koala .lp-workflow-builder-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px 6px;
    gap: 3px;
  }

  body.landing-koala .lp-workflow-builder-field {
    padding: 4px 5px;
  }

  body.landing-koala .lp-workflow-builder-field-wide {
    grid-column: 1 / -1;
  }

  body.landing-koala .lp-workflow-builder-field small,
  body.landing-koala .lp-workflow-builder-total small,
  body.landing-koala .lp-workflow-send-step small,
  body.landing-koala .lp-workflow-chart-head span,
  body.landing-koala .lp-workflow-manage-metrics small,
  body.landing-koala .lp-workflow-client-list span {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }

  body.landing-koala .lp-workflow-builder-field strong,
  body.landing-koala .lp-workflow-client-list strong,
  body.landing-koala .lp-workflow-send-step strong {
    font-size: 0.61rem;
    line-height: 1.1;
  }

  body.landing-koala .lp-workflow-builder-sheet-head,
  body.landing-koala .lp-workflow-client-list div {
    flex-direction: row;
    align-items: center;
  }

  body.landing-koala .lp-workflow-builder-sheet-head,
  body.landing-koala .lp-workflow-client-list div {
    gap: 4px;
  }

  body.landing-koala .lp-workflow-builder-lines div {
    padding: 3px 4px;
  }

  body.landing-koala .lp-workflow-builder-lines span,
  body.landing-koala .lp-workflow-builder-lines b {
    font-size: 0.54rem;
  }

  body.landing-koala .lp-workflow-builder-lines div:nth-child(n + 2) {
    display: none;
  }

  body.landing-koala .lp-workflow-builder-total {
    margin: 4px 6px 6px;
    padding: 4px 6px;
    display: flex;
  }

  body.landing-koala .lp-workflow-builder-total strong {
    font-size: 0.6rem;
  }

  body.landing-koala .lp-workflow-builder-actions {
    gap: 4px;
    padding: 0 6px 6px;
  }

  body.landing-koala .lp-workflow-builder-actions span {
    min-height: 18px;
    padding: 0 6px;
    font-size: 0.47rem;
  }

  body.landing-koala .lp-workflow-builder-pdf {
    padding: 0;
  }

  body.landing-koala .lp-workflow-builder-pdf-sheet {
    width: 100%;
    max-width: 182px;
    min-height: 286px;
    aspect-ratio: auto;
    padding: 7px;
    gap: 4px;
    border-radius: 12px;
  }

  body.landing-koala .lp-workflow-builder-pdf-logo {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }

  body.landing-koala .lp-workflow-builder-pdf-brand strong,
  body.landing-koala .lp-workflow-builder-pdf-head strong,
  body.landing-koala .lp-workflow-builder-pdf-client strong,
  body.landing-koala .lp-workflow-builder-pdf-footer strong {
    font-size: 0.5rem;
    line-height: 1.1;
  }

  body.landing-koala .lp-workflow-builder-pdf-head small,
  body.landing-koala .lp-workflow-builder-pdf-meta small,
  body.landing-koala .lp-workflow-builder-pdf-client small,
  body.landing-koala .lp-workflow-builder-pdf-from small,
  body.landing-koala .lp-workflow-builder-pdf-footer small {
    font-size: 0.34rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-meta {
    gap: 3px;
  }

  body.landing-koala .lp-workflow-builder-pdf-meta > div {
    padding: 2px 3px;
  }

  body.landing-koala .lp-workflow-builder-pdf-meta strong {
    font-size: 0.42rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-client strong,
  body.landing-koala .lp-workflow-builder-pdf-from span {
    font-size: 0.43rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-table-head span {
    font-size: 0.36rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-rows div {
    padding: 2px 0;
  }

  body.landing-koala .lp-workflow-builder-pdf-rows span,
  body.landing-koala .lp-workflow-builder-pdf-rows b {
    font-size: 0.38rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-summary {
    gap: 3px;
  }

  body.landing-koala .lp-workflow-builder-pdf-summary > div,
  body.landing-koala .lp-workflow-builder-pdf-note {
    padding: 3px 4px;
    border-radius: 6px;
  }

  body.landing-koala .lp-workflow-builder-pdf-note span {
    font-size: 0.4rem;
  }

  body.landing-koala .lp-workflow-builder-pdf-signature {
    font-size: 0.42rem;
  }

  body.landing-koala .lp-workflow-send-step {
    padding: 6px;
  }

  body.landing-koala .lp-workflow-send-step span,
  body.landing-koala .lp-workflow-delivery-pills {
    display: none;
  }

  body.landing-koala .lp-workflow-send-arrow {
    display: none;
  }

  body.landing-koala .lp-workflow-pay-button {
    min-height: 28px;
    font-size: 0.64rem;
    padding: 0 8px;
  }

  body.landing-koala .lp-workflow-pay-badge {
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  body.landing-koala .lp-workflow-pay-card b {
    font-size: 0.78rem;
  }

  body.landing-koala .lp-workflow-manage-visuals {
    grid-template-columns: minmax(90px, 100px) minmax(0, 1fr);
    gap: 8px;
  }

  body.landing-koala .lp-workflow-donut {
    width: 58px;
  }

  body.landing-koala .lp-workflow-donut span {
    font-size: 0.6rem;
  }

  body.landing-koala .lp-workflow-donut-card small {
    font-size: 0.52rem;
    line-height: 1.2;
  }

  body.landing-koala .lp-workflow-bars {
    min-height: 36px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.landing-koala .lp-workflow-bars span:nth-child(n + 5) {
    display: none;
  }

  body.landing-koala .lp-workflow-manage-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.landing-koala .lp-workflow-manage-metrics div {
    min-height: 0;
    padding: 5px;
    gap: 1px;
  }

  body.landing-koala .lp-workflow-manage-metrics b {
    font-size: 0.64rem;
  }

  body.landing-koala .lp-workflow-client-list div {
    padding: 5px 6px;
    gap: 3px;
  }
}

@media (max-width: 760px) {
  .invoice-mobile-stepper {
    display: grid;
    gap: 8px;
    position: sticky;
    top: 74px;
    z-index: 8;
    margin: 2px 0 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(129, 177, 222, 0.34);
    background:
      linear-gradient(155deg, rgba(244, 250, 255, 0.96), rgba(224, 238, 251, 0.94)),
      linear-gradient(135deg, rgba(129, 202, 255, 0.22), rgba(94, 141, 214, 0.18));
    box-shadow: 0 16px 28px rgba(82, 118, 154, 0.18);
    backdrop-filter: blur(14px);
  }

  .invoice-mobile-stepper[hidden] {
    display: none !important;
  }

  .invoice-mobile-stepper-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .invoice-mobile-stepper-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .invoice-mobile-stepper-kicker {
    margin: 0;
    color: #6280a0;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .invoice-mobile-stepper-title {
    display: block;
    min-width: 0;
    color: #17334c;
    font-family: "Unbounded", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .invoice-mobile-stepper-arrow {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 700;
  }

  .invoice-mobile-stepper-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .invoice-mobile-stepper-pill {
    min-width: 0;
    padding: 7px 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(138, 178, 219, 0.26);
    background: rgba(255, 255, 255, 0.52);
    display: grid;
    gap: 2px;
    justify-items: center;
    box-shadow: none;
  }

  .invoice-mobile-stepper-pill.is-active {
    background: linear-gradient(145deg, rgba(80, 216, 164, 0.98), rgba(63, 190, 147, 0.94));
    border-color: rgba(55, 163, 126, 0.4);
    color: #063324;
    box-shadow: 0 10px 18px rgba(53, 156, 122, 0.26);
    transform: translateY(-1px);
  }

  .invoice-mobile-stepper-pill-index {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
  }

  .invoice-mobile-stepper-pill-label {
    max-width: 100%;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-shell {
    padding: 12px 4vw 64px;
    gap: 10px;
  }

  .invoice-content {
    gap: 10px;
  }

  .invoice-form {
    padding: 10px;
    gap: 12px;
    border-radius: 12px;
  }

  .invoice-form-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
  }

  .doc-mode-toggle {
    grid-column: auto;
    flex: 1;
    min-width: 0;
    padding: 2px;
  }

  .doc-mode-toggle .ghost {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .doc-mode-label {
    display: none;
  }

  .invoice-reset-btn {
    justify-self: end;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .invoice-step-block + .invoice-step-block {
    padding-top: 10px;
  }

  .invoice-step-block .invoice-section-head {
    cursor: default;
    user-select: auto;
    min-height: 30px;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block {
    display: none;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block.is-active-step {
    display: grid;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block .invoice-section-head::after {
    content: none;
  }

  .invoice-section-head {
    margin-bottom: 6px;
    gap: 6px;
  }

  .invoice-step-chip {
    padding: 2px 6px;
    font-size: 0.54rem;
  }

  .invoice-section-head h3 {
    font-size: 0.78rem;
  }

  .invoice-header input[type="text"] {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .invoice-meta {
    margin-top: 8px;
    gap: 8px;
  }

  .invoice-columns,
  .invoice-extra,
  .invoice-items,
  .send-inline-fields {
    gap: 8px;
  }

  .invoice-columns-tools {
    margin: 0;
  }

  .invoice-client-import-toggle {
    width: 100%;
  }

  .invoice-block {
    gap: 6px;
  }

  .invoice-block h3 {
    font-size: 0.82rem;
  }

  .invoice-content label {
    gap: 4px;
    font-size: 0.76rem;
  }

  .invoice-content :is(input, select, textarea) {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .invoice-block .address-toggle {
    width: auto;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .address-fields {
    padding: 8px;
    gap: 8px;
    border-radius: 10px;
  }

  .item-row {
    gap: 8px;
    padding: 8px;
  }

  .item-row input,
  .item-amount {
    font-size: 0.82rem;
  }

  .item-remove {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .add-item {
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .add-item::before {
    width: 22px;
    height: 22px;
    font-size: 1rem;
  }

  .totals {
    gap: 4px;
    font-size: 0.78rem;
  }

  .invoice-notes textarea {
    min-height: 76px;
  }

  .signature-preview,
  .photo-grid,
  .invoice-logo-preview {
    min-height: 72px;
    padding: 8px;
    border-radius: 10px;
  }

  .invoice-logo-preview img {
    max-height: 56px;
  }

  .signature-preview img {
    max-height: 64px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-empty {
    font-size: 0.74rem;
  }

  .invoice-extra-actions {
    margin-top: 8px;
    gap: 6px;
  }

  .invoice-extra-actions .ghost {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .invoice-send-inline {
    margin-top: 6px;
    padding: 12px 10px 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .send-inline-title {
    font-size: 0.86rem;
  }

  .send-inline-sub {
    font-size: 0.74rem;
  }

  .send-inline-actions {
    gap: 6px;
  }

  .send-inline-actions .ghost,
  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .send-inline-row {
    gap: 4px;
  }

  .send-inline-row-controls {
    gap: 6px;
  }

  .send-inline-row-controls > :is(input[type="email"], input[type="tel"]) {
    min-height: 38px;
  }

  .sidebar {
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .sidebar-top {
    gap: 8px;
  }

  .sidebar-title {
    font-size: 0.8rem;
  }

  .sidebar-sub,
  .invoice-live-preview-note,
  .send-inline-row-note {
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .invoice-mobile-stepper {
    top: 70px;
    padding: 9px;
  }

  .invoice-mobile-stepper-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doc-mode-toggle .ghost {
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes invoiceMobileStepReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  body.page-create {
    touch-action: manipulation;
  }

  /* ── Edge-to-edge shell ── */
  .dashboard-shell {
    padding: 10px 0 0;
    gap: 0;
    overflow-x: clip;
  }

  .invoice-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
  }

  .sidebar,
  .preview-open-icon {
    display: none !important;
  }

  .dashboard,
  .dashboard-grid,
  .invoice-editor,
  .invoice-content,
  .invoice-form,
  .invoice-step-block {
    min-width: 0;
  }

  .invoice-form {
    --mobile-step-card-edge: rgba(105, 192, 255, 0.34);
    --mobile-step-card-glow: rgba(72, 129, 196, 0.22);
    --mobile-step-chip-bg: rgba(123, 199, 255, 0.2);
    --mobile-step-chip-text: #dff2ff;
    gap: 6px;
    padding: 0 14px;
    border-radius: 0;
    background: transparent;
    width: 100%;
  }

  .invoice-form[data-mobile-step-tone='sky'] {
    --mobile-step-card-edge: rgba(116, 209, 255, 0.36);
    --mobile-step-card-glow: rgba(76, 142, 210, 0.24);
    --mobile-step-chip-bg: rgba(121, 208, 255, 0.18);
    --mobile-step-chip-text: #def4ff;
  }

  .invoice-form[data-mobile-step-tone='mint'] {
    --mobile-step-card-edge: rgba(114, 238, 197, 0.34);
    --mobile-step-card-glow: rgba(61, 153, 130, 0.26);
    --mobile-step-chip-bg: rgba(109, 234, 193, 0.18);
    --mobile-step-chip-text: #e4fff5;
  }

  .invoice-form[data-mobile-step-tone='violet'] {
    --mobile-step-card-edge: rgba(171, 143, 255, 0.34);
    --mobile-step-card-glow: rgba(101, 82, 190, 0.26);
    --mobile-step-chip-bg: rgba(168, 138, 255, 0.19);
    --mobile-step-chip-text: #f1e9ff;
  }

  .invoice-form[data-mobile-step-tone='amber'] {
    --mobile-step-card-edge: rgba(255, 205, 118, 0.34);
    --mobile-step-card-glow: rgba(185, 126, 45, 0.24);
    --mobile-step-chip-bg: rgba(255, 205, 118, 0.18);
    --mobile-step-chip-text: #fff3d5;
  }

  .invoice-form[data-mobile-step-tone='rose'] {
    --mobile-step-card-edge: rgba(255, 127, 179, 0.34);
    --mobile-step-card-glow: rgba(178, 73, 127, 0.24);
    --mobile-step-chip-bg: rgba(255, 127, 179, 0.18);
    --mobile-step-chip-text: #ffe4f0;
  }

  .invoice-form[data-mobile-step-tone='cyan'] {
    --mobile-step-card-edge: rgba(116, 233, 255, 0.34);
    --mobile-step-card-glow: rgba(63, 156, 183, 0.24);
    --mobile-step-chip-bg: rgba(116, 233, 255, 0.18);
    --mobile-step-chip-text: #defcff;
  }

  /* ── Compact single-row toolbar ── */
  .invoice-form-tools {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    padding: 0 2px;
  }

  .doc-mode-toggle {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 2px;
    border-radius: 999px;
    border-color: rgba(120, 170, 220, 0.16);
    background: rgba(8, 16, 30, 0.8);
    box-shadow: none;
  }

  .doc-mode-toggle .ghost {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(200, 222, 240, 0.6);
  }

  .doc-mode-toggle .ghost.is-active {
    color: #031b2a;
    background: linear-gradient(135deg, #8ce8ff, #82ffc8);
    box-shadow: 0 4px 10px rgba(84, 207, 224, 0.18);
  }

  .invoice-reset-btn {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 0.68rem;
    border-radius: 10px;
    background: rgba(11, 22, 38, 0.72);
    border-color: rgba(142, 186, 227, 0.2);
    white-space: nowrap;
  }

  /* ── Redesigned mobile stepper: slim bar ── */
  .invoice-mobile-stepper {
    --mobile-step-progress: 16%;
    --mobile-step-accent-a: #8ed8ff;
    --mobile-step-accent-b: #6a82ff;
    position: sticky;
    top: 64px;
    z-index: 8;
    gap: 0;
    margin: 0;
    padding: 8px 4px 6px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(120, 170, 220, 0.1);
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: visible;
  }

  .invoice-mobile-stepper::before,
  .invoice-mobile-stepper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 0;
  }

  .invoice-mobile-stepper::before {
    background: rgba(223, 238, 255, 0.06);
  }

  .invoice-mobile-stepper::after {
    right: auto;
    width: var(--mobile-step-progress);
    background: linear-gradient(90deg, var(--mobile-step-accent-a), var(--mobile-step-accent-b));
    box-shadow: 0 0 24px color-mix(in srgb, var(--mobile-step-accent-a) 36%, transparent);
    transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .invoice-mobile-stepper[data-active-tone='sky']   { --mobile-step-accent-a: #8ed8ff; --mobile-step-accent-b: #6a82ff; }
  .invoice-mobile-stepper[data-active-tone='mint']   { --mobile-step-accent-a: #92ffd9; --mobile-step-accent-b: #53d8a6; }
  .invoice-mobile-stepper[data-active-tone='violet'] { --mobile-step-accent-a: #b99bff; --mobile-step-accent-b: #7e69ff; }
  .invoice-mobile-stepper[data-active-tone='amber']  { --mobile-step-accent-a: #ffd693; --mobile-step-accent-b: #ff9d53; }
  .invoice-mobile-stepper[data-active-tone='rose']   { --mobile-step-accent-a: #ff9dd0; --mobile-step-accent-b: #ff6f9f; }
  .invoice-mobile-stepper[data-active-tone='cyan']   { --mobile-step-accent-a: #91efff; --mobile-step-accent-b: #55c6f5; }

  /* Hide arrows and pill grid — navigation is via bottom bar now */
  .invoice-mobile-stepper-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
  }

  .invoice-mobile-stepper-arrow {
    display: none;
  }

  .invoice-mobile-stepper-meta {
    gap: 0;
    text-align: center;
  }

  .invoice-mobile-stepper-kicker {
    display: none;
  }

  .invoice-mobile-stepper-title {
    color: #e8f4ff;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .invoice-mobile-stepper-tabs {
    display: none !important;
  }

  /* ── Edge-to-edge step content ── */
  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block {
    display: none;
    border-top: 0;
    padding-top: 0;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block.is-active-step {
    display: grid;
    gap: 8px;
    width: 100%;
    min-height: calc(100dvh - 212px);
    padding: 12px 0 72px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    align-content: start;
    animation: invoiceMobileStepReveal 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Hide duplicate section heading — title already shown in stepper bar */
  .invoice-section-head {
    display: none;
  }

  .invoice-step-chip {
    display: none;
  }

  .invoice-header input[type='text'] {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.96rem;
    border-radius: 12px;
  }

  .invoice-header,
  .invoice-columns,
  .invoice-items,
  .invoice-notes,
  .invoice-extra,
  .invoice-send-inline {
    width: 100%;
  }

  .invoice-meta,
  .invoice-columns,
  .invoice-extra,
  .invoice-items,
  .send-inline-fields {
    gap: 7px;
  }

  .invoice-header .invoice-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .invoice-header .invoice-meta > label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
  }

  .invoice-header .invoice-meta > label:last-child {
    grid-column: 1 / -1;
  }

  .invoice-header .invoice-meta > label > span,
  .invoice-header .invoice-meta > label > :first-child:not(:is(input, select, textarea)) {
    flex: initial;
    padding-right: 0;
  }

  .invoice-header .invoice-meta > label :is(input, select, textarea) {
    width: 100%;
  }

  .invoice-header .invoice-terms-custom {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 6px;
  }

  /* Compact inline label+input rows */
  .invoice-content label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    font-size: 0.72rem;
    color: rgba(180, 210, 240, 0.55);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .invoice-content label > span,
  .invoice-content label > :first-child:not(:is(input, select, textarea)) {
    flex: 0 0 68px;
    padding-right: 8px;
  }

  .invoice-content label :is(input, select, textarea) {
    flex: 1;
  }

  .invoice-content :is(input, select, textarea) {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(12, 24, 42, 0.7);
    border-color: transparent;
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  .invoice-content :is(input, select, textarea):focus {
    border-color: rgba(108, 228, 184, 0.5);
    box-shadow: 0 0 0 3px rgba(108, 228, 184, 0.08);
    outline: none;
  }

  .invoice-block {
    padding: 10px;
    border-radius: 16px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
    gap: 7px;
  }

  .item-row {
    padding: 10px;
    border-radius: 14px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
    gap: 8px;
  }

  .send-inline-row {
    padding: 10px;
    border-radius: 14px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
  }

  .invoice-block h3,
  .send-inline-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(180, 210, 240, 0.7);
    margin-bottom: 2px;
  }

  .invoice-block .address-toggle {
    width: auto;
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .address-fields {
    padding: 8px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .item-row input,
  .item-amount {
    font-size: 16px;
  }

  .item-amount {
    align-self: center;
    color: #edfbff;
    font-weight: 600;
  }

  .item-remove {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 1.1rem;
  }

  .add-item {
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .totals {
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
    font-size: 0.82rem;
  }

  .invoice-extra {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .invoice-extra > :is(.invoice-extra-card, #invoice-logo-attachment-wrap) {
    min-width: 0;
    padding: 8px;
    border-radius: 14px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
    gap: 6px;
  }

  .invoice-extra-notes-card {
    grid-column: 1 / -1;
  }

  .invoice-extra-notes-input {
    min-height: 76px;
    resize: none;
  }

  .signature-preview,
  .photo-grid,
  .invoice-logo-preview {
    min-height: 58px;
    padding: 8px;
    border-radius: 12px;
    border: none;
    background: rgba(7, 15, 28, 0.48);
  }

  .invoice-logo-preview img {
    max-height: 38px;
  }

  .signature-preview img {
    max-height: 42px;
  }

  .signature-preview span,
  .photo-empty,
  .invoice-branding-placeholder {
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
  }

  .invoice-extra-actions {
    gap: 6px;
  }

  .invoice-extra-actions .ghost {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .invoice-extra-card-head {
    gap: 6px;
  }

  .invoice-extra-card-head h3 {
    font-size: 0.72rem;
  }

  .invoice-extra-actions-compact .invoice-extra-action-btn {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .invoice-send-inline {
    margin: 0;
    padding: 0;
    gap: 10px;
    border-radius: 0;
    background: transparent;
    border: none;
  }

  .invoice-send-stripe-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 14px;
    border: none;
    background: rgba(10, 20, 36, 0.34);
  }

  .invoice-send-stripe-summary[hidden] {
    display: none !important;
  }

  .invoice-send-stripe-summary-main {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .invoice-send-stripe-summary-kicker {
    margin: 0;
    color: rgba(186, 208, 228, 0.56);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .invoice-send-stripe-summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .invoice-send-stripe-summary-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(166, 203, 244, 0.18);
    background: rgba(132, 171, 218, 0.1);
  }

  .invoice-send-stripe-summary-logo img {
    display: block;
    width: 54px;
    height: auto;
    opacity: 0.94;
  }

  .invoice-send-stripe-summary-status {
    margin: 0;
    min-width: 0;
    color: rgba(222, 235, 248, 0.82);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .invoice-send-stripe-summary[data-connected='1'] .invoice-send-stripe-summary-status {
    color: #9ee3be;
  }

  .invoice-send-stripe-summary-btn {
    flex-shrink: 0;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
  }

  .send-inline-sub,
  .send-inline-row-note {
    font-size: 0.72rem;
  }

  .send-inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .send-inline-actions .ghost,
  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
  }

  .send-inline-row {
    gap: 6px;
  }

  .send-inline-row-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .send-inline-row-controls > :is(input[type='email'], input[type='tel']) {
    min-height: 42px;
  }

  .send-inline-row-controls .send-invoice,
  .send-inline-row-controls .send-invoice-text {
    min-width: 92px;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-send-inline.is-active-step {
    padding-bottom: 112px;
  }

  .sidebar {
    padding: 10px;
    gap: 8px;
    border-radius: 18px;
  }

  /* ── Hide invoice-side on mobile — moved to settings sheet ── */
  .invoice-side {
    display: none !important;
  }

  /* ── Settings trigger button ── */
  .invoice-mobile-settings-btn {
    display: flex !important;
    align-items: center;
    gap: 3px;
    padding: 5px 9px;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 10px;
    border-color: rgba(120, 170, 220, 0.18);
    color: rgba(200, 222, 240, 0.75);
    white-space: nowrap;
  }

  .invoice-mobile-settings-btn span {
    font-size: 0.8rem;
  }

  /* ── Bottom sheet for settings ── */
  .invoice-mobile-settings-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
  }

  .invoice-mobile-settings-sheet[hidden] {
    display: none !important;
  }

  .invoice-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: sheetFadeIn 200ms ease;
  }

  .invoice-mobile-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 18px;
    padding-bottom: max(18px, calc(18px + env(safe-area-inset-bottom)));
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(14, 26, 44, 0.98), rgba(8, 16, 30, 0.99));
    border-top: 1px solid rgba(120, 170, 220, 0.15);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    animation: sheetSlideUp 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .invoice-mobile-sheet-handle {
    width: 36px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(180, 210, 240, 0.25);
    cursor: pointer;
  }

  .invoice-mobile-sheet-content {
    display: grid;
    gap: 14px;
  }

  .invoice-mobile-sheet-content .invoice-controls-panel {
    padding: 0;
    background: transparent;
    border: none;
    gap: 16px;
  }

  .invoice-mobile-sheet-content .invoice-branding-stack {
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
  }

  .invoice-mobile-sheet-content .color-grid.color-grid-compact {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
  }

  .invoice-mobile-sheet-content .color {
    min-height: 36px;
    border-radius: 12px;
  }

  .invoice-mobile-sheet-content select {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.86rem;
    border-radius: 14px;
    background: rgba(12, 24, 42, 0.7);
    border-color: rgba(120, 170, 220, 0.14);
  }

  .invoice-mobile-sheet-content .template-swatches-label,
  .invoice-mobile-sheet-content .template-theme-control > span,
  .invoice-mobile-sheet-content .compact-control > span {
    font-size: 0.78rem;
    color: rgba(200, 222, 244, 0.7);
    font-weight: 600;
  }

  .invoice-mobile-sheet-content .template-theme-note {
    font-size: 0.72rem;
    color: rgba(160, 192, 220, 0.5);
  }

  .invoice-mobile-sheet-content .invoice-stripe-inline {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(120, 170, 220, 0.1);
    background: rgba(10, 20, 36, 0.5);
  }

  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  @keyframes sheetFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* ── Bottom navigation bar ── */
  .invoice-mobile-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    padding-bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
    background: rgba(4, 8, 18, 0.88);
    border-top: 1px solid rgba(100, 160, 220, 0.1);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
  }

  .invoice-mobile-bottomnav[hidden] {
    display: none !important;
  }

  .invoice-mobile-bottom-prev {
    min-width: 80px;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 14px;
    border-color: rgba(100, 160, 220, 0.16);
    color: rgba(180, 210, 240, 0.6);
  }

  .invoice-mobile-bottom-prev:disabled {
    opacity: 0.2;
  }

  .invoice-mobile-bottom-next {
    min-width: 100px;
    min-height: 46px;
    padding: 10px 22px;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: -0.01em;
  }

  body.page-create .invoice-editor :is(button, a, [role='button']) {
    touch-action: manipulation;
  }

  .invoice-mobile-bottom-center {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .invoice-mobile-bottom-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .invoice-mobile-bottom-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(180, 210, 240, 0.18);
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .invoice-mobile-bottom-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mobile-step-accent-a, #8ed8ff), var(--mobile-step-accent-b, #6a82ff));
    box-shadow: 0 0 12px color-mix(in srgb, var(--mobile-step-accent-a, #8ed8ff) 30%, transparent);
  }

  .template-swatches-label,
  .template-theme-control > span,
  .compact-control > span {
    font-size: 0.72rem;
  }

  .color-grid.color-grid-compact {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
  }

  .color-grid-compact .color {
    min-height: 22px;
    border-radius: 10px;
    border-width: 1px;
    box-shadow: 0 3px 8px rgba(4, 10, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .invoice-controls-panel select {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .template-theme-note {
    font-size: 0.68rem;
  }

  .invoice-live-preview {
    gap: 10px;
    padding: 12px 10px 10px;
    border-radius: 22px;
    background:
      radial-gradient(circle at top left, rgba(131, 211, 255, 0.16), transparent 34%),
      radial-gradient(circle at bottom right, rgba(140, 118, 255, 0.16), transparent 36%),
      linear-gradient(165deg, rgba(6, 14, 26, 0.96), rgba(10, 21, 37, 0.94));
  }

  .invoice-live-paper {
    width: min(100%, 228px);
    max-width: 228px;
    height: auto !important;
    max-height: none;
    margin: 0 auto;
    padding: 6px;
    border-radius: 18px;
    aspect-ratio: 210 / 297;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    border: 1px solid rgba(161, 189, 223, 0.42);
    box-shadow: 0 20px 32px rgba(4, 10, 20, 0.34);
  }

  .invoice-live-image-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    border-radius: 12px;
    background: #ffffff;
  }

  .invoice-live-image-preview[hidden] {
    display: none !important;
  }

  .invoice-live-preview[data-preview-mode='snapshot'] .invoice-live-pdf-frame {
    display: none;
  }

  .invoice-live-preview[data-preview-mode='pdf'] .invoice-live-image-preview {
    display: none;
  }

  .invoice-live-pdf-frame {
    width: 100%;
    height: 100%;
    transform: none !important;
    transform-origin: 50% 0;
    background: #ffffff;
  }

  .invoice-live-preview-note {
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: center;
    color: rgba(209, 225, 242, 0.82);
  }

  .invoice-live-preview-controls {
    gap: 8px;
  }

  .invoice-live-preview-controls .ghost {
    min-width: 0;
    padding: 7px 8px;
    font-size: 0.72rem;
    flex: 1 1 0;
  }

  .invoice-live-preview-status {
    min-width: 72px;
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .invoice-mobile-stepper {
    top: 60px;
    padding: 10px 4px 8px;
  }

  .invoice-form {
    padding: 0 10px;
  }

  .send-inline-actions {
    grid-template-columns: 1fr;
  }

  .invoice-live-paper {
    width: min(100%, 206px);
    max-width: 206px;
  }

  .invoice-mobile-bottom-prev {
    min-width: 68px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .invoice-mobile-bottom-next {
    min-width: 88px;
    padding: 9px 16px;
    font-size: 0.82rem;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.landing-koala .site-header.lp-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: calc(100% - 8vw);
    box-sizing: border-box;
    margin: 14px auto 0;
    padding: 13px 16px;
  }

  body.landing-koala .lp-header .brand {
    min-width: 0;
    gap: 12px;
  }

  body.landing-koala .lp-header .brand > div {
    min-width: 0;
  }

  body.landing-koala .lp-header .brand-tag {
    display: none;
  }

  body.landing-koala .lp-header .brand-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.landing-koala .lp-header .menu {
    width: 40px;
    height: 40px;
    justify-self: end;
    flex: 0 0 40px;
    margin: 0;
  }

  body.landing-koala main.landing-v2 {
    padding: 34px 5vw 74px;
    gap: 24px;
  }

  body.landing-koala .lp-hero-copy,
  body.landing-koala .lp-feature-rail,
  body.landing-koala .lp-workflow-snapshot,
  body.landing-koala .lp-pricing,
  body.landing-koala .lp-contrast,
  body.landing-koala .lp-faq,
  body.landing-koala .lp-final-cta {
    padding: 18px;
    border-radius: 20px;
  }

  body.landing-koala .lp-hero-copy h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.02;
  }

  body.landing-koala .lp-lede {
    max-width: 44ch;
    font-size: 0.98rem;
  }

  body.landing-koala .lp-capability-strip,
  body.landing-koala .lp-contrast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-feature-rail .lp-stat-strip,
  body.landing-koala .lp-shot-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.landing-koala .lp-faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
  }

  body.landing-koala .lp-workflow-panel {
    max-width: 760px;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  main {
    padding: 34px 5vw 92px;
    gap: 42px;
  }

  .site-header {
    padding: 12px 5vw;
    gap: 12px;
  }

  .site-header.open .nav,
  .site-header.open .header-actions {
    right: 5vw;
    top: 72px;
  }

  .dashboard-shell {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    padding: 28px 5vw 96px;
    gap: 18px;
  }

  .dashboard-shell > .dashboard,
  .dashboard-shell > .sidebar {
    order: initial;
  }

  .sidebar {
    position: sticky;
    top: 96px;
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
  }

  .preview-open-icon,
  .preview-close-btn {
    display: none !important;
  }

  .invoice-content {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 16px;
  }

  .invoice-form {
    padding: 18px;
    gap: 18px;
    border-radius: 18px;
  }

  .invoice-form-tools {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
  }

  .invoice-mobile-stepper {
    display: none !important;
  }

  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block,
  .invoice-form[data-mobile-stepper-ready='1'] .invoice-step-block.is-active-step {
    display: grid;
  }

  .home-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid-insights .home-revenue-card,
  .home-grid-insights .home-health-card,
  .home-grid-actions .home-attention-card,
  .home-grid-actions .home-activity-card {
    grid-column: 1 / -1;
  }

  .clients-page,
  .invoice-dashboard,
  .settings-page {
    padding: 38px 5vw 96px;
  }

  .clients-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.94fr);
  }

  .clients-panel {
    min-height: 0;
  }

  .clients-panel .crm-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-card-wide {
    grid-column: span 2;
  }

  .settings-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  }

  .settings {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 16px;
  }

  .settings-column-secondary {
    position: sticky;
    top: 96px;
  }

  .settings-usage-panel .usage-panel-grid,
  .theme-grid-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 940px) {
  main {
    padding: 28px 4vw 88px;
    gap: 28px;
  }

  .dashboard-shell,
  .invoice-dashboard,
  .clients-page,
  .settings-page {
    padding: 28px 4vw 88px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-shell > .dashboard,
  .dashboard-shell > .sidebar {
    min-width: 0;
  }

  .dashboard-shell > .dashboard {
    order: 1;
  }

  .dashboard-shell > .sidebar {
    order: 2;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 14px;
    gap: 12px;
  }

  .invoice-live-preview-panel {
    width: 100%;
  }

  .invoice-live-paper {
    width: min(100%, 360px);
  }

  .invoice-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .invoice-form {
    padding: 16px;
    gap: 16px;
    border-radius: 18px;
  }

  .invoice-form-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .doc-mode-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .invoice-reset-btn {
    justify-self: end;
  }

  .settings-hero,
  .settings {
    grid-template-columns: 1fr;
  }

  .settings {
    gap: 16px;
  }

  .settings-column-secondary {
    position: static;
  }

  .settings-card,
  .settings-card-spacious,
  .settings-hero {
    padding: 20px;
  }

  .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-card-wide {
    grid-column: span 1;
  }

  .manage-shell .invoice-toolbar {
    gap: 14px;
  }

  .manage-shell #invoice-status-filter-group,
  .manage-shell #invoice-date-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-shell .invoice-search {
    max-width: none;
  }
}
