/* Shared employee history rail; inherits each company's palette. */
.conversation-sidebar{margin:10px 2px 0;min-width:0;color:var(--ink,#eef3ec);font-family:inherit}
.conversation-sidebar[open]>.history-heading{margin-bottom:10px}
.conversation-sidebar>.history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;font-size:.79rem;font-weight:600;letter-spacing:.02em;padding:10px 9px;cursor:pointer;color:#e1e9e3}
.conversation-sidebar>.history-heading::-webkit-details-marker{display:none}
.history-heading:after{content:'›';font-size:19px;line-height:1;transform:rotate(90deg);opacity:.7}
.conversation-sidebar[open]>.history-heading:after{transform:rotate(-90deg)}
.history-body{min-width:0}.history-search{display:flex;align-items:center;gap:7px;padding:0 9px;min-height:42px;border:1px solid #c7ddce35;background:#0a282449;border-radius:10px;backdrop-filter:blur(9px);transition:border-color .15s,background .15s}
.history-search:focus-within{border-color:#ead798a3;background:#12332da8;outline:2px solid #ead79824;outline-offset:2px}
.history-search svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;color:#c2d3c8}
.history-search input{width:100%;min-width:0;padding:10px 0!important;min-height:40px;margin:0!important;border:0!important;border-radius:0;background:transparent!important;color:inherit;font:inherit;font-size:.72rem;outline:none!important;box-shadow:none!important}
.history-search input::placeholder{color:#c2d3c8;opacity:.9}.history-search input::-webkit-search-cancel-button{display:none}
.history-search .history-clear{padding:0;width:26px;min-width:26px;min-height:32px;line-height:1;background:transparent;color:#d8e3da;border:0;font-size:20px}
.history-scroll{max-height:clamp(190px,34vh,360px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#a4bdac77 #122f2533;scrollbar-gutter:stable;overscroll-behavior:contain;margin-top:10px;padding-right:3px;outline-offset:2px}
.history-scroll::-webkit-scrollbar{width:6px}.history-scroll::-webkit-scrollbar-thumb{background:#a4bdac77;border-radius:9px}.history-scroll::-webkit-scrollbar-track{background:#122f2533;border-radius:9px}
.history-conversation{display:block;width:100%;text-align:left;white-space:normal;margin:0 0 5px;padding:10px 9px!important;min-height:58px;background:#17352b30;color:inherit;border:1px solid transparent;border-radius:9px;font:inherit;cursor:pointer;box-shadow:none}
.history-conversation strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.75rem;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
.history-conversation span{display:block;margin-top:5px;font-size:.62rem;color:#c0d0c5;line-height:1.4}
.history-conversation:hover{background:#c1d4b917;border-color:#c1d4b92b}.history-conversation[aria-current=true]{background:#dfd19220;border-color:#ead79855;color:#f5e8bc}
.history-conversation:focus-visible,.history-more:focus-visible,.history-clear:focus-visible,.history-heading:focus-visible{outline:2px solid #e8d898;outline-offset:2px}
.history-status{font-size:.7rem;line-height:1.5;color:#c2d3c8;margin:9px 8px 0}.history-status:empty{display:none}
.history-more{width:100%;min-height:36px;background:transparent;border:0;color:var(--gold,#ead798);font-size:.7rem;padding:8px;margin-top:6px}
.conversation-sidebar~.workspace-label,.rail .conversation-sidebar+.scope{margin-top:20px}
@media(max-width:860px){.conversation-sidebar{margin:8px 0 0;border:1px solid #c7ddce35;border-radius:12px;background:#102e2666;backdrop-filter:blur(9px)}.conversation-sidebar>.history-heading{min-height:44px;padding:10px 13px;font-size:.82rem;margin:0!important}.history-body{padding:0 12px 12px}.history-search{min-height:46px}.history-search input{font-size:16px;min-height:44px}.history-search .history-clear{min-width:36px;min-height:44px}.history-scroll{max-height:240px}.history-conversation strong{font-size:.84rem}.history-conversation span{font-size:.69rem}.history-more{min-height:44px}.history-status{font-size:.76rem}}
@media(prefers-reduced-motion:reduce){.history-search{transition:none}}
/* Conversation organization: persistent actions, keyboard and touch targets. */
.history-entry{display:flex;align-items:stretch;position:relative;border-radius:10px;margin-bottom:5px;min-width:0}
.history-entry .history-conversation{flex:1;min-width:0;margin:0;padding-right:7px!important}
.history-entry[data-pinned=true] .history-conversation strong::before{content:"";display:inline-block;width:13px;height:13px;margin-right:5px;vertical-align:-2px;background:var(--gold,#ead798);opacity:.85;transform:rotate(35deg);clip-path:polygon(29% 13%,71% 13%,71% 21%,67% 21%,67% 42%,79% 54%,79% 67%,54% 67%,54% 92%,46% 92%,46% 67%,21% 67%,21% 54%,33% 42%,33% 21%,29% 21%)}
.history-entry:has([aria-current=true]){background:#dfd19212}
.history-actions{flex:0 0 36px;width:36px;min-height:44px;padding:0!important;border:0;border-radius:8px;background:transparent;color:#d9e6dc;font-size:24px;line-height:1;cursor:pointer;opacity:.8}
.history-actions:hover,.history-actions[aria-expanded=true]{background:#d4e3d521;color:#fff;opacity:1}
.history-actions:focus-visible,.history-folder:focus-visible{outline:2px solid #ead798;outline-offset:1px}
.conversation-sidebar .history-folders{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:3px;margin:0 0 9px;padding:3px;border:1px solid #c7ddce35;border-radius:10px;background:#0a282449;backdrop-filter:blur(9px)}
.conversation-sidebar .history-folders[hidden]{display:none}
.conversation-sidebar button.history-folder{min-width:0;min-height:38px;margin:0;padding:7px 3px;border:1px solid transparent;border-radius:7px;background:transparent;color:#dce7df;font:inherit;font-size:.72rem;line-height:1.2;font-weight:500;cursor:pointer;box-shadow:none}
.conversation-sidebar button.history-folder:hover{background:#c1d4b917;color:#fff}
.conversation-sidebar button.history-folder[aria-pressed=true]{background:#c1d4b92b;border-color:#c7ddce59;color:#f2f6f3}
.conversation-sidebar button.history-folder:focus-visible{outline:2px solid #ead798;outline-offset:1px}
.history-action-menu{position:fixed;inset:auto;margin:0;width:210px;max-width:calc(100vw - 16px);padding:6px;background:#12342e;color:#edf4ef;border:1px solid #b6d0c359;border-radius:13px;box-shadow:0 14px 38px #00120ed9;font:14px/1.4 system-ui,sans-serif;z-index:2147483000}
.history-action-menu button{display:block;text-align:left;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.history-action-menu button:hover,.history-action-menu button:focus{background:#cde1d61c;outline:none}
.history-action-menu button:focus-visible{outline:2px solid #ead798;outline-offset:-2px}
.history-action-menu .history-danger{color:#ffc3bb;border-top:1px solid #c7ddce25;margin-top:4px}
.history-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));padding:26px;background:#12342e;color:#edf4ef;border:1px solid #b6d0c359;border-radius:18px;box-shadow:0 24px 70px #00120ec9;font:15px/1.55 system-ui,sans-serif}
.history-dialog::backdrop{background:#02120db0;backdrop-filter:blur(3px)}
.history-dialog h2{color:inherit;font:600 23px/1.25 system-ui,sans-serif;margin:0 0 12px}
.history-dialog p{font-size:14px;color:#cbded2;overflow-wrap:anywhere}
.history-dialog input{box-sizing:border-box;width:100%;min-height:46px;background:#09241e;color:#fff;border:1px solid #b6d0c365;border-radius:8px;padding:10px;font:inherit}
.history-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
.history-dialog button{min-height:44px;border-radius:9px;border:1px solid #b6d0c359;background:#24493e;color:#fff;padding:10px 16px;font:inherit;cursor:pointer}
.history-dialog button[type=submit]{background:#ead798;color:#15392d;border-color:#ead798}
.history-dialog button.history-danger{background:#8b3331;color:#fff;border-color:#b16360}
.history-dialog :focus-visible{outline:2px solid #ead798;outline-offset:3px}
.history-dialog [role=status]:empty{display:none}.history-dialog [role=status]{color:#ffcfbd}
.station-workspace .conversation-sidebar{color:#eef3ec;margin:8px 0 0}
.conversation-sidebar button.history-conversation{background:#17352b30;color:#eef3ec;border:1px solid transparent;border-radius:9px;box-shadow:none}
.conversation-sidebar button.history-conversation:hover{background:#c1d4b917;border-color:#c1d4b92b}
.conversation-sidebar button.history-conversation[aria-current=true]{background:#dfd19220;border-color:#ead79855;color:#f5e8bc}
.conversation-sidebar button.history-actions{background:transparent;color:#d9e6dc;border:0;box-shadow:none;padding:0!important}
.conversation-sidebar button.history-actions:hover,.conversation-sidebar button.history-actions[aria-expanded=true]{background:#d4e3d521}
.station-workspace .history-body{min-width:0}
.conversation-sidebar dialog.history-dialog{background:#12342e;color:#edf4ef;border:1px solid #b6d0c359;padding:26px;width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto}
.conversation-sidebar dialog.history-dialog h2{color:#edf4ef}.conversation-sidebar dialog.history-dialog p{color:#cbded2}
.conversation-sidebar dialog.history-dialog input{background:#09241e;color:#fff;border:1px solid #b6d0c365}
.conversation-sidebar dialog.history-dialog [role=status]{color:#ffcfbd}
@media(max-width:860px){.history-actions{flex-basis:44px;width:44px;opacity:1}.conversation-sidebar button.history-folder{min-height:44px;font-size:.84rem}.history-dialog{padding:22px}.history-dialog input{font-size:16px}}

/* Folder controls lead the history; no duplicate desktop heading. */
@media(min-width:861px){.conversation-sidebar>.history-heading{display:none}}
.uw-root .uw-rail button.uw-new-chat{display:block;width:100%;min-height:44px;margin:16px 0 8px;padding:10px 12px;border:1px solid #c7ddce35;border-radius:10px;background:#0a282449;backdrop-filter:blur(9px);color:#e1e9e3;font:500 .75rem/1.4 'Segoe UI',Arial,sans-serif;text-align:left;box-shadow:none}
.uw-root .uw-rail button.uw-new-chat:hover{background:#c1d4b917;border-color:#c7ddce59;color:#fff}
.uw-root .uw-rail button.uw-new-chat:focus-visible{outline:2px solid #c7ddce;outline-offset:2px}
@media(max-width:860px){.uw-root .uw-rail button.uw-new-chat{min-height:44px;font-size:.84rem;margin:8px 0}.conversation-sidebar .history-folders{margin-top:0}}
