
:root{
  --bg:#F3F4F1; --surface:#FFFFFF; --sunk:#F6F7F5; --ink:#16191C; --muted:#5D646A; --line:#DADDD8;
  --dark:#16191C; --on-dark:#EEF0EC;
  --accent:#E3A500; --accent-ink:#16191C; --accent-text:#8A6400;
  --work:#6D3FD8; --work-soft:#EFE8FD; --ready:#B45309; --ready-soft:#FDF1DE; --ok:#2E7D4F; --ok-soft:#E3F2E8; --bad:#B91C1C;
  --f-display:"Unbounded","Golos Text",system-ui,sans-serif; --f-body:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif; --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
}
html[lang="ka"]{--f-display:"Noto Sans Georgian",system-ui,sans-serif;--f-body:"Noto Sans Georgian",system-ui,sans-serif;--f-mono:"Noto Sans Georgian",system-ui,sans-serif}
html[lang="ka"] *{text-transform:none!important;letter-spacing:normal!important}
html[lang="ka"] h1{font-weight:700}
html[lang="ka"] .status button{font-size:11.5px;overflow-wrap:anywhere;hyphens:auto}
.langsw{display:inline-flex;gap:2px;margin-left:6px;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:2px}
.lpick{display:inline-flex;gap:2px;border:1px solid var(--line);border-radius:8px;padding:2px;background:var(--surface);flex:0 0 auto}
.lpick button{appearance:none;border:0;background:none;color:var(--muted);font:600 13px var(--f-body);padding:6px 10px;border-radius:6px;cursor:pointer}
.lpick button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.langsw button{appearance:none;border:0;background:none;color:inherit;font:600 12px var(--f-body);padding:4px 7px;border-radius:6px;cursor:pointer;opacity:.7}
.langsw button[aria-pressed="true"]{background:rgba(255,255,255,.18);opacity:1}
@media (prefers-color-scheme: dark){:root{
  --bg:#111416; --surface:#1A1E21; --sunk:#151A1C; --ink:#E9ECE8; --muted:#9AA2A8; --line:#2B3135;
  --dark:#0B0D0E; --accent:#F2B829; --accent-text:#F2B829;
  --work:#B79AFB; --work-soft:#2A2142; --ready:#F2B05E; --ready-soft:#33260F; --ok:#5FC88A; --ok-soft:#14301E; --bad:#F87171; color-scheme:dark}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 var(--f-body)}
.bar{background:var(--dark);color:var(--on-dark);padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.bar .in{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{font:700 18px var(--f-display);white-space:nowrap;display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.logo i{width:12px;height:12px;border-radius:3px;background:var(--accent);display:inline-block}
.bar nav{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.bar nav a,.bar nav button{color:#B9C0C5;background:none;border:0;font:500 14px var(--f-body);text-decoration:none;cursor:pointer;padding:6px 8px;border-radius:6px}
.bar nav a:hover,.bar nav button:hover{color:var(--on-dark)}
.in{max-width:1180px;margin:0 auto}
main{padding:20px 16px 64px;display:grid;gap:20px;max-width:1180px;margin:0 auto}
h1{font:700 clamp(22px,4.5vw,32px)/1.15 var(--f-display);margin:0;text-wrap:balance}
h2{font:700 18px/1.2 var(--f-display);margin:0}
.muted{color:var(--muted)}
.eyebrow{font:500 12px var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
/* целая фраза капслоком кричит: для нее оставляем обычный регистр */
.eyebrow.plain{text-transform:none;letter-spacing:.02em;font-size:13px}
.btn{appearance:none;border:0;background:var(--accent);color:var(--accent-ink);border-radius:8px;padding:9px 14px;font:600 14px var(--f-body);cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-block}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn.small{padding:5px 10px;font-size:13px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input,select,textarea{font:15px var(--f-body);color:var(--ink);background:var(--sunk);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:0;width:100%}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:12px;min-width:0}
dialog.panel:not([open]){display:none}
.row-form{display:flex;gap:8px;flex-wrap:wrap}.row-form > *{flex:1 1 160px}.row-form .btn,.row-form .lpick{flex:0 0 auto}

/* login */
.login{max-width:420px;margin:40px auto;display:grid;gap:16px}

/* list */
.plist{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;width:100%;max-width:800px}
.pcard{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:8px;align-content:start;text-decoration:none;color:inherit;overflow-wrap:anywhere}
.pcard>*{min-width:0;max-width:100%;box-sizing:border-box}
.pcard .chips{min-width:0}
.pcard .chip{min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.pcard .meter{width:100%;min-width:0}
.pcard:hover{border-color:var(--accent)}
.pcard.arch{opacity:.6}
.pcard h3{margin:0;font:600 17px var(--f-body)}
.meter{height:6px;border-radius:3px;background:var(--line);overflow:hidden}.meter i{display:block;height:100%;background:var(--ok)}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
.chip{font:500 12px var(--f-mono);padding:3px 8px;border-radius:999px;background:var(--sunk);border:1px solid var(--line);color:var(--muted);white-space:nowrap}
.chip.warn{background:var(--ready-soft);color:var(--ready);border-color:transparent}
.chip.role{font-family:var(--f-body)}

/* summary */
.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:grid;gap:4px}
.tile .k{font:500 11px var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tile .v{font:600 21px var(--f-body);font-variant-numeric:tabular-nums}
.tile .s{font-size:13px;color:var(--muted)}
.over{color:var(--bad)}

/* cards */
.toolbar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:13px;color:var(--muted)}
.toolbar label{display:inline-flex;gap:6px;align-items:center;cursor:pointer}
.toolbar input{width:auto}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;align-items:start}
@media (max-width:420px){.cards{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.card.accepted{border-color:var(--ok)}
.c-head{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:14px 16px 10px}
.num{font:700 24px/1 var(--f-display);color:var(--accent-text);min-width:1.3em}
.card.accepted .num{color:var(--ok)}
.c-title{margin:0;font:600 16px/1.25 var(--f-body)}
.c-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.status{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:0 16px 12px}
.status button{appearance:none;border:1px solid var(--line);background:var(--sunk);color:var(--muted);border-radius:8px;padding:8px 2px;font:500 12px/1.2 var(--f-body);cursor:pointer;min-width:0}
.status button:disabled{cursor:default;opacity:.5}
.status button[aria-pressed="true"]{opacity:1}
.status .todo[aria-pressed="true"]{background:var(--line);color:var(--ink)}
.status .work[aria-pressed="true"]{background:var(--work-soft);color:var(--work);border-color:var(--work)}
.status .ready[aria-pressed="true"]{background:var(--ready-soft);color:var(--ready);border-color:var(--ready)}
.status .acc[aria-pressed="true"]{background:var(--ok-soft);color:var(--ok);border-color:var(--ok)}
.upd{font-size:12px;color:var(--muted);padding:0 16px 10px;margin-top:-4px}
.status button .sg{display:block;font:400 11px/1.25 var(--f-body);margin-top:3px;opacity:.9;overflow-wrap:anywhere}
.shint{font-size:13px;padding:0 16px 10px;margin-top:-4px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.team{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tm{display:inline-flex;align-items:center;gap:4px;font-size:13px;padding:3px 4px 3px 10px;border-radius:999px;background:var(--sunk);border:1px solid var(--line)}
.tm.lead{border-color:var(--work)}
.tm .lb{font:500 10px var(--f-mono);text-transform:uppercase;color:var(--work)}
.tm button{appearance:none;border:0;background:none;color:var(--muted);cursor:pointer;font-size:12px;padding:2px 6px;border-radius:999px}
.tm button:hover{background:var(--line);color:var(--ink)}
.block{border-top:1px solid var(--line);padding:12px 16px;display:grid;gap:8px;min-width:0}
.bl-h{font:500 11px var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.money{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;font-variant-numeric:tabular-nums}
.money input{width:110px}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:6px}
.ph{appearance:none;border:0;padding:0;border-radius:6px;overflow:hidden;aspect-ratio:1;background:var(--sunk);cursor:pointer}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
.addph{aspect-ratio:1;border:1px dashed var(--line);border-radius:6px;display:grid;place-items:center;color:var(--accent-text);font-size:24px;cursor:pointer}
.addph input{display:none}
.defects{list-style:none;margin:0;padding:0;display:grid;gap:4px}
/* FLEGO Check 0.5 */
.defects2{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.defects2 li{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:4px;background:var(--surface)}
.defects2 li.done{opacity:.75}.defects2 li.done .dtxt{text-decoration:line-through;color:var(--muted)}
.defects2 li.crit{border-color:var(--bad)}
.dtop{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.dtop .x{margin-left:auto}
.dtxt{font-size:15px}
.dst{display:block;font-size:13px;color:var(--muted)}.dst.ok{color:var(--ok)}.dst.wait{color:var(--ready)}
.sev{font:600 11px var(--f-body);padding:2px 8px;border-radius:999px;white-space:nowrap}
.sev.s1{background:var(--sunk);color:var(--muted)}.sev.s2{background:var(--ready-soft);color:var(--ready)}.sev.s3{background:var(--bad);color:#fff}
.dacts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}
.fileb{cursor:pointer}
.defadd{display:grid;gap:6px}
.critb{background:var(--bad);color:#fff;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600}
.xph{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.ph.sm{width:56px;height:56px}.ph.sm img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.addph.sm{width:56px;height:56px;display:grid;place-items:center}
.phw{position:relative}.phw .x{position:absolute;top:-6px;right:-6px;background:var(--surface);border-radius:50%}
.rep{border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:var(--surface)}
.rep>summary{padding:10px 12px;cursor:pointer;font-size:14px}
.rep-b{padding:0 12px 12px;display:grid;gap:8px}
.rep-m,.rep-ind,.rep-foot{margin:0;font-size:13px;color:var(--muted)}
.rep-warn{margin:0;font-size:14px;color:var(--ready);font-weight:600}
.res.ok{color:var(--ok)}.res.issues{color:var(--bad)}.res.partial,.res.failed{color:var(--ready)}
.ritems,.rdefs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ri{display:grid;grid-template-columns:110px 1fr;gap:8px;font-size:14px}
.ri .mk{font-size:12px;font-weight:600}.ri.ok .mk{color:var(--ok)}.ri.bad .mk{color:var(--bad)}.ri.skip .mk{color:var(--ready)}.ri.na .mk{color:var(--muted)}
.rnote,.rnow{font-size:13px;color:var(--muted)}
.rsum{margin:0;white-space:pre-wrap;font-size:15px}
.rep>summary{display:grid;gap:2px}
.rh{font-size:15px}.rk{font-size:13px;color:var(--muted)}
.resb{font:600 12px var(--f-body);padding:2px 8px;border-radius:999px;margin-left:4px;white-space:nowrap}
.resb.ok{background:var(--ok-soft);color:var(--ok)}.resb.issues{background:var(--bad);color:#fff}.resb.partial,.resb.failed{background:var(--ready-soft);color:var(--ready)}
.ritems2{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ri2{display:grid;grid-template-columns:22px 1fr;gap:8px;font-size:15px;align-items:start}
.ri2 .ic{font-weight:700;text-align:center;line-height:1.5}
.ri2.ok .ic{color:var(--ok)}.ri2.bad .ic{color:var(--bad)}.ri2.skip .ic{color:var(--ready)}.ri2.na .ic,.ri2.na .rl{color:var(--muted)}
.ri2.bad .rl{font-weight:600}
.dst.bad{color:var(--bad);display:inline}.rnow .dst{display:inline}
.rmore>summary{font-size:13px;color:var(--muted);cursor:pointer}
.rmore{display:grid;gap:6px}

.hash{font:12px var(--f-mono)}
.insp-ed .coi input{width:auto;flex:none}
.insp-ed{border:2px dashed var(--line);border-radius:10px;padding:12px;display:grid;gap:10px;margin-bottom:8px}
.ie-h{font-size:14px}
.iitems{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ii{display:grid;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.ii-top{display:flex;gap:6px}.ii-l{flex:1}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg label{display:inline-flex}.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:13px;cursor:pointer;background:var(--surface)}
.seg input:checked+span{border-color:var(--accent);background:var(--accent-soft,rgba(227,165,0,.14));font-weight:600}
.seg input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:520px){.ri{grid-template-columns:1fr}}

.defects li{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}
.defects input{width:auto;margin-top:4px}
.defects li.done span{text-decoration:line-through;color:var(--muted)}
.x{appearance:none;background:none;border:0;color:var(--muted);cursor:pointer;font-size:16px;padding:0 4px}
textarea{min-height:56px;resize:vertical}
.fixed .r{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:10px 16px;border-top:1px solid var(--line);font-size:14px}
.fixed dt{font:500 11px var(--f-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.fixed dd{margin:0}
.fixed .risk{background:var(--ready-soft)}.fixed .risk dt,.fixed .risk dd{color:var(--ready)}
details.more{border-top:1px solid var(--line)}
details.more summary{padding:10px 16px;cursor:pointer;color:var(--accent-text);font-size:13px}
@media (max-width:440px){.fixed .r{grid-template-columns:1fr;gap:2px}}
.fixed ul{margin:0;padding-left:1.1em}

.table-wrap{overflow-x:auto}
.fin-est{min-width:120px;width:140px}.fin-meta{display:grid;gap:6px;min-width:180px}.fin-mat{margin:12px 0}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
th,td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line)}
th{font:500 11px var(--f-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ulist{list-style:none;margin:0;padding:0;display:grid}.ulist li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.ulist .acts{display:flex;gap:6px;flex-wrap:wrap}
.linkbox{display:flex;gap:8px;align-items:center;background:var(--ok-soft);border-radius:8px;padding:10px;font:13px var(--f-mono);word-break:break-all}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:8px;font-size:14px;max-width:calc(100% - 32px);z-index:20}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:16px;z-index:10}
.lightbox img{max-width:100%;max-height:72vh;border-radius:6px}
.lightbox .lb{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;display:flex;gap:8px}
.lb-bottom{position:absolute;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:12px;right:12px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font-size:13px}.lb-bottom span{max-width:760px;text-align:center}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:8px 0}.photo-card{margin:0;min-width:0}.photo-card .ph{width:100%;height:115px}.photo-card figcaption{font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.lightbox button{background:#0009;color:#fff;border:1px solid #fff6;border-radius:6px;padding:6px 12px;font:500 13px var(--f-body);cursor:pointer}
[hidden]{display:none!important}
.helpopts{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.helpopts>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.helpopts .role-help{margin:0}.helpopts .sent{margin:0;font-weight:600;color:var(--ok,#2E7D4F)}
.cstep{border-top:1px dashed var(--line);padding:0}.cstep:first-of-type{border-top:0}
.cstep>summary{display:grid;grid-template-columns:28px 1fr 20px;gap:10px;align-items:center;padding:12px 0;cursor:pointer;list-style:none}
.cstep>summary::-webkit-details-marker{display:none}.cstep .cc{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--muted)}
.cstep.cur .cc{border-color:var(--accent);color:var(--accent-text)}.cstep.done .cc{background:var(--ok);border-color:var(--ok);color:#fff}
.cstep .step-body{padding:0 0 12px 38px}.cstep .why{font-size:14px;color:var(--muted)}.cstep .step-arrow{color:var(--accent-text);transition:transform .15s}.cstep[open] .step-arrow{transform:rotate(180deg)}

/* Original FLEGO brandbook logo; vector outlines, no font dependency. */
.logo{flex-shrink:0;gap:0;min-width:140px;padding-block:14px;margin-right:14px}.logo .brand-logo{display:block;width:140px;height:auto;max-width:none}
@media(max-width:520px){.bar .in{flex-wrap:wrap}.bar nav{width:100%;justify-content:flex-start}}
.pcard .pro-info>div{grid-template-columns:190px minmax(0,1fr)}.project-identity h1{font-size:24px;margin:0}.project-identity dt{align-self:start}.pro-info{margin:0;display:grid;gap:8px}.pro-info>div{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px}.pro-info dt{color:var(--muted,#5d646a)}.pro-info dt:after{content:":"}.pro-info dd{margin:0;overflow-wrap:anywhere}.pro-identity h1{font-size:24px;margin:0 0 16px}.pro-project-card .pro-info a{color:inherit;font-weight:700}@media(max-width:540px){.pcard .pro-info>div,.pro-info>div{grid-template-columns:1fr;gap:2px}}
.stage-line{display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}.stage-link{flex:1;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px 12px 18px 16px;min-width:0;color:inherit;text-decoration:none}.stage-link b{font-size:16px}.stage-link .num{font-size:20px;color:var(--muted)}.stage-current{background:#f1f6f2;border-color:#bdcfbf}.stage-omitted .stage-link{color:var(--muted)}.stage-menu-slot{width:48px;flex:none}.stage-menu{position:relative}.stage-menu>summary{list-style:none;cursor:pointer;font-size:26px;text-align:center;border-radius:6px;width:40px;line-height:40px;color:var(--muted)}.stage-menu>summary::-webkit-details-marker{display:none}.stage-menu>summary:hover,.stage-menu>summary:focus-visible{background:var(--line)}.stage-menu-items{position:absolute;right:6px;top:42px;z-index:20;min-width:230px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 5px 18px #0002}.stage-menu-items button{display:block;width:100%;text-align:left;background:transparent;border:0;padding:12px;color:var(--ink);font:inherit;cursor:pointer;border-radius:6px}.stage-menu-items button:hover,.stage-menu-items button:focus-visible{background:var(--bg,#f3f4f1)}.stage-menu-items button:disabled{opacity:.5}@media(max-width:540px){.stage-link{grid-template-columns:24px minmax(0,1fr);gap:6px 10px;padding:14px 8px 14px 12px}.stage-link .spill{grid-column:2;justify-self:start}.stage-menu-slot{width:44px}.stage-link b{font-size:15px}}
.progress-circle{border-radius:50%;display:inline-grid;place-items:center;width:32px;height:32px;font-weight:700;flex:none}.stage-link .progress-circle,.cstep .cc.progress-circle{color:#fff;border:0}.progress-circle.progress-red,.cstep .cc.progress-red{background:#a94343}.progress-circle.progress-yellow,.cstep .cc.progress-yellow{background:#edca68;color:#493700!important}.progress-circle.progress-green,.cstep .cc.progress-green{background:#2b7b50}.progress-circle.progress-grey,.cstep .cc.progress-grey{background:#777d80}.progress-label.progress-red{background:#f6e8e8;color:#8d3030}.progress-label.progress-yellow{background:#fff1c8;color:#715300}.progress-label.progress-green{background:#e1f0e6;color:#21643f}.progress-label.progress-grey{background:#e8eaeb;color:#555d60}.step-state{display:block;font-size:12px;font-weight:400;margin-top:3px}.progress-text-red{color:#8d3030}.progress-text-yellow{color:#715300}.progress-text-green{color:#21643f}.progress-text-grey{color:#555d60}

/* FLEGO: навигация — открытые разделы в несколько строк на любой ширине */
.ptabs{flex-wrap:wrap;overflow-x:visible;row-gap:5px;position:relative;top:auto;scrollbar-width:auto}
.ptabs .wide-tab{display:inline-flex!important}
@media(max-width:440px){.ptabs{gap:3px}.ptabs a{padding:8px 9px;font-size:13px}}
#project-delete-dialog::backdrop{background:rgba(10,15,20,.52)}

/* FLEGO 4.0.4: compact customer inspection — RU pilot */
.initial-404-choice{display:grid;gap:14px;min-width:0;margin-top:15px}
.initial-404-choice h3,.initial-404-choice p{margin:0}
.initial-404-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.initial-404-card{border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:12px;align-content:start;background:var(--card,transparent)}
.initial-404-card b{font-size:1.06rem}.initial-404-card p{font-size:.92rem;color:var(--muted,#676d73);line-height:1.5}
.initial-404-card .btn{justify-self:start;min-height:42px}
.initial-404-expert{border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:12px;min-width:0}
.initial-404-expert[hidden],#initial-record-editor[hidden],[data-initial-section][hidden]{display:none!important}
.initial-404-wizard-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.initial-404-wizard-head h3{margin:0}
#initial-record-form{display:grid;gap:14px;max-width:700px}
#initial-record-form .initial-checklist{border:0;padding:0;margin:0}
#initial-record-form .initial-checklist>summary{display:none}
#initial-record-form .initial-checklist>.role-help{display:none}
#initial-record-form .initial-category{padding:0;border:0}
#initial-record-form .initial-category>summary{display:none}
#initial-record-form .initial-category-fields{margin-top:0}
.initial-404-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.initial-404-actions .btn{min-height:40px}
@media(max-width:600px){.initial-404-options{grid-template-columns:1fr}.initial-404-card{padding:14px}.initial-404-actions .btn{flex:1 1 120px;min-height:46px}}

/* FLEGO 4.0.4: gentle progress and contextual interior photo (existing site asset). */
.initial-404-choice[hidden]{display:none!important}
.initial-404-hero{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:16px}
.initial-404-hero img{display:block;width:120px;height:106px;object-fit:cover;border-radius:13px}
.initial-404-hero h3{margin:0 0 7px;font-size:1.15rem}
.initial-404-hero .role-help{margin:0;line-height:1.48}
.initial-404-progress{height:6px;overflow:hidden;background:#e6e6e6;border-radius:10px}
.initial-404-progress span{display:block;height:100%;width:0;background:#d6a12c;transition:width .25s ease;border-radius:10px}
.initial-404-encouragement{font-size:.9rem;line-height:1.45;color:var(--muted,#616971);margin:0}
.initial-404-encouragement:empty{display:none}
#initial-record-form .initial-category-fields{display:grid;gap:9px}
#initial-record-form .initial-category:not([hidden]){display:block;border:1px solid var(--line,#ddd);border-radius:12px;padding:13px;margin:0 0 10px}
#initial-record-form .initial-404-item-title{font-size:1rem;line-height:1.35;margin:0;font-weight:650}
#initial-record-form .initial-category-fields>[hidden]{display:none!important}
#initial-record-form .initial-category-fields .initial-404-more{justify-self:start;line-height:1.4}
.initial-404-expert-inline{justify-self:start;text-align:left}
@media(max-width:600px){.initial-404-hero{grid-template-columns:84px minmax(0,1fr);gap:12px}.initial-404-hero img{width:84px;height:96px}}
@media(prefers-reduced-motion:reduce){.initial-404-progress span{transition:none}}

/* FLEGO 4.0.5 – client home only. Other roles and tabs remain intact. */
.customer405-shell{max-width:1000px;margin:0 auto;display:grid;gap:20px}
.customer405-back{display:inline-flex;align-items:center;gap:8px;min-height:40px;justify-self:start;color:var(--muted);font-size:13px;text-decoration:none}
.customer405-back:hover{color:var(--ink)}
.customer405-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:0;background:#F8F5EB;color:#212322;border:1px solid #E6E0D3;border-radius:22px;overflow:hidden;min-height:330px;box-shadow:0 9px 28px rgba(22,25,28,.06)}
.customer405-hero-text{padding:clamp(26px,4.5vw,56px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px;min-width:0}
.customer405-kicker{font:700 11px/1.4 var(--f-mono);letter-spacing:.10em;color:#83621E;text-transform:uppercase}
.customer405-hero h1{font:700 clamp(24px,3.3vw,39px)/1.22 var(--f-display);margin:0;letter-spacing:-.02em;max-width:560px}
.customer405-hero p{margin:0;max-width:500px;font-size:15px;line-height:1.65;color:#5F5B54}
.customer405-property{font-weight:600;font-size:14px;color:#393D3C;overflow-wrap:anywhere}
.customer405-hero-media{margin:0;position:relative;min-width:0;min-height:310px;overflow:hidden}
.customer405-hero-media img{display:block;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}
.customer405-hero-media figcaption{position:absolute;right:12px;bottom:12px;font-size:11px;background:rgba(255,255,255,.90);padding:5px 10px;border-radius:40px;color:#555A55;backdrop-filter:blur(8px)}
.customer405-status{display:inline-flex;gap:7px;align-items:center;padding:6px 11px;border-radius:30px;background:#EDE6D5;color:#6C5426;font-size:12px;font-weight:600}
.customer405-status .customer405-dot{height:7px;width:7px;border-radius:100%;background:#BB8719}
.customer405-main{padding:26px 28px;background:var(--surface);border:1px solid var(--line);border-radius:19px;box-shadow:0 3px 12px rgba(0,0,0,.015)}
.customer405-main h2,.customer405-actions h2{font:700 clamp(19px,2.25vw,24px)/1.35 var(--f-display);margin:0 0 10px}
.customer405-main>p,.customer405-actions>p{font-size:14px;color:var(--muted);margin:0 0 22px;line-height:1.65}
.customer405-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.customer405-choice{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid var(--line);padding:19px;border-radius:15px;color:var(--ink);text-decoration:none;background:var(--surface);min-width:0;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
.customer405-choice:hover{border-color:#DBA400;transform:translateY(-2px);box-shadow:0 5px 16px #0000000c}
.customer405-choice:focus-visible,.customer405-menu a:focus-visible,.customer405-link:focus-visible{outline:3px solid #D5A100;outline-offset:3px}
.customer405-choice .customer405-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#F8EECF;color:#9C7413}
.customer405-choice svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
.customer405-choice b{font-size:16px;line-height:1.35}
.customer405-choice small{font-size:13px;color:var(--muted);line-height:1.5;flex:1}
.customer405-choice .customer405-cta{font-size:13px;font-weight:700;color:#946900}
.customer405-choice.secondary .customer405-icon{background:#EDF2EB;color:#44705A}
.customer405-choice.secondary .customer405-cta{color:#316649}
.customer405-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;font-size:13px}
.customer405-links a{color:#926900;text-underline-offset:4px}
.customer405-subtext{font-size:12px;color:var(--muted);margin:13px 0 0;line-height:1.55}
.customer405-actions{padding:23px 27px;background:#fff;border:1px solid #E0C994;border-radius:17px;box-shadow:0 2px 10px #00000005}
.customer405-actions h2{font-size:19px}
.customer405-action-list{display:grid;gap:9px}
.customer405-action{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:55px;text-decoration:none;border:1px solid #E2DBCC;border-radius:11px;color:#232626;padding:12px 15px;background:#fff;font-size:14px;font-weight:600}
.customer405-action:hover{border-color:#D1A644}
.customer405-action small{display:block;color:var(--muted);font-weight:400;line-height:1.5}
.customer405-more{border:0;background:none;padding:8px 0;text-align:left;color:#876219;cursor:pointer;font-size:13px;font-weight:600}
.customer405-next{display:flex;gap:14px;align-items:center;padding:17px 20px;border:1px solid var(--line);border-radius:15px;background:var(--surface);min-width:0}
.customer405-next span{font-size:12px;color:var(--muted);display:block}
.customer405-next b{font-size:16px;line-height:1.4;display:block;margin:3px 0}
.customer405-next a{color:#8E6610;text-underline-offset:3px;font-size:13px}
.customer405-next svg{flex:0 0 34px;color:#C08A16;stroke-width:1.5}
.customer405-footer{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.customer405-footer>summary{padding:19px 23px;cursor:pointer;font:600 15px var(--f-body);min-height:56px}
.customer405-menu{padding:2px 23px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.customer405-menu a{min-height:56px;padding:14px 12px;background:var(--sunk);border-radius:11px;text-decoration:none;color:var(--ink);font-size:13px;font-weight:600;display:flex;align-items:center;gap:10px}
.customer405-menu a:hover{background:#F5EBD4}
.customer405-menu svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none;flex:none}
.customer405-quiet{font-size:12px;color:var(--muted);padding:0 5px}
.customer405-quiet a{color:inherit;text-underline-offset:3px}
.customer405-recent>summary{font-weight:600;cursor:pointer}
.customer405-recent{padding:14px 22px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.customer405-recent .hist{margin-top:12px}
@media(max-width:760px){.customer405-shell{gap:15px}.customer405-hero{grid-template-columns:1fr;min-height:0}.customer405-hero-text{padding:24px 23px 26px;gap:12px}.customer405-hero h1{font-size:clamp(24px,6vw,33px)}.customer405-hero-media{min-height:195px;order:-1}.customer405-main{padding:22px 18px}.customer405-choices{grid-template-columns:1fr}.customer405-choice{padding:17px}.customer405-menu{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 18px}.customer405-footer>summary{padding:17px}.customer405-actions{padding:20px 18px}.customer405-next{align-items:flex-start}}
@media(max-width:400px){.customer405-menu{grid-template-columns:1fr}.customer405-hero-media{min-height:165px}}
@media(prefers-reduced-motion:reduce){.customer405-choice{transition:none}.customer405-choice:hover{transform:none}}
@media(prefers-color-scheme:dark){.customer405-hero{background:#27231C;color:#F3EFE3;border-color:#4E473B}.customer405-hero p{color:#D2C9B8}.customer405-property{color:#E5DFD2}.customer405-status{background:#403727;color:#ECCB7C}.customer405-main,.customer405-actions{background:var(--surface)}.customer405-choice{background:var(--surface)}.customer405-choice .customer405-icon{background:#3D3420}.customer405-choice.secondary .customer405-icon{background:#21392E}.customer405-hero-media figcaption{background:#1B1D1DD9;color:#FAF9F5}.customer405-action{background:var(--surface);border-color:var(--line);color:var(--ink)}}


/* FLEGO 4.0.6 — only the client landing: next action + one expandable section. */
.customer405-shell{gap:15px}
.customer405-main{padding:18px 20px;border-radius:16px}
.customer405-main h2{font-size:19px;margin:0 0 8px}
.customer405-main>p{font-size:13px;margin:0 0 14px}
.customer405-choices{gap:11px}
.customer405-choice{padding:15px 16px;gap:7px;min-height:150px}
.customer405-choice .customer405-icon{width:35px;height:35px;border-radius:11px}
.customer405-choice .customer405-icon svg{width:19px;height:19px}
.customer405-choice b{font-size:15px}
.customer405-choice small{font-size:12px;line-height:1.4}
.customer405-choice .customer405-cta{display:inline-flex;justify-content:center;align-items:center;min-height:37px;padding:8px 14px;margin-top:6px;background:#E8A800;color:#171916;border-radius:9px;font-size:13px}
.customer405-choice.secondary .customer405-cta{background:#EAF0E8;color:#22593B}
.customer405-choice:focus-visible{outline:3px solid #B68306;outline-offset:2px}
.customer405-footer{border-radius:12px}
.customer405-footer>summary{display:flex;align-items:center;justify-content:space-between;padding:12px 17px;min-height:46px;font-size:14px;list-style:none;user-select:none}
.customer405-footer>summary::-webkit-details-marker{display:none}
.customer405-footer>summary::after{content:'⌄';color:var(--muted);font-size:22px;font-weight:400;line-height:1;transition:transform .12s ease}
.customer405-footer[open]>summary::after{transform:rotate(180deg)}
.customer405-footer>summary:focus-visible{outline:3px solid #B68306;outline-offset:-3px}
.customer405-menu{padding:5px 15px 15px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.customer405-menu a{min-height:48px;padding:10px;border:1px solid var(--line);font-size:12px;border-radius:9px}
.customer405-menu svg{width:17px;height:17px}
.customer405-links{margin-top:10px;font-size:12px}
.customer405-back{font-size:12px;min-height:30px}
@media(max-width:760px){.customer405-main{padding:16px}.customer405-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.customer405-choice{padding:12px;min-height:155px}.customer405-choice .customer405-cta{margin-top:auto;padding:8px 9px}.customer405-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:6px 11px 13px}.customer405-menu a{flex-direction:column;justify-content:center;text-align:center;padding:9px 4px;gap:5px;font-size:11px}}
@media(max-width:390px){.customer405-choice{min-height:166px}.customer405-choice b{font-size:14px}.customer405-choice small{font-size:11px}.customer405-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.customer405-footer>summary::after{transition:none}}
/* FLEGO 4.1 — ONE coherent customer layout (replaces patches 4.0.8–4.0.10).
   Customer-only. Shared header/sidebar/content grid; no nested phantom margins. */
body.flego-customer409 .bar{padding:12px max(20px,env(safe-area-inset-right,0px)) 12px max(20px,env(safe-area-inset-left,0px))}
body.flego-customer409 .bar .in{max-width:1220px;width:100%;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:47px}
body.flego-customer409 .bar nav{display:flex;align-items:center;gap:8px}
body.flego-customer409 .bar nav a,body.flego-customer409 .bar nav button{min-height:38px;display:inline-flex;align-items:center;justify-content:center}
#app.customer409-page{box-sizing:border-box;width:100%;max-width:1260px;margin:0 auto;padding:24px 20px 88px;display:grid;grid-template-columns:218px minmax(0,1fr);align-items:start;gap:20px}
#app.customer409-page>.customer409-sidebar,#app.customer409-page>.customer409-workspace{margin:0;min-width:0;align-self:start}
.customer409-sidebar{position:sticky;top:18px;display:grid;gap:14px;padding:15px 12px;border:1px solid var(--line);background:var(--surface);border-radius:16px;max-height:calc(100vh - 36px);overflow-y:auto}
.customer409-identity{display:block;text-decoration:none;color:var(--ink);padding:4px 8px 11px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.customer409-identity strong{font:700 12px/1.5 var(--f-body);display:block}
.customer409-identity small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.customer409-nav{display:grid;gap:3px}
.customer409-nav a{display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 10px;border-radius:10px;text-decoration:none;color:var(--ink);font-weight:500;font-size:13px;line-height:1.3}
.customer409-nav a svg{width:19px;height:19px;flex:0 0 19px;color:var(--muted)}
.customer409-nav a:hover{background:var(--sunk)}
.customer409-nav a[aria-current="page"]{background:#F7EBC8;color:#392B0A;font-weight:700}
.customer409-nav a[aria-current="page"] svg{color:#896014}
.customer409-workspace{display:flex;flex-direction:column;gap:15px;width:100%;min-width:0}
.customer409-workspace>*{max-width:100%;width:100%;min-width:0;box-sizing:border-box;margin:0}
.customer409-workspace>.customer405-shell,.customer409-workspace>.initial-screen{max-width:none;width:100%;margin:0}
.customer409-workspace .customer405-shell{gap:15px}
.customer409-topline{display:none}
.customer409-bottom,.customer409-more{display:none}
.customer409-nav a:focus-visible,.customer409-bottom a:focus-visible,.customer409-bottom button:focus-visible,.customer409-more a:focus-visible,.customer409-more button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#app.customer410-list .plist,#app.customer410-list>.panel{max-width:none;width:100%}
/* Same rule for old stage and page content: avoid cards with incidental margins. */
#app.customer409-page .customer409-workspace>.panel:first-of-type{margin-top:0}
.customer411-property{display:grid;gap:3px;margin:0 0 4px;max-width:100%}
.customer411-property strong{font-size:14px;color:#333630;line-height:1.3;overflow-wrap:anywhere}
.customer411-property span{font-size:13px;color:#69675F;line-height:1.3;overflow-wrap:anywhere}
.customer405-hero .customer405-kicker{display:none}
.customer405-hero-text{justify-content:center;gap:15px}
.customer405-hero .customer405-status{order:1}
.customer405-hero h1{order:2}
.customer405-hero p{order:3}
/* Stage 0 is a functional workspace, not a second copy of the homepage sales cards. */
.f41-initial{gap:18px;padding:24px;align-content:start}
.f41-initial-header{display:grid;gap:8px}
.f41-initial-header h2{font:700 clamp(21px,2.3vw,26px)/1.25 var(--f-display);margin:0}
.f41-initial-header p{font-size:14px;color:var(--muted);margin:0;line-height:1.55}
.f41-initial-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:var(--sunk);font-size:13px}
.f41-initial-state strong{font-weight:700}
.f41-initial-state span{color:var(--muted)}
.f41-initial-actions{display:grid;gap:10px}
.f41-initial-actions h3{font:700 16px/1.4 var(--f-body);margin:0}
.f41-initial-buttons{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.f41-initial-buttons .btn{min-height:43px;display:inline-flex;align-items:center;padding:9px 14px}
.f41-initial-buttons .linkbtn{padding:10px 3px;min-height:42px}
.f41-initial-help{font-size:12px;color:var(--muted);line-height:1.55;margin:0}
.f41-initial .initial-404-choice{margin-top:0;display:grid;gap:12px}
.f41-initial .initial-404-choice[hidden]{display:none!important}
.f41-initial #initial-expert-panel{margin-top:5px}
.f41-initial #initial-record-editor:not([hidden]){border-top:1px solid var(--line);padding-top:14px}
.f41-initial .initial-404-wizard-head{max-width:700px}
@media(max-width:1080px) and (min-width:821px){body.flego-customer409 .bar{padding-inline:16px}#app.customer409-page{grid-template-columns:186px minmax(0,1fr);gap:14px;padding-inline:16px}.customer409-sidebar{padding:12px 8px}.customer409-nav a{gap:8px;padding:8px;font-size:12px}.customer409-identity{padding:4px 8px 10px}}
@media(max-width:820px){
 body.flego-customer409 .bar{padding-inline:16px}
 #app.customer409-page{display:block;max-width:100%;padding:18px 16px calc(96px + env(safe-area-inset-bottom,0px))}
 .customer409-sidebar{display:none}
 .customer409-workspace{gap:12px}
 .customer409-topline{display:none}
 .customer409-bottom{position:fixed;z-index:103;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;left:0;right:0;bottom:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -5px 22px #0000000c}
 .customer409-bottom a,.customer409-bottom button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:54px;padding:6px 3px;border:0;border-radius:10px;background:transparent;text-decoration:none;color:var(--muted);font:600 11px/1.25 var(--f-body);cursor:pointer}
 .customer409-bottom svg{height:22px;width:22px}
 .customer409-bottom a[aria-current="page"],.customer409-bottom button.is-current{background:#F7EBC8;color:#392B0A}
 .customer409-more:not([hidden]){display:grid;position:fixed;z-index:102;inset:0;grid-template-rows:minmax(0,1fr) auto}
 .customer409-more-backdrop{border:0;background:rgba(12,16,18,.4);cursor:pointer;width:100%;height:100%}
 .customer409-more-panel{background:var(--surface);border-radius:20px 20px 0 0;padding:17px 16px calc(86px + env(safe-area-inset-bottom,0px));max-height:84vh;overflow:auto;box-shadow:0 -12px 40px #00000023}
 .customer409-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
 .customer409-more-head strong{font-size:16px}
 .customer409-more-head button{border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);min-height:36px;padding:5px 12px}
 .customer409-more-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .customer409-more-links a{display:flex;align-items:center;gap:9px;padding:12px 10px;min-height:52px;color:var(--ink);text-decoration:none;background:var(--sunk);border:1px solid var(--line);border-radius:11px;font-size:13px;font-weight:600}
 .customer409-more-links a svg{height:19px;width:19px;flex:0 0 19px}
 .customer409-more-links a[aria-current="page"]{border-color:var(--accent);background:#F7EBC8;color:#392B0A}
 .f41-initial{padding:18px;gap:13px}
}
@media(max-width:620px){body.flego-customer409 .bar .in{flex-wrap:nowrap;gap:5px}body.flego-customer409 .bar .logo{min-width:100px;padding-block:7px;margin-right:0}body.flego-customer409 .bar .brand-logo{width:100px;height:auto}body.flego-customer409 .bar nav{width:auto;flex-wrap:nowrap;gap:0;align-items:center}body.flego-customer409 .bar nav a[href="#apartments"]{display:none}body.flego-customer409 .bar nav a,body.flego-customer409 .bar nav button{font-size:11px;padding:4px}body.flego-customer409 .langsw{margin-left:2px;padding:1px;gap:0}body.flego-customer409 .langsw button{font-size:10px;padding:3px}}
@media(max-width:390px){.customer409-more-links a{font-size:12px;padding:10px 7px}.f41-initial-buttons .btn{width:100%;justify-content:center}.customer411-property strong{font-size:13px}}
@media(prefers-color-scheme:dark){.customer409-nav a[aria-current="page"],.customer409-bottom a[aria-current="page"],.customer409-bottom button.is-current,.customer409-more-links a[aria-current="page"]{background:#3D331B;color:#F1D88D}.customer409-nav a[aria-current="page"] svg{color:#E8BD51}.customer411-property strong{color:#F4F0E5}.customer411-property span{color:#CAC7C0}}

/* FLEGO 4.2 — customer journey, shared grid. Staging RU prototype. */
#app.customer409-page > .customer409-sidebar,
#app.customer409-page > .customer409-workspace{margin-block:0!important;transform:none!important;align-self:start!important}
#app.customer409-page .customer409-workspace>.customer405-shell,
#app.customer409-page .customer409-workspace>.c42-deck{margin:0!important;max-width:none!important;min-width:0;width:100%;align-self:start;padding:0;transform:none}
#app.customer409-page .customer409-workspace>.customer405-shell>.customer405-hero,
#app.customer409-page .customer409-workspace>.c42-deck>.c42-stage-frame{margin-top:0!important}
/* Both columns always begin on the same horizontal baseline. */
#app.customer409-page{align-items:start!important;grid-auto-rows:auto}
.customer405-hero .customer411-property{order:0}
.customer405-hero .c42-hero-flag{order:1}
.customer405-hero h1{order:2}
.customer405-hero p{order:3}
.customer405-hero .c42-home-summary{order:4}
.c42-hero-flag{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;color:#846420;background:#EEE7D7;border-radius:999px;padding:5px 11px}
.c42-hero-flag i{width:7px;height:7px;border-radius:100%;background:#B68417;display:inline-block}
.c42-home-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;color:var(--muted);font-size:13px}
.c42-home-summary b{color:var(--ink)}
.c42-next{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:23px;display:grid;gap:12px}
.c42-next h2{font:700 clamp(19px,2vw,22px)/1.25 var(--f-display);margin:0}
.c42-next p{margin:0;font-size:14px;color:var(--muted);line-height:1.5}
.c42-next-list{display:grid;gap:9px}
.c42-next-row{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid var(--line);border-radius:12px;text-decoration:none;background:var(--surface);color:var(--ink);min-width:0}
.c42-next-row:hover{border-color:#D2A03A;background:var(--sunk)}
.c42-next-row:focus-visible{outline:3px solid #D5A100;outline-offset:2px}
.c42-next-icon{background:#F7EED5;color:#9A701E;border-radius:10px;display:grid;place-items:center;width:44px;height:44px;flex:none}
.c42-next-icon svg{width:22px;height:22px}
.c42-next-row strong{display:block;font-size:15px;line-height:1.3}
.c42-next-row small{display:block;color:var(--muted);font-size:12px;margin-top:3px;line-height:1.4}
.c42-next-arrow{margin-left:auto;color:#8B641F;font-weight:700;font-size:21px;flex:none}
.c42-deck{display:grid;gap:14px}
.c42-deck-heading{display:grid;gap:7px}
.c42-deck-heading h1{margin:0;font:700 clamp(24px,3vw,31px)/1.3 var(--f-display)}
.c42-deck-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.c42-flip{display:flex;align-items:center;justify-content:space-between;gap:10px}
.c42-flip button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);color:var(--ink);background:var(--surface);border-radius:10px;padding:10px 13px;cursor:pointer;min-height:44px;font:600 13px var(--f-body)}
.c42-flip button:disabled{opacity:.35;cursor:default}
.c42-flip button:not(:disabled):hover{border-color:#C99B3A}
.c42-counter{font:650 12px var(--f-body);color:var(--muted);text-align:center}
.c42-stage-frame{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:25px;display:grid;gap:17px;min-width:0}
.c42-stage-head{display:grid;gap:9px}
.c42-stage-head small{font-size:11px;letter-spacing:.08em;font-weight:650;color:#8B6B2D;text-transform:uppercase}
.c42-stage-head h2{font:700 clamp(22px,2.8vw,28px)/1.23 var(--f-display);margin:0}
.c42-stage-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.c42-stage-status{font-size:12px;color:var(--muted);background:var(--sunk);border-radius:20px;padding:6px 11px;width:max-content;max-width:100%}
.c42-stage-quick{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.c42-stage-quick .btn{white-space:normal;text-align:center;min-height:43px;display:inline-flex;align-items:center;justify-content:center}
.c42-stage-detail{display:grid;gap:12px}
.c42-stage-detail .customer-next{margin:0}
.c42-stage-list{display:flex;gap:6px;flex-wrap:wrap}
.c42-stage-list button{height:7px;width:22px;border:0;border-radius:8px;background:var(--line);cursor:pointer;font-size:0;padding:0}
.c42-stage-list button[aria-current="step"]{width:37px;background:#D5A126}
.c42-stage-list button:focus-visible{outline:3px solid #D5A100;outline-offset:3px}
.c42-stage-items{display:grid;gap:7px;padding:0;margin:0;list-style:none}
.c42-stage-items li{display:flex;gap:8px;font-size:13px;color:var(--muted);align-items:start}
.c42-stage-items li:before{content:'';display:inline-block;flex:none;width:15px;height:15px;margin-top:1px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B98B1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E")}
.c42-stage-frame .initial-screen.f41-initial{padding:0;border:0;box-shadow:none;background:transparent}
.c42-stage-frame .initial-screen.f41-initial>.f41-initial-header,
.c42-stage-frame .initial-screen.f41-initial>.f41-initial-state{display:none}
.c42-stage-frame .initial-screen.f41-initial #initial-record-editor:not([hidden]){margin-top:14px}
.c42-stage-frame .initial-screen.f41-initial .f41-initial-buttons{padding-top:0}
.c42-stage-frame details.c42-stage-plan{padding:12px 15px;border:1px solid var(--line);border-radius:11px;background:var(--sunk)}
.c42-stage-frame details.c42-stage-plan>summary{cursor:pointer;font-weight:650;font-size:14px}
.c42-stage-frame details.c42-stage-plan>.role-help{font-size:12px}
@media(max-width:600px){
 .c42-next{padding:17px}
 .c42-next-row{padding:11px}
 .c42-stage-frame{padding:17px;gap:14px}
 .c42-flip button{padding:8px 10px;min-height:48px}
 .c42-flip .c42-counter{font-size:11px}
 .c42-stage-quick .btn{width:100%}
 .c42-stage-frame>.c42-flip:nth-last-child(2){display:none}
 .c42-stage-list{gap:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .c42-stage-list button{flex:0 0 17px;width:17px}
 .c42-stage-list button[aria-current="step"]{flex-basis:26px;width:26px}
 .c42-stage-frame .f41-initial-help{display:none}
}
@media(prefers-color-scheme:dark){
 .c42-hero-flag{background:#403727;color:#ECCB7C}
 .c42-next-icon{background:#43331B;color:#EDC878}
 .c42-stage-list button[aria-current="step"]{background:#D5A126}
}


/* FLEGO 4.3 — Stage journey. Changes scoped to customer role. */
body.flego-customer409 .bar{padding:12px 20px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
body.flego-customer409 .bar .in{max-width:1200px;margin-inline:auto;width:100%;box-sizing:border-box;padding-inline:0;align-items:center}
body.flego-customer409 .bar .logo{margin:0;padding:7px 0;min-width:0}
body.flego-customer409 .bar nav{max-width:100%;min-width:0;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#app.customer409-page{max-width:1240px;grid-template-columns:218px minmax(0,1fr);gap:20px;padding:24px 20px 88px;align-items:start}
#app.customer409-page > .customer409-sidebar,#app.customer409-page > .customer409-workspace{margin-top:0!important;padding-top:0!important;align-self:start!important}
#app.customer409-page .customer409-workspace .c42-deck{margin:0!important;display:block;padding:0!important}
#app.customer409-page .customer409-workspace .c42-stage-frame{margin:0!important;}
#app.customer409-page .customer409-workspace>#team2-notices:empty{display:none!important}
.c43-journey{display:grid;gap:20px;min-width:0}
.c43-title{display:grid;gap:6px}
.c43-title h1{font:700 clamp(23px,2.5vw,29px)/1.22 var(--f-display);margin:0}
.c43-title p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}
.c43-stage-shell{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:22px;display:grid;gap:17px;min-width:0}
.c43-stage-hero{display:grid;grid-template-columns:minmax(0,31%) minmax(0,1fr);gap:22px;min-height:346px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.c43-stage-image{display:block;margin:0;min-width:0;align-self:stretch;background:#F0E9DC}
.c43-stage-image img{display:block;width:100%;height:100%;min-height:346px;object-fit:cover;object-position:center}
.c43-stage-info{min-width:0;padding:24px 22px 24px 0;display:flex;flex-direction:column;justify-content:center;gap:12px}
.c43-stage-eyebrow{font:700 11px/1.3 var(--f-body);text-transform:uppercase;letter-spacing:.07em;color:#9E782B}
.c43-stage-info h2{margin:0;font:700 clamp(19px,2.3vw,27px)/1.24 var(--f-display);text-wrap:balance;overflow-wrap:anywhere}
.c43-stage-info p{margin:0;line-height:1.45;color:var(--muted);font-size:13px}
.c43-stage-info .c42-stage-status{width:max-content;max-width:100%;font-size:12px}
.c43-stage-info .c42-stage-items{gap:5px;margin:2px 0 0}
.c43-stage-info .c42-stage-items li{font-size:12.5px;line-height:1.35}
.c43-stage-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:3px}
.c43-stage-actions button,.c43-stage-actions a{display:inline-flex;align-items:center;justify-content:center;white-space:normal;min-height:43px;text-decoration:none;padding:9px 12px;font:600 12px/1.3 var(--f-body)}
.c43-stage-workspace{display:grid;gap:12px;min-width:0}
.c43-stage-workspace:empty{display:none}
.c43-stage-workspace .initial-screen{margin:0}
.c43-stage-workspace .initial-screen.f41-initial{padding:0;gap:0;box-shadow:none;background:transparent;border:0}
.c43-stage-workspace .initial-404-choice .f41-initial-actions,.c43-stage-workspace .f41-initial-header,.c43-stage-workspace .f41-initial-state{display:none!important}
.c43-stage-workspace .initial-404-choice{margin:0!important}
.c43-stage-workspace .initial-404-expert:not([hidden]){border:1px solid var(--line);border-radius:12px;padding:14px}
.c43-stage-workspace #initial-record-editor:not([hidden]){border:1px solid var(--line);border-radius:14px;background:var(--sunk);padding:16px;max-height:none}
.c43-stage-workspace .c42-stage-plan{margin:0}
.c43-switch{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center}
.c43-switch button{appearance:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:49px;padding:10px 13px;color:var(--ink);font:700 13px/1.2 var(--f-body);cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px}
.c43-switch button:disabled{opacity:.35;cursor:default}
.c43-switch button:hover:not(:disabled){border-color:var(--accent);background:var(--sunk)}
.c43-switch .c43-switch-label{color:var(--muted);font-size:12px;font-weight:600;text-align:center;white-space:nowrap}
.c43-switch-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.c43-switch-bottom button{width:100%;height:66px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center}
.c43-switch-bottom button small{font-weight:400;font-size:11px;color:var(--muted)}
.c43-switch-bottom button.c43-active-next:not(:disabled){background:#EAB018;border-color:#D49A00;color:#1B1C18}
.c43-switch-bottom button.c43-active-next small{color:#4D3D13}
.c43-stage-list{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;min-width:0}
.c43-stage-list button{appearance:none;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:var(--sunk);min-height:42px;padding:8px 2px;color:var(--muted);font:700 13px var(--f-body);min-width:0}
.c43-stage-list button[aria-current="step"]{background:#EAB018;border-color:#C99819;color:#241E10}
.c43-stage-list button:hover:not([aria-current="step"]){background:#F4E8C7;color:var(--ink)}
.c43-stage-list button:focus-visible,.c43-switch button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:1080px) and (min-width:821px){body.flego-customer409 .bar{padding-inline:16px}#app.customer409-page{grid-template-columns:186px minmax(0,1fr);gap:15px;padding-inline:16px}.c43-stage-shell{padding:16px}.c43-stage-hero{gap:12px}.c43-stage-info{padding:17px 13px 17px 0}}
@media(max-width:820px){#app.customer409-page{display:block;padding:18px 16px calc(96px + env(safe-area-inset-bottom,0px))}.c43-stage-hero{grid-template-columns:minmax(0,35%) minmax(0,1fr)}body.flego-customer409 .bar .in{max-width:none}.c43-stage-shell{padding:15px}}
@media(max-width:610px){
 .c43-title p{font-size:12.5px}
 .c43-stage-hero{grid-template-columns:minmax(0,1fr);gap:0;min-height:0}
 .c43-stage-image{height:168px;overflow:hidden}
 .c43-stage-image img{min-height:0;height:100%;object-position:center 44%}
 .c43-stage-info{padding:16px;gap:10px;min-height:300px}
 .c43-stage-info h2{font-size:20px}
 .c43-stage-shell{padding:12px;gap:13px}
 .c43-stage-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .c43-switch{grid-template-columns:1fr auto 1fr;gap:4px}
 .c43-switch button{padding:9px 5px;font-size:12px}
 .c43-switch .c43-switch-label{font-size:11px}
 .c43-switch-bottom{gap:7px}
 .c43-switch-bottom button{min-height:67px;padding:8px 6px;font-size:12px}
 .c43-stage-actions .btn,.c43-stage-actions button{flex:1 1 140px}
}
@media(max-width:360px){.c43-stage-actions .btn,.c43-stage-actions button{flex-basis:100%}}


/* FLEGO 4.3.1 — customer stages: audited layout and human photography */
@media (min-width:821px) {
 body.flego-customer409 > header.bar,body.flego-customer409 header.bar {padding:12px clamp(28px,3vw,52px)!important;box-sizing:border-box!important}
 body.flego-customer409 .bar .in{display:flex!important;box-sizing:border-box!important;width:100%!important;max-width:1430px!important;margin:0 auto!important;padding:0!important;justify-content:space-between!important;align-items:center!important}
 body.flego-customer409 .bar .logo{flex:0 0 auto!important;margin:0!important;padding:4px 0!important}
 body.flego-customer409 .bar nav{margin-left:auto!important;max-width:calc(100% - 160px)!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important}
 #app.customer409-page:has(.c43-stage-shell){align-items:stretch!important}
 #app.customer409-page:has(.c43-stage-shell)>.customer409-sidebar{position:relative!important;top:auto!important;align-self:stretch!important;height:auto!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important}
 #app.customer409-page:has(.c43-stage-shell)>.customer409-workspace{align-self:stretch!important;display:flex!important;flex-direction:column!important;min-width:0!important}
 #app.customer409-page:has(.c43-stage-shell) .c43-journey{height:100%;flex:1!important}
 #app.customer409-page:has(.c43-stage-shell) .c43-stage-shell{height:100%;box-sizing:border-box!important;min-height:100%}
}
@media (max-width:820px){body.flego-customer409 header.bar{padding-left:18px!important;padding-right:18px!important;box-sizing:border-box!important}}
/* One standard size for the main card when its inline editor is closed. Extra details expand below. */
.c43-stage-hero{min-height:360px;height:360px;grid-template-columns:minmax(0,33%) minmax(0,1fr);gap:22px}
.c43-stage-image{position:relative;overflow:hidden;min-height:0;height:100%;background:#E6E1D7}
.c43-stage-image img{display:block;width:100%;height:100%;min-height:0!important;object-fit:cover;object-position:center}
.c431-photo-caption{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);background:#FFFFFFDD;color:#4B4D48;border-radius:999px;padding:5px 8px;font-size:10px;line-height:1.3;pointer-events:none}
.c43-stage-info{overflow-y:auto}
/* Only one previous/next pair, below the stage content. Compact buttons near the inner edges. */
.c43-switch-bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:0 clamp(12px,2vw,26px)!important;box-sizing:border-box!important}
.c43-switch-bottom button{width:min(180px,44%)!important;height:50px!important;min-height:50px!important;max-width:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:6px 14px!important;gap:1px!important;border-radius:10px!important;font-size:12px!important}
.c43-switch-bottom button small{font-size:10px!important;line-height:1.2!important}
.c43-switch-bottom button.c43-active-next:not(:disabled){background:#E9AD11!important;border-color:#D39D12!important}
@media (max-width:820px){.c43-stage-hero{height:auto;min-height:0}.c43-stage-image img{min-height:0}.c43-switch-bottom{padding-inline:8px!important}}
@media (max-width:610px){.c43-stage-image{height:205px!important}.c43-stage-hero{display:block!important}.c43-stage-info{min-height:0!important;overflow:visible}.c43-switch-bottom{padding-inline:5px!important}.c43-switch-bottom button{width:min(160px,47%)!important;min-height:49px!important;height:49px!important}.c431-photo-caption{font-size:9px}}


/* FLEGO 4.3.4 — equal folded stage heights, persistent interactive work plans. */
#app.customer409-page .c43-stage-workspace{min-height:56px}
#app.customer409-page .c434-initial-workspace{row-gap:0!important}
#app.customer409-page .c43-stage-workspace>.c42-stage-plan{
  margin:0!important;border:1px solid var(--line);border-radius:11px;
  background:var(--sunk);padding:0 15px;box-sizing:border-box;min-height:56px;
}
#app.customer409-page .c43-stage-workspace>.c42-stage-plan>summary{
  min-height:54px;display:flex;align-items:center;box-sizing:border-box;
  cursor:pointer;font-weight:650;font-size:14px;line-height:1.35;
}
#app.customer409-page .c43-stage-workspace>.c42-stage-plan[open]{padding-bottom:14px}
#app.customer409-page .c434-stage-zero-summary{
  display:flex;align-items:center;min-height:56px;box-sizing:border-box;
  border:1px solid var(--line);border-radius:11px;background:var(--sunk);
  padding:10px 15px;color:var(--muted);font-size:13px;line-height:1.35;
}
#app.customer409-page .c434-initial-workspace:has(#initial-record-editor:not([hidden])) .c434-stage-zero-summary,
#app.customer409-page .c434-initial-workspace:has(.initial-404-expert:not([hidden])) .c434-stage-zero-summary{display:none}
@media (min-width:611px) and (max-width:820px){
 #app.customer409-page .c43-stage-hero .c43-stage-info{min-height:292px!important;box-sizing:border-box}
}
@media(max-width:610px){
 #app.customer409-page .c434-stage-zero-summary{font-size:12px}
 #app.customer409-page .c43-stage-hero .c43-stage-info{min-height:clamp(300px,calc(528px - 42vw),394px)!important;box-sizing:border-box}
}

/* FLEGO 4.3.5 — single inspection category per step, aligned customer navigation. */
body.flego-customer409 header.bar {
  padding-inline:20px!important;
  box-sizing:border-box!important;
}
body.flego-customer409 header.bar>.in {
  width:100%!important;
  max-width:1200px!important; /* matches #app max-width:1240px with 20px inset on both sides */
  margin-inline:auto!important;
  padding-inline:0!important;
  box-sizing:border-box!important;
}
body.flego-customer409 header.bar .logo{flex-shrink:0!important}
body.flego-customer409 header.bar nav{margin-left:auto!important;max-width:calc(100% - 148px)!important}
.f435-setup{margin:0;border:1px solid var(--line);border-radius:10px;background:var(--sunk);padding:0}
.f435-setup>summary{cursor:pointer;padding:10px 13px;color:var(--muted);font-weight:600;font-size:12px}
.f435-setup-fields{padding:0 13px 12px;display:grid;gap:9px}
.f435-setup-fields .field{margin:0}
#initial-record-form .initial-404-item-title{display:none}
@media(max-width:820px){body.flego-customer409 header.bar{padding-inline:16px!important}}
@media(max-width:620px){body.flego-customer409 header.bar>.in{max-width:100%!important}}

/* FLEGO 4.3.6 — choose inspection scenario once, no repeated metadata panel. */
#initial-purpose-choice[hidden]{display:none!important}
.f436-purpose-choice{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--sunk);margin-top:14px;max-width:760px}
.f436-purpose-choice h3{margin:0 0 10px}
.f436-purpose-choice p{color:var(--muted);margin:0 0 16px}
.f436-purpose-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.f436-purpose-option{appearance:none;text-align:left;cursor:pointer;border:1px solid var(--line);border-radius:12px;background:white;padding:16px;display:flex;flex-direction:column;gap:8px;font:inherit;min-height:125px}
.f436-purpose-option strong{font-weight:700;color:var(--text)}
.f436-purpose-option span{font-size:.9em;color:var(--muted);line-height:1.45}
.f436-purpose-option:hover,.f436-purpose-option:focus-visible{border-color:#daa000;outline:2px solid #e6a500;outline-offset:1px}
.f436-inspection-date{display:grid;gap:10px;max-width:700px;border-radius:10px;background:var(--sunk);padding:0 0 14px}
.f436-inspection-date[hidden]{display:none!important}
.f436-final-purpose{font-size:.9em;color:var(--muted);margin-bottom:12px}
.f436-final-purpose .linkbtn{margin-left:10px}
@media(max-width:600px){.f436-purpose-options{grid-template-columns:1fr}.f436-purpose-choice{padding:15px}.f436-purpose-option{min-height:0}}
/* FLEGO 4.4 · single role-aware Gantt; avoids altering existing CSS layouts. */
.gantt-page{gap:18px!important;min-width:0}
.gantt-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.gantt-heading p{margin:9px 0 0}
.gantt-status{display:inline-flex;align-items:center;padding:7px 11px;background:var(--sunk);color:var(--muted);border-radius:50px;font-size:13px;font-weight:600}
.gantt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gantt-stats>div{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;gap:3px}
.gantt-stats small{font-size:12px;color:var(--muted)}.gantt-stats strong{font-size:17px}
.gantt-scroll{overflow:auto;border:1px solid var(--line);border-radius:13px;max-width:100%;background:var(--surface)}
.gantt-wide{width:calc(214px + var(--gantt-track-width));min-width:100%}
.gantt-row{display:grid;grid-template-columns:214px minmax(0,1fr);min-height:60px;border-bottom:1px solid var(--line)}
.gantt-row:last-child{border-bottom:0}.gantt-headrow{min-height:44px;background:var(--sunk)}
.gantt-name{position:sticky;left:0;z-index:2;background:var(--surface);border-right:1px solid var(--line);padding:9px 12px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:0;justify-content:center;line-height:1.25;overflow-wrap:anywhere}
.gantt-headrow .gantt-name{background:var(--sunk);color:var(--muted);font-size:12px;font-weight:600}
.gantt-name small,.gantt-name span{font-size:11px;color:var(--muted);font-weight:400}.gantt-name b{font-size:13px;font-weight:600;margin:3px 0}.gantt-name:hover b{text-decoration:underline}
.gantt-track{position:relative;min-width:0}.gantt-axis{overflow:visible}.gantt-axis>span{position:absolute;top:10px;font-size:11px;color:var(--muted);border-left:1px solid var(--line);padding-left:5px;white-space:nowrap}
.gantt-daytrack{background:linear-gradient(180deg,transparent 0,rgba(128,128,128,.025) 100%)}
.gantt-gridline{position:absolute;top:0;bottom:0;border-left:1px dashed var(--line)}
.gantt-bar{position:absolute;height:14px;border-radius:5px;top:30px;cursor:help;min-width:6px}.gantt-bar.approved{top:12px;background:#A4B0B9;opacity:.9}.gantt-bar.forecast{background:#DFAA17}.gantt-bar.late{background:#D76E43}.gantt-bar.done{background:#3F9167}.gantt-bar.milestone{top:10px;height:36px;width:4px!important;background:#347F56;opacity:.85}
.gantt-no-date{font-size:12px;color:var(--muted);position:absolute;left:12px;top:21px}
.gantt-legend{display:flex;gap:10px 22px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.gantt-legend>span{display:inline-flex;align-items:center;gap:6px}.gantt-dot{display:inline-block;width:12px;height:12px;border-radius:4px}.gantt-dot.forecast{background:#DFAA17}.gantt-dot.approved{background:#A4B0B9}.gantt-dot.late{background:#D76E43}.gantt-dot.done{background:#3F9167}
.gantt-empty{text-align:left;background:var(--sunk);border-radius:12px;border:1px dashed var(--line);padding:24px}.gantt-empty p{margin:9px 0 0;color:var(--muted);font-size:14px}
.gantt-planner,.gantt-history{padding:14px;border:1px solid var(--line);border-radius:12px}.gantt-planner>summary,.gantt-history>summary{cursor:pointer;font-weight:650}.gantt-planner>.muted{font-size:13px}
.gantt-editor-list{display:grid;gap:8px;margin-top:12px}.gantt-edit-row{display:grid;grid-template-columns:minmax(155px,1.5fr) repeat(2,minmax(115px,1fr)) minmax(145px,1.3fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px}
.gantt-edit-row strong{font-size:13px;align-self:center}.gantt-edit-row label{display:grid;gap:3px;color:var(--muted);font-size:12px}.gantt-edit-row input,.gantt-edit-row select{min-height:35px;font-size:13px;padding:5px 7px}.gantt-send,.gantt-pending{background:var(--sunk);border-radius:12px;padding:18px;border:1px solid var(--line);display:grid;gap:10px}.gantt-send h2,.gantt-pending h2{font-size:16px}.gantt-send p,.gantt-pending p{margin:0;color:var(--muted);font-size:13px}.gantt-send>button{justify-self:start}.gantt-send textarea{min-height:62px}
.gantt-decisions{display:grid;gap:12px;justify-items:start}.gantt-decisions form{display:flex;flex-wrap:wrap;gap:7px}.gantt-decisions form input{min-width:260px;max-width:450px}.gantt-note{font-size:13px;color:var(--muted);margin:0}.gantt-history ol{padding-left:20px;font-size:13px}.gantt-history li{padding:9px 0;border-bottom:1px solid var(--line)}.gantt-history p{margin:3px 0;color:var(--muted)}
.gantt-mini{margin:10px 0}.gantt-mini>summary{font-weight:600;cursor:pointer}.gantt-mini form{display:grid;gap:9px;margin-top:12px}.gantt-edit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gantt-edit-fields .field{min-width:0}.gantt-mini form>.btn{justify-self:start}
@media(max-width:990px){.gantt-edit-row{grid-template-columns:repeat(2,minmax(0,1fr))}.gantt-edit-row>strong{grid-column:1/-1}.gantt-edit-row>button{justify-self:start}}
@media(max-width:600px){.gantt-stats{grid-template-columns:1fr 1fr}.gantt-stats>div:last-child{grid-column:1/-1}.gantt-edit-row{grid-template-columns:1fr}.gantt-edit-fields{grid-template-columns:1fr}.gantt-edit-row>strong{grid-column:auto}.gantt-heading h1{font-size:24px}.gantt-decisions form input{min-width:0;width:100%}.gantt-wide{min-width:930px}}

.gantt-mobile-list,.gantt-mobile-full{display:none}
@media(max-width:600px){
 .gantt-mobile-list{display:grid;gap:8px}
 .gantt-mobile-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none}
 .gantt-mobile-row>div{display:grid;gap:3px;min-width:0}
 .gantt-mobile-row b{font-size:14px;line-height:1.35}.gantt-mobile-row small,.gantt-mobile-row span:not(.gantt-mobile-state){font-size:12px;color:var(--muted)}
 .gantt-mobile-state{font-size:10px;padding:4px 7px;border-radius:20px;background:var(--sunk);white-space:nowrap}.gantt-mobile-state.late{background:#FAE0D1;color:#A33F16}
 .gantt-scroll{display:none}.gantt-scroll.gantt-show-full{display:block}
 .gantt-mobile-full{display:inline-flex;justify-self:start;white-space:normal}
}

