/* DEV support reuses the actual AI chat cards, bubbles and composer. */
.lc-support.active {position:fixed;inset:var(--app-top-offset) 0 var(--lc-keyboard-inset,0px);z-index:25;display:block;height:auto;min-height:0;max-width:560px;margin:0 auto;padding:0;background:var(--bg);color:var(--text);overflow:hidden;animation:none;}
.lc-support [hidden] {display:none!important;}
.lc-support :is(button,input,textarea) {font-family:inherit;}
.lc-support button {cursor:pointer;}
.lc-support button:disabled {cursor:default;}
.lc-support svg {width:21px;height:21px;flex-shrink:0;}
.lc-support .lc-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
.lc-support :is(button,input,textarea):focus-visible {outline:2px solid var(--primary);outline-offset:3px;}
.lc-shell {display:flex;flex-direction:column;min-height:0;height:100%;}
.lc-content {flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.lc-content.is-conversation {display:flex;flex-direction:column;padding:0;overflow:hidden;}
.lc-notice {flex-shrink:0;margin:8px 16px 0;padding:10px 12px;background:var(--surface);border-radius:12px;color:var(--text-muted);font-size:13px;line-height:1.45;}
.lc-notice.is-error {color:var(--danger,#bd5872);}
.lc-loading {margin:0;padding:20px 8px;text-align:center;font-size:14px;color:var(--text-muted);}
.lc-empty {margin:0;}
.lc-threads {display:grid;gap:12px;}
.lc-thread {display:flex;color:var(--text);text-align:left;font:inherit;box-shadow:var(--shadow-sm);}
.lc-thread .selfsleep-dialog-card-main,.lc-thread .selfsleep-dialog-card-preview,.lc-thread .selfsleep-dialog-card-meta {display:block;}
.lc-thread .selfsleep-dialog-card-preview {overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;}
.lc-thread .selfsleep-dialog-card-meta {display:flex;flex-wrap:wrap;gap:6px 12px;}
.lc-thread .selfsleep-dialog-card-name {overflow-wrap:anywhere;}
.lc-badge {font-size:11px;color:var(--text-muted);}
.lc-badge.is-unread {color:var(--primary);font-weight:600;}
.lc-list-cta {flex-shrink:0;padding:8px 16px;background:var(--bg);}
.lc-list-cta .app-confirm-btn {width:100%;min-height:50px;}
.lc-bottom-nav.selfsleep-overlay-nav {position:relative;inset:auto;flex-shrink:0;width:100%;max-width:100%;margin:0;transform:none;box-sizing:border-box;}
.lc-bottom-nav .selfsleep-overlay-nav-btn svg {width:22px;height:22px;}
.lc-new-form {display:grid;gap:18px;min-width:0;padding-bottom:8px;}
.lc-field {display:grid;gap:8px;min-width:0;}
.lc-field > span {font-size:13px;font-weight:500;color:var(--text-muted);}
.lc-field .field-input {width:100%;margin:0;min-width:0;font-size:16px;box-sizing:border-box;}
.lc-field textarea {min-height:150px;max-height:300px;resize:vertical;line-height:1.55;}
.lc-new-form [data-lc-send]:disabled {opacity:.55;}
.lc-new-file-row {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.lc-form-attach {display:inline-flex;align-items:center;gap:7px;min-height:44px;color:var(--primary);cursor:pointer;font-size:14px;}
.lc-file-hint {font-size:11px;line-height:1.4;color:var(--text-muted);}
.lc-chat.selfsleep-chat-screen.active {display:flex;position:relative;inset:auto;flex:1;min-height:0;height:100%;padding:0;}
.lc-chat .selfsleep-chat-messages {padding:16px 14px 12px;min-height:0;}
.lc-chat .selfsleep-chat-bubble p {white-space:pre-wrap;}
.lc-chat .selfsleep-chat-bubble {min-width:0;overflow-wrap:anywhere;}
.lc-chat .lc-message-file {width:100%;font:inherit;text-align:left;}
.lc-chat .selfsleep-chat-avatar {background:var(--surface);}
.lc-chat .selfsleep-chat-avatar img {width:24px;height:24px;object-fit:contain;}
.lc-system-message {align-self:center;text-align:center;max-width:92%;font-size:12px;line-height:1.5;color:var(--text-muted);}
.lc-system-message p {margin:6px 0;white-space:pre-wrap;}
.lc-composer.selfsleep-chat-input-wrap {position:relative;inset:auto;flex-shrink:0;width:100%;max-width:100%;margin:0;padding:8px 16px 10px;box-sizing:border-box;}
.lc-composer.selfsleep-chat-input-wrap::after {display:none;}
.lc-composer .selfsleep-chat-input-row {gap:6px;padding-left:8px;}
.lc-composer .lc-chat-attach {width:36px;height:36px;}
.lc-composer .selfsleep-chat-textarea {width:0;min-width:0;font-size:16px;}
.lc-composer .lc-send {width:36px;height:36px;}
.lc-support .lc-files {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px;}
.lc-support .lc-files:empty {display:none;}
.lc-file {display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;min-height:40px;padding:7px 10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--primary);font-size:12px;}
.lc-file > span {overflow-wrap:anywhere;min-width:0;}
.lc-file svg {width:16px;height:16px;}
.lc-closed {flex-shrink:0;padding:12px 16px;background:var(--bg);}
.lc-closed p {margin:0 0 10px;font-size:13px;line-height:1.45;text-align:center;color:var(--text-muted);}
.lc-closed .app-confirm-btn {width:100%;min-height:48px;}
.lc-menu {display:grid;gap:12px;}
@media(max-width:360px) {.lc-content {padding:12px;}.lc-composer.selfsleep-chat-input-wrap {padding-right:12px;padding-left:12px;}.lc-list-cta {padding-right:12px;padding-left:12px;}}
@media(prefers-reduced-motion:reduce) {.lc-support * {scroll-behavior:auto!important;}}

.lc-support .lc-closed button[data-lc-reopen]{margin:6px 0 0}
.lc-support .lc-closed [hidden]{display:none!important}
.lc-support .lc-closed button[data-lc-reopen]:disabled{opacity:.6}
