@layer components{.bot-rail{background-color:var(--rail);border-right:1px solid var(--line);width:clamp(280px,28vw,336px);min-height:0;padding:max(18px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));flex-direction:column;flex-shrink:0;display:flex}.home-bar{flex-shrink:0;align-items:center;gap:10px;padding:0 2px 16px;display:flex}.home-account,.home-round{border:1px solid var(--line);background:var(--raised);width:44px;height:44px;color:var(--ink);border-radius:50%;flex-shrink:0;place-items:center;padding:0;display:grid;position:relative}.home-account{background:var(--accent-soft);color:var(--accent);letter-spacing:.3px;border:0;font-size:.9375rem;font-weight:650}.home-account:hover:enabled{background:var(--accent-soft);filter:brightness(.97)}.home-account:has(img){background:0 0}.home-account img{object-fit:cover;border-radius:50%;width:100%;height:100%}.home-status{background:var(--accent);width:13px;height:13px;box-shadow:0 0 0 3px var(--rail);border-radius:50%;position:absolute;bottom:-1px;right:-1px}.home-status-reconnecting{background:var(--attention)}.home-status-offline{background:var(--muted)}.home-sync{min-width:0;color:var(--muted);align-items:center;gap:7px;font-size:.875rem;display:flex}.home-bar-actions{gap:8px;margin-left:auto;display:flex}.home-round[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}.home-round:hover:enabled{background:var(--accent-soft)}.home-scroll{overscroll-behavior:contain;flex:1;min-height:0;margin:0 -16px;padding:0 16px 16px;position:relative;overflow:auto}.home-pinned,.home-list{margin:0;padding:0;list-style:none}.home-pinned{grid-template-columns:repeat(auto-fit,minmax(0,6rem));justify-content:center;gap:8px;padding:6px 0 18px;display:grid}.home-pinned>li{min-width:0;display:flex}.home .pinned-bot{background:0 0;border:0;border-radius:16px;flex-direction:column;align-items:center;gap:8px;width:100%;padding:8px 4px;display:flex}.home .pinned-bot:hover:enabled{background:color-mix(in srgb, var(--accent-soft) 55%, transparent)}.home .pinned-bot.selected{background:var(--accent-soft)}.pinned-avatar{display:inline-flex;position:relative}.pinned-copy{text-align:center;flex:1;grid-template-rows:1fr auto;gap:4px;width:100%;display:grid}.pinned-name{overflow-wrap:anywhere;white-space:normal;max-width:100%;color:var(--ink);font-size:.8125rem;font-weight:600;line-height:1.3;display:block;overflow:hidden}.home .pinned-bot.selected .pinned-name{color:var(--ink);font-weight:600}.home .pinned-bot small.pinned-activity{white-space:normal;overflow-wrap:anywhere;justify-content:center;min-height:1.3em;margin-top:0;line-height:1.3}.home .pinned-activity.state-disconnected{color:var(--muted)}.home-new{display:inline-flex;position:relative}.home-new-menu{z-index:20;border:1px solid var(--line);background:var(--raised);border-radius:14px;flex-direction:column;min-width:210px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.home-new-menu button{min-height:44px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:8px 12px;font-size:.9375rem;display:flex}.home-new-menu button:hover:enabled,.home-new-menu button:focus-visible{background:var(--accent-soft);color:var(--accent)}.home-new-menu button:disabled{color:var(--muted)}.home-new-menu small{color:var(--muted);padding:4px 12px 8px;font-size:.8125rem;line-height:1.4}.account-menu-who{border-bottom:1px solid var(--line);flex-direction:column;gap:2px;min-width:0;margin-bottom:4px;padding:8px 12px 10px;display:flex}.account-menu-who strong{font-size:.9375rem}.account-menu-who small,.account-menu-text small{color:var(--muted);overflow-wrap:anywhere;padding:0;font-size:.8125rem}.account-menu-text{flex-direction:column;gap:1px;display:flex}.home-new-menu.account-menu-list{min-width:240px;max-width:min(320px,100vw - 32px);left:0;right:auto}.home-links{flex-wrap:wrap;gap:8px;padding:0 4px 14px;display:flex}.home-links button{color:var(--muted);border-radius:999px;align-items:center;gap:7px;padding:7px 13px;font-size:.8125rem;display:inline-flex}.home-links button[aria-current=page]{color:var(--ink);background:var(--accent-soft);border-color:#0000}.home-links button[aria-current=page] .icon{color:var(--accent)}.home .bot-row{gap:13px;min-height:64px;margin-bottom:2px;padding:10px}.home .bot-row-text{flex:1;min-width:0}.home .bot-row strong{white-space:normal;font-size:.9375rem;line-height:1.4;display:block}.home .bot-row small{font-size:.8125rem;line-height:1.5}.home .bot-row small:not(.bot-activity){-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box}.home .bot-section h2{letter-spacing:.07em;margin-block:12px 8px;font-size:.75rem;font-weight:600;line-height:1.5}.home-row-avatar{flex-shrink:0;display:flex}.room-faces{display:block;position:relative}.room-face{width:var(--face,100%);height:var(--face,100%);background:var(--surface);box-shadow:0 0 0 2px var(--rail,var(--surface));border-radius:50%;place-items:center;display:grid;position:absolute}.room-faces.faces-2 .room-face:first-child{top:0;left:0}.room-faces.faces-2 .room-face:nth-child(2){bottom:0;right:0}.room-faces.faces-3 .room-face:first-child{top:0;left:50%;transform:translate(-50%)}.room-faces.faces-3 .room-face:nth-child(2){bottom:0;left:0}.room-faces.faces-3 .room-face:nth-child(3){bottom:0;right:0}.room-face-initial,.room-face-icon{background:var(--accent-soft);width:100%;height:100%;color:var(--accent);border-radius:50%;place-items:center;font-size:.75rem;font-weight:650;display:grid}.room-face-icon,.room-pending .room-face{width:100%;height:100%;position:static}.room-pending strong{color:var(--accent)}.home .bot-row-top{flex-wrap:wrap;align-items:baseline;gap:4px 8px;display:flex}.home .bot-row-name{flex:10ch;min-width:0;display:flex}.home .bot-row-meta{white-space:nowrap;flex-shrink:0;align-items:center;gap:6px;display:inline-flex}.home .bot-row-top strong{flex:1;min-width:0}.home .unread-mark{background:var(--accent);border-radius:50%;flex-shrink:0;align-self:center;width:9px;height:9px}.home .pinned-name .unread-mark{vertical-align:1px;margin-right:5px;display:inline-block}.home .bot-row.unread strong,.home .pinned-bot.unread .pinned-name{color:var(--ink);font-weight:700}.home .bot-row.unread small:not(.bot-activity){color:var(--ink)}.home .bot-row-top time{color:var(--muted);flex-shrink:0;font-size:.6875rem}.home .bot-row,.home .pinned-bot{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.home-empty{text-align:center;justify-items:center;gap:4px;padding:28px 10px;display:grid}.bot-menu{z-index:20;background:var(--raised);border:1px solid var(--line);border-radius:14px;min-width:200px;padding:6px}.bot-menu:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.bot-menu button{text-align:left;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;font-size:.875rem;display:flex}.bot-menu [data-highlighted],.bot-menu [data-popup-open]{background:var(--accent-soft);color:var(--accent)}.bot-menu-more{color:var(--muted);margin-left:auto}.bot-menu .menu-check{width:16px;color:var(--accent);place-items:center;font-weight:650;display:inline-grid}.bot-menu [data-slot=menu-separator]{background:var(--line);height:1px;margin:6px 8px}.settings-sheet{width:min(480px,100vw - 32px);max-height:min(860px,100dvh - 40px);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:26px;margin:auto;padding:0;overflow:hidden}.settings-sheet[open]{flex-direction:column;display:flex}.settings-sheet::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#101a1480}.sheet-header{flex-shrink:0;place-items:center;min-height:64px;padding:12px 64px;display:grid;position:relative}.sheet-header h2{outline:none;margin:0;font-size:1.0625rem}.sheet-close{background:var(--raised);border-radius:50%;place-items:center;width:44px;height:44px;padding:0;display:grid;position:absolute;top:10px;left:12px}.sheet-close:hover:enabled{background:var(--accent-soft)}.sheet-body{overscroll-behavior:contain;padding:4px 18px max(24px, env(safe-area-inset-bottom));overflow:auto}.settings-group{background:var(--raised);border-radius:18px;margin:0 0 22px;overflow:hidden}.settings-heading{color:var(--muted);margin:0 0 8px;padding:0 16px;font-size:.8125rem;font-weight:500}.settings-footnote{color:var(--muted);margin:-14px 16px 22px;font-size:.75rem;line-height:1.5}.settings-row{text-align:left;width:100%;min-height:54px;color:var(--ink);background:0 0;border:0;border-radius:0;flex-direction:row;align-items:center;gap:12px;margin:0;padding:10px 16px;font-size:.9375rem;display:flex}.settings-index .settings-row{min-height:60px}.settings-row+.settings-row,.settings-row+.settings-row-group{box-shadow:inset 0 1px var(--line)}button.settings-row:hover:enabled{background:color-mix(in srgb, var(--accent-soft) 45%, transparent)}.settings-row.danger{color:var(--danger)}.row-text{flex:1;gap:2px;min-width:0;display:grid}.row-label{overflow-wrap:anywhere;flex:1;min-width:0}.row-text small{color:var(--muted);font-size:.75rem}.row-icon{width:22px;color:var(--muted);place-items:center;display:grid;position:relative}.row-status{background:var(--accent);width:8px;height:8px;box-shadow:0 0 0 2px var(--raised);border-radius:50%;position:absolute;top:-2px;right:-3px}.row-status.attention{background:var(--attention)}.row-chevron{color:var(--muted);flex-shrink:0}.settings-row select,.settings-row input[type=time]{width:auto;max-width:55%;color:var(--muted);text-align:right;text-align-last:right;background:0 0;border:0;padding:6px 4px}.settings-account{align-items:center;gap:14px;padding:14px 16px;display:flex}.account-avatar{background:var(--accent-soft);width:48px;height:48px;color:var(--accent);border-radius:50%;flex-shrink:0;place-items:center;font-weight:650;display:grid;overflow:hidden}.account-avatar img{object-fit:cover;width:100%;height:100%}.settings-account strong{font-size:1rem}.settings-account small{color:var(--muted);overflow-wrap:anywhere;font-size:.8125rem}.settings-sheet input[role=switch]{appearance:none;background:var(--line);cursor:pointer;border:0;border-radius:999px;flex-shrink:0;width:51px;height:31px;margin:0;padding:0;transition:background-color .18s;position:relative}.settings-sheet input[role=switch]:after{content:"";background:#fff;border-radius:50%;width:27px;height:27px;transition:transform .18s;position:absolute;top:2px;left:2px;box-shadow:0 2px 5px #0003}.settings-sheet input[role=switch]:checked{background:var(--accent)}.settings-sheet input[role=switch]:checked:after{transform:translate(20px)}.settings-sheet input[role=switch]:disabled{opacity:.45;cursor:not-allowed}.settings-notifications{display:block}.settings-notifications .notification-settings{background:0 0;border:0;margin:0;padding:0}.settings-notifications .notification-settings-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.settings-notifications .notification-settings-header h3{margin:0;font-size:.9375rem;font-weight:400}.settings-notifications .notification-settings .notification-toggle{color:var(--muted);flex-direction:row;align-items:center;gap:10px;margin:0;font-size:.8125rem}.settings-notifications .notification-settings.is-blocked .notification-toggle{color:var(--attention)}.settings-notifications .notification-settings.is-blocked input:disabled{opacity:1}.settings-notifications .notification-settings p{margin:6px 0 0;font-size:.75rem}.settings-group.settings-row{background:var(--raised);margin-bottom:22px}.settings-intro{color:var(--muted);margin:0 16px 14px;font-size:.8125rem;line-height:1.5}.section-row{gap:0;padding:0 8px 0 0}.section-open{min-width:0;min-height:inherit;color:inherit;text-align:left;border:0;border-radius:0;flex:1;align-items:center;gap:12px;padding:10px 12px 10px 16px;display:flex}.section-open:hover:enabled{background:color-mix(in srgb, var(--accent-soft) 45%, transparent)}.section-order{border-left:1px solid var(--line);gap:2px;padding-left:4px;display:flex}.section-order .icon-button{width:36px;height:36px}.section-add input{border:1px solid var(--line);background:var(--surface);min-height:38px;font-size:inherit;border-radius:10px;flex:1;padding:8px 12px}.section-add input[aria-invalid=true]{border-color:var(--danger)}.section-add button{border-radius:999px;flex-shrink:0;padding:8px 16px}.settings-footnote .form-error{color:var(--danger)}.settings-sheet input.choice-check{appearance:none;border:1.5px solid var(--line);cursor:pointer;background:0 0;border-radius:50%;flex-shrink:0;width:24px;height:24px;margin:0;padding:0;position:relative}.settings-sheet input.choice-check:checked{border-color:var(--accent);background:var(--accent)}.settings-sheet input.choice-check:checked:after{content:"";border:solid var(--surface);border-width:0 2px 2px 0;width:6px;height:11px;position:absolute;top:3px;left:7px;transform:rotate(45deg)}.bot-choice{cursor:pointer}.bot-details .sheet-header{min-height:56px}.bot-details-hero{text-align:center;justify-items:center;gap:6px;padding:0 12px 22px;display:grid}.bot-details-hero .avatar-wrap{margin-bottom:10px}.bot-details-hero h2{overflow-wrap:anywhere;outline:none;margin:0;font-size:1.5rem}.bot-details-hero p{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:.875rem}.bot-details-hero .bot-details-description{color:var(--ink);margin-top:6px;font-size:.9375rem;line-height:1.55}.bot-details-actions{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:10px;margin:0 0 22px;display:grid}.bot-details-actions>button{background:var(--raised);width:auto;height:auto;min-height:72px;color:var(--ink);border:0;border-radius:16px;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;font-size:.875rem;display:flex;position:relative}.bot-details-actions>button:hover:enabled{background:var(--accent-soft)}.bot-details-actions>button.on{color:var(--accent)}.bot-details-actions .icon{width:1.25rem;height:1.625rem;color:var(--accent)}.bot-details-actions .artifacts-button-icon{align-items:center;height:1.625rem;display:inline-flex;position:relative}.bot-details-actions .artifacts-count{background:var(--accent);min-width:1.125rem;color:var(--surface);border-radius:999px;padding:.0625rem .3125rem;font-size:.75rem;font-weight:650;position:absolute;top:0;left:calc(100% + .125rem)}.bot-details .section-add{padding-top:6px}.settings-footer{color:var(--muted);justify-items:center;gap:6px;padding:10px 0 8px;display:grid}.settings-footer .brand-mark{border-radius:14px;width:44px;height:44px;font-size:36px;line-height:38px}.settings-footer strong{color:var(--ink);font-size:1.0625rem}.settings-footer small{font-size:.75rem}@media (width<=620px){.bot-rail{z-index:10;background-color:var(--surface);width:100%;padding:max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));visibility:hidden;border-right:0;transition:transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s linear .24s;position:fixed;inset:0;transform:translate(-100%)}.bot-rail.open{visibility:visible;transition:transform .24s cubic-bezier(.2,.8,.2,1);transform:none}.home-status{box-shadow:0 0 0 3px var(--surface)}.home-scroll{margin:0 -18px;padding:0 18px 24px}.home-bar{padding-bottom:20px}.home-pinned{grid-template-columns:repeat(auto-fit,minmax(0,6.5rem));gap:12px;padding:8px 0 22px}.home .pinned-bot{gap:10px;width:100%}.pinned-name{font-size:.9375rem}.home .pinned-bot small.pinned-activity{font-size:.8125rem}.home-links{padding-bottom:12px}.home-links button{min-height:40px;font-size:.875rem}.home .bot-row{gap:16px;min-height:78px;padding:12px 6px}.home .bot-row strong{font-size:1.0625rem}.home .bot-row small{margin-top:4px;font-size:.875rem}.home .bot-row-top time{font-size:.75rem}.home .bot-row.selected,.home .pinned-bot.selected{background:0 0}.home .bot-row.selected:hover:enabled{background:var(--accent-soft)}.settings-sheet{width:auto;max-width:none;max-height:none;inset:max(10px, env(safe-area-inset-top)) 8px 0;border-bottom:0;border-radius:30px 30px 0 0;height:auto;margin:0}.sheet-body{padding-inline:14px}.settings-row{min-height:56px;font-size:1rem}}@keyframes settings-up{0%{opacity:.4;transform:translateY(40%)}}@media (prefers-reduced-motion:reduce){.bot-rail,.bot-rail.open,.switch,.switch:after{transition:none}.settings-sheet[open]{animation:none}}.settings-notifications .notification-toggle input:before{display:none}.bot-details .sheet-body{container-type:inline-size}@container (width<=20rem){.bot-details-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row}}.bot-details .row-text small{font-size:.875rem;line-height:1.5}.section-rename.settings-group{border-radius:20px}@media (any-pointer:coarse),(width<=620px){.section-order .icon-button{width:44px;height:44px}}.section-pinned-count{white-space:nowrap}.section-name-help{justify-content:space-between;align-items:center;gap:12px;margin:4px 16px 12px;display:flex}.section-name-help .settings-footnote{margin:0}.section-name-help button{flex-shrink:0;min-height:44px;font-size:.8125rem}.section-rename input[aria-invalid=true]:focus-visible{outline-color:var(--danger)}.settings-footnote.form-error{color:var(--danger);background:0 0;border:0;padding:0}.home-empty h2{margin:0;font-size:1.25rem}.home-empty p{margin:8px 0 16px;font-size:.875rem;line-height:1.5}.home-main{padding:6px 0 10px}.home-main-actions{gap:6px;padding:6px 4px 0;display:flex}.home-main-chip{border-radius:999px;align-items:center;gap:5px;min-height:30px;padding:5px 10px;font-size:.75rem;display:inline-flex}.home .main-bot{border:1px solid color-mix(in srgb, var(--accent) 22%, transparent);background:color-mix(in srgb, var(--accent-soft) 45%, transparent);text-align:left;border-radius:18px;align-items:center;gap:14px;width:100%;padding:12px;display:flex}.home .main-bot:hover:enabled{background:var(--accent-soft)}.home .main-bot.selected{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 40%, transparent)}.home .main-bot strong{font-size:1rem;line-height:1.4;display:inline}.home .main-bot .bot-row-name{align-items:center;gap:8px;min-width:0;display:flex}.home .main-bot small{-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;font-size:.8125rem;line-height:1.5;display:-webkit-box}.main-chip{background:var(--accent);color:var(--surface);letter-spacing:.02em;border-radius:999px;flex-shrink:0;padding:1px 8px;font-size:.6875rem;font-weight:650;line-height:1.6}.home-main-suggestion{border:1px dashed color-mix(in srgb, var(--accent) 40%, transparent);background:color-mix(in srgb, var(--accent-soft) 35%, transparent);border-radius:16px;gap:10px;margin:6px 0 14px;padding:14px;display:grid}.home-main-suggestion p{color:var(--ink);margin:0;font-size:.875rem;line-height:1.5}.home-main-suggestion-actions{flex-wrap:wrap;gap:8px;display:flex}.main-picker-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.main-picker-row{background:var(--raised);border-radius:14px;align-items:center;gap:12px;padding:10px;display:flex}.main-picker-row .row-text{flex:1;min-width:0}.main-picker-row small{color:var(--muted);line-height:1.4;display:block}.main-picker .settings-heading{letter-spacing:.04em;color:var(--muted);margin:18px 0 8px;font-size:.8125rem;font-weight:600}.home-channels{border-left:1px solid var(--line);gap:2px;margin:6px 0 0 12px;padding-left:10px;display:grid}.home-channels .channel-row{min-height:40px;padding:6px 8px}.channel-hash{background:var(--accent-soft);width:24px;height:24px;color:var(--accent);border-radius:8px;flex-shrink:0;place-items:center;font-size:.875rem;font-weight:700;display:inline-grid}.settings-heading-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.notification-test-row{justify-items:start;gap:6px;margin-top:8px;display:grid}}
