/* One workspace, distinct surfaces for conversations, contacts and scheduled work. */
.desk-channel{--channel:#426bd5;display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;white-space:nowrap;color:var(--channel)}
.channel-website{--channel:#426bd5;--channel-soft:#eaf0ff}.channel-telegram{--channel:#1486aa;--channel-soft:#e7f6fb}.channel-whatsapp{--channel:#24835d;--channel-soft:#e8f5ed}.channel-instagram{--channel:#a14b9b;--channel-soft:#f8ecf7}
.desk-channel i{height:6px;width:6px;border-radius:50%;background:var(--channel);flex:none}.desk-open{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;font:inherit;font-size:11px;font-weight:600;color:var(--brand);background:none;border:0;cursor:pointer;min-height:36px;text-align:left}.desk-open:hover{text-decoration:underline}.desk-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--table-head)}.desk-overview>div{padding:18px 24px;border-right:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px}.desk-overview>div:last-child{border-right:0}.desk-overview span{font-size:11px;color:var(--muted)}.desk-overview strong{font-size:23px;font-weight:500;letter-spacing:-1px}.desk-empty{padding:64px 24px;text-align:center}.desk-empty strong{display:block;font-size:17px}.desk-empty p{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}.records-card .record-hint{display:none}.desk-overview:empty{display:none}
/* Inbox: message-first rows. Directory: contact-first cards. */
.desk-inbox{padding:4px 0}.desk-inbox-row{display:grid;grid-template-columns:44px minmax(140px,.8fr) minmax(180px,1.5fr) minmax(135px,.6fr);gap:16px;width:100%;padding:21px 24px;align-items:center;text-align:left;background:var(--card);border:0;border-bottom:1px solid var(--border);color:var(--ink);cursor:pointer}.desk-inbox-row:last-child{border-bottom:0}.desk-inbox-row:hover{background:var(--table-head)}.desk-inbox-row .customer-avatar,.contact-card .customer-avatar{background:var(--channel-soft,var(--soft));color:var(--channel,var(--brand));border-radius:14px}.desk-inbox-person,.desk-inbox-copy,.desk-inbox-meta{min-width:0}.desk-inbox-person strong{display:block;font-size:13px}.desk-inbox-person small{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere;margin-top:6px}.desk-inbox-copy>span{font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.desk-inbox-copy>small{display:block;font-size:10px;color:var(--muted);margin-top:8px}.desk-inbox-meta{display:grid;justify-items:end;gap:8px}.desk-inbox-meta time,.desk-inbox-meta>small{font-size:10px;color:var(--muted)}.desk-inbox-row.is-paused .desk-inbox-copy>small{color:var(--warning)}
.customer-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:22px;gap:18px}.contact-card{min-width:0;border:1px solid var(--border);padding:22px;border-radius:16px;background:var(--card)}.contact-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.contact-card h3{font-size:17px;letter-spacing:-.4px;margin:18px 0}.contact-lines{display:grid;gap:11px;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.contact-lines small{display:block;font-size:10px;color:var(--muted);margin-bottom:2px}.contact-history{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted);padding:17px 0;margin-top:15px;border-top:1px solid var(--border)}.contact-history b{font-size:12px;font-weight:600;color:var(--ink)}.contact-card>.desk-open{width:100%;border-top:1px solid var(--border);padding-top:12px}
/* A pipeline shows the stage of the request, not a duplicate contact table. */
.lead-board{display:flex;align-items:stretch;gap:14px;padding:22px;overflow-x:auto;scroll-snap-type:x proximity}.lead-lane{flex:1 0 228px;min-width:0;max-width:340px;background:var(--table-head);padding:12px;border-radius:14px;scroll-snap-align:start}.lead-lane>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 3px 16px;border-top:3px solid #9bb1df}.lead-lane[data-lane="1"]>header{border-color:#dfb56f}.lead-lane[data-lane="2"]>header{border-color:#b59bd2}.lead-lane[data-lane="3"]>header{border-color:#73a99a}.lead-lane[data-lane="4"]>header{border-color:#96af72}.lead-lane[data-lane="5"]>header{border-color:#b2b5bd}.lead-lane h3{font-size:12px}.lead-lane>header>span{font-size:11px;color:var(--muted)}.lead-card{padding:16px;background:var(--card);border:1px solid var(--border);border-radius:11px;margin-bottom:12px}.lead-card>div{display:flex;justify-content:space-between;gap:10px}.lead-card h4{font-size:14px;margin:14px 0 8px}.lead-card>strong{font-size:11px;font-weight:500}.lead-card>p{font-size:11px;color:var(--muted);line-height:1.7;margin:10px 0 14px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.lead-card footer{display:flex;justify-content:space-between;align-items:center;gap:5px;border-top:1px solid var(--border);padding-top:8px}.lead-card .desk-open{font-size:10px;gap:6px}.desk-urgent{font-size:9px;color:var(--warning)}.lane-empty{font-size:11px;color:var(--muted);padding:18px 3px;line-height:1.7}
.estimate-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:22px}.desk-estimate{border:1px solid var(--border);border-radius:15px;padding:21px;min-width:0}.desk-estimate>header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.desk-estimate h3{font-size:16px;margin-top:20px}.desk-estimate>p{font-size:12px;color:var(--muted);margin-top:6px}.desk-estimate-price{display:block;font-size:28px;font-weight:500;letter-spacing:-1px;margin:24px 0 12px}.estimate-scope{font-size:11px;line-height:1.7;color:var(--muted);min-height:40px}.desk-estimate>footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 0;margin-top:15px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.desk-estimate footer b{display:block;font-weight:500;color:var(--ink);margin-top:4px}.desk-estimate>.desk-open{border-top:1px solid var(--border);width:100%;padding-top:12px}
.desk-followups{width:100%;border-collapse:collapse;font-size:12px}.desk-followups th{text-align:left;padding:14px 20px;background:var(--table-head);font-size:10px;font-weight:500;color:var(--muted)}.desk-followups td{padding:20px;border-top:1px solid var(--border);vertical-align:top}.desk-followups td:first-child{min-width:140px}.desk-followups td:first-child>span,.desk-followups td>small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.desk-followups td:nth-child(2){min-width:230px;max-width:400px}.desk-followups td p{line-height:1.8;font-size:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.desk-followups time{font-size:11px}.desk-activity{padding:24px;display:grid;gap:14px}.desk-activity article{border:1px solid var(--border);border-radius:12px;padding:20px}.desk-activity header,.desk-activity footer{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px}.desk-activity p{font-size:13px;line-height:1.8;margin:16px 0;white-space:pre-wrap;overflow-wrap:anywhere}.desk-activity time{font-size:10px;color:var(--muted)}
/* Calendar: sticky day headings, real dates and collision-aware timed events. */
.service-calendar{min-width:0;padding:0 22px 24px;--calendar-grid:#dce3ec}.service-calendar[hidden]{display:none!important}.calendar-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:6px 0 20px}.calendar-navigation{display:flex;align-items:center;gap:8px;min-width:0}.calendar-options{display:grid;grid-template-columns:minmax(160px,190px) minmax(120px,140px);align-items:end;gap:14px;min-width:0;max-width:100%}.calendar-options label{display:grid;gap:7px;min-width:0;margin:0}.calendar-field-label{font-size:11px;font-weight:500;line-height:1.4;color:var(--muted)}.calendar-navigation h3{font-size:18px;font-weight:500;letter-spacing:-.5px;margin-left:8px}.calendar-options select,.calendar-options input{box-sizing:border-box;width:100%;min-width:0;max-width:none;min-height:44px;margin:0;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:13px;line-height:1.4}.calendar-options select:focus-visible,.calendar-options input:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.calendar-navigation .icon-button{font-size:23px;width:40px;height:44px;min-height:44px;flex:none}.calendar-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 0;color:var(--muted);font-size:11px}.calendar-legend{display:flex;flex-wrap:wrap;gap:18px;padding:5px 0 16px}#calendarNotice{font-size:12px;color:var(--muted);line-height:1.7}#calendarNotice:not(:empty){padding:12px 0}.calendar-grid{border:1px solid var(--border);border-radius:12px;overflow:hidden;min-width:0}.calendar-week-scroll{overflow:auto;max-height:620px;overscroll-behavior:contain;scrollbar-width:thin}.calendar-week{min-width:800px}.service-calendar[data-view="day"] .calendar-week{min-width:0}.calendar-week-heading,.calendar-week-body{display:grid;grid-template-columns:58px repeat(var(--calendar-days),minmax(0,1fr))}.calendar-week-heading{position:sticky;top:0;z-index:3;background:var(--card);border-bottom:1px solid var(--border)}.calendar-timezone{align-self:end;padding:12px 6px;font-size:9px;color:var(--muted)}.calendar-column-head{display:grid;justify-items:center;gap:7px;padding:14px 5px;min-height:80px;background:transparent;border:0;color:var(--muted);cursor:pointer}.calendar-column-head span{font-size:10px}.calendar-column-head strong{display:grid;place-items:center;font-size:21px;width:34px;height:34px;font-weight:500;color:var(--ink);border-radius:50%}.calendar-column-head.is-today strong{background:var(--brand);color:white}.calendar-column-head.is-today span{color:var(--brand)}.calendar-week-body{position:relative;height:1440px;background:var(--card)}.calendar-hours{position:relative}.calendar-hours span{position:absolute;right:10px;font-size:9px;color:var(--muted);transform:translateY(-5px)}.calendar-hours span:first-child{transform:translateY(5px)}.calendar-day-column{position:relative;border-left:1px solid var(--border);background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,var(--border) 59px,var(--border) 60px)}.calendar-day-column.is-today{background-color:color-mix(in srgb,var(--brand) 3%,var(--card))}.calendar-event{position:absolute;text-align:left;overflow:hidden;border:0;border-left:3px solid var(--channel);border-radius:6px;background:var(--channel-soft);color:var(--channel);padding:7px 6px;font:inherit;cursor:pointer;z-index:1;transition:filter .15s,box-shadow .15s;min-height:20px}.calendar-event:hover{z-index:2;filter:brightness(.97);box-shadow:0 4px 15px #152c3a24}.calendar-event:focus-visible,.calendar-month-event:focus-visible{outline:2px solid var(--brand);outline-offset:1px;z-index:4}.calendar-event b{display:block;font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.calendar-event span{display:block;font-size:9px;line-height:1.7}.calendar-event small{display:block;font-size:9px;line-height:1.5}.calendar-event.is-cancelled,.calendar-event.is-rescheduled,.calendar-month-event.is-cancelled{opacity:.5;text-decoration:line-through}.calendar-event.is-completed{opacity:.75}.calendar-month-head,.calendar-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-month-head span{padding:15px;text-align:center;color:var(--muted);font-size:11px;border-bottom:1px solid var(--border)}.calendar-month-day{min-width:0;min-height:130px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px;background:var(--card)}.calendar-month-day:nth-child(7n){border-right:0}.calendar-month-day.outside-month{background:var(--table-head)}.calendar-day-number{display:grid;place-items:center;width:27px;height:27px;margin:0 auto 8px;border:0;background:none;color:var(--ink);border-radius:50%;font-size:11px;cursor:pointer}.is-today>.calendar-day-number{background:var(--brand);color:white}.calendar-month-event{display:flex;align-items:center;gap:5px;width:100%;min-width:0;margin:4px 0;padding:5px;border:0;border-radius:4px;text-align:left;background:var(--channel-soft);color:var(--channel);cursor:pointer;font-size:9px}.calendar-month-event span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-month-event b{font-size:8px;font-weight:500}.calendar-more{border:0;background:none;color:var(--brand);font-size:10px;cursor:pointer;padding:4px}.calendar-agenda{padding:0 22px 20px}.calendar-agenda h4{font-size:12px;color:var(--muted);font-weight:500;padding:24px 0 10px}.calendar-agenda-event{width:100%;display:flex;align-items:center;gap:22px;border:0;border-left:3px solid var(--channel);border-radius:6px;padding:17px 16px;margin-bottom:9px;background:var(--channel-soft);color:var(--ink);text-align:left;cursor:pointer}.calendar-agenda-event time{font-size:12px;font-weight:600}.calendar-agenda-event time small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:5px}.calendar-agenda-event>span:nth-child(2){flex:1;display:grid;gap:5px;font-size:12px}.calendar-agenda-event>span:nth-child(2)>span{color:var(--muted);font-size:11px}
/* A spacious customer workspace; the details panel shows data before controls. */
#customerDialog{width:min(1440px,calc(100vw - 40px));height:min(940px,calc(100dvh - 40px));max-width:none;max-height:calc(100dvh - 40px);border-radius:20px;overflow:hidden}#customerDialog .customer-dialog-head{padding:19px 26px}#customerDialog .customer-identity{display:flex;gap:16px;align-items:center}#customerDialog .customer-header-avatar{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:16px;background:var(--accent-soft);color:var(--brand);font-size:19px;font-weight:600}#customerDialog .customer-dialog-head h2{font-size:24px;margin:3px 0;line-height:1.3}#customerDialog .customer-dialog-head p{font-size:12px;margin-top:3px}#customerDialog #customerChannel{font-size:9px;letter-spacing:1.2px}#customerDialog .customer-control{padding:10px 26px;background:var(--card);gap:14px}#customerDialog .customer-control>div{display:flex;align-items:center;gap:14px}#customerDialog .customer-control p{margin:0;max-width:480px;font-size:10px}#customerDialog .customer-control .button{min-height:34px;font-size:11px;padding:8px 13px}#customerDialog .customer-dialog-body{grid-template-columns:minmax(0,1.75fr) minmax(370px,1fr);flex:1;min-height:0;overflow:hidden}#customerDialog .customer-chat{min-height:0;height:100%;overflow:hidden;background:var(--card)}#customerDialog .chat-section-head{padding:16px 26px 12px}#customerDialog .customer-messages{padding:14px 32px 26px;min-height:120px;background:radial-gradient(ellipse at top left,color-mix(in srgb,var(--soft) 55%,transparent),transparent 65%);flex:1}#customerDialog .customer-bubble{max-width:82%;padding:16px 18px;border-radius:15px 15px 15px 4px;border-color:var(--border);background:var(--table-head);margin-bottom:20px}#customerDialog .customer-bubble.from-customer{background:var(--accent-soft);border-color:transparent;border-radius:15px 15px 4px 15px}#customerDialog .customer-bubble p{font-size:14px;line-height:1.85;margin-top:8px}#customerDialog .customer-bubble time{font-size:9px}#customerDialog .customer-bubble header strong{font-size:11px}#customerDialog .customer-reply{padding:13px 26px 17px;background:var(--card)}#customerDialog .customer-reply textarea{padding:12px 14px;border-radius:10px;min-height:58px;font-size:13px;line-height:1.6}#customerDialog .reply-composer-footer{margin-top:8px}#customerDialog .reply-composer-footer p{font-size:10px;max-width:420px}#customerDialog .reply-notice:empty{display:none}#customerDialog .customer-context{padding:20px;background:var(--table-head);min-height:0;overflow:auto}#customerDialog .operation-heading h3{font-size:16px;font-weight:600}#customerDialog .operation-heading span{font-size:9px}#customerDialog .operation-timing{font-size:10px;line-height:1.7;margin:8px 0 18px;color:var(--muted)}#customerDialog .operation-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border-radius:10px;background:var(--soft);margin:0 0 18px}#customerDialog .operation-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;padding:10px 3px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;min-height:39px;cursor:pointer}#customerDialog .operation-tabs button[data-active="true"]{background:var(--card);color:var(--ink);box-shadow:0 2px 5px #1826360c}#customerDialog .operation-tabs button>span{font-size:9px;opacity:.65}#customerDialog .customer-read-panel{display:grid;gap:14px}#customerDialog .customer-detail-card{border:1px solid var(--border);background:var(--card);border-radius:13px;padding:18px;min-width:0}#customerDialog .customer-detail-card>header{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:10px;color:var(--muted)}#customerDialog .customer-detail-card h4{font-size:16px;line-height:1.5;margin:18px 0 14px}#customerDialog .customer-detail-fields{display:grid;gap:0;margin:8px 0}#customerDialog .customer-detail-fields>div{padding:11px 0;border-bottom:1px solid var(--border)}#customerDialog .customer-detail-fields>div:last-child{border:0}#customerDialog .customer-detail-fields dt{font-size:9px;color:var(--muted);margin-bottom:5px}#customerDialog .customer-detail-fields dd{margin:0;font-size:12px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}#customerDialog .customer-detail-amount{display:block;font-size:28px;letter-spacing:-1px;font-weight:500;margin:14px 0}#customerDialog .detail-edit,#customerDialog .customer-detail-actions button{border:0;background:var(--accent-soft);color:var(--accent-ink);font-size:10px;border-radius:6px;min-height:34px;padding:9px 11px;cursor:pointer;margin-top:10px}#customerDialog .customer-detail-actions{display:flex;gap:8px;flex-wrap:wrap}#customerDialog .visit-detail-time,#customerDialog .followup-read-time{display:grid;gap:8px;padding:16px 0;margin:10px 0}#customerDialog .visit-detail-time>span,#customerDialog .followup-read-time>span{font-size:9px;color:var(--muted);letter-spacing:1px}#customerDialog .visit-detail-time strong{font-size:21px;font-weight:500;line-height:1.4;letter-spacing:-.6px}#customerDialog .visit-detail-time small,#customerDialog .followup-read-time small{font-size:9px;color:var(--muted)}#customerDialog .followup-read-time strong{font-size:17px;font-weight:500}#customerDialog .followup-message-preview{padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--table-head)}#customerDialog .followup-message-preview>span{font-size:8px;color:var(--muted);letter-spacing:1px}#customerDialog .followup-message-preview p{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px}#customerDialog .customer-detail-empty{padding:28px 16px 34px;text-align:center;border:1px dashed var(--border);border-radius:12px}#customerDialog .customer-detail-empty>span{display:block;color:var(--brand);font-size:25px;margin-bottom:15px}#customerDialog .customer-detail-empty h4{font-size:15px}#customerDialog .customer-detail-empty p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:10px}#customerDialog .customer-editor{margin-top:17px;border:1px solid var(--border);border-radius:11px;background:var(--card);overflow:hidden}#customerDialog .customer-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;font-size:11px;cursor:pointer;list-style:none}#customerDialog .customer-editor>summary::-webkit-details-marker{display:none}#customerDialog .customer-editor[open]>summary{border-bottom:1px solid var(--border)}#customerDialog .operation-form{padding:17px;gap:15px;margin:0;display:grid}#customerDialog .operation-form label{font-size:10px;line-height:1.7;display:grid;gap:7px}#customerDialog .operation-form input,#customerDialog .operation-form select,#customerDialog .operation-form textarea{width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:7px;background:var(--table-head);color:var(--ink);font:inherit;font-size:12px}#customerDialog .operation-form .operation-check,#customerDialog .operation-form .operation-confirm{display:flex;align-items:flex-start;gap:9px}#customerDialog .operation-form input[type="checkbox"]{width:15px;min-width:15px;padding:0;margin-top:3px}#customerDialog .operation-form small{font-size:9px;line-height:1.8;color:var(--muted)}#customerDialog .operation-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#customerDialog .operation-history{font-size:10px;color:var(--muted);margin-top:18px}#customerDialog .operation-history summary{cursor:pointer;padding:8px 0}#customerDialog #operationEstimates[hidden],#customerDialog #customerRecords[hidden]{display:none!important}.customer-mobile-tabs{display:none}
.theme-dark .calendar-event,.theme-dark .calendar-month-event,.theme-dark .calendar-agenda-event{--channel-soft:color-mix(in srgb,var(--channel) 15%,var(--card));color:var(--ink)}.theme-dark .contact-card .customer-avatar,.theme-dark .desk-inbox-row .customer-avatar{background:color-mix(in srgb,var(--channel) 16%,var(--card));color:var(--ink)}
@media(max-width:1250px){.customer-directory,.estimate-board{grid-template-columns:repeat(2,minmax(0,1fr))}.desk-overview>div{padding:15px}.desk-inbox-row{grid-template-columns:40px minmax(130px,.9fr) minmax(170px,1.1fr);gap:12px}.desk-inbox-meta{grid-column:2/-1;display:flex;align-items:center;justify-content:space-between}.desk-inbox-copy{align-self:start}#customerDialog .customer-dialog-body{grid-template-columns:minmax(0,1.4fr) minmax(350px,1fr)}}
@media(max-width:900px){#customerDialog{width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:15px}#customerDialog .customer-dialog-head{padding:16px 20px}#customerDialog .customer-control{padding:9px 20px}#customerDialog .customer-control p{display:none}#customerDialog .customer-mobile-tabs{display:flex;flex:none;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--card);padding:5px 18px;gap:10px}#customerDialog .customer-mobile-tabs button{border:0;border-radius:7px;background:none;color:var(--muted);padding:11px 16px;min-height:41px;font-size:12px;cursor:pointer}#customerDialog .customer-mobile-tabs button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-ink)}#customerDialog .customer-dialog-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}#customerDialog .customer-chat,#customerDialog .customer-context{flex:1;min-height:0;max-height:none;border:0}#customerDialog[data-mobile-pane="chat"] .customer-context{display:none}#customerDialog[data-mobile-pane="details"] .customer-chat{display:none}#customerDialog .customer-context{padding:22px;overflow:auto}#customerDialog .operation-tabs button{font-size:12px}#customerDialog .customer-bubble{max-width:85%}.calendar-toolbar{align-items:flex-start}.calendar-navigation h3{font-size:16px}.calendar-meta span{font-size:10px}}
@media(max-width:650px){.desk-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.desk-overview>div{padding:14px 18px;border-bottom:1px solid var(--border)}.desk-overview>div:nth-child(2n){border-right:0}.desk-overview strong{font-size:21px}.customer-directory,.estimate-board{grid-template-columns:1fr;padding:16px;gap:14px}.contact-card,.desk-estimate{padding:20px}.desk-inbox-row{grid-template-columns:38px minmax(0,1fr);padding:18px;gap:10px}.desk-inbox-copy{grid-column:2;padding-top:4px}.desk-inbox-meta{grid-column:2;flex-wrap:wrap;gap:9px;font-size:9px}.desk-inbox-meta>time{margin-left:auto}.desk-inbox-meta>small{display:none}.desk-inbox-person strong{font-size:14px}.lead-board{padding:16px;gap:12px}.lead-lane{flex-basis:250px}.desk-followups,.desk-followups tbody,.desk-followups tr,.desk-followups td{display:block;width:100%}.desk-followups thead{display:none}.desk-followups tbody{padding:0 16px;box-sizing:border-box}.desk-followups tr{padding:18px 0;border-bottom:1px solid var(--border)}.desk-followups td{border:0;padding:7px 0;min-width:0!important;max-width:none!important}.desk-followups td:before{content:attr(data-label);display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.desk-followups td:nth-child(2) p{-webkit-line-clamp:4}.desk-followups td:last-child>.desk-open{width:100%;border-top:1px solid var(--border);padding-top:10px}.service-calendar{padding:0 12px 16px}.calendar-toolbar{gap:12px}.calendar-navigation{gap:4px;flex-wrap:wrap}.calendar-navigation h3{flex-basis:100%;margin:8px 0 0;font-size:17px}.calendar-navigation .button{font-size:11px;min-height:35px;padding:8px 12px}.calendar-options{width:100%;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}.calendar-options input{max-width:none}.calendar-grid:has(.calendar-month){overflow-x:auto}.calendar-month-head,.calendar-month{min-width:560px}.calendar-month-day{min-height:110px;padding:5px}.calendar-agenda{padding:0 12px 14px}.calendar-agenda-event{gap:12px;padding:12px;flex-wrap:wrap}.calendar-agenda-event>.desk-channel{margin-left:58px}.calendar-agenda-event>span:nth-child(2){flex-basis:65%}.calendar-agenda-event>.badge{font-size:9px}#customerDialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}#customerDialog .customer-dialog-head{padding:14px 16px}#customerDialog .customer-header-avatar{width:42px;height:42px;border-radius:12px;font-size:15px}#customerDialog .customer-identity{gap:10px}#customerDialog .customer-dialog-head h2{font-size:20px}#customerDialog .customer-dialog-head p{font-size:10px}#customerDialog .customer-control{padding:9px 16px}#customerDialog .customer-mobile-tabs{padding:5px 12px}#customerDialog .customer-messages{padding:12px 16px 22px}#customerDialog .customer-bubble{padding:13px 14px;max-width:92%;margin-bottom:16px}#customerDialog .customer-bubble p{font-size:13px;line-height:1.85}#customerDialog .chat-section-head{padding:13px 16px 9px;gap:7px}#customerDialog .chat-section-head h3{font-size:12px}#customerDialog .customer-history-controls{gap:5px}#customerDialog .customer-history-controls .button{font-size:10px;padding:6px;min-height:30px}#customerDialog .customer-reply{padding:12px 16px 16px}#customerDialog .reply-composer-footer{align-items:flex-start}#customerDialog .reply-composer-footer .button{font-size:11px;padding:9px 11px}#customerDialog .reply-composer-footer p{font-size:9px;line-height:1.7}#customerDialog .customer-context{padding:18px 16px}#customerDialog .operation-tabs{gap:2px}#customerDialog .operation-tabs button{font-size:10px}#customerDialog .customer-detail-fields dd{font-size:13px}}
@media(prefers-reduced-motion:reduce){.calendar-event{transition:none}}

#customerDialog .chat-zone{display:block;font-size:9px;color:var(--muted);margin-top:4px}
#customerDialog[data-channel="whatsapp"] .customer-header-avatar{background:#e8f5ed;color:#24835d}#customerDialog[data-channel="whatsapp"] .customer-bubble.from-customer{background:color-mix(in srgb,#24835d 10%,var(--card))}#customerDialog[data-channel="instagram"] .customer-header-avatar{background:#f8ecf7;color:#a14b9b}#customerDialog[data-channel="instagram"] .customer-bubble.from-customer{background:color-mix(in srgb,#a14b9b 10%,var(--card))}#customerDialog[data-channel="telegram"] .customer-header-avatar{background:#e7f6fb;color:#1486aa}#customerDialog[data-channel="telegram"] .customer-bubble.from-customer{background:color-mix(in srgb,#1486aa 10%,var(--card))}

@media(max-width:420px){.calendar-options{grid-template-columns:minmax(0,1fr);gap:14px}}
