:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #eef3ff; background: #08111f; font-synthesis: none; text-rendering: optimizeLegibility; } * { box-sizing: border-box; } body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient( circle at top left, rgb(52 98 180 / 35%), transparent 38rem ), #08111f; } button { padding: 0.8rem 1.1rem; border: 1px solid #6aa3ff; border-radius: 0.75rem; color: #f7faff; background: #173766; cursor: pointer; } button:hover { background: #204b88; } button:disabled { cursor: not-allowed; opacity: 0.58; } .app-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; } .hero { margin-bottom: 2rem; } .eyebrow { margin: 0; color: #8db9ff; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; } h1 { margin: 0.4rem 0; font-size: clamp(2.4rem, 8vw, 5rem); line-height: 1; } .subtitle { max-width: 44rem; color: #b9c8e4; font-size: 1.1rem; } .status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; } .status-card, .boundaries, .error-banner { border: 1px solid rgb(137 175 232 / 28%); border-radius: 1rem; background: rgb(13 29 52 / 78%); box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%); } .status-card { display: grid; gap: 0.55rem; padding: 1.2rem; } .status-card span { color: #9fb2d2; font-size: 0.85rem; } .status-card strong { color: #f6f9ff; overflow-wrap: anywhere; } .boundaries { margin: 1rem 0; padding: 1.2rem 1.5rem; } .boundaries h2 { margin-top: 0; } .boundaries li + li { margin-top: 0.55rem; } .error-banner { padding: 1rem; color: #ffd3d3; border-color: rgb(255 115 115 / 45%); } .profile-manager { margin: 2rem 0; padding: 1.5rem; border: 1px solid rgb(137 175 232 / 28%); border-radius: 1rem; background: rgb(13 29 52 / 78%); box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%); } .section-heading { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr); gap: 2rem; align-items: end; margin-bottom: 1.25rem; } .section-heading h2, .profile-form h3, .profile-list h3 { margin: 0.3rem 0 0; } .section-heading > p, .form-note, .empty-state, .profile-card p { color: #aebfda; } .profile-layout { display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr); gap: 1rem; } .slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; } .slot-card { display: grid; gap: 0.9rem; padding: 1rem; border: 1px solid rgb(106 163 255 / 35%); border-radius: 0.9rem; background: rgb(18 48 84 / 72%); } .slot-card > div { display: flex; justify-content: space-between; gap: 1rem; } .slot-card > div span, .slot-card label > span { color: #8db9ff; font-weight: 700; } .slot-card label { display: grid; gap: 0.45rem; } .slot-card p, .slot-boundary-note { margin: 0; color: #aebfda; font-size: 0.9rem; } .slot-boundary-note { margin-bottom: 1rem; } .profile-form, .profile-list { padding: 1.2rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 0.9rem; background: rgb(7 18 34 / 52%); } .profile-form { display: grid; gap: 1rem; } .profile-form label:not(.checkbox-field) { display: grid; gap: 0.45rem; } .profile-form label > span { color: #c7d4e9; font-size: 0.9rem; font-weight: 650; } input, select { width: 100%; padding: 0.72rem 0.8rem; border: 1px solid rgb(137 175 232 / 38%); border-radius: 0.65rem; color: inherit; background: #0b1b31; font: inherit; } input:focus, select:focus { outline: 2px solid #6aa3ff; outline-offset: 2px; } .checkbox-field { display: flex; gap: 0.7rem; align-items: flex-start; } .checkbox-field input { width: auto; margin-top: 0.2rem; } .form-note { margin: 0; font-size: 0.9rem; } /* Everything the AstrBot connection does not need in order to work. Collapsed by default so the common path is four fields. */ .profile-advanced { padding: 0.75rem 0.9rem; border: 1px solid var(--ui-line, rgb(137 175 232 / 26%)); border-radius: 0.65rem; background: var(--ui-surface-soft, rgb(11 27 49 / 45%)); } .profile-advanced > summary { color: var(--ui-subtle, #9fb4d4); font-size: 0.9rem; font-weight: 650; cursor: pointer; list-style-position: inside; } .profile-advanced[open] > summary { margin-bottom: 0.9rem; } .profile-advanced > label:not(:last-child), .profile-advanced > .checkbox-field:not(:last-child) { margin-bottom: 0.9rem; } .button-row { display: flex; flex-wrap: wrap; gap: 0.65rem; } .button-secondary { border-color: rgb(157 181 218 / 48%); background: #20314b; } .button-danger { border-color: rgb(255 122 122 / 65%); background: #5a2430; } .profile-list { display: grid; align-content: start; gap: 0.8rem; } .profile-card { display: grid; gap: 0.7rem; padding: 1rem; border: 1px solid rgb(137 175 232 / 22%); border-radius: 0.75rem; background: rgb(20 42 72 / 72%); } .profile-card > div:first-child { display: flex; justify-content: space-between; gap: 1rem; } .profile-card span { color: #8db9ff; } .profile-card code { color: #dbe8ff; overflow-wrap: anywhere; } .profile-card p { margin: 0; font-size: 0.9rem; } .notice-banner { padding: 1rem; border: 1px solid rgb(96 211 153 / 42%); border-radius: 0.8rem; color: #c8f7dc; background: rgb(20 83 57 / 45%); } .warning-banner, .warning-inline { border: 1px solid rgb(255 196 96 / 48%); color: #ffe4b0; background: rgb(94 63 16 / 48%); } .warning-banner { margin: 0 0 1rem; padding: 1rem; border-radius: 0.8rem; } .warning-banner p { margin: 0; } .warning-banner p + p { margin-top: 0.55rem; } .warning-inline { margin: 0; padding: 0.65rem 0.75rem; border-radius: 0.65rem; font-size: 0.88rem; } @media (prefers-color-scheme: light) { :root { color: #102039; background: #eff5ff; } body { background: radial-gradient( circle at top left, rgb(87 142 235 / 24%), transparent 38rem ), #eff5ff; } .status-card, .boundaries, .profile-manager, .error-banner { background: rgb(255 255 255 / 86%); } .profile-form, .profile-list, .profile-card, .slot-card { background: rgb(245 249 255 / 90%); } .status-card strong { color: #102039; } .status-card span, .subtitle { color: #405775; } input, select { color: #102039; background: #ffffff; } .section-heading > p, .form-note, .empty-state, .profile-card p, .slot-card p, .slot-boundary-note { color: #405775; } } @media (max-width: 760px) { .section-heading, .profile-layout, .slot-grid { grid-template-columns: 1fr; } .app-shell { padding: 2rem 0; } } .chat-panel { display: grid; gap: 1rem; margin: 2rem 0; padding: 1.5rem; border: 1px solid rgb(137 175 232 / 28%); border-radius: 1rem; background: rgb(13 29 52 / 82%); box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%); } .chat-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; } .chat-heading h2 { margin: 0.3rem 0; } .chat-note, .chat-empty, .chat-error { color: #aebfda; } .chat-note { margin: 0; } .chat-slot-tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; } .chat-slot { display: grid; gap: 0.25rem; min-width: 7rem; border-color: rgb(157 181 218 / 48%); background: #20314b; } .chat-slot.active { border-color: #7db0ff; background: #24508c; } .chat-slot span { color: #bcd0ef; font-size: 0.75rem; } .chat-runtime-strip { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; padding: 0.8rem 1rem; border: 1px solid rgb(137 175 232 / 22%); border-radius: 0.7rem; color: #b9c8e4; background: rgb(7 18 34 / 55%); font-size: 0.85rem; } .chat-message-list { display: grid; align-content: start; gap: 0.75rem; min-height: 10rem; max-height: min(28rem, 42vh); padding: 0.75rem; overflow: auto; border: 1px solid rgb(137 175 232 / 22%); border-radius: 0.8rem; background: rgb(7 18 34 / 42%); } .chat-empty { align-self: center; margin: auto; text-align: center; } .chat-message-row { display: flex; /* Aligns the avatar with the top of the bubble. It used to be `flex-end`, which pinned the avatar to the bottom of `.chat-message-content` — and that box is taller than the bubble because the action bar reserves a row, so the avatar rendered below the bubble instead of beside it. */ align-items: flex-start; gap: 0.55rem; width: min(82%, 46rem); justify-self: start; } .chat-message-row.user { flex-direction: row-reverse; justify-self: end; } .chat-message-row.system { width: min(92%, 46rem); margin-inline: auto; justify-content: center; } .chat-avatar { display: grid; flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; color: #f4f8ff; background: linear-gradient(145deg, #79a9f4, #486fa8); box-shadow: 0 0.3rem 0.8rem rgb(19 43 78 / 22%); font-size: 0.82rem; font-weight: 750; } .chat-message-row.user .chat-avatar { color: #17335d; background: linear-gradient(145deg, #a9d4ff, #78a9e8); } .chat-message-row.system .chat-avatar { color: #5d4200; background: #ffd783; } .chat-bubble { position: relative; min-width: 0; max-width: calc(100% - 2.7rem); padding: 0.55rem 0.78rem 0.62rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 1rem 1rem 1rem 0.28rem; color: #eaf2ff; background: #203b60; box-shadow: 0 0.35rem 1rem rgb(12 32 61 / 12%); } .chat-message-row.user .chat-bubble { border-color: rgb(112 181 255 / 35%); border-radius: 1rem 1rem 0.28rem 1rem; color: #102b50; background: #a9d5ff; } .chat-message-row.system .chat-bubble { border-radius: 0.85rem; color: #513e16; background: #fff0c7; } .chat-bubble-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.18rem; color: #a9c9f8; font-size: 0.7rem; font-weight: 700; } .chat-message-row.user .chat-bubble-header { color: #376b9f; } .chat-bubble-header small { margin: 0; color: inherit; font-size: 0.66rem; font-weight: 500; } .chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; } .chat-message-row.failed .chat-bubble { border-color: rgb(255 122 122 / 60%); background: #713f50; } .chat-message-read { margin-top: 0.45rem; padding: 0.2rem 0.45rem; border: 0; border-radius: 0.45rem; color: #afd0ff; background: rgb(255 255 255 / 8%); font-size: 0.68rem; } .chat-message-read:hover { background: rgb(255 255 255 / 16%); } .chat-error { border-color: rgb(255 122 122 / 55%); } .chat-message-role { color: #8db9ff; font-size: 0.78rem; font-weight: 700; } .chat-message p { margin: 0.35rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; } .chat-message small { display: block; margin-top: 0.4rem; color: #aebfda; } .chat-error { margin: 0; padding: 0.75rem 0.9rem; border: 1px solid rgb(255 122 122 / 55%); border-radius: 0.7rem; background: rgb(90 36 48 / 45%); } .chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: end; } .chat-composer textarea { width: 100%; min-height: 5rem; padding: 0.8rem; resize: vertical; border: 1px solid rgb(137 175 232 / 38%); border-radius: 0.65rem; color: inherit; background: #0b1b31; font: inherit; } @media (max-width: 760px) { .chat-heading, .chat-composer { grid-template-columns: 1fr; display: grid; } .chat-message-row { width: 95%; } } .chat-actions { display: flex; justify-content: flex-end; margin: 1rem 0; } .quick-app-shell { min-width: 320px; min-height: 100vh; padding: 1rem; background: #08111f; } .quick-app-shell .chat-panel { margin: 0; min-height: calc(100vh - 2rem); } .status-bubble-shell { display: grid; width: 100vw; height: 100vh; place-items: center; background: transparent; } .status-bubble { display: grid; width: 86px; height: 86px; place-items: center; gap: 0.2rem; padding: 0.7rem; border: 1px solid rgb(157 181 218 / 55%); border-radius: 50%; background: rgb(17 38 67 / 94%); box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 35%); } .status-bubble.connected { border-color: rgb(96 211 153 / 70%); } .status-bubble-orb { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #ffbd67; box-shadow: 0 0 1rem rgb(255 189 103 / 65%); } .status-bubble.connected .status-bubble-orb { background: #60d399; box-shadow: 0 0 1rem rgb(96 211 153 / 65%); } .status-bubble-label { color: #eef3ff; font-size: 0.72rem; } .status-bubble-unread { position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 2px 5px; border-radius: 999px; color: #fff; background: #d9485f; font-size: 11px; line-height: 14px; text-align: center; } .chat-workspace { margin: 1.5rem 0; } .chat-workspace-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; } .chat-workspace-toolbar strong { margin-right: 0.3rem; color: #c7d4e9; } .chat-workspace-toolbar .active { border-color: #8db9ff; box-shadow: 0 0 0 2px rgb(141 185 255 / 22%); } .desktop-behavior-settings { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 0.9rem; background: rgb(13 29 52 / 60%); } .desktop-behavior-settings label { display: grid; gap: 0.45rem; } .desktop-behavior-settings span { color: #c7d4e9; font-weight: 650; } @media (max-width: 760px) { .desktop-behavior-settings { grid-template-columns: 1fr; } } .pet-pack-importer { display: grid; gap: 1rem; margin: 2rem 0; padding: 1.5rem; border: 1px solid rgb(137 175 232 / 28%); border-radius: 1rem; background: rgb(13 29 52 / 78%); } .pet-pack-importer h2 { margin: 0.3rem 0; } .pet-pack-preview { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; padding: 1rem; border: 1px solid rgb(96 211 153 / 42%); border-radius: 0.8rem; color: #c8f7dc; background: rgb(20 83 57 / 45%); } /* Main shell information architecture */ .app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); width: min(1440px, calc(100% - 2rem)); min-height: calc(100vh - 2rem); margin: 1rem auto; padding: 0; overflow: hidden; border: 1px solid rgb(137 175 232 / 22%); border-radius: 1.4rem; background: rgb(8 17 31 / 72%); box-shadow: 0 2rem 5rem rgb(0 0 0 / 25%); } .app-sidebar { display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem 1rem; border-right: 1px solid rgb(137 175 232 / 18%); background: rgb(7 18 34 / 70%); } .brand-lockup { display: flex; gap: 0.75rem; align-items: center; padding: 0.25rem 0.5rem; } .brand-lockup > div:last-child { display: grid; gap: 0.2rem; } .brand-lockup strong { font-size: 0.95rem; } .brand-lockup span { color: #8fa4c5; font-size: 0.72rem; } .brand-mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid #79aaff; border-radius: 0.75rem; color: #08111f; background: linear-gradient(145deg, #b9d5ff, #6aa3ff); font-weight: 800; } .primary-nav { display: grid; gap: 0.45rem; } .nav-item { display: flex; gap: 0.75rem; align-items: center; width: 100%; padding: 0.75rem 0.7rem; border: 1px solid transparent; border-radius: 0.8rem; text-align: left; background: transparent; } .nav-item:hover { border-color: rgb(137 175 232 / 25%); background: rgb(36 80 140 / 28%); } .nav-item.active { border-color: rgb(125 176 255 / 55%); background: rgb(36 80 140 / 55%); } .nav-item > span:last-child { display: grid; gap: 0.2rem; } .nav-item strong { font-size: 0.9rem; } .nav-item small { color: #91a7c9; font-size: 0.72rem; } .nav-item-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 0.55rem; color: #aaccff; background: rgb(106 163 255 / 15%); font-size: 1.1rem; } .sidebar-footer { display: flex; gap: 0.5rem; align-items: center; margin-top: auto; padding: 0.75rem 0.5rem 0; border-top: 1px solid rgb(137 175 232 / 16%); color: #91a7c9; font-size: 0.75rem; } .connection-dot { display: inline-block; width: 0.55rem; height: 0.55rem; flex: 0 0 auto; border-radius: 50%; background: #60d399; box-shadow: 0 0 0.8rem rgb(96 211 153 / 75%); } .app-content { min-width: 0; padding: 2.25rem clamp(1.25rem, 4vw, 3.5rem) 3rem; overflow: auto; } .page-header { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; margin-bottom: 2rem; } .page-header h1 { margin: 0.35rem 0 0.55rem; font-size: clamp(2rem, 5vw, 3.4rem); } .page-header .subtitle { margin: 0; font-size: 0.98rem; } .header-status-pill { display: flex; gap: 0.5rem; align-items: center; padding: 0.6rem 0.8rem; border: 1px solid rgb(96 211 153 / 35%); border-radius: 999px; color: #c8f7dc; background: rgb(20 83 57 / 28%); font-size: 0.78rem; white-space: nowrap; } .page-stack { display: grid; gap: 1.25rem; } .welcome-card, .info-card, .setting-card { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.35rem 1.5rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 1rem; background: linear-gradient(135deg, rgb(25 55 96 / 75%), rgb(13 29 52 / 82%)); } .welcome-card h2, .info-card h2, .setting-card h2 { margin: 0.35rem 0 0.45rem; font-size: 1.25rem; } .welcome-card p, .info-card p, .setting-card p { margin: 0; color: #aebfda; line-height: 1.55; } .section-kicker { display: block; color: #8db9ff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; } .chat-workspace { margin: 0; } .workspace-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 0.85rem; padding: 0.8rem 1rem; border: 1px solid rgb(137 175 232 / 20%); border-radius: 0.8rem; background: rgb(7 18 34 / 62%); } .workspace-toolbar > div:first-child { display: grid; gap: 0.25rem; margin-right: auto; } .toolbar-note { color: #91a7c9; font-size: 0.8rem; } .segmented-control { display: flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 0.7rem; background: rgb(7 18 34 / 65%); } .segment { padding: 0.5rem 0.7rem; border: 0; border-radius: 0.45rem; color: #aebfda; background: transparent; font-size: 0.8rem; } .segment:hover, .segment.active { color: #f7faff; background: #24508c; } .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .setting-card { display: grid; align-items: start; } .setting-card-controls { display: grid; min-width: min(280px, 100%); gap: 0.8rem; } .setting-card-controls label { display: grid; gap: 0.4rem; } .setting-card-controls label span { color: #c7d4e9; font-size: 0.82rem; font-weight: 650; } .status-preview { display: flex; gap: 0.5rem; align-items: center; padding: 0.7rem 0.8rem; border: 1px solid rgb(96 211 153 / 28%); border-radius: 0.65rem; color: #c8f7dc; background: rgb(20 83 57 / 25%); font-size: 0.8rem; } .feature-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; } .feature-list span { padding: 0.45rem 0.65rem; border: 1px solid rgb(137 175 232 / 22%); border-radius: 999px; color: #c7d4e9; background: rgb(7 18 34 / 45%); font-size: 0.78rem; } .info-card { display: block; } .app-content > .profile-manager, .app-content .pet-pack-importer { margin: 0; } .app-content .status-grid { margin: 0; } .app-content .boundaries { margin: 0; } @media (max-width: 900px) { .app-shell { grid-template-columns: 76px minmax(0, 1fr); } .app-sidebar { padding: 1.25rem 0.65rem; } .brand-lockup { justify-content: center; padding: 0; } .brand-lockup > div:last-child, .nav-item > span:last-child, .sidebar-footer > span:last-child { display: none; } .nav-item { justify-content: center; padding: 0.7rem; } .nav-item-icon { width: 2.1rem; height: 2.1rem; } .sidebar-footer { justify-content: center; } } @media (max-width: 680px) { .app-shell { display: block; width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; } .app-sidebar { display: block; padding: 0.75rem; border-right: 0; border-bottom: 1px solid rgb(137 175 232 / 18%); } .brand-lockup { justify-content: flex-start; } .brand-lockup > div:last-child { display: grid; } .primary-nav { display: flex; gap: 0.4rem; margin-top: 0.75rem; overflow-x: auto; } .nav-item { min-width: 8.2rem; justify-content: flex-start; } .nav-item > span:last-child { display: grid; } .sidebar-footer { display: none; } .app-content { padding: 1.5rem 1rem 2rem; } .page-header, .welcome-card, .setting-card { display: grid; } .header-status-pill { justify-self: start; } .settings-grid { grid-template-columns: 1fr; } .setting-card-controls { min-width: 0; width: 100%; } .segmented-control { width: 100%; overflow-x: auto; } .segment { flex: 1 0 auto; } } .chat-composer-toolbar { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; } .chat-composer-toolbar select { max-width: 19rem; } .file-picker { display: inline-flex; align-items: center; padding: 0.65rem 0.8rem; border: 1px solid rgb(137 175 232 / 38%); border-radius: 0.65rem; color: #c7d4e9; background: #20314b; cursor: pointer; font-size: 0.82rem; } .file-picker:hover { background: #24508c; } .file-picker input { display: none; } .attachment-list { display: flex; flex-wrap: wrap; gap: 0.5rem; } .attachment-list > span { display: inline-flex; gap: 0.45rem; align-items: center; padding: 0.4rem 0.55rem 0.4rem 0.7rem; border: 1px solid rgb(106 163 255 / 35%); border-radius: 999px; color: #dbe8ff; background: rgb(18 48 84 / 72%); font-size: 0.78rem; } .attachment-list button { padding: 0; border: 0; color: #b9c8e4; background: transparent; font-size: 1rem; } .chat-session-list { display: flex; gap: 0.55rem; overflow-x: auto; padding: 0.15rem 0 0.35rem; } .chat-session { display: grid; min-width: 11rem; gap: 0.2rem; padding: 0.65rem 0.75rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 0.7rem; color: #c7d4e9; background: rgb(7 18 34 / 55%); text-align: left; } .chat-session:hover, .chat-session.active { border-color: #7db0ff; background: rgb(36 80 140 / 52%); } .chat-session small { color: #91a7c9; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .warning-banner { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; } .pet-window { position: relative; -webkit-app-region: drag; display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; overflow: hidden; color: #f7faff; background: transparent; user-select: none; } .pet-window-embedded { -webkit-app-region: no-drag; } .pet-window-status { position: absolute; right: 0; bottom: 0.35rem; left: 0; color: #d7e5ff; font-size: 0.72rem; text-align: center; text-shadow: 0 1px 4px #08111f; } .paper-pet { position: relative; width: 128px; height: 168px; animation: pet-idle 2.4s ease-in-out infinite; } .paper-pet-shadow { position: absolute; right: 10px; bottom: 8px; left: 10px; height: 14px; border-radius: 50%; background: rgb(0 0 0 / 30%); filter: blur(4px); } .paper-pet-head, .paper-pet-body { position: absolute; left: 50%; transform: translateX(-50%); border: 3px solid #263454; background: linear-gradient(145deg, #f4fbff 0%, #b6d7ff 100%); box-shadow: 8px 8px 0 rgb(75 114 175 / 30%); } .paper-pet-head { top: 18px; width: 92px; height: 84px; border-radius: 45% 45% 42% 42%; } .paper-pet-body { bottom: 25px; width: 72px; height: 70px; border-radius: 38% 38% 30% 30%; background: linear-gradient(145deg, #9cc4ff 0%, #6288d4 100%); } .paper-pet-ear { position: absolute; top: -22px; width: 28px; height: 38px; border: 3px solid #263454; border-radius: 60% 60% 30% 30%; background: #d9edff; } .paper-pet-ear.left { left: 7px; transform: rotate(-18deg); } .paper-pet-ear.right { right: 7px; transform: rotate(18deg); } .paper-pet-eye { position: absolute; top: 39px; width: 9px; height: 12px; border-radius: 50%; background: #263454; } .paper-pet-eye.left { left: 28px; } .paper-pet-eye.right { right: 28px; } .paper-pet-mouth { position: absolute; bottom: 21px; left: 41px; width: 12px; height: 6px; border-bottom: 2px solid #263454; border-radius: 50%; } .paper-pet-book { position: absolute; right: 8px; bottom: 13px; width: 37px; height: 27px; border: 2px solid #263454; border-radius: 3px; background: #ffe4a8; transform: rotate(-12deg); opacity: 0; } .paper-pet-arm { position: absolute; top: 18px; width: 24px; height: 10px; border: 3px solid #263454; border-radius: 999px; background: #b6d7ff; } .paper-pet-arm.left { left: -17px; transform: rotate(35deg); } .paper-pet-arm.right { right: -17px; transform: rotate(-35deg); } .pet-window-working .paper-pet { animation: pet-work 0.8s ease-in-out infinite alternate; } .pet-window-working .paper-pet-book { opacity: 1; } .pet-window-resting .paper-pet { animation: pet-rest 3s ease-in-out infinite; } .pet-window-speaking .paper-pet-mouth { height: 10px; background: #263454; } .pet-window-error .paper-pet { animation: pet-error 1.2s ease-in-out infinite alternate; filter: saturate(0.65); } @keyframes pet-idle { 50% { transform: translateY(-5px); } } @keyframes pet-work { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } } @keyframes pet-rest { 50% { transform: translateY(8px) rotate(8deg); } } @keyframes pet-error { from { transform: translateX(-3px); } to { transform: translateX(3px); } } .pet-view, .pet-view body, .pet-view #root { width: 100%; height: 100%; min-width: 0; min-height: 0; background: transparent !important; } .aemeath-pet-frame { position: relative; width: 192px; height: 208px; overflow: hidden; transform: scale(0.78); transform-origin: center; } .aemeath-pet-sprite { display: block; width: 192px; height: 208px; image-rendering: pixelated; user-select: none; } .aemeath-pet-sprite-sheet { position: absolute; width: 1536px; height: 3120px; max-width: none; image-rendering: pixelated; user-select: none; } .aemeath-pet-working { filter: drop-shadow(0 0 8px rgb(115 190 255 / 45%)); } .aemeath-pet-speaking { filter: drop-shadow(0 0 8px rgb(255 207 125 / 45%)); } .aemeath-pet-error { filter: drop-shadow(0 0 8px rgb(255 105 130 / 60%)); } .pet-inline-preview { display: grid; min-height: 320px; gap: 1rem; padding: 1.25rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 1rem; background: rgb(7 18 34 / 55%); } .pet-window-embedded { min-height: 260px; border-radius: 0.8rem; background: radial-gradient( circle at center, rgb(24 54 96 / 45%), rgb(7 18 34 / 20%) ); } .pet-render-error, .pet-render-loading { position: absolute; right: 1rem; bottom: 2rem; left: 1rem; color: #ffb4b4; font-size: 0.75rem; text-align: center; } .pet-render-loading { color: #c5d8f7; } .app-pet-overlay { position: fixed; z-index: 30; width: 188px; height: 226px; cursor: grab; touch-action: none; user-select: none; } .app-pet-overlay:active { cursor: grabbing; } .app-pet-overlay .pet-window-embedded { width: 188px; height: 226px; min-height: 0; border: 1px solid rgb(137 175 232 / 40%); border-radius: 1rem; background: linear-gradient(160deg, rgb(18 41 74 / 92%), rgb(7 18 34 / 88%)); box-shadow: 0 16px 40px rgb(0 0 0 / 35%); } .app-pet-overlay .aemeath-pet-frame { transform: scale(0.78); } .pet-window-game .aemeath-pet-frame { transform: scale(0.9); } html, body, #root { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: transparent; } body { overflow: hidden; } .app-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px minmax(0, 1fr); width: calc(100% - 1rem); height: calc(100vh - 1rem); min-height: 0; margin: 0.5rem; padding: 0; overflow: hidden; border: 0; border-radius: 1.15rem; background: #08111f; } .app-shell-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; overflow: hidden; } .window-chrome { display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 44px; padding: 0 0.5rem 0 1rem; color: #dbe8ff; background: #101f35; border-bottom: 1px solid rgb(137 175 232 / 18%); user-select: none; -webkit-app-region: drag; } .window-chrome-title { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #9fb9e3; font-size: 0.78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; } .window-chrome-actions, .window-controls { display: flex; align-items: center; height: 100%; -webkit-app-region: no-drag; } .window-chrome-actions { flex: 0 0 auto; gap: 0.35rem; } .window-control { display: grid; width: 38px; height: 100%; padding: 0; place-items: center; border: 0; border-radius: 0; color: #b8cae8; background: transparent; font-size: 1rem; -webkit-app-region: no-drag; } .window-control:hover { background: rgb(137 175 232 / 16%); } .window-control-close:hover { color: #fff; background: #c93650; } .window-theme-toggle { width: auto; height: 28px; padding: 0 0.65rem; border: 1px solid rgb(137 175 232 / 24%); border-radius: 999px; color: #b8cae8; background: rgb(137 175 232 / 8%); font-size: 0.72rem; -webkit-app-region: no-drag; } .window-theme-toggle:hover { background: rgb(137 175 232 / 18%); } .window-glyph { position: relative; display: block; width: 13px; height: 13px; } .window-glyph-minimize::before { position: absolute; top: 6px; right: 1px; left: 1px; height: 1px; background: currentColor; content: ""; } .window-glyph-maximize { border: 1px solid currentColor; } .window-glyph-maximize.is-restored::after { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border: 1px solid currentColor; background: #101f35; content: ""; } .window-glyph-close::before, .window-glyph-close::after { position: absolute; top: 6px; left: 0; width: 13px; height: 1px; background: currentColor; content: ""; } .window-glyph-close::before { transform: rotate(45deg); } .window-glyph-close::after { transform: rotate(-45deg); } .app-sidebar { gap: 1.25rem; padding: 1rem 0.8rem; } .app-content { min-width: 0; min-height: 0; padding: 1rem clamp(1rem, 2.5vw, 2rem) 1.25rem; overflow: auto; } .app-content-chat { overflow: hidden; } .chat-page { display: grid; height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); gap: 0.65rem; overflow: hidden; } .chat-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; } .chat-page-header h1 { margin: 0.1rem 0 0.15rem; font-size: clamp(1.45rem, 2.8vw, 2.1rem); } .chat-page-note { margin: 0; color: #aebfda; font-size: 0.82rem; } .chat-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; margin: 0; padding: 0.9rem; gap: 0.65rem; overflow: hidden; border-radius: 0.9rem; } .chat-message-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow: hidden; } .chat-composer textarea { min-height: 3.5rem; resize: none; } :root[data-theme="light"] { color: #102039; background: #eff5ff; } :root[data-theme="light"] body { background: #eff5ff; } :root[data-theme="light"] .app-shell { background: #f7faff; border-color: rgb(55 94 150 / 18%); } :root[data-theme="light"] .window-chrome { color: #203453; background: #e9f1ff; border-bottom-color: rgb(55 94 150 / 18%); } :root[data-theme="light"] .window-chrome-title, :root[data-theme="light"] .window-theme-toggle { color: #355681; } :root[data-theme="light"] .app-sidebar { background: #edf4ff; border-right-color: rgb(55 94 150 / 16%); } :root[data-theme="light"] .chat-panel, :root[data-theme="light"] .chat-message-list { color: #203453; background: #f4f8ff; border-color: rgb(55 94 150 / 20%); } :root[data-theme="light"] .chat-page-note, :root[data-theme="light"] .chat-note, :root[data-theme="light"] .chat-empty { color: #526b8d; } @media (max-width: 900px) { .app-shell-body { grid-template-columns: 76px minmax(0, 1fr); } } @media (max-width: 680px) { .app-shell { width: 100%; height: 100vh; margin: 0; border-radius: 0.85rem; } .app-content-chat { overflow: hidden; } .chat-page-header { align-items: start; flex-direction: column; } } html, body, #root { background: #08111f; } .app-shell { width: 100%; height: 100vh; margin: 0; border-radius: 0; } /* Explicit theme tokens override the operating-system color preference. */ :root[data-theme="dark"] { color-scheme: dark; color: #eef3ff; background: #08111f; } :root[data-theme="dark"] body, :root[data-theme="dark"] #root { color: #eef3ff; background: #08111f; } :root[data-theme="dark"] .app-content, :root[data-theme="dark"] .page-header, :root[data-theme="dark"] .page-header h1, :root[data-theme="dark"] .page-header .subtitle, :root[data-theme="dark"] .chat-panel, :root[data-theme="dark"] .profile-manager, :root[data-theme="dark"] .profile-form, :root[data-theme="dark"] .profile-list, :root[data-theme="dark"] .profile-card, :root[data-theme="dark"] .slot-card, :root[data-theme="dark"] .status-card, :root[data-theme="dark"] .boundaries, :root[data-theme="dark"] .welcome-card, :root[data-theme="dark"] .info-card, :root[data-theme="dark"] .setting-card, :root[data-theme="dark"] .pet-inline-preview { color: #eef3ff; } :root[data-theme="dark"] .status-card, :root[data-theme="dark"] .boundaries, :root[data-theme="dark"] .profile-manager, :root[data-theme="dark"] .error-banner { background: #0d1d34; } :root[data-theme="dark"] .profile-form, :root[data-theme="dark"] .profile-list, :root[data-theme="dark"] .profile-card, :root[data-theme="dark"] .slot-card, :root[data-theme="dark"] .pet-inline-preview { background: #0b1b31; } :root[data-theme="dark"] .welcome-card, :root[data-theme="dark"] .info-card, :root[data-theme="dark"] .setting-card { background: linear-gradient(135deg, #193760, #0d1d34); } :root[data-theme="dark"] .status-card strong, :root[data-theme="dark"] .boundaries h2, :root[data-theme="dark"] .profile-form h3, :root[data-theme="dark"] .profile-list h3, :root[data-theme="dark"] .profile-card strong, :root[data-theme="dark"] .welcome-card h2, :root[data-theme="dark"] .info-card h2, :root[data-theme="dark"] .setting-card h2 { color: #f4f8ff; } :root[data-theme="dark"] .status-card span, :root[data-theme="dark"] .profile-card p, :root[data-theme="dark"] .profile-card code, :root[data-theme="dark"] .slot-card p, :root[data-theme="dark"] .slot-boundary-note, :root[data-theme="dark"] .welcome-card p, :root[data-theme="dark"] .info-card p, :root[data-theme="dark"] .setting-card p, :root[data-theme="dark"] .form-note, :root[data-theme="dark"] .empty-state { color: #afc2df; } :root[data-theme="dark"] button { color: #f4f8ff; background: #173766; } :root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color: #eef3ff; background: #0b1b31; } :root[data-theme="light"] { color-scheme: light; color: #102039; background: #eff5ff; } :root[data-theme="light"] body, :root[data-theme="light"] #root { color: #102039; background: #eff5ff; } :root[data-theme="light"] .app-shell { background: #f7faff; } :root[data-theme="light"] .app-sidebar { color: #203453; background: #eaf2ff; border-right-color: #c6d8ef; } :root[data-theme="light"] .brand-lockup strong, :root[data-theme="light"] .nav-item strong, :root[data-theme="light"] .page-header h1, :root[data-theme="light"] .profile-form h3, :root[data-theme="light"] .profile-list h3, :root[data-theme="light"] .boundaries h2, :root[data-theme="light"] .welcome-card h2, :root[data-theme="light"] .info-card h2, :root[data-theme="light"] .setting-card h2 { color: #102039; } :root[data-theme="light"] .brand-lockup span, :root[data-theme="light"] .nav-item small, :root[data-theme="light"] .page-header .subtitle, :root[data-theme="light"] .profile-card p, :root[data-theme="light"] .slot-card p, :root[data-theme="light"] .slot-boundary-note, :root[data-theme="light"] .welcome-card p, :root[data-theme="light"] .info-card p, :root[data-theme="light"] .setting-card p, :root[data-theme="light"] .form-note, :root[data-theme="light"] .empty-state { color: #526b8d; } :root[data-theme="light"] .nav-item { color: #203453; } :root[data-theme="light"] .nav-item:hover { border-color: #9cbce2; background: #d9e8fb; } :root[data-theme="light"] .nav-item.active { border-color: #6d9dd3; background: #c5daf5; } :root[data-theme="light"] .nav-item-icon { color: #3568a7; background: #d7e7fb; } :root[data-theme="light"] .sidebar-footer { color: #526b8d; border-top-color: #c6d8ef; } :root[data-theme="light"] .status-card, :root[data-theme="light"] .boundaries, :root[data-theme="light"] .profile-manager, :root[data-theme="light"] .error-banner, :root[data-theme="light"] .profile-form, :root[data-theme="light"] .profile-list, :root[data-theme="light"] .profile-card, :root[data-theme="light"] .slot-card, :root[data-theme="light"] .pet-inline-preview { color: #203453; background: #f7fbff; border-color: #c9dcf3; box-shadow: 0 0.75rem 2rem rgb(78 113 157 / 12%); } :root[data-theme="light"] .welcome-card, :root[data-theme="light"] .info-card, :root[data-theme="light"] .setting-card { color: #203453; background: linear-gradient(135deg, #e8f2ff, #f7fbff); border-color: #c9dcf3; } :root[data-theme="light"] .status-card span, :root[data-theme="light"] .profile-card span, :root[data-theme="light"] .profile-form label > span, :root[data-theme="light"] .setting-card-controls label span { color: #6689b6; } :root[data-theme="light"] .status-card strong, :root[data-theme="light"] .profile-card code, :root[data-theme="light"] .slot-card strong { color: #102039; } :root[data-theme="light"] button { color: #17345b; background: #dbeaff; border-color: #8fb4e3; } :root[data-theme="light"] button:hover { background: #c8ddf7; } :root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { color: #203453; background: #ffffff; border-color: #b7cfea; } :root[data-theme="light"] .chat-panel, :root[data-theme="light"] .chat-message-list, :root[data-theme="light"] .workspace-toolbar, :root[data-theme="light"] .segmented-control { color: #203453; background: #f4f8ff; border-color: #c9dcf3; } :root[data-theme="light"] .chat-note, :root[data-theme="light"] .chat-empty, :root[data-theme="light"] .chat-error, :root[data-theme="light"] .toolbar-note { color: #526b8d; } :root[data-theme="light"] .segment { color: #526b8d; } :root[data-theme="light"] .segment:hover, :root[data-theme="light"] .segment.active { color: #ffffff; background: #4b7fba; } .chat-page { grid-template-rows: minmax(0, 1fr); gap: 0; } :root[data-theme="light"] .chat-bubble { border-color: #c9dcf3; color: #203453; background: #e8f1ff; } :root[data-theme="light"] .chat-message-row.user .chat-bubble { border-color: #a9cbee; color: #17335d; background: #d7ebff; } :root[data-theme="light"] .chat-message-row.system .chat-bubble { color: #513e16; background: #fff0c7; } :root[data-theme="light"] .chat-bubble-header { color: #5279ad; } :root[data-theme="light"] .chat-message-row.user .chat-bubble-header { color: #376b9f; } .chat-runtime-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; } .chat-runtime-strip > div { min-width: 0; } .chat-runtime-strip span, .chat-runtime-strip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chat-runtime-strip span { color: var(--muted-text, #6b7d92); font-size: 11px; } .chat-runtime-strip strong { color: var(--ink, #24344d); font-size: 12px; font-weight: 600; } .chat-runtime-actions, /* `.chat-message-actions button` is intentionally absent from these pill rules. Message actions are borderless icon buttons; their single definition lives further down next to `.message-action-icon`. */ .chat-runtime-actions button, .chat-stop-button { border: 1px solid var(--line, #c8d8ea); border-radius: 999px; background: transparent; color: var(--muted-text, #6b7d92); cursor: pointer; font-size: 11px; padding: 4px 9px; } .chat-runtime-actions button:hover, .chat-stop-button:hover { background: var(--soft-accent, #eaf3ff); color: var(--accent, #2f6fb2); } .chat-runtime-actions button:disabled { cursor: not-allowed; opacity: 0.5; } .message-content { color: inherit; line-height: 1.58; overflow-wrap: anywhere; } .message-content p, .message-content h1, .message-content h2, .message-content h3, .message-content ul, .message-content pre { margin: 0 0 8px; } .message-content p:last-child, .message-content ul:last-child, .message-content pre:last-child { margin-bottom: 0; } .message-content h1, .message-content h2, .message-content h3 { color: inherit; font-size: 14px; } .message-content ul { padding-left: 18px; } .message-content code { border-radius: 5px; background: rgba(50, 80, 110, 0.1); font-family: "Cascadia Code", Consolas, monospace; font-size: 0.92em; padding: 2px 4px; } .message-content pre { max-width: 100%; overflow-x: auto; border-radius: 9px; background: #152234; color: #e8f1ff; padding: 10px 12px; } .message-content pre code { display: block; background: transparent; padding: 0; white-space: pre; } .message-content a { color: var(--accent, #2f6fb2); } .chat-stop-button { margin-top: 8px; border-color: #d88d8d; color: #a43f47; } .message-placeholder { color: var(--muted-text, #6b7d92); margin: 0; } @media (max-width: 760px) { .chat-runtime-strip { grid-template-columns: 1fr; } .chat-runtime-actions { justify-content: flex-start; } } .chat-runtime-error { margin: 8px 0 0; border-radius: 8px; background: rgba(180, 70, 75, 0.09); color: #a43f47; font-size: 12px; padding: 8px 10px; } :root { --ui-bg: #091321; --ui-surface: #101e30; --ui-surface-raised: #15263c; --ui-surface-soft: #0d1929; --ui-line: rgb(151 180 218 / 22%); --ui-line-strong: rgb(151 194 255 / 48%); --ui-ink: #eef4ff; --ui-muted: #9fb2ce; --ui-subtle: #71849f; --ui-accent: #8bbaff; --ui-accent-strong: #b7d5ff; --ui-success: #8bd3a6; --ui-warning: #f2c078; --ui-danger: #ffb3b3; --ui-radius-sm: 0.55rem; --ui-radius-md: 0.8rem; --ui-radius-lg: 1rem; --ui-shadow: 0 0.75rem 2rem rgb(2 10 21 / 26%); } :root[data-theme="light"] { --ui-bg: #edf3fa; --ui-surface: #f8fbff; --ui-surface-raised: #ffffff; --ui-surface-soft: #eaf1f9; --ui-line: rgb(48 83 126 / 18%); --ui-line-strong: rgb(44 105 178 / 44%); --ui-ink: #1b2c43; --ui-muted: #526987; --ui-subtle: #6d819c; --ui-accent: #2c6eae; --ui-accent-strong: #1f5287; --ui-success: #2f7d4f; --ui-warning: #9a661b; --ui-danger: #a53f4c; --ui-shadow: 0 0.75rem 2rem rgb(53 86 123 / 12%); } :root, button, input, select, textarea { font-variant-numeric: tabular-nums; } button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; } .chat-panel { gap: 0.8rem; padding: clamp(0.9rem, 1.5vw, 1.35rem); border: 1px solid var(--ui-line); border-radius: var(--ui-radius-lg); background: var(--ui-surface); box-shadow: var(--ui-shadow); } .chat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; padding-bottom: 0.15rem; } .chat-heading h2 { max-width: 32rem; color: var(--ui-ink); font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.02em; text-wrap: balance; } .chat-note, .chat-empty, .chat-error { color: var(--ui-muted); } .chat-note { max-width: 48rem; line-height: 1.55; } .chat-slot-tabs { flex: 0 0 auto; align-items: stretch; padding: 0.25rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); background: var(--ui-surface-soft); } .chat-slot { min-width: 7.2rem; min-height: 3.25rem; border: 1px solid transparent; border-radius: var(--ui-radius-sm); color: var(--ui-muted); background: transparent; box-shadow: none; } .chat-slot:hover:not(:disabled) { color: var(--ui-ink); background: rgb(139 186 255 / 10%); } .chat-slot.active { border-color: var(--ui-line-strong); color: var(--ui-ink); background: var(--ui-surface-raised); box-shadow: 0 0.2rem 0.7rem rgb(2 10 21 / 16%); } .chat-slot span { color: var(--ui-subtle); } .chat-slot.active span { color: var(--ui-accent); } .chat-runtime-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0.85rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); color: var(--ui-muted); background: var(--ui-surface-soft); } .chat-runtime-strip span { color: var(--ui-subtle); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; } .chat-runtime-strip strong { color: var(--ui-ink); font-size: 0.8rem; } .chat-runtime-actions { justify-content: flex-end; } .chat-runtime-actions button, .chat-stop-button { min-height: 2rem; border: 1px solid var(--ui-line); border-radius: 999px; color: var(--ui-muted); background: transparent; } .chat-runtime-actions button:hover, .chat-stop-button:hover { border-color: var(--ui-line-strong); color: var(--ui-ink); background: rgb(139 186 255 / 10%); } .chat-message-list { gap: 0.9rem; padding: clamp(0.8rem, 1.8vw, 1.25rem); border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); background: var(--ui-surface-soft); scrollbar-color: var(--ui-line-strong) transparent; } .chat-empty { max-width: 26rem; margin-inline: auto; line-height: 1.6; } .chat-message-row { width: min(78%, 48rem); gap: 0.7rem; } .chat-avatar { flex-basis: 2rem; width: 2rem; height: 2rem; color: var(--ui-ink); background: var(--ui-surface-raised); box-shadow: none; } .chat-message-row.user .chat-avatar { color: var(--ui-accent-strong); background: #254c78; } .chat-bubble { padding: 0.7rem 0.85rem 0.8rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); color: var(--ui-ink); background: var(--ui-surface-raised); box-shadow: none; } .chat-message-row.user .chat-bubble { border-color: var(--ui-line-strong); color: var(--ui-ink); background: rgb(67 120 181 / 28%); } .chat-bubble-header { margin-bottom: 0.35rem; color: var(--ui-accent); } .chat-message-row.user .chat-bubble-header { color: var(--ui-accent-strong); } .chat-composer-toolbar { gap: 0.55rem; padding-top: 0.1rem; } .chat-composer { grid-template-columns: minmax(0, 1fr) auto; gap: 0.7rem; align-items: end; padding: 0.75rem; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-md); background: var(--ui-surface-raised); } .chat-composer textarea { min-height: 4.25rem; padding: 0.8rem 0.85rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); color: var(--ui-ink); background: var(--ui-surface-soft); line-height: 1.5; } .chat-composer > button[type="submit"] { min-width: 5rem; min-height: 2.75rem; border-color: var(--ui-accent); color: #071321; background: var(--ui-accent); font-weight: 700; } .chat-composer > button[type="submit"]:hover:not(:disabled) { background: var(--ui-accent-strong); } .attachment-list { gap: 0.45rem; padding: 0.1rem 0; } .attachment-list > span { border: 1px solid var(--ui-line); border-radius: 999px; color: var(--ui-muted); background: var(--ui-surface-soft); } @media (max-width: 900px) { .chat-heading { flex-direction: column; } .chat-slot-tabs { width: 100%; } .chat-slot { flex: 1 1 0; } .chat-runtime-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chat-runtime-actions { grid-column: 1 / -1; justify-content: flex-start; } } @media (max-width: 680px) { .chat-panel { padding: 0.7rem; } .chat-runtime-strip { grid-template-columns: 1fr 1fr; } .chat-runtime-strip > div:nth-child(3) { grid-column: 1 / -1; } .chat-message-row { width: 94%; } .chat-composer { grid-template-columns: 1fr; } .chat-composer > button[type="submit"] { width: 100%; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } } .chat-panel { font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif; } .chat-slot[role="tab"] { min-height: 2.75rem; touch-action: manipulation; } .chat-slot[role="tab"][aria-selected="true"] { color: var(--ui-ink); } .chat-runtime-actions button, .chat-stop-button, .voice-button, .file-picker, .chat-composer > button[type="submit"] { min-height: 2.5rem; touch-action: manipulation; } .chat-message-actions button { touch-action: manipulation; } .chat-runtime-actions button:disabled { border-color: var(--ui-line); color: var(--ui-subtle); background: transparent; } .chat-message-list { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; } .chat-error { margin: 0; padding: 0.7rem 0.85rem; border: 1px solid rgb(255 179 179 / 42%); border-radius: var(--ui-radius-sm); color: var(--ui-danger); background: rgb(165 63 76 / 12%); } .file-picker { position: relative; min-width: 8rem; justify-content: center; } .file-picker:focus-within { outline: 2px solid var(--ui-accent); outline-offset: 2px; } .file-picker-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .file-picker:has(.file-picker-input:disabled) { cursor: not-allowed; opacity: 0.55; } .voice-button.active { border-color: var(--ui-accent); color: var(--ui-ink); background: rgb(139 186 255 / 18%); } @media (max-width: 520px) { .chat-runtime-strip { grid-template-columns: 1fr; } .chat-runtime-strip > div:nth-child(3) { grid-column: auto; } .chat-runtime-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .chat-runtime-actions button, .chat-stop-button, .voice-button, .file-picker { width: 100%; } } :root { --ui-shadow: 0 0.35rem 0.75rem rgb(2 10 21 / 22%); font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; } :root[data-theme="light"] { --ui-shadow: 0 0.35rem 0.75rem rgb(53 86 123 / 12%); } html, body, #root { background: var(--ui-bg); color: var(--ui-ink); } body { background-image: none; } h1, h2, h3 { text-wrap: balance; } p, li { text-wrap: pretty; } .eyebrow, .section-kicker { letter-spacing: 0.04em; text-transform: none; } .app-shell { border-color: var(--ui-line); border-radius: var(--ui-radius-lg); background: var(--ui-surface); box-shadow: var(--ui-shadow); } .app-sidebar, .window-chrome { border-color: var(--ui-line); background: var(--ui-surface-soft); } .window-chrome, .window-chrome-title, .window-theme-toggle { color: var(--ui-ink); } .brand-lockup span, .nav-item small, .page-header .subtitle, .section-heading > p, .form-note, .empty-state { color: var(--ui-muted); } .brand-mark { border-color: var(--ui-accent); color: var(--ui-bg); background: var(--ui-accent); } .nav-item { border-color: transparent; color: var(--ui-muted); background: transparent; } .nav-item:hover, .nav-item.active { border-color: var(--ui-line-strong); color: var(--ui-ink); background: var(--ui-surface-raised); } .nav-item-icon { color: var(--ui-accent); background: rgb(139 186 255 / 10%); } button { border-color: var(--ui-line-strong); color: var(--ui-ink); background: var(--ui-surface-raised); } button:hover:not(:disabled) { background: var(--ui-surface-soft); } input, select, textarea { border-color: var(--ui-line); color: var(--ui-ink); background: var(--ui-surface-raised); } .status-card, .boundaries, .error-banner, .profile-manager, .profile-form, .profile-list, .slot-card, .setting-card, .pet-pack-importer, .pet-inline-preview, .welcome-card, .info-card { border-color: var(--ui-line); background: var(--ui-surface); box-shadow: none; } .status-card span, .profile-card span, .profile-form label > span, .setting-card-controls label span, .slot-card > div span, .slot-card label > span { color: var(--ui-muted); } .status-card strong, .profile-card code, .slot-card strong { color: var(--ui-ink); } .page-header h1, .boundaries h2, .setting-card h2, .profile-manager h2, .profile-manager h3 { color: var(--ui-ink); } .error-banner, .chat-runtime-error { border-color: rgb(255 179 179 / 42%); color: var(--ui-danger); background: rgb(165 63 76 / 12%); } .diagnostic-field { display: grid; gap: 0.4rem; } .diagnostic-field span { color: var(--ui-muted); font-size: 0.8rem; font-weight: 600; } .loading-state { margin: 0; padding: 1rem; color: var(--ui-muted); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .status-bubble-online .status-bubble-orb { background: var(--ui-success); } .status-bubble-pending .status-bubble-orb { background: var(--ui-warning); } .status-bubble-auth .status-bubble-orb, .status-bubble-error .status-bubble-orb { background: var(--ui-danger); } .status-bubble-offline .status-bubble-orb { background: var(--ui-muted); } .credential-card { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); background: var(--ui-surface-soft); } .credential-card label { display: grid; gap: 0.4rem; } .credential-card label > span { color: var(--ui-muted); font-size: 0.8rem; font-weight: 600; } .credential-card button { min-height: 2.5rem; } .diagnostic-result { max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; } button:disabled { cursor: not-allowed; } .app-pet-overlay { z-index: 10; } .chat-session-list { scrollbar-color: var(--ui-line-strong) transparent; } @media (max-width: 680px) { .chat-session-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 8rem; overflow-x: hidden; overflow-y: auto; } .chat-session { min-width: 0; } } @media (max-width: 1024px) { .app-shell-body { grid-template-columns: 13rem minmax(0, 1fr); } .app-sidebar { padding: 1rem 0.75rem; } .page-header, .page-stack, .chat-page { padding-inline: 1.25rem; } } @media (max-width: 680px) { .app-shell { grid-template-columns: 1fr; } .app-sidebar { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.75rem; } .brand-lockup, .sidebar-footer { display: none; } .primary-nav { display: flex; min-width: max-content; gap: 0.5rem; } .nav-item { min-width: 7.5rem; } .page-header, .page-stack, .chat-page { padding-inline: 0.9rem; } .page-header { align-items: flex-start; flex-direction: column; gap: 0.75rem; } .settings-grid, .status-grid { grid-template-columns: 1fr; } .window-chrome-actions { gap: 0.25rem; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } .aemeath-pet-sprite { animation: none !important; } } .chat-message-content { display: flex; flex: 1 1 auto; flex-direction: column; width: 0; min-width: 0; gap: 0.35rem; } .chat-message-row.assistant .chat-message-content, .chat-message-row.system .chat-message-content { align-items: flex-start; } .chat-message-row.user .chat-message-content { align-items: flex-end; } .chat-bubble { width: fit-content; max-width: 100%; } .chat-message-actions { display: flex; align-items: center; justify-content: flex-start; gap: 0.15rem; min-height: 2rem; padding-inline: 0.15rem; opacity: 0; pointer-events: none; transform: translateY(-0.2rem); transition: opacity 150ms ease, transform 150ms ease; } /* Deliberately no `visibility: hidden`. It removed the buttons from the tab order, so `:focus-within` could never fire and a keyboard user could never reveal them. Opacity alone keeps them focusable. */ .chat-message-row:hover .chat-message-actions, .chat-message-row:focus-within .chat-message-actions { opacity: 1; pointer-events: auto; transform: translateY(0); } /* The single definition of a message action button: borderless, icon only. The visible label is carried by `.message-action-label`, which is clipped for screen readers, so the button must never be sized for text. */ .chat-message-actions button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; min-height: 2rem; padding: 0; border: 0; border-radius: 0.55rem; color: var(--ui-subtle); background: transparent; cursor: pointer; } .chat-message-actions button:hover:not(:disabled), .chat-message-actions button:focus-visible { color: var(--ui-ink); background: var(--ui-surface-soft); } .chat-message-actions button:hover:not(:disabled) .message-action-icon, .chat-message-actions button:focus-visible .message-action-icon { color: var(--ui-ink); } .message-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .message-action-icon { display: inline-grid; position: relative; width: 1rem; height: 1rem; place-items: center; color: var(--ui-muted); line-height: 1; } .message-action-icon::before, .message-action-icon::after { position: absolute; display: block; content: ""; } .icon-copy::before, .icon-copy::after { width: 0.62rem; height: 0.7rem; border: 1.5px solid currentcolor; border-radius: 0.16rem; } .icon-copy::before { top: 0.08rem; left: 0.22rem; background: var(--ui-surface-soft); } .icon-copy::after { top: 0.23rem; left: 0.08rem; background: transparent; } .icon-retry::before { width: 0.82rem; height: 0.82rem; border: 1.5px solid currentcolor; border-right-color: transparent; border-radius: 50%; } .icon-retry::after { top: 0.02rem; right: 0.02rem; width: 0.32rem; height: 0.32rem; border-top: 1.5px solid currentcolor; border-right: 1.5px solid currentcolor; transform: rotate(18deg); } .icon-read::before { width: 0.94rem; height: 0.62rem; border: 1.5px solid currentcolor; border-radius: 0.72rem / 0.52rem; transform: scaleY(0.78); } .icon-read::after { width: 0.28rem; height: 0.28rem; border: 1.5px solid currentcolor; border-radius: 50%; } @media (hover: none) { .chat-message-actions { opacity: 1; pointer-events: auto; transform: none; visibility: visible; } } .chat-send-button { display: inline-flex; min-width: 6.5rem; min-height: 3.75rem; align-items: center; justify-content: center; gap: 0.4rem; border-color: var(--ui-accent); border-radius: var(--ui-radius-md); color: #071321; background: var(--ui-accent); font-size: 0.95rem; font-weight: 700; } .chat-send-button:hover:not(:disabled) { background: var(--ui-accent-strong); } .send-button-icon { font-size: 1.2rem; line-height: 1; } .chat-composer textarea { resize: none; } @media (max-width: 680px) { .chat-send-button { min-width: 5.5rem; min-height: 3.25rem; } .chat-message-actions button { width: 2.1rem; height: 2.1rem; min-height: 2.1rem; } } /* Stable chat session pills and native-style window controls. */ .chat-session-list { flex: 0 0 auto; min-width: 0; max-width: 100%; align-items: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-gutter: stable; } .chat-session { flex: 0 0 10.5rem; min-width: 0; min-height: 3.35rem; max-width: 10.5rem; overflow: hidden; } .chat-session strong, .chat-session small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chat-session strong { color: var(--ui-ink); font-size: 0.82rem; } .chat-session small { color: var(--ui-subtle); font-size: 0.7rem; } .window-chrome { box-sizing: border-box; padding-right: 0; } .window-chrome-actions { flex: 0 0 auto; gap: 0.5rem; margin-left: auto; } .window-controls { flex: 0 0 auto; } .window-control { flex: 0 0 46px; width: 46px; } @media (max-width: 900px) { .chat-heading { align-items: stretch; } .chat-slot-tabs { width: 100%; justify-content: stretch; } .chat-slot { flex: 1 1 0; min-width: 0; } } .message-attachment-image { display: block; max-width: min(22rem, 100%); max-height: 22rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); object-fit: contain; background: var(--ui-surface-soft); } .message-attachment-placeholder { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.35rem 0.55rem; border: 1px dashed var(--ui-line-strong); border-radius: var(--ui-radius-sm); color: var(--ui-subtle); background: var(--ui-surface-soft); font-size: 0.78rem; }