:root{
  --bg:#08080a;--panel:#101012;--panel2:#151518;--panel3:#1b1b1f;--line:#29292f;--line2:#35353c;
  --text:#f6f4ef;--muted:#92929c;--muted2:#676771;--gold:#c9a35b;--gold2:#e0bd74;--gold3:#9e7a3c;
  --danger:#da6868;--shadow:0 24px 70px rgba(0,0,0,.34);--radius:20px;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;background:radial-gradient(circle at 78% -10%,rgba(201,163,91,.07),transparent 28%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px 18px;background:rgba(11,11,13,.96);border-right:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;z-index:30;backdrop-filter:blur(22px)}
.brand{display:flex;align-items:center;gap:13px;padding:3px 7px 28px}.brand-mark{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(224,189,116,.17),rgba(201,163,91,.03));border:1px solid rgba(224,189,116,.36);box-shadow:inset 0 1px rgba(255,255,255,.05)}.brand-mark span{font-size:23px;font-weight:900;color:var(--gold2);font-style:italic}.brand-name{font-size:13px;font-weight:900;letter-spacing:.11em}.brand-sub{font-size:10px;color:var(--muted);margin-top:4px;letter-spacing:.04em}
.side-nav{display:flex;flex-direction:column;gap:5px}.nav-item{position:relative;border:1px solid transparent;background:transparent;color:#b8b8c0;border-radius:13px;min-height:47px;padding:0 13px;display:flex;align-items:center;gap:11px;text-align:left;transition:.18s}.nav-item:hover{background:#141417;color:#fff}.nav-item.active{border-color:rgba(201,163,91,.20);background:linear-gradient(100deg,rgba(201,163,91,.14),rgba(201,163,91,.035));color:#fff}.nav-item.active:before{content:"";position:absolute;left:-19px;width:3px;height:25px;border-radius:3px;background:var(--gold2);box-shadow:0 0 18px rgba(224,189,116,.55)}.nav-icon{width:24px;color:var(--gold2);font-size:18px;text-align:center}.nav-item small{margin-left:auto;color:#625d50;text-transform:uppercase;font-size:8px;letter-spacing:.12em}.nav-item.disabled{opacity:.45;cursor:not-allowed}
.side-section{margin-top:28px;padding:0 9px}.side-label{font-size:9px;letter-spacing:.16em;color:#55555e;font-weight:800;margin-bottom:14px}.workflow-mini{display:grid;grid-template-columns:28px 1fr;gap:10px 7px;font-size:10px}.workflow-mini span{color:#5e594f}.workflow-mini b{color:#7f7f88;font-weight:600}.sidebar-bottom{margin-top:auto}.user-card{border-top:1px solid rgba(255,255,255,.06);padding:18px 7px 3px;display:grid;grid-template-columns:37px 1fr 8px;align-items:center;gap:10px}.user-avatar{width:37px;height:37px;border-radius:12px;background:#18181b;border:1px solid #29292e;display:grid;place-items:center;color:var(--gold2);font-weight:800;font-size:11px}.user-card strong{display:block;font-size:11px}.user-card span{display:block;font-size:9px;color:#666671;margin-top:3px}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 12px rgba(201,163,91,.7)}
.main{width:100%;max-width:1580px;margin:0 auto;padding:31px 38px 120px}.topbar{min-height:58px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.title-wrap{display:flex;align-items:center;gap:13px}.eyebrow{color:var(--gold);font-size:9px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.topbar h1{font-size:31px;line-height:1;margin:7px 0 0;letter-spacing:-.04em}.top-actions{display:flex;gap:9px}.back-btn{width:39px;height:39px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:#fff;font-size:21px}.back-btn:hover{border-color:#47474e}
.btn{min-height:42px;padding:0 16px;border-radius:12px;border:1px solid transparent;font-weight:800;font-size:12px;transition:.18s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{transform:translateY(-1px)}.btn-primary{color:#17130d;background:linear-gradient(135deg,var(--gold2),var(--gold));box-shadow:0 8px 28px rgba(201,163,91,.09)}.btn-primary:hover{filter:brightness(1.05)}.btn-ghost{background:#131315;border-color:#2b2b30;color:#e5e5e9}.btn-ghost:hover{background:#18181c;border-color:#393940}.btn-danger{background:rgba(218,104,104,.08);border-color:rgba(218,104,104,.22);color:#e98b8b}.text-btn{background:none;border:0;color:var(--gold2);font-size:11px;font-weight:800;padding:4px}
.view{display:none}.view.active{display:block}
.dashboard-hero{position:relative;overflow:hidden;min-height:342px;border-radius:28px;border:1px solid rgba(224,189,116,.18);background:linear-gradient(125deg,#151516 0%,#101012 58%,#17140f 100%);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);box-shadow:var(--shadow)}.dashboard-hero:before{content:"";position:absolute;inset:-100px auto auto 44%;width:400px;height:400px;border-radius:50%;background:rgba(201,163,91,.07);filter:blur(40px)}.dashboard-hero:after{content:"";position:absolute;right:-20px;bottom:-60px;width:390px;height:230px;background:linear-gradient(120deg,transparent,rgba(224,189,116,.055));transform:rotate(-12deg)}.hero-copy{position:relative;z-index:2;padding:52px 48px;align-self:center}.hero-kicker{font-size:9px;letter-spacing:.19em;color:#8d8069;font-weight:900;margin-bottom:18px}.hero-kicker span{display:inline-block;width:22px;height:1px;background:var(--gold);vertical-align:middle;margin-right:7px}.hero-copy h2{font-size:48px;line-height:1.04;letter-spacing:-.055em;margin:0 0 18px;max-width:660px}.hero-copy h2 em{font-style:normal;color:var(--gold2)}.hero-copy p{max-width:630px;margin:0;color:#9d9da5;font-size:13px;line-height:1.75}.hero-actions{display:flex;gap:10px;margin-top:27px}.hero-visual{position:relative;z-index:2;display:grid;place-items:center;padding:36px}.measure-frame{position:relative;width:min(340px,90%);aspect-ratio:1.15;border:1px solid rgba(224,189,116,.35);background:linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,.005));box-shadow:inset 0 0 0 12px rgba(0,0,0,.12),0 25px 50px rgba(0,0,0,.25)}.measure-frame:before,.measure-frame:after{content:"";position:absolute;background:rgba(224,189,116,.45)}.measure-frame:before{left:-22px;right:-22px;top:-18px;height:1px}.measure-frame:after{top:-22px;bottom:-22px;right:-18px;width:1px}.measure-tag{position:absolute;z-index:3;background:#17140f;border:1px solid rgba(224,189,116,.35);color:var(--gold2);padding:6px 9px;border-radius:7px;font-size:9px;font-weight:800;letter-spacing:.06em}.measure-tag.horizontal{top:-31px;left:50%;transform:translateX(-50%)}.measure-tag.vertical{right:-46px;top:50%;transform:translateY(-50%) rotate(90deg)}.window-grid{height:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1px;background:rgba(224,189,116,.10)}.window-grid i{background:linear-gradient(155deg,rgba(255,255,255,.025),rgba(0,0,0,.18));position:relative}.window-grid i:after{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.03)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:15px 0 38px}.stat-card{min-height:104px;padding:17px 18px;border:1px solid #202025;border-radius:17px;background:linear-gradient(145deg,#111113,#0e0e10);display:flex;align-items:center;gap:14px}.stat-icon{width:38px;height:38px;border-radius:12px;background:rgba(201,163,91,.07);border:1px solid rgba(201,163,91,.16);display:grid;place-items:center;color:var(--gold2)}.stat-card span{display:block;color:#777781;font-size:10px;text-transform:uppercase;letter-spacing:.11em}.stat-card strong{display:block;font-size:25px;letter-spacing:-.04em;margin-top:5px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.65fr);gap:16px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:0 0 13px}.section-head h3,.content-intro h3{font-size:19px;margin:6px 0 0;letter-spacing:-.025em}.recent-projects{display:grid;gap:9px}.next-card{background:linear-gradient(145deg,#111113,#0d0d0f);border:1px solid #222228;border-radius:20px;padding:22px}.next-card h3{font-size:19px;margin:7px 0 10px}.next-card p{font-size:11px;line-height:1.65;color:#85858e;margin:0 0 19px}.next-list{display:grid;gap:11px;border-top:1px solid #232328;padding-top:17px}.next-list span{font-size:10px;color:#babac0;display:flex;gap:9px;align-items:center}.next-list b{width:23px;color:var(--gold);font-size:9px}.next-list .muted{color:#595961}
.toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:20px}.search-wrap{width:min(560px,100%);height:44px;background:#101012;border:1px solid #25252a;border-radius:13px;display:flex;align-items:center;gap:9px;padding:0 13px;color:#666670}.search-wrap input{width:100%;border:0;outline:0;background:transparent;color:#eee;font-size:12px}.search-wrap input::placeholder{color:#585861}.content-intro{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:14px 2px 19px;border-bottom:1px solid #1e1e22;margin-bottom:16px}.content-intro p{max-width:560px;color:#6e6e77;font-size:11px;line-height:1.6;margin:0;text-align:right}
.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-card{min-height:198px;background:linear-gradient(150deg,#121214,#0e0e10);border:1px solid #242429;border-radius:18px;padding:18px;transition:.18s}.customer-card:hover{border-color:rgba(201,163,91,.30);transform:translateY(-2px)}.customer-top{display:flex;justify-content:space-between;gap:12px}.customer-identity{display:flex;align-items:center;gap:12px;min-width:0}.avatar{flex:none;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(224,189,116,.13),rgba(201,163,91,.035));border:1px solid rgba(224,189,116,.21);color:var(--gold2);font-size:11px;font-weight:900;letter-spacing:.08em}.customer-name{font-size:15px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-meta{font-size:10px;color:#696972;margin-top:4px}.card-actions{display:flex;gap:5px}.icon-btn{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;border:1px solid #29292e;background:#151518;color:#a7a7af;font-size:15px}.icon-btn:hover{border-color:#3a3a41;color:#fff}.customer-details{display:grid;gap:7px;margin-top:18px;color:#8d8d96;font-size:10px;min-height:45px}.customer-details div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #202024;padding-top:13px;margin-top:15px}.project-count{font-size:9px;color:#66666f;text-transform:uppercase;letter-spacing:.09em}.open-link{border:0;background:none;color:var(--gold2);font-size:10px;font-weight:800}
.project-list{display:grid;gap:9px}.project-row,.recent-project-card{border:1px solid #232328;border-radius:16px;background:linear-gradient(145deg,#111113,#0e0e10);transition:.18s}.project-row:hover,.recent-project-card:hover{border-color:rgba(201,163,91,.27);background:#121214}.project-row{padding:15px 16px;display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(120px,.5fr) minmax(115px,.4fr) auto;gap:14px;align-items:center}.project-main{display:flex;align-items:center;gap:12px;min-width:0}.project-symbol{width:39px;height:39px;border:1px solid rgba(201,163,91,.15);border-radius:12px;background:rgba(201,163,91,.05);color:var(--gold2);display:grid;place-items:center}.project-name{font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-customer{font-size:9px;color:#6c6c75;margin-top:4px}.status{display:inline-flex;width:max-content;align-items:center;gap:7px;border:1px solid rgba(201,163,91,.19);background:rgba(201,163,91,.055);border-radius:999px;padding:6px 9px;color:#c4a86f;font-size:9px;font-weight:800}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--gold)}.project-date{font-size:10px;color:#707079}.project-actions{justify-content:flex-end}.open-project-btn{min-width:73px}.recent-project-card{padding:14px 15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.recent-project-card .project-symbol{width:36px;height:36px}.recent-right{text-align:right}.recent-right small{display:block;color:#62626a;font-size:9px;margin-top:5px}
.empty-state{grid-column:1/-1;border:1px dashed #2c2c32;border-radius:18px;padding:50px 20px;text-align:center;color:#64646d;background:rgba(255,255,255,.008)}.empty-state strong{display:block;color:#d8d8dc;font-size:14px;margin-bottom:7px}.empty-state p{font-size:10px;margin:0}
.project-detail-head{display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:20px;padding:28px;border:1px solid #25252a;border-radius:22px;background:linear-gradient(130deg,#141416,#0f0f11 65%,#15120e);box-shadow:var(--shadow)}.project-detail-head h2{font-size:30px;letter-spacing:-.045em;margin:7px 0 9px}.project-detail-head p{color:#777780;font-size:11px;line-height:1.65;margin:0;max-width:760px}.detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.meta-pill{padding:7px 9px;border:1px solid #29292f;border-radius:9px;background:#111113;color:#a0a0a8;font-size:9px}.detail-actions{display:flex;gap:8px;align-self:start}.workflow-bar{margin:13px 0 25px;border:1px solid #222227;border-radius:16px;background:#0f0f11;padding:13px 16px;display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.workflow-step{position:relative;min-height:37px;padding:7px 7px 7px 23px;color:#575760;font-size:9px;display:flex;align-items:center}.workflow-step:before{content:"";position:absolute;left:4px;width:8px;height:8px;border-radius:50%;border:1px solid #484850;background:#111113}.workflow-step:after{content:"";position:absolute;left:12px;right:-9px;height:1px;background:#27272c}.workflow-step:last-child:after{display:none}.workflow-step.done,.workflow-step.current{color:#cfcfd4}.workflow-step.done:before,.workflow-step.current:before{border-color:var(--gold);background:var(--gold)}.workflow-step.current:before{box-shadow:0 0 0 4px rgba(201,163,91,.11)}.workflow-step.done:after{background:rgba(201,163,91,.42)}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.55fr);gap:16px}.areas-panel,.project-side-card{border:1px solid #222227;border-radius:19px;background:#0f0f11}.areas-panel{padding:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-head h3{font-size:16px;margin:5px 0 0}.area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.area-card{position:relative;overflow:hidden;border:1px solid #26262b;border-radius:16px;background:linear-gradient(145deg,#131315,#101012);padding:16px;min-height:180px;transition:.18s}.area-card:hover{border-color:rgba(201,163,91,.30);transform:translateY(-1px)}.area-card:after{content:"";position:absolute;right:-28px;bottom:-40px;width:100px;height:100px;border:1px solid rgba(201,163,91,.06);transform:rotate(25deg)}.area-head{display:flex;justify-content:space-between;gap:10px;position:relative;z-index:2}.area-type{font-size:8px;color:#756d5d;letter-spacing:.13em;text-transform:uppercase;font-weight:900}.area-name{font-size:13px;font-weight:850;margin-top:5px}.dimension-box{position:relative;z-index:2;margin-top:18px;padding:13px;border-radius:12px;border:1px solid #242429;background:#0e0e10;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center}.dimension-box strong{display:block;font-size:15px}.dimension-box span{display:block;color:#5e5e67;font-size:8px;margin-top:3px;text-transform:uppercase}.dimension-x{color:#484850;font-size:10px}.area-tags{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.area-tag{padding:5px 7px;border-radius:7px;background:#17171a;border:1px solid #26262b;color:#777780;font-size:8px}.area-note{position:relative;z-index:2;color:#686871;font-size:9px;line-height:1.55;margin-top:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.area-footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:11px;border-top:1px solid #212125}.area-size{font-size:9px;color:var(--gold3)}.area-photo-placeholder{font-size:8px;color:#55555e}.project-side{display:grid;gap:12px;align-content:start}.project-side-card{padding:18px}.project-side-card h4{font-size:12px;margin:6px 0 13px}.info-list{display:grid;gap:11px}.info-row{display:grid;grid-template-columns:77px 1fr;gap:9px;font-size:9px}.info-row span{color:#5f5f68}.info-row b{color:#aaaab2;font-weight:600;overflow-wrap:anywhere}.note-box{background:#121214;border:1px solid #222227;border-radius:11px;padding:11px;color:#777780;font-size:9px;line-height:1.6;white-space:pre-wrap}.future-card{background:linear-gradient(145deg,rgba(201,163,91,.065),rgba(201,163,91,.018));border-color:rgba(201,163,91,.16)}.future-card .future-icon{width:38px;height:38px;border-radius:12px;border:1px solid rgba(201,163,91,.19);display:grid;place-items:center;color:var(--gold2);margin-bottom:12px}.future-card p{font-size:9px;line-height:1.6;color:#777068;margin:0}.future-card button{width:100%;margin-top:13px;opacity:.55;cursor:not-allowed}
.modal{width:min(720px,calc(100vw - 24px));max-height:88vh;overflow:auto;background:#111113;color:#fff;border:1px solid #303036;border-radius:21px;padding:0;box-shadow:0 35px 110px rgba(0,0,0,.7)}.modal::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(6px)}.modal form{padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h3{font-size:20px;margin:6px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field span{font-size:9px;color:#82828b;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.field input,.field textarea,.field select{width:100%;min-height:43px;padding:10px 11px;border-radius:11px;border:1px solid #2c2c31;background:#0c0c0e;color:#f2f2f3;outline:0;font-size:12px}.field textarea{resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:rgba(201,163,91,.60);box-shadow:0 0 0 3px rgba(201,163,91,.06)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #242429;margin-top:20px;padding-top:17px}.type-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 15px}.type-chips button{border:1px solid #2b2b30;background:#151518;color:#777780;border-radius:999px;padding:7px 10px;font-size:9px}.type-chips button.active{border-color:rgba(201,163,91,.45);background:rgba(201,163,91,.09);color:var(--gold2)}
.toast{position:fixed;right:24px;bottom:24px;z-index:100;background:#18181b;border:1px solid #333339;color:#eee;border-radius:12px;padding:11px 15px;font-size:10px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}.bottom-nav{display:none}
@media(max-width:1120px){.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{grid-template-columns:1.35fr .65fr}.hero-copy h2{font-size:42px}.dashboard-columns{grid-template-columns:1fr}.next-card{display:none}.detail-grid{grid-template-columns:1fr}.project-side{grid-template-columns:1fr 1fr}.project-row{grid-template-columns:minmax(220px,1.4fr) .55fr .45fr auto}}
@media(max-width:800px){.app-shell{display:block}.sidebar{display:none}.main{padding:18px 14px 105px}.topbar{min-height:50px;margin-bottom:18px}.topbar h1{font-size:25px}.top-actions{display:none}.dashboard-hero{min-height:440px;grid-template-columns:1fr}.hero-copy{padding:29px 24px 10px}.hero-copy h2{font-size:36px}.hero-copy p{font-size:11px}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.hero-visual{padding:26px 45px 42px}.measure-frame{width:min(270px,86%)}.stats-grid{grid-template-columns:1fr 1fr;gap:9px;margin:11px 0 28px}.stat-card{min-height:88px;padding:13px}.stat-icon{width:34px;height:34px}.stat-card strong{font-size:22px}.dashboard-columns{display:block}.section-head{align-items:center}.content-intro{display:block}.content-intro p{text-align:left;margin-top:9px}.toolbar{display:grid;grid-template-columns:1fr}.search-wrap{width:100%}.customer-grid{grid-template-columns:1fr}.project-row{grid-template-columns:1fr auto;padding:13px}.project-row>.status-wrap,.project-row>.project-date{grid-column:1}.project-row>.project-actions{grid-column:2;grid-row:1/4;display:grid}.project-detail-head{grid-template-columns:1fr;padding:21px}.project-detail-head h2{font-size:26px}.detail-actions{width:100%}.detail-actions .btn{flex:1}.workflow-bar{overflow-x:auto;grid-template-columns:repeat(6,95px);padding:12px}.area-grid{grid-template-columns:1fr}.detail-grid{display:block}.project-side{display:grid;grid-template-columns:1fr;margin-top:12px}.areas-panel{padding:14px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal form{padding:18px}.modal-actions{position:sticky;bottom:-18px;background:#111113;padding-bottom:2px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:1fr 1fr 66px 1fr 1fr;align-items:end;background:rgba(10,10,12,.94);border-top:1px solid #25252a;padding:9px 9px calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}.bottom-item{border:0;background:none;color:#6d6d76;display:grid;place-items:center;gap:4px;padding:3px}.bottom-item.active{color:var(--gold2)}.bottom-item span{font-size:17px}.bottom-item small{font-size:8px}.bottom-item.disabled{opacity:.4}.bottom-plus{width:52px;height:52px;margin-top:-26px;justify-self:center;border:0;border-radius:16px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#17130d;font-size:28px;font-weight:400;box-shadow:0 10px 28px rgba(201,163,91,.20)}.toast{left:14px;right:14px;bottom:92px;text-align:center}.back-btn{width:36px;height:36px}.recent-project-card{grid-template-columns:auto minmax(0,1fr) auto}.recent-right .status{display:none}}
@media(max-width:430px){.hero-copy h2{font-size:32px}.hero-actions{grid-template-columns:1fr}.hero-visual{padding-left:35px;padding-right:35px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{gap:9px}.stat-icon{display:none}.detail-actions{display:grid;grid-template-columns:1fr 1fr}.area-card{min-height:170px}}
/* v0.3 – Login + serverseitige Fotos */
.app-locked{filter:blur(12px);pointer-events:none;user-select:none}.login-screen{position:fixed;inset:0;z-index:200;background:radial-gradient(circle at 70% 5%,rgba(201,163,91,.12),transparent 32%),#08080a;display:grid;place-items:center;padding:20px}.login-panel{width:min(430px,100%);background:linear-gradient(145deg,#131315,#0d0d0f);border:1px solid rgba(224,189,116,.2);border-radius:25px;padding:30px;box-shadow:0 35px 100px rgba(0,0,0,.55)}.login-brand{padding:0 0 32px}.login-panel h2{font-size:34px;margin:8px 0 10px}.login-panel>p{color:#83838c;font-size:11px;line-height:1.65}.login-form{display:grid;gap:13px;margin-top:24px}.login-form .btn{margin-top:5px}.login-error{min-height:18px;margin-top:12px;color:#e68a8a;font-size:10px}.logout-mini{width:32px;height:32px;border-radius:10px;border:1px solid #29292e;background:#151518;color:#8c8c95;display:grid;place-items:center}.logout-mini:hover{color:var(--gold2);border-color:rgba(201,163,91,.3)}
.area-card-photo{min-height:360px}.photo-empty{height:128px;margin-top:15px;border:1px dashed #2a2a30;border-radius:13px;background:#0c0c0e;display:grid;place-items:center;align-content:center;gap:4px;color:#585862}.photo-empty span{font-size:24px;color:#6f6553}.photo-empty b{font-size:9px;color:#92929a}.photo-empty small{font-size:8px}.photo-strip{margin-top:15px;height:128px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:5px;position:relative}.photo-thumb{position:relative;overflow:hidden;border:1px solid #2b2b31;border-radius:9px;padding:0;background:#0c0c0e}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.2s}.photo-thumb:hover img{transform:scale(1.035)}.photo-thumb span{position:absolute;left:5px;bottom:5px;background:rgba(0,0,0,.72);border:1px solid rgba(255,255,255,.12);border-radius:5px;padding:3px 5px;color:#e9e9eb;font-size:7px}.photo-more{position:absolute;right:7px;bottom:7px;background:var(--gold);color:#15120d;border-radius:7px;padding:5px 7px;font-size:8px;font-weight:900}.photo-add-link{border:0;background:transparent;color:var(--gold2);font-size:9px;font-weight:800;padding:2px}.photo-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.photo-source{min-height:125px;border:1px solid #2a2a30;border-radius:15px;background:linear-gradient(145deg,#151517,#0e0e10);color:#ddd;display:grid;place-items:center;align-content:center;gap:5px}.photo-source:hover{border-color:rgba(201,163,91,.38)}.photo-source strong{font-size:28px;color:var(--gold2);font-weight:500}.photo-source span{font-size:11px;font-weight:800}.photo-source small{font-size:8px;color:#66666f}.photo-preview-wrap{height:260px;margin:3px 0 15px;border:1px solid #2b2b31;border-radius:14px;overflow:hidden;background:#09090b}.photo-preview-wrap img{width:100%;height:100%;object-fit:contain;display:block}.upload-note{margin-top:12px;color:#5f5f69;font-size:8px}.image-viewer{width:min(1050px,95vw);max-height:94vh;padding:0;border:1px solid #33333a;border-radius:18px;background:#08080a;box-shadow:0 35px 120px rgba(0,0,0,.7);overflow:hidden}.image-viewer::backdrop{background:rgba(0,0,0,.88);backdrop-filter:blur(8px)}.image-viewer>img{width:100%;max-height:78vh;object-fit:contain;display:block;background:#050506}.viewer-close{position:absolute;right:12px;top:12px;z-index:2;width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.72);color:#fff;font-size:22px}.viewer-meta{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#aaaab2;font-size:10px}.viewer-meta b{color:#eee}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
@media(max-width:800px){.area-card-photo{min-height:350px}.photo-source-grid{grid-template-columns:1fr}.photo-source{min-height:90px}.photo-preview-wrap{height:230px}.login-panel{padding:24px}.viewer-meta{align-items:flex-start;flex-direction:column}.viewer-meta .btn{width:100%}}


/* =========================================================
   Snake Project 0.6 – Aufmaßeditor
   ========================================================= */
.annotation-count{position:absolute;right:5px;top:5px;background:rgba(201,163,91,.92);color:#16120c;border-radius:6px;padding:3px 5px;font-size:7px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.viewer-actions{display:flex;gap:8px;align-items:center}
.measure-editor{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#09090b;color:#fff}
.measure-editor::backdrop{background:#09090b}
.editor-open{overflow:hidden}
.editor-shell{height:100vh;display:grid;grid-template-rows:auto 1fr;background:#09090b}
.editor-head{min-height:76px;padding:13px 18px;border-bottom:1px solid #29292e;background:#101012;display:flex;align-items:center;justify-content:space-between;gap:20px}
.editor-title{display:flex;align-items:baseline;gap:12px;min-width:0}
.editor-title h3{font-size:15px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
.editor-save-state{font-size:8px;color:#606069;border:1px solid #2b2b30;border-radius:999px;padding:5px 8px;white-space:nowrap}
.editor-save-state.dirty{color:var(--gold2);border-color:rgba(201,163,91,.3);background:rgba(201,163,91,.06)}
.editor-head-actions{display:flex;gap:8px}
.editor-body{min-height:0;display:grid;grid-template-columns:96px minmax(0,1fr) 220px}
.editor-tools{background:#0f0f11;border-right:1px solid #25252a;padding:12px 9px;display:flex;flex-direction:column;gap:6px;overflow:auto}
.editor-tool{min-height:58px;border:1px solid transparent;border-radius:11px;background:transparent;color:#777780;display:grid;place-items:center;align-content:center;gap:3px;padding:6px 4px}
.editor-tool b{font-size:20px;font-weight:500;line-height:1}
.editor-tool span{font-size:8px;font-weight:800}
.editor-tool:hover:not(:disabled){background:#17171a;color:#ddd}
.editor-tool.active{background:rgba(201,163,91,.10);border-color:rgba(201,163,91,.28);color:var(--gold2)}
.editor-tool:disabled{opacity:.25;cursor:not-allowed}
.editor-tool.danger-tool:not(:disabled){color:#bd6c6c}
.tool-divider{height:1px;background:#26262b;margin:4px 5px}
.editor-stage-wrap{min-width:0;min-height:0;position:relative;overflow:auto;background:
  linear-gradient(45deg,#0d0d0f 25%,transparent 25%),
  linear-gradient(-45deg,#0d0d0f 25%,transparent 25%),
  linear-gradient(45deg,transparent 75%,#0d0d0f 75%),
  linear-gradient(-45deg,transparent 75%,#0d0d0f 75%),#0a0a0c;
background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}
.editor-hint{position:sticky;top:10px;z-index:5;width:max-content;max-width:calc(100% - 28px);margin:10px auto -42px;background:rgba(12,12,14,.88);backdrop-filter:blur(8px);border:1px solid #2f2f35;color:#9a9aa3;border-radius:999px;padding:8px 12px;font-size:9px;pointer-events:none}
.editor-stage{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:58px 30px 30px}
#measureCanvas{display:block;max-width:100%;max-height:calc(100vh - 165px);width:auto;height:auto;box-shadow:0 20px 70px rgba(0,0,0,.5);touch-action:none;background:#050506;border:1px solid #2b2b30}
.editor-inspector{background:#0f0f11;border-left:1px solid #25252a;padding:19px 16px;overflow:auto}
.editor-inspector h4{font-size:13px;margin:7px 0 8px}
.editor-inspector>p{font-size:9px;color:#74747d;line-height:1.65;margin:0}
.inspector-help{margin-top:22px;border-top:1px solid #27272c;padding-top:15px;display:grid;gap:10px}
.inspector-help>b{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#777780}
.inspector-help span{display:flex;align-items:center;gap:8px;font-size:8px;color:#6d6d76}
.inspector-help i{font-style:normal;width:20px;height:20px;border-radius:6px;border:1px solid #2e2e33;display:grid;place-items:center;color:var(--gold3);font-size:8px}

@media(max-width:900px){
  .editor-body{grid-template-columns:76px minmax(0,1fr)}
  .editor-inspector{display:none}
  .editor-tools{padding-left:7px;padding-right:7px}
  .editor-tool{min-height:55px}
}
@media(max-width:650px){
  .measure-editor{height:100dvh}
  .editor-shell{height:100dvh;grid-template-rows:auto 1fr auto}
  .editor-head{min-height:66px;padding:10px 12px;align-items:center}
  .editor-title{display:block}
  .editor-title .eyebrow{display:none}
  .editor-title h3{font-size:12px;max-width:42vw;margin-bottom:4px}
  .editor-save-state{font-size:7px;padding:3px 6px}
  .editor-head-actions .btn{padding:9px 10px;font-size:9px}
  .editor-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .editor-stage-wrap{order:1;flex:1;min-height:0}
  .editor-stage{min-height:100%;padding:48px 10px 14px}
  #measureCanvas{max-height:calc(100dvh - 190px);max-width:100%}
  .editor-tools{order:2;height:82px;min-height:82px;border-right:0;border-top:1px solid #28282d;display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:7px 9px;gap:5px;background:#101012}
  .editor-tool{flex:0 0 63px;min-height:64px}
  .editor-tool b{font-size:18px}
  .tool-divider{height:48px;width:1px;margin:8px 2px;flex:0 0 1px}
  .editor-hint{top:7px;margin-top:7px;margin-bottom:-39px;font-size:8px;padding:7px 10px}
  .viewer-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .viewer-actions .btn{width:100%}
}


/* 0.6 – frei wählbare Aufmaßfarben */
.editor-stylebar{position:sticky;top:48px;z-index:7;width:max-content;max-width:calc(100% - 28px);margin:8px 14px -52px auto;background:rgba(14,14,17,.94);border:1px solid #34343a;border-radius:13px;padding:7px 9px;display:flex;align-items:center;gap:8px;box-shadow:0 10px 30px rgba(0,0,0,.32);backdrop-filter:blur(10px)}
.editor-stylebar.hidden,.style-field.hidden,.style-toggle.hidden{display:none!important}
.stylebar-title{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--gold2);padding-right:4px}
.style-field{display:flex;align-items:center;gap:5px;color:#8f8f98;font-size:8px;font-weight:800}
.style-field input[type=color]{width:28px;height:28px;padding:2px;border:1px solid #3a3a40;border-radius:8px;background:#17171a;cursor:pointer}
.style-field input[type=color]::-webkit-color-swatch-wrapper{padding:1px}.style-field input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.style-toggle{display:flex;align-items:center;gap:5px;color:#8f8f98;font-size:8px;font-weight:800;white-space:nowrap}
.style-toggle input{accent-color:var(--gold)}
@media(max-width:760px){
  .editor-stylebar{top:43px;margin:6px 8px -48px auto;max-width:calc(100% - 16px);padding:5px 7px;gap:6px;overflow-x:auto}
  .stylebar-title{display:none}.style-field span{display:none}.style-toggle span{font-size:7px}.style-field input[type=color]{width:30px;height:30px;min-width:30px}
}


/* =========================================================
   Snake Project 0.7 – Lesbarkeit + kräftigere Aufmaßlinien
   ========================================================= */
/* Kleine Informationen bewusst größer und kontrastreicher. */
.eyebrow{font-size:10.5px}
.hero-kicker{font-size:10.5px}
.hero-copy p{font-size:14px;color:#aaaab2}
.stat-card span{font-size:11px;color:#8b8b94}
.text-btn{font-size:12px}
.recent-project-card{color:var(--text)}
.project-name{font-size:14px;color:var(--text)}
.project-customer{font-size:10.5px;color:#91919a}
.status{font-size:10px}
.project-date,.recent-right small{font-size:10.5px;color:#898992}
.project-detail-head p{font-size:12.5px;color:#92929b}
.meta-pill{font-size:10.5px;color:#b0b0b8}
.workflow-step{font-size:10.5px}
.panel-head h3{font-size:17px}
.area-type{font-size:9.5px;color:#a08f70}
.area-name{font-size:14.5px}
.dimension-box strong{font-size:17px}
.dimension-box span{font-size:9.5px;color:#85858e}
.area-tag{font-size:9.5px;color:#92929a}
.area-note{font-size:10.5px;color:#85858e}
.area-size{font-size:10px}
.photo-empty b{font-size:10.5px}.photo-empty small{font-size:9.5px}
.photo-thumb span{font-size:9px}.photo-more{font-size:9.5px}.photo-add-link{font-size:10.5px}
.project-side-card h4{font-size:13.5px}.info-row{font-size:10.5px}.note-box,.future-card p{font-size:10.5px}
.viewer-meta{font-size:11px}

/* Neue Regler für Linien-/Pfeilstärke. */
.style-range{display:flex;align-items:center;gap:6px;color:#9b9ba4;font-size:8.5px;font-weight:800;white-space:nowrap}
.style-range.hidden{display:none!important}
.style-range input[type=range]{width:88px;accent-color:var(--gold);cursor:pointer}
.style-range output{min-width:30px;text-align:right;color:var(--gold2);font-variant-numeric:tabular-nums}

@media(max-width:800px){
  .main{padding:20px 18px 112px}
  .topbar h1{font-size:28px}
  .eyebrow{font-size:12px;letter-spacing:.14em}
  .hero-kicker{font-size:11px}
  .hero-copy p{font-size:14px;line-height:1.65}
  .stat-card span{font-size:12px}.stat-card strong{font-size:25px}
  .section-head h3,.content-intro h3{font-size:21px}
  .text-btn{font-size:13px}
  .project-name{font-size:16px;line-height:1.25}
  .project-customer{font-size:12px;line-height:1.45;margin-top:5px}
  .project-date,.recent-right small{font-size:11.5px}
  .status{font-size:11px;padding:7px 10px}
  .recent-project-card{padding:16px 15px;gap:13px}
  .recent-project-card .project-symbol{width:40px;height:40px}
  .project-detail-head p{font-size:14px;line-height:1.6}
  .meta-pill{font-size:12px;padding:8px 10px}
  .workflow-step{font-size:11.5px}
  .panel-head h3{font-size:19px}
  .area-type{font-size:11px}
  .area-name{font-size:16px}
  .dimension-box strong{font-size:20px}
  .dimension-box span{font-size:11px}
  .area-tag{font-size:10.5px;padding:6px 8px}
  .area-note{font-size:12px;line-height:1.55}
  .area-size,.photo-add-link{font-size:11px}
  .photo-empty b{font-size:12px}.photo-empty small{font-size:10.5px}
  .photo-thumb span{font-size:10px;padding:4px 6px}
  .project-side-card h4{font-size:15px}
  .info-row{font-size:12px;grid-template-columns:88px 1fr}
  .note-box,.future-card p{font-size:12px}
  .bottom-item small{font-size:10px}
  .bottom-item span{font-size:19px}
  .viewer-meta{font-size:12px}
}

@media(max-width:650px){
  .editor-tool span{font-size:10px}
  .editor-title h3{font-size:14px}
  .editor-save-state{font-size:9px}
  .editor-head-actions .btn{font-size:10.5px}
  .editor-hint{font-size:10px}
  .editor-stylebar{align-items:center;gap:7px}
  .style-range{font-size:9px}
  .style-range span{display:inline}
  .style-range input[type=range]{width:72px;min-width:72px}
  .style-range output{font-size:9px;min-width:28px}
}


/* =========================================================
   Snake Project 0.8 – Comfort UI / Planivo-Lesbarkeit
   Größere, ruhigere Bedienung – weiterhin Snake Design.
   ========================================================= */

/* Desktop: filigrane UI insgesamt etwas komfortabler */
.brand-name{font-size:15px}.brand-sub{font-size:11.5px}
.nav-item{min-height:52px;font-size:14px}.nav-icon{font-size:20px}.nav-item small{font-size:9px}
.side-label{font-size:10.5px}.workflow-mini{font-size:11.5px}.user-card strong{font-size:12.5px}.user-card span{font-size:10.5px}
.topbar h1{font-size:34px}.eyebrow{font-size:11.5px}
.btn{min-height:48px;padding:0 18px;font-size:14px;border-radius:13px}
.text-btn{font-size:13.5px}
.hero-kicker{font-size:11.5px}.hero-copy p{font-size:15.5px;line-height:1.7}
.stat-card{min-height:116px}.stat-card span{font-size:12.5px}.stat-card strong{font-size:30px}
.section-head h3,.content-intro h3{font-size:22px}.content-intro p{font-size:13.5px}
.search-wrap{height:50px}.search-wrap input{font-size:14.5px}
.project-name{font-size:16px}.project-customer{font-size:12px}.status{font-size:11.5px;padding:7px 11px}.project-date,.recent-right small{font-size:12px}
.recent-project-card{padding:17px 18px}.recent-project-card .project-symbol{width:42px;height:42px}
.project-detail-head h2{font-size:34px}.project-detail-head p{font-size:14.5px}.meta-pill{font-size:12px;padding:8px 11px}
.workflow-step{font-size:12px;min-height:42px}
.panel-head h3{font-size:19px}.area-type{font-size:11px}.area-name{font-size:16px}.dimension-box strong{font-size:20px}.dimension-box span{font-size:10.5px}
.area-tag{font-size:10.5px}.area-note{font-size:12px}.area-size,.photo-add-link{font-size:11.5px}
.project-side-card h4{font-size:15px}.info-row{font-size:12px}.note-box,.future-card p{font-size:12px}
.modal-head h3{font-size:24px}.field span{font-size:12px}.field input,.field textarea,.field select{min-height:50px;padding:12px 13px;font-size:15px}.type-chips button{padding:9px 13px;font-size:12px}
.photo-source span{font-size:13px}.photo-source small{font-size:10.5px}.upload-note{font-size:10.5px}
.toast{font-size:12px}

/* Handy: Größen orientieren sich stärker am angenehmen Planivo-Niveau. */
@media(max-width:800px){
  .main{padding:20px 20px 124px}
  .topbar{min-height:58px;margin-bottom:22px}.topbar h1{font-size:32px;line-height:1.05}.eyebrow{font-size:13px}

  .btn{min-height:54px;font-size:16px;padding:0 18px;border-radius:14px}
  .back-btn{width:46px;height:46px;font-size:24px;border-radius:14px}

  /* Dashboard: große Inhalte beibehalten, kleine Inhalte hochziehen */
  .hero-copy{padding:31px 26px 12px}.hero-copy h2{font-size:36px}.hero-copy p{font-size:16px;line-height:1.65}
  .hero-kicker{font-size:12px}.hero-actions{gap:12px;margin-top:28px}
  .stats-grid{gap:12px;margin-top:15px}.stat-card{min-height:112px;padding:18px;border-radius:19px}.stat-card span{font-size:14px}.stat-card strong{font-size:31px;margin-top:7px}
  .section-head{margin-bottom:16px}.section-head h3,.content-intro h3{font-size:24px}.text-btn{font-size:14px}

  /* Listen/Karten – auf Mobil nicht mehr wie Kleingedrucktes */
  .recent-project-card{min-height:92px;padding:18px 16px;gap:14px;border-radius:18px}.recent-project-card .project-symbol{width:48px;height:48px;border-radius:14px}
  .project-row{padding:17px 16px;gap:12px;border-radius:18px}
  .project-symbol{width:46px;height:46px;font-size:19px}
  .project-name{font-size:18px;line-height:1.25}.project-customer{font-size:14px;line-height:1.4;margin-top:6px}
  .project-date,.recent-right small{font-size:13px}.status{font-size:13px;padding:8px 12px}

  /* Projektübersicht */
  .project-detail-head{padding:25px 23px;border-radius:24px}.project-detail-head h2{font-size:34px;line-height:1.08;margin-top:9px}.project-detail-head p{font-size:16px;line-height:1.6}
  .detail-meta{gap:9px;margin-top:20px}.meta-pill{font-size:14px;padding:9px 12px;border-radius:11px}
  .detail-actions{gap:10px}.workflow-bar{grid-template-columns:repeat(6,120px);gap:7px;padding:14px 13px;border-radius:18px}.workflow-step{font-size:14px;min-height:46px;padding-left:27px}.workflow-step:before{width:10px;height:10px}

  .areas-panel{padding:18px;border-radius:21px}.panel-head{margin-bottom:17px}.panel-head h3{font-size:22px;line-height:1.25}
  .area-card{padding:20px;min-height:205px;border-radius:19px}.area-type{font-size:13px}.area-name{font-size:19px;margin-top:7px}
  .dimension-box{margin-top:20px;padding:16px;border-radius:14px}.dimension-box strong{font-size:24px}.dimension-box span{font-size:12.5px;margin-top:5px}.dimension-x{font-size:14px}
  .area-tags{gap:7px;margin-top:13px}.area-tag{font-size:12px;padding:7px 9px}.area-note{font-size:14px;line-height:1.55;margin-top:13px}
  .area-footer{margin-top:15px;padding-top:14px}.area-size,.photo-add-link{font-size:13px}
  .photo-empty{height:145px}.photo-empty b{font-size:14px}.photo-empty small{font-size:12px}.photo-thumb span{font-size:11.5px}.photo-more{font-size:11.5px}

  .project-side-card{padding:21px;border-radius:19px}.project-side-card h4{font-size:18px}.info-row{grid-template-columns:100px 1fr;font-size:14px;line-height:1.45}.note-box,.future-card p{font-size:14px;line-height:1.6}

  /* Formulare wie richtige App-Formulare */
  .toolbar{gap:12px}.search-wrap{height:54px;padding:0 15px;border-radius:14px}.search-wrap input{font-size:16px}
  .content-intro p{font-size:14px;line-height:1.55}
  .modal{border-radius:24px}.modal form{padding:22px}.modal-head{margin-bottom:23px}.modal-head h3{font-size:27px}
  .field{gap:9px}.field span{font-size:14px;letter-spacing:.04em}.field input,.field textarea,.field select{min-height:56px;padding:14px;font-size:17px;border-radius:13px}
  .type-chips{gap:8px}.type-chips button{font-size:14px;padding:10px 14px}
  .photo-source{min-height:108px}.photo-source strong{font-size:31px}.photo-source span{font-size:16px}.photo-source small{font-size:12px}
  .upload-note{font-size:12px;line-height:1.45}

  /* Bottom Navigation – näher an Planivo: klar, groß und aus der Entfernung lesbar */
  .bottom-nav{grid-template-columns:1fr 1fr 72px 1fr 1fr;padding:11px 9px calc(12px + env(safe-area-inset-bottom));background:rgba(9,9,11,.97)}
  .bottom-item{gap:7px;min-height:54px}.bottom-item span{font-size:25px;line-height:1}.bottom-item small{font-size:12.5px;line-height:1.1;font-weight:600}
  .bottom-plus{width:62px;height:62px;margin-top:-31px;border-radius:19px;font-size:34px;font-weight:500}

  .toast{font-size:14px;padding:14px 16px}
}

@media(max-width:430px){
  .main{padding-left:17px;padding-right:17px}
  .topbar h1{font-size:30px}
  .hero-copy h2{font-size:34px}
  .project-detail-head h2{font-size:31px}
  .bottom-item small{font-size:12px}
}

/* =========================================================
   Snake Project 0.9 – Comfort UI für den Aufmaßeditor
   Größere Werkzeuge, Texte und Bedienelemente auf PC & Handy.
   ========================================================= */
.annotation-count{right:7px;top:7px;border-radius:8px;padding:5px 7px;font-size:10px}
.editor-head{min-height:88px;padding:16px 22px;gap:24px}
.editor-title{gap:14px}
.editor-title h3{font-size:20px;line-height:1.2;max-width:52vw}
.editor-save-state{font-size:11px;padding:7px 10px}
.editor-head-actions{gap:10px}
.editor-head-actions .btn{min-height:48px;font-size:14px;padding:0 18px}
.editor-body{grid-template-columns:116px minmax(0,1fr) 270px}
.editor-tools{padding:15px 11px;gap:8px}
.editor-tool{min-height:72px;border-radius:14px;gap:6px;padding:9px 6px}
.editor-tool b{font-size:27px}
.editor-tool span{font-size:11.5px;line-height:1.15}
.tool-divider{margin:6px 7px}
.editor-hint{top:13px;margin:13px auto -49px;padding:10px 15px;font-size:12px}
.editor-stage{padding:66px 34px 34px}
#measureCanvas{max-height:calc(100vh - 185px)}
.editor-inspector{padding:24px 20px}
.editor-inspector h4{font-size:18px;margin:10px 0 10px}
.editor-inspector>p{font-size:12.5px;line-height:1.65}
.inspector-help{margin-top:27px;padding-top:19px;gap:13px}
.inspector-help>b{font-size:11px}
.inspector-help span{gap:10px;font-size:11.5px}
.inspector-help i{width:26px;height:26px;border-radius:8px;font-size:10px}
.editor-stylebar{top:57px;margin:10px 17px -62px auto;border-radius:15px;padding:10px 12px;gap:10px}
.stylebar-title{font-size:10.5px}
.style-field{gap:7px;font-size:10.5px}
.style-field input[type=color]{width:36px;height:36px;border-radius:9px}
.style-toggle{gap:7px;font-size:10.5px}
.style-toggle input{width:18px;height:18px}
.style-range{gap:8px;font-size:10.5px}
.style-range input[type=range]{width:112px}
.style-range output{font-size:10.5px;min-width:36px}

@media(max-width:900px){
  .editor-body{grid-template-columns:96px minmax(0,1fr)}
  .editor-tools{padding-left:9px;padding-right:9px}
  .editor-tool{min-height:68px}
}

@media(max-width:650px){
  .measure-editor{font-size:16px}
  .editor-head{min-height:78px;padding:11px 13px;gap:10px}
  .editor-title{min-width:0;flex:1}
  .editor-title h3{font-size:18px;max-width:44vw;margin-bottom:5px;line-height:1.2}
  .editor-save-state{display:inline-flex;font-size:11px;padding:5px 8px}
  .editor-head-actions{gap:7px}
  .editor-head-actions .btn{min-height:46px;padding:0 12px;font-size:13px;border-radius:12px}

  .editor-stage{padding:58px 10px 16px}
  #measureCanvas{max-height:calc(100dvh - 226px)}
  .editor-hint{top:8px;margin-top:8px;margin-bottom:-46px;max-width:calc(100% - 18px);font-size:12px;line-height:1.25;padding:9px 12px}

  .editor-tools{height:106px;min-height:106px;padding:9px 10px 10px;gap:7px;scrollbar-width:none}
  .editor-tools::-webkit-scrollbar{display:none}
  .editor-tool{flex:0 0 78px;min-height:84px;border-radius:14px;gap:6px;padding:8px 5px}
  .editor-tool b{font-size:25px}
  .editor-tool span{font-size:12px;line-height:1.1}
  .tool-divider{height:62px;margin:11px 3px}

  .editor-stylebar{top:52px;margin:8px 9px -58px auto;max-width:calc(100% - 18px);min-height:48px;padding:7px 9px;gap:9px;border-radius:13px;scrollbar-width:none}
  .editor-stylebar::-webkit-scrollbar{display:none}
  .stylebar-title{display:none}
  .style-field{gap:6px;font-size:11px}
  .style-field span{display:inline}
  .style-field input[type=color]{width:38px;height:38px;min-width:38px;border-radius:10px}
  .style-toggle{font-size:11px;gap:6px}
  .style-toggle span{font-size:11px}
  .style-toggle input{width:20px;height:20px}
  .style-range{font-size:11px;gap:7px}
  .style-range span{display:inline}
  .style-range input[type=range]{width:102px;min-width:102px}
  .style-range output{font-size:11px;min-width:34px}
}

@media(max-width:420px){
  .editor-title h3{font-size:17px;max-width:39vw}
  .editor-head-actions .btn{padding:0 10px;font-size:12px}
  .editor-tool{flex-basis:74px}
}


/* =========================================================
   Snake Project 0.10 – Editor Zoom, Pan & Export
   ========================================================= */
.editor-stage-wrap{overscroll-behavior:contain}
.editor-stage{box-sizing:border-box;transition:width .12s ease,height .12s ease}
#measureCanvas{max-width:none;max-height:none;flex:0 0 auto}
.editor-zoom-badge{
  position:sticky;left:14px;top:14px;z-index:8;width:max-content;
  margin:14px 0 -46px 14px;padding:8px 11px;border-radius:11px;
  background:rgba(11,11,13,.9);border:1px solid #333339;color:var(--gold2);
  font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;pointer-events:none;
  box-shadow:0 8px 24px rgba(0,0,0,.28);backdrop-filter:blur(8px)
}
.editor-tool[data-editor-tool="pan"].active{background:rgba(201,163,91,.13);border-color:rgba(201,163,91,.32);color:var(--gold2)}
#editorExport{color:#d8bd82}
#editorExport:hover{color:#f1d79c}
@media(max-width:650px){
  .editor-zoom-badge{top:8px;left:8px;margin:8px 0 -42px 8px;font-size:12px;padding:7px 10px}
}


/* =========================================================
   Snake Project 0.11 – Touch / Pinch-to-Zoom
   ========================================================= */
.editor-stage-wrap{touch-action:none;-webkit-user-select:none;user-select:none}
.editor-stage{touch-action:none}
.editor-touch-tip{display:none;position:sticky;left:12px;bottom:12px;z-index:8;width:max-content;max-width:calc(100% - 24px);margin:-42px auto 10px 12px;padding:8px 11px;border-radius:999px;background:rgba(13,13,15,.9);border:1px solid rgba(201,163,91,.28);color:#b8b8c0;font-size:10px;font-weight:800;letter-spacing:.01em;pointer-events:none;backdrop-filter:blur(8px);transition:.18s ease}
.editor-touch-tip.active{border-color:rgba(224,189,116,.72);color:var(--gold2);transform:scale(1.03)}
.touch-help{color:#aaaab3!important}
@media (pointer:coarse){.editor-touch-tip{display:block}}
@media(max-width:650px){
  .editor-touch-tip{font-size:11px;padding:9px 12px;bottom:8px;margin-left:8px;margin-bottom:8px}
  .editor-hint{max-width:calc(100% - 20px)}
}

/* =========================================================
   Snake Plan+ 0.12 – Workspace / Materialstamm
   ========================================================= */
.brand-name em{font-style:normal;color:var(--gold2)}
.side-nav-label{padding:0 12px 7px;color:#5f5f68;font-size:9px;font-weight:900;letter-spacing:.16em}
.side-nav-label.second{margin-top:18px}
.workspace-nav{gap:4px}
.workspace-nav .nav-item{min-height:44px}
.workspace-nav .nav-item small{font-size:7px}
.snake-workflow{margin-top:22px}
.menu-btn{display:none;width:43px;height:43px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:22px;line-height:1;align-items:center;justify-content:center}
.sidebar-backdrop{display:none}

.workspace-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;padding:5px 2px 26px}
.workspace-heading h2{font-size:38px;line-height:1.05;letter-spacing:-.045em;margin:7px 0 9px}
.workspace-heading p{margin:0;color:#909099;font-size:14px;line-height:1.55}
.dashboard-project-head{margin-top:2px}
.recent-project-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.recent-project-tile{padding:0;overflow:hidden;text-align:left;background:linear-gradient(145deg,#121214,#0d0d0f);border:1px solid #28282e;border-radius:20px;color:var(--text);min-width:0;transition:.2s}
.recent-project-tile:hover{transform:translateY(-2px);border-color:rgba(201,163,91,.42);box-shadow:0 20px 45px rgba(0,0,0,.24)}
.recent-cover{height:155px;background:#0c0c0e;overflow:hidden;border-bottom:1px solid #27272c}
.recent-cover img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.92) contrast(1.03)}
.recent-cover-empty{display:grid;place-items:center;align-content:center;gap:7px;color:#676770;background:radial-gradient(circle at 50% 20%,rgba(201,163,91,.08),transparent 55%),#0d0d0f}
.recent-cover-empty span{font-size:30px;color:var(--gold3)}
.recent-cover-empty small{font-size:11px}
.recent-tile-body{padding:15px 16px 16px}
.recent-tile-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.recent-tile-top small{font-size:11px;color:#83838c}
.recent-tile-body>strong{display:block;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-tile-body>span{display:block;margin-top:5px;color:#9999a2;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-tile-meta{display:flex;gap:13px;margin-top:13px;padding-top:11px;border-top:1px solid #25252a;color:#73737c;font-size:10.5px}
.compact-stats{margin-top:0;margin-bottom:20px}
.v12-columns{margin-top:0}
.quick-panel{background:linear-gradient(145deg,#111113,#0e0e10);border:1px solid #242429;border-radius:20px;padding:22px}
.quick-panel .panel-head{padding:0 0 15px;margin:0}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.quick-action{min-height:74px;border:1px solid #2a2a30;border-radius:14px;background:#151518;color:#eee;padding:12px 13px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;text-align:left}
.quick-action:hover:not(.disabled){border-color:rgba(201,163,91,.38);background:#19191c}
.quick-action>span{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--gold2);background:rgba(201,163,91,.07);border:1px solid rgba(201,163,91,.15);font-size:19px}
.quick-action b{display:block;font-size:12.5px}.quick-action small{display:block;color:#7e7e87;font-size:10px;margin-top:3px}.quick-action i{font-style:normal;color:#676770}.quick-action.disabled{opacity:.48;cursor:default}
.roadmap-card{min-height:100%}

.materials-intro{margin-bottom:14px}
.materials-summary{display:grid;grid-template-columns:repeat(3,160px);gap:10px;margin:0 0 14px}
.materials-summary>div{background:#111113;border:1px solid #26262b;border-radius:15px;padding:13px 15px}
.materials-summary span{display:block;color:#7f7f88;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.materials-summary strong{display:block;font-size:23px;margin-top:4px}
.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.material-card{background:linear-gradient(145deg,#121214,#0e0e10);border:1px solid #26262c;border-radius:18px;padding:17px;min-width:0}
.material-card:hover{border-color:rgba(201,163,91,.28)}
.material-card-head{display:grid;grid-template-columns:43px 1fr auto;gap:11px;align-items:center}
.material-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;color:var(--gold2);background:rgba(201,163,91,.07);border:1px solid rgba(201,163,91,.17);font-size:20px}
.material-title{min-width:0}.material-title span{display:block;color:#9c8a69;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.material-title strong{display:block;margin-top:4px;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.material-price-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.material-price-row>div{background:#0d0d0f;border:1px solid #232328;border-radius:12px;padding:11px}
.material-price-row span{display:block;color:#74747e;font-size:9px}.material-price-row strong{display:block;margin-top:4px;font-size:16px;color:#eee}
.material-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.material-facts span{border:1px solid #2b2b30;background:#141416;border-radius:999px;padding:5px 7px;color:#909099;font-size:9px}
.material-card p{font-size:10px;line-height:1.55;color:#808089;margin:12px 0 0;padding-top:11px;border-top:1px solid #242429}

@media(max-width:1200px){
  .recent-project-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-project-tile:nth-child(3){display:none}
  .material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .menu-btn{display:flex}
  .app-shell{display:block}
  .sidebar{display:flex!important;position:fixed;left:0;top:0;bottom:0;width:min(84vw,380px);height:100dvh;z-index:90;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 60px rgba(0,0,0,.45);padding-top:20px;overflow-y:auto}
  body.sidebar-open{overflow:hidden}
  body.sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.6);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:.2s}
  body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
  .sidebar .brand{padding-bottom:20px}.sidebar .brand-name{font-size:16px}.sidebar .brand-sub{font-size:11px}
  .workspace-nav .nav-item{min-height:52px;font-size:15px}.workspace-nav .nav-icon{font-size:20px}.side-nav-label{font-size:10px}
  .workspace-heading{display:block;padding:2px 0 21px}.workspace-heading h2{font-size:31px}.workspace-heading p{font-size:14px}.workspace-heading>.btn{display:none}
  .recent-project-showcase{display:flex;overflow-x:auto;gap:11px;margin-left:-2px;margin-right:-2px;padding:0 2px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}.recent-project-showcase::-webkit-scrollbar{display:none}
  .recent-project-tile,.recent-project-tile:nth-child(3){display:block;flex:0 0 min(82vw,340px);scroll-snap-align:start}
  .recent-cover{height:145px}.recent-tile-body>strong{font-size:17px}.recent-tile-body>span{font-size:12.5px}
  .compact-stats{grid-template-columns:1fr 1fr}
  .v12-columns{display:block}.roadmap-card{margin-top:12px}
  .quick-grid{grid-template-columns:1fr}.quick-action{min-height:78px}.quick-action b{font-size:14px}.quick-action small{font-size:11.5px}
  .materials-summary{grid-template-columns:repeat(3,1fr)}.materials-summary>div{padding:11px}.materials-summary span{font-size:9px}.materials-summary strong{font-size:20px}
  .material-grid{grid-template-columns:1fr}.material-card{padding:16px}.material-title strong{font-size:16px}.material-price-row strong{font-size:17px}.material-facts span{font-size:10.5px}
}
@media(max-width:480px){
  .recent-project-tile,.recent-project-tile:nth-child(3){flex-basis:86vw}
  .materials-summary{gap:7px}.materials-summary>div{padding:10px 8px}.materials-summary span{font-size:8px}
}

/* =========================================================
   Snake Plan+ 0.12.4 – Projektansicht / Lesbarkeit
   ========================================================= */

/* Icons generell etwas kräftiger und leichter zu treffen */
.icon-btn{width:40px;height:40px;border-radius:12px;font-size:19px}
.nav-icon{font-size:23px}
.project-symbol{font-size:21px}
.stat-icon{width:44px;height:44px;font-size:20px}

/* Aufmaßbereiche bewusst groß und bildorientiert wie die Dashboard-Projektkarten */
.area-grid{grid-template-columns:1fr;gap:16px}
.area-card{padding:20px;border-radius:20px;min-height:0}
.area-card-photo{min-height:0}
.area-head{align-items:center;margin-bottom:14px}
.area-type{font-size:12px}
.area-name{font-size:19px;margin-top:6px}

/* Fotos: 1 Foto = große Vorschau; mehrere Fotos nutzen die Fläche sinnvoll */
.photo-strip{height:220px;margin-top:0;gap:7px;border-radius:15px;overflow:hidden}
.photo-strip.photos-1{display:block}
.photo-strip.photos-1 .photo-thumb{width:100%;height:100%;border-radius:15px}
.photo-strip.photos-2{grid-template-columns:repeat(2,1fr);grid-template-rows:1fr}
.photo-strip.photos-3{grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,1fr)}
.photo-strip.photos-3 .photo-thumb:first-child{grid-row:1 / 3}
.photo-strip.photos-4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.photo-thumb{border-radius:12px}
.photo-thumb span{left:8px;bottom:8px;padding:5px 8px;border-radius:7px;font-size:11px}
.photo-more{right:10px;bottom:10px;padding:7px 10px;font-size:11px}
.photo-empty{height:190px;margin-top:0;border-radius:15px}

/* Maße sofort nachvollziehbar: Breite × Höhe = Fläche */
.dimension-box-area{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.2fr);gap:10px;padding:16px 18px;margin-top:16px}
.dimension-box-area strong{font-size:21px}
.dimension-box-area span{font-size:11px}
.dimension-op{color:#65656e;font-size:18px;font-weight:700}
.dimension-area{padding-left:10px;border-left:1px solid #2a2a30}
.dimension-area strong{color:var(--gold2)}

/* Workflow: Linie liegt jetzt oben bei den Punkten – nicht mehr durch den Text */
.workflow-bar{padding:16px 20px 13px;gap:0;overflow:visible}
.workflow-step{min-height:58px;padding:31px 6px 5px;justify-content:center;text-align:center;font-size:12px}
.workflow-step:before{top:9px;left:50%;transform:translateX(-50%);width:10px;height:10px;z-index:2}
.workflow-step:after{top:14px;left:calc(50% + 6px);right:calc(-50% + 6px);height:1px;z-index:1}
.workflow-step:last-child:after{display:none}

@media(max-width:800px){
  .icon-btn{width:46px;height:46px;font-size:22px;border-radius:14px}
  .nav-icon{font-size:26px}
  .stat-icon{width:48px;height:48px;font-size:22px}

  .workflow-bar{grid-template-columns:repeat(6,minmax(105px,1fr));padding:16px 10px 12px;overflow-x:auto}
  .workflow-step{font-size:13px;min-height:60px;padding:32px 7px 5px}
  .workflow-step:before{top:9px;width:11px;height:11px}
  .workflow-step:after{top:14.5px}

  .area-card{padding:17px}
  .area-name{font-size:20px}
  .photo-strip{height:210px}
  .photo-empty{height:180px}
  .dimension-box-area{grid-template-columns:1fr auto 1fr;gap:8px;padding:15px 12px}
  .dimension-equals{display:none}
  .dimension-area{grid-column:1 / -1!important;border-left:0;border-top:1px solid #2a2a30;padding:12px 0 0;margin-top:2px}
  .dimension-box-area strong{font-size:22px}
  .dimension-area strong{font-size:24px}
}


/* =========================================================
   Snake Plan+ 0.12.5 – SNAKE DESIGN MONO
   Schwarz / Weiß / Anthrazit als Hauptsprache,
   Gold nur noch als gezielter Akzent.
   ========================================================= */

:root{
  --bg:#050506;
  --panel:#0b0b0c;
  --panel2:#101012;
  --panel3:#151517;
  --line:#242428;
  --line2:#34343a;
  --text:#f7f7f7;
  --muted:#a0a0a6;
  --muted2:#6f6f76;
  --gold:#c9a35b;
  --gold2:#d9b86f;
  --gold3:#9a7a42;
  --shadow:0 22px 55px rgba(0,0,0,.34);
}

html,body{background:#050506}
body{
  background:#050506;
  color:#f7f7f7;
}

/* --- Branding / Sidebar: sachlicher, näher an snake-design.eu --- */
.sidebar{
  background:#070708;
  border-right:1px solid #202023;
  backdrop-filter:none;
}
.brand-mark{
  background:#0a0a0b;
  border:1px solid #3b3b40;
  box-shadow:none;
}
.brand-mark span{
  color:#fff;
}
.brand-name{
  color:#fff;
  letter-spacing:.08em;
}
.brand-name em{
  color:#fff;
  font-style:normal;
}
.brand-sub{color:#818188}

.side-nav-label,
.side-label{color:#77777f}

.nav-item{
  color:#b8b8bf;
}
.nav-item:hover{
  background:#111113;
  color:#fff;
}
.nav-item.active{
  color:#fff;
  background:#111113;
  border-color:#333338;
}
.nav-item.active:before{
  background:var(--gold);
  box-shadow:none;
}
.nav-icon{
  color:#e9e9eb;
}
.nav-item.active .nav-icon{
  color:#fff;
}
.nav-item small{color:#67676e}

.workflow-mini span{color:#83704d}
.workflow-mini b{color:#a5a5ab}
.user-avatar{
  background:#0d0d0f;
  border-color:#303035;
  color:#fff;
}
.live-dot{
  background:var(--gold);
  box-shadow:none;
}

/* --- Typografie / Gold nur als Kleinstakzent --- */
.eyebrow{
  color:var(--gold2);
}
.topbar h1,
.workspace-heading h2,
.section-head h3,
.content-intro h3,
.panel-head h3{
  color:#fff;
}
.workspace-heading p,
.content-intro p{
  color:#97979e;
}

/* --- Buttons: Weiß ist primär, Gold nicht mehr flächig --- */
.btn-primary{
  color:#09090a;
  background:#f5f5f5;
  border-color:#f5f5f5;
  box-shadow:none;
}
.btn-primary:hover{
  background:#fff;
  filter:none;
}
.btn-ghost{
  background:#09090a;
  border-color:#343439;
  color:#f4f4f4;
}
.btn-ghost:hover{
  background:#121214;
  border-color:#4a4a50;
}
.text-btn{
  color:#f0f0f1;
}
.text-btn:hover{
  color:var(--gold2);
}
.back-btn,.menu-btn,.icon-btn{
  background:#09090a;
  border-color:#303035;
  color:#fff;
}
.back-btn:hover,.menu-btn:hover,.icon-btn:hover{
  background:#121214;
  border-color:#48484e;
}

/* --- Dashboard: weniger Glow, klarere Flächen --- */
.workspace-heading{
  border-bottom-color:#232327;
}
.recent-project-showcase,
.quick-panel,
.next-card,
.roadmap-card{
  color:#fff;
}
.stat-card{
  background:#0b0b0d;
  border-color:#252529;
  box-shadow:none;
}
.stat-icon{
  background:#0d0d0f;
  border-color:#333338;
  color:#fff;
}
.stat-card span{
  color:#8d8d94;
}
.stat-card strong{
  color:#fff;
}

.recent-project-card,
.project-row{
  background:#0b0b0d;
  border-color:#252529;
}
.project-row:hover,
.recent-project-card:hover{
  background:#101012;
  border-color:#45454b;
}
.project-symbol{
  background:#0b0b0d;
  border-color:#3a3a40;
  color:#fff;
}
.status{
  background:#0d0d0f;
  border-color:#343439;
  color:#dedee2;
}
.status:before{
  background:var(--gold);
}
.recent-right small,
.project-date{
  color:#919198;
}

/* Schnellzugriff: mehr Website-Charakter */
.quick-action{
  background:#0b0b0d;
  border-color:#29292d;
  color:#fff;
}
.quick-action:hover{
  background:#111113;
  border-color:#4a4a50;
}
.quick-action>span{
  background:#0d0d0f;
  border:1px solid #333338;
  color:#fff;
}
.quick-action i{
  color:#fff;
}
.quick-action small{color:#8f8f96}
.next-card{
  background:#0b0b0d;
  border-color:#252529;
}
.next-list{
  border-top-color:#29292d;
}
.next-list b{color:var(--gold2)}

/* --- Projektansicht: fast monochrom --- */
.project-detail-head{
  background:#0b0b0d;
  border-color:#29292d;
  box-shadow:none;
}
.project-detail-head p{
  color:#9a9aa1;
}
.meta-pill{
  background:#0a0a0c;
  border-color:#303035;
  color:#c1c1c6;
}

.workflow-bar{
  background:#09090a;
  border-color:#29292d;
}
.workflow-step{
  color:#77777f;
}
.workflow-step:before{
  background:#09090a;
  border-color:#56565d;
}
.workflow-step:after{
  background:#34343a;
}
.workflow-step.done,
.workflow-step.current{
  color:#fff;
}
.workflow-step.done:before,
.workflow-step.current:before{
  background:#fff;
  border-color:#fff;
}
.workflow-step.current:before{
  box-shadow:0 0 0 4px rgba(201,163,91,.16);
  outline:1px solid var(--gold);
}
.workflow-step.done:after{
  background:#74747b;
}

.areas-panel,.project-side-card{
  background:#09090a;
  border-color:#27272b;
}
.area-card{
  background:#0c0c0e;
  border-color:#29292d;
}
.area-card:hover{
  border-color:#505057;
}
.area-card:after{
  display:none;
}
.area-type{
  color:var(--gold2);
}
.area-name{
  color:#fff;
}
.photo-strip,
.photo-empty,
.photo-preview-wrap{
  background:#050506;
}
.photo-thumb{
  border-color:#39393e;
}
.dimension-box,
.dimension-box-area{
  background:#080809;
  border-color:#2d2d31;
}
.dimension-box strong,
.dimension-box-area strong{
  color:#fff;
}
.dimension-area{
  border-color:#343439;
}
.dimension-area strong{
  color:#fff;
}
.area-tag{
  background:#0d0d0f;
  border-color:#303035;
  color:#b0b0b6;
}
.area-footer{
  border-top-color:#29292d;
}
.area-size{
  color:#fff;
}
.photo-add-link{
  color:#fff;
}
.photo-add-link:hover{
  color:var(--gold2);
}

/* --- Materialien: neutral, Preise im Fokus --- */
.materials-summary>div,
.material-card{
  background:#0b0b0d;
  border-color:#28282d;
}
.material-card:hover{
  border-color:#4a4a50;
}
.material-icon{
  background:#0c0c0e;
  border-color:#343439;
  color:#fff;
}
.material-title span{
  color:var(--gold2);
}
.material-title strong{
  color:#fff;
}
.material-price-row>div{
  background:#080809;
  border-color:#29292d;
}
.material-price-row strong{
  color:#fff;
}
.material-facts span{
  background:#0d0d0f;
  border-color:#303035;
  color:#aaaab0;
}

/* --- Forms / Dialoge --- */
.modal{
  background:#0b0b0d;
  border-color:#333338;
}
.modal form{
  background:#0b0b0d;
}
.field input,
.field textarea,
.field select{
  background:#070708;
  border-color:#333338;
  color:#fff;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color:#66666d;
  box-shadow:0 0 0 3px rgba(255,255,255,.045);
}
.type-chips button{
  background:#09090a;
  border-color:#343439;
  color:#cfcfd4;
}
.type-chips button.active{
  background:#fff;
  color:#09090a;
  border-color:#fff;
}

/* --- Login --- */
.login-screen{
  background:#050506;
}
.login-panel{
  background:#0b0b0d;
  border-color:#2f2f34;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
}

/* --- Bottom Nav: wie klare App-Navigation, nicht goldene Theme-Leiste --- */
.bottom-nav{
  background:rgba(5,5,6,.98);
  border-top-color:#29292d;
}
.bottom-item{
  color:#85858c;
}
.bottom-item.active{
  color:#fff;
}
.bottom-item.active:after{
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--gold);
  margin-top:2px;
}
.bottom-plus{
  background:#f4f4f4;
  color:#09090a;
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}

/* --- Editor selbst bleibt funktional; Gold kennzeichnet Auswahl/Griffe --- */
.editor-stylebar{
  background:rgba(8,8,9,.96);
  border-color:#3a3a40;
}
.stylebar-title{
  color:#fff;
}
.style-range output{
  color:#fff;
}

/* Gold wirklich nur noch an ausgewählten Stellen */
.measure-tag,
.photo-more{
  background:#f2f2f2;
  border-color:#f2f2f2;
  color:#09090a;
}
.measure-frame{
  border-color:#4c4c52;
}
.measure-frame:before,
.measure-frame:after{
  background:#66666d;
}

/* Mobile */
@media(max-width:800px){
  .sidebar{
    background:#070708;
  }
  .nav-item.active{
    background:#121214;
  }
  .project-detail-head,
  .area-card,
  .stat-card,
  .recent-project-card,
  .material-card{
    box-shadow:none;
  }
}


/* =========================================================
   Snake Plan+ 0.12.6
   Logo, größere Kundenansicht, Kunden-Projekt-Navigation
   ========================================================= */

.brand-mark.brand-mark-logo{
  width:48px;
  height:52px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.brand-mark.brand-mark-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:none;
}
.login-brand .brand-mark.brand-mark-logo{
  width:54px;
  height:62px;
}

/* Kunden – bewusst größer und aus normalem Abstand lesbar */
.customer-card{
  min-height:230px;
  padding:21px;
}
.customer-card-clickable{
  cursor:pointer;
}
.customer-card-clickable:hover{
  transform:translateY(-2px);
  border-color:#4b4b51;
}
.customer-name{
  font-size:20px;
  line-height:1.15;
  font-weight:900;
}
.customer-meta{
  font-size:13px;
  line-height:1.35;
  margin-top:6px;
  color:#a0a0a7;
}
.customer-details{
  font-size:12.5px;
  line-height:1.45;
  gap:9px;
  margin-top:21px;
}
.project-count{
  font-size:11px;
}
.customer-footer{
  gap:12px;
}
.customer-footer-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.customer-projects-btn{
  padding:9px 12px;
  font-size:11px;
}
.open-link{
  font-size:11px;
  color:#f0f0f1;
}
.open-link:hover{
  color:var(--gold2);
}

.project-filter-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#0b0b0d;
  border:1px solid #2b2b30;
  border-radius:16px;
  padding:15px 17px;
  margin-bottom:2px;
}
.project-filter-bar strong{
  display:block;
  color:#fff;
  margin-top:4px;
  font-size:18px;
}

/* Datalist / zusätzliche Feldhinweise */
.field-help{
  color:#7f7f87;
  font-size:10.5px;
  line-height:1.4;
  margin-top:-2px;
}

@media(max-width:800px){
  .brand-mark.brand-mark-logo{
    width:44px;
    height:49px;
  }
  .customer-card{
    min-height:220px;
    padding:19px;
  }
  .customer-name{
    font-size:20px;
  }
  .customer-meta{
    font-size:13px;
  }
  .customer-details{
    font-size:13px;
  }
  .customer-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .customer-footer-actions{
    width:100%;
    justify-content:space-between;
  }
  .customer-projects-btn{
    flex:1;
    font-size:12px;
  }
  .project-filter-bar{
    align-items:flex-start;
  }
}


/* UI-PATCH Materialdialog – keine Server-/API-Änderung */
#materialModal{width:min(760px,calc(100vw - 24px))}
#materialModal .form-grid{gap:17px 16px;align-items:start}
#materialModal .field{display:grid;grid-template-rows:auto 54px;gap:8px;align-content:start;align-self:start;min-width:0}
#materialModal .field.full{grid-column:1/-1}
#materialModal .field>span{min-height:17px;display:flex;align-items:center;font-size:12px;line-height:1;letter-spacing:.065em;color:#8f8f97}
#materialModal .field input,#materialModal .field select{width:100%;height:54px;min-height:54px;max-height:54px;margin:0;padding:0 14px;box-sizing:border-box;border-radius:12px;font-size:15px;line-height:54px}
#materialModal .material-notes-field{grid-template-rows:auto 116px}
#materialModal .material-notes-field textarea{width:100%;height:116px;min-height:116px;box-sizing:border-box;padding:14px;border-radius:12px;resize:vertical;font-size:15px;line-height:1.45}
#materialModal .material-form-info{grid-column:1/-1;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;padding:12px 14px;border:1px solid #29292e;border-radius:12px;background:#09090a;color:#8e8e95}
#materialModal .material-form-info>span{width:28px;height:28px;display:grid;place-items:center;border:1px solid #34343a;border-radius:8px;color:#d3d3d6;font-size:13px}
#materialModal .material-form-info p{margin:1px 0 0;font-size:11px;line-height:1.5}
#materialModal .material-form-info b{color:#c9c9cd;font-weight:800}
#materialModal .modal-actions .btn{min-height:48px;height:48px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
@media(max-width:800px){#materialModal .form-grid{grid-template-columns:1fr;gap:15px}#materialModal .field.full,#materialModal .material-form-info{grid-column:auto}#materialModal .field{grid-template-rows:auto 56px}#materialModal .field input,#materialModal .field select{height:56px;min-height:56px;max-height:56px;font-size:16px}#materialModal .material-notes-field{grid-template-rows:auto 120px}#materialModal .material-notes-field textarea{height:120px;min-height:120px;font-size:16px}#materialModal .modal-actions{display:grid;grid-template-columns:1fr 1fr}#materialModal .modal-actions .btn{width:100%;min-width:0}}


/* =========================================================
   Snake Plan+ 0.12.8 – Editor-Ausgabe / PDF / moderne Scrollbars
   ========================================================= */
.editor-body{
  grid-template-columns:116px minmax(0,1fr) 132px;
}
.editor-output-tools{
  background:#0b0b0d;
  border-left:1px solid #26262b;
  padding:14px 10px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
  overflow:auto;
}
.editor-output-group{display:grid;gap:8px}
.editor-output-label{
  display:block;
  padding:2px 5px 5px;
  color:#6f6f77;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.editor-output-btn{
  width:100%;
  min-height:68px;
  border:1px solid #303036;
  border-radius:14px;
  background:#111113;
  color:#f4f4f5;
  display:grid;
  place-items:center;
  align-content:center;
  gap:6px;
  padding:8px 5px;
  transition:.16s ease;
}
.editor-output-btn:hover{background:#18181b;border-color:#515157;transform:translateY(-1px)}
.editor-output-btn b{font-size:25px;line-height:1;font-weight:600}
.editor-output-btn span{font-size:10.5px;font-weight:800;line-height:1.1;text-align:center}
.editor-output-primary{background:#f4f4f4;color:#09090a;border-color:#f4f4f4}
.editor-output-primary:hover{background:#fff;border-color:#fff}
.editor-output-zoom{
  min-height:36px;
  border:1px solid #2b2b30;
  border-radius:10px;
  display:grid;
  place-items:center;
  color:#d4d4d8;
  background:#080809;
  font-size:11px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.editor-output-separator{height:1px;background:#27272c;margin:0 3px}
.editor-output-note{margin-top:auto;color:#62626a;font-size:8.5px;line-height:1.5;padding:6px 4px}

/* Der Zoom steht nun rechts; Badge auf dem Foto nur noch dezent. */
.editor-zoom-badge{opacity:.68}

/* Unaufdringliche, moderne Scrollbars im Editor. */
.editor-stage-wrap,.editor-tools,.editor-stylebar,.editor-output-tools{
  scrollbar-width:thin;
  scrollbar-color:#4b4b51 transparent;
}
.editor-stage-wrap::-webkit-scrollbar,
.editor-tools::-webkit-scrollbar,
.editor-stylebar::-webkit-scrollbar,
.editor-output-tools::-webkit-scrollbar{width:8px;height:8px}
.editor-stage-wrap::-webkit-scrollbar-track,
.editor-tools::-webkit-scrollbar-track,
.editor-stylebar::-webkit-scrollbar-track,
.editor-output-tools::-webkit-scrollbar-track{background:transparent}
.editor-stage-wrap::-webkit-scrollbar-thumb,
.editor-tools::-webkit-scrollbar-thumb,
.editor-stylebar::-webkit-scrollbar-thumb,
.editor-output-tools::-webkit-scrollbar-thumb{
  background:#414147;
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:999px;
}
.editor-stage-wrap::-webkit-scrollbar-thumb:hover,
.editor-tools::-webkit-scrollbar-thumb:hover,
.editor-stylebar::-webkit-scrollbar-thumb:hover,
.editor-output-tools::-webkit-scrollbar-thumb:hover{background:#606068;background-clip:padding-box}
.editor-stage-wrap::-webkit-scrollbar-corner{background:transparent}

@media(max-width:900px) and (min-width:651px){
  .editor-body{grid-template-columns:96px minmax(0,1fr) 112px}
  .editor-output-tools{padding:12px 8px}
  .editor-output-btn{min-height:64px}
  .editor-output-btn b{font-size:23px}
  .editor-output-btn span{font-size:10px}
}

@media(max-width:650px){
  .editor-body{display:flex;flex-direction:column}
  .editor-output-tools{
    order:0;
    flex:0 0 auto;
    width:100%;
    min-height:74px;
    padding:7px 9px;
    border-left:0;
    border-bottom:1px solid #28282d;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
  }
  .editor-output-group{display:flex;flex-direction:row;gap:7px;align-items:center}
  .editor-output-label,.editor-output-note,.editor-output-separator{display:none}
  .editor-output-btn{flex:0 0 72px;width:72px;min-height:58px;padding:6px 4px;border-radius:12px}
  .editor-output-btn b{font-size:21px}
  .editor-output-btn span{font-size:9.5px}
  .editor-output-zoom{flex:0 0 58px;width:58px;min-height:58px;border-radius:12px;font-size:10px}
  .editor-stage-wrap{order:1}
  .editor-tools{order:2}
}


/* =========================================================
   Snake Plan+ 0.13.0 – Offline & Sync
   ========================================================= */
.sync-badge{
  display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 13px;
  border:1px solid #303035;border-radius:12px;background:#09090b;color:#d9d9dd;
  font-size:12px;font-weight:800;letter-spacing:.02em;white-space:nowrap;
}
.sync-badge:hover{background:#111113;border-color:#49494f}
.sync-dot{width:8px;height:8px;border-radius:50%;background:#7d7d85;flex:0 0 auto}
.sync-badge.online .sync-dot{background:#d8b56a;box-shadow:0 0 0 3px rgba(216,181,106,.1)}
.sync-badge.offline .sync-dot{background:#a4a4ab}
.sync-badge.pending .sync-dot{background:#fff;animation:snakeSyncPulse 1.1s ease-in-out infinite}
.sync-badge.error .sync-dot{background:#d96c6c}
@keyframes snakeSyncPulse{50%{opacity:.35}}
.offline-project-btn{min-width:150px}
.offline-project-btn.is-ready{border-color:#4b4b51;color:#fff}
.offline-project-btn.is-loading{opacity:.7;pointer-events:none}
.offline-ribbon{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:70;
  display:none;align-items:center;gap:10px;background:#111114;border:1px solid #34343a;
  border-radius:14px;padding:10px 14px;box-shadow:0 15px 42px rgba(0,0,0,.35);
  font-size:12px;color:#ddd;
}
body.is-offline .offline-ribbon{display:flex}
.offline-ribbon b{color:#fff}.offline-ribbon span{color:#9b9ba2}
.photo-thumb .offline-pending-badge{
  position:absolute;right:7px;bottom:7px;z-index:3;background:#111114;border:1px solid #45454b;
  border-radius:999px;padding:4px 7px;color:#fff;font-size:9px;font-weight:900;letter-spacing:.04em;
}
.photo-thumb{position:relative}
@media(max-width:800px){
  .sync-badge{height:40px;padding:0 10px;font-size:11px;margin-left:auto}
  .topbar{gap:10px}.title-wrap{min-width:0}
  .offline-ribbon{left:12px;right:12px;bottom:86px;transform:none;justify-content:center}
}


/* =========================================================
   Snake Plan+ 0.13.0b – Dashboard Slider + Sync Polish
   ========================================================= */

.recent-head-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.recent-slider-arrows{
  display:flex;
  align-items:center;
  gap:7px;
}
.recent-slider-btn{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #303036;
  border-radius:11px;
  background:#111113;
  color:#eeeeF2;
  font-size:18px;
  cursor:pointer;
  transition:.18s ease;
}
.recent-slider-btn:hover{
  border-color:rgba(201,163,91,.45);
  background:#171719;
  transform:translateY(-1px);
}

/* Desktop and Surface: exactly like a swipe strip, with roughly 3 cards visible. */
.recent-project-showcase{
  display:flex;
  overflow-x:auto;
  gap:14px;
  padding:2px 2px 10px;
  margin-left:-2px;
  margin-right:-2px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  cursor:grab;
}
.recent-project-showcase::-webkit-scrollbar{display:none}
.recent-project-showcase.is-dragging{
  cursor:grabbing;
  user-select:none;
  scroll-snap-type:none;
}
.recent-project-tile,
.recent-project-tile:nth-child(3){
  display:block;
  flex:0 0 calc((100% - 28px)/3);
  min-width:280px;
  scroll-snap-align:start;
}
.recent-project-showcase.is-dragging .recent-project-tile{
  pointer-events:none;
}

/* Erfolgreich synchronisiert kurz zeigen und danach ruhig ausblenden.
   Offline / ausstehend / synchronisieren bleiben immer sichtbar. */
.sync-badge{
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease,border-color .18s,background .18s;
}
.sync-badge.sync-success-hidden{
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  pointer-events:none;
}

@media(max-width:1200px){
  .recent-project-showcase{
    display:flex;
    grid-template-columns:none;
  }
  .recent-project-tile,
  .recent-project-tile:nth-child(3){
    display:block;
    flex-basis:calc((100% - 14px)/2);
  }
}

@media(max-width:800px){
  .recent-slider-arrows{display:none}
  .recent-head-actions{gap:9px}
  .recent-project-showcase{cursor:auto}
  .recent-project-tile,
  .recent-project-tile:nth-child(3){
    flex:0 0 min(82vw,340px);
  }
}

@media(max-width:480px){
  .recent-project-tile,
  .recent-project-tile:nth-child(3){
    flex-basis:86vw;
  }
}


/* =========================================================
   Snake Plan+ 0.13.0c – Bereichsgruppen
   ========================================================= */

.field-help{
  display:block;
  margin-top:7px;
  color:#74747c;
  font-size:10px;
  line-height:1.45;
}

/* Projektliste: Gruppen kompakt unter dem Projekt */
.project-row-groups{
  align-items:start;
}
.project-area-overview{
  grid-column:1 / -1;
  display:grid;
  gap:7px;
  margin-top:2px;
  padding-top:11px;
  border-top:1px solid #242429;
}
.project-area-group{
  border:1px solid #29292e;
  border-radius:11px;
  background:#0b0b0d;
  overflow:hidden;
}
.project-area-group summary{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.project-area-group summary::-webkit-details-marker{display:none}
.project-area-group summary:after{
  content:"›";
  order:3;
  color:#777780;
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
}
.project-area-group[open] summary:after{
  transform:rotate(90deg);
}
.project-area-group-name{
  color:#d8d8dc;
  font-size:11.5px;
  font-weight:800;
}
.project-area-group-count{
  margin-left:auto;
  color:#777780;
  font-size:9.5px;
}
.project-area-items{
  display:grid;
  gap:5px;
  padding:0 11px 11px 16px;
  border-top:1px solid #222226;
}
.project-area-item{
  display:flex;
  align-items:center;
  gap:7px;
  padding-top:8px;
  color:#8f8f97;
  font-size:12px;
}
.project-area-item span{
  color:#5f5f67;
}
.project-area-item b{
  color:#aaaab1;
  font-weight:600;
}

/* Projektansicht: Bereichsgruppen als auf-/zuklappbare Abschnitte */
.area-groups-wrap{
  display:grid;
  gap:14px;
}
.area-group-section{
  border:1px solid #29292e;
  border-radius:17px;
  background:#0b0b0d;
  overflow:hidden;
}
.area-group-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  border-bottom:1px solid transparent;
}
.area-group-summary::-webkit-details-marker{display:none}
.area-group-section[open] .area-group-summary{
  border-bottom-color:#29292e;
}
.area-group-summary>div{
  min-width:0;
}
.area-group-summary strong{
  display:block;
  margin-top:4px;
  color:#f1f1f3;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.area-group-summary>span{
  flex:0 0 auto;
  color:#85858d;
  font-size:12px;
}
.area-group-section .area-grid{
  padding:14px;
}

@media(max-width:800px){
  .project-area-group summary{
    min-height:46px;
  }
  .project-area-group-name{
    font-size:13px;
  }
  .project-area-group-count{
    font-size:10px;
  }
  .project-area-item{
    font-size:12px;
  }
  .area-group-summary{
    padding:14px;
  }
  .area-group-summary strong{
    font-size:17px;
  }
  .area-group-section .area-grid{
    padding:12px;
  }
}


/* =========================================================
   Snake Plan+ 0.13.0d – Arbeitsbereiche in der Projektliste
   ========================================================= */

/* Die frühere Bereichsgruppen-Optik wird für eine einzige,
   einfache Arbeitsbereich-Liste verwendet. */
.project-workareas{
  border:1px solid #29292e;
  border-radius:11px;
  background:#0b0b0d;
  overflow:hidden;
}
.project-workareas summary{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.project-workareas summary::-webkit-details-marker{display:none}
.project-workareas summary:after{
  content:"›";
  order:3;
  color:#777780;
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
}
.project-workareas[open] summary:after{
  transform:rotate(90deg);
}
.project-workareas .project-area-items{
  display:grid;
  gap:6px;
  padding:0 11px 11px 14px;
  border-top:1px solid #222226;
}
.project-workareas .project-area-item{
  display:flex;
  align-items:center;
  gap:9px;
  padding-top:9px;
  color:#a7a7ae;
  font-size:12px;
}
.project-workareas .project-area-item b{
  color:#b8b8be;
  font-weight:600;
}
.workarea-dot{
  flex:0 0 6px;
  width:6px;
  height:6px;
  border-radius:1px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}

@media(max-width:800px){
  .project-workareas summary{min-height:46px}
  .project-workareas .project-area-item{font-size:12px}
  .workarea-dot{width:7px;height:7px;flex-basis:7px}
}


/* =========================================================
   Snake Plan+ 0.13.1 – Windows / Surface Live-Kamera
   ========================================================= */

.camera-live-wrap{
  margin:0 0 16px;
  padding:14px;
  border:1px solid #2e2e33;
  border-radius:16px;
  background:#08080a;
}
.camera-live-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.camera-live-head strong{
  display:block;
  margin-top:4px;
  color:#fff;
  font-size:14px;
}
.camera-video-wrap{
  position:relative;
  overflow:hidden;
  min-height:300px;
  aspect-ratio:16/10;
  border:1px solid #29292e;
  border-radius:13px;
  background:#020203;
}
.camera-video-wrap video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#020203;
}
.camera-live-state{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.58);
  color:#b0b0b6;
  font-size:13px;
  text-align:center;
}
.camera-live-actions{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:10px;
  margin-top:11px;
}
.camera-live-actions .btn{
  min-height:48px;
}

@media(max-width:800px){
  .camera-video-wrap{
    min-height:230px;
    aspect-ratio:4/3;
  }
  .camera-live-actions{
    grid-template-columns:1fr;
  }
  .camera-live-actions .btn{
    width:100%;
  }
}


/* =========================================================
   Snake Plan+ 0.14.0 – PWA / Windows-App
   ========================================================= */

.pwa-install-card{
  margin-top:12px;
}
.pwa-install-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #303036;
  border-radius:12px;
  background:#0d0d0f;
  color:#f3f3f5;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.pwa-install-btn:hover{
  border-color:rgba(216,181,106,.5);
  background:#141416;
  transform:translateY(-1px);
}
.pwa-install-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f1f1f2;
  color:#0b0b0d;
  font-size:20px;
  font-weight:900;
}
.pwa-install-btn b{
  display:block;
  font-size:11px;
  line-height:1.25;
}
.pwa-install-btn small{
  display:block;
  margin-top:3px;
  color:#777780;
  font-size:9px;
  font-weight:500;
}

/* Installed PWA: account for Windows titlebar / safe-area while retaining
   the normal app design. */
@media(display-mode:standalone){
  body{
    min-height:100vh;
    min-height:100dvh;
  }
  .topbar{
    padding-top:max(env(safe-area-inset-top),0px);
  }
}


/* =========================================================
   Snake Plan+ 0.14.1 – Navigation Cleanup
   ========================================================= */

/* Logout bewusst ganz links im Benutzerbereich. */
.user-card.user-card-logout-left{
  grid-template-columns:32px 37px minmax(0,1fr);
  gap:10px;
}

.user-card .user-info{
  min-width:0;
}

.logout-mini.logout-arrow{
  width:32px;
  height:32px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#ffffff;
  font-size:21px;
  font-weight:500;
  line-height:1;
  opacity:.9;
}

.logout-mini.logout-arrow:hover{
  color:#ffffff;
  background:#18181b;
  border-color:transparent;
  opacity:1;
  transform:translateX(-1px);
}

/* Verwaltung optisch etwas klarer vom Workspace trennen. */
.side-nav-label.second{
  margin-top:20px;
}


/* =========================================================
   Snake Plan+ 0.14.2 – Sync-Status in Sidebar
   ========================================================= */

/* Der alte Workflow-Block ist entfernt. Navigation bleibt bewusst ruhig. */
.snake-workflow{
  display:none!important;
}

/* Offline-/Sync-Status sitzt direkt über der Benutzer-Trennlinie
   und nutzt die gesamte verfügbare Breite. */
.sidebar-bottom{
  margin-top:auto;
}

.sidebar-sync-badge{
  width:100%;
  height:46px;
  justify-content:flex-start;
  padding:0 14px;
  margin:0 0 12px;
  border-radius:12px;
  box-sizing:border-box;
  text-align:left;
}

.sidebar-sync-badge #syncText{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Die Trennlinie bleibt ausschließlich am Benutzerbereich. */
.user-card.user-card-logout-left{
  border-top:1px solid rgba(255,255,255,.06);
}

/* Im Topbar ist nun kein mittiger Status mehr nötig. */
.topbar{
  align-items:center;
}

@media(max-width:800px){
  .sidebar-sync-badge{
    width:100%;
    height:46px;
    margin:0 0 12px;
    padding:0 13px;
    font-size:12px;
  }
}


/* =========================================================
   Snake Plan+ 0.14.3 – Editor-Werkzeuge neu sortiert
   ========================================================= */

/* Rechts platzierter Verschiebe-Modus zeigt seinen aktiven Zustand
   genauso eindeutig wie die Werkzeugleiste links. */
.editor-output-btn[data-editor-tool].active{
  border-color:rgba(224,189,116,.55);
  background:rgba(201,163,91,.13);
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(224,189,116,.08);
}

.editor-output-btn[data-editor-tool].active b{
  color:#e0bd74;
}

/* Undo/Redo können deaktiviert sein – rechts klar erkennbar. */
.editor-output-btn:disabled{
  opacity:.34;
  cursor:not-allowed;
  transform:none!important;
}

.editor-output-btn:disabled:hover{
  background:#111113;
  border-color:#303036;
}

/* Durch die zusätzlichen Bearbeitungsbuttons darf die rechte Leiste
   sauber scrollen, ohne den Bildbereich zu verkleinern. */
.editor-output-tools{
  overscroll-behavior:contain;
}

@media(max-width:650px){
  /* Mobil liegen Bearbeitung + Ansicht + Ausgabe weiterhin oben horizontal
     und können wie eine Werkzeugleiste geswiped werden. */
  .editor-output-tools{
    scroll-snap-type:x proximity;
  }
  .editor-output-btn,
  .editor-output-zoom{
    scroll-snap-align:start;
  }
}


/* =========================================================
   Snake Plan+ 0.15.0 – Zuschneiden / Scheiben-Werkzeug
   ========================================================= */

.editor-crop-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:8px;
  padding:4px 7px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:#111114;
  color:#f4f4f4;
  font-size:9px;
  font-weight:800;
  letter-spacing:.02em;
}
.editor-crop-status.hidden{display:none!important}

.editor-cropbar{
  position:sticky;
  top:57px;
  z-index:9;
  width:min(720px,calc(100% - 28px));
  margin:10px auto -70px;
  padding:10px 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #3a3a40;
  border-radius:14px;
  background:rgba(13,13,16,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 34px rgba(0,0,0,.38);
}
.editor-cropbar.hidden{display:none!important}
.editor-cropbar-text{
  min-width:0;
}
.editor-cropbar-text strong{
  display:block;
  color:#fff;
  font-size:11px;
  line-height:1.2;
}
.editor-cropbar-text span{
  display:block;
  margin-top:3px;
  color:#888891;
  font-size:9px;
  line-height:1.35;
}
.editor-cropbar-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.cropbar-btn{
  min-height:34px;
  padding:0 11px;
  font-size:9px;
}
.cropbar-btn.hidden{display:none!important}

.editor-tool.crop-tool.active b{
  color:#fff;
}

/* Kleiner Hinweis an Fotos, für die ein Ausschnitt gespeichert ist. */
.photo-thumb .crop-preview-badge,
.recent-cover .crop-preview-badge{
  position:absolute;
  top:7px;
  right:7px;
  z-index:4;
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:7px;
  background:rgba(10,10,12,.82);
  color:#fff;
  font-size:12px;
  font-style:normal;
  font-weight:800;
  backdrop-filter:blur(7px);
}
.recent-cover{position:relative}

/* Während des Zuschneidens soll der Canvas klar als Arbeitsfläche wirken. */
.editor-tool[data-editor-tool="crop"].active{
  border-color:rgba(255,255,255,.42);
  background:#1a1a1d;
}
.editor-tool[data-editor-tool="crop"].active b{
  color:#fff;
}

@media(max-width:650px){
  .editor-crop-status{
    margin-left:0;
    font-size:9px;
  }
  .editor-cropbar{
    top:52px;
    width:calc(100% - 18px);
    margin:8px 9px -104px;
    padding:8px;
    align-items:stretch;
    flex-direction:column;
    gap:8px;
  }
  .editor-cropbar-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1.2fr;
    gap:6px;
  }
  .cropbar-btn{
    width:100%;
    min-height:38px;
    padding:0 7px;
  }
  .editor-cropbar-text strong{font-size:12px}
  .editor-cropbar-text span{font-size:10px}
}


/* =========================================================
   Snake Plan+ 0.16.0 – Kunden-Workspace
   Design & Print | Vor Ort
   ========================================================= */

.customer-card-clickable{
  cursor:pointer;
}
.customer-card-clickable:focus-visible{
  outline:2px solid rgba(201,163,91,.55);
  outline-offset:3px;
}
.customer-footer .project-count{
  color:#777781;
}
.customer-workspace-shell{
  display:grid;
  gap:16px;
}
.customer-workspace-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 22px;
  border:1px solid #242429;
  border-radius:20px;
  background:linear-gradient(145deg,#111113,#0d0d0f);
}
.customer-workspace-identity{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.customer-workspace-avatar{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  border:1px solid rgba(201,163,91,.22);
  background:rgba(201,163,91,.06);
  color:var(--gold2);
  font-size:17px;
  font-weight:900;
  letter-spacing:.04em;
}
.customer-workspace-copy{
  min-width:0;
}
.customer-workspace-copy .eyebrow{
  margin-bottom:5px;
}
.customer-workspace-copy h2{
  margin:0;
  font-size:29px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.customer-workspace-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  margin-top:8px;
  color:#777781;
  font-size:12px;
}
.customer-workspace-meta span{
  white-space:nowrap;
}
.customer-workspace-edit{
  flex:0 0 auto;
}

.customer-workspace-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  padding:6px;
  border:1px solid #242429;
  border-radius:17px;
  background:#0b0b0d;
}
.customer-workspace-tab{
  min-height:50px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#777781;
  font:inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:12px;
  font-weight:850;
  transition:.18s ease;
}
.customer-workspace-tab:hover{
  color:#e9e9ec;
  background:#111114;
}
.customer-workspace-tab.active{
  color:#fff;
  background:#151517;
  border-color:#303036;
  box-shadow:0 7px 22px rgba(0,0,0,.18);
}
.customer-workspace-tab .tab-icon{
  color:var(--gold2);
  font-size:14px;
}
.customer-workspace-tab .tab-count{
  min-width:23px;
  height:21px;
  padding:0 7px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#0c0c0e;
  border:1px solid #2d2d32;
  color:#aaaab1;
  font-size:9px;
}

.customer-workspace-panel{
  border:1px solid #242429;
  border-radius:20px;
  background:linear-gradient(145deg,#101012,#0c0c0e);
  overflow:hidden;
}
.customer-workspace-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid #232328;
}
.customer-workspace-panel-head h3{
  margin:5px 0 0;
  font-size:20px;
  letter-spacing:-.025em;
}
.customer-workspace-panel-head p{
  max-width:600px;
  margin:7px 0 0;
  color:#74747d;
  font-size:11px;
  line-height:1.55;
}
.customer-workspace-panel-body{
  padding:16px;
}
.customer-project-list{
  display:grid;
  gap:9px;
}

.design-preview-empty{
  min-height:300px;
  display:grid;
  place-items:center;
  padding:35px 22px;
}
.design-preview-card{
  width:min(660px,100%);
  text-align:center;
  padding:30px 28px;
  border:1px dashed #313137;
  border-radius:18px;
  background:#0b0b0d;
}
.design-preview-icon{
  width:54px;
  height:54px;
  margin:0 auto 15px;
  display:grid;
  place-items:center;
  border-radius:16px;
  border:1px solid rgba(201,163,91,.23);
  background:rgba(201,163,91,.055);
  color:var(--gold2);
  font-size:22px;
}
.design-preview-card h4{
  margin:0;
  font-size:18px;
}
.design-preview-card p{
  max-width:520px;
  margin:9px auto 17px;
  color:#72727b;
  font-size:11px;
  line-height:1.6;
}
.design-preview-types{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}
.design-preview-types span{
  padding:7px 10px;
  border:1px solid #2a2a30;
  border-radius:999px;
  background:#111113;
  color:#aaaab0;
  font-size:9px;
  font-weight:750;
}
.customer-workspace-panel .project-row{
  background:#0d0d0f;
}
.customer-workspace-panel .project-row:hover{
  background:#121214;
}

@media(max-width:800px){
  .customer-workspace-head{
    align-items:flex-start;
    padding:17px;
  }
  .customer-workspace-avatar{
    width:46px;
    height:46px;
    flex-basis:46px;
    border-radius:13px;
  }
  .customer-workspace-copy h2{
    font-size:24px;
  }
  .customer-workspace-edit{
    width:40px;
    height:40px;
    padding:0;
  }
  .customer-workspace-tabs{
    gap:5px;
    padding:5px;
  }
  .customer-workspace-tab{
    min-height:48px;
    font-size:11px;
  }
  .customer-workspace-panel-head{
    display:grid;
    grid-template-columns:1fr;
    padding:17px;
  }
  .customer-workspace-panel-head .btn{
    width:100%;
  }
  .customer-workspace-panel-body{
    padding:10px;
  }
  .design-preview-empty{
    min-height:250px;
    padding:22px 8px;
  }
  .design-preview-card{
    padding:25px 17px;
  }
}


/* =========================================================
   Snake Plan+ 0.16.1 – Design & Print
   ========================================================= */

/* besser lesbarer Hauptumschalter */
.customer-workspace-tabs{
  gap:10px;
  padding:7px;
  border-color:#303036;
  background:#09090b;
}
.customer-workspace-tab{
  min-height:58px;
  border:1px solid #2c2c31;
  background:#101012;
  color:#c8c8ce;
  font-size:14px;
  font-weight:900;
  letter-spacing:-.01em;
}
.customer-workspace-tab:hover{
  color:#fff;
  border-color:#404047;
  background:#151518;
}
.customer-workspace-tab.active{
  color:#fff;
  border-color:rgba(214,176,91,.68);
  background:linear-gradient(180deg,rgba(214,176,91,.11),rgba(214,176,91,.045));
  box-shadow:inset 0 0 0 1px rgba(214,176,91,.08),0 8px 24px rgba(0,0,0,.22);
}
.customer-workspace-tab .tab-icon{
  color:#e1ba63;
  font-size:18px;
}
.customer-workspace-tab .tab-count{
  min-width:25px;
  height:23px;
  color:#f2f2f3;
  background:#09090b;
  border-color:#393940;
  font-size:10px;
  font-weight:850;
}

/* Design-Karten */
.design-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.design-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #29292f;
  border-radius:17px;
  background:#0d0d0f;
  transition:.18s ease;
}
.design-card:hover{
  border-color:#3a3a42;
  transform:translateY(-1px);
}
.design-card-preview{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#141416;
  border-bottom:1px solid #242429;
}
.design-card-preview img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.design-card-preview.placeholder{
  color:#55555f;
}
.design-card-preview.placeholder strong{
  display:block;
  color:#d3ad59;
  font-size:30px;
  text-align:center;
}
.design-card-preview.placeholder span{
  display:block;
  margin-top:7px;
  color:#777781;
  font-size:10px;
  font-weight:750;
}
.design-card-badges{
  position:absolute;
  left:10px;
  right:10px;
  top:10px;
  display:flex;
  justify-content:space-between;
  gap:7px;
  pointer-events:none;
}
.design-badge{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(8,8,10,.82);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(7px);
  color:#f3f3f4;
  font-size:9px;
  font-weight:850;
}
.design-badge.status{
  color:#e3bd68;
}
.design-card-body{
  padding:14px;
}
.design-card-title{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.25;
  font-weight:900;
}
.design-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  margin-top:7px;
  color:#85858d;
  font-size:12px;
}
.design-card-notes{
  margin:10px 0 0;
  color:#777780;
  font-size:10px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.design-card-actions{
  display:flex;
  gap:7px;
  align-items:center;
  padding:0 14px 14px;
}
.design-card-actions .btn{
  min-height:36px;
  padding:0 11px;
  font-size:12px;
}
.design-card-actions .icon-btn{
  margin-left:auto;
}

/* Dialog Vorschau */
.design-preview-field{
  display:block;
}
.design-upload-box{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px;
  border:1px solid #2a2a30;
  border-radius:13px;
  background:#0d0d0f;
}
.design-upload-preview{
  width:132px;
  height:88px;
  flex:0 0 132px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid #303037;
  border-radius:10px;
  background:#151517;
  color:#74747d;
  text-align:center;
}
.design-upload-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.design-upload-preview span{
  display:block;
  color:#d5ae58;
  font-size:21px;
}
.design-upload-preview small{
  display:block;
  margin-top:4px;
  font-size:8px;
}
.design-upload-actions{
  min-width:0;
  display:grid;
  gap:8px;
}
.design-upload-actions small{
  color:#71717a;
  font-size:9px;
  line-height:1.4;
}
.design-drive-link{
  text-decoration:none;
}

@media(max-width:1100px){
  .design-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
  .customer-workspace-tabs{gap:6px;padding:5px;}
  .customer-workspace-tab{min-height:54px;font-size:12px;}
  .design-grid{grid-template-columns:1fr;}
  .design-upload-box{align-items:flex-start;flex-direction:column;}
  .design-upload-preview{width:100%;height:150px;flex-basis:auto;}
}


/* =========================================================
   Snake Plan+ 0.16.2 – Design Detail + Medien
   ========================================================= */

.design-card{
  cursor:pointer;
}
.design-card-actions,
.design-card-actions *{
  cursor:auto;
}
.design-card-actions button,
.design-card-actions a{
  cursor:pointer;
}

.design-detail-shell{
  display:grid;
  gap:16px;
}
.design-detail-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  padding:22px;
  border:1px solid #29292f;
  border-radius:20px;
  background:linear-gradient(145deg,#111113,#0c0c0e);
}
.design-detail-kicker{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.design-detail-kicker span{
  padding:6px 9px;
  border-radius:999px;
  border:1px solid #34343a;
  background:#0b0b0d;
  color:#d7d7dc;
  font-size:9px;
  font-weight:850;
}
.design-detail-kicker .status{
  color:#e0b85e;
}
.design-detail-head h2{
  margin:0;
  font-size:30px;
  line-height:1.04;
  letter-spacing:-.04em;
}
.design-detail-customer{
  margin-top:7px;
  color:#85858e;
  font-size:11px;
}
.design-detail-info{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:15px;
}
.design-detail-info div{
  min-width:120px;
}
.design-detail-info span{
  display:block;
  color:#66666f;
  font-size:7.5px;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.design-detail-info b{
  display:block;
  margin-top:4px;
  color:#f2f2f4;
  font-size:11px;
}
.design-detail-notes{
  max-width:760px;
  margin:15px 0 0;
  color:#92929a;
  font-size:11px;
  line-height:1.6;
  white-space:pre-wrap;
}
.design-detail-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.design-media-section{
  overflow:hidden;
  border:1px solid #29292f;
  border-radius:20px;
  background:linear-gradient(145deg,#101012,#0c0c0e);
}
.design-media-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border-bottom:1px solid #242429;
}
.design-media-section-head h3{
  margin:5px 0 0;
  font-size:20px;
  letter-spacing:-.025em;
}
.design-media-section-head p{
  margin:7px 0 0;
  color:#74747d;
  font-size:12.5px;
  line-height:1.55;
}
.design-media-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:16px;
}
.design-media-card{
  overflow:hidden;
  border:1px solid #2a2a30;
  border-radius:16px;
  background:#0d0d0f;
}
.design-media-visual{
  position:relative;
  aspect-ratio:4/3;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#151517;
  border-bottom:1px solid #242429;
  cursor:pointer;
}
.design-media-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.design-media-pdf{
  display:grid;
  place-items:center;
  text-align:center;
  color:#eeeef0;
}
.design-media-pdf strong{
  font-size:34px;
  line-height:1;
}
.design-media-pdf span{
  display:block;
  margin-top:8px;
  color:#8e8e96;
  font-size:9px;
  font-weight:800;
}
.design-media-main{
  position:absolute;
  top:9px;
  left:9px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(8,8,10,.84);
  border:1px solid rgba(224,184,94,.55);
  color:#e0b85e;
  backdrop-filter:blur(6px);
  font-size:8px;
  font-weight:900;
}
.design-media-card-body{
  padding:13px;
}
.design-media-card-body strong{
  display:block;
  color:#fff;
  font-size:12.5px;
  line-height:1.25;
}
.design-media-card-meta{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  color:#777781;
  font-size:9px;
}
.design-media-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 13px 13px;
}
.design-media-card-actions .btn{
  min-height:34px;
  padding:0 9px;
  font-size:9px;
}
.design-media-icon-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #303037;
  border-radius:10px;
  background:#111113;
  color:#d4d4d9;
  cursor:pointer;
  font-size:11px;
}
.design-media-icon-btn:hover{
  border-color:#4a4a53;
  color:#fff;
}
.design-media-icon-btn.primary{
  color:#e0b85e;
}
.design-media-empty{
  margin:16px;
  padding:34px 20px;
  border:1px dashed #313138;
  border-radius:16px;
  background:#0b0b0d;
  text-align:center;
}
.design-media-empty strong{
  display:block;
  font-size:18px;
}
.design-media-empty p{
  max-width:540px;
  margin:8px auto 0;
  color:#777781;
  font-size:10.5px;
  line-height:1.55;
}

.design-media-drop{
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px;
  border:1px dashed #3a3a42;
  border-radius:13px;
  background:#0d0d0f;
}
.design-media-drop input[type="file"]{
  max-width:250px;
  color:#bbbcc2;
  font-size:12px;
}
.design-media-drop div{
  min-width:0;
}
.design-media-drop b{
  display:block;
  color:#eeeef1;
  font-size:11px;
}
.design-media-drop small{
  display:block;
  margin-top:4px;
  color:#777781;
  font-size:9px;
  line-height:1.4;
}
.design-primary-check{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid #29292f;
  border-radius:12px;
  background:#0d0d0f;
}
.design-primary-check input{
  width:16px;
  height:16px;
  accent-color:#d2aa54;
}
.design-primary-check span{
  margin:0 !important;
  color:#d3d3d8 !important;
  font-size:10px !important;
  text-transform:none !important;
  letter-spacing:0 !important;
}
.design-media-edit-hint{
  padding:11px 12px;
  border:1px solid #2b2b31;
  border-radius:12px;
  background:#0d0d0f;
  color:#85858e;
  font-size:10px;
  line-height:1.45;
}

.design-media-viewer-content{
  min-height:60vh;
  max-height:78vh;
  display:grid;
  place-items:center;
  padding:20px;
  background:#070709;
}
.design-media-viewer-content img{
  max-width:100%;
  max-height:74vh;
  object-fit:contain;
}
.design-media-viewer-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 18px;
  border-top:1px solid #27272d;
  background:#0d0d0f;
}
.design-media-viewer-bar strong{
  display:block;
  color:#fff;
  font-size:12px;
}
.design-media-viewer-bar span{
  display:block;
  margin-top:3px;
  color:#777781;
  font-size:9px;
}

@media(max-width:1050px){
  .design-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .design-detail-head{grid-template-columns:1fr;padding:17px;}
  .design-detail-head h2{font-size:25px;}
  .design-detail-actions{justify-content:flex-start;}
  .design-media-section-head{display:grid;grid-template-columns:1fr;padding:17px;}
  .design-media-section-head .btn{width:100%;}
  .design-media-grid{grid-template-columns:1fr;padding:10px;}
  .design-media-drop{align-items:flex-start;flex-direction:column;}
  .design-media-drop input[type="file"]{max-width:100%;width:100%;}
  .design-media-viewer-bar{align-items:flex-start;flex-direction:column;}
}


/* v0.16.2a – größere Design-&-Print-Typografie */
.design-card-title{font-size:16px;line-height:1.28}
.design-card-meta{font-size:12px;gap:6px 14px;margin-top:8px}
.design-card-notes{font-size:11.5px;line-height:1.55}
.design-badge{padding:6px 10px;font-size:10.5px}
.design-card-actions{gap:9px;padding:0 14px 16px}
.design-card-actions .btn{min-height:42px;padding:0 14px;font-size:12px}
.design-card-actions .icon-btn{width:42px;height:42px;font-size:18px;border-radius:12px}
.design-media-main{padding:6px 10px;font-size:9.5px}
.design-media-card-body strong{font-size:14px;line-height:1.3}
.design-media-card-meta{font-size:10.5px;gap:6px 12px}
.design-media-card-actions{gap:8px;padding:0 13px 15px}
.design-media-card-actions .btn{min-height:40px;padding:0 12px;font-size:11px}
.design-media-icon-btn{width:40px;height:40px;font-size:14px;border-radius:12px}
@media(max-width:800px){.design-card-title{font-size:17px}.design-card-meta{font-size:12.5px}.design-card-actions .btn{min-height:44px;font-size:12.5px}.design-media-card-body strong{font-size:14.5px}.design-media-card-meta{font-size:11px}.design-media-card-actions .btn{min-height:42px;font-size:11.5px}}


/* =========================================================
   Snake Plan+ v0.16.2b – Medienkarten besser lesbar
   ========================================================= */

.design-media-main{
  padding:7px 11px;
  font-size:10.5px;
  line-height:1;
}

.design-media-card-body{
  padding:15px;
}

.design-media-card-body strong{
  font-size:15.5px;
  line-height:1.3;
}

.design-media-card-meta{
  margin-top:7px;
  gap:7px 13px;
  font-size:12px;
  line-height:1.45;
  color:#9797a0;
}

.design-media-card-actions{
  gap:9px;
  padding:0 15px 16px;
  align-items:center;
}

.design-media-card-actions .btn{
  min-height:44px;
  padding:0 14px;
  border-radius:12px;
  font-size:12px;
}

.design-media-icon-btn{
  width:50px;
  height:50px;
  border-radius:12px;
  font-size:18px;
  font-weight:800;
}

@media(max-width:800px){
  .design-media-card-body strong{font-size:16px}
  .design-media-card-meta{font-size:12.5px}
  .design-media-card-actions .btn{min-height:46px;font-size:12.5px}
  .design-media-icon-btn{width:46px;height:46px;font-size:17px}
}


/* =========================================================
   Snake Plan+ v0.16.2c – einheitliche Medienkarten
   ========================================================= */

.design-media-grid{
  align-items:stretch;
}

.design-media-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Der Textblock reserviert bewusst mehrere Zeilen,
   damit kurze und lange Dateinamen die Buttons nicht verschieben. */
.design-media-card-body{
  min-height:108px;
  display:flex;
  flex-direction:column;
}

.design-media-card-body > strong{
  min-height:40px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.design-media-card-meta{
  min-height:48px;
  align-content:flex-start;
  align-items:flex-start;
}

/* Dateiname darf umbrechen, bekommt aber maximal zwei Zeilen. */
.design-media-card-meta span{
  line-height:1.45;
}

.design-media-card-meta span:nth-child(2){
  flex:1 1 100%;
  min-width:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* MB/Dateigröße bleibt sauber in der letzten Meta-Zeile. */
.design-media-card-meta span:last-child{
  white-space:nowrap;
}

.design-media-card-actions{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:0 15px 16px;
}

.design-media-main-actions,
.design-media-tool-actions{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.design-media-main-actions{
  flex-wrap:nowrap;
}

.design-media-main-actions .btn{
  flex:0 1 auto;
  min-width:0;
}

.design-media-tool-actions{
  flex-wrap:wrap;
}

/* PC: drei Hauptbuttons immer in einer sauberen Reihe */
@media(min-width:761px){
  .design-media-main-actions .btn{
    min-width:90px;
  }
}

/* Mobile: weiterhin einheitliche Höhen und klare zwei Reihen */
@media(max-width:760px){
  .design-media-card-body{
    min-height:112px;
  }

  .design-media-card-body > strong{
    min-height:42px;
  }

  .design-media-card-meta{
    min-height:50px;
  }

  .design-media-main-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
  }

  .design-media-main-actions .btn{
    width:100%;
    min-width:0;
    padding:0 8px;
  }

  .design-media-tool-actions{
    width:100%;
  }
}


/* =========================================================
   Snake Plan+ v0.16.2d – Design-Detail besser lesbar
   ========================================================= */

.design-detail-kicker{
  gap:10px;
  margin-bottom:10px;
}

.design-detail-kicker span{
  padding:8px 12px;
  font-size:11.5px;
  line-height:1;
  font-weight:900;
}

.design-detail-customer{
  margin-top:9px;
  font-size:13px;
  line-height:1.4;
  color:#9b9ba4;
}

.design-detail-info{
  gap:10px 24px;
  margin-top:18px;
}

.design-detail-info div{
  min-width:130px;
}

.design-detail-info span{
  font-size:9.5px;
  line-height:1.25;
  letter-spacing:.08em;
  color:#777780;
}

.design-detail-info b{
  margin-top:6px;
  font-size:13px;
  line-height:1.3;
}

.design-detail-notes{
  font-size:12.5px;
  line-height:1.6;
}

/* Auch die kleine Erklärung im Medienbereich etwas größer */
.design-media-section-head p{
  font-size:12px;
  line-height:1.55;
  color:#85858e;
}

@media(max-width:800px){
  .design-detail-kicker span{
    padding:8px 12px;
    font-size:12px;
  }

  .design-detail-customer{
    font-size:13.5px;
  }

  .design-detail-info{
    gap:12px 20px;
  }

  .design-detail-info span{
    font-size:10px;
  }

  .design-detail-info b{
    font-size:13.5px;
  }

  .design-media-section-head p{
    font-size:12.5px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.3 – Kundenbild / Kundenlogo
   ========================================================= */

.avatar.has-image,
.customer-workspace-avatar.has-image{
  padding:0;
  overflow:hidden;
  background:#0b0b0d;
}

.avatar.has-image img,
.customer-workspace-avatar.has-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.customer-image-field{
  display:block;
}

.customer-image-editor{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:116px;
  padding:14px;
  border:1px solid #2b2b31;
  border-radius:14px;
  background:#0d0d0f;
}

.customer-image-preview{
  width:92px;
  height:92px;
  flex:0 0 92px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(201,163,91,.24);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(224,189,116,.12),rgba(201,163,91,.035));
  color:var(--gold2);
  font-size:24px;
  font-weight:900;
  letter-spacing:.06em;
}

.customer-image-preview img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.customer-image-controls{
  min-width:0;
  display:grid;
  gap:10px;
}

.customer-image-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.customer-image-controls small{
  max-width:520px;
  color:#777781;
  font-size:12.5px;
  line-height:1.55;
}

.customer-card .avatar{
  overflow:hidden;
}

.customer-workspace-avatar{
  overflow:hidden;
}

@media(max-width:680px){
  .customer-image-editor{
    align-items:flex-start;
  }

  .customer-image-preview{
    width:78px;
    height:78px;
    flex-basis:78px;
    border-radius:17px;
  }

  .customer-image-buttons{
    display:grid;
    grid-template-columns:1fr;
  }

  .customer-image-buttons .btn{
    width:100%;
  }
}


/* =========================================================
   Snake Plan+ v0.16.3b – Größeres Kundenbild in Übersicht
   ========================================================= */
.customer-card .avatar{
  width:84px;
  height:84px;
  border-radius:22px;
  font-size:21px;
  flex:0 0 84px;
}

.customer-card .customer-identity{
  align-items:center;
  gap:16px;
}

.customer-card .customer-top{
  align-items:flex-start;
}

@media(max-width:980px){
  .customer-card .avatar{
    width:74px;
    height:74px;
    flex-basis:74px;
    border-radius:20px;
    font-size:18px;
  }
}

@media(max-width:680px){
  .customer-card .avatar{
    width:68px;
    height:68px;
    flex-basis:68px;
    border-radius:18px;
    font-size:17px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.4 – Globale Suche
   ========================================================= */

.global-search-panel{
  position:relative;
  margin:0 0 25px;
  padding:18px;
  border:1px solid #28282e;
  border-radius:19px;
  background:linear-gradient(145deg,#111113,#0c0c0e);
  box-shadow:0 12px 38px rgba(0,0,0,.12);
}

.global-search-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin-bottom:13px;
}

.global-search-head h3{
  margin:5px 0 0;
  font-size:20px;
  letter-spacing:-.025em;
}

.global-search-hint{
  color:#73737c;
  font-size:10.5px;
  text-align:right;
}

.global-search-box{
  height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 15px;
  border:1px solid #34343b;
  border-radius:15px;
  background:#09090b;
  transition:.18s ease;
}

.global-search-box:focus-within{
  border-color:rgba(214,176,91,.55);
  box-shadow:0 0 0 3px rgba(214,176,91,.055);
}

.global-search-icon{
  flex:none;
  color:#d8b15b;
  font-size:22px;
  line-height:1;
}

.global-search-box input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#f2f2f3;
  font:inherit;
  font-size:15px;
}

.global-search-box input::placeholder{
  color:#666670;
}

.global-search-clear{
  width:36px;
  height:36px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid #303036;
  border-radius:10px;
  background:#141416;
  color:#a5a5ad;
  font-size:19px;
  cursor:pointer;
}

.global-search-clear:hover{
  color:#fff;
  border-color:#45454c;
}

.global-search-results{
  margin-top:12px;
  overflow:hidden;
  border:1px solid #2b2b31;
  border-radius:15px;
  background:#0a0a0c;
}

.global-search-summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid #222227;
  color:#777781;
  font-size:12px;
}

.global-search-summary strong{
  color:#d8b15b;
  font-size:12px;
}

.global-search-group{
  padding:10px;
}

.global-search-group + .global-search-group{
  border-top:1px solid #202024;
}

.global-search-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:2px 4px 8px;
}

.global-search-group-head span{
  color:#8e8e97;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.global-search-group-head b{
  color:#606069;
  font-size:9px;
}

.global-search-list{
  display:grid;
  gap:5px;
}

.global-search-result{
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.global-search-result:hover{
  border-color:#303037;
  background:#111114;
}

.global-search-result-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid rgba(201,163,91,.18);
  border-radius:11px;
  background:rgba(201,163,91,.045);
  color:#d8b15b;
  font-size:15px;
  font-weight:900;
}

.global-search-result-copy{
  min-width:0;
}

.global-search-result-copy strong{
  display:block;
  overflow:hidden;
  color:#eeeef0;
  font-size:13px;
  font-weight:850;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.global-search-result-copy span{
  display:block;
  overflow:hidden;
  margin-top:4px;
  color:#777781;
  font-size:12.5px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.global-search-result-type{
  padding:5px 8px;
  border:1px solid #2d2d33;
  border-radius:999px;
  background:#101012;
  color:#8c8c95;
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
}

.global-search-empty{
  padding:24px 18px;
  text-align:center;
}

.global-search-empty strong{
  display:block;
  color:#d9d9dc;
  font-size:14px;
}

.global-search-empty span{
  display:block;
  margin-top:6px;
  color:#6f6f78;
  font-size:12px;
}

/* Treffer-Arbeitsbereich nach dem Sprung kurz hervorheben */
.area-card.global-search-focus{
  border-color:rgba(214,176,91,.78)!important;
  box-shadow:0 0 0 3px rgba(214,176,91,.09),0 16px 40px rgba(0,0,0,.28);
}

@media(max-width:800px){
  .global-search-panel{
    margin-bottom:20px;
    padding:14px;
    border-radius:17px;
  }

  .global-search-head{
    display:block;
    margin-bottom:11px;
  }

  .global-search-head h3{
    font-size:18px;
  }

  .global-search-hint{
    display:block;
    margin-top:7px;
    text-align:left;
    line-height:1.45;
  }

  .global-search-box{
    height:56px;
    padding:0 12px;
  }

  .global-search-box input{
    font-size:15px;
  }

  .global-search-result{
    grid-template-columns:40px minmax(0,1fr);
    min-height:62px;
  }

  .global-search-result-type{
    display:none;
  }

  .global-search-result-copy strong{
    font-size:13.5px;
  }

  .global-search-result-copy span{
    font-size:11px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.5 – Offene Arbeiten
   ========================================================= */

.open-work-panel{
  margin:0 0 27px;
  padding:18px;
  border:1px solid #29292f;
  border-radius:19px;
  background:linear-gradient(145deg,#121214,#0d0d0f);
}

.open-work-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin-bottom:14px;
}

.open-work-head h3{
  margin:5px 0 0;
  font-size:21px;
  letter-spacing:-.025em;
}

.open-work-head p{
  margin:6px 0 0;
  color:#74747d;
  font-size:12.5px;
  line-height:1.55;
}

.open-work-head-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:13px;
}

.open-work-summary{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.open-work-summary span{
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:0 10px;
  border:1px solid #303036;
  border-radius:999px;
  background:#0d0d0f;
  color:#8b8b94;
  font-size:11.5px;
  font-weight:800;
}

.open-work-summary span b{
  margin-left:5px;
  color:#dfb65d;
  font-size:12px;
}

.open-work-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.open-work-card{
  width:100%;
  min-width:0;
  min-height:84px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #29292f;
  border-radius:14px;
  background:#0d0d0f;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:.17s ease;
}

.open-work-card:hover{
  border-color:rgba(211,174,89,.38);
  background:#111113;
  transform:translateY(-1px);
}

.open-work-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border:1px solid rgba(211,174,89,.18);
  border-radius:12px;
  background:rgba(211,174,89,.05);
  color:#dbb45e;
  font-size:18px;
  font-weight:900;
}

.open-work-copy{
  min-width:0;
}

.open-work-copy strong{
  display:block;
  overflow:hidden;
  color:#f0f0f2;
  font-size:15px;
  font-weight:900;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.open-work-copy > span{
  display:block;
  overflow:hidden;
  margin-top:5px;
  color:#85858e;
  font-size:12.5px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.open-work-meta{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:6px;
}

.open-work-type,
.open-work-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border:1px solid #303037;
  border-radius:999px;
  background:#121214;
  color:#92929a;
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
}

.open-work-status{
  border-color:rgba(211,174,89,.22);
  color:#d4ad58;
}

.open-work-empty{
  grid-column:1/-1;
  padding:28px 18px;
  border:1px dashed #303037;
  border-radius:14px;
  background:#0b0b0d;
  text-align:center;
}

.open-work-empty strong{
  display:block;
  color:#d9d9dc;
  font-size:14px;
}

.open-work-empty span{
  display:block;
  margin-top:6px;
  color:#6f6f78;
  font-size:12px;
}

@media(max-width:900px){
  .open-work-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .open-work-panel{
    padding:14px;
    border-radius:17px;
  }

  .open-work-head{
    display:block;
  }

  .open-work-head-right{
    margin-top:12px;
    justify-content:space-between;
    align-items:flex-start;
  }

  .open-work-summary{
    justify-content:flex-start;
  }

  .open-work-card{
    grid-template-columns:44px minmax(0,1fr);
  }

  .open-work-meta{
    grid-column:2;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
  }
}

.recent-item-kind{display:inline-flex;align-items:center;gap:6px;color:#b6a071;font-size:10.5px;font-weight:800;letter-spacing:.02em;text-transform:none}
.recent-item-kind::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold2);opacity:.9}
@media(max-width:800px){.recent-item-kind{font-size:11px}}


/* =========================================================
   Snake Plan+ v0.16.5d – Filter für offene Arbeiten
   ========================================================= */

.open-work-summary .open-work-filter{
  appearance:none;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid #303036;
  border-radius:999px;
  background:#0d0d0f;
  color:#9a9aa3;
  font:inherit;
  font-size:11.5px;
  font-weight:850;
  cursor:pointer;
  transition:.16s ease;
}

.open-work-summary .open-work-filter b{
  margin-left:6px;
  color:#dfb65d;
  font-size:12px;
}

.open-work-summary .open-work-filter:hover{
  border-color:#4a4a51;
  color:#fff;
  background:#131315;
}

.open-work-summary .open-work-filter.active{
  border-color:rgba(218,178,90,.55);
  background:rgba(211,174,89,.10);
  color:#f2f2f3;
  box-shadow:0 0 0 2px rgba(211,174,89,.04);
}

.open-work-summary .open-work-filter.active b{
  color:#f0c66a;
}

@media(max-width:700px){
  .open-work-summary .open-work-filter{
    min-height:36px;
    padding:0 11px;
    font-size:12px;
  }

  .open-work-summary .open-work-filter b{
    font-size:12.5px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.6 – Foto-Ausschnitt → Arbeitsbereich
   ========================================================= */

.area-crop-source{
  display:grid;
  grid-template-columns:108px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin:0 0 16px;
  padding:11px;
  border:1px solid rgba(211,174,89,.25);
  border-radius:14px;
  background:rgba(211,174,89,.055);
}

.area-crop-source.hidden{
  display:none;
}

.area-crop-source-thumb{
  width:108px;
  height:72px;
  overflow:hidden;
  border:1px solid #303036;
  border-radius:10px;
  background:#09090b;
}

.area-crop-source-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.area-crop-source-copy{
  min-width:0;
}

.area-crop-source-copy strong{
  display:block;
  color:#efc66e;
  font-size:13px;
  font-weight:900;
}

.area-crop-source-copy span{
  display:block;
  margin-top:5px;
  color:#aaaab2;
  font-size:11.5px;
  line-height:1.45;
}

.editor-cropbar-actions .crop-area-btn{
  border-color:rgba(211,174,89,.33);
  color:#e5bd67;
}

.editor-cropbar-actions .crop-area-btn:not(:disabled):hover{
  border-color:rgba(211,174,89,.62);
  background:rgba(211,174,89,.09);
  color:#f4d081;
}

@media(max-width:850px){
  .editor-cropbar-actions{
    flex-wrap:wrap;
  }

  .editor-cropbar-actions .crop-area-btn{
    order:-1;
    width:100%;
  }
}

@media(max-width:600px){
  .area-crop-source{
    grid-template-columns:86px minmax(0,1fr);
  }

  .area-crop-source-thumb{
    width:86px;
    height:66px;
  }

  .area-crop-source-copy strong{
    font-size:12.5px;
  }

  .area-crop-source-copy span{
    font-size:11px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.7 – Design & Print komplett offline
   ========================================================= */

.offline-design-btn.is-loading,
.offline-project-btn.is-loading{
  opacity:.78;
  cursor:wait;
}

.offline-design-btn.is-ready,
.offline-project-btn.is-ready{
  border-color:rgba(107,190,127,.34);
  background:rgba(107,190,127,.075);
  color:#b7e4c1;
}

@media(max-width:700px){
  .design-detail-actions .offline-design-btn{
    width:100%;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – Kundennamen vollständig anzeigen
   ========================================================= */
.customer-card .customer-identity{
  flex:1 1 auto;
  min-width:0;
}

.customer-card .customer-identity > div:last-child{
  flex:1 1 auto;
  min-width:0;
}

.customer-card .customer-name{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.18;
}

.customer-card .customer-top{
  gap:14px;
}

@media(max-width:680px){
  .customer-card .customer-name{
    font-size:18px;
    line-height:1.2;
  }
}


/* v0.16.8k – Kundenaktionen unten, Name bekommt die volle Breite */
.customer-card .customer-title-copy{
  flex:1 1 auto;
  min-width:0;
}
.customer-card .customer-top{
  display:block;
}
.customer-card .customer-identity{
  width:100%;
}
.customer-card .customer-footer-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.customer-card .customer-edit-actions{
  display:flex;
  align-items:center;
  gap:5px;
}
@media(max-width:800px){
  .customer-card .customer-footer-actions{
    width:100%;
    justify-content:space-between;
  }
}


/* v0.16.8k – Kundenformular: Notizen so hoch wie normale Eingabefelder */
#customerModal #customerNotes{
  height:43px;
  min-height:43px;
  max-height:43px;
  resize:none;
  overflow-y:auto;
}


/* =========================================================
   v0.16.8k – Kundenkarten gleichmäßig + Notiz sichtbar
   ========================================================= */
.customer-card{
  display:flex;
  flex-direction:column;
  min-height:282px;
}
.customer-card .customer-top{
  min-height:54px;
}
.customer-card .customer-title-copy{
  min-width:0;
  flex:1 1 auto;
}
.customer-card .customer-name{
  white-space:normal;
  overflow:hidden;
  text-overflow:clip;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
}
.customer-card .customer-details{
  display:grid;
  grid-template-rows:repeat(4,20px);
  gap:5px;
  min-height:95px;
  margin-top:16px;
}
.customer-card .customer-detail-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-width:0;
}
.customer-card .customer-detail-row span{
  color:#66666f;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.customer-card .customer-detail-row b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#9a9aa3;
  font-size:10px;
  font-weight:600;
}
.customer-card .customer-note-row b{
  color:#b0b0b8;
}
.customer-card .customer-footer{
  margin-top:auto;
  width:100%;
}
.customer-card .customer-footer-actions{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-shrink:0;
}
.customer-card .customer-edit-actions{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:5px;
  flex-shrink:0;
}
.customer-card .customer-projects-btn{
  flex:0 0 auto;
  white-space:nowrap;
  padding:8px 10px;
}

@media(max-width:800px){
  .customer-card{
    min-height:290px;
  }
  .customer-card .customer-footer{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .customer-card .customer-footer-actions{
    width:100%;
    flex-direction:row;
    flex-wrap:nowrap;
    justify-content:flex-end;
  }
  .customer-card .customer-projects-btn{
    flex:1 1 auto;
  }
}


/* =========================================================
   v0.16.8k – Kontaktdaten auf Kundenkarten besser lesbar
   ========================================================= */
.customer-card{
  min-height:304px;
}
.customer-card .customer-details{
  grid-template-rows:repeat(4,24px);
  gap:6px;
  min-height:114px;
}
.customer-card .customer-detail-row{
  grid-template-columns:68px minmax(0,1fr);
  gap:10px;
}
.customer-card .customer-detail-row span{
  font-size:11px;
  line-height:1.2;
  letter-spacing:.055em;
  font-weight:700;
}
.customer-card .customer-detail-row b{
  font-size:13px;
  line-height:1.3;
  font-weight:600;
}
@media(max-width:800px){
  .customer-card{
    min-height:310px;
  }
}


/* v0.16.8k – mehr Luft unter der Notiz vor der Trennlinie */
.customer-card .customer-details{
  margin-bottom:12px;
}


/* =========================================================
   Snake Plan+ v0.16.8k – Richtpreiskatalog
   ========================================================= */
.price-toolbar{gap:10px}
.price-toolbar .search-wrap{flex:1 1 520px}
.price-intro{margin-bottom:18px}
.price-upgrade-hint{
  display:flex;flex-direction:column;gap:6px;margin:0 0 18px;padding:16px 18px;
  border:1px solid rgba(216,181,106,.28);background:rgba(216,181,106,.07);border-radius:14px
}
.price-upgrade-hint strong{color:#e4c274;font-size:14px}
.price-upgrade-hint span{color:#a6a6ae;font-size:12px;line-height:1.5}
.price-upgrade-hint code{color:#ddd}
.price-catalog-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);gap:18px;align-items:start}
.price-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px}
.price-section-head h4{margin:4px 0 0;font-size:18px}
.price-count{font-size:11px;color:#777780}
.price-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.price-product-card{
  width:100%;text-align:left;border:1px solid #2b2b30;background:#121214;color:#eee;border-radius:15px;
  padding:16px;cursor:pointer;transition:.16s ease;min-height:148px;display:flex;flex-direction:column;align-items:stretch
}
.price-product-card:hover{border-color:#4b4333;transform:translateY(-1px)}
.price-product-card.is-selected{border-color:#c7a14f;box-shadow:0 0 0 1px rgba(199,161,79,.16)}
.price-product-category{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#c7a14f}
.price-product-card>strong{font-size:17px;margin-top:7px;line-height:1.25}
.price-product-card>p{font-size:11px;color:#777780;line-height:1.45;margin:7px 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.price-product-card>div{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #242428;padding-top:11px}
.price-product-card>div span{font-size:10px;color:#66666f}
.price-product-card>div b{font-size:12px;color:#f2f2f4}

.price-configurator{
  position:sticky;top:18px;border:1px solid #2c2c31;background:#111113;border-radius:17px;padding:19px;min-height:270px
}
.price-config-empty{min-height:235px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#777780}
.price-config-icon{width:48px;height:48px;border:1px solid #34343a;border-radius:14px;display:grid;place-items:center;color:#d3ad5c;font-size:22px;margin-bottom:12px}
.price-config-empty strong{color:#ddd;font-size:15px}.price-config-empty p{max-width:300px;font-size:11px;line-height:1.55}
.price-config-head{border-bottom:1px solid #242428;padding-bottom:13px;margin-bottom:14px}
.price-config-head h3{font-size:22px;margin:4px 0}.price-config-head p{font-size:11px;color:#85858d;line-height:1.5;margin:6px 0 0}
.price-config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.price-config-field{display:flex;flex-direction:column;gap:6px}
.price-config-field span{font-size:9px;color:#777780;text-transform:uppercase;letter-spacing:.07em;font-weight:700}
.price-config-field select{width:100%;height:42px;background:#171719;color:#eee;border:1px solid #303035;border-radius:10px;padding:0 11px}
.price-config-field select:disabled{opacity:.42}

.price-result-card{border:1px solid rgba(199,161,79,.33);background:linear-gradient(145deg,rgba(199,161,79,.08),rgba(18,18,20,.92));border-radius:14px;padding:16px}
.price-result-card>strong{display:block;font-size:27px;line-height:1.1;margin:7px 0 11px;color:#fff}
.price-result-meta,.price-result-badges{display:flex;flex-wrap:wrap;gap:6px}
.price-result-meta span,.price-result-badges span{font-size:9px;border:1px solid #34343a;border-radius:999px;padding:5px 8px;color:#aaa}
.price-result-badges{margin-top:8px}.price-result-badges .price-design-included{color:#d6ba78;border-color:rgba(214,186,120,.35)}
.price-result-badges .price-design-open{color:#7d7d85}
.price-result-card p{font-size:11px;color:#aaa;line-height:1.5;margin:12px 0 8px}
.price-result-card small{font-size:9px;color:#62626a}
.price-result-placeholder{border:1px dashed #323237;border-radius:13px;padding:20px;text-align:center;display:flex;flex-direction:column;gap:6px}
.price-result-placeholder strong{font-size:13px}.price-result-placeholder span{font-size:10px;color:#707078;line-height:1.45}

.price-manage-head{margin-bottom:14px}
.price-manage-head h3{margin:5px 0 4px}.price-manage-head p{margin:0;color:#777780;font-size:11px}
.price-manage-list{display:flex;flex-direction:column;gap:12px}
.price-manage-product{border:1px solid #29292e;background:#111113;border-radius:16px;overflow:hidden}
.price-manage-product.is-inactive{opacity:.62}
.price-manage-product-head{display:flex;justify-content:space-between;gap:18px;padding:16px 17px;border-bottom:1px solid #242428}
.price-manage-product-head>div:first-child{min-width:0}
.price-manage-product-head span{font-size:9px;color:#c2a25c;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.price-manage-product-head h4{font-size:17px;margin:5px 0 0}
.price-manage-product-head p{font-size:10px;color:#777780;margin:6px 0 0;line-height:1.4}
.price-manage-actions{display:flex;align-items:flex-start;gap:6px;flex-shrink:0}
.price-variant-list{padding:5px 12px 10px}
.price-variant-row{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:12px;align-items:center;padding:10px 5px;border-bottom:1px solid #202024}
.price-variant-row:last-child{border-bottom:0}
.price-variant-row.is-inactive{opacity:.48}
.price-variant-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.price-variant-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-variant-main span{font-size:9px;color:#707078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-variant-value{text-align:right;font-size:13px;font-weight:800;color:#eee}
.price-variant-empty{padding:18px 5px;color:#707078;font-size:10px}
.price-variant-product{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;margin:0 0 14px;background:#161618;border:1px solid #2b2b30;border-radius:11px}
.price-variant-product span{font-size:9px;color:#777780;text-transform:uppercase;letter-spacing:.07em}.price-variant-product strong{font-size:13px}
.price-check-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:42px}
.price-check-row input{width:17px;height:17px;accent-color:#c6a256}.price-check-row span{margin:0!important}
.price-variant-hint{padding:11px 12px;border:1px solid #2a2a2e;background:#141416;border-radius:10px;color:#777780;font-size:10px;line-height:1.45}

@media(max-width:1100px){
  .price-catalog-layout{grid-template-columns:1fr}
  .price-configurator{position:static}
}
@media(max-width:720px){
  .price-toolbar{align-items:stretch}
  .price-toolbar .btn{flex:1 1 auto}
  .price-catalog-grid{grid-template-columns:1fr}
  .price-config-fields{grid-template-columns:1fr}
  .price-manage-product-head{flex-direction:column}
  .price-manage-actions{width:100%;justify-content:flex-end}
  .price-variant-row{grid-template-columns:minmax(0,1fr) auto}
  .price-variant-row .card-actions{grid-column:1/-1;justify-content:flex-end}
  .price-variant-value{text-align:right}
}


/* =========================================================
   Snake Plan+ v0.16.8k – komfortable Produktpflege
   ========================================================= */
.price-product-option-head{margin-top:4px;padding:11px 12px;border:1px solid #2b2b30;border-radius:10px;background:#141416}
.price-product-option-head strong{display:block;font-size:12px;color:#ddd;margin-bottom:3px}
.price-product-option-head span{font-size:9px;color:#73737b;line-height:1.4}
#priceProductFormats,#priceProductMaterials{min-height:78px;resize:vertical}
.price-product-options-summary{display:flex;flex-wrap:wrap;gap:6px;padding:10px 17px 3px}
.price-option-chips{display:flex;flex-wrap:wrap;gap:5px}
.price-option-chips span,.price-default-design{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;border:1px solid #303036;background:#151517;color:#92929a;font-size:9px}
.price-default-design{color:#d1b26b;border-color:rgba(209,178,107,.28)}
.btn-small{padding:8px 11px!important;font-size:10px!important}

.price-matrix-modal{width:min(1180px,96vw);max-width:1180px}
.price-matrix-info{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;margin-bottom:10px;border:1px solid #2b2b30;background:#141416;border-radius:11px}
.price-matrix-info>div{display:flex;align-items:center;gap:10px}
.price-matrix-info>div span{font-size:9px;color:#777780;text-transform:uppercase;letter-spacing:.07em}
.price-matrix-info>div strong{font-size:13px}
.price-matrix-design{display:flex;align-items:center;gap:8px;font-size:10px;color:#b9b9c0}
.price-matrix-design input{width:17px;height:17px;accent-color:#c8a459}
.price-matrix-hint{margin-bottom:10px;color:#92929a;font-size:10px;line-height:1.5}
.price-matrix-hint span{color:#696971}
.price-matrix-wrap{max-width:100%;max-height:58vh;overflow:auto;border:1px solid #29292e;border-radius:12px;background:#101012}
.price-matrix-table{border-collapse:separate;border-spacing:0;min-width:100%;width:max-content;font-size:10px}
.price-matrix-table th,.price-matrix-table td{padding:9px 10px;border-right:1px solid #242428;border-bottom:1px solid #242428;white-space:nowrap}
.price-matrix-table thead th{position:sticky;top:0;z-index:3;background:#18181b;color:#9b9ba3;font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.price-matrix-table thead th:first-child{left:0;z-index:4}
.price-matrix-rowhead{position:sticky;left:0;z-index:2;min-width:190px;max-width:250px;background:#151517!important;color:#d2d2d6;text-align:left;font-size:10px!important;text-transform:none!important;letter-spacing:0!important}
.price-matrix-cell{display:flex;align-items:center;gap:5px}
.price-matrix-cell input{width:82px;height:34px;border:1px solid #303036;background:#171719;color:#f2f2f4;border-radius:8px;padding:0 8px;text-align:right;font-weight:700}
.price-matrix-cell input:focus{outline:none;border-color:#b69349;box-shadow:0 0 0 2px rgba(182,147,73,.1)}
.price-matrix-cell span{font-size:9px;color:#65656d}
@media(max-width:800px){
  .price-matrix-modal{width:96vw}
  .price-matrix-info{align-items:flex-start;flex-direction:column}
  .price-matrix-wrap{max-height:54vh}
  .price-manage-actions{flex-wrap:wrap}
}


/* =========================================================
   Snake Plan+ v0.16.8k – kompaktere Richtpreis-Pflege
   ========================================================= */

/* Einleitung etwas besser lesbar */
.price-manage-head{
  margin-bottom:12px;
}
.price-manage-head h3{
  margin:5px 0 5px;
  font-size:20px;
}
.price-manage-head p{
  font-size:12px;
  line-height:1.45;
}

/* Produktkarten deutlich kompakter */
.price-manage-list{
  gap:10px;
}
.price-manage-product{
  border-radius:14px;
}
.price-manage-product-head{
  padding:12px 16px 10px;
  gap:14px;
  align-items:center;
}

/* Kategorie + Produktname größer */
.price-manage-product-head span{
  font-size:10px;
  letter-spacing:.075em;
}
.price-manage-product-head h4{
  font-size:19px;
  line-height:1.2;
  margin:4px 0 0;
}
.price-manage-product-head p{
  font-size:11px;
  line-height:1.4;
  margin-top:5px;
}

/* Buttons kompakter, Text aber größer */
.price-manage-actions{
  align-items:center;
  gap:7px;
}
.price-manage-actions .btn{
  min-height:40px;
  font-size:11px!important;
  padding:8px 13px!important;
}
.price-manage-actions .icon-btn{
  width:40px;
  height:40px;
  font-size:15px;
}

/* Format / Material / Stückzahl näher an den Kopf */
.price-product-options-summary{
  padding:8px 16px 7px;
  gap:7px;
  min-height:0;
}
.price-option-chips{
  gap:6px;
}
.price-option-chips span,
.price-default-design{
  min-height:27px;
  padding:5px 9px;
  font-size:10.5px;
  line-height:1.1;
}

/* Variantenbereich verliert unnötige Höhe */
.price-variant-list{
  padding:0 12px 7px;
}
.price-variant-empty{
  padding:7px 4px 8px;
  font-size:11px;
  line-height:1.35;
}

/* Vorhandene Preisvarianten besser lesbar */
.price-variant-row{
  grid-template-columns:minmax(0,1fr) 145px auto;
  gap:14px;
  padding:9px 5px;
}
.price-variant-main{
  gap:4px;
}
.price-variant-main strong{
  font-size:13.5px;
  line-height:1.3;
}
.price-variant-main span{
  font-size:11px;
  line-height:1.35;
}
.price-variant-value{
  font-size:15px;
  font-weight:800;
}
.price-variant-row .icon-btn{
  width:38px;
  height:38px;
  font-size:14px;
}

/* Weniger optische Leere bei Produkten ohne Einzelpreis */
.price-manage-product:has(.price-variant-empty) .price-variant-list{
  padding-bottom:5px;
}

/* Mobil weiterhin sauber */
@media(max-width:800px){
  .price-manage-product-head{
    align-items:flex-start;
    padding:13px 14px 10px;
  }
  .price-manage-actions{
    gap:6px;
  }
  .price-manage-actions .btn{
    min-height:38px;
  }
  .price-product-options-summary{
    padding:7px 14px 8px;
  }
  .price-variant-list{
    padding-left:10px;
    padding-right:10px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – Katalog-Übersicht lesbarer
   ========================================================= */

/* Linke Produktkarten in "Richtpreis auswählen" gleich hoch */
.price-catalog-grid{
  align-items:stretch;
}
.price-catalog-card{
  min-height:146px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.price-catalog-card .price-card-head{
  padding-bottom:10px;
}
.price-catalog-card .price-card-foot{
  margin-top:auto;
}

/* Kleine Texte größer */
.price-catalog-head .eyebrow,
.price-catalog-detail .eyebrow,
.price-catalog-detail label,
.price-catalog-count,
.price-card-head span,
.price-card-foot small,
.price-card-empty,
.price-card-meta,
.price-result-meta,
.price-result-chips span,
.price-result-note,
.price-result-updated{
  font-size:11px!important;
  line-height:1.45;
}

/* Produktnamen und Preise etwas kräftiger */
.price-card-head strong{
  font-size:17px!important;
  line-height:1.25;
}
.price-card-foot strong,
.price-result-value{
  font-size:17px!important;
  line-height:1.2;
  font-weight:800;
}

/* Helper / Beschreibung links lesbarer */
.price-card-head p,
.price-card-empty{
  font-size:12px!important;
  line-height:1.45;
}

/* Rechte Detailseite angenehmer */
.price-catalog-detail h3{
  font-size:18px!important;
  line-height:1.25;
}
.price-catalog-detail select{
  min-height:42px;
  font-size:13px!important;
}
.price-result-box{
  padding:18px 18px 16px;
}
.price-result-box .eyebrow{
  font-size:11px!important;
}
.price-result-value{
  font-size:18px!important;
  margin-top:4px;
}
.price-result-note{
  font-size:12px!important;
}
.price-result-updated{
  font-size:11px!important;
  opacity:.9;
}

/* Chips etwas größer */
.price-result-chips{
  gap:7px;
}
.price-result-chips span{
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
}

/* Mobil trotzdem sauber */
@media(max-width:900px){
  .price-catalog-card{
    min-height:132px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – Katalog Ausrichtung, Lesbarkeit, Favoriten
   ========================================================= */

/* Korrekte Kartenstruktur: alle Karten gleich hoch */
.price-catalog-grid{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.price-catalog-subgrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.price-product-card{
  position:relative;
  min-height:160px;
  height:100%;
  padding:17px 18px 15px;
  cursor:pointer;
}
.price-product-card:focus-visible{
  outline:2px solid rgba(213,178,94,.7);
  outline-offset:2px;
}
.price-product-card.is-favorite{
  border-color:rgba(199,161,79,.48);
}

/* Favoriten-Stern */
.price-favorite-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid #36363c;
  border-radius:10px;
  background:#171719;
  color:#7a7a83;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}
.price-favorite-btn:hover{
  border-color:#806d42;
  color:#d8b45f;
}
.price-favorite-btn.is-favorite{
  color:#e0b857;
  border-color:rgba(224,184,87,.42);
  background:rgba(224,184,87,.08);
}

/* Favoriten bleiben oben, danach klarer Trenner */
.price-catalog-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:1px 0;
  color:#777780;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.price-catalog-divider::before,
.price-catalog-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#29292e;
}
.price-catalog-divider span{
  flex:0 0 auto;
}

/* Tatsächlich verwendete kleine Schriften größer */
.price-section-head .eyebrow{
  font-size:11.5px!important;
}
.price-count{
  font-size:12px!important;
}
.price-product-category{
  padding-right:42px;
  font-size:11.5px!important;
  line-height:1.3;
}
.price-product-card>strong{
  padding-right:38px;
  font-size:19px!important;
  line-height:1.25;
  margin-top:6px;
}
.price-product-card>p{
  font-size:12.5px!important;
  line-height:1.5;
  margin:7px 0 14px;
}
.price-product-card-footer{
  margin-top:auto!important;
  padding-top:12px!important;
}
.price-product-card-footer span{
  font-size:11.5px!important;
  line-height:1.3;
}
.price-product-card-footer b{
  font-size:14px!important;
  line-height:1.3;
}

/* Rechte Konfiguration auf Höhe der linken Produktkarten */
.price-configurator{
  margin-top:58px;
}

/* Rechte Box: Kleinschrift konsequent größer */
.price-config-head .eyebrow{
  font-size:11.5px!important;
}
.price-config-head h3{
  font-size:23px;
}
.price-config-head p{
  font-size:12.5px!important;
  line-height:1.5;
}
.price-config-field span{
  font-size:11px!important;
  line-height:1.3;
}
.price-config-field select{
  height:44px;
  font-size:14px!important;
}
.price-result-card .eyebrow{
  font-size:11.5px!important;
}
.price-result-meta span,
.price-result-badges span{
  font-size:10.5px!important;
  line-height:1.3;
  padding:6px 9px;
}
.price-result-card p{
  font-size:12px!important;
  line-height:1.5;
}
.price-result-card small{
  font-size:10.5px!important;
}
.price-result-placeholder strong{
  font-size:14px!important;
}
.price-result-placeholder span{
  font-size:11.5px!important;
  line-height:1.45;
}
.price-config-empty strong{
  font-size:15px;
}
.price-config-empty p{
  font-size:12px!important;
}

/* Unter 1100px steht der Konfigurator wieder normal darunter */
@media(max-width:1100px){
  .price-configurator{
    margin-top:0;
  }
}
@media(max-width:720px){
  .price-catalog-subgrid{
    grid-template-columns:1fr;
  }
  .price-product-card{
    min-height:150px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – Gewicht separat / Ausgabe neu geordnet
   ========================================================= */

/* Kategorie ist im Richtpreiskatalog nicht mehr Bestandteil der Oberfläche */
.price-product-category{
  display:none!important;
}
.price-product-card>strong{
  padding-right:42px;
  margin-top:0;
}

/* Produktpflege: vier Auswahlgruppen gleichmäßig */
#priceProductFormats,
#priceProductWeights,
#priceProductMaterials,
#priceProductQuantities{
  min-height:82px;
  resize:vertical;
}

/* Ausgabe rechts:
   Format | Gewicht
   Material | Stückzahl
   Notiz volle Breite
   Preis darunter
*/
.price-config-fields{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px 12px;
  margin-bottom:13px;
}
.price-config-note{
  width:100%;
  box-sizing:border-box;
  margin:0 0 13px;
  padding:12px 13px;
  border:1px solid #2e2e33;
  border-radius:11px;
  background:#151517;
}
.price-config-note>span{
  display:block;
  margin-bottom:6px;
  color:#8c8c95;
  font-size:11px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:.065em;
  text-transform:uppercase;
}
.price-config-note>p{
  margin:0;
  color:#d0d0d5;
  font-size:13px;
  line-height:1.5;
  white-space:normal;
}

/* Ergebnis danach deutlich separat */
.price-result-card,
.price-result-placeholder{
  margin-top:0;
}

/* Verwaltung: Kategorie-Zeile entfällt, Produktname steht direkt oben */
.price-manage-product-head h4{
  margin-top:0;
}

/* Grammatur-Chips dürfen ausreichend breit sein */
.price-option-chips span{
  white-space:nowrap;
}

/* Kleine Texte der Ausgabe weiterhin gut lesbar */
.price-config-field span{
  font-size:11.5px!important;
}
.price-result-card small{
  font-size:11px!important;
}

@media(max-width:720px){
  .price-config-fields{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – skalierbarer Produktkatalog
   ========================================================= */

/* Favoriten als eigene kompakte Leiste über dem Katalog */
.price-favorite-section{
  margin:0 0 18px;
  padding:14px 15px 15px;
  border:1px solid #2b2b30;
  border-radius:15px;
  background:#101012;
}
.price-favorite-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.price-favorite-section-head h4{
  margin:3px 0 0;
  font-size:16px;
}
.price-favorite-section-head .eyebrow{
  font-size:11px!important;
}
.price-favorite-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}

/* Normale Produktliste: 3 kompakte Karten pro Reihe */
.price-catalog-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;
  align-items:stretch;
}
.price-product-card{
  min-height:108px!important;
  height:100%;
  padding:14px 14px 12px!important;
}
.price-product-card>strong{
  padding-right:38px;
  margin:0!important;
  font-size:17px!important;
  line-height:1.25;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.price-product-card>p{
  display:none!important;
}
.price-product-card-footer{
  margin-top:auto!important;
  padding-top:10px!important;
}
.price-product-card-footer span{
  font-size:11px!important;
}
.price-product-card-footer b{
  font-size:13px!important;
  white-space:nowrap;
}
.price-favorite-btn{
  top:10px!important;
  right:10px!important;
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  font-size:18px!important;
}

/* Favoriten noch etwas kompakter */
.price-product-favorite-card{
  min-height:92px!important;
  border-color:rgba(199,161,79,.34);
}
.price-product-favorite-card>strong{
  font-size:16px!important;
}
.price-product-favorite-card .price-product-card-footer{
  padding-top:8px!important;
}

/* Linke Liste + rechter Konfigurator bleiben sauber ausgerichtet */
.price-catalog-layout{
  grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);
}
.price-configurator{
  margin-top:58px;
}

/* Pagination statt endloser Seite */
.price-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:15px;
  min-height:38px;
}
.price-page-btn,
.price-page-arrow{
  min-width:34px;
  height:34px;
  padding:0 9px;
  border:1px solid #303035;
  border-radius:9px;
  background:#151517;
  color:#a0a0a8;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.price-page-arrow{
  font-size:20px;
  line-height:1;
}
.price-page-btn:hover,
.price-page-arrow:hover:not(:disabled){
  border-color:#6f603d;
  color:#e0be70;
}
.price-page-btn.is-active{
  border-color:#c7a14f;
  background:rgba(199,161,79,.11);
  color:#f0d18b;
}
.price-page-arrow:disabled{
  opacity:.3;
  cursor:default;
}
.price-page-dots{
  width:24px;
  text-align:center;
  color:#686870;
  font-size:12px;
}

/* Count und Überschriften etwas ruhiger, aber gut lesbar */
.price-section-head{
  margin-bottom:10px;
}
.price-section-head h4{
  font-size:18px;
}
.price-count{
  font-size:11.5px!important;
}

@media(max-width:1250px){
  .price-favorite-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .price-catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:1100px){
  .price-catalog-layout{
    grid-template-columns:1fr;
  }
  .price-configurator{
    margin-top:0;
  }
  .price-favorite-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .price-favorite-grid,
  .price-catalog-grid{
    grid-template-columns:1fr!important;
  }
  .price-favorite-section{
    padding:12px;
  }
}


/* =========================================================
   Snake Plan+ v0.16.8k – mehr Luft unter Katalog-Überschriften
   ========================================================= */

/* Mehr Abstand zwischen "Alle Produkte" und erster Kartenreihe */
#priceCatalogMode .price-section-head{
  margin-bottom:18px;
}

/* Gleicher Abstand im Favoriten-/Schnellzugriff-Bereich */
#priceCatalogMode .price-favorite-section-head{
  margin-bottom:16px;
}


/* =========================================================
   Snake Plan+ v0.16.8k – Vektordateien
   ========================================================= */
.design-media-vector strong{
  font-size:27px;
  letter-spacing:.04em;
}
.design-media-vector span{
  max-width:220px;
  padding:0 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


/* =========================================================
   Snake Plan+ v0.16.9c – Dashboard, Workflow & Rechnungen
   ========================================================= */

/* Dashboard: klar erkennbar, dass aktuelle Arbeiten direkt öffnen */
.open-work-card,.recent-project-tile{cursor:pointer;}
.open-work-direct{color:var(--gold2);font-size:10px;font-weight:850;white-space:nowrap;}
.open-work-card:hover .open-work-direct{color:#f1d38c;}

/* Statusleiste: immer eine einzige horizontale Reihe mit allen 8 Schritten */
.workflow-bar{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  grid-auto-flow:column;
  gap:0!important;
  overflow-x:auto;
  overflow-y:hidden;
  padding:14px 16px!important;
  scrollbar-width:thin;
}
.workflow-step{
  min-width:0!important;
  min-height:58px!important;
  padding:31px 4px 5px!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.2!important;
  font-size:clamp(9px,.72vw,12px)!important;
  overflow-wrap:normal;
  word-break:normal;
}
.workflow-step:before{top:9px!important;left:50%!important;transform:translateX(-50%)!important;}
.workflow-step:after{top:14px!important;left:calc(50% + 6px)!important;right:calc(-50% + 6px)!important;}
.workflow-step:last-child:after{display:none!important;}
@media(max-width:900px){
  .workflow-bar{grid-template-columns:repeat(8,minmax(76px,1fr))!important;padding:12px 10px!important;}
  .workflow-step{font-size:10px!important;min-height:56px!important;padding-left:2px!important;padding-right:2px!important;}
}

/* Kundenbereiche: drei gleichwertige Reiter */
.customer-workspace-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:680px){
  .customer-workspace-tabs{grid-template-columns:1fr!important;}
}

/* Rechnungsarchiv */
.invoice-upgrade-hint{display:grid;gap:6px;padding:16px;border:1px solid rgba(224,184,87,.3);border-radius:13px;background:rgba(224,184,87,.055);}
.invoice-upgrade-hint strong{font-size:13px;color:#f0d18b;}
.invoice-upgrade-hint span{font-size:11px;color:#9999a2;line-height:1.55;}
.invoice-archive{display:grid;gap:12px;}
.invoice-year,.invoice-month{border:1px solid #29292e;border-radius:15px;background:#0c0c0e;overflow:hidden;}
.invoice-year>summary,.invoice-month>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;font-weight:900;}
.invoice-year>summary::-webkit-details-marker,.invoice-month>summary::-webkit-details-marker{display:none;}
.invoice-year>summary span{font-size:17px;color:#fff;}
.invoice-year>summary b,.invoice-month>summary b{font-size:10px;color:#777781;font-weight:750;}
.invoice-months{display:grid;gap:9px;padding:0 12px 12px;}
.invoice-month{background:#101012;border-color:#25252a;}
.invoice-month>summary{padding:12px 14px;}
.invoice-month>summary span{font-size:13px;color:#d7d7dc;font-weight:850;text-transform:capitalize;}
.invoice-list{display:grid;gap:8px;padding:0 10px 10px;}
.invoice-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #27272c;border-radius:12px;background:#0b0b0d;}
.invoice-file-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;border:1px solid rgba(214,176,91,.24);background:rgba(214,176,91,.06);color:var(--gold2);font-size:10px;font-weight:950;letter-spacing:.04em;}
.invoice-row-main{min-width:0;}
.invoice-row-main>strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.invoice-row-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px;}
.invoice-row-meta span{font-size:10px;color:#777781;padding-right:7px;border-right:1px solid #29292e;}
.invoice-row-meta span:last-child{border-right:0;}
.invoice-row-main p{margin:7px 0 0;color:#8d8d96;font-size:11px;line-height:1.45;}
.invoice-row-actions{display:flex;gap:6px;align-items:center;}
.invoice-row-actions .btn{min-height:36px;padding:0 11px;font-size:10px;}
@media(max-width:780px){
  .invoice-row{grid-template-columns:42px minmax(0,1fr);}
  .invoice-row-actions{grid-column:1/-1;justify-content:flex-end;padding-top:4px;}
}


/* =========================================================
   Snake Plan+ v0.16.9c – alphabetischer Preiskatalog
   Favoriten oben, danach A–Z ohne Seitenaufteilung
   ========================================================= */
.price-favorite-empty{
  grid-column:1/-1;
  padding:12px 4px 3px;
  color:#777780;
  font-size:12px;
}
.price-alphabet-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px;
  padding:11px 12px;
  border:1px solid #29292e;
  border-radius:13px;
  background:#101012;
}
.price-alphabet-label{
  flex:0 0 auto;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.12em;
  color:#d0ad62;
}
.price-alphabet-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.price-alphabet-btn{
  min-width:31px;
  height:31px;
  padding:0 9px;
  border:1px solid #303036;
  border-radius:9px;
  background:#171719;
  color:#aaaab1;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.price-alphabet-btn:hover,
.price-alphabet-btn:focus-visible{
  border-color:#8d743e;
  color:#f0d18b;
  outline:none;
}
#priceCatalogMode .price-catalog-grid.price-alphabet-groups{
  display:block!important;
}
.price-alpha-group{
  scroll-margin-top:18px;
  margin:0 0 24px;
}
.price-alpha-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  padding:0 2px 8px;
  border-bottom:1px solid #29292e;
}
.price-alpha-head>span{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border:1px solid rgba(199,161,79,.46);
  border-radius:10px;
  background:rgba(199,161,79,.08);
  color:#e5c16d;
  font-size:19px;
  font-weight:900;
}
.price-alpha-head>small{
  color:#717179;
  font-size:11px;
  font-weight:700;
}
.price-alpha-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
@media(max-width:1250px){
  .price-alpha-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .price-alphabet-nav{align-items:flex-start;gap:9px;padding:10px;}
  .price-alphabet-label{width:100%;}
  .price-alpha-product-grid{grid-template-columns:1fr;}
  .price-alpha-group{margin-bottom:20px;}
}


/* =========================================================
   Snake Plan+ 0.17.0 – automatische EK-Preiskalkulation
   ========================================================= */
.price-card-calc-badge{position:absolute;right:38px;top:11px;font-size:8px!important;line-height:1;padding:4px 5px;border:1px solid rgba(203,166,84,.35);border-radius:6px;color:#d8b86f!important;background:#19160f}
.price-product-card{position:relative}
.price-auto-calc-chip{border-color:rgba(202,163,78,.4)!important;color:#d7b66a!important;background:#19160f!important}
.price-variant-value{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.price-variant-value>strong{font-size:12px}.price-variant-value>small{font-size:9px;color:#b18f48}
.price-calc-active-badge,.price-calc-legacy-badge{display:inline-flex;margin-top:7px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.04em}
.price-calc-active-badge{border:1px solid rgba(199,161,79,.38);background:#1a170f;color:#dab96d}.price-calc-legacy-badge{border:1px solid #303036;color:#797982;background:#141416}
.price-matrix-table thead th small{display:block;margin-top:4px;font-size:8px;color:#686871;text-transform:none;letter-spacing:0}
.price-matrix-dual{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:180px}.price-matrix-dual label{display:flex;align-items:center;gap:4px}.price-matrix-dual label>span{font-size:8px;color:#777780;font-weight:800}.price-matrix-dual .is-ek>span{color:#cba654}.price-matrix-dual input{width:72px;height:34px;border:1px solid #303036;background:#171719;color:#f2f2f4;border-radius:8px;padding:0 7px;text-align:right;font-weight:700}.price-matrix-dual .is-ek input{border-color:#443b29;background:#191710}.price-matrix-dual input:focus{outline:none;border-color:#b69349;box-shadow:0 0 0 2px rgba(182,147,73,.1)}
.price-calc-box{display:flex;flex-direction:column;gap:12px}.price-calc-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.price-calc-section-head>b{font-size:9px;color:#c5a45c;text-transform:uppercase;letter-spacing:.05em}
.price-calc-rows,.price-final-result{border:1px solid #2a2a2f;border-radius:12px;overflow:hidden;background:#121214}.price-calc-rows>div,.price-final-result>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #242428}.price-calc-rows>div:last-child,.price-final-result>div:last-of-type{border-bottom:0}.price-calc-rows span,.price-final-result span{font-size:10px;color:#8b8b94}.price-calc-rows strong,.price-final-result strong{font-size:12px;color:#eee;text-align:right}.price-calc-rows strong small{font-size:9px;color:#777780;font-weight:600}.price-calc-rows em{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:999px;background:#201b11;color:#cfae63;font-size:8px;font-style:normal}.price-calc-rows .is-subtotal{background:#171719}.price-calc-rows .is-subtotal strong{font-size:15px;color:#e0bf74}
.price-design-calc{border:1px solid #2a2a2f;border-radius:12px;padding:12px;background:#111113}.price-design-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.price-design-switch-row strong{display:block;font-size:13px;margin-top:3px}.switch-control{position:relative;width:46px;height:26px;flex:0 0 auto}.switch-control input{position:absolute;opacity:0;pointer-events:none}.switch-control span{display:block;width:46px;height:26px;border-radius:999px;background:#29292e;border:1px solid #38383e;transition:.18s}.switch-control span:after{content:"";position:absolute;top:4px;left:4px;width:18px;height:18px;border-radius:50%;background:#85858e;transition:.18s}.switch-control input:checked+span{background:#3a321f;border-color:#8f743a}.switch-control input:checked+span:after{transform:translateX(20px);background:#ddb960}
.price-design-controls{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin-top:12px}.price-design-controls>label,.price-design-controls>div{display:flex;flex-direction:column;gap:5px;padding:9px;border:1px solid #25252a;border-radius:9px;background:#151517}.price-design-controls span{font-size:8px;color:#777780;text-transform:uppercase;letter-spacing:.05em}.price-design-controls strong{font-size:11px}.price-design-controls input{height:34px;border:1px solid #303036;border-radius:8px;background:#19191c;color:#eee;padding:0 8px}.price-design-controls.is-disabled{opacity:.48}
.price-final-result{border-color:#3c3424;background:#14120e}.price-final-total{background:#1c180f!important;padding:14px 12px!important}.price-final-total span{color:#bfa66e!important;font-weight:800}.price-final-total strong{font-size:24px!important;color:#e2bf70!important}.price-copy-btn{margin:10px 12px 12px;width:calc(100% - 24px)}.price-internal-hint{padding:9px 10px;border-radius:9px;background:#0d0d0f;color:#64646c;font-size:9px;line-height:1.45}.price-result-legacy .price-copy-btn{margin:10px 0 6px;width:100%}
.calc-settings-modal{width:min(980px,96vw);max-width:980px}.calc-settings-note{margin-bottom:13px;padding:10px 12px;border:1px solid #393122;border-radius:10px;background:#17140f;color:#aa9566;font-size:10px;line-height:1.5}.calc-settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.calc-settings-card{padding:14px;border:1px solid #29292e;border-radius:13px;background:#111113}.calc-settings-card h4{margin:4px 0 12px;font-size:16px}.calc-settings-card>small{display:block;margin-top:10px;color:#777780;font-size:9px;line-height:1.5}.calc-rounding-eyebrow{display:block;margin-top:20px}
@media(max-width:800px){.calc-settings-grid{grid-template-columns:1fr}.price-design-controls{grid-template-columns:1fr}.price-matrix-dual{min-width:164px}.price-matrix-dual input{width:64px}}


/* v0.17.2 – EK-first Produktpflege */
.price-matrix-ek-only{display:flex;justify-content:center;min-width:104px}
.price-matrix-ek-only label{display:flex;align-items:center;gap:6px}
.price-matrix-ek-only label>span{font-size:9px;color:#cba654;font-weight:800}
.price-matrix-ek-only input{width:86px;height:36px;border:1px solid #443b29;background:#191710;color:#f2f2f4;border-radius:8px;padding:0 8px;text-align:right;font-weight:800}
.price-matrix-ek-only input:focus{outline:none;border-color:#b69349;box-shadow:0 0 0 2px rgba(182,147,73,.1)}
.price-matrix-archive{opacity:.55;font-size:9px}
.price-ek-missing{color:#8b8b94!important}
.price-legacy-note{color:#66666e!important;font-size:8px!important}
.price-result-missing-ek{border-color:#3a3020!important;background:#14120f!important}
.price-result-missing-ek>strong{color:#dab96d!important}
.price-legacy-field{opacity:.6}
.price-legacy-field input{cursor:not-allowed}
@media(max-width:800px){.price-matrix-ek-only{min-width:96px}.price-matrix-ek-only input{width:78px}}

/* =========================================================
   Snake Plan+ v0.19.0 – bessere Lesbarkeit im Preiskatalog
   Kleine Labels, Hilfstexte und Nebenwerte vergrößert.
   ========================================================= */
#priceCatalogMode .price-favorite-empty{
  font-size:14px;
  line-height:1.55;
  color:#94949d;
}
#priceCatalogMode .price-count{
  font-size:13px;
  color:#92929b;
}
#priceCatalogMode .price-alphabet-label{
  font-size:13px;
}
#priceCatalogMode .price-alphabet-btn{
  font-size:14px;
  min-width:34px;
  height:34px;
}
#priceCatalogMode .price-alpha-head>small{
  font-size:13px;
  color:#8d8d96;
}
#priceCatalogMode .price-product-card>p{
  font-size:13px;
  line-height:1.5;
  color:#92929b;
}
#priceCatalogMode .price-product-card>div span,
#priceCatalogMode .price-product-card-footer span{
  font-size:12.5px;
  color:#8e8e97;
}
#priceCatalogMode .price-product-card>div b,
#priceCatalogMode .price-product-card-footer b{
  font-size:14px;
}
#priceCatalogMode .price-card-calc-badge{
  font-size:10px!important;
  padding:5px 6px;
}
#priceCatalogMode .price-calc-active-badge,
#priceCatalogMode .price-calc-legacy-badge{
  font-size:11px;
  padding:6px 9px;
}
#priceCatalogMode .price-config-head p{
  font-size:13px;
  line-height:1.55;
  color:#9a9aa3;
}
#priceCatalogMode .price-config-field{
  gap:7px;
}
#priceCatalogMode .price-config-field span{
  font-size:12px;
  line-height:1.25;
  color:#9a9aa3;
}
#priceCatalogMode .price-config-field select{
  height:46px;
  font-size:14px;
}
#priceCatalogMode .price-calc-section-head>b{
  font-size:11.5px;
}
#priceCatalogMode .price-calc-rows>div,
#priceCatalogMode .price-final-result>div{
  padding:12px 13px;
}
#priceCatalogMode .price-calc-rows span,
#priceCatalogMode .price-final-result span{
  font-size:13px;
  line-height:1.35;
  color:#a0a0a9;
}
#priceCatalogMode .price-calc-rows strong,
#priceCatalogMode .price-final-result strong{
  font-size:14px;
}
#priceCatalogMode .price-calc-rows strong small{
  font-size:11.5px;
  color:#93939c;
}
#priceCatalogMode .price-calc-rows em{
  font-size:10.5px;
  padding:3px 6px;
}
#priceCatalogMode .price-design-switch-row strong{
  font-size:14px;
}
#priceCatalogMode .price-design-controls span{
  font-size:11.5px;
  line-height:1.25;
  color:#95959e;
}
#priceCatalogMode .price-design-controls strong{
  font-size:13.5px;
}
#priceCatalogMode .price-design-controls input{
  height:38px;
  font-size:14px;
}
#priceCatalogMode .price-internal-hint{
  font-size:12.5px;
  line-height:1.55;
  color:#85858e;
  padding:11px 12px;
}
#priceCatalogMode .price-result-card p{
  font-size:13px;
}
#priceCatalogMode .price-result-card small{
  font-size:11.5px;
}
#priceCatalogMode .price-result-placeholder span{
  font-size:12.5px;
}

/* Kleine Erklärtexte in den Kalkulationseinstellungen ebenfalls besser lesbar. */
.calc-settings-note{
  font-size:12.5px;
  line-height:1.55;
}
.calc-settings-card>small{
  font-size:11.5px;
  line-height:1.55;
  color:#96969f;
}

@media(max-width:800px){
  #priceCatalogMode .price-config-field span{font-size:12.5px;}
  #priceCatalogMode .price-calc-rows span,
  #priceCatalogMode .price-final-result span{font-size:13px;}
  #priceCatalogMode .price-internal-hint{font-size:12px;}
}


/* =========================================================
   Snake Plan+ v0.19.0 – Produktkarten im Preiskatalog
   EK-Badge entfernt und Titel/Stern sauber ausgerichtet.
   ========================================================= */
#priceCatalogMode .price-product-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}
#priceCatalogMode .price-product-card>strong{
  display:block;
  padding-right:46px!important;
  min-height:42px;
  font-size:17px!important;
  line-height:1.28;
  overflow-wrap:anywhere;
}
#priceCatalogMode .price-product-card-footer{
  width:100%;
  min-width:0;
  gap:12px;
}
#priceCatalogMode .price-product-card-footer span{
  flex:0 1 auto;
}
#priceCatalogMode .price-product-card-footer b{
  margin-left:auto;
  flex:0 0 auto;
  text-align:right;
}
#priceCatalogMode .price-card-calc-badge{
  display:none!important;
}

/* =========================================================
   Snake Plan+ v0.19.0 – breitere Produktkarten
   Auf Desktop bleibt das 3er-Raster erhalten, die linke
   Katalogspalte erhält etwas mehr Breite.
   ========================================================= */
@media(min-width:1101px){
  #priceCatalogMode .price-catalog-layout{
    grid-template-columns:minmax(0,1.30fr) minmax(400px,.70fr);
    gap:18px;
  }
  #priceCatalogMode .price-alpha-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  #priceCatalogMode .price-product-card{
    padding-left:15px!important;
    padding-right:15px!important;
  }
}
@media(min-width:1101px) and (max-width:1280px){
  #priceCatalogMode .price-catalog-layout{
    grid-template-columns:minmax(0,1.24fr) minmax(380px,.76fr);
  }
  #priceCatalogMode .price-alpha-product-grid{
    gap:10px;
  }
}


/* =========================================================
   Snake Plan+ v0.19.0 – Preiskatalog: Druckartikel / Leistungen
   ========================================================= */
.price-type-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 18px;
}
.price-type-tab{
  min-width:0;
  min-height:72px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:11px;
  align-items:center;
  padding:12px 14px;
  border:1px solid #2c2c31;
  border-radius:14px;
  background:#111113;
  color:#a0a0a8;
  text-align:left;
  cursor:pointer;
}
.price-type-tab>span{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;border:1px solid #333338;border-radius:10px;background:#171719;color:#aaaab2;font-size:18px}
.price-type-tab>strong{font-size:15px;color:#e5e5e8;align-self:end}
.price-type-tab>small{font-size:11.5px;color:#7f7f88;align-self:start;line-height:1.3}
.price-type-tab:hover,.price-type-tab:focus-visible{border-color:#665634;outline:none}
.price-type-tab.active{border-color:rgba(205,169,87,.55);background:#17140f}
.price-type-tab.active>span{border-color:rgba(205,169,87,.42);background:rgba(205,169,87,.08);color:#e0bb67}
.price-type-tab.active>strong{color:#f0d18b}
.price-service-card .price-product-card-footer span{color:#c2a663!important}
.service-hourly-note{padding:11px 12px;border:1px solid #302b20;border-radius:10px;background:#15130f;color:#a89569;font-size:12px;line-height:1.5}
.service-calc-box{display:flex;flex-direction:column;gap:12px}
.service-hours-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:8px}
.service-hours-grid>label,.service-hours-grid>div{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #29292e;border-radius:10px;background:#151517}
.service-hours-grid span{font-size:12px;color:#96969f}
.service-hours-grid strong{font-size:14px;color:#ededf0}
.service-hours-grid input{height:40px;border:1px solid #34343a;border-radius:8px;background:#19191c;color:#f2f2f4;padding:0 9px;font-size:14px}
.service-fixed-result{display:grid;gap:5px;padding:18px;border:1px solid #3c3424;border-radius:13px;background:#15120e}
.service-fixed-result small{font-size:12px;color:#8f8f98}
.service-fixed-result>strong{margin-top:5px;font-size:28px;color:#e2bf70}
.service-copy-btn{margin:0!important;width:100%!important}
.service-summary-chips{padding-bottom:12px}
.service-summary-chips>span{font-size:11px!important}
@media(max-width:760px){
  .price-type-tabs{grid-template-columns:1fr}
  .price-type-tab{min-height:64px}
  .service-hours-grid{grid-template-columns:1fr}
}

/* ==========================================================
   Snake Plan+ v0.19.0 – universeller Leistungs-Konfigurator
   Druckartikel-Bereich bleibt unverändert.
   ========================================================== */
.service-builder-modal{width:min(980px,94vw);max-width:980px}
.service-option-modal{width:min(760px,94vw);max-width:760px}
.service-builder-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:14px 15px;border:1px solid #2d2d32;border-radius:13px;background:#121214}
.service-builder-intro>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.service-builder-intro strong{font-size:15px;color:#ededf0}
.service-builder-intro span{font-size:12.5px;line-height:1.5;color:#8f8f98}
.service-builder-fields{display:flex;flex-direction:column;gap:12px;max-height:680px;overflow:auto;padding-right:3px}
.service-builder-field{border:1px solid #2b2b30;border-radius:14px;background:#111113;overflow:hidden}
.service-builder-field.is-inactive{opacity:.58}
.service-builder-field-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 16px}
.service-builder-field-head>div:first-child{min-width:0}
.service-builder-field-head h4{margin:6px 0 3px;font-size:16px;color:#ededf0}
.service-builder-field-head p{margin:0 0 6px;font-size:12.5px;line-height:1.45;color:#8a8a93}
.service-builder-field-head small{font-size:12px;color:#c8a95d}
.service-field-type-badge,.service-field-inactive-badge{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border:1px solid #3a3424;border-radius:999px;background:#17140f;color:#d3b66d;font-size:10.5px!important;letter-spacing:.04em!important;text-transform:none!important;font-weight:700}
.service-field-inactive-badge{margin-left:6px;border-color:#3b3030;background:#181212;color:#b98282}
.service-builder-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.service-builder-row-actions .icon-btn:disabled{opacity:.25;cursor:default}
.service-builder-options{border-top:1px solid #242428;background:#0e0e10;padding:10px 12px 12px}
.service-builder-option{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 10px;border:1px solid #29292e;border-radius:10px;background:#141416;margin-bottom:7px}
.service-builder-option.is-inactive{opacity:.55}
.service-builder-option>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.service-builder-option strong{font-size:13.5px;color:#e5e5e8}
.service-builder-option span{font-size:11.5px;color:#8a8a92;line-height:1.35;white-space:normal}
.service-builder-empty-option{padding:10px 4px 12px;color:#777780;font-size:12px}
.service-add-option{margin-top:2px}
.service-option-includes-wrap{display:flex;flex-direction:column;gap:8px}
.service-option-includes-wrap>span{font-size:12px;font-weight:700;color:#bdbdc4}
.service-option-includes-wrap>small{font-size:11.5px;color:#7f7f88;line-height:1.4}
.service-option-includes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.service-option-includes label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid #2c2c31;border-radius:9px;background:#151517;cursor:pointer}
.service-option-includes label span{font-size:12px;color:#dedee2}
.service-option-includes label small{font-size:10px;color:#8b8b94}
.service-option-includes-empty{padding:10px;border:1px dashed #303036;border-radius:9px;color:#777780;font-size:12px}
.service-config-fields{display:flex;flex-direction:column;gap:10px;margin:0 0 14px}
.service-config-field{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #2b2b30;border-radius:11px;background:#141416;min-width:0}
.service-config-field.is-included{border-color:#443b25;background:#17140f}
.service-config-label{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.service-config-label>span{font-size:13px;font-weight:700;color:#d7d7dc}
.service-config-label>b{font-size:11.5px;color:#c7a85c;font-weight:600}
.service-config-field select,.service-config-field input[type=number]{width:100%;height:44px;border:1px solid #35353b;border-radius:9px;background:#19191c;color:#f0f0f2;padding:0 11px;font-size:14px}
.service-config-field select:disabled,.service-config-field input:disabled{opacity:.5}
.service-config-field small{font-size:11.5px;line-height:1.45;color:#85858e}
.service-checkbox-field{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #2b2b30;border-radius:11px;background:#141416;cursor:pointer}
.service-checkbox-field.is-included{border-color:#443b25;background:#17140f}
.service-checkbox-field>input{width:20px;height:20px;accent-color:#c8a65b;flex:0 0 auto}
.service-checkbox-field>span{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0}
.service-checkbox-field b{font-size:13px;color:#e2e2e6}
.service-checkbox-field em{font-style:normal;font-size:12px;color:#cfb164;white-space:nowrap}
.service-fixed-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.service-fixed-field>span{font-size:13px;font-weight:700;color:#dedee2}
.service-fixed-field>strong{font-size:14px;color:#d9b867}
.service-result-box{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding:14px;border:1px solid #3a3322;border-radius:13px;background:#12100d}
.service-result-line{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #28241b}
.service-result-line>span{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:#d2d2d6}
.service-result-line>span small{font-size:10.5px;color:#888890}
.service-result-line>strong{font-size:13px;color:#e4c373;white-space:nowrap}
.service-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}
@media(max-width:760px){.service-builder-modal,.service-option-modal{width:96vw}.service-builder-intro{align-items:stretch;flex-direction:column}.service-builder-field-head,.service-builder-option{flex-direction:column;align-items:stretch}.service-builder-row-actions{justify-content:flex-start}.service-option-includes{grid-template-columns:1fr}.service-result-actions{grid-template-columns:1fr}}

/* v0.19.0 Layout-Fix: ausschließlich Leistungs-Konfigurator.
   Ein Scrollbereich, keine schrumpfenden Feldkarten. */
#serviceBuilderModal[open]{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  width:min(980px,calc(100vw - 24px));
  max-width:980px;
  max-height:min(88vh,calc(100dvh - 24px));
  overflow:hidden;
}
#serviceBuilderModal .modal-head{
  flex:0 0 auto;
  padding:20px 20px 0;
  margin-bottom:16px;
}
#serviceBuilderModal .service-builder-intro{
  flex:0 0 auto;
  margin:0 20px 16px;
}
#serviceBuilderModal .service-builder-fields{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 20px 14px;
  scrollbar-gutter:stable;
}
#serviceBuilderModal .service-builder-field{
  flex:0 0 auto;
  min-height:max-content;
  overflow:visible;
}
#serviceBuilderModal .service-builder-option{
  flex:0 0 auto;
}
#serviceBuilderModal .modal-actions{
  flex:0 0 auto;
  margin:0;
  padding:16px 20px;
  background:#0b0b0d;
}
@media(max-width:760px){
  #serviceBuilderModal[open]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  #serviceBuilderModal .modal-head{padding:15px 14px 0}
  #serviceBuilderModal .service-builder-intro{margin:0 14px 12px}
  #serviceBuilderModal .service-builder-fields{padding:0 14px 12px;scrollbar-gutter:auto}
  #serviceBuilderModal .modal-actions{padding:12px 14px}
}

/* 2026-11-11: Katalogkarten responsive, ohne Aenderung am Konfigurator.
   Surface/kleinere Desktop-Viewports: genau zwei Karten pro Reihe.
   Breite Desktop-Viewports: kompaktes Dreierschema.
   Greift fuer Druckartikel, Leistungen und Favoriten. */
@media (min-width: 761px) and (max-width: 1599px) {
  #priceCatalogMode .price-alpha-product-grid,
  #priceCatalogMode .price-favorite-grid,
  #priceCatalogMode .price-catalog-grid:not(.price-alphabet-groups) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1600px) {
  #priceCatalogMode .price-alpha-product-grid,
  #priceCatalogMode .price-favorite-grid,
  #priceCatalogMode .price-catalog-grid:not(.price-alphabet-groups) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  #priceCatalogMode .price-alpha-product-grid,
  #priceCatalogMode .price-favorite-grid,
  #priceCatalogMode .price-catalog-grid:not(.price-alphabet-groups) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-11-11: Bestaetigter Surface-Fix. Direkter Selektor wie im Chrome-Test.
   Nur Kartenraster, Konfigurator und Kalkulation unveraendert. */
@media (min-width: 761px) and (max-width: 1599px) {
  .price-alpha-product-grid,
  .price-favorite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1600px) {
  .price-alpha-product-grid,
  .price-favorite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 760px) {
  .price-alpha-product-grid,
  .price-favorite-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* Snake Plan+ – breitere Katalogkarten auf Surface */
@media (min-width: 801px) and (max-width: 1599px) {
  .price-alpha-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}