/* Align the public demo record drawer with the desktop CRM. */
.record-drawer{position:fixed;right:0;top:36px;bottom:0;width:520px;z-index:650;background:#fff;border-left:1px solid var(--line);box-shadow:-18px 0 50px rgba(21,42,34,.16);overflow-y:auto;padding:0}
.drawer-brand{height:70px;position:sticky;top:0;z-index:3;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 22px;border-bottom:1px solid var(--line)}
.drawer-brand>div{display:flex;align-items:center;gap:9px}.drawer-brand img{width:29px;height:29px}.drawer-brand strong{font-size:14px;letter-spacing:.14em}.drawer-brand>button{border:0;background:transparent;font-size:25px;color:#63716a;cursor:pointer}
.drawer-title{padding:22px 24px 14px}.back-link{border:0;background:transparent;color:#7b8982;font-size:12px;padding:0;cursor:pointer}.drawer-title>div{display:flex;align-items:center;gap:10px;margin-top:10px}.drawer-title h2{font:800 27px/1.08 Manrope,sans-serif;margin:0;letter-spacing:-.03em}.drawer-title p{font-size:13px;margin:7px 0 0;color:#6e7c75}.drawer-title p b{color:var(--blue)}
.drawer-owner{padding:0 24px 18px;display:flex;align-items:end;justify-content:space-between;gap:15px}.drawer-owner>span>small{display:block;font-size:11px;color:#7c8983;margin-bottom:6px}.drawer-owner>span>strong{display:flex;align-items:center;gap:8px;font-size:13px}.drawer-owner>div{display:flex;gap:8px}.drawer-owner>div button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;cursor:pointer;font-size:15px}.drawer-owner>div button:hover{background:#f7f9f8}
.drawer-tabs{height:55px;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);position:sticky;top:70px;background:#fff;z-index:2;gap:0}.drawer-tabs button{border:0;background:#fff;font-size:12px;cursor:pointer;position:relative;padding:0}.drawer-tabs button.active{font-weight:700;color:var(--ink)}.drawer-tabs button.active:after{content:'';position:absolute;left:15px;right:15px;bottom:-1px;height:3px;background:#1b2c25}.drawer-tabs button:hover{background:#fbfcfb}
.drawer-content{padding:18px}.drawer-card{border:1px solid var(--line);border-radius:14px;padding:17px;margin-bottom:15px;background:#fff}.drawer-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.drawer-card-head strong{font-size:14px}.drawer-card-head button{border:0;background:transparent;color:var(--blue);font-size:11px;cursor:pointer}.drawer-card dl{margin:0}.drawer-card dl>div{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center;min-height:36px}.drawer-card dt{font-size:12px;color:#7a8781}.drawer-card dd{margin:0;font-size:13px;font-weight:600}.probability{display:inline-block;width:115px;height:7px;background:#edf0ee;border-radius:5px;margin-left:8px;vertical-align:middle}.probability i{display:block;height:100%;background:var(--blue);border-radius:5px}
.ai-next>button{width:100%;min-height:48px;border:0;border-top:1px solid #edf0ee;background:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;padding:10px 0}.ai-next>button span{font-size:12px}.ai-next>button b{font-size:10px;color:var(--blue);border:1px solid #d7e4ff;border-radius:7px;padding:5px 8px;background:#fff}.ai-next>button:hover{background:#fbfcff}
.drawer-timeline>span{display:grid;grid-template-columns:70px 9px 1fr;gap:9px;min-height:66px}.drawer-timeline time{font-size:11px;color:#7c8983}.drawer-timeline>span>i{width:7px;height:7px;border-radius:50%;background:var(--blue);margin-top:4px}.drawer-timeline strong,.drawer-timeline small{display:block}.drawer-timeline strong{font-size:12px}.drawer-timeline small{font-size:11px;color:#7a8781;margin-top:3px}.drawer-timeline.long>span{min-height:80px}
.associated-list button{width:100%;display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;border:0;border-top:1px solid #edf0ee;background:#fff;padding:11px 0;text-align:left;cursor:pointer}.associated-list strong,.associated-list small{display:block}.associated-list strong{font-size:13px}.associated-list small{font-size:11px;color:#7b8982;margin-top:2px}.empty-associated{font-size:12px;color:#7b8982;padding:16px 0}.empty-card{text-align:center;padding:35px}.empty-card>span{font-size:32px;color:#88968f}.empty-card h3{font-size:18px}.empty-card p{font-size:13px}.empty-card button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px;cursor:pointer}.drawer-card textarea{width:100%;min-height:150px;border:1px solid var(--line);border-radius:9px;padding:10px;resize:vertical;font-size:13px;margin-bottom:10px}.drawer-card>.primary{float:right;margin-bottom:2px}
.record-drawer .pill{font-size:11px;padding:3px 7px}.record-drawer .avatar{width:32px;height:32px}
@media(max-width:860px){.record-drawer{top:0;width:min(520px,100vw)}}
