:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#333333;background:#fbfbfb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #808080;outline-offset:2px}button{color:inherit}#app{min-height:100vh}.sidebar{width:226px;position:fixed;inset:0 auto 0 0;background:linear-gradient(150deg,#fff,#fbfbfb);border-right:1px solid #f5f5f5;box-shadow:8px 0 32px rgba(128,128,128,.035);padding:24px 17px;z-index:10;display:flex;flex-direction:column}.brand{height:80px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:3px;font-family:Georgia,serif;font-size:24px;letter-spacing:5px;line-height:1;color:#333333}.brand small{font-family:inherit;font-size:12px;letter-spacing:4.4px;margin-top:5px}.sidebar-nav{display:grid;gap:7px;margin-top:7px}.nav-link{height:44px;width:100%;display:flex;align-items:center;gap:14px;padding:0 13px;border:0;border-radius:8px;background:transparent;text-align:left;color:#333333;font-size:14px;font-weight:500}.nav-link svg{flex:0 0 auto}.nav-link:hover,.nav-link.active{background:#f5f5f5;color:#808080}.nav-link.active{font-weight:500}.help-box{margin-top:auto;display:flex;align-items:center;gap:10px;background:#f5f5f5;color:#808080;border-radius:11px;padding:12px 10px;font-size:12px}.help-box strong,.help-box span{display:block}.help-box span{font-size:11px;margin-top:2px}.shell{margin-left:226px;min-height:100vh;padding:0 28px 42px;background:radial-gradient(circle at 85% 0%,#f5f5f5 0,transparent 35%),#fbfbfb}.topbar{height:80px;display:flex;align-items:center;gap:16px}.topbar-spacer{flex:1}.topbar-label{font-size:11px;color:#808080}.clinic-select{height:34px;min-width:168px;padding:0 15px;border:1px solid #eeeeee;border-radius:7px;background:#fff;color:#808080;font-size:12px}.bell{border:0;background:transparent;position:relative;color:#333333;padding:8px}.bell i{position:absolute;width:6px;height:6px;background:#fb554a;border-radius:50%;right:8px;top:6px}.profile{border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;font-size:12px}.profile .avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#bc8b70,#333333);color:#fff;font-size:10px;font-weight:700}.profile strong,.profile small{display:block}.profile small{color:#808080;font-size:10px;margin-top:3px}.profile>svg{color:#c8c8c8}.mobile-menu{display:none}.content{max-width:1500px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:2px 0 23px}.page-title h1{font-size:27px;line-height:1.22;letter-spacing:-.55px;color:#333333;margin:0;font-weight:750}.page-title p{font-size:13px;color:#808080;margin:7px 0 0}.btn{height:43px;border:1px solid #808080;border-radius:7px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:600;white-space:nowrap}.btn.primary{background:#808080;color:#fff;box-shadow:0 4px 10px rgba(128,128,128,.12)}.btn.primary:hover{background:#808080}.btn.outline{background:#fff;border-color:#f5f5f5;color:#808080}.btn.outline:hover{background:#fbfbfb}.card{background:#fff;border:1px solid #f5f5f5;border-radius:10px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat{height:88px;padding:17px 18px;display:flex;align-items:center;gap:14px;position:relative;box-shadow:0 7px 19px rgba(128,128,128,.035)}.stat-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:9px;background:#fbfbfb;color:#808080;flex:0 0 auto}.stat-icon.orange{background:#fff5e9;color:#ff9b17}.stat-icon.navy{color:#666666}.stat-icon.green{background:#e8faef;color:#16a34a}.stat>div{display:grid;gap:3px}.stat strong{font-size:28px;line-height:1;color:#333333}.stat span:not(.stat-icon){font-size:11px;color:#808080;white-space:nowrap}.stat-x{position:absolute;right:10px;top:6px;border:0;background:none;color:#c8c8c8;font-size:16px}.hero{height:168px;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:space-between;position:relative;margin-bottom:25px;background:linear-gradient(105deg,#f5f5f5 4%,#fbfbfb 54%,#fff2e5 100%)}.hero>div{z-index:1;padding:30px 35px}.hero h2{margin:0 0 12px;font-size:24px;letter-spacing:-.3px;color:#333333}.hero p{font-size:14px;line-height:1.65;color:#808080;margin:0}.hero img{height:100%;width:47%;object-fit:cover;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 30%)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-heading h2{font-size:21px;margin:0;color:#333333}.text-link,.back-link{border:0;background:none;color:#808080;font-size:13px;font-weight:600}.tabs{display:flex;gap:18px;border-bottom:1px solid #f5f5f5;margin-bottom:12px;overflow:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{white-space:nowrap;border:0;border-bottom:3px solid transparent;background:none;min-height:42px;padding:0 10px;color:#808080;font-size:12px;font-weight:600}.tab.active{border-color:#808080;color:#808080}.tab .count{background:#f5f5f5;color:#808080;border-radius:5px;padding:2px 6px;margin-left:4px}.tab.active .count{background:#808080;color:#fff}.table-wrap{overflow:auto;border:1px solid #f5f5f5;border-radius:8px;background:#fff}.orders-table{width:100%;border-collapse:collapse;min-width:760px;font-size:12px}.orders-table th{background:#fbfbfb;color:#808080;text-align:left;font-weight:600;height:40px;padding:0 15px;white-space:nowrap}.orders-table td{height:54px;border-top:1px solid #f5f5f5;padding:6px 15px;white-space:nowrap;color:#333333}.orders-table tr[data-order]{cursor:pointer}.orders-table tr[data-order]:hover{background:#fbfbfb}.orders-table td strong{color:#333333}.order-id{display:flex;align-items:center;gap:10px}.order-id img{width:32px;height:32px;border-radius:5px;object-fit:cover}.orders-table .arrow{font-size:19px;color:#808080}.badge{display:inline-block;border-radius:5px;padding:5px 10px;font-size:11px;font-weight:650}.badge.green{background:#def8e7;color:#1c9e4e}.badge.orange{background:#fff0cf;color:#e99416}.badge.blue{background:#f5f5f5;color:#808080}.toolbar{display:flex;align-items:center;gap:14px;margin:13px 0}.search{height:42px;display:flex;align-items:center;gap:8px;border:1px solid #f5f5f5;border-radius:7px;padding:0 13px;background:#fff;color:#808080;flex:1}.search input{width:100%;height:100%;border:0;outline:0;min-width:0;font-size:12px;color:#333333;background:transparent}.search input::placeholder{color:#c8c8c8}.pagination{display:flex;justify-content:center;gap:5px;margin:20px}.pagination button{width:30px;height:30px;border:0;background:#fff;border-radius:5px;font-size:12px;color:#808080}.pagination button.active{background:#808080;color:#fff}.stepper{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:10px 0 30px}.step{display:flex;align-items:center;gap:8px;background:none;border:0;color:#c8c8c8;font-size:12px;white-space:nowrap;padding:0}.step b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eeeeee;color:#fff;font-size:12px}.step.active{color:#808080;font-weight:700}.step.active b,.step.done b{background:#808080}.step-line{color:#dddddd}.wizard{min-height:560px;padding:29px 32px;background:#fff;border:1px solid #f5f5f5;border-radius:10px;position:relative}.wizard h2{font-size:19px;color:#333333;margin:0 0 22px}.wizard h3{font-size:14px;color:#333333;margin:25px 0 13px}.wizard-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:30px;margin-top:25px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 23px;max-width:820px}.field{display:grid;align-content:start;gap:9px;font-size:12px;color:#808080;font-weight:600}.field>input,.field>select,.field>textarea{width:100%;border:1px solid #eeeeee;background:#fff;border-radius:7px;padding:0 13px;height:43px;color:#333333;font-size:13px}.field>textarea{height:auto;padding:12px;resize:vertical}.field input::placeholder,.field textarea::placeholder{color:#c8c8c8}.info-note{background:#fbfbfb;border-radius:8px;color:#808080;padding:17px 20px;margin-top:25px;font-size:13px;max-width:820px}.teeth-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:40px;align-items:start;max-width:900px;margin:auto}.tooth-chart{max-width:300px;margin:auto}.tooth-chart svg{display:block;width:100%}.tooth circle{fill:#fff;stroke:#666666;stroke-width:1.3}.tooth text{fill:#333333;font-size:8px;font-weight:600;pointer-events:none}.tooth.selected circle{fill:#808080;stroke:#808080}.tooth.selected text{fill:#fff}.chart-legend{display:flex;justify-content:center;gap:18px;color:#808080;font-size:10px}.chart-legend span{display:flex;align-items:center;gap:4px}.dot{height:9px;width:9px;border-radius:3px;display:inline-block}.dot.blue{background:#808080}.dot.gray{background:#eeeeee}.teeth-options h2{margin:5px 0 20px}.segmented{display:flex;border:1px solid #f5f5f5;background:#fbfbfb;border-radius:7px;overflow:hidden;max-width:380px}.segmented button{flex:1;border:0;background:transparent;height:41px;color:#808080;font-size:12px}.segmented button.selected{background:#fff;color:#808080;box-shadow:0 0 0 1px #808080 inset}.selected-teeth{display:flex;gap:8px;align-items:center;min-height:40px}.selected-teeth button{background:#f5f5f5;color:#808080;border:0;border-radius:5px;padding:7px 11px;font-size:12px}.selected-teeth .clear{background:none;margin-left:auto}.work-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.work-options button{min-height:39px;border:1px solid transparent;border-radius:6px;background:#fbfbfb;color:#666666;font-size:12px;padding:5px}.work-options button.selected{border-color:#808080;background:#fff;color:#808080}.extra-fields{margin-top:19px}.upload-zone{height:112px;border:1px dashed #eeeeee;border-radius:7px;color:#808080;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;text-align:center;font-size:12px;font-weight:400;cursor:pointer}.hint{display:block;margin-top:9px;font-size:11px;color:#c8c8c8}.attachment-grid{display:flex;gap:10px;flex-wrap:wrap}.attachment{width:138px;height:105px;position:relative;border-radius:7px;overflow:hidden;background:#f5f5f5}.attachment img{width:100%;height:100%;object-fit:cover}.attachment>button{position:absolute;right:4px;top:4px;width:19px;height:19px;border:0;border-radius:50%;background:#fff;color:#808080;line-height:1}.attachment-add{width:138px;height:105px;border:1px dashed #dddddd;border-radius:7px;color:#808080;display:grid;place-items:center;cursor:pointer}.confirmation{display:grid;grid-template-columns:310px minmax(0,1fr);gap:35px;max-width:900px;margin:auto}.summary-list{padding-top:10px}.summary-list>div:not(.attachment-grid){display:grid;grid-template-columns:150px 1fr;gap:15px;border-bottom:1px solid #f5f5f5;padding:8px 0;font-size:12px}.summary-list span{color:#808080}.summary-list strong{font-weight:550;color:#333333}.summary-list .attachment-grid{margin-top:20px}.summary-list .attachment,.summary-list .attachment-add{width:80px;height:70px}.back-link{padding:0;margin:0 0 13px}.detail-heading{display:flex;align-items:start;gap:10px}.detail-heading .page-title{flex:1}.detail-heading .page-title p{display:flex;gap:15px;align-items:center}.muted{color:#c8c8c8}.more-btn{border:1px solid #f5f5f5;background:#fff;border-radius:7px;width:39px;height:39px;display:grid;place-items:center}.detail-grid{display:grid;grid-template-columns:1.2fr .85fr .85fr;gap:30px;margin-top:28px}.detail-grid section{min-width:0}.detail-grid h3,.attachments-title{font-size:15px;margin:0 0 18px;color:#333333}.detail-grid .tooth-chart{max-width:220px}.facts>div{display:grid;grid-template-columns:120px 1fr;gap:13px;padding:9px 0;border-bottom:1px solid #f5f5f5;font-size:12px}.facts span{color:#808080}.facts strong{font-weight:550}.timeline{border-left:2px solid #eeeeee;margin-left:7px}.timeline>div{position:relative;padding:0 0 22px 22px;display:grid;gap:4px;color:#c8c8c8;font-size:12px}.timeline i{position:absolute;left:-7px;top:1px;width:12px;height:12px;background:#fff;border:2px solid #dddddd;border-radius:50%}.timeline .complete i{background:#808080;border-color:#808080}.timeline .complete{color:#808080}.timeline small{font-size:10px;color:#c8c8c8}.attachments-title{margin-top:30px}.file-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin-top:18px}.file-card{display:grid;text-align:left;gap:5px;border:0;background:none;padding:0;min-width:0}.file-card img{width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:8px;background:#f5f5f5}.file-card strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333333}.file-card small{font-size:11px;color:#c8c8c8}.messages-layout{display:grid;grid-template-columns:320px 1fr;background:#fff;border:1px solid #f5f5f5;border-radius:10px;min-height:570px;overflow:hidden}.contacts{border-right:1px solid #f5f5f5;padding:16px 0}.contacts .search{margin:0 14px 14px}.contact{display:flex;align-items:center;width:100%;min-height:76px;padding:12px 15px;gap:10px;border:0;background:#fff;text-align:left}.contact.active,.contact:hover{background:#f5f5f5}.contact-avatar{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f5f5f5;color:#808080;font-weight:750;font-size:12px}.contact-avatar.photo{background:linear-gradient(145deg,#b1846b,#333333);color:#fff}.contact>span:nth-child(2){flex:1;min-width:0}.contact strong,.contact small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact strong{font-size:12px}.contact small{font-size:11px;color:#808080;margin-top:4px}.contact time{font-size:10px;color:#c8c8c8;align-self:start}.conversation{display:flex;flex-direction:column;min-width:0}.conversation-head{height:68px;border-bottom:1px solid #f5f5f5;display:flex;align-items:center;gap:10px;padding:0 20px}.conversation-head strong,.conversation-head small{display:block;font-size:12px}.conversation-head small{color:#5fbe7e;font-size:10px;margin-top:3px}.conversation-head .more-btn{margin-left:auto;border:0}.online{display:inline-block;background:#39c27e;width:6px;height:6px;border-radius:50%}.chat-bubbles{display:flex;flex-direction:column;gap:18px;flex:1;padding:24px 25px;min-height:400px}.bubble{max-width:70%;padding:12px 14px;border-radius:9px;background:#f5f5f5;color:#333333;font-size:12px;line-height:1.5}.bubble.me{margin-left:auto;background:#f5f5f5}.bubble p{margin:0}.bubble time{display:block;text-align:right;color:#c8c8c8;font-size:10px;margin-top:5px}.chat-compose{height:60px;margin:0 17px 14px;display:flex;align-items:center;border:1px solid #f5f5f5;border-radius:8px}.chat-compose input{flex:1;min-width:0;border:0;outline:0;padding:0 15px;font-size:12px}.attach-btn{border:0;background:none;color:#808080}.send-btn{border:0;background:#808080;color:#fff;width:36px;height:36px;border-radius:50%;margin:0 7px}.clinic-content{display:grid;grid-template-columns:150px 1fr;gap:34px;margin-top:20px}.clinic-photo img{width:135px;height:135px;border-radius:50%;object-fit:cover}.clinic-photo button{border:1px solid #f5f5f5;border-radius:6px;background:#fff;color:#808080;font-size:11px;padding:8px;margin-top:10px}.clinic-form .form-grid{max-width:none}.save-field{display:flex;align-items:end;justify-content:flex-end}.reference-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.reference-card{border:1px solid #f5f5f5;border-radius:10px;padding:26px;background:#fff;color:#808080}.reference-card h3{color:#333333}.reference-card p{color:#808080;font-size:13px}.empty{text-align:center;color:#c8c8c8}.toast{position:fixed;right:25px;bottom:25px;background:#333333;color:#fff;padding:12px 17px;border-radius:8px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30;box-shadow:0 8px 24px #33333333}.toast.visible{opacity:1}
@media(max-width:1100px){.sidebar{width:190px}.shell{margin-left:190px;padding:0 20px 32px}.stats{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr 1fr}.detail-grid section:last-child{grid-column:1/-1}.file-grid{grid-template-columns:repeat(4,1fr)}.stepper{gap:3px}.step-line{display:none}.step{font-size:11px}.teeth-layout{gap:20px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:230px;box-shadow:10px 0 30px #33333329}.sidebar.open{transform:translateX(0)}.shell{margin-left:0;padding:0 15px 30px}.topbar{height:66px;gap:9px}.mobile-menu{display:block;border:0;background:#f5f5f5;border-radius:7px;color:#808080;width:36px;height:36px;font-size:18px}.topbar-label,.profile small,.profile>svg{display:none}.clinic-select{min-width:110px;max-width:120px;padding:0 5px}.profile>span:nth-child(2){display:none}.page-title h1{font-size:23px}.page-title{align-items:center}.page-title p{font-size:12px}.page-title>.btn{font-size:0;padding:0 12px;min-width:43px}.page-title>.btn svg{width:18px}.stats{gap:9px}.stat{height:75px;padding:10px;gap:8px}.stat-icon{width:36px;height:36px}.stat-icon svg{width:20px}.stat strong{font-size:23px}.stat span:not(.stat-icon){font-size:10px;white-space:normal}.hero{height:150px}.hero>div{padding:20px}.hero h2{font-size:19px}.hero p{font-size:11px}.hero img{width:49%}.tabs{gap:4px}.tab{font-size:11px;padding:0 7px}.wizard{padding:22px 16px;min-height:0}.stepper{overflow:auto;padding-bottom:8px;justify-content:flex-start;gap:15px}.step{flex:0 0 auto}.step:not(.active){font-size:0}.step b{font-size:11px}.teeth-layout,.confirmation{grid-template-columns:1fr}.teeth-options{max-width:500px;margin:auto}.form-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr;gap:20px}.detail-grid section:last-child{grid-column:auto}.file-grid{grid-template-columns:repeat(2,1fr)}.messages-layout{grid-template-columns:1fr}.contacts{display:none}.clinic-content{grid-template-columns:1fr}.clinic-photo{display:flex;align-items:center;gap:18px}.clinic-photo img{width:90px;height:90px}.reference-grid{grid-template-columns:1fr}.attachment,.attachment-add{width:100px;height:85px}.toolbar .btn{font-size:0;width:43px;padding:0}.toolbar .btn svg{width:18px}.summary-list>div:not(.attachment-grid){grid-template-columns:110px 1fr}}
@media(max-width:420px){.stat{gap:5px}.stat-x{display:none}.hero img{width:42%}.page-title h1{font-size:21px}.profile{padding:0}.bell{padding:3px}.stepper{margin-bottom:16px}.work-options{grid-template-columns:repeat(2,1fr)}}

/* Create Dental identity and order flow */
.brand{height:93px;padding:0;justify-content:center}
.portal-logo{display:block;object-fit:cover;object-position:center;background:#fff}
.brand .portal-logo{width:185px;height:74px}
.sidebar-nav{gap:5px;margin-top:3px}
.nav-link{height:46px;gap:13px}
.nav-link svg{stroke-width:2}
.help-box{width:100%;border:0;text-align:left;cursor:pointer}
.help-box strong,.help-box small{display:block}
.help-box small{font-size:11px;margin-top:2px}
.stepper{justify-content:flex-start;gap:13px;max-width:900px;margin:10px 0 24px}
.step{gap:8px;font-size:13px}
.step b{width:27px;height:27px}
.step-line{font-size:15px;margin:0 5px}
.tooth-chart{max-width:520px}
.teeth-layout{grid-template-columns:minmax(0,520px) minmax(300px,1fr);max-width:1070px;gap:35px}
.arch-guide{fill:none;stroke:#eeeeee;stroke-width:1.5;stroke-dasharray:4 5}
.tooth path{fill:#fff;stroke:#808080;stroke-width:1.4}
.tooth text{fill:#333333;font-size:8px;font-weight:700;pointer-events:none}
.tooth:hover path{stroke:#808080;stroke-width:2}
.tooth.selected path{fill:#808080;stroke:#808080}
.tooth.selected text{fill:#fff}
.estimate-card{margin-top:22px;border:1px solid #eeeeee;background:linear-gradient(110deg,#fbfbfb,#f5f5f5);border-radius:10px;padding:17px 19px;display:grid;gap:5px}
.estimate-card span{font-size:12px;color:#808080;font-weight:600}
.estimate-card strong{font-size:26px;color:#808080}
.estimate-card small{font-size:11px;color:#808080;line-height:1.4}
@media(max-width:1100px){.stepper{gap:7px}.step{font-size:11px}.teeth-layout{grid-template-columns:1fr;max-width:650px}}
@media(max-width:760px){.brand img{width:185px}.stepper{max-width:100%;gap:12px}.step:not(.active){font-size:0}.step-line{display:none}.teeth-layout{gap:20px}.tooth-chart{max-width:520px}}
.chat-bubbles{overflow:auto;max-height:520px}
.chat-empty{margin:auto;color:#808080;font-size:13px;text-align:center}
.chat-compose .send-btn:disabled{opacity:.55;cursor:wait}

/* Anatomical tooth chart based on the supplied two-arch reference */
.tooth-chart{max-width:420px;padding:10px;border-radius:14px;background:#333333;box-shadow:inset 0 0 0 1px #333333}
.tooth-chart svg{display:block;width:100%;height:auto}
.teeth-layout{grid-template-columns:minmax(0,420px) minmax(300px,1fr);max-width:1000px}
.tooth .tooth-outline{fill:#f7f3e3;stroke:#d3d5c4;stroke-width:2.2;stroke-linejoin:round}
.tooth .tooth-detail{fill:none;stroke:#a0ac99;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tooth text{fill:#48584f;font-size:26px;font-weight:600;paint-order:stroke;stroke:#f7f3e3;stroke-width:2.2px}
.tooth:hover .tooth-outline{fill:#f5f5f5;stroke:#c8c8c8;stroke-width:3}
.tooth.selected .tooth-outline{fill:#808080;stroke:#eeeeee;stroke-width:3}
.tooth.selected .tooth-detail{fill:none;stroke:#eeeeee}
.tooth.selected text{fill:#fff;stroke:#808080}
.confirmation .tooth-chart{max-width:300px}
.detail-grid .tooth-chart{max-width:220px}
@media(max-width:1100px){.teeth-layout{grid-template-columns:1fr;max-width:650px}}

/* Dashboard calendar and messages */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}
.dashboard-main{min-width:0}
.dashboard-main .orders-table{min-width:650px}
.dashboard-aside{display:grid;gap:18px}
.dashboard-card{background:#fff;border:1px solid #f5f5f5;border-radius:13px;padding:21px 20px;box-shadow:0 10px 28px rgba(128,128,128,.04)}
.dashboard-card h2{font-size:19px;line-height:1.2;color:#333333;margin:0}
.calendar-head{display:flex;align-items:center;justify-content:space-between;margin:24px 1px 18px}
.calendar-head strong{font-size:16px;font-weight:650;color:#333333}
.calendar-head div{display:flex;gap:7px}
.calendar-head button{width:29px;height:29px;border:0;background:#fbfbfb;border-radius:6px;color:#808080;font-size:23px;line-height:1}
.calendar-head button:hover{background:#f5f5f5;color:#808080}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.calendar-weekday{color:#c8c8c8;font-size:11px;padding:4px 0 8px}
.calendar-blank{min-height:39px}
.calendar-day{height:39px;border:0;background:transparent;border-radius:50%;display:grid;place-content:center;justify-items:center;gap:2px;color:#333333;font-size:12px}
.calendar-day:hover{background:#f5f5f5}
.calendar-day.selected{background:#808080;color:#fff;box-shadow:0 5px 12px #80808035}
.calendar-markers{height:5px;display:flex;justify-content:center;gap:2px}
.calendar-markers b{width:5px;height:5px;border-radius:50%;display:block}
.calendar-markers b.green,.deadline-status.green{background:#18a65a}
.calendar-markers b.blue,.deadline-status.blue{background:#808080}
.calendar-markers b.orange,.deadline-status.orange{background:#f59b18}
.calendar-day.selected .calendar-markers b{background:#fff}
.dashboard-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.deadline-card .dashboard-card-heading{margin:26px 0 11px}
.dashboard-card-heading h3{font-size:14px;margin:0;color:#333333}
.dashboard-card-heading button,.dashboard-empty button{border:0;background:transparent;color:#808080;font-size:12px;font-weight:650;white-space:nowrap}
.upcoming-list{display:grid}
.upcoming-order{display:flex;align-items:center;gap:9px;width:100%;padding:10px 0;border:0;border-bottom:1px solid #f5f5f5;background:none;text-align:left}
.upcoming-order:last-child{border-bottom:0}
.upcoming-order:hover{background:#fbfbfb}
.upcoming-order img{width:38px;height:38px;border-radius:7px;object-fit:cover}
.deadline-status{width:7px;height:7px;flex:0 0 auto;border-radius:50%}
.upcoming-order span{min-width:0;flex:1;display:flex;align-items:center;gap:6px}
.upcoming-order strong{color:#333333;font-size:11px;white-space:nowrap}
.upcoming-order small{color:#808080;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upcoming-order time{font-size:11px;color:#808080;white-space:nowrap}
.recent-card{min-height:195px}
.recent-card .dashboard-card-heading{margin-bottom:13px}
.recent-card .dashboard-card-heading h2{font-size:18px}
.recent-message{width:100%;display:flex;align-items:flex-start;gap:10px;padding:11px 0;border:0;border-bottom:1px solid #f5f5f5;background:none;text-align:left}
.recent-message:last-child{border-bottom:0}
.recent-message:hover{background:#fbfbfb}
.recent-avatar{width:34px;height:34px;border-radius:50%;background:#f5f5f5;color:#808080;display:grid;place-items:center;flex:0 0 auto;font-size:11px;font-weight:750}
.recent-avatar.support{background:#f5f5f5;color:#808080}
.recent-message span:nth-child(2){min-width:0;flex:1}
.recent-message strong,.recent-message small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-message strong{font-size:12px;color:#333333}
.recent-message small{font-size:11px;color:#808080;margin-top:4px}
.recent-message time{font-size:10px;color:#c8c8c8}
.dashboard-empty{font-size:12px;color:#808080;line-height:1.6;padding:12px 0}
@media(max-width:1200px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main .orders-table{min-width:760px}}
@media(max-width:760px){.dashboard-aside{grid-template-columns:1fr}.dashboard-card{padding:18px}.dashboard-main .orders-table{min-width:760px}}

/* Orders and conversations fit inside the available cabinet width. */
.shell{min-width:0;max-width:100%;overflow-x:hidden}
.content,.dashboard-grid,.dashboard-aside,.messages-layout,.conversation{min-width:0}
.orders-table,.dashboard-main .orders-table{min-width:0;table-layout:auto}
.orders-table th,.orders-table td{padding-left:10px;padding-right:10px}
.order-sort{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap}
.order-sort:hover{color:#808080}
.order-sort span{color:#c8c8c8;font-size:14px}
.orders-table th[aria-sort="ascending"] .order-sort,.orders-table th[aria-sort="descending"] .order-sort{color:#808080}
.chat-empty,.chat-error{padding:18px;color:#808080;font-size:13px}
.chat-error{color:#b64747}
.portal-login label,.field,.tech-client-form label{position:relative}
.location-options{position:absolute;z-index:25;top:100%;left:0;right:0;max-height:220px;overflow-y:auto;background:#fff;border:1px solid #eeeeee;border-radius:7px;box-shadow:0 12px 28px #33333322}
.location-options button{display:block;width:100%;padding:10px 12px;border:0;background:#fff;text-align:left;color:#333333;font-size:12px}
.location-options button:hover,.location-options button:focus{background:#f5f5f5}
@media(max-width:1350px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-aside{grid-template-columns:1fr}.orders-table,.dashboard-main .orders-table{min-width:680px}.messages-layout{grid-template-columns:1fr}.contacts{border-right:0;border-bottom:1px solid #f5f5f5}.chat-bubbles{min-height:250px}}

/* Chief technician cabinet */
.role-toggle{border:1px solid #eeeeee;background:#fff;color:#808080;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:650;white-space:nowrap}
.role-toggle:hover,.tech-switch:hover{background:#f5f5f5}
.tech-sidebar .brand{height:78px;justify-content:center;padding:0}
.tech-sidebar .brand .portal-logo{width:185px;height:74px}
.tech-sidebar .sidebar-nav{margin-top:30px}
.tech-side-label{color:#808080;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin:0 7px 18px}
.tech-switch{margin-top:auto;border:1px solid #f5f5f5;background:#fff;color:#808080;padding:11px 8px;border-radius:8px;font-size:12px;font-weight:650;text-align:center}
.tech-header-label{font-size:12px;color:#808080}.tech-content{padding-bottom:50px}
.tech-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:4px 0 21px}
.tech-heading h1{font-size:29px;letter-spacing:-.6px;color:#333333;margin:6px 0 6px}.tech-heading p{font-size:13px;color:#808080;margin:0}
.tech-eyebrow{font-size:11px;letter-spacing:.1em;font-weight:750;color:#808080}
.tech-task-count{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#f5f5f5;border:1px solid #f5f5f5;border-radius:10px;white-space:nowrap}
.tech-task-count strong{font-size:25px;color:#808080}.tech-task-count span{font-size:12px;color:#808080}
.tech-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:19px}
.tech-filters label,.tech-assign{display:grid;gap:5px;color:#808080;font-size:11px;font-weight:650}
.tech-filters select,.tech-assign select{height:37px;min-width:180px;padding:0 11px;border:1px solid #f5f5f5;border-radius:7px;background:#fff;color:#333333;font-size:12px}
.tech-demo-note{margin-left:auto;color:#808080;background:#f5f5f5;border-radius:20px;padding:8px 11px;font-size:11px}
.tech-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.tech-kpis article,.tech-panel{background:#fff;border:1px solid #f5f5f5;border-radius:12px;box-shadow:0 7px 24px #33333308}
.tech-kpis article{display:grid;align-content:start;gap:9px;min-height:117px;padding:18px}
.tech-kpis article>span{font-size:12px;color:#808080}.tech-kpis article strong{font-size:25px;letter-spacing:-.4px;color:#333333;white-space:nowrap}.tech-kpis article small{font-size:11px;color:#808080}.tech-kpis article small.positive{color:#19a16e}.tech-kpis article small.negative{color:#d06455}
.tech-analytics-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:17px;align-items:stretch;margin-bottom:17px}
.tech-work-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:17px;align-items:start}
.tech-panel{padding:21px;min-width:0}.tech-panel h2{font-size:18px;color:#333333;margin:0}.tech-panel h3{font-size:14px;color:#333333;margin:22px 0 12px}.tech-panel p{color:#808080}
.tech-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:17px}.tech-panel-heading p{font-size:11px;margin:5px 0 0}
.tech-segment{display:flex;gap:2px;padding:3px;background:#f5f5f5;border-radius:8px;flex-wrap:wrap}.tech-segment button{border:0;background:transparent;border-radius:6px;color:#808080;font-size:11px;font-weight:650;padding:7px 9px;white-space:nowrap}.tech-segment button.active{background:#fff;color:#808080;box-shadow:0 1px 5px #80808022}
.tech-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:8px;height:205px;padding-top:6px}.tech-bar{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:8px;height:100%;min-width:0;padding:0}.tech-bar-track{height:166px;width:100%;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #f5f5f5}.tech-bar-track i{display:block;width:min(100%,32px);border-radius:5px 5px 0 0;background:#eeeeee;transition:height .2s}.tech-bar:hover .tech-bar-track i{background:#c8c8c8}.tech-bar.active .tech-bar-track i{background:#808080}.tech-bar small{color:#808080;font-size:10px}.tech-bar.active small{color:#808080;font-weight:750}
.tech-breakdown{display:grid}.tech-breakdown-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid #f5f5f5;font-size:12px}.tech-rank{display:grid;place-items:center;width:25px;height:25px;flex:0 0 auto;border-radius:7px;background:#f5f5f5;color:#808080;font-weight:700}.tech-breakdown-name{flex:1;min-width:0;font-weight:650;color:#333333}.tech-breakdown-name small{display:block;color:#808080;font-size:10px;font-weight:400;margin-top:3px}.tech-breakdown-row strong{color:#333333;white-space:nowrap}
.tech-link,.tech-back{border:0;background:none;color:#808080;font-size:12px;font-weight:650;padding:5px}.tech-back{margin:0 0 12px;padding:0}
.tech-attention{display:grid}.tech-attention>button{display:flex;align-items:center;gap:11px;width:100%;border:0;border-top:1px solid #f5f5f5;background:transparent;text-align:left;padding:12px 0}.tech-attention>button:hover,.tech-order-row:hover{background:#fbfbfb}.tech-order-icon{width:35px;height:35px;flex:0 0 auto;display:grid;place-items:center;color:#808080;background:#f5f5f5;border-radius:8px}.tech-attention>button>span:nth-child(2){flex:1;min-width:0}.tech-attention strong,.tech-attention small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tech-attention strong{font-size:12px;color:#333333}.tech-attention small{margin-top:4px;color:#808080;font-size:11px}
.tech-stage{display:inline-flex;align-items:center;border-radius:20px;padding:6px 9px;font-size:10px;font-style:normal;font-weight:700;white-space:nowrap}.tech-stage.new{color:#e27b17;background:#fff2e2}.tech-stage.work{color:#808080;background:#f5f5f5}.tech-stage.review{color:#808080;background:#f5f5f5}.tech-stage.ready{color:#15905c;background:#e7f8ef}
.tech-team-snapshot>div{display:flex;align-items:center;gap:9px;border-top:1px solid #f5f5f5;padding:9px 0;font-size:12px;color:#666666}.tech-team-snapshot>div>span:nth-child(2){flex:1}.tech-team-snapshot strong{font-size:14px;color:#808080}.tech-mini-avatar,.tech-person-avatar{display:grid;place-items:center;border-radius:50%;background:#f5f5f5;color:#808080;font-weight:750}.tech-mini-avatar{width:29px;height:29px;font-size:10px}
.tech-order-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px;flex-wrap:wrap}.tech-order-tools input{height:36px;width:min(100%,320px);border:1px solid #f5f5f5;border-radius:7px;padding:0 11px;font-size:12px}.tech-table-wrap{overflow:auto}.tech-table{width:100%;border-collapse:collapse;min-width:800px;text-align:left}.tech-table th{background:#fbfbfb;color:#808080;font-weight:650;font-size:11px;padding:12px}.tech-table td{border-top:1px solid #f5f5f5;padding:14px 12px;color:#808080;font-size:12px}.tech-table td strong,.tech-table td small{display:block}.tech-table td strong{color:#333333}.tech-table td small{color:#808080;font-size:11px;margin-top:4px}.tech-order-row{cursor:pointer}.tech-order-row[hidden]{display:none}
.tech-detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:18px;align-items:start}.tech-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}.tech-facts div{display:grid;gap:5px}.tech-facts span{color:#808080;font-size:11px}.tech-facts strong{font-size:13px;color:#333333}.tech-detail-teeth{border-top:1px solid #f5f5f5;margin-top:22px}.tech-detail-teeth .tooth-chart{max-width:310px;margin:auto}.tech-assign{margin:20px 0}.tech-assign select{width:100%}.tech-timeline{list-style:none;margin:0;padding:0;display:grid;gap:0}.tech-timeline li{display:flex;align-items:center;gap:10px;min-height:32px;color:#c8c8c8;font-size:12px}.tech-timeline i{width:13px;height:13px;border:2px solid #eeeeee;border-radius:50%;flex:0 0 auto}.tech-timeline .done{color:#808080}.tech-timeline .done i{background:#808080;border-color:#808080}.tech-timeline .current{color:#333333;font-weight:700}.tech-timeline .current i{border-color:#808080;box-shadow:0 0 0 3px #f5f5f5}.tech-detail-actions{border-top:1px solid #f5f5f5;margin-top:19px;padding-top:17px;display:flex;gap:8px;flex-wrap:wrap}.tech-detail-actions p{font-size:12px;margin:0;line-height:1.5}
.tech-breakdown-grid{margin-top:17px}.tech-team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.tech-person{text-align:center}.tech-person-avatar{width:55px;height:55px;font-size:16px;margin:0 auto 12px}.tech-person h2{font-size:15px}.tech-person p{font-size:11px;margin:5px 0 18px}.tech-person>div{display:flex;justify-content:space-between;gap:6px;border-top:1px solid #f5f5f5;padding:10px 0;font-size:11px;text-align:left}.tech-person>div span{color:#808080}.tech-person>div strong{color:#333333}.tech-quality-list{display:grid;gap:12px}.tech-quality-item{display:flex;align-items:center;justify-content:space-between;gap:15px}.tech-quality-item h2{margin:7px 0}.tech-quality-item p{font-size:12px;margin:0}.tech-quality-item>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.tech-profile{display:flex;align-items:center;gap:17px;max-width:700px}.tech-profile .tech-person-avatar{flex:0 0 55px;margin:0}.tech-profile p{font-size:12px;margin:7px 0}.tech-profile small{display:block;color:#808080;font-size:11px;line-height:1.5}.tech-empty{color:#808080;font-size:12px;padding:18px;text-align:center}
@media(max-width:1250px){.tech-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tech-analytics-grid,.tech-work-grid{grid-template-columns:1fr}.tech-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.role-toggle{font-size:10px;padding:8px}.tech-header-label{display:none}.tech-heading{align-items:flex-start}.tech-heading h1{font-size:24px}.tech-task-count{padding:8px}.tech-task-count span{display:none}.tech-filters select{min-width:140px}.tech-demo-note{margin-left:0}.tech-bars{gap:3px}.tech-bar small{font-size:9px}.tech-panel{padding:16px}.tech-detail-grid,.tech-team-grid{grid-template-columns:1fr}.tech-quality-item{display:block}.tech-quality-item>div:last-child{margin-top:13px}.tech-order-tools input{width:100%}}
@media(max-width:480px){.tech-kpis{gap:8px}.tech-kpis article{padding:12px;min-height:100px}.tech-kpis article strong{font-size:18px}.tech-heading p{font-size:12px}.tech-filters{gap:8px}.tech-filters select{min-width:130px}.tech-panel-heading{display:block}.tech-panel-heading .tech-segment{margin-top:12px;width:max-content}.tech-attention .tech-stage{display:none}.tech-facts{gap:12px}.tech-breakdown-row strong{font-size:11px}}

/* Client directory for the chief technician */
.tech-client-layout{display:grid;gap:18px;align-items:start}
.tech-client-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.tech-client-toolbar h2{font-size:18px}.tech-client-toolbar h2 span{font-size:12px;color:#808080;background:#f5f5f5;border-radius:15px;padding:4px 8px;margin-left:5px}
.tech-client-toolbar p{font-size:11px;margin:5px 0 0}
.tech-client-toolbar input{width:min(100%,300px);height:37px;border:1px solid #f5f5f5;border-radius:8px;padding:0 12px;font-size:12px}
.tech-client-table{min-width:750px}.tech-client-table td{vertical-align:middle}.tech-client-actions{display:flex;align-items:center;gap:6px}
.tech-client-actions button{background:#fbfbfb;border:0;border-radius:6px;color:#808080;font-size:11px;font-weight:650;padding:8px 10px;white-space:nowrap}
.tech-client-actions button:hover{background:#f5f5f5}.tech-client-actions button.danger{color:#c65156;background:#fff0f0}.tech-client-actions button.danger:hover{background:#ffe1e1}
.tech-client-editor{max-width:780px}.tech-client-close{border:0;background:transparent;color:#808080;font-size:24px;line-height:1;padding:0 5px}
.tech-client-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.tech-client-form label{display:grid;gap:6px;color:#808080;font-size:12px;font-weight:650}.tech-client-form input{height:40px;border:1px solid #f5f5f5;border-radius:7px;padding:0 11px;color:#333333;font-size:13px}.tech-client-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:4px}
.tech-dialog-backdrop{position:fixed;inset:0;background:#33333377;display:grid;place-items:center;z-index:40;padding:18px}.tech-dialog{width:min(100%,420px);background:#fff;border-radius:13px;padding:25px;box-shadow:0 20px 65px #33333340}.tech-dialog h2{font-size:20px;color:#333333;margin:0 0 10px}.tech-dialog p{font-size:13px;line-height:1.6;color:#808080;margin:0 0 22px}.tech-dialog>div{display:flex;justify-content:flex-end;gap:9px}.tech-dialog .btn.danger{background:#df4b52;border-color:#df4b52;color:#fff}
@media(max-width:760px){.tech-client-toolbar{display:block}.tech-client-toolbar input{margin-top:14px;width:100%}.tech-client-form{grid-template-columns:1fr}.tech-heading>.btn{padding:0 11px;font-size:11px}}

/* Team administration and individual technician cabinet */
.tech-employee-filters{width:max-content;max-width:100%;margin-bottom:15px}
.tech-employee-table{min-width:920px}
.tech-employee-table td{vertical-align:middle}
.tech-employee-status{display:inline-flex;border-radius:18px;padding:6px 9px;font-size:10px;font-weight:750;white-space:nowrap}
.tech-employee-status.active{color:#15905c;background:#e7f8ef}
.tech-employee-status.disabled{color:#a86712;background:#fff4e4}
.tech-employee-status.fired{color:#808080;background:#f5f5f5}
.worker-account{display:flex;align-items:center;gap:8px;color:#808080;font-size:11px;font-weight:650;white-space:nowrap}
.worker-account select{max-width:190px;height:36px;padding:0 9px;border:1px solid #f5f5f5;border-radius:7px;background:#fff;color:#333333;font-size:12px}
.worker-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}
.worker-stats article{display:grid;gap:7px;background:#fff;border:1px solid #f5f5f5;border-radius:12px;padding:19px;box-shadow:0 7px 24px #33333308}
.worker-stats span{color:#808080;font-size:12px}.worker-stats strong{color:#333333;font-size:28px}.worker-stats small{color:#808080;font-size:11px}
.worker-table{min-width:760px}
@media(max-width:1000px){.tech-shell .topbar{gap:8px}.tech-shell .topbar .profile>span:nth-child(2){display:none}.worker-account select{max-width:145px}}
@media(max-width:760px){.worker-stats{gap:8px}.worker-stats article{padding:12px}.worker-stats strong{font-size:22px}.worker-account{font-size:0}.worker-account select{max-width:125px}.tech-shell .topbar .role-toggle{font-size:9px;padding:7px}.tech-shell .topbar .profile{display:none}}
@media(max-width:500px){.worker-stats{grid-template-columns:1fr}.worker-stats article{grid-template-columns:1fr auto;align-items:center;gap:3px}.worker-stats article small{grid-column:1/-1}.tech-shell .topbar .role-toggle[data-role="clinic"]{display:none}.tech-employee-filters{overflow:auto;flex-wrap:nowrap;width:100%}}

/* Shared data access */
.portal-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 75% 0%,#f5f5f5,transparent 45%),#fbfbfb}
.portal-login section{width:min(100%,430px);background:#fff;border:1px solid #f5f5f5;border-radius:16px;padding:35px;box-shadow:0 18px 60px #33333314}
.portal-login .portal-logo{width:190px;height:76px;margin:0 auto 25px}
.portal-login h1{font-size:23px;color:#333333;margin:0 0 9px}.portal-login p{color:#808080;font-size:13px;line-height:1.55;margin:0 0 22px}
.portal-login form{display:grid;gap:13px}.portal-login label{display:grid;gap:7px;color:#808080;font-size:12px;font-weight:650}.portal-login input{height:42px;border:1px solid #eeeeee;border-radius:8px;padding:0 12px}
.portal-login .btn{width:100%}.portal-login .btn.primary:hover{background:#333333;border-color:#333333}.portal-login small{display:block;margin-top:20px;color:#c8c8c8;font-size:11px;line-height:1.5}.portal-login .portal-login-error{color:#c74b53;margin:14px 0 0}
.portal-login section{width:min(100%,480px)}
.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.auth-links button{border:0;background:none;padding:0;color:#808080;font:inherit;font-size:13px;cursor:pointer;text-align:left}
.auth-links button:hover{text-decoration:underline}
.auth-recovery h2{font-size:18px;margin:4px 0 10px;color:#333333}
.auth-recovery p{margin-bottom:0}

/* Chief technician refinements */
.tech-filters select,.tech-assign select{padding-right:42px}
.tech-client-form{column-gap:22px}
.tech-client-form input{padding-left:13px;padding-right:20px}
.tech-client-editor,.tech-profile-editor{padding-right:30px}
.tech-bar.active .tech-bar-track i,.tech-bar.current .tech-bar-track i{background:#333333}
.tech-bar.active small,.tech-bar.current small{color:#333333}
.chief-messages .chat-bubbles{height:380px;max-height:380px;min-height:0;overflow-y:auto;align-content:start;scrollbar-width:thin}
.chat-date-divider{align-self:center;background:#fff;border:1px solid #f5f5f5;border-radius:999px;color:#808080;font-size:11px;font-weight:650;padding:6px 12px;margin:2px 0 4px}
.tech-profile-editor{display:grid;grid-template-columns:180px minmax(0,1fr);gap:26px;align-items:start;max-width:900px}
.tech-profile-avatar{display:grid;justify-items:center;align-content:start;gap:12px;padding-top:4px}
.tech-profile-avatar .btn{width:100%;padding:0 12px}
.tech-person-avatar.large{width:96px;height:96px;font-size:28px}
.tech-person-avatar img,.profile .avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.profile .avatar{overflow:hidden}
@media(max-width:760px){.tech-profile-editor{grid-template-columns:1fr;padding-right:16px}.chief-messages .chat-bubbles{height:330px;max-height:330px}.tech-client-editor{padding-right:16px}}

/* Message contrast and sortable staff tables */
.bubble.me{background:#333333;color:#fff}
.bubble.me time{color:#eeeeee}
.bubble.them{background:#f5f5f5;color:#333333}
.tech-table th[aria-sort="ascending"] .order-sort,.tech-table th[aria-sort="descending"] .order-sort{color:#333333}
.auth-recovery a{color:#333333;font-weight:650;text-decoration:none}
.auth-recovery a:hover{text-decoration:underline}
/* Match sidebar logo spacing across all cabinets */
.sidebar:not(#worker-sidebar) .sidebar-nav{margin-top:61px}
