
.profile-dropdown{position:relative}.profile-trigger{cursor:pointer;list-style:none;border:2px solid var(--orange,#f56a2a)}.profile-trigger::-webkit-details-marker{display:none}.profile-trigger:focus-visible{outline:2px solid var(--orange,#f56a2a);outline-offset:3px}.profile-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:100;width:270px;max-width:calc(100vw - 32px);border:1px solid var(--line,#edf0f4);border-radius:12px;background:#fff;box-shadow:0 12px 36px #17202d24;color:var(--ink,#202636)}.profile-menu-identity{display:flex;align-items:center;gap:10px;padding:16px}.profile-menu-identity>.account-avatar{flex-shrink:0}.profile-menu-identity>div{min-width:0}.profile-menu-identity strong,.profile-menu-identity small{display:block;overflow-wrap:anywhere}.profile-menu-identity small{margin-top:5px;color:var(--muted,#86909f);font-size:12px}.profile-menu-link{display:flex;align-items:center;gap:10px;padding:13px 16px;border-top:1px solid var(--line,#edf0f4);border-bottom:1px solid var(--line,#edf0f4)}.profile-menu-link:hover{background:#fff5ef;color:var(--orange,#f56a2a)}.profile-logout{padding:12px}.profile-logout button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:9px;border:1px solid var(--line,#edf0f4);border-radius:8px;background:#fff;color:inherit}.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-detail-grid>.panel{min-width:0;margin-bottom:0}.profile-fields{margin:0;padding:4px 24px 18px}.profile-fields>div{display:grid;grid-template-columns:minmax(110px,35%) minmax(0,1fr);gap:16px;padding:13px 0;border-bottom:1px solid var(--line,#edf0f4)}.profile-fields>div:last-child{border-bottom:0}.profile-fields dt{color:var(--muted,#86909f)}.profile-fields dd{margin:0;font-weight:500;white-space:pre-line;overflow-wrap:anywhere}@media(max-width:800px){.profile-detail-grid{grid-template-columns:minmax(0,1fr)}.profile-fields{padding-inline:16px}}

.profile-dropdown{position:relative}.profile-trigger.account-avatar{width:36px;height:36px;border:2px solid #2563eb;outline:0;background:#f1f5f9;color:#334155;font-size:13px}.profile-menu{width:270px;max-width:calc(100vw - 24px);top:calc(100% + 10px);border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 7px #00000012;background:#fff;color:#111827}.profile-menu-identity{gap:10px;padding:20px}.profile-menu-identity .account-avatar{width:40px;height:40px;border:2px solid #2563eb;outline:0;background:#f1f5f9;color:#334155}.profile-menu-identity strong{font-size:14px;line-height:20px;font-weight:600}.profile-menu-identity small{font-size:12px;line-height:18px;color:#374151;margin-top:0}.profile-menu-link{padding:18px 20px;min-height:56px;font-size:14px;font-weight:500;border-color:#e5e7eb;gap:10px}.profile-menu-link i,.profile-theme-label i,.profile-logout i{font-size:16px;color:#858894}.profile-menu-link:hover{background:#f8fafc;color:#111827}.profile-menu-controls{padding:14px 20px 20px}.profile-theme-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:500;margin-bottom:12px;cursor:pointer}.profile-theme-label>span{display:flex;align-items:center;gap:10px}.profile-theme-switch{appearance:none;-webkit-appearance:none;position:relative;flex-shrink:0;width:32px;height:20px;border:0;border-radius:999px;background:#e4e4e7;cursor:pointer;margin:0;transition:background .15s}.profile-theme-switch::before{content:'';position:absolute;left:4px;top:4px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .15s}.profile-theme-switch:checked{background:#2563eb}.profile-theme-switch:checked::before{transform:translateX(12px)}.profile-theme-switch:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.profile-logout{padding:0}.profile-logout button{height:34px;padding:6px 12px;font-size:14px;font-weight:500;border:1px solid #e4e4e7;border-radius:6px;box-shadow:0 1px 2px #00000008;background:#fff}.profile-logout button:hover{background:#f8fafc}
html[data-portal-theme="dark"]{color-scheme:dark;--ink:#e5e7eb;--muted:#9ca3af;--line:#303440;--canvas:#14171e}
html[data-portal-theme="dark"] body{background:var(--canvas);color:var(--ink)}html[data-portal-theme="dark"] :is(.sidebar,.topbar,.kt-card,.profile-menu,.customer-chat-drawer){background:#1c2029;color:var(--ink);border-color:var(--line)}html[data-portal-theme="dark"] :is(.profile-menu-link,.profile-logout button,.profile-menu-identity small,.breadcrumb strong,.nav-item,.workspace strong,.stat-card strong,.service-name strong,.profile-fields dd,.brand){color:var(--ink)}html[data-portal-theme="dark"] :is(.profile-menu-link,.profile-menu-controls,.profile-menu-identity,.customer-chat-header,.customer-chat-room-title,.customer-chat-form,.service-table td,.service-table th){border-color:var(--line)}html[data-portal-theme="dark"] :is(.profile-menu-link:hover,.profile-logout button,.profile-menu-identity .account-avatar,.profile-trigger.account-avatar,.service-table th,.count-pill,.customer-chat-message>div){background:#282d38}html[data-portal-theme="dark"] .profile-logout button{border-color:var(--line)}html[data-portal-theme="dark"] .profile-theme-switch:not(:checked){background:#555b67}html[data-portal-theme="dark"] :is(.nav-item.selected,.nav-item:hover,.customer-chat-message.mine>div){background:#3c2a21;color:#ffb18b}html[data-portal-theme="dark"] :is(input,textarea,select){color:var(--ink)}html[data-portal-theme="dark"] :is(.search,.customer-chat-composer){background:#202530;border-color:var(--line)}html[data-portal-theme="dark"] .customer-chat-header button{color:var(--ink)}html[data-portal-theme="dark"] .profile-menu{box-shadow:0 8px 24px #0006}

.profile-dropdown{flex:none;width:36px;height:36px}.profile-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:1000;max-height:calc(100dvh - 100px);overflow-y:auto}.profile-menu-identity{display:flex;align-items:center}.profile-menu-identity>div{min-width:0}.profile-menu-identity strong,.profile-menu-identity small{display:block}

.account-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-trigger.account-avatar,.profile-menu-identity .account-avatar{overflow:hidden}
