/* The OS shell. Colors and sizes from the approved design. */
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2")}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Hanken Grotesk",system-ui,sans-serif;color:#0E1726;background:#F6F7F9;-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
a{color:#2448C8}a:hover{color:#1A3596}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid #2448C8;outline-offset:2px}
[tabindex="-1"]:focus{outline:none}
.muted{color:#5B6474}
.pad{padding:20px}
.small{font-size:12.5px;color:#5B6474}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.boot-error{padding:40px;color:#5B6474}

/* Loading: the Oxbow mark drawing itself, calmly, on a loop. Nothing for the first 300 ms. */
.loader{display:grid;place-items:center;padding:32px 0;color:#2448C8;animation:appear .5s ease .3s both}
.loader.now{animation:none}
.loader.boot{min-height:100vh;min-height:100dvh;padding:0}
.loader svg{display:block;overflow:visible}
.loader .track{stroke:#E3E6EB}
.loader .ink{stroke:currentColor;stroke-dasharray:1 1;animation:draw 2.8s cubic-bezier(.45,0,.25,1) infinite}
@keyframes appear{from{opacity:0}to{opacity:1}}
@keyframes draw{0%{stroke-dashoffset:1;opacity:0}8%{opacity:1}50%,62%{stroke-dashoffset:0}92%{opacity:1}100%{stroke-dashoffset:-1;opacity:0}}

/* The firm's wordmark (its name: the first word large, the rest small beneath), and Oxbow's credit */
.wordmark{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1;text-transform:uppercase;white-space:nowrap}
.wm-name{font-size:17px;font-weight:650;letter-spacing:.2em}
.wm-rest{margin-top:6px;font-size:9.5px;font-weight:600;letter-spacing:.46em;color:#8A96AB}
.wordmark.big{align-items:center;color:#0E1726}
.wordmark.big .wm-name{font-size:30px;letter-spacing:.24em;padding-left:.24em}
.wordmark.big .wm-rest{margin-top:10px;font-size:12px;letter-spacing:.54em;padding-left:.54em;color:#5B6474}
/* The firm's own logo, where it has one, in place of the wordmark. It is drawn
   for a white ground, so on the dark side nav it sits on a white plate. */
.logo{display:block;height:34px;width:auto;max-width:100%;object-fit:contain}
.logo.big{height:56px}
.brand-link.plate{background:#FFFFFF;padding:8px 10px;border-radius:8px}
.built{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#8A96AB}
.mark{flex:none}

/* Sign in */
.signin{min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:#0E1726;padding:24px}
.signin-inner{width:100%;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:26px}
.signin-card{width:100%;background:#FFFFFF;border-radius:20px;padding:48px 36px 36px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.28)}
.signin-title{display:flex;flex-direction:column;align-items:center;gap:22px;font-size:inherit;font-weight:inherit}
.signin-os{padding-top:18px;border-top:1px solid #E3E6EB;min-width:150px;font-size:15px;font-weight:600;color:#3C4555}
.signin-sub{font-size:14.5px;color:#5B6474;margin-top:-8px}
.providers{width:100%;display:flex;flex-direction:column;gap:10px}
.provider{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #DCE0E6;border-radius:12px;background:#FFFFFF;font-weight:600;font-size:15px;cursor:pointer}
.provider:hover{background:#F6F7F9}
.signin-note{font-size:13px;color:#5B6474}
.signin-error{font-size:13.5px;color:#B3261E}

/* Layout: sidebar + page */
.os{min-height:100vh;display:flex;background:#F6F7F9}
.side{flex:0 0 236px;background:#0E1726;color:#E6EAF2;padding:30px 16px 22px;display:flex;flex-direction:column;gap:34px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:0 12px;position:relative}
.brand-link{color:#FFFFFF;text-decoration:none;border-radius:6px}
.brand-link:hover{color:#FFFFFF}
.me-btn,.me-menu{display:none}
.links{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:500}
.links a{position:relative;display:flex;gap:11px;align-items:center;padding:10px 12px;border-radius:9px;color:#C3CBD8;text-decoration:none;white-space:nowrap}
.links a:hover{color:#FFFFFF;background:#141F35}
.links a[aria-current=page]{background:#1D2943;color:#FFFFFF}
/* A question is out: a dot beside Ask. */
.links a.working::after{content:"";width:8px;height:8px;border-radius:50%;background:#5B8CFF;margin-left:auto;animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:16px}
.me{display:flex;align-items:center;gap:10px;padding:16px 12px 0;border-top:1px solid #22304A}
.avatar{width:30px;height:30px;border-radius:50%;background:#34446A;display:grid;place-items:center;font-size:12px;font-weight:600;flex:none;color:#FFFFFF}
.me-text{display:flex;flex-direction:column;font-size:13px;min-width:0}
.me-email{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.signout{border:0;background:none;padding:0;color:#9AA5B8;text-align:left;cursor:pointer;font-size:13px}
.signout:hover{color:#FFFFFF}
.side .built{padding:0 12px}
.side :focus-visible,.apphead :focus-visible{outline-color:#8FB0FF}

.page{flex:1 1 auto;min-width:0;max-width:1160px;padding:44px 48px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between}
.head-text{display:flex;flex-direction:column;gap:6px;min-width:0}
.head h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.head p{font-size:15px;color:#5B6474}
.head-actions{display:flex;gap:10px;flex-wrap:wrap}
.crumb{display:inline-flex;align-items:center;gap:4px;font-size:13.5px;font-weight:600;text-decoration:none;align-self:flex-start;margin-bottom:-10px}
.primary{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:10px;border:0;background:#2448C8;color:#FFFFFF;font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap}
.primary:hover{color:#FFFFFF;background:#1F3DB0}
.primary:disabled{background:#8C9FDF;cursor:default}
.primary.slim{height:38px;padding:0 15px;font-size:13.5px}
.plain{height:36px;display:inline-flex;align-items:center;padding:0 14px;border-radius:10px;border:1px solid #DCE0E6;background:#FFFFFF;color:#0E1726;font-weight:600;font-size:13.5px;cursor:pointer;text-decoration:none}
.plain:hover{color:#0E1726;border-color:#C3C9D3}
.link-btn{border:0;background:none;padding:0;color:#2448C8;font-weight:600;font-size:13px;cursor:pointer}
.link-btn:hover{color:#1A3596}

/* Panels, errors */
.panel{background:#FFFFFF;border:1px solid #E3E6EB;border-radius:16px;overflow:hidden}
.box-pad{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.load-error{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#8A1C1C;font-size:14px;padding:16px 20px}
.confirm-q{font-weight:600}
.confirm-actions{display:flex;gap:8px;flex-wrap:wrap}
.confirm-error{width:100%;color:#B3261E;font-size:13px}

/* Apps */
.field.app-search{width:220px;height:44px;padding:0 14px;font-size:14px}
#app-none{overflow-wrap:anywhere}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px}
.card{position:relative;display:flex;flex-direction:column;gap:14px;background:#FFFFFF;border:1px solid #E3E6EB;border-radius:14px;padding:18px;color:#0E1726;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
a.card:hover{color:#0E1726;border-color:#CBD1DB;box-shadow:0 10px 28px rgba(14,23,38,.07);transform:translateY(-1px)}
.card-go{position:absolute;top:18px;right:16px;color:#B4BBC7;transition:color .15s,transform .15s}
a.card:hover .card-go{color:#2448C8;transform:translateX(2px)}
.card-text{display:flex;flex-direction:column;gap:4px}
.card-title{font-weight:700;font-size:17px;overflow-wrap:anywhere}
.card-desc{font-size:14px;line-height:1.45;color:#5B6474;overflow-wrap:anywhere}
.tile{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;flex:none}

/* Settings and its pages */
.boxes{display:flex;flex-wrap:wrap;gap:16px}
.box{flex:1 1 240px;background:#FFFFFF;border:1px solid #E3E6EB;border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:4px}
.box b{font-size:15px}
.box span{font-size:13.5px;color:#5B6474}
.link-box{color:#0E1726;text-decoration:none;gap:8px;transition:border-color .15s,box-shadow .15s}
.link-box:hover{color:#0E1726;border-color:#CBD1DB;box-shadow:0 10px 28px rgba(14,23,38,.06)}
.data-box{display:flex;flex-direction:column;gap:28px;min-width:0}
.counts .box{flex:1 1 150px}
.box .count{font-size:28px;font-weight:700;color:#0E1726;font-variant-numeric:tabular-nums}
.tier{display:flex;flex-direction:column;gap:12px}
.tier h2{font-size:19px;font-weight:700}
.empty{background:#FFFFFF;border:1px dashed #C3C9D3;border-radius:16px;padding:36px 24px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:#5B6474}
.empty-icon{width:44px;height:44px;border-radius:12px;background:#EEF0F4;color:#3C4555;display:grid;place-items:center}
.empty b{color:#0E1726;font-size:16px}

/* People */
.invite h2{font-size:15px;font-weight:700}
.invite-row{display:flex;flex-wrap:wrap;gap:10px}
.field{height:40px;min-width:0;border:1px solid #DCE0E6;border-radius:10px;padding:0 12px;background:#FFFFFF;font-size:14.5px}
.field:focus{outline:0;border-color:#2448C8;box-shadow:0 0 0 3px rgba(36,72,200,.12)}
#invite-email{flex:1 1 240px}
.role-field{flex:0 0 auto;font-weight:600;padding-right:8px}
.invite-note.bad{color:#B3261E}
.people{list-style:none;margin:0;padding:0}
.person-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:8px 16px;padding:14px 20px;border-top:1px solid #EEF0F4;font-size:14px}
.person-row:first-child{border-top:0}
.person-row .avatar{width:34px;height:34px;font-size:12.5px;font-weight:700;background:#2448C8}
.person-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.person-text span{overflow-wrap:anywhere}
.you{margin-left:8px;font-size:11px;font-weight:700;color:#5B6474;background:#EEF0F4;border-radius:999px;padding:2px 8px;vertical-align:1px}
.person-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.tag{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:#EEF0F4;color:#3C4555;white-space:nowrap}
.tag.active{background:#E3F4EA;color:#126B42}
.tag.invited{background:#FDF0DC;color:#8A4B00}
.person-row .confirm{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* Tones for app icons */
.tone-blue{background:#E8EDFC;color:#2448C8}
.tone-green{background:#E3F4EA;color:#126B42}
.tone-slate{background:#E9ECF2;color:#3C4A66}
.tone-violet{background:#F0EAFB;color:#6B3FC4}
.tone-teal{background:#DFF2F5;color:#16697A}
.tone-orange{background:#FCEBDD;color:#B4561B}
.tone-amber{background:#FDF0DC;color:#8A4B00}

/* Using an app */
.appview{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#F6F7F9}
.apphead{background:#0E1726;color:#E6EAF2;padding:10px 16px 10px 14px;display:flex;gap:14px;align-items:center;min-height:58px}
.back{display:flex;align-items:center;gap:6px;color:#C3CBD8;text-decoration:none;font-weight:600;font-size:14px;padding:6px 8px 6px 4px;border-radius:8px}
.back:hover{color:#FFFFFF}
.rule{width:1px;height:20px;background:#2C3A55;flex:none}
.app-name{font-weight:700;font-size:16px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.updated{display:flex;align-items:center;gap:12px;padding:6px 20px;background:#EEF2FD;color:#1E3A8A;font-size:14px;border-bottom:1px solid #D5DEF8}
.appbody{flex:1;display:flex;min-height:0}
.stage{flex:1;display:flex;min-width:0;min-height:0;position:relative}
.stage.waiting iframe{visibility:hidden}
.stage > .loader{position:absolute;inset:0;padding:0}
.stage:not(.waiting) > .loader{display:none}
.stage iframe{flex:1;border:0;width:100%;background:#F6F7F9}
.closed{margin:24px;padding:16px 20px;border-radius:12px;background:#FCE8E6;color:#B3261E;font-weight:600;align-self:flex-start;max-width:640px;overflow-wrap:anywhere}
.stage > .load-error{align-self:flex-start;margin:24px;padding:0}

/* Comments on an app: a button in its header, a panel beside it */
.comments-btn{margin-left:auto;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border:1px solid #2C3A55;border-radius:10px;background:transparent;color:#E6EAF2;font-weight:600;font-size:13.5px;cursor:pointer;flex:none}
.comments-btn:hover,.comments-btn[aria-expanded=true]{background:#1A2638}
.count-badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#2448C8;color:#FFFFFF;font-size:12px;line-height:20px;text-align:center}
.comments{width:360px;flex:none;display:flex;flex-direction:column;min-height:0;background:#FFFFFF;border-left:1px solid #DCE0E6}
.comments[hidden]{display:none}
.comments-head{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 10px 18px;border-bottom:1px solid #EEF0F3}
.comments-head h2{font-size:15px;margin:0}
.comment-list{list-style:none;margin:0;padding:6px 0;flex:1;overflow:auto;min-height:0}
.comment{padding:12px 18px;border-bottom:1px solid #EEF0F3}
.comment.done{color:#5B6474}
.comment-meta{display:flex;gap:8px;align-items:baseline;font-size:13px}
.comment-meta span{color:#5B6474}
.comment-body{margin:4px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-done{margin:6px 0 0;font-size:12.5px;color:#1E6B3A;overflow-wrap:anywhere}
.comment-actions{display:flex;flex-wrap:wrap;gap:2px;margin:4px 0 0 -8px}
/* A comment on one part of the app: the chip shows that part's words; clicking it shows the part (the kit). */
.comment-part{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:30px;margin-left:-8px;font-size:13px;color:#5B6474}
.comment-part .part-chip{margin-left:8px}
.part-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 10px;border:1px solid #DCE0E6;border-radius:999px;background:#F6F7F9;color:#0E1726;font:inherit;font-size:12.5px}
.part-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.part-chip svg{flex:none;color:#D98A1F}
button.part-chip{margin-top:6px;cursor:pointer}
button.part-chip:hover{border-color:#2448C8}
.part-wait{padding-left:8px;color:#2448C8;font-weight:600}
.part-hint{margin:4px 0 0;font-size:12.5px;color:#8A4B00}
.comment-edit,.comment-confirm{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.comment-none{padding:16px 18px}
.comment-resolve{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.comment-resolve-row{display:flex;gap:8px}
.comment-form{display:flex;flex-direction:column;gap:8px;padding:12px 18px 16px;border-top:1px solid #EEF0F3}
.comment-box{height:auto;min-height:76px;padding:10px 12px;resize:vertical;line-height:1.4}
.comment-send{display:flex;align-items:center;justify-content:space-between;gap:10px}
.comment-send .small{margin:0}
.small.bad,#comment-note.bad{color:#B3261E}
body.comments-open[data-view=app] .dock{display:none}
body.has-dock.comments-open[data-view=app] .appbody{padding-bottom:0}


/* Edit with a coding agent: a button on an app, Data and Apps, and one panel (a dialog, drawn as the answer sheet is) */
.edit-btn{gap:7px}
.page-apps .edit-btn{margin-top:16px}
.comments-btn.edit-btn+.comments-btn{margin-left:0}
/* dialog.edit-sheet, not .edit-sheet: it must beat .sheet below (the answer sheet's position and height), or the panel sits at the top of the page, not the screen */
dialog.edit-sheet{position:fixed;width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;color:#0E1726}
.edit-sheet::backdrop{background:rgba(14,23,38,.45)}
/* While it is open the page behind does not scroll, so closing it leaves the person where they were */
html:has(dialog.edit-sheet[open]){overflow:hidden}
.edit-sheet .sheet-head{padding:12px 10px 10px 18px}
.edit-sheet h2{flex:1;font-size:15px}
.edit-body{display:flex;flex-direction:column;gap:12px;padding:18px 20px 20px;overflow:auto}
.edit-body label{font-size:13.5px;font-weight:600}
.edit-prompt{margin-bottom:6px;background:#F6F7F9;font-size:13px}
.edit-sheet .comment-send{flex-wrap:wrap}
.edit-with{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13.5px;font-weight:600;color:#5B6676}
.agent-pick{position:relative}
.agent-pick summary{height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #DCE0E6;border-radius:10px;background:#FFFFFF;cursor:pointer;list-style:none;font-weight:600}
.agent-pick summary::-webkit-details-marker{display:none}
.agent-pick summary::after{content:"";width:6px;height:6px;margin:-3px 2px 0 4px;border-right:2px solid #5B6676;border-bottom:2px solid #5B6676;transform:rotate(45deg)}
.agent-pick[open] summary{border-color:#1F3AA8}
.agent-menu{position:absolute;z-index:2;top:40px;left:0;min-width:190px;padding:4px;display:flex;flex-direction:column;border:1px solid #DCE0E6;border-radius:10px;background:#FFFFFF;box-shadow:0 8px 24px rgba(14,23,38,.14)}
.agent-menu button{height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border:0;border-radius:7px;background:none;color:#0E1726;font:inherit;font-weight:500;text-align:left;cursor:pointer}
.agent-menu button:hover,.agent-menu button[aria-pressed="true"]{background:#F1F3F6}
.edit-how{margin:6px 0 2px;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:500}
.edit-how li::marker{color:#8A93A0;font-weight:500}
.edit-copied{margin:0 0 0 auto;font-size:13.5px;font-weight:600;color:#17663A}
.edit-fold summary{cursor:pointer;font-size:13px;color:#5B6676}
.edit-fold .edit-prompt{width:100%;margin-top:8px}
.edit-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}


/* The ask bar: floating at the bottom middle of the page, the answer opening above it (PackPulse's Ask Sally bar) */
.dock{position:fixed;z-index:30;bottom:20px;left:calc(50% + 118px);transform:translateX(-50%);width:min(720px,calc(100% - 300px));display:flex;flex-direction:column;gap:10px;pointer-events:none}
.dock > *{pointer-events:auto}
[data-view=app] .dock{left:50%;bottom:14px;width:min(720px,calc(100% - 48px))}
[data-view=ask] .dock,[data-view=signin] .dock{display:none}
body.has-dock:not([data-view=ask]) .page{padding-bottom:132px}
body.has-dock[data-view=app] .appbody{padding-bottom:78px}
.bar{display:flex;align-items:flex-end;gap:8px;padding:6px;border:1px solid rgba(36,72,200,.35);border-radius:25px;background:#FFFFFF;color:#0E1726;box-shadow:0 10px 30px rgba(16,24,40,.16);transition:border-color .15s,box-shadow .15s}
.bar:focus-within{border-color:#2448C8;box-shadow:0 0 0 3px rgba(36,72,200,.18),0 10px 30px rgba(16,24,40,.16)}
.bar-icon{flex:none;display:grid;place-items:center;width:26px;height:36px;margin-left:4px;color:#2448C8}
.bar-input{flex:1;min-width:0;height:36px;max-height:132px;padding:8px 4px;border:0;outline:0;background:transparent;font-size:15px;line-height:20px;resize:none}
.bar-input::placeholder{color:#8C95A5}
.bar-ask{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border:0;border-radius:999px;background:#2448C8;color:#FFFFFF;font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}
.bar-ask:hover{background:#1F3DB0}
.bar-ask:disabled{opacity:.45;cursor:not-allowed}
.icon-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:999px;background:transparent;color:#5B6474;cursor:pointer}
.icon-btn:hover,.icon-btn[aria-expanded=true]{background:rgba(36,72,200,.1);color:#2448C8}
.icon-btn:disabled{opacity:.4;cursor:default}
.bar-toggle{width:36px;height:36px}

/* The answer: as tall as it needs, resizable from its top edge, scrolling at its tallest */
.sheet{position:relative;display:flex;flex-direction:column;min-height:120px;max-height:min(70vh,720px);border:1px solid #E3E6EB;border-radius:18px;background:#FFFFFF;box-shadow:0 14px 36px rgba(16,24,40,.18);overflow:hidden}
.grip{position:absolute;z-index:1;top:0;left:50%;transform:translateX(-50%);width:120px;height:18px;padding:0;border:0;background:transparent;cursor:ns-resize;touch-action:none}
.grip::after{content:"";display:block;width:44px;height:4px;margin:7px auto 0;border-radius:999px;background:#DCE0E6}
.grip:hover::after,.grip:focus-visible::after{background:rgba(36,72,200,.5)}
.sheet-head{display:flex;align-items:center;gap:4px;padding:18px 10px 8px 16px;border-bottom:1px solid #EEF0F4}
.sheet-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#5B6474;font-size:13px}
.sheet-open{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;border-radius:6px;color:#2448C8;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.sheet .agent-thread{flex:1}

/* A conversation: questions on the right, answers in full, then progress */
.agent-thread{display:flex;flex-direction:column;gap:12px;min-height:0;padding:12px 16px 16px;overflow-y:auto;overscroll-behavior:contain}
.agent-q{align-self:flex-end;max-width:85%;padding:8px 12px;border-radius:14px;background:rgba(36,72,200,.1);font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;scroll-margin-top:8px}
.agent-progress{display:flex;align-items:center;gap:8px;color:#5B6474;font-size:13px}
.spin{flex:none;width:12px;height:12px;border:2px solid #2448C8;border-right-color:transparent;border-radius:999px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.agent-problem{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;color:#B91C1C;font-size:13px}
.agent-error{color:#B91C1C;font-size:14px}
.agent-answer{display:flex;flex-direction:column;gap:8px;font-size:14.5px;line-height:1.55}
.agent-who{color:#5B6474;font-size:12px;font-weight:600}
.agent-answer-text{white-space:pre-wrap;overflow-wrap:anywhere}
.agent-answer-text a{color:#2448C8;text-decoration:underline;text-decoration-color:rgba(36,72,200,.35);text-underline-offset:3px}
.agent-answer-text a:hover{text-decoration-color:currentColor}
.agent-answer-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;color:#5B6474;font-size:13px}
.agent-answer-actions{display:flex;align-items:center;gap:2px;opacity:0;transition:opacity .15s}
.agent-answer:hover .agent-answer-actions,.agent-answer:focus-within .agent-answer-actions{opacity:1}
@media (hover:none){.agent-answer-actions{opacity:1}}
.agent-checked summary{padding:5px 0;cursor:pointer}
.agent-checked ul{margin:6px 0 0;padding:0;list-style:none}
.agent-checked li{padding:3px 0;color:#0E1726}
.agent-checked p{margin:6px 0 0}
.text-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:0;border-radius:8px;background:none;color:#5B6474;font-size:13px;cursor:pointer}
.text-btn:hover{color:#0E1726}
.text-btn:disabled{opacity:.45;cursor:default}

/* Ask: the whole conversation in one card, the question box docked at its foot */
.ask-card{display:flex;flex-direction:column;max-width:860px;border:1px solid #E3E6EB;border-radius:16px;background:#FFFFFF;overflow:hidden}
.ask-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 18px;border-bottom:1px solid #EEF0F4;color:#5B6474;font-size:13px}
.page-thread{min-height:360px;max-height:calc(100dvh - 340px);padding:18px 20px;gap:14px}
.ask-card .bar{margin:0 14px 14px;box-shadow:none}
.ask-card .bar:focus-within{box-shadow:0 0 0 3px rgba(36,72,200,.18)}
.agent-empty{display:flex;flex-direction:column;gap:12px;max-width:580px;margin:auto;text-align:center}
.agent-empty h2{font-size:20px;font-weight:600}
.agent-empty p{color:#5B6474;font-size:14px}
.starters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:left}
.starters button{padding:10px 12px;border:1px solid #E3E6EB;border-radius:10px;background:#FAFBFC;font-size:13.5px;text-align:left;cursor:pointer}
.starters button:hover{border-color:rgba(36,72,200,.5)}
.ask-foot{max-width:860px;color:#5B6474;font-size:12.5px}

/* Phones and narrow windows: one column, tabs at the bottom */
@media (max-width:760px){
  .os{flex-direction:column}
  .side{flex:none;position:static;height:auto;padding:10px 8px 10px 16px;gap:0}
  .brand{padding:0}
  .wm-name{font-size:15px}
  .wm-rest{margin-top:5px;font-size:8.5px}
  .logo{height:26px}
  .logo.big{height:56px}
  .brand-link.plate{padding:5px 8px}
  .links{position:fixed;left:0;right:0;bottom:0;z-index:20;flex-direction:row;gap:0;background:#0E1726;border-top:1px solid #22304A;padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .links a{flex:1;flex-direction:column;gap:3px;padding:6px 2px;min-height:50px;font-size:11px;justify-content:center;min-width:0}
  .links a span{overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .links a.working::after{position:absolute;top:6px;right:calc(50% - 18px);margin:0}
  .side-foot{display:none}
  .me-btn{display:grid;place-items:center;margin-left:auto;border:0;background:none;padding:0;cursor:pointer;min-width:44px;min-height:44px}
  .me-menu:not([hidden]){display:flex;flex-direction:column;gap:6px;position:absolute;right:0;top:50px;z-index:25;background:#16213A;border:1px solid #22304A;border-radius:12px;padding:12px 16px 6px;font-size:13px;max-width:80vw;box-shadow:0 12px 30px rgba(0,0,0,.3)}
  .me-menu .me-email{white-space:normal;overflow-wrap:anywhere}
  .me-menu .signout{min-height:44px}
  .page{padding:22px 16px 104px;gap:18px}
  .head h1{font-size:26px}
  .head-actions{width:100%}
  .field.app-search{width:100%;font-size:16px}
  .person-row{grid-template-columns:34px minmax(0,1fr);padding:14px 16px}
  .person-tags{grid-column:2;justify-content:flex-start}
  .person-row .remove{grid-column:2;justify-self:start}
  /* The app header: one row */
  .apphead{padding:7px 10px 7px 6px;gap:6px;min-height:56px}
  .back-label,.rule{display:none}
  .back{min-width:44px;min-height:44px;justify-content:center;padding:0}
  .appbody{flex-direction:column}
  /* Comments: the button is an icon and its count; the panel covers the app */
  .comments-btn{width:44px;height:44px;padding:0;justify-content:center;position:relative}
  .comments-label,.comments-btn .edit-label{display:none}
  .count-badge{position:absolute;top:2px;right:0}
  .comments{position:fixed;z-index:20;left:0;right:0;top:56px;bottom:0;width:auto;border-left:0}
  /* Pointing at a part: the panel drops to the bottom, so the app shows above it */
  body.picking .comments{top:auto;max-height:42vh;box-shadow:0 -8px 24px rgba(14,23,38,.18)}
  /* The ask bar: above the tabs (in an app, at the foot); its answer above it */
  .dock{left:50%;width:calc(100% - 24px);bottom:calc(72px + env(safe-area-inset-bottom))}
  [data-view=app] .dock{bottom:calc(10px + env(safe-area-inset-bottom));width:calc(100% - 20px)}
  body.has-dock:not([data-view=ask]) .page{padding-bottom:196px}
  body.has-dock[data-view=app] .appbody{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  .sheet{max-height:min(70vh,calc(100dvh - 220px))}
  .bar-input{font-size:16px}
  .bar-ask,.bar-toggle{height:44px;min-width:44px}
  .bar-icon{height:44px}
  .bar-input{height:44px;padding:12px 4px}
  .icon-btn,.text-btn{min-width:44px;min-height:44px}
  .agent-checked summary{padding:12px 0} /* as tall as Copy beside it */
  .sheet-open{min-height:44px}
  .page-thread{max-height:none;min-height:300px}
  .starters{grid-template-columns:minmax(0,1fr)}
  /* Tap targets: at least 44px */
  .plain,.primary,.primary.slim,.link-btn,.crumb,.field{min-height:44px}
  .link-btn,.crumb{display:inline-flex;align-items:center}
}

/* Less motion, when asked for: the mark stands still (it still waits 300 ms) */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .loader{animation:appear 0s .3s both!important}
  .loader.now{animation:none!important}
}
