:root{--pf-font:Arial,sans-serif}.pf-avatar{padding:0;overflow:hidden;min-width:40px;width:40px;height:40px;border-radius:50%}.pf-avatar img{width:100%;height:100%;object-fit:cover}.topbar-meta{position:relative}.pf-menu{position:absolute;right:0;top:48px;width:270px;padding:16px;display:grid;gap:8px;background:var(--pf-surface,#fff);color:var(--pf-text,#17312d);border:1px solid #8885;border-radius:12px;box-shadow:0 12px 40px #0003;z-index:20}.pf-menu small{overflow-wrap:anywhere}.pf-menu button{justify-content:flex-start}.pf-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#pf-form{display:grid;gap:14px;padding:20px;max-width:720px}#pf-form label{display:grid;gap:5px}#pf-form input[type=checkbox]{width:auto}#pf-form input[type=color]{width:100%;min-height:40px}html[data-pf-theme] body{background:var(--pf-background);color:var(--pf-text);font-family:var(--pf-font)}html[data-pf-theme] .sidebar{background:var(--pf-menu);color:var(--pf-menu-text)}html[data-pf-theme] .sidebar button{color:var(--pf-menu-text)}html[data-pf-theme] .workspace{background:var(--pf-background)}html[data-pf-theme] :is(.panel,.topbar,.stat,.empty,.table-wrap,.lane,.filters,.fields-view,.page-error,.queue-info){background:var(--pf-surface);color:var(--pf-text)}html[data-pf-theme] :is(button,.button,input,select,textarea,dialog){background:var(--pf-surface);color:var(--pf-text);font-family:var(--pf-font)}html[data-pf-theme] :is(.primary,.tabs .active,.nav button.active){background:var(--pf-button);color:var(--pf-button-text);border-color:var(--pf-button)}html[data-pf-theme] :is(td,th,h1,h2,h3,.muted,.eyebrow,.date){color:inherit}html[data-pf-theme] .mx-body{font-family:Arial,sans-serif;background:#fff;color:#17212b}html[data-pf-theme] .quote-preview{background:white;color:#17312d;font-family:Arial,sans-serif}@media print{html[data-pf-theme] body{background:white;color:black;font-family:Arial,sans-serif}}
html[data-pf-theme]{--ink:var(--pf-text);--muted:var(--pf-text);--green:var(--pf-button);--line:#8885}html[data-pf-theme] .sidebar .nav button{background:transparent;color:var(--pf-menu-text)}html[data-pf-theme] .sidebar .nav button.active{background:var(--pf-button);color:var(--pf-button-text)}html[data-pf-theme] :is(dialog header,dialog footer,.deal-card,.search-result,.lf-origin,.lf-drag-handle,.sm-from,.mx-toolbar,.mx-image-tools,.wx-unread,.setup-info,th){background:var(--pf-surface);color:var(--pf-text)}html[data-pf-theme] :is(.lf-message,.stat small,.stat-foot,.empty strong,.field-view dt,.mx-file small,.mx-file-icon){color:var(--pf-text)}html[data-pf-theme] .lf-movable #mx-compose>.actions{background:var(--pf-surface)}html[data-pf-theme] .wx-important{background:var(--pf-surface)!important;border-left:4px solid #d4a536}html[data-pf-theme] tbody tr:hover{background:var(--pf-background)}html[data-pf-theme] .quote-preview :is(th,td){background:white;color:#17312d}html[data-pf-theme] .primary:hover{filter:brightness(.92)}html[data-pf-theme] .pf-avatar{background:var(--pf-button);color:var(--pf-button-text)}.pf-menu{max-width:calc(100vw - 24px);max-height:80vh;overflow:auto}html[data-pf-theme] .sidebar-bottom button{background:transparent}

/* R5 mailbox controls follow the employee palette. */
.sm-search{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:16px 0}.sm-search label{display:grid;gap:6px;flex:1;min-width:200px}.sm-search input{width:100%}.sm-current,html[data-pf-theme] .sm-current{background:var(--pf-button,#327d25);color:var(--pf-button-text,#fff);border-color:var(--pf-button,#327d25)}.mx-conversation summary{overflow-wrap:anywhere}.wx-badge{cursor:help}

#sm-content .mx-conversation>summary{position:relative;padding-right:56px;min-height:48px}#sm-content .cv-list-trash{position:absolute;right:4px;top:4px;padding:8px;color:#b52f2f;min-width:40px;min-height:40px}
