.login-brand-logo{width:100%;max-width:400px;height:auto}.v2-app{background:radial-gradient(ellipse at 0 0,rgba(234,30,137,.09),transparent 45%),radial-gradient(ellipse at 100% 30%,rgba(40,152,255,.08),transparent 45%),#060913;color:#f5f6ff;min-height:100vh}
.v2-header{display:flex;align-items:center;justify-content:space-between;padding:1rem max(1rem,calc((100vw - 1200px)/2));background:rgba(6,9,19,.97);border-bottom:1px solid #27304b;gap:1rem}
.v2-logo img{width:240px;max-width:40vw;display:block}.v2-account{display:flex;align-items:center;gap:1rem;font-size:.9rem}.v2-account form{margin:0}
.v2-desktop-nav{position:sticky;top:0;z-index:30;display:flex;justify-content:center;gap:.2rem;flex-wrap:wrap;padding:.55rem;background:#0b1020;border-bottom:1px solid #29304a}
.v2-desktop-nav a{padding:.65rem .8rem;border-radius:.55rem;color:#bac5dd;text-decoration:none;font-size:.88rem;font-weight:700}.v2-desktop-nav a[aria-current],.v2-desktop-nav a:hover{background:#29162c;color:#ff78c7;box-shadow:inset 0 -2px #ff3bab}
.v2-page-heading{max-width:1200px;margin:1.7rem auto 1rem;padding:0 1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.v2-page-heading h1{font-size:1.65rem;margin:.2rem 0}.v2-page-heading .eyebrow{font-size:.65rem;color:#7fa8cc}
.v2-main{max-width:1200px;margin:auto;padding:0 1rem 2rem}.v2-welcome{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0 1.5rem}.v2-welcome h2{font-size:1.8rem;margin:.4rem 0}.v2-welcome p{color:#b0bbd0}
.v2-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.v2-card{padding:1.5rem;border:1px solid #29324a;border-radius:1.2rem;background:linear-gradient(130deg,rgba(28,33,54,.85),rgba(12,17,32,.96));box-shadow:0 10px 24px #0003}.v2-metric{border-top:2px solid #fd399f}.v2-metric:nth-child(2n){border-top-color:#359ffc}.v2-metric p{color:#c4cbdd;font-size:.9rem;margin:0 0 1rem}.v2-metric strong{font-size:clamp(1.5rem,3vw,2rem);display:block;letter-spacing:.02em}.v2-metric small{display:block;color:#909eb9;margin-top:.8rem}
.v2-target{margin-top:1.2rem}.v2-target h2{font-size:1.1rem}.v2-target-values{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:1.4rem 0;color:#a9b4ce}.v2-target-values strong{display:block;margin-top:.45rem;color:#f5f6ff;font-size:1.2rem}progress{width:100%;height:.8rem;accent-color:#ff3bab}progress::-webkit-progress-bar{background:#242c43;border-radius:1rem}progress::-webkit-progress-value{background:linear-gradient(90deg,#ff3bab,#449fff);border-radius:1rem}
.v2-daily{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.2rem}.v2-daily blockquote{margin:1rem 0;color:#e4e8f9;line-height:1.6;font-size:1.05rem}.v2-daily small{color:#9caac5}.v2-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.4rem 0}.v2-mobile-nav,.v2-more{display:none}[hidden]{display:none!important}
@media(max-width:900px){.v2-desktop-nav{gap:0}.v2-desktop-nav a{font-size:.75rem;padding:.65rem}.v2-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.v2-header{position:sticky;top:0;z-index:30;padding:.7rem}.v2-logo img{width:160px;max-width:44vw}.v2-account{gap:.5rem}.v2-account>span{display:none}.v2-desktop-nav{display:none}.v2-page-heading{margin-top:1rem}.v2-main{padding:0 .7rem 6rem}.v2-welcome{align-items:flex-start;flex-direction:column}.v2-welcome h2{font-size:1.35rem}.v2-card{padding:1rem}.v2-metrics{gap:.65rem}.v2-metric p{min-height:2.5rem;margin-bottom:.4rem;font-size:.8rem}.v2-metric strong{font-size:1.4rem}.v2-target-values{grid-template-columns:1fr 1fr}.v2-daily{grid-template-columns:1fr}.v2-mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:40;background:#0a1020;border-top:1px solid #33405c;padding:.6rem .2rem calc(.6rem + env(safe-area-inset-bottom))}.v2-mobile-nav a,.v2-mobile-nav button{background:none;border:0;box-shadow:none;color:#a8b6cf;font-size:.7rem;text-decoration:none;text-align:center;padding:0;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem}.v2-mobile-nav span{font-size:1.4rem}.v2-mobile-nav a[aria-current]{color:#ff6fc0}.v2-more{position:fixed;right:.7rem;bottom:calc(5rem + env(safe-area-inset-bottom));z-index:41;display:flex;flex-direction:column;min-width:180px;background:#121c33;border:1px solid #3b4863;border-radius:1rem;padding:.5rem;box-shadow:0 10px 30px #0008}.v2-more a{color:#eee;text-decoration:none;padding:1rem;border-radius:.5rem}.v2-actions .button-link{flex:1 1 40%}}
@media print{.v2-header,.v2-desktop-nav,.v2-mobile-nav,.v2-more{display:none}.v2-app{background:white;color:black}.v2-card{background:white;box-shadow:none}}
/* Visual checkpoint: sidebar control-centre shell, no backend changes. */
.v2-icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}.v2-app{background:radial-gradient(ellipse at 70% 0,rgba(92,31,115,.12),transparent 50%),#070a12}.v2-header{height:148px;margin-left:232px;padding:1.2rem 2rem;position:relative;gap:1.5rem;background:radial-gradient(ellipse at 25% 0,#29102a55,transparent 70%),linear-gradient(110deg,#070911,#101224);border-bottom:1px solid #75314e;box-shadow:0 1px 20px #f62c9612}.v2-brand{flex:0 1 340px;min-width:180px}.v2-logo img{width:310px;max-width:100%;height:82px;object-fit:contain;object-position:left center}.v2-brand p{font-size:.78rem;margin:.4rem 0 0;color:#cfbdd2;letter-spacing:.035em}.v2-search{display:flex;align-items:center;gap:.5rem;flex:1;max-width:420px;min-width:180px;border:1px solid #354059;background:#111726;border-radius:.8rem;padding:.4rem .6rem;margin:0}.v2-search>.v2-icon{color:#97a9c9;width:20px}.v2-search input{background:transparent;border:0;min-width:0;padding:.5rem .2rem}.v2-search button{min-height:36px;font-size:.75rem;padding:.4rem .6rem}.v2-account{flex-direction:column;align-items:flex-end;gap:.45rem;min-width:145px}.v2-profile{position:relative}.v2-profile summary{display:flex;align-items:center;gap:.6rem;cursor:pointer;list-style:none;padding:.35rem .65rem;background:#142031;border:1px solid #34445f;border-radius:.7rem}.v2-profile summary:after{content:'⌄';margin-left:.6rem;color:#a1b1cc}.v2-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#263b52;color:#edf5ff;border:1px solid #4f6987}.v2-profile form{position:absolute;right:0;top:100%;padding:.7rem;background:#111a2b;border:1px solid #3e4764;border-radius:.7rem;z-index:50;min-width:150px}.v2-profile button{width:100%}.v2-datetime{text-align:right;color:#b8c7df;font-size:.75rem;line-height:1.5}.v2-datetime time{display:block;color:#ecf3ff;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.v2-desktop-nav{position:fixed;left:0;top:0;bottom:0;width:232px;display:flex;flex-direction:column;justify-content:flex-start;flex-wrap:nowrap;padding:2rem .8rem;gap:.45rem;overflow-y:auto;background:linear-gradient(180deg,#0d1321,#080e18);border-right:1px solid #2e3048;border-bottom:0}.v2-sidebar-label{color:#798ba9;font-size:.65rem;letter-spacing:.18em;margin:1rem .9rem 1.7rem}.v2-desktop-nav a{display:flex;align-items:center;gap:.85rem;min-height:48px;padding:.85rem .9rem;font-size:.87rem;font-weight:550;border:1px solid transparent}.v2-desktop-nav a[aria-current]{color:#ff83c9;background:linear-gradient(90deg,#72213b65,#3b1e3e44);border-color:#9a375c;box-shadow:inset 3px 0 #ff3b9e,0 0 15px #ff3b9e14}.v2-desktop-nav a:hover{background:#242033;color:#ff9acf;box-shadow:none}.v2-nav-divider{height:1px;background:#283247;margin:.9rem}.v2-sidebar-love{display:flex;align-items:center;gap:.7rem;color:#a989a1;font-size:.78rem;margin:auto .9rem 0;padding-top:2rem}.v2-sidebar-love .v2-icon{color:#ee69b1;width:18px}
.v2-page-heading{margin:1.4rem 2rem .6rem 264px;max-width:none;padding:0}.v2-page-heading h1{font-size:1.15rem;color:#bbc6dc;font-weight:550}.v2-page-heading .eyebrow{display:none}.v2-main{max-width:none;margin-left:232px;padding:0 2rem 2rem}.v2-app>.dashboard-shell{margin-left:264px;width:calc(100% - 296px);max-width:none}.v2-welcome{margin:.9rem 0 1.4rem}.v2-welcome h2{font-size:clamp(1.5rem,2.3vw,2rem);font-weight:650}.v2-welcome .eyebrow{font-size:.65rem;letter-spacing:.1em}.v2-welcome p{font-size:.83rem}.v2-welcome button{border-color:#68415c;color:#efc3dc}.v2-daily{margin:0 0 1.3rem;gap:1.1rem}.v2-daily .v2-card{padding:1.2rem 1.4rem;min-height:155px;border-color:#48314c;background:linear-gradient(120deg,#211628bb,#111828)}.v2-daily .v2-card:nth-child(2){border-color:#293d64;background:linear-gradient(120deg,#152138,#131528)}.v2-daily .eyebrow{display:flex;align-items:center;gap:.7rem;color:#f180c4;margin:0}.v2-daily .v2-card:nth-child(2) .eyebrow{color:#70bbff}.v2-daily blockquote{font-size:.95rem;margin:.85rem 0 .6rem}.v2-metrics{gap:1.1rem}.v2-metric{position:relative;min-height:175px;border:1px solid #75405f;background:linear-gradient(130deg,#211629,#131725);box-shadow:0 0 18px #f13e9210,inset 0 1px #ee57ac22;padding:1.3rem 1.4rem}.v2-metric:nth-child(2n){border-color:#315884;background:linear-gradient(130deg,#14243a,#111725);box-shadow:0 0 18px #3b9efa12,inset 0 1px #499cff22}.v2-metric-top{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}.v2-metric-top p{min-height:0;margin:0;color:#c8d0e4;font-size:.85rem}.v2-metric-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#54234460;border:1px solid #94436c;color:#ff79bf}.v2-metric:nth-child(2n) .v2-metric-icon{background:#21466a60;border-color:#366594;color:#75c3ff}.v2-metric strong{font-size:clamp(1.6rem,2.5vw,2.35rem);font-weight:700;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.v2-metric small{font-size:.7rem;margin-top:.6rem}.v2-target{border-color:#3d4263;padding:1.4rem;margin-top:1.3rem}.v2-target h2{font-size:1.15rem}.v2-actions-title{font-size:1.1rem;margin:1.6rem 0 .8rem}.v2-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin:0}.v2-actions .button-link{display:flex;align-items:center;justify-content:center;gap:.6rem;font-size:.85rem;padding:1rem .7rem;min-height:56px}.v2-actions .v2-icon{width:21px}.v2-card{min-width:0}.v2-profile summary:focus-visible,.v2-desktop-nav a:focus-visible{outline:2px solid #6ecaff;outline-offset:3px}
@media(min-width:721px) and (max-width:1100px){.v2-header{padding:1rem;height:170px;flex-wrap:wrap;gap:.6rem}.v2-brand{flex:1}.v2-logo img{width:240px;height:68px}.v2-search{order:3;max-width:none;flex-basis:100%}.v2-main{padding:0 1rem 2rem}.v2-page-heading{margin-left:248px;margin-right:1rem}.v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-daily{grid-template-columns:1fr}.v2-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-header{height:auto;margin-left:0;padding:.8rem;flex-wrap:wrap;gap:.8rem;position:relative}.v2-brand{min-width:0;flex:1}.v2-logo img{width:200px;max-width:100%;height:65px}.v2-brand p{font-size:.62rem}.v2-account{min-width:110px;font-size:.75rem;gap:.35rem}.v2-account>span{display:inline}.v2-profile summary{padding:.3rem .4rem;gap:.4rem}.v2-avatar{width:26px;height:26px}.v2-search{order:3;max-width:none;flex-basis:100%;min-width:0}.v2-datetime{font-size:.63rem}.v2-desktop-nav{display:none}.v2-main{margin-left:0;padding:0 .8rem 6rem}.v2-page-heading{margin:1rem .8rem .5rem;padding:0}.v2-app>.dashboard-shell{margin:1rem .8rem 6rem;width:calc(100% - 1.6rem)}.v2-welcome{flex-direction:row;align-items:center;gap:.5rem}.v2-welcome h2{font-size:1.3rem}.v2-welcome .eyebrow{display:none}.v2-welcome p{font-size:.73rem}.v2-welcome button{font-size:.72rem;padding:.55rem;flex-shrink:0}.v2-daily{grid-template-columns:1fr;gap:.7rem}.v2-daily .v2-card{padding:1rem;min-height:0}.v2-daily blockquote{font-size:.85rem}.v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.v2-metric{padding:1rem .8rem;min-height:170px}.v2-metric-top{align-items:flex-start;gap:.5rem;min-height:50px}.v2-metric-top p{font-size:.76rem;min-height:0}.v2-metric-icon{width:32px;height:32px;border-radius:9px}.v2-metric-icon .v2-icon{width:19px}.v2-metric strong{font-size:clamp(1.2rem,5vw,1.65rem)}.v2-metric small{font-size:.65rem}.v2-target{padding:1rem}.v2-target-values strong{font-size:1rem}.v2-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-actions .button-link{font-size:.75rem}.v2-mobile-nav{display:grid}.v2-page-heading h1{font-size:1rem}}
@media print{.v2-header,.v2-desktop-nav{display:none}.v2-main,.v2-page-heading,.v2-app>.dashboard-shell{margin-left:0;width:auto}.v2-metric,.v2-daily .v2-card{background:white;color:black;box-shadow:none}.v2-search{display:none}}
/* Second polish pass: presentation only, approved structure retained. */
.v2-header{margin-left:256px;height:164px;padding:1rem 1.6rem;gap:1.25rem;background:radial-gradient(ellipse at 18% 50%,#6a16462b,transparent 58%),radial-gradient(ellipse at 90% 0,#13538538,transparent 60%),#090c17;border-bottom:1px solid #82345f;box-shadow:0 2px 24px #fa359d1c,inset 0 -1px #409ffb24}.v2-header:after{content:'';position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:linear-gradient(90deg,#ff3b9e,#784395 48%,#36baff);opacity:.65;pointer-events:none}.v2-brand{flex:1 1 400px;min-width:250px;max-width:460px}.v2-logo img{width:420px;height:112px;max-width:100%;filter:drop-shadow(0 0 12px #ff369623)}.v2-brand p{font-size:.92rem;font-weight:550;color:#f3d4e6;margin:.2rem 0 0;letter-spacing:.025em}.v2-search{flex:1 1 260px;max-width:390px;background:#131b2a;border-color:#3a5677;box-shadow:0 0 18px #36acff0c}.v2-search input{font-size:.88rem}.v2-search button{border-color:#41688e;color:#bddfff}.v2-account{min-width:150px}.v2-profile summary{border-color:#496782;background:linear-gradient(120deg,#203248,#111c2d);box-shadow:0 4px 14px #0003}.v2-datetime{font-size:.8rem}.v2-datetime time{font-size:.94rem;color:#e3efff}
.v2-desktop-nav{width:256px;padding:1.5rem 1rem;gap:.6rem;background:radial-gradient(ellipse at 0 12%,#77234916,transparent 65%),linear-gradient(180deg,#111827,#090e1a);border-right-color:#493044;box-shadow:4px 0 24px #0003}.v2-sidebar-label{font-size:.7rem;margin:.9rem 1rem 1.5rem}.v2-desktop-nav a{font-size:.96rem;min-height:53px;padding:.95rem 1rem;gap:.95rem;border-radius:.7rem}.v2-desktop-nav a>.v2-icon{width:27px;height:27px}.v2-desktop-nav a[aria-current]{background:linear-gradient(90deg,#a7275855,#50213966);border-color:#d74482;color:#ff8ccb;box-shadow:inset 3px 0 #ff4bae,0 0 19px #f42b931f;text-shadow:0 0 12px #fc4ca342}.v2-desktop-nav a[aria-current]>.v2-icon{filter:drop-shadow(0 0 5px #ff489788)}.v2-nav-divider{margin:1.1rem .8rem;background:linear-gradient(90deg,transparent,#594160,transparent)}.v2-sidebar-love{font-size:.85rem}
.v2-page-heading{margin-left:284px;margin-right:1.7rem}.v2-main{margin-left:256px;padding:0 1.7rem 2rem}.v2-app>.dashboard-shell{margin-left:284px;width:calc(100% - 312px)}.v2-welcome{padding:1.15rem 1.35rem;margin:1rem 0;background:linear-gradient(105deg,#39203d88,#14253a88);border:1px solid #735075;border-radius:1rem;box-shadow:inset 0 1px #eab2dc12,0 8px 22px #0002}.v2-welcome h2{display:flex;align-items:center;gap:.7rem;margin:.3rem 0 .5rem;font-size:clamp(1.5rem,2.2vw,2rem);letter-spacing:-.02em}.v2-welcome-heart{display:grid;place-items:center;border:1px solid #b44987;background:#7b28564d;border-radius:12px;width:40px;height:40px;color:#ff7bc3;flex-shrink:0;box-shadow:0 0 15px #ff3bad18}.v2-welcome-heart .v2-icon{width:25px;height:25px}.v2-welcome p{margin:.4rem 0}.v2-welcome .eyebrow{font-size:.68rem;color:#e798c8}.v2-welcome button{background:#27162766;border-color:#ab5685;min-height:44px}.v2-daily{gap:1rem;margin-bottom:1.1rem}.v2-daily .v2-card{min-height:0;padding:1.15rem 1.3rem;border-color:#84456f;box-shadow:inset 0 1px #f274c329,0 0 22px #ed4faf0c;background:linear-gradient(110deg,#37203caa,#181a2f)}.v2-daily .v2-card:nth-child(2){border-color:#38678c;background:linear-gradient(110deg,#17365099,#191e36);box-shadow:inset 0 1px #69c2ff22,0 0 22px #4fbaff0b}.v2-daily .eyebrow{font-size:.78rem;letter-spacing:.06em}.v2-daily .eyebrow>.v2-icon{width:30px;height:30px;padding:4px;border:1px solid #a85688;border-radius:9px;background:#5c2c524d}.v2-daily .v2-card:nth-child(2) .eyebrow>.v2-icon{border-color:#4d7c9d;background:#244a6955}.v2-daily blockquote{font-size:1.02rem;line-height:1.55;margin:.7rem 0 .35rem;font-weight:450}.v2-daily small{font-size:.75rem;color:#b8cee4}
.v2-metrics{gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}.v2-metric{--accent:#ff7bc4;--edge:#a3497c;--tint:#58264b;min-height:199px;padding:1.4rem;border:1px solid var(--edge);background:radial-gradient(ellipse at 100% 0,var(--tint),transparent 80%),linear-gradient(140deg,#161e2e,#111622);box-shadow:inset 0 1px #ffffff13,0 0 20px #0002}.v2-metric:nth-child(2){--accent:#6ac8ff;--edge:#397ead;--tint:#1c4261}.v2-metric:nth-child(3){--accent:#77e4b7;--edge:#397a68;--tint:#183e37}.v2-metric:nth-child(4){--accent:#f4c46a;--edge:#957244;--tint:#453729}.v2-metric:nth-child(5){--accent:#ff809d;--edge:#a94969;--tint:#4a2034}.v2-metric:nth-child(6){--accent:#c7a0ff;--edge:#7756ae;--tint:#342653}.v2-metric:nth-child(2n){border-color:var(--edge);background:radial-gradient(ellipse at 100% 0,var(--tint),transparent 80%),linear-gradient(140deg,#161e2e,#111622);box-shadow:inset 0 1px #ffffff13,0 0 20px #0002}.v2-metric:after{content:'';position:absolute;left:20px;right:20px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.8}.v2-metric-top{gap:.85rem;margin-bottom:1rem;min-height:48px}.v2-metric-top p{font-size:.9rem;font-weight:600;line-height:1.4;color:#e1e7f5}.v2-metric .v2-metric-icon,.v2-metric:nth-child(2n) .v2-metric-icon{width:48px;height:48px;border-radius:13px;border-color:var(--edge);background:var(--tint);color:var(--accent);box-shadow:0 0 14px #0002}.v2-metric-icon>.v2-icon{width:29px;height:29px}.v2-metric strong{font-size:clamp(1.8rem,2.7vw,2.65rem);line-height:1.15;color:#f8faff;font-weight:750;letter-spacing:-.045em}.v2-metric small{font-size:.76rem;color:#bac4d8;margin-top:.8rem}
.v2-target{padding:1.4rem 1.5rem;border-color:#755790;background:radial-gradient(ellipse at 100% 0,#3c275354,transparent 65%),linear-gradient(120deg,#192339,#141a2b);box-shadow:0 0 22px #bc6aff0d,inset 0 1px #c29cff25}.v2-target .eyebrow{color:#d49df6;font-size:.77rem}.v2-target h2{font-size:1.25rem;margin:.45rem 0}.v2-target-values{gap:.85rem;margin:1.2rem 0}.v2-target-values>span{padding:.8rem 1rem;border:1px solid #3c4462;background:#0d142457;border-radius:.7rem;font-size:.8rem;color:#bec9df;min-width:0}.v2-target-values strong{font-size:clamp(1.05rem,1.65vw,1.5rem);margin-top:.45rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.v2-target progress{display:block;height:1.15rem;border:1px solid #674780;border-radius:1rem;overflow:hidden;background:#252e47;box-shadow:0 0 13px #d05aac18}.v2-target progress::-webkit-progress-bar{background:#252e47}.v2-target progress::-webkit-progress-value{background:linear-gradient(90deg,#ff429f,#bb51dd 60%,#57baff);box-shadow:0 0 10px #ff5dcf44}.v2-target progress::-moz-progress-bar{background:linear-gradient(90deg,#ff429f,#bb51dd 60%,#57baff);border-radius:1rem}
.v2-actions-title{font-size:1.18rem;color:#e8e9f5;margin:1.5rem 0 .85rem}.v2-actions .button-link{flex-direction:column;gap:.85rem;min-height:115px;padding:1.25rem .8rem;border:1px solid #d84a95;border-radius:1rem;background:linear-gradient(120deg,#6b245d,#3e1f45);box-shadow:inset 0 1px #fa90d529,0 0 20px #ec349518;font-size:.95rem;font-weight:650;text-decoration:none;transition:transform .15s,border-color .15s}.v2-actions .button-link:nth-child(2){background:linear-gradient(120deg,#205282,#202f52);border-color:#49a8e7;box-shadow:inset 0 1px #90d6fa29,0 0 20px #349bec18}.v2-actions .secondary-link{background:linear-gradient(120deg,#1c273b,#161e2e);border-color:#4b5a7c;box-shadow:inset 0 1px #ffffff0d;color:#d4def4}.v2-actions .v2-icon{width:32px;height:32px;color:#ffb7e1}.v2-actions .button-link:nth-child(2)>.v2-icon{color:#9ddcff}.v2-actions .secondary-link>.v2-icon{color:#a8bada}.v2-actions .button-link:hover{transform:translateY(-2px);border-color:#f3b4dc}.v2-actions .button-link:focus-visible{outline:2px solid #8ad8ff;outline-offset:4px}
@media(min-width:721px) and (max-width:1200px){.v2-header{height:auto;min-height:176px;flex-wrap:wrap;padding:1rem;gap:.7rem}.v2-brand{flex:1 1 300px;min-width:0;max-width:none}.v2-logo img{width:360px;height:95px}.v2-brand p{font-size:.8rem}.v2-search{order:3;flex-basis:100%;max-width:none}.v2-main{padding:0 1rem 2rem}.v2-page-heading{margin-left:272px;margin-right:1rem}.v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-target-values{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-daily{grid-template-columns:1fr}.v2-metric strong{font-size:2rem}}
@media(max-width:720px){.v2-header{margin-left:0;min-height:0;height:auto;padding:.8rem;gap:.7rem}.v2-brand{flex:1;min-width:0;max-width:none}.v2-logo img{width:245px;height:78px;max-width:100%}.v2-brand p{font-size:.64rem;line-height:1.4}.v2-account{min-width:105px}.v2-datetime{font-size:.64rem}.v2-datetime time{font-size:.77rem}.v2-search{order:3;flex-basis:100%;min-width:0}.v2-search input{font-size:.8rem}.v2-desktop-nav{display:none}.v2-main{margin-left:0;padding:0 .8rem 6rem}.v2-page-heading{margin-left:.8rem;margin-right:.8rem}.v2-app>.dashboard-shell{margin-left:.8rem;width:calc(100% - 1.6rem)}.v2-welcome{padding:1rem .8rem;gap:.5rem}.v2-welcome h2{font-size:1.15rem;gap:.4rem}.v2-welcome-heart{width:30px;height:30px;border-radius:9px}.v2-welcome-heart .v2-icon{width:19px}.v2-welcome button{min-height:42px;font-size:.68rem;padding:.5rem}.v2-daily .v2-card{padding:1rem}.v2-daily .eyebrow{font-size:.72rem}.v2-daily blockquote{font-size:.91rem}.v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.v2-metric{padding:1rem .8rem;min-height:187px}.v2-metric-top{flex-direction:column;gap:.6rem;align-items:flex-start;min-height:76px;margin-bottom:.7rem}.v2-metric .v2-metric-icon,.v2-metric:nth-child(2n) .v2-metric-icon{width:39px;height:39px;border-radius:11px}.v2-metric-icon>.v2-icon{width:24px;height:24px}.v2-metric-top p{font-size:.77rem}.v2-metric strong{font-size:clamp(1.15rem,4.5vw,1.7rem);letter-spacing:-.04em;overflow-wrap:anywhere}.v2-metric small{font-size:.64rem;margin-top:.6rem}.v2-target{padding:1rem}.v2-target h2{font-size:1.05rem}.v2-target-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.v2-target-values>span{padding:.65rem;font-size:.73rem}.v2-target-values strong{font-size:1rem}.v2-target progress{height:1rem}.v2-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-actions .button-link{min-height:105px;font-size:.78rem;padding:1rem .5rem;gap:.7rem}}
@media(prefers-reduced-motion:reduce){.v2-actions .button-link{transition:none}.v2-actions .button-link:hover{transform:none}}
@media print{.v2-main,.v2-page-heading,.v2-app>.dashboard-shell{margin-left:0;width:auto}.v2-welcome,.v2-metric,.v2-target,.v2-daily .v2-card,.v2-actions .button-link{background:white!important;color:black;box-shadow:none}.v2-metric strong{color:black}}

/* Customers and central customer account */
.v2-directory-head,.v2-customer-hero,.v2-bill-hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-bottom:1rem;padding:1.35rem 1.5rem;border:1px solid #65405f;border-radius:1.1rem;background:radial-gradient(ellipse at 0 0,#64224b38,transparent 60%),linear-gradient(120deg,#1d1a2e,#111a2a);box-shadow:inset 0 1px #ff9bd31a,0 12px 28px #0003}.v2-directory-head h2,.v2-customer-hero h2,.v2-bill-hero h2{margin:.25rem 0;font-size:clamp(1.35rem,2vw,1.9rem)}.v2-directory-head p,.v2-customer-hero p,.v2-bill-hero p{margin:.35rem 0}.v2-directory-head>.button-link{gap:.6rem;flex-shrink:0}.v2-directory-head>.button-link .v2-icon{width:23px}.v2-customer-search{display:flex;align-items:center;gap:.65rem;margin-bottom:1rem;padding:.55rem .7rem;border:1px solid #3f5371;border-radius:.9rem;background:#111a2a}.v2-customer-search>.v2-icon{width:22px;color:#6bc7ff}.v2-customer-search input{flex:1;min-width:0;margin:0;border:0;background:transparent}.v2-customer-search button,.v2-customer-search .button-link{min-height:42px;padding:.55rem .9rem}.v2-filter-tabs{display:flex;gap:.55rem;margin:0 0 1rem;overflow-x:auto;padding:.15rem 0 .5rem;scrollbar-width:thin}.v2-filter-tabs a{display:flex;align-items:center;gap:.45rem;white-space:nowrap;padding:.65rem .8rem;border:1px solid #35445f;border-radius:999px;color:#b9c6dd;text-decoration:none;font-size:.78rem;font-weight:700;background:#111927}.v2-filter-tabs a span{display:grid;place-items:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;border-radius:999px;background:#273249;color:#d9e4f7;font-size:.68rem}.v2-filter-tabs a[aria-current]{color:#ff9acf;border-color:#cc4386;background:#51203f88;box-shadow:0 0 15px #f6379615}.v2-directory-card,.v2-account-history,.v2-itemised,.v2-bill-payments{border-color:#35425e;background:linear-gradient(135deg,#121b2c,#0e1421);box-shadow:0 10px 25px #0002}.v2-customer-table{min-width:1040px}.v2-customer-table th{font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;color:#91a3bf}.v2-customer-table td{vertical-align:middle}.v2-customer-table tbody tr:hover{background:#1c263a77}.v2-money{font-size:1rem;color:#f8fbff}.v2-overdue-money{color:#ff8cae;font-weight:750}.v2-view-customer{min-height:38px;padding:.45rem .7rem;font-size:.72rem;white-space:nowrap}.v2-empty{text-align:center;padding:2.5rem 1rem}.v2-empty h3{margin:.25rem}.v2-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1.2rem 0}.v2-pagination span{color:#aab7cc;font-size:.85rem}.v2-pagination .button-link{min-height:40px;padding:.5rem .9rem;font-size:.78rem}
.v2-customer-identity{display:flex;align-items:center;gap:1rem;min-width:0}.v2-customer-avatar{display:grid;place-items:center;width:66px;height:66px;flex:0 0 66px;border:1px solid #d64d98;border-radius:18px;background:linear-gradient(135deg,#7d285f,#283b6a);color:#fff;font-size:1.65rem;font-weight:800;box-shadow:0 0 18px #fd48a028}.v2-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(135px,1fr));gap:.65rem}.v2-profile-actions .button-link{gap:.45rem;min-height:46px;padding:.6rem .75rem;font-size:.78rem}.v2-profile-actions .v2-icon{width:20px}.v2-action-blue{background:linear-gradient(90deg,#246599,#2450a0)}.v2-action-whatsapp{background:linear-gradient(90deg,#176b50,#168a61);border-color:#42c494}.v2-action-whatsapp.secondary-link{background:#143a34}.v2-disabled{opacity:.48;cursor:not-allowed;background:#273044;color:#adb5c5}.v2-profile-notes{display:grid;grid-template-columns:minmax(160px,.65fr) minmax(260px,1.4fr) minmax(180px,.7fr);gap:.85rem;margin-bottom:1rem}.v2-profile-notes>div,.v2-profile-notes>details{padding:1rem 1.1rem;border:1px solid #35425e;border-radius:.9rem;background:#111a2a}.v2-profile-notes span,.v2-account-kpi span,.v2-bill-summary article>span{display:block;margin-bottom:.45rem;color:#92a2bc;font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;font-weight:750}.v2-profile-notes p{margin:0;color:#d7deec;line-height:1.5}.v2-profile-notes summary{cursor:pointer;color:#72caff;font-weight:750}.v2-profile-notes details[open]{grid-column:1/-1}.v2-profile-notes form{margin-top:1rem}.v2-account-kpis,.v2-bill-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}.v2-account-kpi,.v2-bill-summary article{min-height:110px;padding:1rem 1.1rem;border:1px solid #3a4661;border-radius:.9rem;background:linear-gradient(140deg,#172033,#101723)}.v2-account-kpi strong,.v2-bill-summary article>strong{display:block;color:#f7f9ff;font-size:clamp(1.1rem,1.8vw,1.55rem);overflow-wrap:anywhere}.v2-account-kpi-month{border-color:#3b70a0}.v2-account-kpi-overdue{border-color:#9e3d63;background:linear-gradient(140deg,#382034,#151724)}.v2-account-kpi-owing{border-color:#b06b9b;background:linear-gradient(140deg,#35233d,#171724)}.v2-account-kpi-paid{border-color:#317961}.v2-account-kpi-current{border-color:#8a6a38}.v2-account-kpi-due{border-color:#65509b}.v2-promise-banner{display:flex;gap:.9rem;align-items:flex-start;margin:0 0 1rem;padding:1rem 1.1rem;border:1px solid #ad753f;border-radius:.9rem;background:linear-gradient(110deg,#3f2d1f,#211b23);color:#ffe1aa}.v2-promise-banner>.v2-icon{width:28px}.v2-promise-banner p{margin:.4rem 0;color:#f4dec0}.v2-promise-banner small{color:#cdbb9f}.v2-account-history h2,.v2-itemised h2,.v2-bill-payments h2{margin:.25rem 0}.v2-account-history td{vertical-align:middle}.v2-account-history .status{margin:.1rem}.v2-customer-form{margin-left:calc(256px + max(1rem,(100vw - 256px - 50rem)/2));margin-right:max(1rem,(100vw - 256px - 50rem)/2);width:auto}.v2-form-actions{display:flex;gap:.7rem}.v2-form-actions>*{flex:1}
.v2-bill-actions{display:flex;flex-wrap:wrap;gap:.65rem}.v2-bill-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.v2-bill-summary article{min-height:105px}.v2-bill-summary article:nth-child(3){border-color:#a04670}.v2-itemised,.v2-bill-payments{margin-bottom:1rem}.v2-itemised table,.v2-bill-payments table{min-width:700px}.v2-itemised tfoot th{border-top:1px solid #4a5873;color:#f4f7ff}.v2-bill-tools{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.v2-bill-tools h2{margin-top:0}.v2-bill-tools form label{font-size:.82rem}
@media(max-width:1050px){.v2-customer-hero{align-items:flex-start;flex-direction:column}.v2-profile-actions{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.v2-profile-notes{grid-template-columns:1fr 1fr}.v2-profile-notes>details{grid-column:1/-1}.v2-account-kpis,.v2-bill-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-directory-head,.v2-bill-hero{align-items:stretch;flex-direction:column;padding:1rem}.v2-directory-head>.button-link{width:100%}.v2-customer-search{flex-wrap:wrap}.v2-customer-search input{flex:1 1 calc(100% - 35px)}.v2-customer-search button{flex:1}.v2-filter-tabs{margin-right:-.8rem;padding-right:.8rem}.v2-directory-card{padding:.7rem}.v2-customer-table{min-width:0}.v2-customer-table tbody tr{background:#111b2c}.v2-customer-table td{grid-template-columns:minmax(7.4rem,42%) 1fr}.v2-customer-table td:last-child{display:block}.v2-view-customer{width:100%;margin-top:.5rem}.v2-pagination{justify-content:space-between}.v2-customer-hero{padding:1rem}.v2-customer-avatar{width:52px;height:52px;flex-basis:52px;border-radius:14px}.v2-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-profile-notes{grid-template-columns:1fr}.v2-profile-notes>details{grid-column:auto}.v2-account-kpis,.v2-bill-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.v2-account-kpi,.v2-bill-summary article{min-height:100px;padding:.85rem}.v2-account-kpi strong,.v2-bill-summary article>strong{font-size:1rem}.v2-account-history .section-heading{flex-direction:column}.v2-customer-form{width:calc(100% - 1rem);margin:.75rem auto 6rem}.v2-bill-actions{display:grid;grid-template-columns:1fr 1fr}.v2-bill-tools{grid-template-columns:1fr}.v2-itemised table,.v2-bill-payments table{min-width:0}.v2-itemised tfoot{display:block}.v2-itemised tfoot tr{display:grid;grid-template-columns:1fr 1fr}.v2-itemised tfoot th{display:block}}
@media print{.v2-directory-head,.v2-customer-hero,.v2-bill-hero,.v2-profile-notes,.v2-account-kpi,.v2-bill-summary article,.v2-promise-banner,.v2-bill-tools{background:#fff!important;color:#111;box-shadow:none}.v2-profile-actions,.v2-bill-actions{display:none}}

/* Phase 2 final account views */
.v2-bills-sent-table{min-width:1280px}.v2-sent-actions{display:flex;gap:.4rem;flex-wrap:wrap}.v2-account-kpi-overdue-due{border-color:#9e3d63;background:linear-gradient(140deg,#382034,#151724)}
@media(max-width:720px){.v2-bills-sent-table{min-width:0}.v2-sent-actions{display:grid;grid-template-columns:1fr}.v2-sent-actions .v2-view-customer{margin-top:.25rem}}

/* Phase 3 Capture Sale */
.v2-capture-sale{max-width:1080px}.v2-capture-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1.4rem 1.5rem;border:1px solid #6b3c64;border-radius:1.1rem;background:radial-gradient(circle at 8% 0,#76255445,transparent 45%),linear-gradient(120deg,#1b192d,#101a2b);box-shadow:0 14px 30px #0003}.v2-capture-hero h2{margin:.2rem 0;font-size:clamp(1.6rem,3vw,2.2rem)}.v2-capture-hero p{margin:.3rem 0}.v2-capture-form{display:grid;gap:1rem}.v2-capture-section{padding:1.25rem 1.35rem;border-color:#354761;background:linear-gradient(135deg,#121c2e,#0e1523)}.v2-step{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}.v2-step>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #f64da2;border-radius:12px;background:#54203f;color:#fff;font-weight:850;box-shadow:0 0 16px #f6379630}.v2-step h3{margin:.12rem 0;font-size:1.15rem}.v2-step p{margin:0}.v2-search-field{margin-bottom:.7rem}.v2-bill-preview{margin-top:.8rem;padding:.8rem 1rem;border:1px solid #3b6e97;border-radius:.75rem;background:#14263a;color:#aaddff;font-weight:700}.v2-capture-items{overflow:visible}.v2-sale-line{margin-bottom:.85rem;padding:1rem;border:1px solid #3c4962;border-radius:.9rem;background:#101827}.v2-sale-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.8rem}.v2-sale-line-head strong{color:#ff91c9}.v2-remove-line{min-height:38px;padding:.4rem .7rem;border:1px solid #7b3c59;background:#281925;color:#ffafcb;font-size:.75rem}.v2-sale-line-grid{display:grid;grid-template-columns:minmax(250px,2fr) minmax(100px,.55fr) minmax(120px,.7fr);gap:.75rem;align-items:end}.v2-normal-price,.v2-line-total{min-height:68px;padding:.7rem .8rem;border:1px solid #36445e;border-radius:.7rem;background:#151e2e}.v2-normal-price span,.v2-line-total span,.v2-success-summary span{display:block;margin-bottom:.35rem;color:#93a5bf;font-size:.68rem;text-transform:uppercase;letter-spacing:.05em}.v2-normal-price strong,.v2-line-total strong{color:#f8faff}.v2-markdown-toggle{grid-column:1/-1;display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.6rem .75rem;border:1px solid #61405d;border-radius:.7rem;background:#251a29;color:#ffc1df}.v2-markdown-toggle input{width:20px;height:20px;margin:0}.v2-markdown-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.v2-markdown-fields[hidden]{display:none}.v2-add-line{width:max-content;margin-top:.25rem}.v2-sale-total{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1rem;padding:1rem 1.15rem;border:1px solid #cc4386;border-radius:.85rem;background:linear-gradient(90deg,#25162a,#18233a)}.v2-sale-total span{color:#f6b3d5;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.v2-sale-total strong{min-width:170px;color:#fff;font-size:1.7rem;text-align:right}.v2-payment-methods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.v2-payment-methods label{position:relative}.v2-payment-methods input{position:absolute;opacity:0;pointer-events:none}.v2-payment-methods span{display:grid;place-items:center;min-height:62px;padding:.65rem;border:1px solid #3c4d69;border-radius:.8rem;background:#131d2e;color:#c2cee1;text-align:center;font-size:.8rem;font-weight:750;cursor:pointer}.v2-payment-methods input:checked+span{border-color:#ef4fa2;background:linear-gradient(135deg,#5b2348,#25345e);color:#fff;box-shadow:0 0 16px #f6379625}.v2-payment-methods input:focus-visible+span{outline:2px solid #78cfff;outline-offset:2px}.v2-save-sale{position:sticky;bottom:1rem;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border:1px solid #d94791;border-radius:1rem;background:#0d1424ed;box-shadow:0 10px 35px #0008,0 0 20px #f6379620;backdrop-filter:blur(12px)}.v2-save-sale button{display:flex;align-items:center;justify-content:center;gap:.6rem;min-width:220px;min-height:54px;font-size:1rem}.v2-save-sale .v2-icon{width:23px}.v2-save-sale p{margin:0;color:#9ba9be;font-size:.76rem}.v2-sale-success{max-width:850px}.v2-success-card{text-align:center;padding:2rem;border-color:#4d736b;background:radial-gradient(circle at 50% 0,#24645538,transparent 45%),linear-gradient(140deg,#121d2d,#0e1522)}.v2-success-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 1rem;border:1px solid #4ed0a5;border-radius:50%;background:#174f40;color:#8ff4d1;font-size:2rem;box-shadow:0 0 24px #36c89935}.v2-success-card h2{margin:.3rem 0 1.3rem;font-size:clamp(1.5rem,3vw,2.2rem)}.v2-success-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;text-align:left}.v2-success-summary>div{padding:1rem;border:1px solid #35445e;border-radius:.8rem;background:#111b2b}.v2-success-summary strong{color:#f8faff}.v2-auto-payment,.v2-account-confirmation{margin:1rem 0;padding:1rem;border:1px solid #367c66;border-radius:.8rem;background:#15372f;color:#a9efd7}.v2-account-confirmation{border-color:#3f648c;background:#172b40;color:#b5dcff}.v2-success-actions{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap}.v2-success-actions .button-link{min-height:48px}
@media(max-width:800px){.v2-payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-sale-line-grid{grid-template-columns:1fr 1fr}.v2-sale-line-grid>label:first-child,.v2-markdown-toggle,.v2-markdown-fields{grid-column:1/-1}.v2-success-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-capture-hero{align-items:stretch;flex-direction:column;padding:1rem}.v2-capture-section{padding:1rem}.v2-sale-line{padding:.8rem}.v2-sale-line-grid{grid-template-columns:1fr}.v2-sale-line-grid>label:first-child,.v2-markdown-toggle,.v2-markdown-fields{grid-column:auto}.v2-markdown-fields{grid-template-columns:1fr}.v2-add-line{width:100%}.v2-sale-total{justify-content:space-between}.v2-sale-total strong{min-width:0;font-size:1.35rem}.v2-save-sale{bottom:5.2rem;flex-direction:column;padding:.8rem}.v2-save-sale button{width:100%;min-width:0}.v2-save-sale p{display:none}.v2-success-summary{grid-template-columns:1fr}.v2-success-actions{display:grid}.v2-success-actions .button-link{width:100%}}
.v2-customer-matches{display:grid;gap:.25rem;max-height:20rem;overflow-y:auto;margin:0 0 .75rem;padding:.4rem;border:1px solid #47678d;border-radius:.75rem;background:#142036}.v2-customer-matches[hidden]{display:none}.v2-customer-matches button{min-height:46px;text-align:left;padding:.6rem .8rem;border:0;border-radius:.5rem;background:#1b2940;color:#f2f6ff;box-shadow:none}.v2-customer-matches button:hover,.v2-customer-matches button:focus-visible{background:#254466;outline:2px solid #60baff}.v2-capture-section input,.v2-capture-section select,.v2-capture-section textarea{max-width:100%}

/* Phase 3 final: searchable catalogue and explicit receipt confirmation. */
.v2-product-picker{position:relative;min-width:0}.v2-product-picker input[type=search]{width:100%;min-height:48px}.v2-picker-ready .v2-product-picker select{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none}.v2-product-matches{position:absolute;z-index:12;left:0;right:0;max-height:18rem;overflow-y:auto;padding:.45rem;border:1px solid #5084ab;border-radius:.8rem;background:#111e32;box-shadow:0 15px 35px #000b}.v2-product-matches[hidden]{display:none}.v2-product-matches>strong{display:block;padding:.4rem .6rem;color:#ff9fce;font-size:.75rem}.v2-product-matches button{display:block;width:100%;min-height:44px;margin:.1rem 0;padding:.6rem .7rem;border:0;border-radius:.5rem;background:#1c2c43;color:#f3f6ff;text-align:left}.v2-product-matches button:hover,.v2-product-matches button:focus-visible{background:#304d6b;outline:2px solid #78cfff}.v2-payment-dialog{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:1rem;background:#030713cf}.v2-payment-dialog[hidden]{display:none}.v2-payment-dialog-card{width:min(100%,430px);padding:1.5rem;border:1px solid #ec5ba4;border-radius:1rem;background:#151e30;box-shadow:0 24px 60px #000c,0 0 25px #ec5ba445}.v2-payment-dialog-card h3{margin:.25rem 0;font-size:1.35rem}.v2-payment-dialog-actions{display:grid;gap:.65rem;margin-top:1.3rem}.v2-payment-dialog-actions button{min-height:50px;white-space:normal}.v2-payment-dialog-actions .secondary-link{border:1px solid #6a9ac1;background:#1b314b;color:#fff}

/* Anchor the suggestions under the entire labelled search field, above adjacent sale lines. */
.v2-sale-line:focus-within{position:relative;z-index:20}
.v2-product-picker:focus-within{z-index:21}
.v2-product-matches{top:calc(100% + .25rem);box-sizing:border-box;width:100%;max-height:18rem;max-height:min(18rem, calc(100dvh - 8rem));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.v2-product-matches>strong{position:sticky;top:-.45rem;z-index:1;background:#111e32}

/* Phase 3 receipt context and the independent cancel action. */
.v2-payment-dialog-actions .v2-payment-cancel{border:1px solid #64748b;background:transparent;color:#e0e8f5}
.v2-payment-dialog-actions .v2-payment-cancel:hover,.v2-payment-dialog-actions .v2-payment-cancel:focus-visible{border-color:#8bbbdc;background:#25344b}
.v2-receipt-sale{border-color:#4a6184;background:linear-gradient(145deg,#142035,#101827)}
.v2-receipt-sale .section-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.v2-receipt-items{list-style:none;padding:0;margin:.8rem 0 0;display:grid;gap:.55rem}
.v2-receipt-items li{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.65rem .85rem;border:1px solid #3b4f69;border-radius:.7rem;background:#18263a;overflow-wrap:anywhere}
.v2-receipt-items li strong{flex:none;color:#ffadd4}
@media(max-width:720px){.v2-receipt-sale .section-heading .button-link{width:100%}}

/* Phase 4 Record Payment: a short form with account context and read-only allocation preview. */
.v2-record-payment{max-width:1000px}.v2-payment-account{margin-top:1rem;padding:1rem;border:1px solid #4a6385;border-radius:.9rem;background:linear-gradient(120deg,#14263c,#141b30)}.v2-payment-account[hidden],.v2-allocation-preview[hidden],.v2-record-payment [hidden]{display:none}.v2-payment-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.v2-payment-account-grid>div{min-width:0;padding:.8rem;border:1px solid #38516c;border-radius:.7rem;background:#16243a}.v2-payment-account-grid span{display:block;color:#a7bdd6;font-size:.72rem;letter-spacing:.03em;text-transform:uppercase}.v2-payment-account-grid strong{display:block;margin-top:.3rem;color:#fff;font-size:1.05rem;overflow-wrap:anywhere}.v2-payment-account-grid>div:first-child strong{color:#ff9ccc;font-size:1.3rem}.v2-record-methods{grid-template-columns:repeat(4,minmax(0,1fr))}.v2-allocation-preview{border-color:#426d91;background:linear-gradient(130deg,#16253b,#111a2c)}.v2-allocation-preview ul,.v2-payment-saved-allocations ul{list-style:none;margin:.75rem 0 0;padding:0;display:grid;gap:.5rem}.v2-allocation-preview li,.v2-payment-saved-allocations li{display:flex;justify-content:space-between;gap:.7rem;padding:.7rem .85rem;border:1px solid #375574;border-radius:.6rem;background:#17263b}.v2-allocation-preview li strong,.v2-payment-saved-allocations li strong{color:#91d6ff}.v2-payment-saved-allocations{margin:1rem 0;text-align:left}.v2-payment-saved-allocations h3{margin:.25rem 0;color:#d8e9fc}
@media(max-width:800px){.v2-payment-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-record-payment{min-width:0}.v2-payment-account-grid{grid-template-columns:1fr}.v2-record-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-allocation-preview li,.v2-payment-saved-allocations li{flex-wrap:wrap}}

/* Phase 5 Month End: compact desktop overview, readable phone cards and print bill. */
.v2-month-end{min-width:0}.v2-month-end .v2-bill-hero{gap:1rem}.v2-month-end .v2-bill-hero form{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}.v2-month-end .v2-bill-hero input{min-width:12rem}.v2-month-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin:1rem 0}.v2-month-totals .v2-account-kpi{min-height:120px;min-width:0}.v2-month-totals .v2-account-kpi strong{font-size:clamp(1.2rem,2vw,1.8rem)}.v2-month-totals small{display:block;color:#a9bed8;line-height:1.4}.v2-month-counts{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin:1rem 0}.v2-month-counts div{display:flex;gap:.55rem;align-items:center;padding:.65rem 1rem;border:1px solid #435572;border-radius:.65rem;background:#162137}.v2-month-counts strong{color:#f99dce;font-size:1.3rem}.v2-month-counts .muted{font-size:.83rem}.v2-month-search{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.v2-month-search label{flex:1;min-width:min(100%,16rem)}.v2-month-search input{width:100%}.v2-month-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.v2-month-filters .button-link{min-height:44px}.v2-month-filter-active{border-color:#ff75bb!important;color:#fff!important;background:#802d67!important;box-shadow:0 0 13px #ff4cb044}.v2-month-directory{min-width:0}.v2-month-directory table{width:100%}.v2-month-directory td small{display:block;margin-top:.3rem;color:#a8bcd2;max-width:19rem;overflow-wrap:anywhere}.v2-month-actions{display:flex;gap:.4rem;flex-wrap:wrap;min-width:10rem}.v2-month-actions a{display:inline-block;padding:.35rem .55rem;min-height:36px;border:1px solid #506a8b;border-radius:.5rem;color:#ddedff;text-decoration:none;white-space:normal}.v2-month-actions a:focus-visible,.v2-month-actions a:hover{border-color:#ff76b7;color:#fff}.v2-month-pages{display:flex;gap:.7rem;justify-content:space-between;margin-top:1rem}.v2-bill-print{margin:1rem 0}.v2-bill-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.v2-month-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-bill-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-month-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-month-totals .v2-account-kpi{padding:.8rem;min-height:105px}.v2-month-counts{gap:.45rem}.v2-month-counts div{padding:.5rem .7rem}.v2-month-end .v2-bill-hero form,.v2-month-end .v2-bill-hero input,.v2-month-search button{width:100%}.v2-month-actions{min-width:0}.v2-month-actions a{min-height:44px;display:inline-flex;align-items:center}}
@media(max-width:390px){.v2-month-totals{grid-template-columns:1fr}}
@media print{.v2-header,.v2-desktop-nav,.v2-page-heading,.v2-mobile-nav,.v2-more,.v2-bill-actions,.v2-bill-tools,.v2-bill-print,.v2-bill-payments a{display:none!important}.v2-bill-detail{padding:0!important;max-width:none!important}.v2-bill-hero,.v2-bill-summary,.v2-itemised,.v2-bill-payments{break-inside:avoid;background:#fff!important;color:#111!important;border:1px solid #ccc!important;box-shadow:none!important}.v2-bill-detail *{color:#111!important;text-shadow:none!important}.v2-bill-detail table{width:100%}}

/* Phase 6 Overdue: clear urgency and readable Bill Month cards at phone width. */
.v2-overdue-page,.v2-overdue-directory{min-width:0}.v2-overdue-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.7rem;margin:1rem 0}.v2-overdue-totals .v2-account-kpi{min-height:105px;padding:.85rem}.v2-overdue-totals .v2-account-kpi:first-child{border-color:#df689b;background:linear-gradient(140deg,#46223e,#171927)}.v2-overdue-totals .v2-account-kpi strong{font-size:clamp(1.15rem,2vw,1.7rem)}.v2-overdue-ages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:0 0 1rem}.v2-overdue-ages>div{padding:.75rem 1rem;border:1px solid #435673;border-radius:.75rem;background:#142037}.v2-overdue-ages span{display:block;color:#a8bcd2;font-size:.75rem}.v2-overdue-ages strong{display:block;margin-top:.3rem;color:#f3e0f0;font-size:1.05rem}.v2-overdue-directory td{vertical-align:top}.v2-overdue-directory td small{display:block;margin-top:.35rem;color:#b2c3da;overflow-wrap:anywhere}.v2-overdue-directory td .v2-overdue-money{font-size:1.14rem;white-space:nowrap}.v2-overdue-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.4rem;min-width:11rem}.v2-overdue-actions>a,.v2-overdue-promise>summary{display:inline-flex;align-items:center;min-height:40px;padding:.4rem .6rem;border:1px solid #516987;border-radius:.55rem;color:#e4ecff;text-decoration:none;font-size:.76rem;font-weight:700;cursor:pointer;background:#17243a}.v2-overdue-actions>a:hover,.v2-overdue-actions>a:focus-visible,.v2-overdue-promise>summary:hover,.v2-overdue-promise>summary:focus-visible{border-color:#ff87bf;color:#fff}.v2-overdue-promise{width:100%;min-width:0}.v2-overdue-promise form{width:min(100%,19rem);margin-top:.65rem;padding:.75rem;border:1px solid #516987;border-radius:.65rem;background:#1b2940}.v2-overdue-promise label{display:block;margin:.4rem 0;font-size:.78rem}.v2-overdue-promise input,.v2-overdue-promise textarea{box-sizing:border-box;display:block;width:100%;max-width:100%}.v2-overdue-promise button{min-height:44px}.v2-promise-status{display:inline-block;margin:.3rem 0;padding:.2rem .45rem;border:1px solid #6688a1;border-radius:999px;font-size:.7rem;font-weight:750}.v2-promise-missed{border-color:#e990ad;color:#ffc1d5}.v2-promise-today{border-color:#e4af65;color:#f5d69b}.v2-promise-upcoming{border-color:#72b6df;color:#aae2ff}.v2-overdue-note{padding:.5rem;font-size:.8rem}
@media(max-width:1150px){.v2-overdue-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.v2-overdue-ages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-overdue-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-overdue-totals .v2-account-kpi:first-child{grid-column:1/-1}.v2-overdue-ages{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-overdue-directory{padding:.75rem}.v2-overdue-directory .v2-overdue-table{min-width:0}.v2-overdue-directory .v2-overdue-table tbody tr{padding:.8rem;margin-bottom:.85rem;border:1px solid #405371;border-radius:.8rem;background:#121e31}.v2-overdue-directory .v2-overdue-table td{display:grid;grid-template-columns:minmax(6rem,38%) minmax(0,1fr);gap:.5rem;align-items:start}.v2-overdue-directory .v2-overdue-table td:before{word-break:normal}.v2-overdue-directory .v2-overdue-table td:last-child{display:block}.v2-overdue-actions{min-width:0}.v2-overdue-actions>a,.v2-overdue-promise>summary{min-height:44px}.v2-overdue-promise form{width:100%}}
@media(max-width:390px){.v2-overdue-ages{grid-template-columns:1fr}}
/* Phase 7: reports and simple menu/settings, scoped to these screens. */
.v2-reports,.v2-products,.v2-settings{min-width:0}.v2-reports .data-card,.v2-products .data-card,.v2-settings .data-card{min-width:0}.v2-report-filters,.v2-product-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;align-items:end;margin:1rem 0}.v2-product-filters{grid-template-columns:2fr 1fr auto}.v2-report-filters label,.v2-product-filters label{min-width:0}.v2-report-filters input,.v2-report-filters select,.v2-product-filters input,.v2-product-filters select{width:100%;max-width:100%;box-sizing:border-box}.v2-report-caption{color:#becbe0;font-size:.88rem}.v2-report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.v2-report-kpis .v2-account-kpi{min-height:125px}.v2-report-kpis .v2-account-kpi strong{font-size:clamp(1.25rem,2.2vw,2rem);overflow-wrap:anywhere}.v2-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.v2-reports>.data-card{margin:1rem 0}.v2-chart-list{padding-left:1.25rem;margin:.7rem 0}.v2-chart-list li{margin:.65rem 0}.v2-chart-list li>div:first-child{display:flex;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.v2-chart-list li span,.v2-report-ageing article span{color:#a9bbd4;font-size:.82rem}.v2-chart-track{width:100%;height:12px;background:#151c32;border-radius:100px;border:1px solid #304058;overflow:hidden;margin-top:.35rem}.v2-chart-track progress{width:100%;height:100%;display:block;appearance:none;-webkit-appearance:none;border:0;background:transparent}.v2-chart-track progress::-webkit-progress-bar{background:transparent}.v2-chart-track progress::-webkit-progress-value{background:linear-gradient(90deg,#df358f,#638fe7);border-radius:100px}.v2-chart-track progress::-moz-progress-bar{background:linear-gradient(90deg,#df358f,#638fe7);border-radius:100px}.v2-chart-month{min-width:95px;max-width:190px;height:9px}.v2-report-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.v2-report-compare>div,.v2-report-ageing article,.v2-report-status article{border:1px solid #405676;background:linear-gradient(140deg,#18253b,#111728);border-radius:.75rem;padding:.9rem}.v2-report-compare span,.v2-report-compare strong,.v2-report-status strong,.v2-report-status span{display:block}.v2-report-compare strong{font-size:clamp(1.1rem,2vw,1.55rem);margin-top:.45rem;overflow-wrap:anywhere}.v2-report-bill-month{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap}.v2-report-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:1rem 0}.v2-report-status strong{font-size:1.5rem;color:#f389bf}.v2-report-ageing{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.v2-report-ageing article{min-width:0}.v2-report-ageing article>div:first-child{display:flex;flex-direction:column;gap:.2rem}.v2-report-ageing article>strong{display:block;margin:.45rem 0;font-size:1.13rem;overflow-wrap:anywhere}.v2-products .table-wrap,.v2-reports .table-wrap,.v2-settings .table-wrap{overflow-x:auto;max-width:100%}.v2-product-variants{border:1px solid #425676;border-radius:.7rem;padding:.8rem}.v2-product-variants summary{cursor:pointer;color:#e4ecff;font-weight:700}.v2-product-variants label{display:block;margin-top:.8rem}.v2-product-variants textarea{width:100%;box-sizing:border-box}.v2-product-actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}.v2-product-detail dl{display:grid;grid-template-columns:minmax(9rem,1fr) 2fr;gap:.8rem}.v2-product-detail dt{color:#b5c6df}.v2-product-detail dd{margin:0}.v2-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.v2-settings-brand{margin:1rem 0}
@media(max-width:950px){.v2-report-kpis,.v2-report-ageing{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-report-grid,.v2-settings-grid{grid-template-columns:1fr}}
@media(max-width:720px){.v2-reports,.v2-products,.v2-settings{padding-bottom:5.5rem}.v2-report-filters,.v2-product-filters{grid-template-columns:1fr}.v2-report-kpis,.v2-report-status,.v2-report-ageing{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-report-kpis .v2-account-kpi{min-height:112px}.v2-report-compare{grid-template-columns:1fr}.v2-products .table-wrap table,.v2-reports .table-wrap table,.v2-settings .table-wrap table{min-width:0}.v2-product-detail dl{grid-template-columns:1fr}.v2-product-detail dt{margin-top:.4rem}}
@media(max-width:390px){.v2-report-kpis,.v2-report-ageing{grid-template-columns:1fr}}
/* Pre-Phase-8 focused usability controls */
.v2-list-picker{position:relative;min-width:0;flex:1 1 15rem;z-index:12}.v2-list-picker label,.v2-list-picker input{width:100%;min-width:0;box-sizing:border-box}.v2-list-matches{position:absolute;left:0;right:0;top:calc(100% + .2rem);max-height:18rem;overflow-y:auto;background:#151d33;border:1px solid #677fa4;border-radius:.7rem;box-shadow:0 12px 30px #0009;z-index:60;padding:.35rem}.v2-list-matches[hidden],tr[hidden]{display:none!important}.v2-list-matches button{display:block;width:100%;min-height:48px;text-align:left;padding:.45rem .6rem;background:transparent;color:#f4f7ff;border:0;border-radius:.4rem;cursor:pointer}.v2-list-matches button:hover,.v2-list-matches button:focus-visible{background:#344264;outline:2px solid #ec67ac}.v2-list-matches button[hidden]{display:none}.v2-list-matches small{display:block;color:#b4c5d9}.v2-customer-status-form{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;margin:1rem 0}.v2-writeoff-warning{padding:.9rem 1.1rem;border:1px solid #d487a9;border-radius:.7rem;background:#3a2036;color:#fff}.v2-writeoff-history .table-wrap{overflow-x:auto}[id^="bill-"],[id^="product-"]{scroll-margin-top:2rem}
@media(max-width:720px){.v2-list-picker{flex-basis:100%}.v2-list-matches button{min-height:52px}.v2-writeoff-history{min-width:0}}

.status-written_off{background:#322342;border:1px solid #b98ed3;color:#e8cfff}
.v2-costing{min-width:0}.v2-cost-tabs{display:flex;gap:.55rem;flex-wrap:wrap;margin:.7rem 0 1.2rem}.v2-cost-tabs a{border:1px solid #35425d;color:#cbd7e7;padding:.7rem .85rem;border-radius:.8rem;text-decoration:none;font-weight:700}.v2-cost-tabs a[aria-current="page"],.v2-cost-tabs a:hover{border-color:#fb48ad;color:#fff;background:#35162d;box-shadow:0 0 14px #fb48ad3b}.v2-cost-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.v2-cost-kpis>.data-card{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:110px;border:1px solid #363e61;border-top:2px solid #e73da1}.v2-cost-kpis>.data-card:nth-child(2n){border-top-color:#51a9ff}.v2-cost-kpis strong{font-size:clamp(1.15rem,2vw,1.7rem);overflow-wrap:anywhere}.v2-cost-kpis span{color:#c1cbe1}.v2-cost-note{padding:1rem;border:1px solid #335177;border-radius:1rem;background:#0c1b2e;line-height:1.6}.v2-cost-editor{display:grid;gap:1.1rem}.v2-cost-editor-section{border-top:1px solid #33435d;padding-top:.9rem;min-width:0}.v2-cost-editor-section summary{cursor:pointer;padding:.5rem;min-height:44px}.v2-cost-line{display:grid;grid-template-columns:minmax(150px,2fr) minmax(95px,1fr) minmax(85px,1fr) auto;gap:.6rem;position:relative;padding:.5rem 0;border-bottom:1px solid #29374a;min-width:0}.v2-cost-line label{min-width:0}.v2-cost-line input,.v2-cost-line select{width:100%;min-width:0}.v2-cost-line [data-ingredient-matches]{position:absolute;left:0;width:min(100%,26rem);max-height:15rem;overflow-y:auto;z-index:45;border:1px solid #ee4eb4;background:#111a30;box-shadow:0 10px 22px #0009;border-radius:.7rem;padding:.25rem}.v2-cost-line [data-ingredient-matches][hidden]{display:none}.v2-cost-line [data-ingredient-matches] button{display:block;width:100%;background:transparent;color:#f7f8ff;text-align:left;padding:.5rem;border:0}.v2-cost-line [data-ingredient-matches] button:hover,.v2-cost-line [data-ingredient-matches] button:focus{background:#3e214c}.v2-cost-line [data-ingredient-matches] button[hidden]{display:none}.v2-cost-line [data-ingredient-matches] small{display:block;color:#aabbd4}.v2-cost-line:focus-within{z-index:40}.v2-cost-table{min-width:0;width:100%}.v2-costing .data-card{margin-bottom:1rem;min-width:0}@media(max-width:1050px){.v2-cost-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.v2-cost-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-cost-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.4rem}.v2-cost-line label:first-child,.v2-cost-line [data-ingredient-matches]{grid-column:1/-1}.v2-cost-line [data-ingredient-matches]{width:100%}.v2-cost-line [data-remove-line]{min-height:44px}.v2-cost-table{min-width:0}.v2-cost-table thead{display:none}.v2-cost-table tr{display:block;border-bottom:1px solid #36415a;margin-bottom:.6rem;padding:.5rem}.v2-cost-table td{display:flex;justify-content:space-between;gap:.6rem;min-width:0;overflow-wrap:anywhere}.v2-cost-table td:before{content:attr(data-label);color:#aebbd3;min-width:6.8rem}.v2-cost-tabs a{flex:1 1 44%;text-align:center}}

/* Costing navigation is a separate, content-sized row even inside detail-grid. */
.v2-cost-nav{grid-column:1/-1;align-self:start;justify-self:start;width:fit-content;max-width:100%;min-height:0;margin:.45rem 0 1rem}
.v2-cost-tabs{display:flex;flex-wrap:nowrap;align-items:center;width:max-content;max-width:100%;margin:0;gap:.5rem;overflow-x:auto;overscroll-behavior-inline:contain;padding:.1rem .1rem .45rem;white-space:nowrap}
.v2-cost-tabs a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-height:50px;padding:.48rem .85rem}
.v2-cost-back{display:inline-block;margin:.45rem 0 0;color:#8bcaff;text-decoration:none;font-weight:650}
.v2-cost-back:hover,.v2-cost-back:focus-visible{text-decoration:underline}
.v2-cost-list{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.v2-cost-list>.data-card{margin-bottom:0}
.v2-cost-plan{display:block;font-size:.85rem;color:#c3d9ef}
.v2-costing .v2-cost-nav{width:100%;justify-self:stretch}.v2-costing .v2-cost-tabs{width:100%;max-width:100%;overflow-x:auto}.v2-costing .v2-cost-tabs a{min-height:44px;max-height:50px;flex:0 0 auto}.v2-costing .v2-cost-back{margin:.65rem 0 0}.v2-costing form[data-preserve-list]{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap}.v2-costing form[data-preserve-list] label{flex:1 1 16rem}.v2-costing form[data-preserve-list] input{width:100%}.v2-costing .v2-cost-table td form{display:inline-block;margin:.3rem .3rem .3rem 0}.v2-costing .v2-cost-table td small{display:block;color:#b9c8df}.v2-category-dialog{max-width:min(28rem,calc(100vw - 2rem));width:100%;box-sizing:border-box;border:1px solid #e857a3;border-radius:1rem;background:#121a2d;color:#f5f7ff;box-shadow:0 12px 40px #000b;padding:1.4rem}.v2-category-dialog::backdrop{background:#050711b9}.v2-category-dialog form{display:grid;gap:1rem}.v2-category-dialog input{width:100%;box-sizing:border-box}.v2-category-dialog .v2-product-actions{margin-top:.4rem}.v2-inline-actions{display:inline-flex;align-items:end;gap:.5rem;flex-wrap:wrap}.v2-products .table-wrap td form{display:inline-flex;gap:.4rem;align-items:center;margin:.25rem}.v2-products .table-wrap td input{max-width:15rem}@media(max-width:720px){.v2-costing .v2-cost-tabs a{flex:0 0 auto}.v2-costing .v2-cost-table td form{display:inline-flex}.v2-category-dialog .v2-product-actions button{min-height:44px}}
@media(max-width:720px){.v2-cost-nav{width:100%}.v2-cost-tabs{width:100%;max-width:100%;flex-wrap:nowrap}.v2-cost-tabs a{flex:0 0 auto;text-align:center}}
.v2-received-breakdown{display:grid;gap:.28rem;margin-top:.65rem;padding-top:.55rem;border-top:1px solid #4b756b;color:#c7d9d4;font-size:.67rem;line-height:1.3}.v2-received-breakdown span{display:flex;justify-content:space-between;gap:.55rem}.v2-received-breakdown b{color:#effff9;font-size:.69rem;font-variant-numeric:tabular-nums;white-space:nowrap}.v2-customer-secondary-action{display:flex;justify-content:flex-end;margin:.5rem 0 .8rem}.v2-customer-secondary-action .button-link{padding:.55rem .8rem;font-size:.78rem}@media(max-width:720px){.v2-received-breakdown{font-size:.58rem}.v2-received-breakdown span{display:grid;gap:.1rem}.v2-received-breakdown b{font-size:.64rem}.v2-customer-secondary-action{justify-content:stretch}.v2-customer-secondary-action .button-link{width:100%;text-align:center;box-sizing:border-box}}
.v2-check-card{display:flex!important;align-items:flex-start;gap:.7rem;padding:.85rem;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(8,15,31,.7)}.v2-check-card input{width:1.2rem;height:1.2rem;margin-top:.15rem;accent-color:#ff2aa1}.v2-check-card span{display:grid;gap:.2rem}.v2-check-card small{color:#aebbd3}.v2-cost-group th{padding:.7rem;background:rgba(73,173,255,.08);color:#bfe7ff;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem}
.v2-planning{min-width:0}.v2-plan-periods{display:flex;gap:.7rem;flex-wrap:wrap;margin:0 0 1rem}.v2-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.75rem}.v2-plan-list a{display:grid;gap:.28rem;padding:1rem;border:1px solid #344562;border-radius:1rem;background:#0b1428;color:#f6f8ff;text-decoration:none}.v2-plan-list a:hover{border-color:#ef4baa;box-shadow:0 0 15px #ef4baa30}.v2-plan-list span,.v2-plan-list small{color:#afc0d8}.v2-plan-form{display:grid;gap:1rem}.v2-plan-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(110px,.8fr) minmax(100px,.8fr) minmax(170px,1.4fr) auto;gap:.65rem;align-items:end;padding:.75rem 0;border-bottom:1px solid #2b3850}.v2-plan-line select,.v2-plan-line input{width:100%;min-width:0}.v2-plan-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0}.v2-plan-summary .data-card{display:grid;gap:.4rem;margin:0;border-top:2px solid #e744a2}.v2-plan-summary .data-card:nth-child(2n){border-top-color:#48a9ff}.v2-plan-summary span{color:#aebed5}.v2-plan-summary strong{font-size:clamp(1.1rem,2vw,1.55rem)}.v2-plan-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.v2-plan-totals span,.v2-plan-difference span{display:flex;justify-content:space-between;gap:.8rem;padding:.62rem .75rem;border:1px solid #2e3a55;border-radius:.65rem;background:#0a1427}.v2-plan-difference{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:1rem}.v2-plan-progress{display:flex;height:18px;overflow:hidden;border:1px solid #43516b;border-radius:999px;background:#192239;margin:1rem 0}.v2-plan-progress span{min-width:0}.v2-plan-progress [data-progress-actual]{background:#36c889}.v2-plan-progress [data-progress-planned]{background:#4aa8ff}.v2-plan-progress [data-progress-gap]{background:#3b2947}.v2-plan-target{border-top:2px solid #e744a2}.v2-planning form{margin:0}.v2-planning .v2-product-actions form{display:inline-flex}@media(max-width:900px){.v2-plan-line{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-plan-line button{min-height:44px}.v2-plan-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.v2-plan-periods a{flex:1 1 100%;text-align:center}.v2-plan-line{grid-template-columns:1fr}.v2-plan-summary,.v2-plan-totals,.v2-plan-difference{grid-template-columns:1fr}.v2-plan-summary .data-card{min-width:0}.v2-plan-totals span,.v2-plan-difference span{align-items:center}.v2-planning .v2-product-actions{display:grid;width:100%}.v2-planning .v2-product-actions>*{width:100%;box-sizing:border-box}.v2-planning .v2-product-actions button{width:100%}}
.v2-plan-section{padding:.9rem 1rem}.v2-plan-section+.v2-plan-section{margin-top:.8rem}.v2-plan-archive-list article{display:grid;gap:.6rem;padding:.7rem;border:1px solid #2e3a55;border-radius:1rem}.v2-plan-archive-list article>a{border:0;padding:.35rem;background:transparent}.v2-plan-requirements>summary{cursor:pointer;list-style:none}.v2-plan-requirements>summary::-webkit-details-marker{display:none}.v2-plan-requirements>summary span{display:flex;justify-content:space-between;gap:1rem;align-items:center}.v2-plan-requirements>summary small{color:#afc0d8}.v2-plan-requirements[open]>summary{padding-bottom:1rem;border-bottom:1px solid #2e3a55;margin-bottom:1rem}.v2-plan-legend{display:flex;gap:1rem;flex-wrap:wrap;color:#afc0d8}.v2-plan-legend span:before{content:"";display:inline-block;width:.75rem;height:.75rem;border-radius:.2rem;background:#36c889;margin-right:.35rem}.v2-plan-legend span:nth-child(2):before{background:#4aa8ff}.v2-plan-legend span:nth-child(3):before{background:#3b2947}.v2-plan-completion span{background:#36c889}.v2-plan-completion i{background:#26334c}.v2-calendar-month-nav{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.v2-roster-patterns{display:grid;gap:.75rem;margin-top:1rem}.v2-roster-day{display:grid;grid-template-columns:80px minmax(220px,1fr) auto auto;align-items:center;gap:.6rem;padding:.5rem 0;border-bottom:1px solid #2e3a55}.v2-production-calendar{min-width:0}.v2-calendar-weekdays,.v2-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.45rem}.v2-calendar-weekdays{margin-bottom:.45rem;color:#afc0d8;text-align:center}.v2-calendar-day{min-width:0;min-height:180px;padding:.65rem;border:1px solid #2f3c57;border-radius:.8rem;background:#0b1428}.v2-calendar-day>header{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin-bottom:.5rem}.v2-calendar-day>header>strong{font-size:1.15rem;color:#fff}.v2-calendar-day>header>span{font-size:.72rem;color:#9fb1ca}.v2-calendar-day>header>b{font-size:.7rem;color:#36c889}.v2-calendar-day details{margin-top:.45rem;border-top:1px solid #27344e;padding-top:.4rem}.v2-calendar-day summary{cursor:pointer;color:#69baff;font-size:.82rem}.v2-calendar-day form{display:grid;gap:.45rem;margin-top:.45rem}.v2-calendar-day input,.v2-calendar-day select,.v2-calendar-day textarea{width:100%;min-width:0}.v2-production-entry{display:grid;gap:.2rem;padding:.45rem;margin:.35rem 0;border-left:3px solid #ef4baa;background:#111d34;border-radius:.35rem;font-size:.78rem}.v2-production-entry form{display:block}.v2-production-entry button{padding:.25rem .45rem;font-size:.72rem}.v2-calendar-blank{min-height:1px}@media(max-width:1000px){.v2-calendar-weekdays{display:none}.v2-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-calendar-blank{display:none}.v2-calendar-day{min-height:0}.v2-roster-day{grid-template-columns:1fr 2fr auto}}@media(max-width:620px){.v2-calendar-grid{grid-template-columns:1fr}.v2-roster-day{grid-template-columns:1fr}.v2-plan-requirements>summary span{align-items:flex-start;flex-direction:column}.v2-calendar-month-nav{display:grid;width:100%;grid-template-columns:1fr 1fr}.v2-calendar-month-nav strong{grid-column:1/-1;grid-row:1;text-align:center}}
.v2-roster-setup>summary{cursor:pointer;list-style:none}.v2-roster-setup>summary::-webkit-details-marker{display:none}.v2-roster-setup>summary span{display:flex;justify-content:space-between;gap:1rem;align-items:center}.v2-roster-setup>summary small{color:#afc0d8}.v2-roster-setup[open]>summary{padding-bottom:1rem;border-bottom:1px solid #2e3a55;margin-bottom:1rem}.v2-roster-setup-body{display:grid;gap:1rem}.v2-calendar-day{background-color:#0b1428;transition:border-color .15s ease,box-shadow .15s ease}.v2-calendar-day.shift-morning{border-color:#e9a43a;background-color:#302311}.v2-calendar-day.shift-afternoon{border-color:#4aa8ff;background-color:#102a47}.v2-calendar-day.shift-night{border-color:#687386;background-color:#161a22}.v2-calendar-day.is-wfh{background-image:none;box-shadow:none}.v2-calendar-day.shift-morning>header>span{color:#ffc766}.v2-calendar-day.shift-afternoon>header>span{color:#82c5ff}.v2-calendar-day.shift-night>header>span{color:#c0c7d2}.v2-calendar-day.is-wfh>header>b{padding:.12rem .35rem;border:1px solid #36c889;border-radius:999px;background:#123c30;color:#8af0c1}@media(max-width:620px){.v2-roster-setup>summary span{align-items:flex-start;flex-direction:column}}

/* Phase 8B: mobile navigation usability only. */
@media(max-width:720px){.v2-mobile-nav button[aria-current="page"]{color:#ff6fc0}.v2-more{max-height:calc(100dvh - 6.5rem - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.v2-more a[aria-current="page"]{color:#fff;background:linear-gradient(90deg,rgba(255,59,158,.3),rgba(53,159,252,.16));box-shadow:inset 3px 0 #ff3b9e}.v2-more a:focus-visible{outline:2px solid #6ecaff;outline-offset:-2px}}
.v2-home-beauty{margin-top:1.3rem;border-color:#3d4263;background:linear-gradient(135deg,#171b2b,#111928)}.v2-home-beauty h2{font-size:1.15rem}.v2-home-beauty .v2-target-values small{display:block;margin-top:.3rem;color:#91a0ba;font-weight:400}
.v2-home-celebrations{margin-top:1.3rem;border-color:#66513d;background:linear-gradient(135deg,#221a16,#131a28)}.v2-home-celebrations h2{font-size:1.15rem}.v2-home-celebrations .v2-target-values small{display:block;margin-top:.3rem;color:#9ba4b7;font-weight:400}
.v2-brand--celebrations .v2-logo--celebrations{display:flex;align-items:center;text-decoration:none}.v2-celebrations-lockup{display:grid;line-height:1}.v2-celebrations-lockup small{font-size:.62rem;letter-spacing:.18em;color:#c5a979}.v2-celebrations-lockup strong{font-size:1.2rem;letter-spacing:.12em;color:#f3e0b9}
.v2-metric-art,.v2-header-atmosphere{display:none}

/* Phase 8C: security/account management only. */
.auth-help{text-align:center;margin:1rem 0 0}.auth-help a{color:#8ed5ff}.auth-secondary-form{margin-top:.75rem}.auth-card-wide{max-width:42rem}.security-steps{padding-left:1.25rem;color:#d9e2f1;line-height:1.55}.security-secret{margin:1rem 0;padding:1rem;border:1px solid #4b6487;border-radius:.8rem;background:#111b2d}.security-secret span{display:block;color:#9fb2cc;font-size:.75rem;text-transform:uppercase}.security-secret code{display:block;margin-top:.5rem;color:#fff;font-size:1rem;letter-spacing:.09em;overflow-wrap:anywhere}.recovery-code-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:0;list-style:none}.recovery-code-list li{padding:.7rem;border:1px solid #415675;border-radius:.65rem;background:#121d30;text-align:center}.security-users-table{min-width:980px}.security-users-table label{display:block;margin:.35rem 0}.security-users-table small{display:block;margin-top:.45rem;color:#aab8cc}.security-actions{min-width:14rem}.security-actions form{margin:.45rem 0}.security-actions button{width:100%}.security-summary{display:grid;grid-template-columns:minmax(10rem,.6fr) 1fr;gap:.65rem}.security-summary dt{color:#9eafc8}.security-summary dd{margin:0;color:#fff;font-weight:700}
@media(max-width:720px){.recovery-code-list{grid-template-columns:1fr}.security-users-table{min-width:0}.security-users-table td{grid-template-columns:minmax(7rem,38%) 1fr}.security-users-table td:first-child,.security-users-table td:last-child{display:block}.security-summary{grid-template-columns:1fr}.v2-security .v2-bill-hero .button-link{width:100%}}

/* Phase 9B: per-user theme chooser. Theme styles remain in separate additive files. */
.v2-theme-settings{margin:1rem 0}.v2-theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-top:1rem}.v2-theme-card{display:grid;grid-template-rows:auto auto auto auto;gap:.38rem;align-content:start;min-height:188px;padding:1rem;text-align:left;color:#f6f8ff;border:1px solid #40506a;border-radius:1rem;background:#10182a;box-shadow:none}.v2-theme-card:hover,.v2-theme-card:focus-visible{border-color:#79c8ff;transform:translateY(-1px)}.v2-theme-card[aria-pressed="true"]{border-color:#ff5db5;box-shadow:0 0 0 2px #ff5db533,0 0 18px #ff43a526}.v2-theme-card small{color:#b6c1d4;line-height:1.35}.v2-theme-card b{margin-top:.25rem;color:#85d6ff;font-size:.75rem}.v2-theme-card[aria-pressed="true"] b{color:#ff9dce}.v2-theme-swatch{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:.25rem;height:58px;padding:.45rem;border-radius:.65rem;background:#080c17;border:1px solid #34415a}.v2-theme-swatch i{display:block;border-radius:.35rem;background:#1a2336}.v2-theme-swatch i:first-child{background:#35172f}.v2-theme-swatch i:last-child{background:#193757}.v2-theme-preview-colourful .v2-theme-swatch{background:#02040b;border-color:#ff2d9b}.v2-theme-preview-colourful .v2-theme-swatch i{background:linear-gradient(145deg,#ff2d9b,#9d00ff)}.v2-theme-preview-colourful .v2-theme-swatch i:nth-child(2){background:#00c6ff}.v2-theme-preview-colourful .v2-theme-swatch i:nth-child(3){background:#35104b}.v2-theme-preview-dark .v2-theme-swatch{background:#0d1118;border-color:#485568}.v2-theme-preview-dark .v2-theme-swatch i{background:#242c37}.v2-theme-preview-dark .v2-theme-swatch i:nth-child(2){background:#3c5267}.v2-theme-preview-light{color:#172033;background:#f8fafc;border-color:#bcc8d6}.v2-theme-preview-light small{color:#566274}.v2-theme-preview-light .v2-theme-swatch{background:#fff;border-color:#cbd5e1}.v2-theme-preview-light .v2-theme-swatch i{background:#e5eaf0}.v2-theme-preview-light .v2-theme-swatch i:first-child{background:#f3d7e7}.v2-theme-preview-light .v2-theme-swatch i:last-child{background:#d5eaf5}.v2-settings-target-heading{margin-top:1rem}.v2-brand--beauty{max-width:440px}.v2-brand--beauty p{color:#ffc0e7}
@media(max-width:980px){.v2-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.v2-theme-grid{grid-template-columns:1fr}.v2-theme-card{min-height:0}.v2-theme-swatch{height:48px}}


/* Phase 10B Final Review: calendar weekday and confirmed Off colour */
/* The month-grid already shows weekday headings on desktop. On phone/tablet,
   expand the date in each day card so the weekday is never ambiguous. */
.v2-calendar-day .v2-calendar-mobile-weekday,
.v2-calendar-day .v2-calendar-mobile-month { display: none; }
@media (max-width: 1000px) {
    body.v2-app .v2-calendar-day > header > strong {
        font-size: 1rem;
        line-height: 1.35;
    }
    body.v2-app .v2-calendar-day .v2-calendar-mobile-weekday,
    body.v2-app .v2-calendar-day .v2-calendar-mobile-month { display: inline; }
    body.v2-app .v2-calendar-day > header > span { font-size: .83rem; }
}
/* Only explicitly stored Off shifts get green. Missing days currently default
   to an Off label in the original template, but are not confirmed rest days. */
body.v2-app .v2-production-calendar .v2-calendar-day.is-confirmed-off {
    background-color: #123b2c !important;
    background-image: none !important;
    border-color: #36c889 !important;
    box-shadow: inset 0 0 0 1px rgba(54, 200, 137, .35);
    color: #f1fff7;
}
body.v2-app .v2-production-calendar .v2-calendar-day.is-confirmed-off > header > strong {
    color: #f1fff7 !important;
}
body.v2-app .v2-production-calendar .v2-calendar-day.is-confirmed-off > header > span {
    color: #b6f5cf !important;
    font-weight: 700;
}
body.v2-app .v2-production-calendar .v2-calendar-day.is-confirmed-off summary {
    color: #b7e5ff;
}
