body:has(.chat--client) .header{display:none}:is(.pro-shell:has(.chat--pro) .pro-bar,.pro-shell:has(.chat--pro) .pro-tabs){display:none}@media (min-width:768px){body:has(.chat--client) .header{display:block}}.chat-inbox{gap:var(--space-2);padding-block:var(--space-3) var(--space-16);display:grid}.chat-title{font-family:var(--font-ui);letter-spacing:-.01em;color:var(--color-text-strong);margin:0;font-size:22px;font-weight:600;line-height:28px}.chat-rows{margin:0 calc(-1 * var(--page-gutter));background:var(--color-surface);border-block:1px solid var(--color-border);padding:0;list-style:none}@media (min-width:768px){.chat-rows{border:1px solid var(--color-border);border-radius:var(--radius-md);margin-inline:0;overflow:hidden}}.chat-row{align-items:center;gap:var(--space-3);min-height:72px;padding:var(--space-3) var(--page-gutter);background:var(--color-surface);border-bottom:1px solid var(--color-border);color:var(--color-text);text-decoration:none;display:flex;position:relative}.chat-rows>li:last-child .chat-row{border-bottom:0}.chat-row:hover,.chat-row--closed{background:var(--color-surface-quiet)}.chat-row-main{flex:1;grid-template-columns:minmax(0,1fr);gap:2px;min-width:0;display:grid}.chat-row-top{align-items:baseline;gap:var(--space-2);display:flex}.chat-row-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--color-text-strong);font-size:15px;font-weight:600;overflow:hidden}.chat-row-time{font-size:var(--text-caption);color:var(--color-text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin-inline-start:auto}.chat-row-bottom{align-items:center;gap:var(--space-2);display:flex}.chat-row-last{min-width:0;font-size:var(--text-body-sm);color:var(--color-text-muted);flex:1;align-items:center;gap:4px;display:flex}.chat-row-last>span:last-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.chat-row-last .icon{width:16px;height:16px}.chat-row-last .chat-tick--read{color:var(--gu-info-text)}.chat-row-context{font-size:var(--text-caption);color:var(--color-text-muted);flex-wrap:wrap;align-items:center;gap:4px;display:flex}.chat-row-context .icon{width:14px;height:14px}.chat-row-context-text{min-width:0}.chat-row-context-text .icon{vertical-align:-2px;margin-inline-end:4px;display:inline-block}.chat-row--unread .chat-row-name,.chat-row--unread .chat-row-last{color:var(--color-text-strong);font-weight:600}.chat-row--unread .chat-row-time{color:var(--color-primary-deep);font-weight:700}.chat-count{border-radius:var(--radius-pill);background:var(--color-primary);min-width:20px;height:20px;color:var(--color-surface);font-variant-numeric:tabular-nums;flex:none;place-items:center;padding-inline:6px;font-size:11px;font-weight:700;line-height:1;display:grid}.chat-hint{margin:var(--space-2) 0 0;font-size:var(--text-caption);color:var(--color-text-muted)}.chat-more{justify-self:center}.chat-skeleton{background:linear-gradient(90deg, var(--gu-sand-nude) 0, var(--color-surface-sunken) 50%, var(--gu-sand-nude) 100%);background-size:200% 100%;border-radius:6px;animation:1.4s linear infinite chat-shimmer}@keyframes chat-shimmer{to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.chat-skeleton{animation:none}}.chat-skeleton-row{cursor:default}.chat-skeleton-row:hover{background:var(--color-surface)}.chat-state{justify-items:center;gap:var(--space-2);padding:var(--space-12) var(--space-8);text-align:center;display:grid}.chat-state-ring{border-radius:var(--radius-pill);background:var(--color-primary-quiet);width:64px;height:64px;color:var(--color-primary-deep);place-items:center;display:grid}.chat-state--error .chat-state-ring{background:var(--gu-error-bg);color:var(--gu-error-text)}.chat-state-title{margin:var(--space-1) 0 0;font-family:var(--font-ui);color:var(--color-text-strong);font-size:18px;font-weight:600;line-height:24px}.chat-state-body{max-width:280px;color:var(--color-text-muted);margin:0}.chat-btn{justify-content:center;align-items:center;gap:var(--space-2);border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);min-width:48px;min-height:48px;color:var(--color-text-strong);font-family:var(--font-ui);cursor:pointer;padding:0 20px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}@media (min-width:1024px){.chat-btn{min-width:44px;min-height:44px}}.chat-btn:hover{border-color:var(--color-primary);color:var(--color-primary)}.chat-btn--primary{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-surface)}.chat-btn--primary:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-surface)}.chat-btn--danger{color:var(--gu-error-text)}.chat-btn--danger:hover{border-color:var(--gu-error-text);color:var(--gu-error-text)}.chat-btn:disabled,.chat-btn[aria-disabled=true]{background:var(--color-surface-sunken);border-color:var(--color-border);color:var(--color-text-muted);cursor:not-allowed}.chat-start{gap:var(--space-1);justify-items:start;display:inline-grid}.chat-start-link{align-items:center;gap:var(--space-2);min-height:44px;color:var(--color-primary-deep);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline;display:inline-flex}.chat-start-link:hover{color:var(--color-primary)}.chat-start-link:disabled{opacity:.6;cursor:progress}.chat-start-problem{align-items:center;gap:var(--space-1);font-size:var(--text-caption);color:var(--gu-error-text);margin:0;display:flex}.chat-link{border-radius:var(--radius-sm);width:48px;height:48px;color:var(--color-text);border:1px solid #0000;flex:none;place-items:center;text-decoration:none;display:grid;position:relative}@media (min-width:1024px){.chat-link{width:44px;height:44px}}.chat-link:hover{color:var(--color-primary)}.chat-link[aria-current=page]{background:var(--color-primary-quiet);border-color:var(--color-primary);color:var(--color-primary-deep)}.chat-link .chat-count{box-sizing:content-box;border:2px solid var(--color-page);min-width:16px;height:16px;padding-inline:4px;position:absolute;top:1px;right:-1px}.chat-link--pro{border-radius:var(--radius-pill);width:40px;height:40px}.chat-link--pro:after{content:"";inset:calc(-1 * var(--space-1) - 1px);position:absolute}.chat-link--pro .chat-count{border-color:var(--color-surface)}@media (max-width:479px){.pro-bar--crowded .chat-link--pro{width:36px;height:36px}.pro-bar .chat-link--pro:after{inset:calc(-1 * var(--space-1))}.pro-bar.pro-bar--dense{gap:var(--space-1)}.pro-bar--dense .pro-bar-btn:after,.pro-bar--dense .chat-link--pro:after{inset:-2px}}.chat{height:var(--chat-height,100dvh);background:var(--color-page);flex-direction:column;min-height:0;display:flex;overflow:hidden}@media (max-width:767px){.chat{top:var(--chat-top,0px);z-index:60;position:fixed;left:0;right:0}html:has(.chat){overscroll-behavior:none;overflow:hidden}}@media (min-width:768px){.chat{border-inline:1px solid var(--color-border);width:100%;max-width:720px;margin-inline:auto}.chat--client{height:calc(var(--chat-height,100dvh) - var(--header-h))}}.chat-head{min-height:64px;padding:var(--space-2) var(--space-2) var(--space-2) 4px;background:var(--color-surface);border-bottom:1px solid var(--color-border);flex:none;align-items:center;gap:4px;display:flex}.chat-icon-btn{border-radius:var(--radius-sm);width:48px;height:48px;color:var(--color-text);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;text-decoration:none;display:grid;position:relative}@media (min-width:1024px){.chat-icon-btn{width:44px;height:44px}}.chat-icon-btn:hover{color:var(--color-primary)}.chat-who{border-radius:var(--radius-sm);min-width:0;color:inherit;flex:1;align-items:center;gap:10px;padding:4px;text-decoration:none;display:flex}a.chat-who:hover .chat-who-name{color:var(--color-primary)}.chat-who-text{min-width:0;display:grid}.chat-who-name{text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-strong);font-size:15px;font-weight:600;line-height:20px;overflow:hidden}.chat-who-sub{font-size:var(--text-caption);color:var(--color-text-muted);line-height:16px}.chat-strip{min-height:48px;padding:10px var(--page-gutter);background:var(--color-surface-quiet);border-bottom:1px solid var(--color-border);color:var(--color-text);flex:none;align-items:center;gap:10px;text-decoration:none;display:flex}.chat-strip:hover{background:var(--color-primary-quiet)}.chat-strip>.icon:first-child{color:var(--color-primary-deep)}.chat-strip-main{flex:1;min-width:0;display:grid}.chat-strip-main b{overflow-wrap:anywhere;color:var(--color-text-strong);font-size:13px;font-weight:600}.chat-strip-main span{font-size:var(--text-caption);color:var(--color-text-muted)}.chat-chip{border-radius:var(--radius-pill);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;flex:none;align-items:center;gap:4px;padding:3px 8px;font-size:11px;font-weight:600;display:inline-flex}.chat-chip .icon{width:14px;height:14px}.chat-chip--ok{background:var(--gu-success-bg);color:var(--gu-success-text)}.chat-chip--warn{background:var(--gu-warning-bg);color:var(--gu-warning-text)}.chat-chip--quiet{background:var(--color-surface-sunken);color:var(--color-text)}.chat-banner{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--page-gutter);background:var(--gu-warning-bg);color:var(--gu-warning-text);flex:none;font-size:13px;font-weight:600;display:flex}.chat-banner .icon{width:18px;height:18px}.chat-thread{min-height:0;padding:var(--space-3) var(--space-3) var(--space-2);overscroll-behavior:contain;background:var(--color-page);flex-direction:column;flex:1;gap:3px;display:flex;overflow-y:auto}.chat-thread--centre{justify-content:center}.chat-day{border-radius:var(--radius-pill);background:var(--gu-sand-nude);color:var(--color-text);font-size:var(--text-caption);align-self:center;margin:10px 0 6px;padding:4px 12px;font-weight:600}.chat-note{align-self:center;align-items:center;gap:var(--space-2);max-width:92%;margin:var(--space-2) 0;padding:6px var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text);font-size:var(--text-caption);text-align:left;line-height:16px;display:flex}.chat-note .icon{width:16px;height:16px;color:var(--color-primary-deep);flex:none}.chat-divider{font-size:var(--text-caption);color:var(--color-primary-deep);align-self:stretch;align-items:center;gap:10px;margin:10px 0 6px;font-weight:700;display:flex}.chat-divider:before,.chat-divider:after{content:"";background:var(--color-primary);opacity:.5;flex:1;height:1px}.chat-msg{overflow-wrap:anywhere;white-space:pre-wrap;border-radius:14px;max-width:82%;padding:8px 12px 6px;font-size:15px;line-height:21px;position:relative}@media (min-width:768px){.chat-msg{max-width:70%}}.chat-msg--in{background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text-strong);border-bottom-left-radius:4px;align-self:flex-start}.chat-msg--out{background:var(--gu-terracotta-quiet);border:1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-surface));color:var(--color-text-strong);border-bottom-right-radius:4px;align-self:flex-end}.chat-msg--first{margin-top:var(--space-2)}.chat-msg--sending{opacity:.78}.chat-msg--failed{background:var(--gu-error-bg);border-color:var(--gu-error-text)}.chat-meta{color:var(--color-text-muted);font-variant-numeric:tabular-nums;white-space:normal;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;margin-top:2px;font-size:11px;line-height:14px;display:flex}.chat-meta .icon{width:16px;height:16px}.chat-meta--read{color:var(--gu-info-text)}.chat-msg--failed .chat-meta{color:var(--gu-error-text);font-weight:600}.chat-retry{color:var(--gu-error-text);font-family:var(--font-ui);cursor:pointer;background:0 0;border:0;align-items:center;gap:3px;padding:0;font-size:11px;font-weight:700;text-decoration:underline;display:inline-flex;position:relative}.chat-retry:after{content:"";position:absolute;inset:-17px -8px}.chat-retry .icon{width:14px;height:14px}.chat-earlier{align-self:center}.chat-composer{align-items:flex-end;gap:var(--space-2);padding:var(--space-2) 10px calc(10px + env(safe-area-inset-bottom,0px));background:var(--color-surface);border-top:1px solid var(--color-border);flex:none;display:flex;position:relative}.chat-field{border:1px solid var(--color-border-strong);background:var(--color-page);min-width:0;min-height:48px;max-height:120px;color:var(--color-text-strong);font-family:var(--font-ui);resize:none;border-radius:24px;flex:1;padding:12px 14px;font-size:16px;line-height:22px}.chat-field::placeholder{color:var(--color-text-muted)}.chat-field:disabled{background:var(--color-surface-sunken);cursor:not-allowed}.chat-send{border-radius:var(--radius-pill);background:var(--color-primary);width:48px;height:48px;color:var(--color-surface);cursor:pointer;border:0;flex:none;place-items:center;display:grid}.chat-send:hover{background:var(--color-primary-hover)}.chat-send:disabled{background:var(--gu-sand-nude);color:var(--color-text-muted);cursor:not-allowed}.chat-composer--counting{padding-top:22px}.chat-counter{font-variant-numeric:tabular-nums;color:var(--color-text-muted);align-items:center;gap:4px;font-size:11px;font-weight:700;display:inline-flex;position:absolute;top:3px;right:68px}.chat-counter--over{color:var(--gu-error-text)}.chat-counter .icon{width:14px;height:14px}.chat-composer--closed{padding:14px var(--page-gutter) calc(16px + env(safe-area-inset-bottom,0px));background:var(--color-surface-quiet);text-align:center;flex-direction:column;align-items:center;gap:4px}.chat-lockline{align-items:center;gap:var(--space-2);color:var(--color-text-strong);font-weight:600;display:flex}.chat-lockline .icon{width:18px;height:18px}.chat-closed-body{color:var(--color-text-muted);margin:0;font-size:13px}.chat-closed-act{margin-top:var(--space-2)}.chat-sheet-actions{gap:var(--space-2);display:grid}.chat-sheet-actions .chat-btn{justify-content:flex-start}.chat-form{gap:var(--space-4);display:grid}.chat-fieldset{gap:var(--space-2);border:0;margin:0;padding:0;display:grid}.chat-legend{margin-bottom:var(--space-1);font-size:var(--text-body-sm);color:var(--color-text-strong);padding:0;font-weight:600}.chat-option{align-items:center;gap:var(--space-3);min-height:48px;padding:0 var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);font-size:var(--text-body-sm);color:var(--color-text-strong);cursor:pointer;display:flex}.chat-option:has(input:checked){border-color:var(--color-primary);background:var(--color-primary-quiet);font-weight:600}.chat-option input{width:20px;height:20px;accent-color:var(--color-primary);flex:none;margin:0}.chat-text{gap:var(--space-1);display:grid}.chat-text label{justify-content:space-between;gap:var(--space-2);font-size:var(--text-body-sm);color:var(--color-text-strong);font-weight:600;display:flex}.chat-text label span{color:var(--color-text-muted);font-weight:400}.chat-textarea{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface);width:100%;min-height:96px;color:var(--color-text-strong);font-family:var(--font-ui);resize:vertical;padding:12px 14px;font-size:16px;line-height:22px}.chat-problem{align-items:flex-start;gap:var(--space-2);font-size:var(--text-body-sm);color:var(--gu-error-text);margin:0;display:flex}.chat-problem .icon{flex:none;margin-top:1px}.chat-done{justify-items:center;gap:var(--space-2);padding:var(--space-4) 0;text-align:center;display:grid}.chat-done .chat-state-ring{background:var(--gu-success-bg);color:var(--gu-success-text)}.chat-done p{color:var(--color-text-muted);margin:0}.chat-foot{gap:var(--space-2);display:flex}.chat-foot>.chat-btn{min-width:0;padding-inline:var(--space-3);text-align:center;flex:1 1 0}.chat-foot>.chat-btn:first-child:not(.chat-btn--primary){flex:none}.chat-avatar{border-radius:var(--radius-pill);background:var(--gu-sand-nude);width:40px;height:40px;color:var(--color-text);font-size:var(--text-body-sm);flex:none;place-items:center;font-weight:600;line-height:1;display:grid;position:relative;overflow:hidden}.chat-avatar--sm{width:32px;height:32px;font-size:var(--text-caption)}
