/* Loopd workspace. Values come from the "Workspace J v4" design (1440 × 900). */
html, body { margin: 0; height: 100%; background: #f6f5f4; }
button { font: inherit; }

.ws-app {
  position: fixed; inset: 0; overflow: hidden;
  font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  line-height: 1.45; font-variant-numeric: tabular-nums;
  background: #f6f5f4; color: #191917; font-size: 13px;
}

/* ---- Sidebar: 60px rail, expands on hover (design timings) ---- */
.ws-side{position:absolute;left:0;top:0;bottom:0;width:60px;background:#f6f5f4;z-index:20;overflow:hidden;display:flex;flex-direction:column;transition:width .2s cubic-bezier(.2,.7,.2,1) .05s, box-shadow .2s ease .05s}
.ws-side:hover{width:264px;transition-delay:.3s;box-shadow:1px 0 0 #e9e8e6, 24px 0 48px rgba(15,15,15,0.07)}
.ws-side .lab{opacity:0;transition:opacity .1s ease;white-space:nowrap}
.ws-side:hover .lab{opacity:1;transition:opacity .15s ease .4s}
.ws-side .onlyc{opacity:1;transition:opacity .1s ease .2s}
.ws-side:hover .onlyc{opacity:0;transition-delay:.3s}
.ws-side.open{width:264px;box-shadow:1px 0 0 #e9e8e6, 24px 0 48px rgba(15,15,15,0.07);transition-delay:0s}
.ws-side.open .lab{opacity:1;transition-delay:0s}
.ws-side.open .onlyc{opacity:0;transition-delay:0s}
.ws-row{display:block;width:100%;padding:0 8px;box-sizing:border-box;border:0;background:transparent;font:inherit;color:#191917;text-align:left;cursor:pointer;margin:1px 0}
.ws-row>.in{display:flex;align-items:center;height:32px;border-radius:8px;font-size:13.5px;font-weight:500;color:#4a4945}
.ws-row>.in>.ic{width:44px;flex:none;display:grid;place-items:center;position:relative;color:#8a8984}
.ws-row .meta{margin-left:auto;padding:0 10px 0 8px;font-size:12px;color:#a3a29e;font-weight:450}
.ws-row:hover>.in{background:#ecebe9}
.ws-row.on>.in{background:#e6e5e2;color:#191917}
.ws-row.on>.in>.ic{color:#191917}
.ws-b{border:0;background:transparent;font:inherit;cursor:pointer;color:inherit;padding:0}
.ws-ib{width:28px;height:28px;border-radius:7px;display:grid;place-items:center}
.ws-ib:hover,.ws-tb:hover{background:#ecebe9}
.ws-tb{height:28px;padding:0 9px;border-radius:7px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;white-space:nowrap}
.ws-ev{transition:filter .12s ease}
.ws-ev:hover{filter:brightness(.97)}
.ws-app input::placeholder, .ws-app textarea::placeholder{color:#a3a29e}
.reqlist{position:relative;padding:0 0 6px}
.reqlist::before{content:'';position:absolute;left:30px;top:-2px;bottom:10px;width:1px;background:#e3e2df}
.reqlist .ws-row .in>.ic>span:first-of-type{box-shadow:0 0 0 3px #f6f5f4}
.ws-sec{height:30px;position:relative;margin-top:6px}
.ws-sec .lab{position:absolute;left:22px;top:8px;font-size:12px;font-weight:550;color:#a3a29e;display:flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;cursor:pointer;font-family:inherit}
.ws-sec .lab:hover{color:#6f6e69}
.ws-sec .onlyc{position:absolute;left:22px;top:15px;width:16px;height:1px;background:#efeeec}
.ws-chev{display:inline-flex;transition:transform .15s ease}
.ws-chev.shut{transform:rotate(-90deg)}
.ws-side-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.ws-side-list::-webkit-scrollbar{display:none}

/* ---- Main card ---- */
.ws-main{position:absolute;left:60px;top:8px;right:8px;bottom:8px;background:#ffffff;border-radius:12px;box-shadow:0 0 0 1px rgba(15,15,15,0.06),0 1px 2px rgba(15,15,15,0.04);display:flex;overflow:hidden}
.ws-chat{width:420px;flex:none;display:flex;flex-direction:column;border-right:1px solid #efeeec;min-width:0}
.ws-head{height:52px;flex:none;display:flex;align-items:center;gap:10px;padding:0 16px 0 20px;border-bottom:1px solid #efeeec}
.ws-scroll{flex:1;min-height:0;overflow:auto;padding:18px 20px 12px;display:flex;flex-direction:column;gap:14px}
.ws-btn{height:28px;padding:0 11px;border-radius:8px;font-size:13px;font-weight:600}
.ws-btn.dark{background:#191917;color:#ffffff}
.ws-btn.line{background:#fff;box-shadow:inset 0 0 0 1px #e3e2df}
.ws-btn.dark:hover{background:#2c2c29}
.ws-btn.line:hover{background:#f6f5f4}
.ws-composer{margin:0 16px 16px;border-radius:12px;background:#ffffff;box-shadow:inset 0 0 0 1px #e9e8e6,0 1px 2px rgba(15,15,15,0.04);padding:12px 12px 8px 14px}
.ws-composer:focus-within{box-shadow:inset 0 0 0 1px #c9c8c4,0 1px 2px rgba(15,15,15,0.04)}
.ws-cal{flex:1;min-width:0;display:flex;flex-direction:column}
.ws-grid-wrap{flex:1;min-height:0;display:grid;grid-template-columns:52px 1fr;overflow-y:auto;overflow-x:hidden;border-top:1px solid #efeeec;padding-top:10px;align-content:start}
.ws-hours{height:56px;font-size:11px;color:#a3a29e;text-align:right;padding-right:10px;box-sizing:border-box;transform:translateY(-7px)}
.ws-row-line{height:0;border-top:1px solid #f3f2f0;box-sizing:border-box;pointer-events:none}
.ws-hours-box{position:absolute;border-radius:7px;background:rgba(25,25,23,0.035);pointer-events:none}

/* ---- Popovers, menus and dialogs ---- */
.ws-pop{position:absolute;width:292px;z-index:6;background:#fff;border-radius:12px;box-shadow:0 0 0 1px rgba(15,15,15,0.07),0 14px 36px rgba(15,15,15,0.12);padding:12px 14px 14px 16px;box-sizing:border-box}
.ws-menu{position:fixed;z-index:50;min-width:200px;background:#fff;border-radius:10px;box-shadow:0 0 0 1px rgba(15,15,15,0.07),0 14px 36px rgba(15,15,15,0.14);padding:5px}
.ws-menu button,.ws-menu a{display:flex;align-items:center;gap:9px;width:100%;height:32px;padding:0 10px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:13px;font-weight:500;color:#191917;text-align:left;cursor:pointer;text-decoration:none;box-sizing:border-box}
.ws-menu button:hover,.ws-menu a:hover{background:#f1f1ef}
.ws-menu .danger{color:#b42318}
.ws-menu hr{border:0;border-top:1px solid #efeeec;margin:4px 2px}
.ws-scrim{position:fixed;inset:0;z-index:60;background:rgba(15,15,15,0.18);display:flex;align-items:flex-start;justify-content:center;padding-top:12vh}
.ws-dialog{width:min(460px,calc(100vw - 32px));background:#fff;border-radius:14px;box-shadow:0 0 0 1px rgba(15,15,15,0.07),0 24px 60px rgba(15,15,15,0.18);overflow:hidden}
.ws-dialog-h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #efeeec}
.ws-dialog-h input{flex:1;border:0;outline:none;font:inherit;font-size:14.5px;color:#191917;background:transparent}
.ws-pal-list{max-height:min(52vh,420px);overflow:auto;padding:6px}
.ws-pal-item{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:9px;background:transparent;font:inherit;text-align:left;cursor:pointer;color:#191917;box-sizing:border-box}
.ws-pal-item:hover,.ws-pal-item.on{background:#f1f1ef}
.ws-pal-item small{display:block;color:#a3a29e;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ws-pal-empty{padding:18px 14px;color:#a3a29e;font-size:13px}
.ws-form{padding:16px 18px 18px;display:flex;flex-direction:column;gap:12px}
.ws-form h2{margin:0;font-size:16px;font-weight:650;letter-spacing:-0.01em}
.ws-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:550;color:#6f6e69}
.ws-form input,.ws-form select{height:34px;border-radius:8px;border:0;box-shadow:inset 0 0 0 1px #e3e2df;padding:0 10px;font:inherit;font-size:13.5px;color:#191917;background:#fff;outline:none}
.ws-form input:focus,.ws-form select:focus{box-shadow:inset 0 0 0 1.5px #191917}
.ws-form .row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.ws-form .acts{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.ws-form .err{color:#b42318;font-size:12.5px;margin:-4px 0 0}
.ws-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;background:#191917;color:#fff;font-size:13px;font-weight:550;padding:9px 14px;border-radius:9px;box-shadow:0 10px 30px rgba(15,15,15,0.2);pointer-events:none}

/* ---- Discover / Circle panes ---- */
.ws-page{flex:1;min-width:0;display:flex;flex-direction:column}
.ws-page-body{flex:1;min-height:0;overflow:auto;padding:28px 32px}
.ws-empty{max-width:420px;margin:12vh auto 0;text-align:center;color:#6f6e69}
.ws-empty h2{color:#191917;font-size:20px;font-weight:650;letter-spacing:-0.015em;margin:14px 0 6px}
.ws-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.ws-person{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;box-shadow:inset 0 0 0 1px #efeeec;background:#fff}
.ws-person b{font-size:14px;font-weight:600}
.ws-person small{display:block;color:#a3a29e;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.ws-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ws-app :focus-visible{outline:2px solid #6b4fb8;outline-offset:1px}

/* ---- Narrower screens: chat and calendar trade places ---- */
.ws-switch{display:none}
@media (max-width: 1100px) {
  .ws-chat{width:360px}
}
@media (max-width: 860px) {
  .ws-main{left:60px;top:0;right:0;bottom:0;border-radius:0}
  .ws-switch{display:inline-flex;gap:2px;padding:2px;border-radius:9px;background:#f1f1ef;margin-left:auto}
  .ws-switch button{height:26px;padding:0 10px;border-radius:7px;font-size:12.5px;font-weight:600;color:#6f6e69}
  .ws-switch button.on{background:#fff;color:#191917;box-shadow:0 1px 2px rgba(15,15,15,0.08)}
  .ws-main.m-chat .ws-cal{display:none}
  .ws-main.m-chat .ws-chat{flex:1;width:auto;border-right:0}
  .ws-main.m-cal .ws-chat{display:none}
  .ws-cal-inner{min-width:640px}
  .ws-cal{overflow-x:auto}
  .ws-head-role{display:none}
  .ws-reqc{flex-wrap:wrap}
  .ws-reqc>div{flex:1 1 140px}
  .ws-reqc-acts{width:100%;justify-content:flex-start}
  .ws-cal-head .ws-switch{order:-1;margin:0 6px 0 0}
}
@media (max-width: 520px) {
  .ws-side{width:52px}
  .ws-main{left:52px}
  .ws-row>.in>.ic{width:36px}
  .ws-head{padding:0 10px 0 12px}
}
@media (hover: none) {
  .ws-side:hover{width:60px;box-shadow:none}
  .ws-side:hover .lab{opacity:0}
  .ws-side:hover .onlyc{opacity:1}
  .ws-side.open:hover,.ws-side.open{width:264px;box-shadow:1px 0 0 #e9e8e6, 24px 0 48px rgba(15,15,15,0.07)}
  .ws-side.open:hover .lab,.ws-side.open .lab{opacity:1}
  .ws-side.open:hover .onlyc,.ws-side.open .onlyc{opacity:0}
}

/* ---- Workspace Update 1: Schedule, Booking & Hours, New Loop ---- */
#ws-sched::-webkit-scrollbar{width:8px}#ws-sched::-webkit-scrollbar-thumb{background:#e3e2df;border-radius:8px}
.ws-sch-item:hover{background:#fbfbfa !important}
.ws-tin{width:66px;height:26px;border:0;border-radius:6px;padding:0 6px;background:transparent;font:inherit;font-size:13px;color:#191917;outline:none;box-sizing:border-box}
.ws-tin:hover{background:#ecebe9}
.ws-tin:focus{background:#fff;box-shadow:inset 0 0 0 1.5px #191917}
.ws-tin::placeholder{color:#a3a29e}
select.ws-tin{background-image:none}
.lk-row:hover{background:#ecebe9 !important}
.lk-t .lk-x{opacity:0}
.lk-t:hover .lk-x,.lk-x:focus-visible{opacity:1}
.ws-dd-i:hover,.ws-sug-i:hover{background:#f6f5f4 !important}
.nt-b:hover{background:#ecebe9}
.nt-ed:empty:before{content:attr(data-ph);color:#a3a29e}
.nt-ed ul,.nt-ed ol{margin:4px 0;padding-left:22px}
.nt-ed h3{font-size:15px;font-weight:650;margin:8px 0 2px;color:#191917}
.nt-ed blockquote{margin:6px 0;padding-left:12px;border-left:2px solid #e3e2df;color:#6f6e69}
.nt-ed pre{margin:6px 0;padding:8px 10px;border-radius:8px;background:#f6f5f4;font-size:12.5px;white-space:pre-wrap}
.nt-ed a{color:#191917;text-decoration:underline}
.ws-hcol:hover{background:rgba(25,25,23,0.015)}
