/* WorkTalk 1.0.42: a single workspace sidebar and roomy content surfaces. */
:root{--ui-bg:#f4f6fa;--ui-surface:#fff;--ui-ink:#20304a;--ui-subtle:#64748b;--ui-line:#e0e6ef;--ui-blue:#2563eb;--ui-soft:#edf3ff;--muted:#64748b;--line:#e0e6ef;--blue:#2563eb;color:var(--ui-ink);background:var(--ui-bg)}
button,input,select,textarea{min-width:0}button{border-radius:8px;font-weight:400}button:focus-visible,a:focus-visible{outline:3px solid #a8c5ff;outline-offset:2px}button:hover{background:#f2f6ff}button.primary:hover{background:#1d54c9}button.primary{color:white}.muted{color:var(--ui-subtle)}
.app{grid-template-columns:190px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:100vh;height:var(--worktalk-viewport-height,100dvh);background:var(--ui-bg)}
.app .right{display:none!important}
.app .side{height:100%;position:static!important;overflow:auto!important;background:var(--ui-bg);border-right:1px solid var(--ui-line);padding:18px 12px 12px;gap:12px;min-height:0;overscroll-behavior:contain}
.brand h1{display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:0}.brand h1 img{width:30px;height:30px;border-radius:9px}.brand>p{margin:5px 0 0;font-size:11px;padding-left:38px;overflow-wrap:anywhere}
.company-switcher{margin-top:10px;padding:6px 8px;background:var(--ui-surface);border-color:var(--ui-line);min-height:34px}.company-switcher b{font-size:11px}.company-switcher>span:first-child{width:22px;height:22px}
.side .section-label{letter-spacing:0;font-weight:400;font-size:11px;margin:0 0 6px;color:var(--ui-subtle)}.side .branches{max-height:120px!important;overflow:auto}.side .branch{padding:7px 8px;margin:0 0 3px;border:1px solid transparent;gap:7px;background:var(--ui-surface);font-size:12px}.side .branch.active{border-color:#cbdaff;background:var(--ui-soft)}.branch-icon{width:27px;height:27px;border-radius:8px}.branch small{display:none}.branch>span:last-child{min-width:0;overflow-wrap:anywhere}
.side .rail{height:auto;width:100%;min-width:0;flex:none;position:static!important;overflow:visible!important;display:flex;flex-direction:column;align-items:stretch;gap:3px;background:transparent;color:var(--ui-ink);padding:0;border:0}
.rail>div{position:relative;border-radius:8px}.rail button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;padding:9px 10px;background:transparent;color:inherit;min-height:38px;font-size:13px;border-radius:8px}.rail .on{background:var(--ui-soft);color:var(--ui-blue)}.rail .on button{font-weight:500}.rail .nav-icon{width:19px;text-align:center;font-size:16px;flex-shrink:0}.rail .nav-text{flex:1;min-width:0}.rail .rail-alert{right:9px;top:12px}.rail>.spacer{display:none}.rail #rail-settings{color:var(--ui-subtle);font-size:12px;margin-top:3px}
.side>div:has(#create-room)>div:first-child{margin-bottom:10px!important;gap:6px!important}#create-room,#join-room{padding:7px 5px;font-size:11px;min-height:31px}
.side .views{margin:0;gap:2px}.viewbtn{padding:8px 9px;margin:0;font-size:12px}.viewbtn .count{font-size:11px;background:var(--ui-surface)}
.dm-directory{min-height:105px;flex:1}.dm-directory>.section-label{margin-top:0!important}.dm-directory .member-list-side{min-height:70px;max-height:210px;overflow:auto}.dm-directory-search input{padding:7px;font-size:11px;background:var(--ui-surface)}.member-side{padding:7px 6px!important;font-size:12px!important}
.app:not([data-current-view="chat"]):not([data-current-view="dm"]) .dm-directory{display:none}.side>.spacer{display:none}.userbox{margin-top:auto;padding-top:12px;gap:6px;border-color:var(--ui-line);flex-wrap:wrap}.userbox>.avatar{width:28px;height:28px;border-radius:8px}.userbox .icon-btn{padding:5px 6px;min-height:30px;font-size:12px}
.center{background:var(--ui-surface);min-height:0;min-width:0}.top{height:auto;min-height:80px;padding:19px 24px 15px;gap:12px;border-bottom:0;flex-shrink:0}.top h2{font-size:21px;letter-spacing:-.3px;font-weight:600;overflow-wrap:anywhere}.top>div:first-child{min-width:0}.top-subtitle{font-size:11px!important}.top-actions{gap:7px;flex-wrap:wrap;flex-shrink:0}.top-actions button{font-size:12px;padding:8px 10px;min-height:34px}
.quick-summary{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px;padding:0 24px 10px;background:white;border:0;min-height:0;flex-shrink:0}.quick-summary button{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:6px;border:0;background:var(--ui-bg);padding:6px 9px;border-radius:6px;margin:0;font-size:11px;min-height:29px}.quick-summary button span{font-size:11px;line-height:1.3}.quick-summary button b{font-size:12px;margin:0;line-height:1.3}.quick-summary .warn{background:#fff5e7;color:#915604}
.toolbar{background:var(--ui-surface);padding:0 24px 14px;border-bottom:1px solid var(--ui-line);align-items:center;flex-shrink:0;flex-wrap:nowrap;gap:7px}.toolbar input{min-height:39px;background:var(--ui-surface);padding:9px 12px;font-size:13px;flex:1;min-width:0}.toolbar button{font-size:12px;padding:8px 11px;min-height:38px;white-space:nowrap}.toolbar #toggle-cancelled{font-size:11px;padding:8px}#search-clear{padding:8px 11px}
.feed{padding:18px 24px;min-height:0;overscroll-behavior:contain}.app[data-current-view="chat"] .feed,.app[data-current-view="dm"] .feed{background:var(--ui-bg)}.date-label{font-size:11px;margin:0 0 18px}.msg{max-width:94%;margin-bottom:20px}.bubble{background:var(--ui-surface);border-color:var(--ui-line);line-height:1.7;border-radius:2px 13px 13px 13px;padding:11px 13px;font-size:14px}.mine .bubble{border-radius:13px 2px 13px 13px;background:var(--ui-soft);border-color:#dce7ff}.msg .name{font-size:12px}.msg-time{font-size:11px}.msg-meta{gap:8px;flex-wrap:wrap}.msg-tools button,.quick-reply,.read-state-btn{font-size:11px!important}.system{max-width:640px;background:var(--ui-surface);border-color:var(--ui-line);box-shadow:none}.system p{font-size:13px;color:#4d5f78}.pending-strip{border-radius:10px;background:#fff8e8;border-color:#f0dfb4}.pending-strip>div>span{font-size:11px}
.composer{padding:12px 24px 15px;background:white;flex-shrink:0}.composebox{padding:11px;border-radius:11px;background:white}.composebox textarea{font-size:14px;min-height:48px}.compose-actions{gap:6px;flex-wrap:wrap}.compose-actions button{padding:7px 9px;font-size:12px;min-height:32px}.compose-actions .hint{font-size:11px}.compose-actions #photo-name{font-size:11px}.emoji-picker{width:min(410px,calc(100vw - 24px));bottom:46px!important;left:0!important;right:auto!important;border:1px solid var(--ui-line)!important;border-radius:13px;background:white!important;box-shadow:0 9px 30px #20304a24;padding:12px!important;z-index:40}.emoji-tabs{display:flex!important;gap:3px!important}.emoji-tabs button{flex:1;min-height:32px;font-size:12px!important;padding:6px!important}.emoji-help{font-size:11px!important;color:var(--ui-subtle)!important}.emoji-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important}.emoji-grid.animated-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.emoji-grid>button{min-width:0;width:100%;height:auto!important;min-height:39px;padding:5px!important;position:relative;border:0!important}.emoji-grid>button.sticker-option{display:flex!important;align-items:center;flex-direction:column;font-size:12px!important}.sticker-option img{width:66px;height:66px;object-fit:contain;max-width:100%;display:block}.sticker-option small{font-size:11px;white-space:nowrap;color:var(--ui-ink)}.emoji-empty{grid-column:1/-1}.emoji-grid .favorite::after{content:'★';position:absolute;top:2px;right:2px;color:#c38600;font-size:11px}
.attachment-preview{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:7px;padding:0!important;background:transparent!important;border:0!important;max-height:164px;overflow:auto;margin-top:10px}.attachment-preview[hidden]{display:none!important}.attachment-draft{display:flex;align-items:center;gap:8px;background:var(--ui-bg);border:1px solid var(--ui-line);border-radius:8px;padding:7px;min-width:0}.attachment-draft>img{width:45px;height:45px;object-fit:cover;border-radius:5px;flex-shrink:0}.attachment-draft>div{flex:1;min-width:0}.attachment-draft b{display:block;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.attachment-draft small{display:block;font-size:11px;color:var(--ui-subtle)}.attachment-draft>button{padding:3px 6px;font-size:15px;min-width:28px}.attachment-file-icon{font-size:12px;padding:8px;background:#e6edfb;border-radius:5px;flex-shrink:0}
.attachment-gallery{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px;width:min(430px,100%)}.attachment-gallery.multi{grid-template-columns:repeat(2,minmax(0,1fr))}.attachment-wrap{min-width:0;margin:0!important;padding:0}.attachment-image{display:block;width:100%}.msg img.photo{max-width:100%;width:auto;max-height:280px;object-fit:contain;border-radius:7px;margin:0}.attachment-gallery.multi img.photo{width:100%;height:155px;object-fit:cover}.attachment-actions{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;margin-top:4px}.attachment-filename{flex-basis:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--ui-subtle);font-size:11px}.file-attachment{display:block!important;padding:12px!important;margin:0;border:1px solid var(--ui-line);background:white;border-radius:8px;min-width:0}.file-attachment>b{color:#ab314c;font-size:12px}.file-attachment>span{display:block;font-size:12px;overflow-wrap:anywhere}
.month-nav.continuous-month-nav{display:flex;align-items:center;gap:7px;position:sticky;top:-18px;margin:0 -1px 14px;padding:10px 1px;background:white;z-index:4;border-bottom:1px solid var(--ui-line);flex-wrap:wrap}.month-nav h3{font-size:18px;font-weight:600;min-width:100px;white-space:nowrap}.month-nav button{font-size:12px;min-height:35px;white-space:nowrap;word-break:keep-all;padding:7px 10px}.month-nav #prev-month,.month-nav #next-month{font-size:19px;min-width:32px;padding:2px 7px}.month-nav .calendar-view-switch{display:flex;border:1px solid var(--ui-line);border-radius:8px;padding:2px;background:var(--ui-bg)}.calendar-view-switch button{border:0;background:transparent;min-height:29px;padding:4px 8px;font-size:11px}.calendar-view-switch button.active{background:white;color:var(--ui-blue)}.calendar-scroll-guide{font-size:11px;color:var(--ui-subtle);margin:0 0 12px}.calendar-month-heading{padding:0 0 7px}.calendar-month-heading h3{font-size:15px;font-weight:500}.calendar-month-heading p{font-size:11px;margin-top:4px;color:var(--ui-subtle)}.calendar-month-heading>span{font-size:11px;color:var(--ui-subtle)}.google-calendar-status{font-size:11px;color:var(--ui-subtle);margin-bottom:8px}.calendar-month-section{margin-bottom:22px}.calendar{border-color:var(--ui-line);background:var(--ui-line);border-radius:9px}.continuous-calendar .day{min-height:132px;max-height:180px;padding:6px;background:white;font-size:12px}.continuous-calendar .day.today{background:var(--ui-soft)}.calendar .weekday{font-size:12px;background:var(--ui-bg);padding:8px}.day-head{margin-bottom:5px}.day-head b{font-size:13px}.calendar-day-date{border:0;background:transparent;font-size:12px;font-weight:500;padding:1px 3px;min-width:26px;min-height:24px}.calendar-day-events{min-width:0;max-height:110px!important;overflow:auto;overscroll-behavior:contain;padding:0 1px 1px 0}.calendar-event-button{display:flex!important;align-items:center;gap:5px;width:100%;text-align:left;font-size:12px!important;padding:5px 5px!important;min-height:28px;border:0;margin-top:4px!important}.calendar-event-time{font-size:11px;flex-shrink:0;opacity:.94}.calendar-event-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-day-count{font-size:11px!important;min-height:24px!important;padding:1px 4px!important}.day-add{min-height:24px!important;padding:1px 4px!important}.holiday{font-size:11px!important;margin:3px 0}.calendar-day-dialog{display:flex;flex-direction:column;gap:7px}.calendar-day-dialog .calendar-event-button{font-size:14px!important;padding:11px!important;min-height:42px}
.calendar-agenda-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:3px 0 13px}.calendar-agenda-head input{width:auto;max-width:180px;padding:8px}.calendar-agenda-group{margin:0 0 19px}.calendar-agenda-group>h3{font-size:14px;font-weight:500;margin-bottom:8px}.calendar-agenda-card{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--ui-line);border-left:4px solid var(--agenda-color,#2563eb);background:white;border-radius:9px;padding:13px;margin:7px 0;width:100%;text-align:left}.calendar-agenda-card .agenda-time{font-size:12px;color:var(--ui-subtle)}.calendar-agenda-card .agenda-detail{min-width:0}.calendar-agenda-card strong{display:block;font-size:15px}.calendar-agenda-card small{display:block;margin-top:3px;font-size:12px;color:var(--ui-subtle);overflow-wrap:anywhere}.agenda-open{color:var(--ui-blue);font-size:12px}
.parts-head,.workorders-head{padding:16px 18px;box-shadow:none;border-color:var(--ui-line);background:white}.parts-head h3,.workorders-head h3{font-size:19px}.parts-head p,.workorders-head p{font-size:12px;color:var(--ui-subtle);line-height:1.8}.parts-head .primary,.workorders-head .primary{white-space:nowrap}.part-toolbar,.workorders-toolbar{border-color:var(--ui-line);border-radius:10px;padding:10px;gap:7px;flex-wrap:wrap}.part-toolbar input{flex:1;min-width:150px;font-size:13px}.part-toolbar button{white-space:nowrap;font-size:12px}.part-row{border-color:var(--ui-line);padding:13px;gap:12px;border-radius:10px}.part-info strong{font-size:15px}.part-info span,.part-info small{font-size:12px;color:var(--ui-subtle)}.part-actions{gap:6px}.part-actions button{font-size:12px;white-space:nowrap}.part-thumb{position:relative;flex-shrink:0;background:var(--ui-bg);border:1px solid var(--ui-line)}.part-pdf-thumb{display:grid;place-items:center;color:#a7314d;font-size:14px;min-width:75px;min-height:80px}.part-file-count{position:absolute;right:4px;bottom:4px;border-radius:4px;padding:2px 5px;background:#20304ade;color:white;font-size:11px}.part-file-label{margin-top:14px}.part-file-drafts{display:grid;gap:7px;margin:12px 0}.part-file-draft{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--ui-line);border-radius:8px}.part-file-draft img{width:52px;height:52px;object-fit:cover;border-radius:5px}.part-file-draft>span{width:52px;text-align:center;color:#ac3653;font-size:12px}.part-file-draft>div{min-width:0;flex:1}.part-file-draft b{font-size:12px;display:block;overflow-wrap:anywhere}.part-file-draft small{color:var(--ui-subtle);font-size:11px}.part-file-draft button{padding:4px 9px;font-size:18px}.part-gallery{display:grid;gap:18px}.part-gallery>section{border-bottom:1px solid var(--ui-line);padding-bottom:16px}.part-gallery .row{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;overflow-wrap:anywhere}.part-gallery .row span{color:var(--ui-subtle);white-space:nowrap}.part-gallery img{display:block;max-width:100%;height:auto;max-height:500px;object-fit:contain;margin:11px auto}.part-gallery .actions{margin-top:10px}.file-pdf-label{padding:22px;background:var(--ui-bg);color:#a7314d;margin-top:8px;border-radius:8px}
.case-card{border-color:var(--ui-line);border-radius:10px;background:white;padding:16px;box-shadow:none}.case-card strong{font-size:15px}.case-card p{font-size:13px;color:#52647c}.badge{font-size:11px;border-radius:5px;padding:3px 7px}.case-list{gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.loaner-head,.schedule-head,.shared-head,.document-head{border-color:var(--ui-line);border-radius:10px}.workorder-row{box-shadow:none;border-color:var(--ui-line)}.workorder-row strong{font-size:15px}.workorder-row small,.workorder-row p{font-size:12px}.workorder-actions button,.workorder-actions a{font-size:12px}
dialog{width:min(760px,96vw);border:1px solid var(--ui-line);border-radius:15px;max-height:92dvh;color:var(--ui-ink);background:white;box-shadow:0 18px 70px #20304a30}dialog::backdrop{background:#18254166;backdrop-filter:blur(2px)}.dialog-head{padding:19px 23px;background:white;border-color:var(--ui-line)}.dialog-head h2{font-size:21px;font-weight:600;overflow-wrap:anywhere}.dialog-head>button{min-width:35px;font-size:20px;padding:2px 8px;flex-shrink:0}.dialog-body{padding:21px 23px;background:white}.dialog-body .formgrid{gap:19px 22px}.dialog-body .formgrid .muted{font-size:12px}.dialog-body label{font-size:12px;color:#52647c}.dialog-body input,.dialog-body select,.dialog-body textarea{background:white;border-color:var(--ui-line);border-radius:8px;padding:10px}.dialog-body .actions{gap:8px;margin-top:18px}.dialog-body .actions button{font-size:12px;min-height:35px}.audit h3{font-size:14px}.audit-item{font-size:12px;color:#4e6078}.audit{border-color:var(--ui-line)}.detail-loading{display:flex;gap:11px;align-items:center;justify-content:center;min-height:180px;font-size:14px;color:var(--ui-subtle)}.loading-spinner{width:22px;height:22px;border:2px solid #d7e2fa;border-top-color:var(--ui-blue);border-radius:50%;animation:wt-spin .8s linear infinite}@keyframes wt-spin{to{transform:rotate(360deg)}}
.settings-section{border-color:var(--ui-line);padding:20px 0}.settings-section h3{font-size:16px}.menu-sheet button{border-color:var(--ui-line);background:white;border-radius:8px;min-height:42px}.login-page .intro{background:#1d3152}.login-card input{background:white}.empty{color:var(--ui-subtle)}
@media(min-width:761px) and (max-height:740px){.side{gap:8px}.rail button{padding:7px 9px;min-height:32px}.brand h1{font-size:17px}.company-switcher{display:none}.side .dm-directory{min-height:85px}.quick-summary button{padding:4px 8px;min-height:26px}.top{min-height:67px;padding-top:12px;padding-bottom:10px}}
@media(min-width:761px) and (max-width:1050px){.app{grid-template-columns:175px minmax(0,1fr)!important}.top{padding-left:18px;padding-right:18px;flex-wrap:wrap}.top-actions{gap:5px}.top h2{font-size:19px}.toolbar,.quick-summary{padding-left:18px;padding-right:18px}.feed{padding:14px 18px}.continuous-calendar .day{padding:5px}.calendar-event-time{display:none}.calendar-event-label{font-size:11px}.month-nav.continuous-month-nav{top:-14px}.toolbar #toggle-cancelled{font-size:11px;padding:8px 6px}}
@media(max-width:760px){
  .app{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;height:var(--worktalk-viewport-height,100dvh);min-height:0;padding-bottom:0!important}.app .side,.app .rail{display:none!important}.center{height:auto;grid-row:1;min-height:0}.top{min-height:75px;padding:12px 14px;flex-wrap:nowrap;align-items:center;border-bottom:1px solid var(--ui-line)}.top h2{font-size:17px;font-weight:600;max-width:100%;overflow-wrap:anywhere}.top .top-subtitle{font-size:11px}.top-actions{gap:4px;flex-wrap:wrap;max-width:47%;justify-content:flex-end}.top-actions button{font-size:11px;min-height:32px;padding:6px 8px}.top-actions #new-case{padding:7px 8px;font-size:11px}.top-actions #member-info{font-size:11px}.quick-summary{display:none!important}.toolbar{padding:9px 12px;flex-wrap:wrap;gap:5px}.toolbar input{flex-basis:calc(100% - 93px);font-size:16px;min-height:42px}.toolbar #search-go,.toolbar #search-clear{min-height:42px;font-size:12px;padding:9px}.toolbar #toggle-cancelled{display:none}.feed{padding:12px 14px;min-height:0}.composer{padding:9px 11px 10px}.composebox{padding:9px}.composebox textarea{font-size:16px;min-height:43px}.compose-actions{gap:5px}.compose-actions button{min-height:40px;padding:8px;font-size:12px}.compose-actions .hint{display:none}.compose-actions #photo-name{flex-basis:100%;font-size:11px;order:2}.compose-actions #send{margin-left:auto}.compose-actions #mention-person{font-size:11px;padding:7px}.attachment-preview{max-height:122px;grid-template-columns:repeat(2,minmax(0,1fr))}.attachment-draft{padding:6px;gap:5px}.attachment-draft>img{width:36px;height:36px}.attachment-draft>button{min-width:30px;min-height:36px}.attachment-gallery.multi img.photo{height:128px}.msg{max-width:96%;gap:7px}.msg>.avatar{width:27px;height:27px;border-radius:8px;font-size:12px}.bubble{font-size:14px;padding:10px;max-width:100%}.msg .content{max-width:calc(100% - 34px)}.msg-time{font-size:11px}.bubble-line{gap:4px}.emoji-picker{width:min(370px,calc(100vw - 24px));max-height:55dvh;overflow:auto;bottom:48px!important;padding:10px!important}.emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.emoji-grid.animated-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.emoji-grid button{min-height:43px}.sticker-option img{width:60px;height:60px}.sticker-option small{font-size:11px}.emoji-help{display:block!important;line-height:1.5}.emoji-tabs button{min-height:38px}.mobile-bottom-nav{position:static!important;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-row:2;width:100%;padding:6px 4px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-line);background:white;height:auto;min-height:61px;z-index:10}.mobile-bottom-nav button{min-height:45px;font-size:11px;gap:3px;border:0;padding:3px 1px;min-width:0;border-radius:6px}.mobile-bottom-nav button span{font-size:17px}.mobile-bottom-nav button b{font-size:11px;font-weight:400}.mobile-bottom-nav button.active{background:var(--ui-soft);color:var(--ui-blue)}.mobile-nav-badge{font-size:10px}.month-nav.continuous-month-nav{top:-12px;gap:5px;padding:9px 0;background:white}.month-nav h3{font-size:17px;min-width:92px}.month-nav .spacer{display:none}.month-nav button{font-size:11px;min-height:38px;padding:7px}.month-nav #calendar-google-preview,.month-nav #week-view{display:none}.calendar-view-switch button{min-height:34px}.calendar-scroll-guide{display:none}.calendar-month-heading>span{display:none}.continuous-calendar .day{min-height:100px;padding:4px;max-height:180px}.calendar-event-button{font-size:11px!important;padding:5px 3px!important;min-height:34px}.calendar-event-time{display:none}.calendar-event-label{font-size:11px;white-space:normal;overflow-wrap:anywhere}.day-head{align-items:flex-start}.calendar-day-count{font-size:11px!important}.day-add{display:none}.calendar-day-events{max-height:128px!important}.calendar-agenda-card{grid-template-columns:45px minmax(0,1fr) auto;gap:9px;padding:13px 10px;margin-bottom:9px;min-height:86px}.calendar-agenda-card .agenda-time{font-size:12px}.calendar-agenda-card strong{font-size:16px}.calendar-agenda-card small{font-size:12px;line-height:1.5}.calendar-agenda-head input{font-size:16px;max-width:165px}.calendar-agenda-head{gap:6px}.calendar-agenda-head button{font-size:12px;min-height:42px}.calendar-agenda-group>h3{font-size:14px}.calendar-day-dialog .calendar-event-button{min-height:44px}.parts-head,.workorders-head{padding:14px;gap:12px}.parts-head p,.workorders-head p{font-size:12px}.part-row{grid-template-columns:66px minmax(0,1fr);padding:11px;gap:10px}.part-thumb{width:66px;min-width:66px;height:77px;min-height:77px}.part-info{min-width:0}.part-info span{overflow-wrap:anywhere;font-size:12px}.part-actions{grid-column:1/-1;justify-content:flex-start;gap:6px;flex-wrap:wrap}.part-actions button{min-height:40px;padding:7px 9px}.part-toolbar input{width:100%;flex-basis:100%;font-size:16px}.part-toolbar button{min-height:40px;font-size:12px}.part-file-draft button{min-height:42px;min-width:38px}.workorder-row{padding:12px;grid-template-columns:35px minmax(0,1fr)}.workorder-actions{justify-content:flex-start}.workorder-actions button,.workorder-actions a{min-height:40px}.case-list{grid-template-columns:minmax(0,1fr)}.case-card p{font-size:13px}.dialog-head{padding:16px;gap:10px}.dialog-head h2{font-size:19px}.dialog-head>button{min-height:40px;min-width:38px}.dialog-body{padding:17px 16px}.dialog-body .formgrid{grid-template-columns:1fr 1fr;gap:17px 13px}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px}.dialog-body .actions button{min-height:42px}.audit-item{font-size:12px}.detail-loading{min-height:180px}.dm-bottom-actions{flex-wrap:wrap}.dm-bottom-actions button{min-height:38px;font-size:11px}.app.schedule-mode{grid-template-columns:1fr}.app.schedule-mode .center{grid-column:1}.part-gallery .row{flex-wrap:wrap}
}
@media(max-width:360px){.top h2{font-size:16px}.top-actions #member-info{display:none}.compose-actions #mention-person{display:none}.emoji-grid.animated-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.emoji-picker{max-height:48dvh}.dialog-body .formgrid{grid-template-columns:1fr}.formgrid .full{grid-column:1}.attachment-gallery.multi img.photo{height:112px}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}*{scroll-behavior:auto!important}}
/* Keyboard rules must follow the ordinary mobile navigation layout. */
@media(max-width:760px){html.keyboard-open .mobile-bottom-nav{display:none!important}html.keyboard-open .app{grid-template-rows:minmax(0,1fr)!important}html.keyboard-open:not(.message-focus) .composer{display:none!important}}

@media(min-width:761px){.app.schedule-mode{grid-template-columns:190px minmax(0,1fr)!important}.dm-directory{flex-basis:auto!important}}

.month-nav.continuous-month-nav{margin:0 0 14px!important;padding:10px 1px!important;box-shadow:none;top:0!important}.quick-summary .quick-dm{min-height:29px;padding:6px 9px;border:0;border-radius:6px}
/* Anchor the picker above the message buttons at every screen size. */
.compose-actions{position:relative}
.emoji-picker{position:absolute!important;bottom:calc(100% + 8px)!important}

/* Conversation-first workspace, 1.0.42. */
:root{--ui-bg:#f3f5f9;--ui-ink:#172842;--ui-subtle:#6b7890;--ui-line:#e5e9f1;--ui-blue:#3264e7;--ui-soft:#eaf0ff;--blue:#3264e7}
.ui-icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}
.app{grid-template-columns:210px minmax(0,1fr)!important}
.side{background:#fcfdff!important;border-right:1px solid var(--ui-line);padding:20px 15px!important;gap:18px}
.brand h1{font-size:22px;letter-spacing:-.8px}.brand h1 img{width:30px;height:30px}.brand>p{margin-top:9px;font-size:11px}.section-label{font-size:10px;letter-spacing:.35px;font-weight:600;color:#8491a6}
.rail button{gap:12px;border-radius:9px;padding:10px 12px!important;min-height:42px;color:#63718a}.rail button .nav-text{font-weight:500;font-size:13px}.rail>div.on button{background:#eaf0ff!important;color:var(--ui-blue);box-shadow:none}.rail>div:not(.on) button:hover{background:#f0f3f8}.rail .ui-icon{width:20px;height:20px}.branch{background:white;border:1px solid var(--ui-line)!important}.branch.active{border-color:#d4defa!important;background:#f5f8ff}.branch-icon{border-radius:9px;background:#eaf0ff;color:var(--ui-blue)}
.top{min-height:80px;padding:18px 26px 13px}.top h2{font-size:21px;font-weight:650;letter-spacing:-.6px}.top-subtitle{margin-top:5px;font-size:11px}.top-actions #top-more{min-width:35px;font-size:22px}.top-actions button{min-height:36px}.top-actions .primary{padding:9px 15px;box-shadow:0 3px 8px #3264e719}
.quick-summary{padding:0 26px 13px;gap:8px;border-bottom:0;background:white}.quick-summary button{background:#f6f8fc;border:1px solid transparent;min-height:30px;padding:6px 10px;font-size:11px;gap:10px}.quick-summary button b{background:white;border-radius:5px;padding:0 5px;color:var(--ui-ink);font-size:12px}.quick-summary button.warn{background:#fff4e7;color:#a96822}.quick-summary button.mention-warn{background:#edf1ff;color:var(--ui-blue)}
.toolbar{padding:0 26px 14px;background:white;gap:7px;border-bottom:1px solid var(--ui-line)}.toolbar input{border:1px solid #e6eaf1;background:#f7f9fc;border-radius:9px;padding:10px 13px;min-height:38px;font-size:12px}.toolbar #search-go{background:#f1f4fb;border:0;min-height:38px}.toolbar #search-clear{border:0;background:transparent;font-size:20px}.toolbar #toggle-cancelled{border:0;background:transparent;color:#8390a6;font-size:11px}
.feed{padding:22px 30px;background:var(--ui-bg)}.date-label{display:table;margin:3px auto 17px!important;border-radius:20px;padding:5px 13px!important;background:#e9edf4!important;font-size:11px;color:#77849a!important}.chat-empty{padding-top:100px}.msg{margin-bottom:18px;max-width:80%;gap:9px}.msg>.avatar{background:#e1e8f6;color:#496389;width:31px;height:31px;border-radius:11px;font-size:13px}.msg .name{font-size:12px;color:#61718a;margin-bottom:6px}.msg.mine .name{color:#738099}.bubble{border:1px solid #e4e8f1;border-radius:3px 14px 14px 14px;padding:11px 14px;box-shadow:0 2px 3px #21395603;font-size:14px;color:#25354d;line-height:1.65}.mine .bubble{background:#3264e7!important;color:white;border-color:transparent;border-radius:14px 3px 14px 14px}.msg-meta{gap:9px;margin-top:5px;align-items:center}.msg-time{font-size:10px;color:#8c98ac}.read-state-btn{color:#6e7e99}.msg-tools{display:inline-flex;align-items:center;gap:5px}.msg-tools>button{border:0;background:transparent;font-size:10px;color:#7b8aa2;padding:2px 3px;min-height:24px}.business-reaction-line:empty{display:none}.reaction-menu>button{border:0;background:transparent!important;color:#8b98ad}.mine .quoted-message{background:#ffffff18;border-color:#ffffff70;color:white}.mine .quoted-message span{color:#eef3ff}.dm-read-state{font-size:10px}
.message-menu{position:relative;display:inline-block}.message-menu>summary{list-style:none;cursor:pointer;font-size:17px;line-height:22px;color:#8190a8;padding:0 4px;border-radius:5px}.message-menu>summary::-webkit-details-marker{display:none}.message-menu-items{display:flex;flex-direction:column;position:absolute;right:0;top:26px;padding:5px;width:160px;background:white;border:1px solid var(--ui-line);border-radius:9px;box-shadow:0 5px 20px #18305618;z-index:8}.message-menu-items button{border:0;background:white;text-align:left;color:#63718a;font-size:11px;padding:10px;min-height:36px;white-space:nowrap}.message-menu-items button.danger{color:#cc4e66}.message-menu-items>span{font-size:11px;color:var(--ui-subtle);padding:10px}
.system.compact-notice{max-width:850px;width:100%;margin:0 auto 9px!important;padding:0!important;border:1px solid #e3e8f0;border-radius:10px;background:#ffffffb3!important;box-shadow:none;color:var(--ui-ink)}
.compact-notice>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;min-height:45px;padding:10px 14px;user-select:none}.compact-notice>summary::-webkit-details-marker{display:none}.compact-notice>summary>.ui-icon{color:#7b8ba8;width:18px;height:18px}.compact-notice>summary>strong{font-size:12px;flex-shrink:0;font-weight:600}.compact-notice .badge{font-size:10px;padding:2px 6px;flex-shrink:0}.notice-preview{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#8a96a9;flex:1}.notice-chevron{font-size:15px;color:#8a97af;transition:transform .18s}.compact-notice[open] .notice-chevron{transform:rotate(180deg)}.compact-notice[open]{background:white!important}.notice-body{padding:4px 15px 15px;border-top:1px solid var(--ui-line)}.notice-body>p{white-space:pre-wrap;font-size:12px;line-height:1.75;margin:10px 0!important}.notice-footer{display:flex;align-items:center;justify-content:space-between;margin:9px 0}.notice-open{border:0;color:var(--ui-blue);padding:7px 0;font-size:11px;background:transparent}.compact-notice .business-reaction-line{margin-top:7px}
.pending-strip{border:1px solid #f0e4d1;background:#fffbf4;padding:11px 14px;margin-bottom:15px;border-radius:10px}.pending-strip>div>span{display:none}.pending-strip b{font-size:12px}.pending-strip-items button{font-size:11px}
.composer{padding:14px 26px 18px;background:white;border-top:1px solid var(--ui-line)}.composebox{border-radius:13px;border:1px solid #dfe5ef;background:white;padding:11px 14px;box-shadow:0 2px 9px #1d375c04}.composebox:focus-within{border-color:#9bb3f5;box-shadow:0 0 0 3px #3264e708}.composebox textarea{min-height:48px;font-size:13px}.compose-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border:0;background:transparent;color:#8391a7;font-size:12px}.compose-actions #send{background:var(--ui-blue);color:white;padding:7px 15px;border-radius:8px}.compose-actions .ui-icon{width:19px;height:19px}.compose-actions #mention-person{font-size:11px;color:#8b97ac}.compose-actions .hint{font-size:10px;color:#9ba7b9}.compose-actions #photo-name:empty{display:none}.emoji-help{font-size:11px;color:#96a1b3}.emoji-tabs button.active{background:#eaf0ff;color:var(--ui-blue)}
.attachment-group{margin-top:9px;border:1px solid #e3e8f1;border-radius:10px;overflow:hidden;background:white;color:var(--ui-ink);width:min(350px,100%)}.attachment-gallery{margin:0!important;gap:3px!important}.attachment-gallery.multi{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.attachment-tile{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;background:#f2f5fa;border:0;border-radius:0;overflow:hidden;padding:0!important}.attachment-tile img.photo{display:block;width:100%;max-width:none!important;max-height:300px;object-fit:cover;margin:0!important;border-radius:0!important}.attachment-gallery.multi img.photo{height:145px}.attachment-tile.document-tile{padding:15px!important;min-height:130px;flex-direction:column;gap:5px}.document-tile>.ui-icon{width:30px;height:30px;color:#cf657b}.document-type{font-size:11px;font-weight:650;color:#c14f69}.document-tile b{font-size:11px;overflow-wrap:anywhere;max-width:100%;color:#71819b}.attachment-more{position:absolute;inset:0;background:#13244388;color:white;display:grid;place-items:center;font-size:25px}.attachment-group-caption{display:flex;align-items:center;gap:9px;width:100%;padding:10px!important;border:0;border-radius:0;background:white;text-align:left;color:#536582;font-size:11px}.attachment-group-caption>.ui-icon{width:17px;height:17px;color:#8c99af}.attachment-group-caption>span{min-width:0;flex:1;overflow-wrap:anywhere}.attachment-group-caption small{display:block;font-size:10px;color:#9aa4b6;margin-top:1px}.attachment-group-caption>b{font-size:19px;color:#8d9bb2}.sticker-message{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:5px 0}.sent-sticker{width:165px;height:165px;max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #6b58140c)}.bubble.sticker-bubble,.mine .bubble.sticker-bubble{background:transparent!important;border:0;padding:0!important;box-shadow:none}.bubble.emoji-bubble,.mine .bubble.emoji-bubble{background:transparent!important;color:var(--ui-ink);border:0}
.file-viewer-toolbar{border-bottom:1px solid var(--ui-line);padding-bottom:18px;margin-bottom:18px}.file-viewer-toolbar>p{font-size:12px;color:var(--ui-subtle)}.part-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.part-gallery>section{min-width:0;border:1px solid var(--ui-line);border-radius:11px;padding:12px;background:#fbfcfe}.part-gallery .row{align-items:flex-start;font-size:11px}.part-gallery .row b{overflow-wrap:anywhere}.part-gallery img{width:100%;height:220px;object-fit:contain;margin:12px 0;background:white;border-radius:6px}.part-gallery .actions{flex-wrap:wrap;gap:5px}.part-gallery .actions a,.part-gallery .actions button{padding:6px 9px;font-size:11px;min-height:32px}.file-pdf-label{display:flex;align-items:center;justify-content:center;gap:9px;min-height:130px;font-size:13px}
.parts-head{padding:20px;border-radius:12px;background:white;align-items:center}.parts-head p{max-width:600px;margin-top:6px}.part-toolbar{background:white;border-radius:10px}.part-row{background:white;border-radius:12px;padding:16px}.part-thumb{width:76px;height:86px;border-radius:8px}.part-info strong{font-size:17px;letter-spacing:-.3px}.part-info span{color:#6d7c92;font-size:12px}.part-info small{font-size:11px;color:#97a1b2}.part-actions button{min-height:35px;border:1px solid var(--ui-line);color:#617390}.part-actions button.danger-action{color:#c16678;border-color:transparent}
.calendar-event-button{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:1px 5px;min-height:42px!important;padding:6px!important;border-radius:6px!important}.calendar-event-label{font-size:12px;font-weight:600}.calendar-event-owner{font-size:10px;grid-column:2;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;opacity:.75}.calendar-event-time{font-size:10px;align-self:start;padding-top:1px}.continuous-calendar .day{min-height:155px!important}.calendar-day-events{max-height:122px!important}.calendar-month-heading h3{font-weight:650}.calendar-scroll-guide{font-size:11px}.calendar-google-note{font-size:11px}.calendar-month-section{border:1px solid var(--ui-line);border-radius:12px;overflow:hidden;background:white}.calendar-agenda-card{border-radius:12px}.calendar-agenda-card .agenda-time{font-weight:650;color:#607492}.calendar-agenda-card strong{letter-spacing:-.4px}.calendar-agenda-card small:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
dialog.case-detail{position:fixed;inset:0 0 0 auto!important;margin:0!important;width:420px!important;height:100dvh;max-width:100vw;max-height:100dvh!important;border:0;border-left:1px solid var(--ui-line);border-radius:0;box-shadow:-8px 0 24px #18305006;padding:0;z-index:40;overflow:hidden}
dialog.case-detail[open]{display:flex;flex-direction:column}dialog.case-detail::backdrop{background:#14243d60;backdrop-filter:none}.app.detail-open,.app.schedule-mode.detail-open{grid-template-columns:210px minmax(0,1fr) 420px!important}.app.detail-open .center{grid-column:2}.case-detail .dialog-head{padding:20px 23px 15px;min-height:77px;flex-shrink:0;border-bottom:1px solid var(--ui-line)}.case-detail .dialog-head small{font-size:10px;color:#8e9aaf}.case-detail .dialog-head h2{font-size:16px;font-weight:600;margin-top:4px}.case-detail .dialog-head>button{background:#f4f6fa;border:0;border-radius:9px;width:33px;height:33px;color:#8896ac}.case-detail .dialog-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 23px 32px}.case-hero-top{display:flex;align-items:center;gap:9px}.case-hero-top>span:last-child{font-size:12px;color:#8c98ab}.case-hero h3{font-size:30px;letter-spacing:-1px;margin-top:13px;color:#172842}.case-hero>p{font-size:13px;color:#6f7f96;margin-top:5px}.case-progress{display:flex;list-style:none;margin:23px 0;padding:0;gap:0}.case-progress li{flex:1;text-align:center;font-size:10px;color:#a2acbd;position:relative}.case-progress li>span{position:relative;z-index:1;display:grid;place-items:center;border-radius:50%;width:23px;height:23px;margin:0 auto 7px;background:#f0f3f8;font-size:10px}.case-progress li:not(:last-child):after{content:'';position:absolute;width:100%;height:1px;background:#e9edf4;top:11px;left:50%}.case-progress li.done{color:#6d88bd}.case-progress li.done>span{background:#eaf0ff;color:#5f80c3}.case-progress li.current{color:var(--ui-blue);font-weight:650}.case-progress li.current>span{color:white;background:var(--ui-blue);box-shadow:0 0 0 4px #edf2ff}.case-cancelled{font-size:12px;color:#bc6375;margin:18px 0}
.case-key-facts{display:grid;grid-template-columns:1.4fr 1fr;gap:8px;margin:21px 0}.case-key-facts>div{display:grid;grid-template-columns:18px minmax(0,1fr);gap:4px 6px;background:#f7f9fd;border:1px solid #edf0f6;padding:12px 10px;border-radius:10px}.case-key-facts .ui-icon{width:16px;height:16px;color:#8596b3}.case-key-facts small{font-size:10px;color:#8e9bb1;align-self:center}.case-key-facts b{grid-column:1/-1;display:block;font-size:12px;color:#4a607f;overflow-wrap:anywhere;line-height:1.5}.case-notes{padding:18px 0;border-top:1px solid var(--ui-line)}.case-notes h4{font-size:11px;font-weight:500;color:#8e9bb0}.case-notes p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;margin-top:8px;color:#3e526e}.case-primary-actions{display:flex;gap:8px;margin:3px 0 19px}.case-primary-actions button{flex:1;min-height:41px;font-size:12px}.case-facts{margin:0;padding:12px 0;border-top:1px solid var(--ui-line)}.case-facts>div{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:7px 0;font-size:12px}.case-facts dt{color:#929fb4;font-size:11px;flex-shrink:0}.case-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;color:#657692}.case-facts dd small{display:block;font-size:10px;color:#98a3b7;margin-top:2px}.case-section{border-top:1px solid var(--ui-line)}.case-section>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:16px 0;font-size:12px;font-weight:500;color:#556985}.case-section>summary:after{content:'⌄';margin-left:auto;color:#9ba7bc;font-size:15px}.case-section[open]>summary:after{transform:rotate(180deg)}.case-section>summary::-webkit-details-marker{display:none}.case-section>summary>span{font-size:10px;color:#91a0b9;background:#f0f4fa;border-radius:4px;padding:2px 6px}.case-section .actions{margin:0 0 18px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.case-section .actions button{font-size:11px;min-height:37px}.case-section-body{padding:0 0 16px}.case-section .audit-item{border-bottom:1px solid #edf0f7;padding:11px 0;font-size:11px}.case-section .audit-item small{display:block;color:#9ba7bb;font-size:10px;margin-top:3px}.case-section .audit-item p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:12px}.case-section .attachment-gallery.multi img.photo{height:100px}.case-section .sent-sticker{width:120px;height:120px}.case-detail .error{font-size:12px;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1150px){.app{grid-template-columns:190px minmax(0,1fr)!important}.app.detail-open,.app.schedule-mode.detail-open{grid-template-columns:190px minmax(0,1fr) 355px!important}dialog.case-detail{width:355px!important}.detail-open .top{padding:15px 18px;align-items:flex-start}.detail-open .top-actions #member-info{display:none}.detail-open .top h2{font-size:17px}.detail-open .toolbar #toggle-cancelled{display:none}.detail-open .quick-summary{padding-left:18px;padding-right:18px}.detail-open .feed{padding:17px 15px}.detail-open .calendar-event-time{display:none}.detail-open .calendar-event-button{grid-template-columns:1fr}.detail-open .calendar-event-owner{grid-column:1}.case-detail .dialog-body{padding-left:18px;padding-right:18px}}
@media(min-width:761px){.app.schedule-mode{grid-template-columns:210px minmax(0,1fr)!important}.detail-open .calendar-event-owner{font-size:9px}.detail-open .calendar-event-label{font-size:11px}.detail-open .top-actions{flex-wrap:wrap}}
@media(max-width:760px){
 .app,.app.detail-open,.app.schedule-mode.detail-open{grid-template-columns:minmax(0,1fr)!important}.app.detail-open .center{grid-column:1}.top{padding:13px 14px;min-height:71px}.top h2{font-size:17px}.top-actions #member-info{display:none}.top-actions #new-case{min-height:37px}.toolbar{padding:0 12px 11px;gap:4px}.toolbar input{font-size:16px;min-height:42px}.toolbar #search-go,.toolbar #search-clear{min-height:42px}.feed{padding:15px 12px}.msg{max-width:100%;gap:7px}.msg .content{max-width:calc(100% - 32px)}.msg>.avatar{width:25px;height:25px;border-radius:9px;font-size:11px}.bubble{font-size:14px;padding:10px 12px}.msg-tools>button{min-height:29px;font-size:10px}.message-menu>summary{min-height:29px;min-width:30px;display:grid;place-items:center}.msg-meta{flex-wrap:wrap;gap:3px}.compact-notice>summary{gap:6px;padding:10px;min-height:44px}.compact-notice>summary>strong{font-size:11px}.compact-notice .badge{font-size:9px}.compact-notice>summary>.ui-icon{width:15px;height:15px}.notice-preview{font-size:10px}.notice-body{padding:3px 11px 12px}.notice-body>p{font-size:12px}.notice-footer{flex-wrap:wrap;gap:7px}.composer{padding:9px 11px 12px}.composebox{padding:9px 11px}.composebox textarea{min-height:40px;font-size:16px}.compose-actions button{min-height:40px;padding:6px}.compose-actions #send{padding:8px 13px}.compose-actions #photo{font-size:12px}.attachment-group{width:min(300px,100%)}.attachment-gallery.multi img.photo{height:116px}.sent-sticker{width:148px;height:148px}.attachment-tile.document-tile{min-height:116px;padding:9px!important}.attachment-group-caption{padding:9px!important;font-size:11px}.attachment-preview{max-height:145px}.emoji-picker{max-height:55dvh}.mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;min-height:65px;padding-top:7px;box-shadow:0 -2px 12px #1c365008}.mobile-bottom-nav button{min-height:47px;gap:4px;border-radius:9px}.mobile-bottom-nav button .ui-icon{width:21px;height:21px}.mobile-bottom-nav button b{font-size:10px;font-weight:500}.mobile-bottom-nav button.active{color:var(--ui-blue);background:#eef3ff}.parts-head{padding:15px;align-items:start}.parts-head p{font-size:11px;line-height:1.7}.parts-head h3{font-size:18px}.parts-head .primary{font-size:11px;min-height:39px}.part-row{grid-template-columns:60px minmax(0,1fr);padding:12px}.part-thumb{width:60px;min-width:60px;height:74px;min-height:74px}.part-info strong{font-size:16px}.part-actions{gap:5px}.part-actions button{min-height:39px;font-size:11px;padding:7px 9px}.part-gallery{grid-template-columns:1fr}.part-gallery img{height:auto;max-height:340px}.part-gallery .actions a,.part-gallery .actions button{min-height:40px}.file-viewer-toolbar .actions{flex-wrap:wrap}.calendar-event-owner{display:none}.calendar-event-button{display:flex!important}.calendar-agenda-card{min-height:87px;border-radius:11px}.calendar-agenda-card .agenda-open{font-size:17px}.calendar-agenda-card small{font-size:11px}.continuous-calendar .day{min-height:100px!important}.calendar-day-events{max-height:125px!important}
 dialog.case-detail{inset:auto 0 0!important;margin:0!important;width:100%!important;height:87dvh;max-height:87dvh!important;border-radius:19px 19px 0 0;border:0;box-shadow:0 -8px 40px #1425411a;padding-bottom:env(safe-area-inset-bottom)}.case-detail .dialog-head{padding:19px 18px 13px;min-height:70px}.case-detail .dialog-head:before{content:'';position:absolute;top:7px;left:calc(50% - 17px);width:34px;height:4px;border-radius:10px;background:#dde3ec}.case-detail .dialog-head>button{height:40px;width:40px}.case-detail .dialog-body{padding:20px 19px 28px}.case-hero h3{font-size:29px}.case-primary-actions button{min-height:44px}.case-section .actions button{min-height:42px}.case-key-facts b{font-size:12px}.case-section .message-menu-items{right:0}
}
@media(max-width:360px){.top h2{font-size:15px}.top-actions{max-width:44%;gap:2px}.top-actions #new-case{padding:7px 6px;font-size:10px}.msg .content{max-width:calc(100% - 30px)}.attachment-gallery.multi img.photo{height:100px}.attachment-group-caption{font-size:10px}.compose-actions #mention-person{display:none}.case-key-facts{grid-template-columns:1.45fr 1fr}}
@media(prefers-reduced-motion:reduce){.notice-chevron{transition:none}}
.conversation-date{display:table;margin:16px auto 20px;padding:5px 12px;border-radius:20px;background:#e9edf4;font-size:10px;color:#8793a6}.notice-group{max-width:850px;margin:0 auto 18px;background:#f8faff;border:1px dashed #dbe2ee;border-radius:10px;overflow:hidden}.notice-group>summary{display:flex;align-items:center;gap:9px;padding:12px 15px;min-height:45px;cursor:pointer;list-style:none;color:#7888a1}.notice-group>summary::-webkit-details-marker{display:none}.notice-group>summary .ui-icon{width:17px;height:17px}.notice-group>summary b{font-size:11px;font-weight:500}.notice-group>summary>span{font-size:10px;background:#e8eef9;padding:2px 6px;border-radius:5px}.notice-group>summary small{font-size:10px;color:#9ba7b9;margin-left:auto}.notice-group>summary em{font-style:normal;font-size:14px}.notice-group[open]>summary em{transform:rotate(180deg)}.notice-group-items{padding:0 9px 8px}.notice-group-items .compact-notice:last-child{margin-bottom:0!important}.app[data-current-view=chat] .date-label{display:none}
@media(max-width:760px){.notice-group>summary{padding:11px;gap:7px}.notice-group>summary small{font-size:9px}.notice-group-items{padding:0 6px 6px}.conversation-date{margin:10px auto 16px}}

/* Keep vehicles readable when the detail panel narrows the calendar. */
.calendar-day-count{white-space:nowrap;flex-shrink:0}.calendar-color-dot{display:inline-block;width:7px;height:7px;border-radius:50%;vertical-align:1px}.calendar-color-dot.blue{background:#3264e7}.calendar-color-dot.red{background:#d75a73}.calendar-month-heading{padding:12px 12px 7px;margin:0}.calendar-month-section .google-calendar-status{margin:0 9px 9px}.calendar-month-heading>span{max-width:45%;font-size:10px}.case-facts dd{max-width:72%}.rail button .nav-text{font-size:14px}.msg .name{font-size:13px}.bubble{font-size:15px}.case-notes h4,.case-facts dt,.case-section>summary{font-size:12px}.case-key-facts small{font-size:11px}.case-key-facts b{font-size:13px}.notice-group>summary b,.compact-notice>summary>strong{font-size:12px}.notice-preview{font-size:12px;color:#79879e}.notice-body>p{font-size:13px}
@media(min-width:761px){.detail-open .calendar-event-button{grid-template-columns:minmax(0,1fr);gap:1px;min-height:44px!important;padding:5px!important}.detail-open .calendar-event-time,.detail-open .calendar-event-label,.detail-open .calendar-event-owner{grid-column:1}.detail-open .calendar-event-label{font-size:11px;letter-spacing:-.35px}.detail-open .calendar-event-time{display:block;font-size:9px;opacity:.75}.detail-open .calendar-event-owner{font-size:9px}.detail-open .calendar-day-events{max-height:119px!important}}
@media(max-width:760px){.bubble{font-size:14px}.msg .name{font-size:12px}.compact-notice>summary>strong{font-size:11px}.notice-preview{font-size:10px}.case-key-facts b{font-size:12px}}

.case-detail[aria-busy=true] .dialog-head h2:after{content:' · 갱신 중…';font-size:11px;font-weight:400;color:#96a2b6}
.app[data-current-view=calendar] .feed{overflow-anchor:none}
/* Optional external access setup; keep first-use steps visible and brief. */
.mobile-connection{color:var(--ui-ink,#25334a)}.mobile-connection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.connection-state{flex:none;padding:5px 9px;border-radius:20px;background:#edf1f6;color:#728195;font-size:11px}.connection-state.ready{background:#e5f5ee;color:#278265}.mobile-use-choice{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:14px;cursor:pointer}.mobile-use-choice input{width:18px;height:18px;margin:0;accent-color:#3375eb}.mobile-connection-description{margin-top:11px;line-height:1.8}.mobile-connect-steps{margin-top:16px;border:1px solid #e3e9f1;border-radius:12px;overflow:hidden}.mobile-connect-step{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:11px;padding:15px;background:#fcfdff}.mobile-connect-step+.mobile-connect-step{border-top:1px solid #e3e9f1}.connection-step-number{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#edf3ff;color:#3375eb;font-size:12px;font-weight:700}.mobile-connect-step b{display:block;font-size:13px}.mobile-connect-step small{display:block;font-size:11px;color:#8996a8;margin-top:5px;line-height:1.6}.mobile-connect-step button,.mobile-connect-step .button-link{font-size:12px;white-space:nowrap}.connection-progress{margin-top:12px;font-size:12px;line-height:1.8;min-height:22px;overflow-wrap:anywhere}.mobile-address-card{margin-top:16px;padding:15px;border-radius:12px;background:#f3f7ff;border:1px solid #e2ebfb}.mobile-address-card>span{display:block;font-size:12px;font-weight:600;margin-bottom:10px}.mobile-address-card input{font-size:12px;background:white;min-width:0}.mobile-address-card .muted{margin-top:10px;line-height:1.8}.connection-help{margin-top:12px;line-height:1.8}.mobile-connection-more{margin-top:17px;border-top:1px solid #edf0f5;padding-top:12px;font-size:11px;color:#8390a3;line-height:1.8}.mobile-connection-more summary{cursor:pointer;font-size:12px;min-height:27px}.mobile-connection-more p{margin-top:9px}.mobile-connection [hidden]{display:none!important}
@media(max-width:760px){.mobile-connect-step{grid-template-columns:27px minmax(0,1fr);gap:9px;padding:13px}.mobile-connect-step button,.mobile-connect-step .button-link{grid-column:2;justify-self:start;min-height:41px;font-size:13px}.mobile-address-card input{font-size:16px!important}.mobile-address-card .actions{flex-wrap:wrap}.mobile-address-card .actions button{min-height:42px;font-size:12px}.mobile-connection-heading{font-size:13px}.mobile-use-choice{min-height:40px}}
