:root{
  --bg:#f3f4f6;--card:#fff;--ink:#111827;--mute:#6b7280;--line:#e5e7eb;--dark:#1f2328;
  --red:#d64545;--yellow:#f2c230;--green:#2f8f5b;--blue:#2563eb;
  --mypge:#e8590c;--mytoit:#0ea5a4;--toiture:#7c3aed;--plomberie:#2563eb;--clim:#0891b2;--tel:#4b5563;
  --hour:46px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;padding-bottom:96px}
header{background:var(--dark);color:#fff;padding:14px 16px 0;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;justify-content:space-between;gap:8px}
.brand h1{font-size:18px;font-weight:800;letter-spacing:-.02em}
.brand h1 span{color:var(--yellow)}
.sync{font-size:11px;color:#9ca3af}
.tabs{display:flex;gap:4px;margin-top:12px;overflow-x:auto;scrollbar-width:none}
.tab{flex:1;min-width:max-content;background:none;border:0;color:#cbd5e1;font:inherit;font-weight:600;font-size:14px;padding:10px 12px;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap}
.tab.on{color:#fff;border-color:var(--yellow)}
.count{display:inline-block;min-width:20px;padding:1px 6px;border-radius:10px;background:var(--red);color:#fff;font-size:12px;margin-left:4px}
main{padding:14px;max-width:960px;margin:0 auto}
.banner{background:#fff7e0;border:1px solid #f2d27a;color:#7a5b00;padding:10px 12px;border-radius:10px;font-size:13px;margin-bottom:12px}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;scrollbar-width:none}
.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;color:var(--mute);white-space:nowrap;cursor:pointer}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.card{background:var(--card);border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.06);border-left:5px solid var(--line)}
.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.between{justify-content:space-between}
.src{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#fff;padding:3px 8px;border-radius:6px}
.tag{font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:#f3f4f6;color:#374151}
.tag.urg,.tag.late{background:#fde2e2;color:#b42318}
.tag.wait{background:#fff3c4;color:#7a5b00}
.tag.ok{background:#dcf3e5;color:#1d6b42}
.name{font-size:17px;font-weight:700;margin-top:10px}
.addr{color:var(--mute);font-size:14px;margin-top:2px}
.addr a,.tel a{color:inherit}
.tel{margin-top:6px;font-weight:600;font-size:15px}
.type{margin-top:10px;font-weight:600}
.dispo{margin-top:8px;font-size:13px;background:#eef6ff;color:#1e40af;border-radius:8px;padding:7px 10px;font-weight:600}
.dispo.none{background:#fff3c4;color:#7a5b00}
.msg{margin-top:6px;color:#374151;font-size:14px;background:#f9fafb;border-radius:8px;padding:8px 10px}
.note{margin-top:6px;color:var(--red);font-size:14px;font-weight:500}
.actions{display:flex;gap:8px;margin-top:12px}
.btn{border:0;border-radius:10px;padding:11px 14px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.btn.primary{background:var(--yellow);color:#111;flex:1}
.btn.dark{background:var(--ink);color:#fff;flex:1}
.btn.ghost{background:#eef0f3;color:#374151}
.btn.green{background:var(--green);color:#fff;flex:1}
.btn.red{background:#fde2e2;color:#b42318}
.btn.sm{padding:8px 12px;font-size:13px}
.empty{text-align:center;color:var(--mute);padding:40px 10px}
.empty b{display:block;font-size:40px;margin-bottom:6px}
h2{font-size:15px;font-weight:800;margin:18px 0 8px;display:flex;align-items:center;gap:8px}
.dot{width:12px;height:12px;border-radius:50%;flex:none}
.fab{position:fixed;right:16px;bottom:20px;background:var(--red);color:#fff;border:0;border-radius:30px;padding:15px 20px;font:inherit;font-weight:800;font-size:15px;box-shadow:0 6px 18px rgba(214,69,69,.4);cursor:pointer;z-index:30}
.sheet-bg{position:fixed;inset:0;background:rgba(17,24,39,.55);z-index:40;display:none;align-items:flex-end;justify-content:center}
.sheet-bg.on{display:flex}
.sheet{background:#fff;width:100%;max-width:640px;max-height:92vh;overflow:auto;border-radius:18px 18px 0 0;padding:18px 16px 28px}
.sheet h3{font-size:18px;font-weight:800;margin-bottom:4px}
.sheet .sub{color:var(--mute);font-size:13px;margin-bottom:12px}
label{display:block;font-size:13px;font-weight:600;color:#374151;margin:12px 0 5px}
input,select,textarea{width:100%;font:inherit;font-size:16px;padding:11px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:64px;resize:vertical}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}
.tech{display:flex;align-items:center;gap:10px;border:2px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px;cursor:pointer;background:#fff;width:100%;text-align:left;font:inherit}
.tech.sel{border-color:var(--ink);background:#f9fafb}
.tech.no{opacity:.55}
.tech .av{width:36px;height:36px;border-radius:50%;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none}
.tech .meta{flex:1;min-width:0}
.tech .meta b{display:block}
.tech .meta small{color:var(--mute);font-size:12px;display:block}
.tech .meta small.warn{color:#b42318;font-weight:600}
.load{font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;background:#eef0f3;white-space:nowrap}
.skills{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.skill{font-size:13px;font-weight:600;padding:7px 11px;border-radius:16px;border:1px solid var(--line);background:#fff;color:var(--mute);cursor:pointer;font-family:inherit}
.skill.on{background:#dcf3e5;border-color:#9fd8b6;color:#1d6b42}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{flex:1}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;font-weight:600;font-size:14px;z-index:60;opacity:0;transition:opacity .2s;pointer-events:none}
.toast.on{opacity:1}
.alert{margin-top:10px;padding:9px 11px;border-radius:9px;font-size:13px;font-weight:600}
.alert.bad{background:#fde2e2;color:#b42318}
.alert.good{background:#dcf3e5;color:#1d6b42}
.small{font-size:12px;color:var(--mute)}
/* Planning */
.pbar{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.seg2{display:flex;background:#e5e7eb;border-radius:10px;padding:3px}
.seg2 button{border:0;background:none;font:inherit;font-weight:700;font-size:13px;padding:8px 14px;border-radius:8px;color:var(--mute);cursor:pointer}
.seg2 button.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.1)}
.nav{display:flex;gap:6px;margin-left:auto}
.nav button{border:0;background:#fff;border-radius:8px;padding:8px 11px;font:inherit;font-weight:700;cursor:pointer}
.day{background:#fff;border-radius:14px;margin-bottom:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.dayh{padding:10px 12px;font-weight:800;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.dayh.today{background:#fff7e0}
.cols{display:flex;border-bottom:1px solid var(--line);position:sticky;top:0}
.axisw{width:38px;flex:none}
.colh{flex:1;min-width:0;text-align:center;font-size:12px;font-weight:800;padding:6px 2px;border-left:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gbody{display:flex;position:relative}
.axis{width:38px;flex:none}
.axis div{height:var(--hour);font-size:11px;color:var(--mute);text-align:right;padding-right:5px;transform:translateY(-6px)}
.col{flex:1;min-width:0;position:relative;border-left:1px solid var(--line)}
.cell{height:var(--hour);border-top:1px solid #f1f2f4;cursor:pointer}
.cell:hover{background:#fafafa}
.cell.lunch{background:repeating-linear-gradient(45deg,#fafafa,#fafafa 6px,#f3f4f6 6px,#f3f4f6 12px)}
.blk{position:absolute;left:2px;right:2px;border-radius:7px;color:#fff;font-size:11px;line-height:1.25;padding:4px 5px;overflow:hidden;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.blk b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blk.done{opacity:.5}
.nowline{position:absolute;left:0;right:0;height:2px;background:var(--red);z-index:3;pointer-events:none}
.month{background:#fff;border-radius:14px;padding:8px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.mhead,.mgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.mhead div{text-align:center;font-size:11px;font-weight:800;color:var(--mute);padding:4px 0}
.mday{min-height:64px;border-radius:8px;background:#f9fafb;padding:4px;cursor:pointer;border:2px solid transparent;font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px}
.mday.out{opacity:.35}
.mday.today{background:#fff7e0}
.mday.sel{border-color:var(--ink)}
.mday .n{font-size:12px;font-weight:800}
.mday .bars{display:flex;flex-wrap:wrap;gap:2px}
.mday .bar{width:8px;height:8px;border-radius:2px}
.mday .tot{font-size:10px;font-weight:700;color:var(--mute);margin-top:auto}
.slot{display:flex;gap:10px;align-items:flex-start;background:#fff;border-radius:12px;padding:10px 12px;margin-bottom:8px;border-left:4px solid var(--line)}
.slot .when{font-weight:800;font-size:13px;min-width:62px}
.slot .what{flex:1;font-size:14px}
.slot .what b{display:block}
.pick{display:block;width:100%;text-align:left;background:#fff;border:2px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px;font:inherit;cursor:pointer}
.pick .row{gap:6px}
html.asdev{background:#cbd5e1}html.asdev body{background:transparent}
body.asdev-phone,body.asdev-tablet{margin:14px auto 130px;border:12px solid #111;border-radius:38px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.35);background:var(--bg,#f3f4f6);min-height:780px}
body.asdev-phone{max-width:414px}body.asdev-tablet{max-width:834px;border-radius:30px}
body.asdev-phone header,body.asdev-tablet header{position:sticky}
#asBar{position:fixed;left:0;right:0;bottom:0;z-index:100;background:#111827;color:#fff;padding:8px 10px;font-size:13px;box-shadow:0 -4px 16px rgba(0,0,0,.3)}
#asBar .asb{background:#1f2937;color:#fff;border:1px solid #374151;border-radius:8px;padding:5px 9px;font:inherit;cursor:pointer}#asBar .asb.on{background:#f2c230;color:#111;border-color:#f2c230}#asBar .asb.warn{background:#eda100;color:#111}
body.asdev-phone #fab,body.asdev-tablet #fab{display:none!important}
.tourwrap{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:12px;align-items:start}.tourleft{max-height:78vh;overflow-y:auto;position:sticky;top:8px;padding-right:4px}.tourright{min-width:0}@media(max-width:900px){.tourwrap{grid-template-columns:1fr}.tourleft{position:static;max-height:45vh}}
.gwrap{background:#fff;border-radius:14px;overflow-x:auto;box-shadow:0 1px 2px rgba(0,0,0,.06);margin-bottom:14px;-webkit-overflow-scrolling:touch}
.ginner{min-width:100%}
.ghead{display:flex;border-bottom:1px solid var(--line);background:#fff}
.gh{min-width:0;text-align:center;font-size:12px;font-weight:800;padding:7px 2px;border-left:1px solid var(--line);text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gh.today{background:#fff7e0}
.col.first{border-left:2px solid #cbd5e1}
.techtabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;scrollbar-width:none}
.techtabs button{border:2px solid var(--line);background:#fff;border-radius:20px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;color:#374151;white-space:nowrap;cursor:pointer;display:flex;align-items:center;gap:6px}
.techtabs button.on{border-color:var(--ink);background:var(--ink);color:#fff}
.subtypes{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 4px 10px;padding-left:8px;border-left:3px solid #9fd8b6}
.subtypes .skill{font-size:12px;padding:5px 9px}
.subtypes .skill.off{background:#f3f4f6;color:#9ca3af;text-decoration:line-through}
body.big main,body.wide main{max-width:none;padding:10px 16px}
.tourleft .what span{display:block}.tourleft .chips{flex-wrap:wrap}
body.solo .tabs,body.solo .fab,body.solo .techtabs{display:none!important}
body.solo header{padding-bottom:12px}
.wlink{display:flex;align-items:center;gap:10px;background:#fff;border:2px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px;text-decoration:none;color:var(--ink);font-weight:700}
.wlink span.go{margin-left:auto;background:var(--yellow);border-radius:8px;padding:6px 10px;font-size:13px}
body.big{--hour:52px}
body.big .blk{font-size:12px}
body.big .fab{display:none!important}
.legend{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 4px;font-size:12px;color:var(--mute)}
.legend span{display:flex;align-items:center;gap:4px}
.blk.prop{opacity:.85;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.28) 0 6px,transparent 6px 12px)!important;outline:2px dashed rgba(0,0,0,.55);outline-offset:-2px}
.tag.prop{background:#e0e7ff;color:#3730a3}
.tag.conf{background:#dcf3e5;color:#1d6b42}
.tag.ref{background:#fde2e2;color:#b42318}
.arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;flex:none;background:var(--yellow);color:#111;border-radius:10px;font-size:20px;font-weight:900}
.clientnote{margin-top:8px;background:#fde2e2;color:#7f1d1d;border-radius:8px;padding:8px 10px;font-size:14px}
.clientnote b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:2px}
.msgbox{background:#f3f4f6;border-radius:10px;padding:10px 12px;font-size:14px;white-space:pre-wrap;line-height:1.4}
.phone{border:2px solid #111;border-radius:22px;padding:16px;margin-top:8px;background:#fafafa}
.phone h4{font-size:16px;margin-bottom:6px}
.histo{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.histo div{font-size:12px;color:var(--mute);margin-top:3px}
.rolebtn{background:#374151;color:#fff;border:0;border-radius:8px;padding:6px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
body.big .cardgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px;align-items:start}
body.big .cardgrid .card{margin:0}
.split{display:grid;grid-template-columns:360px 1fr;gap:14px;align-items:start}
.split .side{max-height:calc(100vh - 90px);overflow:auto;position:sticky;top:70px}
@media (max-width:900px){.split{grid-template-columns:1fr}.split .side{max-height:none;position:static}}
.chbox{position:relative;margin-top:8px}
.group{display:flex;align-items:center;gap:8px;font-weight:800;margin:16px 0 8px}
