Spaces:
Sleeping
Sleeping
| :root { | |
| --bg: #f7faf7; | |
| --sidebar: #eef7ef; | |
| --panel: #ffffff; | |
| --panel-soft: #f4fbf5; | |
| --line: #d9e8dc; | |
| --line-strong: #bdd8c2; | |
| --text: #173123; | |
| --muted: #63816b; | |
| --green-950: #14351f; | |
| --green-900: #1f4a2b; | |
| --green-800: #256b38; | |
| --green-700: #2d8243; | |
| --green-500: #46b15f; | |
| --green-200: #dbeede; | |
| --shadow: 0 10px 30px rgba(20, 53, 31, 0.06); | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| margin: 0; | |
| height: 100%; | |
| font-family: "Segoe UI", "Helvetica Neue", sans-serif; | |
| color: var(--text); | |
| background: var(--bg); | |
| overflow: hidden; | |
| } | |
| .app-shell { | |
| display: grid; | |
| grid-template-columns: 280px minmax(0, 1fr); | |
| height: 100vh; | |
| overflow: hidden; | |
| } | |
| .sidebar { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 18px; | |
| padding: 18px 14px; | |
| background: var(--sidebar); | |
| border-right: 1px solid var(--line); | |
| min-height: 0; | |
| overflow: hidden; | |
| } | |
| .sidebar-top { | |
| display: flex; | |
| gap: 12px; | |
| align-items: center; | |
| padding: 10px; | |
| } | |
| .brand-mark, | |
| .empty-logo { | |
| display: grid; | |
| place-items: center; | |
| width: 42px; | |
| height: 42px; | |
| border-radius: 14px; | |
| background: linear-gradient(135deg, var(--green-900), var(--green-700)); | |
| color: white; | |
| font-weight: 700; | |
| } | |
| .brand-title { | |
| font-size: 0.96rem; | |
| font-weight: 700; | |
| } | |
| .brand-subtitle { | |
| font-size: 0.83rem; | |
| color: var(--muted); | |
| } | |
| .sidebar-action { | |
| width: 100%; | |
| } | |
| .sidebar-section, | |
| .sidebar-footer { | |
| padding: 14px; | |
| border: 1px solid var(--line); | |
| border-radius: 18px; | |
| background: rgba(255, 255, 255, 0.68); | |
| } | |
| .sidebar-section.fill { | |
| flex: 1; | |
| min-height: 0; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .sidebar-label, | |
| .workspace-badge, | |
| .message-role, | |
| .status-pill, | |
| .composer-meta { | |
| font-size: 0.72rem; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| color: var(--muted); | |
| } | |
| .sidebar-footer { | |
| margin-top: auto; | |
| } | |
| .sidebar-footer p { | |
| margin: 10px 0 0; | |
| color: var(--muted); | |
| line-height: 1.5; | |
| } | |
| .user-id-card { | |
| display: flex; | |
| gap: 10px; | |
| align-items: center; | |
| margin-top: 10px; | |
| margin-bottom: 12px; | |
| } | |
| .user-id { | |
| flex: 1; | |
| padding: 11px 12px; | |
| border-radius: 12px; | |
| border: 1px solid var(--line); | |
| background: white; | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| overflow-wrap: anywhere; | |
| } | |
| .text-input, | |
| textarea { | |
| width: 100%; | |
| border: 1px solid var(--line); | |
| border-radius: 14px; | |
| background: white; | |
| color: var(--text); | |
| padding: 13px 14px; | |
| font: inherit; | |
| outline: none; | |
| transition: border-color 160ms ease, box-shadow 160ms ease; | |
| } | |
| .text-input:focus, | |
| textarea:focus { | |
| border-color: var(--green-500); | |
| box-shadow: 0 0 0 3px rgba(70, 177, 95, 0.14); | |
| } | |
| .composer textarea:focus { | |
| box-shadow: none; | |
| } | |
| .primary-button, | |
| .secondary-button, | |
| .icon-button, | |
| .prompt-chip, | |
| .send-button { | |
| appearance: none; | |
| border: 1px solid transparent; | |
| border-radius: 14px; | |
| padding: 12px 14px; | |
| font: inherit; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: background 160ms ease, transform 160ms ease, border-color 160ms ease; | |
| } | |
| .primary-button:hover, | |
| .secondary-button:hover, | |
| .icon-button:hover, | |
| .prompt-chip:hover, | |
| .send-button:hover { | |
| transform: translateY(-1px); | |
| } | |
| .primary-button { | |
| color: white; | |
| background: linear-gradient(135deg, var(--green-800), var(--green-700)); | |
| } | |
| .secondary-button, | |
| .icon-button, | |
| .prompt-chip { | |
| color: var(--green-900); | |
| background: white; | |
| border-color: var(--line); | |
| } | |
| .icon-button { | |
| white-space: nowrap; | |
| } | |
| .memory-list { | |
| display: grid; | |
| gap: 10px; | |
| margin-top: 12px; | |
| overflow: auto; | |
| } | |
| .memory-item { | |
| padding: 12px 14px; | |
| border-radius: 14px; | |
| border: 1px solid var(--line); | |
| background: white; | |
| color: var(--text); | |
| } | |
| .memory-empty { | |
| color: var(--muted); | |
| } | |
| .workspace { | |
| display: grid; | |
| grid-template-rows: auto minmax(0, 1fr) auto; | |
| height: 100vh; | |
| min-height: 0; | |
| overflow: hidden; | |
| background: white; | |
| } | |
| .workspace-header { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 20px; | |
| align-items: center; | |
| padding: 18px 24px; | |
| border-bottom: 1px solid var(--line); | |
| background: rgba(255, 255, 255, 0.92); | |
| position: sticky; | |
| top: 0; | |
| z-index: 5; | |
| } | |
| .workspace-heading h1 { | |
| margin: 6px 0 4px; | |
| font-size: 1.35rem; | |
| } | |
| .workspace-heading p { | |
| margin: 0; | |
| color: var(--muted); | |
| } | |
| .conversation-shell { | |
| min-height: 0; | |
| height: 100%; | |
| overflow-y: auto; | |
| overflow-x: hidden; | |
| scroll-behavior: smooth; | |
| background: | |
| linear-gradient(180deg, rgba(244, 251, 245, 0.55), rgba(255, 255, 255, 0)); | |
| } | |
| .status-pill { | |
| padding: 9px 12px; | |
| border-radius: 999px; | |
| border: 1px solid var(--line); | |
| background: var(--panel-soft); | |
| white-space: nowrap; | |
| } | |
| .messages { | |
| width: min(860px, calc(100% - 32px)); | |
| margin: 0 auto; | |
| padding: 24px 0 120px; | |
| } | |
| .empty-state { | |
| display: grid; | |
| gap: 14px; | |
| justify-items: center; | |
| text-align: center; | |
| padding: 72px 0 32px; | |
| } | |
| .empty-state h2 { | |
| margin: 0; | |
| font-size: 2rem; | |
| font-weight: 600; | |
| } | |
| .empty-state p { | |
| margin: 0; | |
| max-width: 620px; | |
| color: var(--muted); | |
| } | |
| .prompt-grid { | |
| display: grid; | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| gap: 12px; | |
| width: min(760px, 100%); | |
| margin-top: 10px; | |
| } | |
| .prompt-chip { | |
| text-align: left; | |
| padding: 16px; | |
| background: var(--panel); | |
| box-shadow: var(--shadow); | |
| } | |
| .message-row { | |
| padding: 20px 0; | |
| border-bottom: 1px solid rgba(217, 232, 220, 0.72); | |
| animation: fadeUp 260ms ease; | |
| } | |
| .message-row.user { | |
| background: linear-gradient(90deg, rgba(244, 251, 245, 0), rgba(244, 251, 245, 0.95), rgba(244, 251, 245, 0)); | |
| } | |
| .message-inner { | |
| width: min(860px, calc(100% - 32px)); | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: 42px minmax(0, 1fr); | |
| gap: 16px; | |
| align-items: start; | |
| } | |
| .message-role { | |
| margin-bottom: 8px; | |
| font-weight: 700; | |
| } | |
| .message-avatar { | |
| display: grid; | |
| place-items: center; | |
| width: 42px; | |
| height: 42px; | |
| border-radius: 14px; | |
| font-size: 0.9rem; | |
| font-weight: 700; | |
| color: white; | |
| background: linear-gradient(135deg, var(--green-900), var(--green-700)); | |
| box-shadow: var(--shadow); | |
| } | |
| .message-row.user .message-avatar { | |
| order: 2; | |
| background: linear-gradient(135deg, #88cb96, #4da964); | |
| } | |
| .message-bubble { | |
| padding: 2px 0 0; | |
| line-height: 1.6; | |
| white-space: pre-wrap; | |
| font-size: 1rem; | |
| } | |
| .message-row.user .message-inner { | |
| grid-template-columns: minmax(0, 1fr) 42px; | |
| } | |
| .message-row.user .message-content { | |
| order: 1; | |
| display: grid; | |
| justify-items: end; | |
| } | |
| .message-row.user .message-role { | |
| text-align: right; | |
| } | |
| .message-row.user .message-bubble { | |
| width: fit-content; | |
| max-width: min(82%, 720px); | |
| padding: 14px 18px; | |
| border: 1px solid var(--line); | |
| border-radius: 22px; | |
| background: white; | |
| box-shadow: var(--shadow); | |
| } | |
| .composer-wrap { | |
| padding: 18px 24px 24px; | |
| border-top: 1px solid var(--line); | |
| background: | |
| linear-gradient(180deg, rgba(255, 255, 255, 0.7), #ffffff 32%); | |
| position: sticky; | |
| bottom: 0; | |
| z-index: 5; | |
| } | |
| .composer { | |
| width: min(860px, 100%); | |
| margin: 0 auto; | |
| } | |
| .composer-box { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) auto; | |
| gap: 12px; | |
| align-items: end; | |
| padding: 12px; | |
| border: 1px solid var(--line); | |
| border-radius: 22px; | |
| background: white; | |
| box-shadow: var(--shadow); | |
| } | |
| .composer textarea { | |
| min-height: 28px; | |
| max-height: 220px; | |
| padding: 10px 12px; | |
| border: none; | |
| box-shadow: none; | |
| resize: none; | |
| } | |
| .send-button { | |
| width: 46px; | |
| height: 46px; | |
| padding: 0; | |
| border-radius: 14px; | |
| color: white; | |
| background: linear-gradient(135deg, var(--green-900), var(--green-700)); | |
| font-size: 1.2rem; | |
| line-height: 1; | |
| } | |
| .send-button:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| } | |
| .composer-meta { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 16px; | |
| padding: 10px 4px 0; | |
| } | |
| .message-content { | |
| min-width: 0; | |
| } | |
| .hidden, | |
| .sr-only { | |
| display: none; | |
| } | |
| @keyframes fadeUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(8px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @media (max-width: 1080px) { | |
| .app-shell { | |
| grid-template-columns: 1fr; | |
| height: 100vh; | |
| } | |
| .sidebar { | |
| display: grid; | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| align-content: start; | |
| max-height: none; | |
| overflow: auto; | |
| } | |
| } | |
| @media (max-width: 720px) { | |
| .app-shell { | |
| height: 100vh; | |
| } | |
| .sidebar { | |
| grid-template-columns: 1fr; | |
| } | |
| .workspace-header, | |
| .composer-wrap { | |
| padding-inline: 16px; | |
| } | |
| .workspace-header { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .messages, | |
| .message-inner, | |
| .composer { | |
| width: calc(100% - 20px); | |
| } | |
| .prompt-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .composer-box, | |
| .composer-meta { | |
| grid-template-columns: 1fr; | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .composer-meta { | |
| gap: 8px; | |
| } | |
| .send-button { | |
| justify-self: end; | |
| } | |
| } | |