:root{--bg: #f5f3ee;--card: #ffffff;--ink: #1c2430;--muted: #6b7380;--line: #e4e0d6;--navy: #1f3a5f;--navy-2: #2d5487;--amber: #e0a84a;--green: #2f8f5b;--red: #c0392b;--orange: #d9822b;--pesi: #5b8def;--tapis: #2fb38a;--entrambi: #8a6ad8;--r: 14px;--shadow: 0 1px 2px rgba(20,30,50,.06), 0 4px 14px rgba(20,30,50,.05);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;min-height:100vh}h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.2}h2{font-size:1.35rem}h3{font-size:1.05rem}h4{font-size:.95rem}a{color:inherit;text-decoration:none}code{background:#efece4;padding:1px 5px;border-radius:5px;font-size:.85em;word-break:break-all}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.red-text{color:var(--red)}.error-text{color:var(--red);font-weight:500}.pre{white-space:pre-wrap}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 10px) 16px 10px;background:#f5f3eeeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center}.brand img{width:34px;height:34px;border-radius:9px}.brand div{display:flex;flex-direction:column;line-height:1.1}.brand span{font-size:.78rem;color:var(--muted)}.top-actions{display:flex;gap:8px}.icon-btn{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);font-weight:700;color:var(--navy)}.badge{position:absolute;top:-4px;right:-4px;background:var(--red);color:#fff;font-size:.68rem;border-radius:10px;padding:1px 5px}.shell{max-width:860px;margin:0 auto;padding:14px 14px calc(90px + env(safe-area-inset-bottom))}.page{display:flex;flex-direction:column;gap:14px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.page-head h2{margin:0}.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;color:var(--muted);padding:4px 0;border-radius:10px}.tabbar a .ti{font-size:1.2rem;line-height:1.2;font-weight:700}.tabbar a.on{color:var(--navy);background:#eef2f8}@media (min-width: 900px){.tabbar{max-width:860px;margin:0 auto;border-radius:16px 16px 0 0;border:1px solid var(--line)}}.card{background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);border:1px solid #ece8de}.card.warn{background:#fff7e8;border-color:#f2dcae}.card-head{display:flex;justify-content:space-between;align-items:baseline}.link{color:var(--navy-2);font-weight:600;font-size:.9rem}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tile{display:flex;flex-direction:column;gap:4px}.tile-n{font-size:1.8rem;font-weight:800;color:var(--navy)}.tile.alert .tile-n{color:var(--red)}.list{display:flex;flex-direction:column;gap:10px}.empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 16px;border-radius:11px;font-size:.95rem;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.danger{background:var(--red);color:#fff;border-color:var(--red)}.btn.ghost{background:transparent}.btn.small{padding:6px 11px;font-size:.82rem;border-radius:9px}.btn.xl{padding:16px;font-size:1.15rem;border-radius:14px}.btn.wide{width:100%}label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;color:#3a4350}input,select,textarea{font:inherit;font-weight:400;color:var(--ink);border:1px solid #d9d4c8;border-radius:10px;padding:10px 12px;background:#fff;width:100%}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--navy-2);outline-offset:0;border-color:transparent}input[type=checkbox]{width:20px;height:20px;accent-color:var(--navy);flex:none}.check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:500;margin-bottom:12px}.switch{flex-direction:row;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.switch span{display:flex;flex-direction:column}.switch small{color:var(--muted);font-weight:400}.seg{display:flex;gap:6px;background:#efece4;padding:4px;border-radius:12px}.seg.wrap{flex-wrap:wrap}.seg button{flex:1;border:0;background:transparent;padding:8px 10px;border-radius:9px;font:inherit;font-size:.85rem;font-weight:600;color:#4a5260;cursor:pointer;white-space:nowrap}.seg button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px #0000001a}.seg.tabs{align-self:flex-start}.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;align-items:end;margin-bottom:12px}.form-grid .span2{grid-column:span 2}.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:10px}.inline-form input{width:auto;flex:1;min-width:120px;padding:6px 10px}.stepper{display:flex;align-items:center;gap:16px}.stepper button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:1.2rem;cursor:pointer}.stepper strong{font-size:1.3rem;min-width:30px;text-align:center}.row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.chip{display:inline-block;font-size:.72rem;font-weight:600;padding:3px 8px;border-radius:20px;background:#efece4;color:#4a5260;white-space:nowrap}.chip.dark{background:var(--navy);color:#fff}.chip.red{background:#fbe3e0;color:var(--red)}.status-card{display:flex;align-items:center;gap:14px;padding:20px;border-radius:18px;color:#fff;background:var(--navy);box-shadow:var(--shadow)}.status-card.free{background:linear-gradient(135deg,#2f8f5b,#3aa56c)}.status-card.busy,.status-card.booked{background:linear-gradient(135deg,#d9822b,#e59a3f)}.status-card.excl{background:linear-gradient(135deg,#7a2e8f,#9446a8)}.status-card.closed{background:linear-gradient(135deg,#5a5f69,#737985)}.status-card h1{font-size:1.7rem;margin:2px 0}.status-card h2{margin:2px 0;color:#fff}.status-card p{margin:0;opacity:.92}.status-card small{opacity:.85}.status-card.compact{padding:14px 16px}.status-main{flex:1}.status-dot{width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 0 6px #ffffff40;animation:pulse 2s infinite}@keyframes pulse{50%{box-shadow:0 0 0 10px #ffffff14}}.temp{text-align:right;display:flex;flex-direction:column}.temp strong{font-size:1.8rem}.temp span{font-size:.85rem;opacity:.9}.checkin-cta{display:block;text-align:center;padding:14px;border-radius:14px;font-size:1rem;background:#fff;border:2px dashed var(--navy-2);color:var(--navy)}.checkin-cta.out{border-style:solid;border-color:var(--red);color:var(--red)}.people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.people li{display:flex;align-items:center;gap:10px}.people li div{flex:1;display:flex;flex-direction:column}.people small{color:var(--muted)}.avatar{width:36px;height:36px;border-radius:50%;background:#e7edf6;color:var(--navy);display:grid;place-items:center;font-weight:700}.timeline-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.timeline-list li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.92rem}.timeline-list .time{font-weight:700;color:var(--navy);min-width:96px}.daystrip{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.daystrip button{flex:none;width:50px;padding:8px 0;border-radius:12px;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:center;cursor:pointer;font:inherit}.daystrip button small{font-size:.7rem;color:var(--muted)}.daystrip button strong{font-size:1.05rem}.daystrip button.on{background:var(--navy);color:#fff;border-color:var(--navy)}.daystrip button.on small{color:#cdd7e6}.daystrip input[type=date]{width:150px;flex:none}.day-title{text-transform:capitalize;margin:0}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.78rem;align-items:center}.sw{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-1px}.sw.pesi{background:var(--pesi)}.sw.tapis{background:var(--tapis)}.sw.entrambi{background:var(--entrambi)}.sw.excl{background:repeating-linear-gradient(45deg,#1f3a5f 0,#1f3a5f 3px,#3d5a82 3px,#3d5a82 6px)}.timeline{position:relative;background:#fff;border-radius:var(--r);border:1px solid #ece8de;margin-left:0}.hour{position:absolute;left:0;right:0;border-top:1px solid #f0ece3}.hour span{position:absolute;left:6px;top:-9px;font-size:.7rem;color:var(--muted);background:#fff;padding:0 3px}.tl-area{position:absolute;left:52px;right:6px;top:0;bottom:0;cursor:copy}.past{position:absolute;left:-52px;right:-6px;top:0;background:repeating-linear-gradient(-45deg,rgba(0,0,0,.025) 0 6px,transparent 6px 12px);pointer-events:none}.nowline{position:absolute;left:-8px;right:0;height:2px;background:var(--red);pointer-events:none;z-index:3}.nowline:before{content:"";position:absolute;left:-4px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--red)}.closure{position:absolute;left:0;right:0;background:repeating-linear-gradient(45deg,#eee 0,#eee 8px,#e2e2e2 8px,#e2e2e2 16px);border-radius:8px;padding:6px;font-size:.8rem;font-weight:600;color:#555;z-index:1}.blk{position:absolute;border-radius:8px;padding:4px 7px;color:#fff;font-size:.74rem;overflow:hidden;display:flex;flex-direction:column;line-height:1.25;cursor:default;z-index:2;box-shadow:0 1px 3px #00000026}.blk.pesi{background:var(--pesi)}.blk.tapis{background:var(--tapis)}.blk.entrambi{background:var(--entrambi)}.blk.excl{background:repeating-linear-gradient(45deg,#1f3a5f 0,#1f3a5f 6px,#2b4a75 6px,#2b4a75 12px)}.blk.mine{outline:3px solid var(--amber);outline-offset:-3px;cursor:pointer}.blk span{opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f162373;z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{background:#fff;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;animation:up .2s ease-out}@media (min-width: 700px){.sheet-bg{align-items:center}.sheet{border-radius:20px}}.sheet-head{display:flex;justify-content:space-between;align-items:center}.sheet-head h3{margin:0}.x{border:0;background:#efece4;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1rem}@keyframes up{0%{transform:translateY(40px);opacity:0}}@keyframes fade{0%{opacity:0}}.skipped{padding-left:18px;font-size:.88rem}.skipped li{margin-bottom:6px}.skipped small{color:var(--muted)}.group-title{text-transform:capitalize;color:var(--navy)}.booking-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f1eee6}.booking-row:first-of-type{border-top:0}.booking-row.cancelled{opacity:.5}.booking-row.cancelled .br-body span{text-decoration:line-through}.br-time{display:flex;flex-direction:column;min-width:52px}.br-time small{color:var(--muted)}.br-body{flex:1;display:flex;flex-direction:column}.br-body small{color:var(--muted)}.series{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #f1eee6}.series:first-of-type{border-top:0}.series div:first-child{display:flex;flex-direction:column}.series small{color:var(--muted)}.series-actions{display:flex;gap:6px;flex-wrap:wrap}.big-action{display:flex;flex-direction:column;gap:12px;align-items:stretch;text-align:center}.big-time{font-size:2.6rem;font-weight:800;color:var(--navy)}.ticket-row{display:flex;align-items:center;gap:12px}.tt-icon{font-size:1.5rem}.tt-icon.big{font-size:2.2rem}.tt-body{flex:1;display:flex;flex-direction:column;min-width:0}.tt-body strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tt-body small{color:var(--muted)}.status{font-size:.72rem;font-weight:700;padding:4px 9px;border-radius:20px;white-space:nowrap}.st-open{background:#fde9d6;color:#a85a12}.st-progress{background:#dfe9fb;color:#2453a0}.st-done{background:#dcf3e5;color:#1e6e43}.st-closed{background:#ececec;color:#666}.ticket-head{display:flex;gap:12px;align-items:flex-start}.ticket-meta{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.ticket-photo{max-width:100%;max-height:380px;border-radius:12px;margin-top:8px}.admin-box{margin-top:14px;padding-top:14px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:12px;align-items:flex-start}.comments{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:10px}.comments li{background:#f6f4ef;padding:10px 12px;border-radius:12px}.comments li.me{background:#eaf0f9}.comments li.sys{background:transparent;padding:2px 4px;color:var(--muted)}.comments p{margin:4px 0 0}.comment-form{display:flex;gap:8px;align-items:flex-end}.notif{text-align:left;display:flex;flex-direction:column;gap:3px;font:inherit;cursor:pointer}.notif.unread{border-left:4px solid var(--amber)}.notif span{font-size:.9rem}.notif small{color:var(--muted)}.link-row{font-weight:600}.admin-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}.admin-tabs a{flex:none;padding:8px 12px;border-radius:20px;background:#fff;border:1px solid var(--line);font-size:.85rem;font-weight:600}.admin-tabs a.on{background:var(--navy);color:#fff;border-color:var(--navy)}.unit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.unit{text-align:left;border:1px solid var(--line);background:#faf9f6;border-radius:12px;padding:10px;display:flex;flex-direction:column;cursor:pointer;font:inherit}.unit small{color:var(--muted)}.simple{list-style:none;padding:0;margin:0}.simple li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #f1eee6}.simple li:first-child{border-top:0}.dim{opacity:.5}.table-wrap{overflow-x:auto;margin:8px 0 12px}table{width:100%;border-collapse:collapse;font-size:.88rem}th{text-align:left;font-size:.75rem;color:var(--muted);font-weight:600;padding:6px;border-bottom:1px solid var(--line)}td{padding:8px 6px;border-bottom:1px solid #f1eee6;vertical-align:middle}td select{padding:6px}tfoot td{font-weight:700}.bar{height:6px;background:#efece4;border-radius:4px;margin-bottom:3px;min-width:60px}.bar i{display:block;height:100%;background:var(--navy-2);border-radius:4px}.climate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-bottom:10px}.climate-grid div{background:#f6f4ef;border-radius:12px;padding:10px;display:flex;flex-direction:column}.climate-grid strong{font-size:1.5rem;color:var(--navy)}.climate-grid small{color:var(--muted)}pre.code{background:#1c2430;color:#e7edf6;padding:12px;border-radius:10px;font-size:.78rem;overflow-x:auto;white-space:pre-wrap;word-break:break-all}.qr{width:260px;max-width:100%;margin:10px auto;display:block}.rules-text{white-space:pre-wrap;line-height:1.55;font-size:.95rem}.center-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}.splash-logo{width:84px;height:84px;border-radius:22px;box-shadow:var(--shadow)}.splash-logo.small{width:60px;height:60px}.login h1{margin:6px 0 0;color:var(--navy)}.login-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:12px;text-align:left}.otp{font-size:1.6rem;letter-spacing:.4em;text-align:center}.gate-head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;padding-top:20px}.spinner{width:34px;height:34px;border:3px solid #ddd6c8;border-top-color:var(--navy);border-radius:50%;animation:spin .8s linear infinite;margin:20px auto}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(84px + env(safe-area-inset-bottom));z-index:60;background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-size:.92rem;max-width:92vw;box-shadow:0 6px 24px #00000040;animation:up .2s}.toast.err{background:var(--red)}@media (max-width: 420px){.seg button{padding:8px 6px;font-size:.8rem}.form-grid .span2{grid-column:span 1}.status-card h1{font-size:1.45rem}}.cal-box{display:flex;flex-direction:column;gap:8px;padding:12px;background:#f6f4ef;border-radius:12px;margin:6px 0 12px}.cal-choice{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:center}.cal-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 16px}.booking-row{flex-wrap:wrap}.feed-url{background:#f6f4ef;border-radius:10px;padding:10px;margin:8px 0}.feed-url code{background:transparent;padding:0;font-size:.78rem}details summary{cursor:pointer;font-weight:600;margin:8px 0}.linklike{border:0;background:none;color:var(--navy-2);font:inherit;text-decoration:underline;cursor:pointer;padding:0}
