
:root{--b:#f4f5f7;--p:#fff;--t:#181b20;--m:#747c86;--l:#e3e7eb;--d:#15191f;--g:#24784b}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:var(--b);color:var(--t)}button,input,textarea,select{font:inherit}.hide{display:none!important}.btn{border:0;border-radius:11px;padding:10px 13px;font-weight:700;cursor:pointer}.dark{background:var(--d);color:#fff}.soft{background:#eceff2;color:#20242a}.danger{background:#fff;color:#b63d3d;border:1px solid #efcaca}.link{border:0;background:none;color:#66707b;cursor:pointer}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.box,.card{background:#fff;border:1px solid var(--l);border-radius:18px;box-shadow:0 8px 24px #1111}.box{width:min(430px,100%);padding:26px}.mark{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--d);color:#fff;font-weight:800}.box h1{margin:20px 0 5px}.muted,.hint,#state{color:var(--m);font-size:12px}.box label,.card label{display:block;font-size:10px;font-weight:800;color:var(--m);text-transform:uppercase;letter-spacing:.08em;margin:14px 0 6px}.box input,.card input,.card textarea,.card select,.modal input{width:100%;border:1px solid var(--l);border-radius:10px;background:#fafbfc;padding:11px;outline:0}.box .btn{width:100%;margin-top:14px}.box .link{width:100%;margin-top:8px}.err{background:#fff2f2;color:#9b3030;border:1px solid #efcaca;border-radius:9px;padding:9px;margin-top:10px;font-size:12px}.shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}aside{background:#111419;color:#fff;height:100vh;position:sticky;top:0;padding:20px 15px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}.brand .mark{background:#fff;color:#111}.brand small{display:block;color:#8f98a3}.nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:14px}.nav button{border:0;border-radius:9px;background:#1d2228;color:#9ba4ae;padding:9px 5px;font-weight:700;font-size:11px}.nav button.on{background:#fff;color:#111}.create{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sideh{margin:18px 6px 7px;color:#7f8994;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}#plist{display:grid;gap:5px;overflow:auto}.pi{border:0;background:transparent;color:#dfe3e7;text-align:left;padding:9px;border-radius:9px;cursor:pointer}.pi.on,.pi:hover{background:#252a31}.pi b,.pi span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pi span{font-size:10px;color:#8f98a3;margin-top:2px}.folder{margin-top:5px}.child{margin-left:20px;width:calc(100% - 20px)}footer{margin-top:auto;display:grid;gap:8px;font-size:10px;color:#8f98a3}main{width:min(1100px,calc(100% - 32px));margin:auto;padding:30px 0 50px}header{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:18px}h2{margin:3px 0 0;font-size:clamp(25px,3vw,36px)}h3{margin:3px 0 0;font-size:16px}.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.card{padding:18px;margin-bottom:12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.progress{display:flex;justify-content:space-between;align-items:center}.progress strong{font-size:30px}.track{height:9px;background:#edf0f3;border-radius:99px;overflow:hidden;margin:14px 0 8px}.track i{display:block;height:100%;width:0;background:#171b20}.checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.grp{grid-column:1/-1;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--m);margin-top:6px}.row{display:flex!important;align-items:center;gap:9px;border:1px solid var(--l);border-radius:10px;padding:10px!important;margin:0!important;text-transform:none!important;letter-spacing:0!important;color:var(--t)!important;font-size:12px!important}.row input{width:17px;height:17px;accent-color:var(--g)}textarea{min-height:105px;resize:vertical}.section{display:flex;justify-content:space-between;align-items:center;gap:10px}.chatactions{display:flex;gap:7px;flex-wrap:wrap}.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px;margin-top:12px}.photo{position:relative;aspect-ratio:4/3;border-radius:11px;overflow:hidden;border:1px solid var(--l);background:#eee}.photo img{width:100%;height:100%;object-fit:cover}.photo button{position:absolute;right:5px;top:5px;border:0;border-radius:99px;width:28px;height:28px;background:#111c;color:#fff}.phact{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.foldercards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.poscard{border:1px solid var(--l);border-radius:11px;padding:11px;background:#fafbfc;text-align:left;cursor:pointer}.poscard b,.poscard span{display:block}.poscard span{font-size:10px;color:var(--m);margin-top:3px}.stack{display:grid;gap:8px;margin-top:10px}.person,.conv{border:1px solid var(--l);border-radius:11px;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:8px}.person b,.person span{display:block}.person span{font-size:10px;color:var(--m)}.chatgrid{display:grid;grid-template-columns:280px 1fr;gap:12px}.msgs{height:430px;overflow:auto;display:flex;flex-direction:column;gap:7px;padding:8px 0}.msg{max-width:76%;padding:9px 11px;border-radius:13px;background:#f0f2f4}.msg.mine{align-self:flex-end;background:#171b20;color:#fff}.msg img{max-width:280px;width:100%;border-radius:9px;margin-top:6px}.send{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:end}.send textarea{min-height:48px}.modal{position:fixed;inset:0;background:#1118;display:grid;place-items:center;padding:16px;z-index:20}.modalbox{width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:17px;padding:18px}.wrow{display:grid;grid-template-columns:60px 1fr 160px auto;gap:7px;margin:7px 0}.wrow button{border:1px solid var(--l);background:#fff;border-radius:8px}.toast{position:fixed;right:18px;bottom:18px;background:#171b20;color:#fff;padding:10px 13px;border-radius:9px;font-size:12px;opacity:0;pointer-events:none}.toast.show{opacity:1}@media(max-width:850px){.shell{grid-template-columns:1fr}aside{height:auto;position:relative}#plist{max-height:260px}.chatgrid{grid-template-columns:1fr}}@media(max-width:620px){.grid,.checks,.foldercards{grid-template-columns:1fr}header{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .btn{flex:1}.wrow{grid-template-columns:50px 1fr}.wrow .phase,.wrow .moves{grid-column:1/-1}.send{grid-template-columns:auto 1fr}.send .btn{grid-column:1/-1}}@media print{@page{size:A4;margin:13mm}.auth,.shell,.modal,.toast{display:none!important}#print{display:block!important;font-family:Arial,sans-serif}#print h1{font-size:23px}.pline{padding:5px 0;border-bottom:1px solid #ddd;font-size:11px}}

.materialgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.materialbox{border:1px solid var(--l);border-radius:13px;padding:14px;background:#fafbfc}.materialbox h4{margin:0 0 7px;font-size:14px}.dangerzone{margin-top:18px;padding-top:15px;border-top:1px solid #eed}.dangerzone h4{margin:0 0 4px;color:#a33}.darkside{color:var(--m);margin-left:0}.conv{cursor:pointer;width:100%;background:#fff}.conv.on{border-color:#20242a;box-shadow:0 0 0 1px #20242a}.conv .convmeta{display:block;font-size:10px;color:var(--m);margin-top:2px}.groupcheck{display:flex;justify-content:space-between;align-items:center}.groupcheck input{width:18px;height:18px}
@media(max-width:620px){.materialgrid{grid-template-columns:1fr}}

.subgroup{padding:0;overflow:hidden}.subgroup>summary{list-style:none;cursor:pointer;padding:17px 18px;font-weight:800;display:flex;justify-content:space-between;align-items:center}.subgroup>summary::-webkit-details-marker{display:none}.subgroup>summary:after{content:'▾';color:var(--m)}.subgroup:not([open])>summary:after{content:'›'}.subcontent{padding:0 18px 18px}.tabs{display:flex;gap:6px;margin:4px 0 12px}.tabs button{border:0;background:#eceff2;border-radius:9px;padding:9px 12px;font-weight:750;cursor:pointer}.tabs button.on{background:#171b20;color:#fff}.calendarbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calhead{font-size:10px;text-align:center;color:var(--m);font-weight:800;padding:5px}.day{min-height:100px;border:1px solid var(--l);border-radius:11px;background:#fff;padding:7px;cursor:pointer}.day.out{opacity:.4}.day.today{box-shadow:0 0 0 2px #171b20 inset}.daynum{font-size:11px;font-weight:800}.event{font-size:10px;padding:5px 6px;border-radius:7px;background:#eceff2;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.planlayout{display:grid;grid-template-columns:240px 1fr;gap:12px}.planlist{display:grid;gap:6px}.planitem{border:1px solid var(--l);background:#fff;border-radius:10px;padding:9px;text-align:left;cursor:pointer}.planitem.on{border-color:#171b20;box-shadow:0 0 0 1px #171b20}.plantools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.plantools button.on{background:#171b20;color:#fff}.planstage{position:relative;overflow:auto;background:#dfe3e7;border-radius:12px;min-height:260px;display:grid;place-items:center;padding:8px}.planstage canvas{max-width:100%;height:auto}.planstage #annoCanvas{position:absolute;touch-action:none}.doorrow{border:1px solid var(--l);border-radius:12px;padding:12px;background:#fafbfc;margin-top:8px}.doorgrid{display:grid;grid-template-columns:1.3fr repeat(3,.75fr) 1fr 1fr;gap:7px}.doorgrid textarea{min-height:42px}.dooractions{display:flex;gap:6px;justify-content:flex-end;margin-top:8px}.smallnote{font-size:10px;color:var(--m)}.topselect{min-width:220px;max-width:360px;background:#fff}.viewhint{margin:0 0 10px;color:var(--m);font-size:11px}
@media(max-width:850px){.planlayout{grid-template-columns:1fr}.doorgrid{grid-template-columns:1fr 1fr}.calgrid{gap:3px}.day{min-height:82px;padding:5px}}
@media(max-width:620px){.doorgrid{grid-template-columns:1fr}.calgrid{grid-template-columns:repeat(7,minmax(42px,1fr));overflow-x:auto}.day{min-height:72px}.event{font-size:8px;padding:3px}}

.offlinebar{position:fixed;left:50%;top:8px;transform:translateX(-50%);z-index:9999;background:#8a5a00;color:#fff;padding:8px 14px;border-radius:999px;font-size:12px;font-weight:800;box-shadow:0 5px 18px #0003}.statuspill,.localbadge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#eceff2;font-size:11px;font-weight:800}.statuspill.onsite{background:#fff0d8;color:#8a5100}.statuspill.workshop{background:#e1f2e8;color:#17643b}.assemblycard textarea{min-height:80px}.sketchpadcard{overflow:visible}.sitepad{background:#dfe3e7;border-radius:14px;padding:10px;overflow:auto}.sitepad canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;background:#fff;border-radius:10px;box-shadow:0 3px 16px #0002;touch-action:none}.planstage{min-height:62vh;background:#dfe3e7;padding:12px}.planstage canvas{background:#fff;box-shadow:0 3px 16px #0002}.planstage #annoCanvas{touch-action:none}.padfullscreen{position:fixed!important;inset:0!important;z-index:9998!important;background:#dfe3e7!important;border-radius:0!important;padding:12px!important;margin:0!important;overflow:auto!important}.padfullscreen .sitepad{height:calc(100vh - 86px);display:flex;align-items:flex-start;justify-content:center}.padfullscreen .sitepad canvas{width:auto;max-width:none;height:calc(100vh - 110px)}.planstage.padfullscreen{display:flex;align-items:flex-start;justify-content:center;min-height:100vh}.doorrow{position:relative}.dooralert{display:flex;gap:10px;align-items:flex-start;background:#fff5e7;border:1px solid #f2d3a4;border-radius:10px;padding:10px;margin-top:10px}.dooralert input{width:auto;margin-top:3px}.doormedia{border-top:1px solid var(--l);margin-top:12px;padding-top:12px}.doorphotos{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.doorphoto{position:relative;width:110px;height:85px;border-radius:10px;overflow:hidden;background:#eee}.doorphoto img{width:100%;height:100%;object-fit:cover}.doorphoto button{position:absolute;top:4px;right:4px;border:0;border-radius:50%;width:25px;height:25px;background:#000b;color:#fff}.doorsketchwrap{margin-top:10px;background:#dfe3e7;padding:8px;border-radius:11px}.doorsketch{display:block;width:100%;height:auto;aspect-ratio:2/1;background:#fff;border-radius:8px;touch-action:none}.doorsketchtools{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.syncdot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2a8b55;margin-right:5px}.syncdot.off{background:#d18a19}.syncdot.pending{background:#7e64cc}@media(max-width:620px){.planstage{min-height:55vh}.doorphoto{width:92px;height:72px}}

.topactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sitephotos{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.printsheet{font-family:Arial,sans-serif;color:#111}.printhead{display:flex;justify-content:space-between;gap:16px;border-bottom:2px solid #111;padding-bottom:8px;margin-bottom:12px}.printmeta{font-size:10px;color:#555}.printsection{margin:14px 0}.printsection h2,.printsection h3{margin:0 0 7px}.printgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.printbox{border:1px solid #bbb;border-radius:6px;padding:8px}.printphotos{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.printphotos img,.printsketch,.printplan{width:100%;height:auto;display:block;border:1px solid #ccc;border-radius:4px}.printdoor{break-inside:avoid;page-break-inside:avoid;border:1px solid #aaa;padding:10px;margin:0 0 12px}.printwarn{border:1px solid #d09a42;background:#fff5e7;padding:7px;margin-top:7px;font-weight:700}.pagebreak{break-before:page;page-break-before:always}.printplanpage{break-inside:avoid;page-break-inside:avoid;margin:0 0 12px}.doorsketch{aspect-ratio:3/2}.doorsketchwrap.padfullscreen{position:fixed!important;inset:0!important;z-index:9998!important;background:#dfe3e7!important;border-radius:0!important;padding:12px!important;display:flex;align-items:flex-start;justify-content:center}.doorsketchwrap.padfullscreen .doorsketch{width:auto;height:calc(100vh - 30px);max-width:none}.sitepad canvas{aspect-ratio:3/2}@media(max-width:620px){.topactions{width:100%}.topactions .topselect{flex:1;min-width:0}.topactions .btn{white-space:nowrap}}@media print{#print{display:block!important}.printgrid{grid-template-columns:1fr 1fr}.printphotos{grid-template-columns:repeat(2,1fr)}.printdoor{border-color:#777}.printplanpage{page-break-after:always}.printplanpage:last-child{page-break-after:auto}}


/* v15 · hellere Werkstatt-Navigation */
:root{
  --b:#f7f6f2;
  --p:#ffffff;
  --t:#202521;
  --m:#6f786f;
  --l:#e5e2da;
  --d:#285b49;
  --g:#2f765b;
  --warm:#f3eee4;
  --warm2:#fbf8f1;
  --accent:#d9a85d;
}
body{background:linear-gradient(180deg,#faf9f6 0,#f5f4ef 100%)}
.shell{grid-template-columns:300px 1fr}
aside{
  background:linear-gradient(180deg,#fbf8f1 0%,#f3eee4 100%);
  color:var(--t);
  border-right:1px solid #e4ded2;
  box-shadow:8px 0 30px #6d5e4410;
  padding:20px 16px;
}
.brand{
  padding:10px 10px 14px;
  margin-bottom:10px;
  border-bottom:1px solid #e5dfd4;
}
.brand .mark,.mark{
  background:linear-gradient(135deg,#2f765b,#214c3d);
  color:#fff;
  box-shadow:0 8px 20px #2f765b26;
}
.brand b{font-size:15px;letter-spacing:-.01em}.brand small{color:#8c857a;margin-top:2px}
.nav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:4px 0 16px;
}
.nav button{
  min-height:76px;
  border:1px solid #e6e0d6;
  border-radius:15px;
  background:#fffaf3;
  color:#4e574f;
  padding:10px 8px 9px;
  font-weight:750;
  font-size:11px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:5px;
  text-align:left;
  box-shadow:0 5px 14px #765f3410;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;
}
.nav button:hover{transform:translateY(-1px);border-color:#d5c9b7;box-shadow:0 8px 18px #765f3418}
.nav button.on{
  background:linear-gradient(145deg,#32765d,#275c49);
  color:#fff;
  border-color:#275c49;
  box-shadow:0 9px 20px #285b4930;
}
.navicon{font-size:23px;line-height:1;filter:saturate(.9)}
.navlabel{display:block;line-height:1.15}
.create{gap:8px}.create .btn{padding:11px 8px;font-size:11px}
.sideh{color:#8b8377;margin-top:20px}
#plist{padding-right:2px}.pi{color:#394039;padding:10px 11px;border:1px solid transparent}.pi:hover{background:#fff8ee;border-color:#e7dfd2}.pi.on{background:#fff;border-color:#d8cfbf;box-shadow:0 5px 14px #765f3412}.pi span{color:#8d8a83}
footer{color:#827d74;border-top:1px solid #e2dbcf;padding-top:12px;margin-top:auto}
.btn{transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.btn:hover{transform:translateY(-1px)}
.dark{background:linear-gradient(145deg,#32765d,#285b49);box-shadow:0 6px 15px #285b4920}.soft{background:#f1ede5;color:#3f4841;border:1px solid #e4ded2}.danger{background:#fffafa}
.card,.box{border-color:#e7e3db;box-shadow:0 9px 25px #5e554510}.card{background:rgba(255,255,255,.96)}
header small{color:#8d7b61;font-weight:800;letter-spacing:.12em}h2{color:#1e2a24}
.track{background:#ece8df}.track i{background:linear-gradient(90deg,#3b8768,#d7a85e)}
.tabs button{background:#f1ede5}.tabs button.on,.plantools button.on{background:#2e6f57;color:#fff}
.row{background:#fffdf9}.row:has(input:checked){background:#f1f8f4;border-color:#cfe2d7}
.day.today{box-shadow:0 0 0 2px #2e6f57 inset}.event{background:#f2ede4}.poscard,.doorrow,.materialbox{background:#fffdf9}
.statuspill,.localbadge{background:#f0ece3}.offlinebar{background:#a46d1d}
.sitepad,.planstage,.doorsketchwrap{background:#e9e5dc}
.topselect{border-color:#ded8cc!important;background:#fffdf8!important}
.auth{background:radial-gradient(circle at 50% 10%,#fffaf1 0,#f7f5ef 50%,#efede6 100%)}
@media(max-width:850px){
  .shell{grid-template-columns:1fr}
  aside{border-right:0;border-bottom:1px solid #e4ded2;box-shadow:0 8px 24px #6d5e4410;padding:14px}
  .brand{padding:4px 4px 10px}
  .nav{grid-template-columns:repeat(6,minmax(100px,1fr));overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .nav button{min-height:68px;min-width:100px}
}
@media(max-width:620px){
  .nav{grid-template-columns:repeat(6,96px)}
  .nav button{min-width:96px;min-height:64px;padding:8px}
  .navicon{font-size:21px}.navlabel{font-size:10px}
  .create{grid-template-columns:1fr 1fr}
}


/* v16 – helle, freundlichere Werkstatt-Navigation */
:root{--b:#f7f6f2;--p:#fff;--t:#1d2620;--m:#69746d;--l:#e5e4de;--d:#2f6f4f;--g:#2f7d57;--warm:#f2eadc;--warm2:#fbf7ef;--greenSoft:#e5f1e9;--greenLine:#b9d8c5}
body{background:linear-gradient(180deg,#faf9f6 0,#f5f5f1 100%)}
aside{background:linear-gradient(180deg,#fbf7ef 0,#f4efe5 100%);color:var(--t);border-right:1px solid #e5dece;box-shadow:10px 0 30px #6b5a3520}
.brand{padding:6px 7px 15px;margin-bottom:8px;border-bottom:1px solid #e6dfd2}.brand .mark{background:#2f6f4f;color:#fff;box-shadow:0 5px 14px #2f6f4f2a}.brand small{color:#7a7f79}.brand b{font-size:15px}
.nav{grid-template-columns:repeat(2,1fr);gap:9px;margin:7px 0 18px}.nav button{min-height:74px;border:1px solid #e5ded1;border-radius:16px;background:#fff;color:#354039;padding:10px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:11px;box-shadow:0 5px 14px #5c4b2a0e;transition:.15s transform,.15s box-shadow,.15s border-color}.nav button:hover{transform:translateY(-1px);box-shadow:0 7px 18px #5c4b2a18;border-color:#d6cbb8}.nav button.on{background:linear-gradient(180deg,#e9f4ed,#dcece2);color:#21583e;border-color:#a9cfb7;box-shadow:0 7px 18px #2f7d5722}.navicon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f2eadc;font-size:19px;line-height:1}.nav button:nth-child(2) .navicon{background:#edf1fa}.nav button:nth-child(3) .navicon{background:#f6eadf}.nav button:nth-child(4) .navicon{background:#f5e9e6}.nav button:nth-child(5) .navicon{background:#e9f1ec}.nav button:nth-child(6) .navicon{background:#eeeafa}.nav button.on .navicon{background:#fff}.navlabel{line-height:1.1}
.create{gap:8px}.create .btn{min-height:42px}.create .dark{background:#2f6f4f}.create .soft{background:#fff;border:1px solid #ded7ca;color:#334039}.sideh{color:#857e72;margin-top:19px}.darkside{color:var(--m)}
#plist{gap:6px}.pi{color:#344039;background:#fff8;border:1px solid transparent}.pi:hover{background:#fff;border-color:#e4dccf}.pi.on{background:#e5f1e9;border-color:#b8d5c3;color:#214f39}.pi span{color:#7b857f}.pi.on span{color:#52715f}.child{border-left:2px solid #ded7ca;padding-left:6px}
footer{color:#747d76;border-top:1px solid #e1d9cb;padding-top:12px}footer .soft{background:#fff;border:1px solid #ddd6c8}
.card{border-color:#e7e5df;box-shadow:0 7px 22px #4a412414}.soft{background:#f0f2ee;color:#29352e}.dark{background:#2f6f4f}.danger{background:#fff8f7;color:#a43b3b}.track{background:#e8ebe5}.track i{background:linear-gradient(90deg,#3c8a62,#69a979)}.tabs button.on,.plantools button.on{background:#2f6f4f;color:#fff}.day.today{box-shadow:0 0 0 2px #4c8b68 inset}.event{background:#e9f2eb}.planstage{background:#e9ece7}.statuspill,.localbadge{background:#e5f1e9;color:#275c41;border:1px solid #bdd9c7}.offlinebar{background:#d99b32;color:#fff}.syncdot{background:#49a66d}.syncdot.pending{background:#d99b32}.syncdot.off{background:#c65a4a}
@media(max-width:850px){aside{border-right:0;border-bottom:1px solid #e5dece;box-shadow:0 7px 22px #5c4b2a15}.nav{display:flex;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav button{min-width:105px;min-height:68px;flex:0 0 auto}.brand{margin-bottom:6px}#projectSide{margin-top:4px}}
@media(max-width:620px){aside{padding:12px}.nav button{min-width:96px}.navicon{width:31px;height:31px;font-size:18px}.create{grid-template-columns:1fr 1fr}}


/* v18 – Bedienbarkeit, Wissen & Backup */
:root{--surface:#fff;--surface2:#fbfaf7;--ink:#1e2922;--sub:#6b746e;--green:#2f7353;--green2:#3f8965;--greenSoft:#e8f3ec;--sand:#f4efe5;--blueSoft:#eaf1f8;--violetSoft:#f0ebf8;--dangerSoft:#fff1ef}
main{padding:26px clamp(18px,3vw,42px) 70px;max-width:1580px;width:100%;margin:0 auto}.view>header{margin-bottom:18px}.view>header h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em}.card{border-radius:18px;padding:20px}.btn{border-radius:12px;min-height:42px;padding:10px 14px}.nav{gap:8px}.nav button{min-height:66px}.nav button:nth-child(7) .navicon{background:#eaf1f8}.nav button:nth-child(8) .navicon{background:#f0ebf8}.nav button.on:nth-child(7),.nav button.on:nth-child(8){background:linear-gradient(180deg,#edf7f1,#e4f1e9)}
.hero{border-radius:20px;padding:22px;margin:0 0 16px;background:linear-gradient(135deg,#234f3c,#347c58);color:#fff;box-shadow:0 14px 34px #234f3c22}.hero b{font-size:20px}.hero p{margin:7px 0 0;color:#eef8f2;max-width:820px;line-height:1.55}.knowledgehero{display:flex;align-items:center;justify-content:space-between;gap:18px}.knowledgecount{white-space:nowrap;background:#ffffff1b;border:1px solid #ffffff36;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800}.knowledgecontrols{display:grid;gap:12px}.knowledgeSearch{font-size:16px;padding:14px 16px!important;background:#fff!important}.knowledgefilters{display:flex;flex-wrap:wrap;gap:8px}.knowledgefilters .btn.on{background:var(--green);color:#fff;border-color:var(--green)}.knowledgeimport{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.knowledgegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin:14px 0}.kcard{background:#fff;border:1px solid #e4e6e1;border-radius:18px;padding:18px;box-shadow:0 7px 20px #3c493f0c;display:flex;flex-direction:column;min-height:210px}.kcard:hover{border-color:#c9d8ce;box-shadow:0 11px 26px #35544316}.khead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.kcat{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:var(--greenSoft);color:#26583f;font-size:11px;font-weight:850}.kcard[data-cat='Betrieb'] .kcat{background:var(--blueSoft);color:#34566f}.kcard[data-cat='Recht'] .kcat{background:var(--violetSoft);color:#604b75}.kcard[data-cat='Eigene Notiz'] .kcat{background:#fff1d9;color:#7d5a1b}.kcard h3{margin:12px 0 7px;font-size:18px}.kcard p{margin:0;color:#566159;line-height:1.5;white-space:pre-wrap}.ktags{margin-top:auto;padding-top:14px;font-size:11px;color:#8a918c}.ksource{margin-top:8px;font-size:11px;color:#7a827c;border-top:1px solid #eef0ec;padding-top:9px}.kdelete{border:0;background:transparent;color:#a84b45;cursor:pointer;font-size:12px}.legalnotice{border-left:4px solid #80649c}.legalnotice p,.backupwarning p{margin-bottom:0;line-height:1.5}
.backuphero{border-radius:22px;background:linear-gradient(135deg,#f5efe4,#edf5f0);border:1px solid #e4dfd4;padding:22px;margin-bottom:16px}.backuphero>div{display:flex;gap:16px;align-items:center}.backuphero h3{font-size:22px;margin:0 0 5px}.backuphero p{margin:0;color:#657069;line-height:1.5}.bigicon{font-size:34px}.backupgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.backupcard{display:flex;flex-direction:column;gap:8px}.backupcard h3{margin:2px 0}.backupcard p{color:#667069;line-height:1.45;flex:1}.backupstats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.backupstat{padding:14px;border-radius:14px;background:#f7f8f5;border:1px solid #e7e9e4}.backupstat b{display:block;font-size:22px}.backupstat span{font-size:11px;color:#707a73}.backupwarning{background:#fffaf0;border-color:#ead9ad}
/* v18 allgemeine Verfeinerung */
input,select,textarea{border-radius:12px!important;border-color:#dde1dc!important;background:#fff!important}.section{gap:14px}.photos{gap:10px}.poscard,.doorrow,.row{border-radius:14px}.plantools{gap:7px}.sitepad,.planstage{border-radius:16px}.track{height:10px;border-radius:999px}.track i{border-radius:999px}.statuspill{border-radius:999px;padding:7px 11px}.viewhint{border-radius:14px;padding:12px 14px;background:#f5f7f3;color:#607068;border:1px solid #e3e8e2}.offlinebar{box-shadow:0 5px 18px #0002}
@media(max-width:1000px){.backupgrid{grid-template-columns:1fr 1fr}.backupstats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){main{padding:14px 12px 60px}.card{padding:15px;border-radius:16px}.knowledgehero{align-items:flex-start;flex-direction:column}.knowledgegrid{grid-template-columns:1fr}.backupgrid{grid-template-columns:1fr}.backupstats{grid-template-columns:1fr 1fr}.backuphero>div{align-items:flex-start}.view>header h2{font-size:28px}}

/* v19 · Projektzentrale, Kalkulation & Zugriffsverwaltung */
:root{--v19green:#2f6f4f;--v19green2:#e5f1e9;--v19gold:#d4a45c;--v19ink:#202821;--v19soft:#f7f4ed}
.shell{grid-template-columns:318px minmax(0,1fr)}
aside{padding:18px 15px}.nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.nav button{min-height:70px;padding:9px 6px;border-radius:15px}.navicon{width:32px;height:32px;font-size:18px}.navlabel{font-size:10px;text-align:center}
main{padding:26px 30px 50px}.view{max-width:1320px;margin:0 auto}.card{border-radius:17px}.btn{border-radius:11px;font-weight:750}.topselect,input,select,textarea{border-radius:11px}
.projecthub{background:linear-gradient(145deg,#fff,#f8fbf8);border-color:#dce9e0}.hubgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hubtile{border:1px solid #dde5de;background:#fff;border-radius:16px;padding:17px 14px;min-height:126px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;color:var(--v19ink);box-shadow:0 6px 18px #2e594011;cursor:pointer;transition:.15s transform,.15s border-color,.15s box-shadow}.hubtile:hover{transform:translateY(-2px);border-color:#bcd5c5;box-shadow:0 10px 24px #2e59401d}.hubtile span{font-size:27px;background:#f4efe5;width:44px;height:44px;border-radius:13px;display:grid;place-items:center}.hubtile b{font-size:14px}.hubtile small{color:#758078;line-height:1.3}.hubtile:nth-child(1) span{background:#efe9df}.hubtile:nth-child(2) span{background:#f7e9e7}.hubtile:nth-child(3) span{background:#e9f2eb}.hubtile:nth-child(4) span{background:#edf1fa}.hubtile:nth-child(5) span{background:#f1edfa}.hubtile:nth-child(6) span{background:#eaf3f5}
.calcgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.calcgrid>.card{margin:0}.formgrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.formgrid2 label{margin:0}.calclabor{display:grid;gap:9px}.calclabor>div{display:grid;grid-template-columns:minmax(120px,1fr) 100px 120px;gap:8px;align-items:center;background:#fbfaf6;border:1px solid #ebe7de;border-radius:12px;padding:9px 10px}.calclabor input{margin:0}.calcsummary{background:linear-gradient(150deg,#f9fcfa,#edf6f0);border-color:#cee1d4}.calctotals{display:grid;gap:2px}.calctotals>div{display:flex;justify-content:space-between;align-items:center;padding:10px 8px;border-bottom:1px solid #dfe7e1}.calctotals>div:last-child{border-bottom:0}.calctotals span{color:#5e6962}.calctotals .strong{margin-top:5px;border-top:2px solid #c8d8cd}.calctotals .net{font-size:16px}.calctotals .gross{margin-top:4px;padding:14px 10px;background:#2f6f4f;color:#fff;border-radius:12px;border:0}.calctotals .gross span{color:#dcebe1}.calctotals .gross b{font-size:21px}
.accessbox{max-width:520px}.accessactions{display:grid;gap:9px;margin:16px 0}.accesshero{margin-bottom:14px}.usersview .person{gap:12px}.usersview .person>div:first-child{min-width:0}.usersview .person span{overflow-wrap:anywhere}.adminrow{background:#eef6f1;border-color:#cbe0d2}.accesscandidate{margin-top:12px}.accesssteps{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px 12px}.accesssteps span{width:31px;height:31px;border-radius:10px;background:#2f6f4f;color:#fff;display:grid;place-items:center;font-weight:850}.accesssteps p{margin:0;padding:8px 0;border-bottom:1px solid #ebe7df}.accesssteps p:last-child{border-bottom:0}
.viewhint{background:#faf8f2;border:1px solid #e8e2d6;border-radius:13px;padding:10px 12px}.sideh.darkside{color:#5f6c63;font-weight:850;margin:14px 0 7px}
@media(max-width:1050px){.shell{grid-template-columns:1fr}aside{position:relative}.nav{display:flex;overflow-x:auto}.nav button{min-width:98px}.hubgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){main{padding:16px 12px 40px}.hubgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hubtile{min-height:116px}.calcgrid{grid-template-columns:1fr}.formgrid2{grid-template-columns:1fr 1fr}.calclabor>div{grid-template-columns:1fr 88px 104px}.calclabor>div b{font-size:12px}}
@media(max-width:480px){.hubgrid{grid-template-columns:1fr 1fr;gap:8px}.hubtile{padding:12px 10px;min-height:108px}.hubtile span{width:38px;height:38px;font-size:23px}.formgrid2{grid-template-columns:1fr}.calclabor>div{grid-template-columns:1fr 1fr}.calclabor>div b{grid-column:1/-1}.usersview .person{align-items:flex-start;flex-direction:column}.usersview .person>div:last-child{width:100%}.usersview .person button{width:100%}}
.hubsummary{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #e3ebe5}.hubsummary span{background:#f7f5ef;border:1px solid #e6e1d8;border-radius:10px;padding:8px 10px;color:#69736c;font-size:11px}.hubsummary b{color:#27342c;margin-left:5px}


/* v20 · Hauptprojekt zuerst + Tischler-Kalkulation neu */
.nav .projectnav{display:none!important}.projectfolder{padding:0;overflow:hidden;border-color:#d9e5dc;background:#fff}.folderhead{padding:22px 22px 18px;background:linear-gradient(135deg,#eef6f1,#fbfaf6);display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #dfe8e1}.folderhead h3{font-size:24px;margin:7px 0 5px}.folderhead p{margin:0;color:#647168;max-width:760px;line-height:1.5}.folderbadge{font-size:10px;font-weight:900;letter-spacing:.12em;color:#397055}.folderposition{display:grid;grid-template-columns:180px minmax(200px,420px) 1fr;align-items:center;gap:12px;padding:14px 22px;background:#fff;border-bottom:1px solid #ecebe6}.folderposition label{margin:0;font-weight:850}.folderposition select{margin:0}.folderposition small{color:#7b837e}.foldertools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:18px 22px}.foldertool{border:1px solid #e2e6e0;background:#fff;border-radius:15px;padding:15px;display:grid;grid-template-columns:46px 1fr 24px;gap:11px;align-items:center;text-align:left;color:#243028;cursor:pointer;transition:.14s transform,.14s border-color,.14s box-shadow}.foldertool:hover{transform:translateY(-1px);border-color:#b9d3c3;box-shadow:0 8px 22px #31574012}.foldertool .toolicon{width:44px;height:44px;border-radius:13px;background:#f4efe5;display:grid;place-items:center;font-size:24px}.foldertool:nth-child(2) .toolicon{background:#f7e9e7}.foldertool:nth-child(3) .toolicon{background:#e8f3ec}.foldertool:nth-child(4) .toolicon{background:#edf1fa}.foldertool:nth-child(5) .toolicon{background:#f5eee3}.foldertool span:nth-child(2){display:flex;flex-direction:column;gap:3px}.foldertool b{font-size:14px}.foldertool small{color:#758078;line-height:1.35}.foldertool i{font-style:normal;font-size:20px;color:#7a8b80}.projectfolder .hubsummary{margin:0;padding:14px 22px 18px;background:#fbfaf7}.projectcontext{display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:10px 12px;border:1px solid #d8e6dc;background:#eef6f1;border-radius:14px}.projectcontext>div{display:flex;flex-direction:column;gap:1px}.projectcontext small{font-size:9px;letter-spacing:.12em;color:#668071;font-weight:900}.projectcontext b{font-size:14px;color:#254d37}
.calcworkspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:15px;align-items:start}.calcmain{display:grid;gap:14px}.calcstep{margin:0;padding:0;overflow:hidden}.calcstephead{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;padding:17px 18px;background:#fbfaf6;border-bottom:1px solid #ebe9e2}.calcstephead>span{width:34px;height:34px;border-radius:11px;background:#2f6f4f;color:#fff;display:grid;place-items:center;font-weight:900}.calcstephead h3{margin:0;font-size:17px}.calcstephead p{margin:3px 0 0;color:#788078;font-size:11px}.calcrows{display:grid}.calcrowhead,.calcrow{display:grid;gap:8px;align-items:center;padding:8px 14px}.calcrowhead{background:#f5f5f1;color:#7a827d;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #e8e8e3}.calcrow{border-bottom:1px solid #efefea}.calcrow:last-child{border-bottom:0}.materialhead,.materialrow{grid-template-columns:minmax(150px,2fr) 78px 92px 105px 96px 105px 32px}.laborhead,.laborrow{grid-template-columns:minmax(150px,2fr) 100px 115px 110px 32px}.extrahead,.extrarow{grid-template-columns:minmax(180px,1fr) 130px 32px}.calcrow input,.calcrow select{margin:0;min-width:0;padding:9px 9px!important}.rowtotal{text-align:right;font-size:12px}.rowdelete{border:0;background:#fff1ef;color:#a7433f;width:29px;height:29px;border-radius:9px;cursor:pointer;font-size:18px}.calcsubsum{display:flex;justify-content:flex-end;gap:15px;padding:11px 18px;background:#fafbf8;border-top:1px solid #e5e8e3;font-size:12px}.formgrid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:17px 18px 6px}.calcstep>label{display:block;padding:8px 18px 16px}.calcstep>label textarea{margin-top:6px}.calcside{position:sticky;top:16px}.calcside .calcsummary{margin:0}.calcfoldersummary{background:linear-gradient(135deg,#f4f8f5,#fff);border-color:#d6e5da}.foldercalcamount{display:grid;grid-template-columns:auto auto;gap:2px 10px;text-align:right}.foldercalcamount span{font-size:10px;color:#6e7972}.foldercalcamount b{font-size:16px}.calcpositionlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}.calcposition{border:1px solid #e2e6e1;background:#fff;border-radius:12px;padding:10px 11px;display:flex;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.calcposition>span{display:flex;flex-direction:column;gap:2px}.calcposition>span:last-child{text-align:right}.calcposition small{color:#77817a;font-size:10px}.calcposition:hover{border-color:#b9d3c3}.calcsummary .gross b{font-size:23px}
@media(max-width:1100px){.calcworkspace{grid-template-columns:1fr}.calcside{position:static}.materialhead{display:none}.materialrow{grid-template-columns:minmax(170px,2fr) 80px 90px 110px 90px 100px 32px}}
@media(max-width:820px){.foldertools{grid-template-columns:1fr}.folderposition{grid-template-columns:1fr;gap:6px}.folderhead{flex-direction:column}.folderhead .btn{width:100%}.formgrid4{grid-template-columns:1fr 1fr}.calcrowhead{display:none}.materialrow,.laborrow,.extrarow{grid-template-columns:1fr 1fr}.materialrow input:first-child,.laborrow input:first-child,.extrarow input:first-child{grid-column:1/-1}.materialrow .rowtotal,.laborrow .rowtotal{align-self:center;text-align:left}.rowdelete{justify-self:end}.calcrow{padding:12px}.calcrow input,.calcrow select{min-height:42px}}
@media(max-width:500px){.foldertools{padding:12px}.folderhead,.folderposition,.projectfolder .hubsummary{padding-left:14px;padding-right:14px}.foldertool{grid-template-columns:42px 1fr 18px;padding:12px}.foldertool .toolicon{width:40px;height:40px}.formgrid4{grid-template-columns:1fr}.calcstephead{grid-template-columns:34px 1fr}.calcstephead .btn{grid-column:1/-1;width:100%}.materialrow,.laborrow,.extrarow{grid-template-columns:1fr}.materialrow input:first-child,.laborrow input:first-child,.extrarow input:first-child{grid-column:auto}.rowdelete{justify-self:start}.calcpositionlist{grid-template-columns:1fr}}

/* =========================================================
   v21 · Bichler UX overhaul
   ========================================================= */
:root{
  --b:#f4f1e9;--p:#fffdf9;--t:#1f2a24;--m:#748078;--l:#e6e1d7;
  --d:#1f5c3e;--g:#2f7a51;--g2:#e9f3ed;--sand:#eee6d7;--rust:#9d5d46;
  --shadow:0 14px 34px rgba(50,58,52,.08);--shadow2:0 8px 20px rgba(50,58,52,.07)
}
body{background:linear-gradient(180deg,#f7f4ed 0,#f1eee7 100%);letter-spacing:-.01em}
button,input,textarea,select{font-family:inherit}button{touch-action:manipulation}
.btn{border-radius:13px;padding:11px 15px;min-height:42px;transition:.16s transform,.16s box-shadow,.16s background}.btn:hover{transform:translateY(-1px)}
.dark{background:linear-gradient(135deg,#245f42,#2f7652);box-shadow:0 7px 16px rgba(35,98,66,.18)}
.soft{background:#f3f0e9;border:1px solid #e4dfd5;color:#314039}
.card,.box{border-color:#e5dfd5;box-shadow:var(--shadow);background:rgba(255,253,249,.96)}
.shell{grid-template-columns:248px minmax(0,1fr)}
aside{background:linear-gradient(180deg,#fbf8f1,#f4efe5);color:#26322b;border-right:1px solid #e4ddcf;padding:18px 14px;box-shadow:4px 0 24px rgba(49,57,51,.04);z-index:5}
.brand{padding:3px 5px 15px;border-bottom:1px solid #e8e1d5;margin-bottom:12px}.brand .mark{background:linear-gradient(145deg,#296a49,#357e59);color:#fff;box-shadow:0 7px 17px rgba(37,99,67,.18)}.brand b{font-size:14px}.brand small{color:#869088}
.nav{display:flex;flex-direction:column;gap:4px;margin-bottom:15px;overflow:visible}.navgroup{font-size:9px;font-weight:900;letter-spacing:.14em;color:#a09b8f;padding:13px 10px 5px}.nav button{position:relative;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;text-align:left;border:1px solid transparent;border-radius:13px;background:transparent;color:#59665e;padding:8px 9px;font-size:12px;min-height:54px}.nav button:hover{background:#f0ebe2}.nav button.on{background:#fff;border-color:#ddd8ce;color:#234f38;box-shadow:var(--shadow2)}.navicon{width:36px;height:36px;border-radius:11px;background:#eee8de;display:grid;place-items:center;font-size:17px;font-weight:900;color:#526258}.nav button.on .navicon{background:#e5f1e9;color:#24633f}.navtext{display:flex;min-width:0;flex-direction:column;gap:1px}.navtext b{font-size:12px;color:inherit}.navtext small{font-size:9px;color:#8d958f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbadge{min-width:24px;height:24px;border-radius:99px;background:#b34a3f;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900;padding:0 6px}
#projectSide{min-height:0;display:flex;flex-direction:column}.create{display:grid;grid-template-columns:1fr;gap:6px;margin-top:3px}.create .primarycreate{font-size:12px}.create .soft{font-size:11px}.projectsearch{margin-top:12px;display:grid;grid-template-columns:25px 1fr;align-items:center;background:#fff;border:1px solid #e2ddd3;border-radius:12px;padding:0 9px;box-shadow:0 5px 13px rgba(40,50,43,.04)}.projectsearch span{color:#8a938c}.projectsearch input{border:0;background:transparent;min-width:0;padding:10px 4px;outline:0;font-size:11px}.sideh{color:#9a968d;margin:13px 7px 7px}.pi{color:#4c5a51;padding:9px 10px;border:1px solid transparent}.pi.on,.pi:hover{background:#fff;color:#204c36;border-color:#ded8cd;box-shadow:0 5px 14px rgba(45,55,48,.05)}.pi span{color:#91978f}footer{color:#8c928c;border-top:1px solid #e5ded2;padding-top:11px}footer .btn{background:#fff}
main{width:min(1260px,calc(100% - 44px));padding:36px 0 60px}.viewtop{align-items:flex-start;margin-bottom:22px}.viewtop small,header>div>small{font-size:10px;letter-spacing:.13em;color:#8c806e;font-weight:900}.subtitle{max-width:760px;color:#6f7a73;font-size:13px;line-height:1.55;margin:8px 0 0}h2{font-size:clamp(28px,3.2vw,44px);letter-spacing:-.045em;line-height:1.02}h3{letter-spacing:-.025em}
input,textarea,select{transition:.15s border-color,.15s box-shadow}.card input,.card textarea,.card select,.box input,.modal input{background:#fffdf9;border-color:#ddd9d0;border-radius:12px}.card input:focus,.card textarea:focus,.card select:focus,.box input:focus{border-color:#7fa78e;box-shadow:0 0 0 3px rgba(55,125,83,.10)}

/* Hauptprojekt als echte Zentrale */
#folderView>.card:first-child{background:linear-gradient(135deg,#234f39 0,#2f7451 58%,#507b61 100%);color:#fff;border:0;padding:24px;box-shadow:0 16px 34px rgba(32,85,57,.19)}#folderView>.card:first-child label{color:#d4e5da}#folderView>.card:first-child input{background:rgba(255,255,255,.95);border:0;font-size:19px;font-weight:800;color:#214732}#folderView>.card:first-child .muted{color:#d3e4d9}#folderView>.card:first-child .track{background:rgba(255,255,255,.22)}#folderView>.card:first-child .track i{background:#fff}#folderView>.card:first-child .progress strong{font-size:40px}
.projectfolder{border:0!important;box-shadow:var(--shadow)}.folderhead{padding:26px;background:linear-gradient(140deg,#fffdf9,#eef5ef);border-bottom:1px solid #e2e7e1}.folderhead h3{font-size:29px}.folderbadge{color:#2b6c49;background:#e6f1e9;border-radius:99px;padding:6px 9px;display:inline-block}.folderposition{padding:16px 26px;grid-template-columns:130px minmax(240px,440px) 1fr;background:#fbfaf6}.folderposition label{color:#435148}.foldertools{grid-template-columns:repeat(3,minmax(0,1fr));padding:22px 26px;gap:12px}.foldertool{min-height:132px;grid-template-columns:1fr 20px;grid-template-rows:auto 1fr;padding:18px;border-radius:18px;background:#fffdf9}.foldertool .toolicon{grid-column:1;grid-row:1;width:48px;height:48px}.foldertool span:nth-child(2){grid-column:1/-1;grid-row:2;padding-top:7px}.foldertool i{grid-column:2;grid-row:1;align-self:center}.foldertool b{font-size:16px}.foldertool small{font-size:11px}.projectfolder .hubsummary{padding:16px 26px 22px}.hubsummary span{background:#fff;border-color:#e5e0d7;padding:9px 12px}.foldercards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.poscard{border-radius:15px;padding:14px;background:#fffdf9;min-height:88px;box-shadow:0 5px 14px rgba(48,57,50,.04)}.poscard:hover{border-color:#9dbca8}.poscard b{font-size:14px}.poscard span{font-size:11px}

/* Knowledge v21 */
.v21knowledge{padding-bottom:20px}.knowledgecover{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:24px;align-items:stretch;background:linear-gradient(135deg,#214d37,#2f7050 58%,#3b8060);color:#fff;border-radius:25px;padding:28px 30px;box-shadow:0 18px 42px rgba(30,81,53,.18);margin-bottom:16px;overflow:hidden;position:relative}.knowledgecover:before{content:'';position:absolute;width:330px;height:330px;border-radius:50%;right:-80px;top:-160px;background:rgba(255,255,255,.07)}.knowledgecovercopy{position:relative;z-index:1}.eyebrow{font-size:9px;font-weight:950;letter-spacing:.16em;opacity:.75}.knowledgecover h3{font-size:33px;line-height:1.02;margin:8px 0 10px;max-width:580px}.knowledgecover p{max-width:650px;color:#dce9e1;line-height:1.55;margin:0}.coverstats{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.coverstats span{min-width:116px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);border-radius:13px;padding:10px 12px;display:flex;flex-direction:column}.coverstats b{font-size:17px}.coverstats small{font-size:9px;color:#d9e8df;margin-top:2px}.knowledgeillustrations{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center;position:relative;z-index:1}.illocard{min-height:116px;border-radius:18px;padding:14px;background:rgba(255,255,255,.94);color:#2e3b33;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 12px 25px rgba(22,54,37,.16);position:relative;overflow:hidden}.illocard:first-child{grid-row:span 2;min-height:242px;background:linear-gradient(155deg,#f6e7cc,#e5c8a3)}.illocard span{font-size:38px;position:absolute;right:12px;top:10px;filter:drop-shadow(0 5px 8px rgba(0,0,0,.08))}.illocard:first-child span{font-size:64px;top:24px;right:18px}.illocard b{font-size:14px}.illocard small{font-size:9px;color:#69746c;margin-top:2px}.doorpic{background:linear-gradient(155deg,#f6ebe8,#ead0ca)}.calcpic{background:linear-gradient(155deg,#e8f1ea,#cedfce)}
.knowledgequick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 14px}.knowledgequick button{border:1px solid #e4dfd5;background:#fffdf9;border-radius:16px;padding:13px;text-align:left;cursor:pointer;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:8px;box-shadow:0 6px 16px rgba(49,58,52,.04);color:#3b493f}.knowledgequick button>span{grid-row:1/3;width:34px;height:34px;border-radius:10px;background:#f0ece4;display:grid;place-items:center;font-weight:900}.knowledgequick button b{font-size:12px}.knowledgequick button small{font-size:9px;color:#89918a}.knowledgequick button.on{border-color:#8eaf9a;background:#eef6f1;color:#24583d}.knowledgequick button.on>span{background:#dcebe2;color:#24583d}.v21controls{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px}.searchwide{display:grid;grid-template-columns:34px 1fr;align-items:center;border:1px solid #ded9d0;background:#fff;border-radius:13px;padding:0 8px}.searchwide span{font-size:18px;color:#7c877f}.searchwide input{border:0!important;box-shadow:none!important;background:transparent!important;font-size:13px}.knowledgeactions{display:flex;gap:7px}.knowledgefeature{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:16px 0}.featurecard{border-radius:18px;min-height:155px;padding:18px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 12px 26px rgba(43,52,45,.12);position:relative;overflow:hidden;cursor:pointer}.featurecard:after{content:attr(data-icon);position:absolute;right:15px;top:9px;font-size:48px;opacity:.35}.featurecard:nth-child(1){background:linear-gradient(140deg,#7a4e39,#b77b58)}.featurecard:nth-child(2){background:linear-gradient(140deg,#315b42,#5d8d6d)}.featurecard:nth-child(3){background:linear-gradient(140deg,#4b566e,#78829a)}.featurecard small{font-size:9px;letter-spacing:.12em;font-weight:900;opacity:.8}.featurecard b{font-size:18px;line-height:1.05;margin-top:5px;max-width:85%}.featurecard p{font-size:10px;line-height:1.35;margin:7px 0 0;color:#f2f3ef;max-width:92%}.knowledgesectionhead{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:22px 2px 9px}.knowledgesectionhead small{font-size:9px;letter-spacing:.12em;font-weight:900;color:#9b8e7a}.knowledgesectionhead h3{font-size:20px;margin-top:2px}.v21knowledgegrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.kcard{padding:0!important;overflow:hidden;border-radius:17px!important;box-shadow:0 7px 19px rgba(46,55,49,.06)!important;cursor:pointer;transition:.16s transform,.16s box-shadow}.kcard:hover{transform:translateY(-2px);box-shadow:0 13px 27px rgba(46,55,49,.10)!important}.kvisual{height:86px;padding:12px 14px;background:linear-gradient(135deg,#eee8dd,#faf7f0);display:flex;align-items:flex-start;justify-content:space-between}.kvisual span:first-child{font-size:32px}.ktopic{font-size:9px;font-weight:900;letter-spacing:.1em;color:#6b766e;background:rgba(255,255,255,.72);border-radius:99px;padding:5px 8px}.kbody{padding:14px 15px}.khead{margin-bottom:7px}.kcat{font-size:9px;border-radius:99px;padding:4px 7px;background:#eef2ed;color:#52695a}.kcard h3{font-size:16px;margin:4px 0 7px}.kcard p{font-size:11px;line-height:1.48;color:#606c64;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.kcard.open p{-webkit-line-clamp:unset}.kbullets{display:none;margin:10px 0 0;padding-left:18px;color:#526059;font-size:11px;line-height:1.5}.kcard.open .kbullets{display:block}.ktags{font-size:9px;color:#8f958e;margin-top:10px}.ksource{font-size:9px;color:#999188;padding-top:9px;border-top:1px solid #eee9df;margin-top:10px}.kmore{margin-top:10px;border:0;background:#f3efe8;color:#3c5d49;border-radius:9px;padding:7px 9px;font-size:10px;font-weight:850}.qualificationcard{display:grid;grid-template-columns:52px 1fr auto;gap:14px;align-items:center;background:linear-gradient(135deg,#f6f7f0,#edf5ed);border-color:#d8e4d8}.qualicon{width:50px;height:50px;border-radius:15px;background:#2c704c;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900}.qualificationcard small{font-size:9px;letter-spacing:.11em;color:#79907e;font-weight:900}.qualificationcard p{font-size:11px;color:#68746b;margin:5px 0 0}.legalnotice{background:#fcf7ed;border-color:#ecdfc6}

/* Admin v21 */
.adminchip{background:#e7f1ea;color:#2d6545;border:1px solid #c9dece;border-radius:99px;padding:8px 12px;font-size:10px;font-weight:850;display:flex;gap:6px;align-items:center}.adminchip span{color:#2c8b55}.adminstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.adminstats article{background:#fffdf9;border:1px solid #e2ddd4;border-radius:17px;padding:14px;display:flex;align-items:center;gap:12px;box-shadow:0 7px 18px rgba(48,57,50,.05)}.statemoji{width:38px;height:38px;border-radius:12px;background:#f1ede5;display:grid;place-items:center;font-weight:950;color:#557064}.adminstats article:first-child .statemoji{background:#fbebe7;color:#a45647}.adminstats article:nth-child(2) .statemoji{background:#e8f3eb;color:#327151}.adminstats b{display:block;font-size:22px;line-height:1}.adminstats small{font-size:9px;color:#8b938d}.adminpanel{padding:0;overflow:hidden}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px;border-bottom:1px solid #ebe6dd;background:#fbfaf6}.panelhead>div:first-child{display:flex;align-items:center;gap:10px}.panelhead small{font-size:8px;letter-spacing:.12em;color:#999185;font-weight:900}.panelhead h3{margin-top:2px}.panelicon{width:35px;height:35px;border-radius:11px;background:#eee9df;display:grid;place-items:center;font-weight:900}.pendingpanel .panelicon{background:#f9e7e3;color:#a85042}.adminpanel>p{padding:0 17px}.accesscards{display:grid;gap:0}.accesscard{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 17px;border-top:1px solid #eee9e0}.accesscard:first-child{border-top:0}.accessidentity{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center}.avatarletter{width:40px;height:40px;border-radius:13px;background:#e8efe9;color:#2c6142;display:grid;place-items:center;font-weight:900;text-transform:uppercase}.accessidentity b{font-size:13px}.accessidentity small{display:block;color:#8a918c;font-size:10px;margin-top:2px}.accessmeta{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.metapill{border-radius:99px;background:#f0ede7;color:#6f7871;padding:4px 7px;font-size:9px}.metapill.good{background:#e6f2ea;color:#2c6c48}.metapill.warn{background:#f9e9e5;color:#9d5245}.accessactionsrow{display:flex;gap:6px}.activitylegend{font-size:9px;color:#868e88;display:flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%;background:#adb4af}.dot.online{background:#42a367}.activitytable{display:grid}.activityrow{display:grid;grid-template-columns:minmax(190px,1.2fr) 120px 160px minmax(180px,1fr);gap:10px;align-items:center;padding:12px 17px;border-top:1px solid #eee9e0;font-size:11px}.activityrow:first-child{border-top:0}.activityrow.header{background:#faf8f3;color:#8a918b;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.activityrow b{display:block}.activityrow small{display:block;color:#8e958f;margin-top:2px}.statuslabel{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:850;border-radius:99px;padding:5px 8px;background:#f0eee8;color:#6f7771}.statuslabel.good{background:#e7f2ea;color:#306d4b}.statuslabel.warn{background:#faeae6;color:#9f5144}.statuslabel.admin{background:#e8edf6;color:#506581}.accesssearchcard{display:grid;grid-template-columns:minmax(160px,.45fr) minmax(300px,1fr);gap:15px;align-items:center}.accesssearch{display:grid;grid-template-columns:1fr auto;gap:8px}.accesssearchcard #accessSearchResult{grid-column:1/-1}.accessflow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center;margin-top:14px}.accessflow article{background:#fffdf9;border:1px solid #e4dfd5;border-radius:15px;padding:13px;display:grid;grid-template-columns:35px 1fr;gap:9px;align-items:center}.accessflow article>span{width:34px;height:34px;border-radius:11px;background:#2d6d4b;color:#fff;display:grid;place-items:center;font-weight:900}.accessflow b{display:block;font-size:12px}.accessflow small{font-size:9px;color:#879089}.accessflow>i{font-style:normal;color:#a5a299}.accessgateicon{width:64px;height:64px;border-radius:20px;background:linear-gradient(145deg,#e6f1e9,#d7e8dd);display:grid;place-items:center;font-size:30px;margin-bottom:14px}.accessbox .eyebrow{color:#6e8a77;opacity:1}.accesshelp{font-size:10px;color:#8b938d;background:#f7f4ee;border-radius:11px;padding:10px;margin:10px 0}

@media(max-width:1100px){.foldertools{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledgecover{grid-template-columns:1fr}.knowledgeillustrations{grid-template-columns:repeat(3,1fr)}.illocard,.illocard:first-child{grid-row:auto;min-height:120px}.illocard:first-child span{font-size:42px;top:10px}.v21knowledgegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledgefeature{grid-template-columns:1fr 1fr 1fr}.activityrow{grid-template-columns:minmax(170px,1fr) 100px 130px}.activityrow>*:nth-child(4){display:none}}
@media(max-width:850px){.shell{grid-template-columns:1fr}aside{position:sticky;top:0;height:auto;padding:9px 10px;display:block;border-right:0;border-bottom:1px solid #e2dccf}.brand{display:none}.nav{flex-direction:row;overflow-x:auto;gap:5px;margin:0;padding-bottom:2px}.navgroup{display:none}.nav button{min-width:86px;grid-template-columns:1fr;grid-template-rows:28px auto;padding:6px 7px;text-align:center;min-height:58px}.navicon{margin:auto;width:28px;height:28px;font-size:14px}.navtext small{display:none}.navbadge{position:absolute;right:4px;top:4px;min-width:18px;height:18px;font-size:8px}.create,.projectsearch,.sideh,#plist,aside footer{display:none}.nav .projectnav{display:none!important}main{width:min(100% - 24px,1260px);padding-top:20px}.foldercards{grid-template-columns:repeat(2,minmax(0,1fr))}.adminstats{grid-template-columns:repeat(2,1fr)}.accesssearchcard{grid-template-columns:1fr}.accesssearchcard #accessSearchResult{grid-column:auto}}
@media(max-width:700px){.knowledgequick{grid-template-columns:repeat(2,1fr)}.knowledgequick button:first-child{grid-column:1/-1}.v21controls{grid-template-columns:1fr}.knowledgeactions{justify-content:stretch}.knowledgeactions .btn{flex:1}.knowledgefeature{grid-template-columns:1fr}.v21knowledgegrid{grid-template-columns:1fr}.knowledgeillustrations{grid-template-columns:1fr 1fr}.illocard:first-child{grid-column:1/-1}.activityrow{grid-template-columns:1fr auto}.activityrow>*:nth-child(3),.activityrow>*:nth-child(4){display:none}.activityrow.header{display:none}.accessflow{grid-template-columns:1fr}.accessflow>i{display:none}.accesscard{grid-template-columns:1fr}.accessactionsrow{width:100%}.accessactionsrow .btn{flex:1}.qualificationcard{grid-template-columns:48px 1fr}.qualificationcard>.statuspill{grid-column:1/-1;justify-self:start}.foldertools{grid-template-columns:1fr}}
@media(max-width:480px){main{width:calc(100% - 16px)}.knowledgecover{padding:22px 18px;border-radius:19px}.knowledgecover h3{font-size:27px}.coverstats span{min-width:92px}.knowledgeillustrations{grid-template-columns:1fr}.illocard:first-child{grid-column:auto}.adminstats{grid-template-columns:1fr 1fr}.adminstats article{padding:11px;gap:8px}.foldercards{grid-template-columns:1fr}.folderhead{padding:20px 16px}.foldertools,.folderposition,.projectfolder .hubsummary{padding-left:16px;padding-right:16px}.accesssearch{grid-template-columns:1fr}.accesssearch .btn{width:100%}}
/* v21 illustrations */
.illocard{padding:0 14px 14px}.illocard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.94}.illocard:after{content:'';position:absolute;left:0;right:0;bottom:0;height:48%;background:linear-gradient(transparent,rgba(255,255,255,.96) 52%,rgba(255,255,255,.99))}.illocard b,.illocard small{position:relative;z-index:2}.illocard b{font-size:14px}.illocard small{color:#59675d}.illocard:first-child img{object-fit:cover}.kvisual{position:relative;overflow:hidden}.kvisual:before{content:'';position:absolute;inset:0;background:var(--kpic) center/cover no-repeat;opacity:.13;mix-blend-mode:multiply}.kcard[data-cat="Tischlerei"] .kvisual{--kpic:url('/assets/wood-workshop.svg')}.kcard[data-cat="Betrieb"] .kvisual{--kpic:url('/assets/calc-sheet.svg')}.kcard[data-cat="Recht"] .kvisual{--kpic:url('/assets/cnc-plan.svg')}.kcard[data-cat="Eigene Notiz"] .kvisual{--kpic:url('/assets/door-measure.svg')}.kvisual>*{position:relative;z-index:1}.emptysearch{margin:8px 4px;padding:14px;border:1px dashed #d9d4ca;border-radius:13px;background:#fffdf9;display:flex;flex-direction:column;gap:3px}.emptysearch b{font-size:12px}.emptysearch span{font-size:10px;color:#858c85}


/* v22 usability & beauty update */
:root{--bg:#f7f4ed;--card:#fffdfa;--line:#e8e1d6;--green:#2e7754;--green-soft:#e9f4ee;--text:#22302a;--muted:#7d827d;}
body{background:linear-gradient(180deg,#f8f5ef 0%,#f3eee4 100%);color:var(--text)}
aside{background:linear-gradient(180deg,#f8f5ef 0%,#efe8da 100%);border-right:1px solid var(--line)}
.brand,.card,nav button,.create .btn,.projectsearch,.pi,.emptysearch{box-shadow:0 10px 28px rgba(61,52,37,.05)}
.card{background:rgba(255,253,250,.92);border:1px solid var(--line);border-radius:24px}
main>section.view>header{position:sticky;top:0;z-index:8;padding:20px 0 14px;background:linear-gradient(180deg,#f7f4ed 70%,rgba(247,244,237,0));backdrop-filter:blur(6px)}
.navgroup{letter-spacing:.22em;color:#8d8169;margin:18px 10px 10px;font-size:11px;font-weight:800}
nav button{border-radius:20px;padding:16px 14px;background:rgba(255,255,255,.6);border:1px solid #ece4d7;margin-bottom:10px;transition:.18s ease}
nav button:hover{transform:translateY(-1px);border-color:#d9cfbc}
nav button.on{background:linear-gradient(180deg,#f3fbf6,#e4f2ea);border-color:#b9d8c6}
.navicon{width:42px;height:42px;border-radius:14px;background:#f4efe5;display:grid;place-items:center;font-size:20px}
nav button.on .navicon{background:#dff0e6;color:#285f45}
.navtext b{font-size:17px}.navtext small{font-size:12px;color:#7a7c74}
.projectfolder{background:linear-gradient(180deg,#f8fcf9 0%,#f4f8f5 100%)}
.folderhead{align-items:flex-start;gap:16px}.folderbadge{background:#dff0e6;color:#2b694c;padding:8px 12px;border-radius:999px;font-weight:800;font-size:12px;display:inline-block;margin-bottom:10px}
.foldertools,.projecttoolgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px}
.foldertool{border:1px solid #e6dece;border-radius:22px;background:#fffdf9;padding:18px 18px;display:flex;gap:14px;align-items:center;text-align:left;transition:.18s ease;min-height:92px}
.foldertool:hover{transform:translateY(-2px);border-color:#c8d9ce;box-shadow:0 12px 30px rgba(59,83,62,.08)}
.foldertool .toolicon{width:52px;height:52px;border-radius:16px;background:#edf5f0;display:grid;place-items:center;font-size:24px;flex:0 0 auto}
.foldertool b{display:block;font-size:17px;margin-bottom:3px}.foldertool small{color:#6f766f;line-height:1.35}.foldertool i{margin-left:auto;font-style:normal;font-size:24px;color:#56846a}
.projecthubcard{background:linear-gradient(180deg,#f8fcf9 0%,#fefcf8 100%)}
.eyebrow{display:block;letter-spacing:.18em;color:#8c7f69;font-size:11px;font-weight:800;margin-bottom:6px}
.projecthubcard h3{margin:0 0 6px;font-size:26px}
.projecthubcard .muted{max-width:720px}
.grid{gap:18px}.grid>section.card,.grid>.card{padding:20px}
.progress h3{font-size:28px}
input,select,textarea{border-radius:16px;border:1px solid #ddd5c8;background:#fff;min-height:52px;font-size:18px;padding:12px 16px}
textarea{min-height:120px}
label{font-size:12px;letter-spacing:.16em;color:#8f846f;font-weight:800;text-transform:uppercase}
.subgroup>summary{font-size:22px;font-weight:800;padding:4px 0 18px;cursor:pointer}
.tabs{gap:10px}.tabs button{border-radius:14px;padding:12px 18px;background:#f4efe5;border:1px solid #e4dbc9}.tabs button.on{background:#2e7754;color:#fff;border-color:#2e7754}
.row{border-radius:16px;padding:14px 16px;border:1px solid #ebe3d5;background:#fff}
.poscard,.pi{border-radius:18px;border:1px solid #e6dece;background:#fffdf8}
.pi.folder{background:linear-gradient(180deg,#eef7f1,#f8fbf8)}
.pi.child{margin-left:14px;border-left:4px solid #dbe7de}
.actions .btn,.btn{border-radius:16px}
footer .btn{width:100%}
@media (max-width:1100px){.foldertools,.projecttoolgrid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.foldertools,.projecttoolgrid{grid-template-columns:1fr}.projecthubcard h3{font-size:22px}.navtext b{font-size:16px}}



/* ================================================================
   v113 · CLEAN FOLDER UI
   Warm beige, comic-like, black text, minimal work screens.
   ================================================================ */
:root{
  --bg:#ead9bd;
  --bg2:#f0e2cb;
  --paper:#fff8eb;
  --paper2:#f8ecd9;
  --paper3:#f3e2c8;
  --ink:#111111;
  --muted:#4d463d;
  --line:#c9ad82;
  --line-soft:#ddc9aa;
  --accent:#e4bd7b;
  --accent2:#cf9953;
  --blue:#84b9e6;
  --good:#6fa36e;
  --bad:#c96c5e;
  --shadow:0 7px 0 rgba(92,63,30,.08),0 12px 24px rgba(92,63,30,.07);
}
*{box-sizing:border-box}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:"Trebuchet MS","Avenir Next Rounded",system-ui,-apple-system,sans-serif;background:linear-gradient(180deg,#efe0c7 0%,#ead9bd 55%,#e5d1b0 100%);font-weight:500}
button,input,textarea,select{font:inherit;color:var(--ink)}
.hide{display:none!important}

/* remove legacy CAD shell and knowledge UI */
.cad-topbar,.cad-ribbon,.cad-inspector,.cad-commandbar,button[data-v="knowledge"],button[data-cad-view="knowledge"],#knowledge{display:none!important}
/* program modules live in underproject folders; keep hidden buttons in DOM for JS routing */
.nav button[data-v="calendar"],.nav .projectnav{display:none!important}
#projectSide{display:none!important}

/* App shell */
.shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr);background:transparent}
aside{height:100vh;position:sticky;top:0;padding:20px 12px 14px;background:linear-gradient(180deg,#e6d2b3,#dfc7a3);border-right:2px solid #c6a575;color:var(--ink);display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:10px;background:var(--paper);border:2px solid var(--line);border-radius:18px;padding:11px;box-shadow:var(--shadow);margin-bottom:20px}
.brand .mark,.mark{width:42px;height:42px;border-radius:12px;background:#74aee0;color:#fff;display:grid;place-items:center;font-weight:900;border:2px solid #4d91ce}
.brand b{display:block;font-size:15px;color:var(--ink)}.brand small{display:block;color:var(--muted);font-size:11px}
.nav{display:flex;flex-direction:column;gap:7px}.navgroup{font-size:10px;font-weight:900;letter-spacing:.16em;color:#75634e;margin:12px 10px 4px}
.nav button{border:2px solid transparent;background:transparent;border-radius:15px;padding:9px 10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;color:var(--ink)}
.nav button:hover,.nav button.on{background:rgba(255,248,235,.78);border-color:#c9ad82}.navicon{width:34px;height:34px;border-radius:11px;background:#f6e8d1;border:2px solid #cbb289;display:grid;place-items:center;font-size:17px}.navtext{display:flex;flex-direction:column}.navtext b{font-size:13px;color:var(--ink)}.navtext small{font-size:10px;color:var(--muted)}.navbadge{margin-left:auto;background:#f3c987;border:2px solid #c59550;border-radius:99px;min-width:25px;height:25px;display:grid;place-items:center;font-size:11px;font-weight:900}
footer{margin-top:auto;padding-top:13px;border-top:2px solid #c9ad82;display:grid;gap:8px;color:var(--ink);font-size:10px}footer .btn{width:100%}

main{width:100%;max-width:1500px;margin:0 auto;padding:22px 28px 54px;background:transparent}
.view{color:var(--ink)}
.workspaceheader,.view>header{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:18px}.workspaceheader h2,.view>header h2{font-size:34px;margin:3px 0 0;letter-spacing:-.025em;color:var(--ink)}
.workbreadcrumb{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--ink);margin-bottom:3px}.workbreadcrumb i{font-style:normal;color:#846f56}.workbreadcrumb button{border:0;background:transparent;padding:0;color:var(--ink);font-weight:800;cursor:pointer}.eyebrow,#kind{font-size:10px;font-weight:900;letter-spacing:.14em;color:#6e5a43}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Finder-like bar */
.finderbar{display:flex;align-items:center;gap:9px;min-height:58px;padding:8px 10px;background:var(--paper);border:2px solid var(--line);border-radius:18px;box-shadow:var(--shadow);margin-bottom:20px;position:sticky;top:8px;z-index:10}
.finderbar button{height:40px;border:2px solid var(--line);background:var(--paper2);border-radius:13px;padding:0 13px;font-weight:900;cursor:pointer;color:var(--ink)}.finderbar button:hover:not(:disabled){background:#fffdf6}.finderbar button:disabled{opacity:.4;cursor:default}.finderback{width:44px;padding:0!important}.finderpath{font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.findernew{margin-left:auto;background:var(--accent)!important;border-color:#bf8e4c!important}.findernew:hover{background:#edca91!important}

/* Root / project / subproject folders */
.explorerheading{margin:8px 2px 20px}.explorerheading h2{font-size:38px;margin:4px 0;color:var(--ink)}.explorerheading p{margin:0;color:var(--muted)}
.rootsectiontitle{font-size:11px;font-weight:900;letter-spacing:.13em;margin:25px 0 8px;color:#6e5a43}.rootfoldergrid,#positions,.positionfoldergrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:24px 18px;align-items:start}
.foldertilewrap{position:relative;min-width:0}
.finderfolder,#positions .finderfolder{width:100%;appearance:none;border:2px solid var(--line-soft);background:var(--paper);border-radius:22px;box-shadow:var(--shadow);padding:16px 11px;min-height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;color:var(--ink)}
.finderfolder:hover,#positions .finderfolder:hover{transform:translateY(-2px);background:#fffdf5;border-color:#b9915d}.finderfoldericon{font-size:68px;line-height:1;filter:drop-shadow(0 3px 2px rgba(80,50,20,.09))}.finderfoldername{font-size:15px;font-weight:900;margin-top:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}.finderfolder small{font-size:10px;line-height:1.3;color:var(--muted);margin-top:4px;max-width:145px}.finderfolder.addfolder{background:#f6e5c9;border-style:dashed}.foldermoney{color:#6f573c!important;font-weight:800}
.deletefolderx{position:absolute;z-index:4;right:7px;top:7px;width:28px;height:28px;border-radius:50%;border:2px solid #caa578;background:#fff7e9;color:#111;display:grid;place-items:center;font-size:18px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 3px 7px rgba(70,45,15,.10)}.deletefolderx:hover{background:#f2c9bb;border-color:#c67b6c}

/* Main project: only useful info + subprojects. Three old action folders are gone. */
#folderView>.card:first-child,#folderView>.projectfolder,#folderView>.positionscard{background:var(--paper);border:2px solid var(--line-soft);border-radius:22px;box-shadow:var(--shadow);padding:18px;margin-bottom:14px}
#folderView .folderglobal{display:none!important}
#folderView>#folderNotesCard{display:none!important}
#folderView>.card:last-child{display:none!important}
.folderhead,.positionscard .section{display:flex;justify-content:space-between;align-items:center;gap:14px}.folderhead h3,.positionscard h3{font-size:25px;margin:3px 0}.folderhead p,.positionscard p{margin:3px 0 0;color:var(--muted);line-height:1.45}.folderbadge{display:inline-flex;background:#efd5ab;border:2px solid #caa56d;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:900}.foldersummary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:17px 0 2px}.foldersummary>div{background:var(--paper2);border:2px solid var(--line-soft);border-radius:14px;padding:11px 12px}.foldersummary span{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.foldersummary b{display:block;font-size:18px;margin-top:3px;color:var(--ink)}

/* Underproject program folders */
#projectView>.positionfolderhome{background:var(--paper);border:2px solid var(--line-soft);border-radius:22px;box-shadow:var(--shadow);padding:18px;margin-bottom:14px}.positionfolderhome>.section{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:15px;border-bottom:2px dashed #d6b98d}.positionfolderhome h3{font-size:31px;margin:3px 0}.positionfolderhome p{margin:4px 0 0;color:var(--muted)}
.positionfoldergrid{margin-top:18px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.explorerfolder{appearance:none;border:2px solid var(--line-soft);background:var(--paper2);border-radius:20px;box-shadow:0 5px 0 rgba(92,63,30,.05);padding:16px;min-height:145px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;cursor:pointer;color:var(--ink)}.explorerfolder:hover{background:#fff9ef;border-color:#b78c55;transform:translateY(-2px)}.explorerfolder .folderemoji{font-size:36px;line-height:1;margin-bottom:12px}.explorerfolder>span:nth-child(2){display:block}.explorerfolder b{display:block;font-size:17px;color:var(--ink);margin-bottom:5px}.explorerfolder small{display:block;font-size:11px;line-height:1.4;color:var(--muted)}.explorerfolder i{display:none}.positionfolderbar{display:flex;align-items:center;gap:12px;background:var(--paper);border:2px solid var(--line-soft);border-radius:16px;padding:10px 12px;margin-bottom:12px;box-shadow:var(--shadow)}.positionfolderbar>div{display:grid}.positionfolderbar small{font-size:9px;font-weight:900;letter-spacing:.1em}.positionfolderbar b{font-size:14px;color:var(--ink)}

/* Generic content cards / controls */
.card,.box,.modalbox{background:var(--paper);border:2px solid var(--line-soft);border-radius:19px;box-shadow:var(--shadow);color:var(--ink)}.card{padding:16px;margin-bottom:12px}.box{padding:24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.section{display:flex;justify-content:space-between;align-items:center;gap:12px}.muted,.hint,#state,.smallnote,.viewhint{color:var(--muted)!important}.card label,.box label,label{display:block;color:var(--ink);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin:12px 0 5px}.card input,.card textarea,.card select,.box input,.modal input,input,textarea,select{width:100%;background:#fffdf8;border:2px solid #d6bc96;border-radius:13px;padding:10px 11px;outline:none;color:var(--ink)}input:focus,textarea:focus,select:focus{border-color:#aa7c43;box-shadow:0 0 0 3px rgba(170,124,67,.13)}textarea{min-height:100px;resize:vertical}
.btn{border:2px solid #c8aa7c;border-radius:13px;padding:9px 13px;min-height:40px;background:var(--paper2);color:var(--ink);font-weight:900;cursor:pointer}.btn:hover{background:#fff7e8}.btn.dark{background:var(--accent);border-color:#bd8e4e;color:#111}.btn.soft{background:#f4e5ce;color:#111}.btn.danger{background:#f2cfc4;border-color:#cb8a78;color:#111}.link{border:0;background:transparent;color:#111;cursor:pointer;text-decoration:underline;text-decoration-style:dotted}.statuspill{display:inline-flex;padding:6px 9px;border-radius:99px;background:#edd4ab;border:2px solid #c7a36c;color:#111;font-size:10px;font-weight:900}.optional{color:var(--muted);font-weight:500;text-transform:none;letter-spacing:0}

/* progress/checklist */
.progress{display:flex;justify-content:space-between;align-items:center}.progress strong{font-size:28px;color:#111}.track{height:11px;background:#ead8bd;border:2px solid #cfb38b;border-radius:99px;overflow:hidden;margin:12px 0 7px}.track i{display:block;height:100%;background:#d5aa68;border-radius:99px}.checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin-top:10px}.grp{grid-column:1/-1;color:#64533e;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.row{display:flex!important;align-items:center;gap:9px;border:2px solid #dfc8a5;border-radius:14px;padding:10px!important;background:#fffaf1;color:#111!important;font-size:12px!important;text-transform:none!important;letter-spacing:0!important}.row input{width:18px;height:18px;accent-color:#a77a45}

/* Minimal programs */
.projectcontext{display:flex;align-items:center;gap:10px;background:#f6e6cd;border:2px solid #d2b58b;border-radius:14px;padding:8px 10px;margin-bottom:10px}.projectcontext>div{display:grid}.activeworkchip{display:flex;flex-direction:column;background:#f7ead6;border:2px solid #d5ba92;border-radius:12px;padding:7px 10px}.topselect{display:none!important}.viewhint{margin:-4px 0 12px;padding:8px 10px;border-left:4px solid #c89b60;background:#f6e8d2;border-radius:0 12px 12px 0;font-size:11px}.subgroup{padding:0;overflow:hidden}.subgroup>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:900}.subcontent{padding:0 16px 16px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0 10px}.tabs button{border:2px solid #d0b48c;background:#f5e6d0;border-radius:12px;padding:8px 11px;font-weight:900;cursor:pointer;color:#111}.tabs button.on{background:#e4bd7b;border-color:#bd8e4e;color:#111}

/* Plan */
.planlayout{display:grid;grid-template-columns:225px 1fr;gap:12px}.planlist{display:grid;gap:7px}.planitem{border:2px solid #dbc39f;background:#fffaf1;border-radius:13px;padding:9px;text-align:left;cursor:pointer;color:#111}.planitem.on{border-color:#a97a42;background:#f5e4c8}.plantools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.plantools button.on{background:#e4bd7b!important;color:#111!important}.planstage{position:relative;overflow:auto;background:#e5d6c1;border:2px solid #cbb18c;border-radius:15px;min-height:270px;display:grid;place-items:center;padding:8px}.planstage canvas{max-width:100%;height:auto;background:#fffdf8!important}.planstage #annoCanvas{position:absolute;touch-action:none}.sitepad{background:#fffdf8;border:2px solid #cbb18c;border-radius:15px}

/* Door measurement */
.doorrow{border:2px solid #dbc39f;border-radius:15px;padding:12px;background:#fffaf1;margin-top:8px}.doorgrid{display:grid;grid-template-columns:1.3fr repeat(3,.75fr) 1fr 1fr;gap:7px}.dooractions{display:flex;gap:6px;justify-content:flex-end;margin-top:8px}

/* Calculation */
.calcworkspace{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:12px;align-items:start}.calcmain{display:grid;gap:12px}.calcstep{padding:0!important;overflow:hidden}.calcstephead{display:grid;grid-template-columns:35px 1fr auto;gap:10px;align-items:center;padding:13px 14px;background:#f5e5cd;border-bottom:2px solid #dac09a}.calcstephead>span{width:32px;height:32px;border-radius:10px;background:#e4bd7b;border:2px solid #bd8e4e;color:#111;display:grid;place-items:center;font-weight:900}.calcstephead h3{font-size:16px;margin:0}.calcstephead p{font-size:10px;margin:2px 0 0;color:var(--muted)}.calcrows{display:grid}.calcrowhead,.calcrow{display:grid;gap:7px;align-items:center;padding:7px 11px}.calcrowhead{background:#f8ecd9;border-bottom:2px solid #ead7b9;color:#574b3e;font-size:9px;font-weight:900;text-transform:uppercase}.calcrow{border-bottom:1px solid #ead7b9}.materialhead,.materialrow{grid-template-columns:minmax(150px,2fr) 72px 82px 98px 82px 100px 30px}.laborhead,.laborrow{grid-template-columns:minmax(150px,2fr) 92px 106px 100px 30px}.extrahead,.extrarow{grid-template-columns:minmax(180px,1fr) 120px 30px}.calcrow input,.calcrow select{min-height:36px;padding:7px 8px!important}.rowdelete{border:2px solid #d6a497;background:#f5d7ce;color:#111;width:29px;height:29px;border-radius:9px;cursor:pointer}.calcsubsum{display:flex;justify-content:flex-end;gap:13px;padding:9px 14px;background:#fcf3e4;border-top:1px solid #ead7b9}.formgrid4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:13px}.calcside{position:sticky;top:75px}.calcsummary{background:#fff8eb!important}.calcposition{border:2px solid #dbc39f;background:#fffaf1;border-radius:13px;padding:9px;cursor:pointer;color:#111}

/* calendar */
.calendarbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calhead{font-size:10px;text-align:center;font-weight:900;padding:5px}.day{min-height:96px;border:2px solid #dbc39f;border-radius:13px;background:#fffaf1;padding:7px;cursor:pointer;color:#111}.day.today{border-color:#a87941;background:#f5e4c8}.event{font-size:9px;padding:5px;border-radius:8px;background:#eed7b3;margin-top:4px}

/* Photos/chat/team/admin/backup */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:9px;margin-top:10px}.photo{position:relative;aspect-ratio:4/3;border-radius:14px;overflow:hidden;border:2px solid #d7bd98;background:#eee}.photo img{width:100%;height:100%;object-fit:cover}.photo button{position:absolute;right:5px;top:5px;border:2px solid #fff;background:#d37a6b;color:#fff;border-radius:99px;width:28px;height:28px}.phact,.chatactions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.stack{display:grid;gap:8px;margin-top:9px}.person,.conv{border:2px solid #dbc39f;border-radius:14px;padding:10px;background:#fffaf1;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#111}.chatgrid{display:grid;grid-template-columns:260px 1fr;gap:12px}.msgs{height:430px;overflow:auto;display:flex;flex-direction:column;gap:7px}.msg{max-width:76%;padding:9px 11px;border-radius:14px;background:#f5e5cd;color:#111}.msg.mine{align-self:flex-end;background:#d6e7f3;color:#111}.send{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:end}.backupgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.backupstats,.adminstats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.backupstat,.adminstats article{background:#fffaf1;border:2px solid #dbc39f;border-radius:14px;padding:12px;color:#111}.adminpanel,.accesssearchcard{background:var(--paper)!important}.activityrow,.accesscard{background:#fffaf1!important;border-color:#dbc39f!important;color:#111!important}

/* auth & modals */
.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(180deg,#eedfc5,#e5cfad)}.auth .box{width:min(430px,100%)}.err{background:#f5d7ce;color:#111;border:2px solid #d7a092;border-radius:12px;padding:9px;margin-top:8px}.modal{position:fixed;inset:0;background:rgba(65,46,25,.45);display:grid;place-items:center;padding:16px;z-index:30}.modalbox{width:min(760px,100%);max-height:90vh;overflow:auto;padding:18px}.toast{position:fixed;right:18px;bottom:18px;background:#2a2117;color:#fff!important;padding:10px 13px;border-radius:12px;font-size:12px;opacity:0;pointer-events:none;z-index:50}.toast.show{opacity:1}.offlinebar{position:fixed;left:50%;top:10px;transform:translateX(-50%);z-index:60;background:#f4d89f;border:2px solid #bd8e4e;border-radius:99px;padding:7px 12px;color:#111;font-size:11px;font-weight:900}

@media(max-width:1050px){.shell{grid-template-columns:190px 1fr}main{padding:18px}.foldersummary{grid-template-columns:1fr 1fr}.calcworkspace{grid-template-columns:1fr}.calcside{position:static}.materialhead{display:none}.materialrow{grid-template-columns:minmax(150px,2fr) 70px 80px 90px 80px 90px 30px}.backupgrid{grid-template-columns:1fr 1fr}.adminstats{grid-template-columns:1fr 1fr}}
@media(max-width:780px){.shell{display:block}aside{height:auto;position:relative;padding:12px}.nav{display:grid;grid-template-columns:repeat(2,1fr)}.navgroup{grid-column:1/-1}main{padding:12px 12px 40px}.finderbar{top:4px}.finderpath{display:none}.workspaceheader,.view>header{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .btn{flex:1}.grid{grid-template-columns:1fr}.positionfoldergrid,.rootfoldergrid,#positions{grid-template-columns:repeat(2,minmax(0,1fr))}.planlayout{grid-template-columns:1fr}.doorgrid{grid-template-columns:1fr 1fr}.chatgrid{grid-template-columns:1fr}.backupgrid{grid-template-columns:1fr}.calcrowhead{display:none}.materialrow,.laborrow,.extrarow{grid-template-columns:1fr 1fr}.materialrow>*:first-child,.laborrow>*:first-child,.extrarow>*:first-child{grid-column:1/-1}}
@media(max-width:520px){.positionfoldergrid,.rootfoldergrid,#positions{grid-template-columns:1fr 1fr;gap:12px}.finderfolder,#positions .finderfolder{min-height:135px;padding:12px 8px}.finderfoldericon{font-size:58px}.finderbar .finderhome{font-size:0}.finderbar .finderhome:after{content:'🏠';font-size:16px}.finderbar .findernew{font-size:0}.finderbar .findernew:after{content:'➕';font-size:16px}.doorgrid,.materialrow,.laborrow,.extrarow{grid-template-columns:1fr}.checks{grid-template-columns:1fr}.foldersummary{grid-template-columns:1fr 1fr}.workspaceheader h2,.view>header h2{font-size:28px}}

@media print{@page{size:A4;margin:13mm}.auth,.shell,.modal,.toast{display:none!important}#print{display:block!important;font-family:Arial,sans-serif;color:#000}#print h1{font-size:23px}.pline{padding:5px 0;border-bottom:1px solid #ddd;font-size:11px}}


/* =========================================================
   v114 — MODERN LIGHT GREY / PRODUCTIVITY REFINEMENT
   ========================================================= */
:root{
  --v114-bg:#eef1f4;
  --v114-side:#e6eaee;
  --v114-panel:#ffffff;
  --v114-panel-soft:#f7f8fa;
  --v114-line:#d6dce2;
  --v114-line-strong:#c3cbd4;
  --v114-text:#15181b;
  --v114-muted:#5d6670;
  --v114-accent:#4e86b8;
  --v114-accent-soft:#e8f1f8;
  --v114-danger:#bf4d4d;
  --v114-danger-soft:#fff0f0;
  --v114-shadow:0 7px 22px rgba(31,43,55,.07);
}

html,body{background:var(--v114-bg)!important;color:var(--v114-text)!important}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif!important;letter-spacing:0!important}
.shell,main{background:var(--v114-bg)!important;color:var(--v114-text)!important}
main{padding-top:20px!important}

/* Sidebar — clean, calm, high contrast */
aside{
  background:linear-gradient(180deg,#e9edf1 0%,#e3e8ec 100%)!important;
  border-right:1px solid #cfd6dd!important;
  box-shadow:none!important;
}
.brand{background:#fff!important;border:1px solid var(--v114-line)!important;border-radius:16px!important;box-shadow:0 4px 14px rgba(36,50,64,.05)!important}
.brand b,.brand small{color:var(--v114-text)!important}
.brand small{opacity:.62}
.navgroup{color:#68727c!important;font-size:10px!important;letter-spacing:.15em!important}
.nav button{
  background:transparent!important;
  border:1px solid transparent!important;
  color:var(--v114-text)!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.nav button:hover{background:rgba(255,255,255,.62)!important;border-color:#d5dce3!important}
.nav button.on{background:#fff!important;border-color:#cbd4dd!important;box-shadow:0 4px 12px rgba(32,46,60,.05)!important}
.navicon{background:#f5f7f9!important;border:1px solid #d8dfe6!important;color:#111!important;border-radius:10px!important}
.navtext b,.navtext small{color:var(--v114-text)!important}
.navtext small{opacity:.56}
aside footer{border-color:#cbd2d9!important;color:#363c42!important}
aside footer .btn{width:100%!important}

/* Global text & controls */
h1,h2,h3,h4,h5,h6,b,strong,label,p,span,small,div,button,input,textarea,select,option{color:var(--v114-text)}
.muted,.optional,.subtitle,.smallnote,.viewhint,.finderfolder small,.explorerfolder small,.workbreadcrumb,#kind{color:var(--v114-muted)!important}
input,textarea,select{
  background:#fff!important;
  border:1px solid var(--v114-line-strong)!important;
  color:var(--v114-text)!important;
  border-radius:11px!important;
  box-shadow:none!important;
}
input:focus,textarea:focus,select:focus{outline:none!important;border-color:#7da6ca!important;box-shadow:0 0 0 3px rgba(78,134,184,.12)!important}
input::placeholder,textarea::placeholder{color:#7f8993!important}

.btn,.actions .btn,.finderbar button{
  background:#fff!important;
  border:1px solid var(--v114-line-strong)!important;
  color:var(--v114-text)!important;
  border-radius:11px!important;
  box-shadow:none!important;
  min-height:40px!important;
  font-weight:700!important;
}
.btn:hover,.actions .btn:hover,.finderbar button:hover{background:#f7f9fb!important;border-color:#aeb8c2!important}
.btn.dark,.finderbar .findernew{background:#22272c!important;border-color:#22272c!important;color:#fff!important}
.btn.dark:hover,.finderbar .findernew:hover{background:#101316!important;border-color:#101316!important}
.btn.danger{background:var(--v114-danger-soft)!important;border-color:#e8bcbc!important;color:#9d3838!important}

/* Finder top bar */
.finderbar{
  background:rgba(255,255,255,.88)!important;
  backdrop-filter:blur(14px)!important;
  border:1px solid #d0d7de!important;
  border-radius:16px!important;
  box-shadow:0 5px 18px rgba(30,45,58,.06)!important;
  padding:9px 11px!important;
}
.finderpath{color:#252a2f!important;font-size:13px!important}
.finderpath i{color:#8b949e!important}

/* Work headers */
.workspaceheader,.view>header{border-bottom:1px solid #d5dbe1!important;padding-bottom:14px!important;margin-bottom:20px!important;background:transparent!important}
.workspaceheader h2,.view>header h2{color:#111!important;font-weight:780!important;letter-spacing:-.025em!important}
.workspaceheader small,.view>header small,#kind{color:#65707a!important;letter-spacing:.12em!important}
#state,.statuspill,.localbadge{
  background:#f5f7f9!important;
  border:1px solid #d2d9e0!important;
  color:#3e4852!important;
  border-radius:999px!important;
}

/* Cards: flatter/minimal */
.card,.box,.projectcontext,.positionfolderbar,.backupcard,.person,.conv,.doorrow,.calcstep,.assemblycard,.sketchpadcard{
  background:var(--v114-panel)!important;
  border:1px solid var(--v114-line)!important;
  color:var(--v114-text)!important;
  box-shadow:var(--v114-shadow)!important;
  border-radius:15px!important;
}
.card{padding:18px!important}
.projectcontext{background:#f7f9fb!important;padding:9px 11px!important}
.activeworkchip{background:#f4f6f8!important;border:1px solid #d7dee5!important;border-radius:11px!important;padding:7px 10px!important}
.viewhint{background:#f8f9fb!important;border:1px solid #dce2e8!important;border-left:3px solid #9aa7b3!important;border-radius:0 10px 10px 0!important;padding:8px 10px!important}

/* Folder system — same on all levels */
.rootfoldergrid,#positions,#projectView .positionfoldergrid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(168px,1fr))!important;
  gap:20px!important;
  align-items:stretch!important;
}
.foldertilewrap{position:relative!important;min-width:0!important}
.finderfolder,#positions .finderfolder,#projectView .explorerfolder{
  width:100%!important;
  height:100%!important;
  min-height:158px!important;
  background:#fff!important;
  border:1px solid #d4dbe2!important;
  border-radius:17px!important;
  box-shadow:0 5px 16px rgba(35,49,62,.055)!important;
  color:#111!important;
  padding:16px 14px!important;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}
.finderfolder:hover,#positions .finderfolder:hover,#projectView .explorerfolder:hover{
  background:#fafbfd!important;
  border-color:#aebbc7!important;
  box-shadow:0 9px 22px rgba(35,49,62,.09)!important;
  transform:translateY(-2px)!important;
}
.finderfoldericon,#positions .finderfoldericon{font-size:62px!important;line-height:1!important;filter:none!important}
.finderfoldericon:before,#positions .finderfoldericon:before{content:none!important}
.finderfoldername,#positions .finderfoldername{
  color:#111!important;
  font-size:15px!important;
  font-weight:760!important;
  margin-top:10px!important;
  white-space:normal!important;
  line-height:1.25!important;
}
.finderfolder small,#positions .finderfolder small{color:#66717b!important;font-size:11px!important;line-height:1.35!important}
.finderfolder.addfolder{background:#f5f7f9!important;border-style:dashed!important;box-shadow:none!important}
.finderfolder.addfolder .finderfoldericon{font-size:44px!important;opacity:.68!important;margin-top:9px!important}

/* Delete X — easier to hit, visually calmer */
.deletefolderx{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  z-index:5!important;
  width:30px!important;
  height:30px!important;
  border-radius:999px!important;
  background:#f5f7f9!important;
  border:1px solid #cfd7df!important;
  color:#4f5963!important;
  box-shadow:0 2px 7px rgba(30,43,55,.08)!important;
  font-size:18px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.deletefolderx:hover{background:#fff0f0!important;border-color:#dc9d9d!important;color:#b53e3e!important;transform:scale(1.04)!important}

/* Program folders — minimalist, no heavy decorative layers */
#projectView>.positionfolderhome{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
#projectView>.positionfolderhome>.section{border-bottom:1px solid #d5dbe1!important;padding:0 2px 15px!important;margin-bottom:17px!important}
#projectView>.positionfolderhome h3{font-size:30px!important;color:#111!important}
#projectView .explorerfolder{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  text-align:left!important;
  min-height:142px!important;
  padding:15px!important;
}
#projectView .explorerfolder .folderemoji{
  font-size:30px!important;
  line-height:1!important;
  width:auto!important;height:auto!important;
  margin:0 0 13px!important;
  position:static!important;
}
#projectView .explorerfolder .folderemoji:before,#projectView .explorerfolder .folderemoji:after{content:none!important;display:none!important}
#projectView .explorerfolder span b{display:block!important;font-size:16px!important;font-weight:760!important;color:#111!important;margin:0 0 4px!important;white-space:normal!important}
#projectView .explorerfolder span small{display:block!important;font-size:11px!important;line-height:1.4!important;color:#68737d!important;max-width:none!important}

/* Main project: simplify summary and remove any obsolete global quick folders */
#folderView .folderglobal{display:none!important}
#folderView>.projectfolder,#folderView>.positionscard{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
#folderView>.projectfolder .folderhead,#folderView>.positionscard .section{background:transparent!important;border-bottom:1px solid #d5dbe1!important;padding:0 2px 15px!important;margin-bottom:15px!important}
.foldersummary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin:10px 0 20px!important}
.foldersummary>div{
  background:#fff!important;
  border:1px solid #d8dfe5!important;
  border-radius:12px!important;
  padding:11px 13px!important;
  box-shadow:none!important;
}
.foldersummary span{font-size:9px!important;color:#6c7781!important;letter-spacing:.08em!important}
.foldersummary b{font-size:18px!important;color:#111!important;margin-top:3px!important}

/* Progress/checklist/material: compact work-first */
.track{height:8px!important;background:#e5eaee!important;border:0!important;border-radius:999px!important}
.track i{background:#66798a!important;border-radius:999px!important}
.checks{gap:7px!important}
.row{background:#fff!important;border:1px solid #dce2e7!important;border-radius:11px!important;padding:10px 11px!important}
.row:has(input:checked){background:#f0f5f2!important;border-color:#bdcec3!important}
.tabs button{background:#f2f4f6!important;border:1px solid #d8dee4!important;color:#222!important;border-radius:9px!important}
.tabs button.on,.plantools button.on{background:#252b30!important;border-color:#252b30!important;color:#fff!important}
.subgroup>summary{background:#fff!important;color:#111!important;padding:13px 15px!important}

/* Planning / measurements / calculation pages */
.planlayout{gap:10px!important}
.planlist,.stack{gap:7px!important}
.planitem,.calcposition{background:#fff!important;border:1px solid #d8dfe5!important;border-radius:11px!important;box-shadow:none!important;color:#111!important}
.planitem.on,.calcposition:hover{border-color:#8797a6!important;background:#f7f9fb!important}
.planstage,.sitepad,.doorsketchwrap{background:#e3e7ea!important;border:1px solid #d0d7de!important;border-radius:12px!important}
.calcworkspace{gap:12px!important}
.calcstep{overflow:hidden!important;box-shadow:none!important}
.calcstephead{background:#f6f7f9!important;border-bottom:1px solid #dce2e7!important}
.calcstephead .stepno{background:#252b30!important;color:#fff!important;border:0!important}
.calcrowhead{background:#f3f5f7!important;border-bottom:1px solid #dce2e7!important;color:#56616b!important}
.calcrow{border-bottom:1px solid #edf0f2!important}
.calcsubsum{background:#f7f8fa!important;border-top:1px solid #dce2e7!important}
.rowdelete{background:#fff1f1!important;border:1px solid #e1b6b6!important;color:#a84444!important}
.calcsummary{background:#fff!important;border-color:#d7dee4!important}
.calctotals .gross{background:#252b30!important;color:#fff!important;border-radius:10px!important}
.calctotals .gross span,.calctotals .gross b{color:#fff!important}

/* Calendar/photos/team/backup */
.day{background:#fff!important;border:1px solid #d8dfe5!important;border-radius:10px!important}
.day.today{background:#eef4f9!important;box-shadow:inset 0 0 0 2px #7e9ab2!important}
.event{background:#edf1f4!important;color:#252b30!important}
.photo{border:1px solid #d1d8df!important;border-radius:12px!important}
.person,.conv,.backupstat,.adminstats article{background:#fff!important;border:1px solid #d8dfe5!important;color:#111!important;border-radius:12px!important}
.backuphero{background:#f6f8fa!important;border:1px solid #d8dfe5!important;color:#111!important}
.backupwarning{background:#f8f7f2!important;border-color:#ded8c8!important}

/* Auth */
.auth{background:linear-gradient(180deg,#edf1f4,#e2e7eb)!important}
.auth .box{background:#fff!important;border:1px solid #d1d8df!important;color:#111!important;box-shadow:0 15px 45px rgba(34,46,58,.10)!important}
.err{background:#fff0f0!important;border:1px solid #e3b3b3!important;color:#9f3939!important}

/* Knowledge stays removed from visible app */
button[data-v="knowledge"],button[data-cad-view="knowledge"],#knowledge{display:none!important}
.cad-topbar,.cad-ribbon,.cad-inspector,.cad-commandbar{display:none!important}
.nav .projectnav,.nav button[data-v="calendar"]{display:none!important}
.topselect{display:none!important}

/* Responsive: practical iPad / phone */
@media(max-width:1050px){
  .foldersummary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rootfoldergrid,#positions,#projectView .positionfoldergrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:780px){
  main{padding:12px 12px 42px!important}
  aside{padding:10px!important}
  .nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .workspaceheader,.view>header{gap:10px!important}
  .actions{display:flex!important;width:100%!important;gap:7px!important}
  .actions .btn{flex:1!important}
  .rootfoldergrid,#positions,#projectView .positionfoldergrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .finderfolder,#positions .finderfolder,#projectView .explorerfolder{min-height:132px!important}
  .deletefolderx{width:32px!important;height:32px!important}
}
@media(max-width:480px){
  .foldersummary{grid-template-columns:1fr 1fr!important}
  .rootfoldergrid,#positions,#projectView .positionfoldergrid{grid-template-columns:1fr 1fr!important}
  .finderfoldericon,#positions .finderfoldericon{font-size:52px!important}
  #projectView .explorerfolder .folderemoji{font-size:27px!important}
  #projectView .explorerfolder span b{font-size:14px!important}
}


/* v117: subprograms visually improved */
:root{
  --ui-bg:#eef1f5;
  --ui-panel:#ffffff;
  --ui-panel-2:#f7f9fc;
  --ui-border:#d7dde5;
  --ui-text:#111827;
  --ui-muted:#5f6b7a;
  --ui-accent:#3b82f6;
  --ui-accent-soft:#e8f1ff;
}

/* nicer underproject folder cards */
#projectView .positionfolderhome{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
#projectView .positionfolderhome .section{padding-bottom:18px!important;margin-bottom:18px!important;border-bottom:1px solid #d8dee6!important}
#projectView .positionfolderhome .section h3{font-size:40px!important;letter-spacing:-.02em!important}
#projectView .positionfolderhome .section .muted{max-width:780px!important;line-height:1.45!important}
#projectView .positionfoldergrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:18px!important}
#projectView .explorerfolder{
  position:relative!important;
  overflow:hidden!important;
  min-height:160px!important;
  padding:18px!important;
  border-radius:20px!important;
  border:1px solid #dbe1e8!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  box-shadow:0 8px 28px rgba(17,24,39,.05)!important;
  align-items:flex-start!important;
  text-align:left!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease!important;
}
#projectView .explorerfolder:hover{
  transform:translateY(-3px)!important;
  border-color:#c3d1e2!important;
  box-shadow:0 16px 34px rgba(17,24,39,.10)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5f8fc 100%)!important;
}
#projectView .explorerfolder:before{
  content:'';position:absolute;left:18px;right:18px;top:0;height:4px;border-radius:0 0 8px 8px;background:#dbeafe;
}
#projectView .explorerfolder:nth-child(1):before{background:#dbeafe}
#projectView .explorerfolder:nth-child(2):before{background:#fee2e2}
#projectView .explorerfolder:nth-child(3):before{background:#dcfce7}
#projectView .explorerfolder:nth-child(4):before{background:#e9d5ff}
#projectView .explorerfolder:nth-child(5):before{background:#fef3c7}
#projectView .explorerfolder:nth-child(6):before{background:#f5e1c8}
#projectView .explorerfolder:nth-child(7):before{background:#fde68a}
#projectView .explorerfolder:nth-child(8):before{background:#dbeafe}
#projectView .explorerfolder:nth-child(9):before{background:#e0e7ff}
#projectView .explorerfolder .folderemoji{
  width:54px!important;height:54px!important;display:grid!important;place-items:center!important;
  margin:0 0 14px!important;border-radius:16px!important;background:#f3f6fb!important;border:1px solid #e1e6ee!important;
  font-size:28px!important;line-height:1!important;
}
#projectView .explorerfolder span b{font-size:21px!important;line-height:1.2!important;margin-bottom:7px!important;color:#111827!important}
#projectView .explorerfolder span small{display:block!important;color:#667485!important;font-size:13px!important;line-height:1.45!important;max-width:none!important}

/* clearer generic folder tiles */
.finderfolder,#positions .finderfolder,.rootfoldergrid .finderfolder{
  border-radius:20px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafb 100%)!important;
  border:1px solid #dbe2e9!important;
  box-shadow:0 8px 24px rgba(17,24,39,.05)!important;
}
.finderfolder:hover,#positions .finderfolder:hover,.rootfoldergrid .finderfolder:hover{transform:translateY(-2px)!important;box-shadow:0 14px 30px rgba(17,24,39,.09)!important}

/* nicer module pages */
.view>header{
  display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;
  margin-bottom:14px!important;padding:0 0 10px!important;border-bottom:1px solid #dde3ea!important;
}
.view>header h2{font-size:32px!important;letter-spacing:-.02em!important;color:#111827!important}
.view>header small{font-size:12px!important;letter-spacing:.12em!important;color:#6b7280!important}
.projectcontext,.positionfolderbar{
  background:#fff!important;border:1px solid #d9e0e8!important;border-radius:16px!important;padding:10px 12px!important;box-shadow:0 4px 12px rgba(17,24,39,.04)!important;
}
.activeworkchip{background:#f7f9fc!important;border:1px solid #dbe2ea!important;border-radius:14px!important}
.viewhint{
  background:#f7f9fc!important;border-left:4px solid #90b4f8!important;border-radius:0 14px 14px 0!important;padding:10px 12px!important;color:#5f6b7a!important;font-size:13px!important
}
.card,.box,.projectcontext,.positionfolderbar,.backupcard,.person,.conv,.doorrow,.calcstep,.assemblycard,.sketchpadcard{
  border-radius:18px!important;border:1px solid #d9e0e8!important;box-shadow:0 8px 24px rgba(17,24,39,.045)!important;background:#fff!important;
}
.card h3,.card b{color:#111827!important}
.smallnote,.muted{color:#667485!important}

/* checklist / material / notes */
#checklistCard .section,#positionTeamCard .section,#positionDeleteCard .section,.assemblycard .section,.sketchpadcard .section{align-items:center!important}
.checks{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:10px!important}
.checks label{
  display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px 14px!important;background:#f8fafc!important;border:1px solid #dbe2ea!important;border-radius:14px!important;
}
.checks input[type="checkbox"]{margin-top:3px!important;transform:scale(1.15)}
.tabs{background:#f6f8fb!important;border:1px solid #dde4eb!important;border-radius:14px!important;padding:4px!important;display:inline-flex!important}
.tabs button{border:0!important;background:transparent!important;border-radius:10px!important;padding:10px 14px!important;font-weight:700!important}
.tabs button.on{background:#111827!important;color:#fff!important}
#positionNotesCard textarea,#folderNotesCard textarea,#notes{min-height:150px!important}
.photos{gap:12px!important}
.photos .photo{border-radius:16px!important;overflow:hidden!important;border:1px solid #dbe1e8!important;box-shadow:0 6px 16px rgba(17,24,39,.05)!important}

/* planstation polish */
.assemblycard,.sketchpadcard{overflow:hidden!important}
.plantools,.site-tools{gap:8px!important}
.plantools .btn,.site-tools .btn{border-radius:12px!important}
.plantools .btn.on,.site-tools .btn.on{background:#111827!important;border-color:#111827!important;color:#fff!important}
.planlayout{grid-template-columns:250px minmax(0,1fr)!important;gap:14px!important}
.planlist{gap:8px!important}
.planitem{padding:12px!important;border-radius:14px!important;font-size:14px!important}
.planitem.on{background:#edf4ff!important;border-color:#9ab5d7!important}
.planstage,.sitepad,.doorsketchwrap{background:#eef2f5!important;border:1px dashed #cad3dd!important;border-radius:16px!important}
.localbadge,.statuspill{border-radius:999px!important;padding:7px 10px!important;font-size:12px!important;font-weight:700!important}
.localbadge{background:#eef6ff!important;border:1px solid #d4e5ff!important;color:#2563eb!important}
.statuspill{background:#f7f9fc!important;border:1px solid #dce3eb!important;color:#475569!important}

/* door measurements polish */
.doorgrid{gap:8px!important}
.doorrow{padding:14px!important;background:linear-gradient(180deg,#fff 0%,#f9fbfc 100%)!important}
.dooractions .btn{border-radius:12px!important}

/* calculation polish */
.calcworkspace{grid-template-columns:minmax(0,1fr) 340px!important;gap:16px!important}
.calcstep{overflow:hidden!important}
.calcstephead{padding:14px 16px!important;background:linear-gradient(180deg,#f7f9fc 0%,#f1f5f9 100%)!important}
.calcstephead h3{font-size:18px!important}
.calcstephead p{font-size:11px!important;color:#667485!important}
.calcrowhead{font-size:10px!important;background:#f7f9fc!important;color:#667485!important}
.calcrow,.materialrow,.laborrow,.extrarow{min-height:50px!important}
.calcrow input,.calcrow select{border-radius:10px!important;background:#fff!important}
.calcsummary{position:sticky!important;top:88px!important;border-radius:18px!important}
.calctotals .gross{
  background:linear-gradient(180deg,#111827 0%,#1f2937 100%)!important;border-radius:16px!important;padding:14px!important;
}
.calctotals .gross span,.calctotals .gross b{color:#fff!important}
.rowdelete{border-radius:10px!important;border:1px solid #efc0c0!important;background:#fff5f5!important}

/* calendar polish */
.calendarbar{gap:8px!important}
#calendarGrid{gap:8px!important}
.day{min-height:110px!important;background:linear-gradient(180deg,#fff 0%,#fafbfc 100%)!important;border-radius:14px!important;border:1px solid #dbe1e8!important}
.day.today{border-color:#9eb8db!important;background:#edf4ff!important}
.event{border-radius:8px!important;background:#eef2ff!important;color:#334155!important}

/* responsive */
@media(max-width:980px){
  #projectView .positionfoldergrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .calcworkspace{grid-template-columns:1fr!important}
  .calcsummary{position:static!important}
}
@media(max-width:620px){
  #projectView .positionfoldergrid{grid-template-columns:1fr!important}
  .checks{grid-template-columns:1fr!important}
  .view>header h2{font-size:26px!important}
}


/* =========================================================
   v117 SUPER-FEINTUNING – usability first
   ========================================================= */
:root{
  --v117-bg:#eef2f6;
  --v117-surface:#ffffff;
  --v117-surface-2:#f7f9fc;
  --v117-surface-3:#f1f5f9;
  --v117-border:#d9e1e9;
  --v117-border-strong:#c8d3df;
  --v117-text:#111827;
  --v117-muted:#667485;
  --v117-accent:#2563eb;
  --v117-accent-soft:#eaf2ff;
  --v117-green:#15803d;
  --v117-red:#b42318;
  --v117-shadow:0 10px 30px rgba(15,23,42,.055);
}
html,body{background:var(--v117-bg)!important;color:var(--v117-text)!important}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;line-height:1.45!important}
main{padding:22px 24px 46px!important}

/* NAVIGATION: quieter, clearer, larger click areas */
aside{background:linear-gradient(180deg,#f2f5f8 0%,#eaf0f5 100%)!important;border-right:1px solid #d8e0e8!important;padding:14px 12px!important}
.brand{background:#fff!important;border:1px solid var(--v117-border)!important;border-radius:20px!important;box-shadow:var(--v117-shadow)!important}
.nav{gap:9px!important}.navgroup{margin:18px 0 8px 10px!important;font-size:11px!important;letter-spacing:.13em!important;font-weight:800!important;color:#7a8794!important}
.nav button{min-height:70px!important;padding:11px 12px!important;border-radius:17px!important;border:1px solid transparent!important;background:transparent!important;transition:.16s ease!important}
.nav button:hover,.nav button.on{background:#fff!important;border-color:var(--v117-border)!important;box-shadow:0 7px 20px rgba(15,23,42,.055)!important}
.navicon{width:42px!important;height:42px!important;border-radius:13px!important;background:#edf2f7!important;border:1px solid #dce4ec!important;display:grid!important;place-items:center!important}
.navtext b{font-size:16px!important;color:var(--v117-text)!important}.navtext small{font-size:11.5px!important;color:var(--v117-muted)!important}
button[data-v="knowledge"]{display:none!important}#knowledge{display:none!important}

/* TOP PATH / WORKSPACE HEADER */
.finderbar{position:sticky!important;top:10px!important;z-index:30!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(15px)!important;border:1px solid var(--v117-border)!important;border-radius:20px!important;box-shadow:0 12px 28px rgba(15,23,42,.06)!important;padding:9px 11px!important}
.finderbar button,.btn,.actions .btn,.calendarbar .btn{min-height:43px!important;padding:9px 13px!important;border-radius:13px!important;border:1px solid var(--v117-border)!important;background:#fff!important;color:var(--v117-text)!important;font-weight:700!important;box-shadow:none!important}
.finderbar button:hover,.btn:hover,.actions .btn:hover{background:#f9fbfd!important;border-color:#bcc9d6!important}
.btn.dark,.finderbar .findernew{background:#1f2937!important;border-color:#1f2937!important;color:#fff!important;box-shadow:0 7px 16px rgba(31,41,55,.15)!important}
.btn.danger{background:#fff5f5!important;border-color:#efc6c6!important;color:var(--v117-red)!important}
.workspaceheader,.view>header{margin:13px 0 17px!important;padding-bottom:13px!important;border-bottom:1px solid #dce4eb!important;align-items:flex-start!important}
.workspaceheader h2,.view>header h2{font-size:36px!important;letter-spacing:-.03em!important;color:#0f172a!important;margin:3px 0 0!important}.workspaceheader small,.view>header small,#kind,.eyebrow{font-size:11px!important;letter-spacing:.14em!important;font-weight:800!important;color:#7b8794!important}
#state{display:inline-flex!important;align-items:center!important;min-height:42px!important;border-radius:999px!important;padding:9px 12px!important;background:#f4faf6!important;border:1px solid #d7eadc!important;color:#187448!important;font-weight:700!important}

/* UNIVERSAL FORMS */
.card,.box,.projectcontext,.positionfolderbar,.backupcard,.person,.conv,.doorrow,.calcstep,.assemblycard,.sketchpadcard,.membercard{background:#fff!important;border:1px solid var(--v117-border)!important;border-radius:20px!important;box-shadow:var(--v117-shadow)!important}
.card{padding:18px!important}.section{gap:14px!important}.section h3{font-size:21px!important;letter-spacing:-.015em!important;color:#0f172a!important}.muted,.smallnote,.viewhint,.optional{color:var(--v117-muted)!important}
label{font-size:12.5px!important;font-weight:700!important;color:#374151!important;margin-bottom:6px!important}
input,select,textarea{min-height:47px!important;padding:11px 13px!important;border:1px solid #d6dfe8!important;border-radius:13px!important;background:#fbfcfd!important;color:#111827!important}
textarea{min-height:120px!important}input:focus,select:focus,textarea:focus{outline:none!important;border-color:#8db4ef!important;background:#fff!important;box-shadow:0 0 0 4px rgba(37,99,235,.09)!important}::placeholder{color:#94a3b8!important}

/* FOLDER SYSTEM – consistent and scannable */
.rootfoldergrid,#positions,#projectView .positionfoldergrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(205px,1fr))!important;gap:18px!important}
.finderfolder,#positions .finderfolder,.rootfoldergrid .finderfolder{min-height:164px!important;padding:15px!important;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)!important;border:1px solid #dbe2e9!important;border-radius:21px!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;transition:.17s ease!important}
.finderfolder:hover,#positions .finderfolder:hover{transform:translateY(-2px)!important;border-color:#c4d2df!important;box-shadow:0 14px 30px rgba(15,23,42,.085)!important}.finderfoldername{font-size:18px!important;font-weight:800!important;color:#0f172a!important}.finderfolder small{font-size:12px!important;color:#667485!important;line-height:1.4!important}.deletefolderx{width:29px!important;height:29px!important;top:9px!important;right:9px!important;background:#fff!important;border:1px solid #d6dee7!important;color:#82909e!important}.deletefolderx:hover{background:#fff0f0!important;color:#b42318!important;border-color:#e9b5b5!important}
#projectView .positionfolderhome{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}#projectView .positionfolderhome .section{padding-bottom:16px!important;margin-bottom:18px!important;border-bottom:1px solid #dce4eb!important}
#projectView .explorerfolder{position:relative!important;overflow:hidden!important;min-height:164px!important;padding:17px!important;align-items:flex-start!important;text-align:left!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;border:1px solid #dbe2ea!important;border-radius:21px!important;box-shadow:0 9px 24px rgba(15,23,42,.05)!important;transition:.17s ease!important}#projectView .explorerfolder:hover{transform:translateY(-2px)!important;border-color:#c5d2df!important;box-shadow:0 15px 32px rgba(15,23,42,.085)!important}
#projectView .explorerfolder:before{content:'';position:absolute;left:17px;right:17px;top:0;height:4px;border-radius:0 0 7px 7px;background:#dbeafe}#projectView .explorerfolder:nth-child(2):before{background:#fee2e2}#projectView .explorerfolder:nth-child(3):before{background:#dcfce7}#projectView .explorerfolder:nth-child(4):before{background:#ede9fe}#projectView .explorerfolder:nth-child(5):before{background:#fef3c7}#projectView .explorerfolder:nth-child(6):before{background:#fce7f3}#projectView .explorerfolder:nth-child(7):before{background:#fde68a}#projectView .explorerfolder:nth-child(8):before{background:#e0f2fe}#projectView .explorerfolder:nth-child(9):before{background:#e0e7ff}#projectView .explorerfolder:nth-child(10):before{background:#f3f4f6}
#projectView .explorerfolder .folderemoji{width:54px!important;height:54px!important;display:grid!important;place-items:center!important;margin:0 0 13px!important;border-radius:15px!important;background:#f2f5f9!important;border:1px solid #e1e7ee!important;font-size:27px!important}#projectView .explorerfolder span b{font-size:20px!important;line-height:1.2!important;color:#0f172a!important;margin-bottom:7px!important}#projectView .explorerfolder span small{font-size:12.5px!important;line-height:1.45!important;color:#667485!important;max-width:none!important}

/* MODULE CONTEXT */
.projectcontext,.positionfolderbar{padding:11px 13px!important;background:rgba(255,255,255,.95)!important;border-radius:17px!important}.activeworkchip{background:#f7f9fc!important;border:1px solid #dce4eb!important;border-radius:14px!important;padding:9px 11px!important}.viewhint{margin:3px 0 14px!important;padding:11px 13px!important;border-left:4px solid #91b6ef!important;background:#f7f9fc!important;border-radius:0 14px 14px 0!important;font-size:12.5px!important;line-height:1.45!important}

/* 1) PLANEN – toolbars act like a real workspace */
#planstation .card{margin-bottom:14px!important}.assemblycard{padding:17px!important}.plantools,.site-tools{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin:0 0 10px!important;padding:8px!important;background:#f6f8fb!important;border:1px solid #dfe6ed!important;border-radius:15px!important}.plantools .btn,.site-tools .btn{min-height:38px!important;padding:7px 10px!important;border-radius:10px!important;background:#fff!important}.plantools .btn.on,.site-tools .btn.on{background:#111827!important;border-color:#111827!important;color:#fff!important}.planlayout{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:14px!important}.planlist{display:grid!important;gap:8px!important}.planitem{padding:11px!important;background:#fff!important;border:1px solid #dce4eb!important;border-radius:13px!important;color:#111827!important}.planitem.on{background:#eef4ff!important;border-color:#9cb9df!important;box-shadow:0 0 0 3px rgba(37,99,235,.06)!important}.planstage,.sitepad{background:#edf2f6!important;border:1px solid #cbd5df!important;border-radius:17px!important;padding:10px!important}.sitepad{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)!important}.planstage canvas,.sitepad canvas{border-radius:10px!important;background:#fff!important;box-shadow:0 8px 24px rgba(15,23,42,.08)!important}.statuspill,.localbadge{border-radius:999px!important;padding:7px 10px!important;font-size:11.5px!important;font-weight:800!important}.localbadge{background:#eefbf3!important;border:1px solid #d6f0df!important;color:#187448!important}.statuspill{background:#f5f7fa!important;border:1px solid #dce4eb!important;color:#475569!important}

/* 2) TÜRENAUFMASS – cards and fields easier to scan */
#doormeasure .card{padding:18px!important}#doorList{display:grid!important;gap:12px!important}.doorrow{padding:16px!important;background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%)!important;border-radius:18px!important;border:1px solid #dbe2ea!important;box-shadow:0 7px 18px rgba(15,23,42,.04)!important}.doorgrid{display:grid!important;gap:9px!important}.doorgrid input,.doorgrid select,.doorgrid textarea{background:#fff!important}.dooractions{display:flex!important;gap:8px!important;justify-content:flex-end!important;margin-top:10px!important;padding-top:10px!important;border-top:1px solid #edf1f5!important}.doorsketchwrap{background:#edf2f6!important;border:1px solid #cbd5df!important;border-radius:17px!important;padding:9px!important}.doorsketchwrap canvas{background:#fff!important;border-radius:10px!important}

/* 3) KALKULATION – professional step flow */
.calcworkspace{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:16px!important;align-items:start!important}.calcmain{display:grid!important;gap:14px!important}.calcstep{overflow:hidden!important;padding:0!important}.calcstephead{display:grid!important;grid-template-columns:42px 1fr auto!important;gap:12px!important;align-items:center!important;padding:15px 16px!important;background:linear-gradient(180deg,#f8fafc,#f2f6fa)!important;border-bottom:1px solid #e3e9ef!important}.calcstephead>span{width:36px!important;height:36px!important;border-radius:11px!important;background:#111827!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:800!important}.calcstephead h3{font-size:18px!important;color:#0f172a!important;margin:0!important}.calcstephead p{font-size:11.5px!important;color:#667485!important;margin:2px 0 0!important}.calcrowhead{padding:8px 12px!important;background:#f7f9fc!important;border-bottom:1px solid #e3e9ef!important;color:#64748b!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important}.calcrow{min-height:52px!important;padding:7px 12px!important;border-bottom:1px solid #edf1f5!important}.calcrow:last-child{border-bottom:0!important}.calcrow input,.calcrow select{min-height:40px!important;padding:8px 10px!important;border-radius:10px!important;background:#fff!important}.calcsubsum{display:flex!important;justify-content:flex-end!important;gap:14px!important;padding:11px 15px!important;background:#f8fafc!important;border-top:1px solid #e3e9ef!important}.formgrid4{padding:15px!important;gap:10px!important}.calcside{position:sticky!important;top:86px!important}.calcsummary{padding:17px!important}.calctotals{display:grid!important;gap:1px!important;margin-top:10px!important}.calctotals>div{display:flex!important;justify-content:space-between!important;gap:14px!important;padding:9px 2px!important;border-bottom:1px solid #edf1f5!important}.calctotals>div span{color:#64748b!important}.calctotals>div b{color:#111827!important}.calctotals .strong{font-weight:800!important}.calctotals .net{margin-top:3px!important;padding-top:12px!important;border-top:2px solid #dce4eb!important}.calctotals .net span,.calctotals .net b{font-size:17px!important;color:#0f172a!important}.calctotals .gross{margin-top:8px!important;padding:14px!important;border-radius:15px!important;background:#111827!important;border:0!important}.calctotals .gross span,.calctotals .gross b{color:#fff!important;font-size:18px!important}.rowdelete{width:31px!important;height:31px!important;border:1px solid #efc6c6!important;border-radius:9px!important;background:#fff5f5!important;color:#b42318!important}

/* CHECKLIST / PROGRESS / MATERIAL */
.track{height:12px!important;background:#edf2f6!important;border:1px solid #dce4eb!important;border-radius:999px!important}.track i{background:linear-gradient(90deg,#4f8df8,#89b5ff)!important;border-radius:999px!important}.progress strong{font-size:32px!important;color:#0f172a!important}.checks{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;gap:11px!important}.checks label{display:flex!important;align-items:flex-start!important;gap:11px!important;padding:13px!important;border-radius:15px!important;background:#f8fafc!important;border:1px solid #dde5ed!important}.checks input[type=checkbox]{transform:scale(1.15);accent-color:#2563eb!important;margin-top:4px!important}.subgroup{padding:0!important;overflow:hidden!important}.subgroup>summary{padding:15px 17px!important;font-size:20px!important;font-weight:800!important;background:#fff!important;border-bottom:1px solid #eef2f6!important}.subcontent{padding:15px 17px 17px!important}.tabs{display:inline-flex!important;padding:4px!important;gap:4px!important;border-radius:13px!important;background:#f5f7fa!important;border:1px solid #dfe6ed!important}.tabs button{padding:9px 13px!important;border-radius:9px!important;border:0!important;background:transparent!important;font-weight:700!important;color:#475569!important}.tabs button.on{background:#111827!important;color:#fff!important}

/* CALENDAR / PHOTOS / TEAM */
.calgrid{gap:8px!important}.day{min-height:112px!important;padding:8px!important;border-radius:15px!important;border:1px solid #dce4eb!important;background:linear-gradient(180deg,#fff,#fbfcfd)!important}.day.today{background:#eef4ff!important;border-color:#a8c2e5!important}.event{font-size:10px!important;padding:5px 6px!important;border-radius:8px!important;background:#eef2ff!important;color:#334155!important}.photos{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:11px!important}.photos .photo{overflow:hidden!important;border-radius:15px!important;border:1px solid #dce4eb!important;box-shadow:0 7px 18px rgba(15,23,42,.05)!important}.phact{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:11px!important}.membercard,.person{padding:13px!important;background:#f9fbfc!important}

/* remove old CAD leftovers from daily workflow */
.cad-topbar,.cad-ribbon,.cad-commandbar,.cad-inspector{display:none!important}

/* responsive ergonomics */
@media(max-width:1120px){.calcworkspace{grid-template-columns:1fr!important}.calcside{position:static!important}.planlayout{grid-template-columns:1fr!important}}
@media(max-width:850px){.shell{display:block!important}aside{position:relative!important;height:auto!important;padding:10px!important}main{padding:14px 12px 38px!important}.nav{display:grid!important;grid-template-columns:repeat(2,1fr)!important}.navgroup{grid-column:1/-1!important}.workspaceheader h2,.view>header h2{font-size:30px!important}.rootfoldergrid,#positions,#projectView .positionfoldergrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.photos{grid-template-columns:1fr 1fr!important}}
@media(max-width:560px){.rootfoldergrid,#positions,#projectView .positionfoldergrid{grid-template-columns:1fr!important}.checks,.photos{grid-template-columns:1fr!important}.workspaceheader h2,.view>header h2{font-size:26px!important}.finderbar .finderpath{display:none!important}.doorgrid,.materialrow,.laborrow,.extrarow{grid-template-columns:1fr!important}}
