:root { --ink: #071018; --panel: #0e1a24; --panel-2: #132433; --line: rgba(164, 210, 196, 0.14); --text: #e7f2ec; --muted: #8aa39a; --mint: #5fdbb0; --mint-dim: #2f9e7a; --warn: #ffb454; --danger: #ff7b72; --mine: #1a3a32; --theirs: #162230; --shadow: 0 24px 60px rgba(0, 0, 0, 0.45); --radius: 18px; --font: "Instrument Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: var(--font); color: var(--text); background: radial-gradient(1000px 520px at 12% -10%, rgba(95, 219, 176, 0.18), transparent 60%), radial-gradient(800px 480px at 100% 0%, rgba(68, 120, 168, 0.22), transparent 55%), linear-gradient(160deg, #050b11 0%, #0a141c 45%, #0c1822 100%); min-height: 100%; } button, input, textarea { font: inherit; color: inherit; } button { cursor: pointer; } code { font-family: var(--mono); font-size: 0.82em; word-break: break-all; } #app { min-height: 100%; display: grid; grid-template-rows: auto 1fr; } .hidden { display: none !important; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); background: rgba(7, 16, 24, 0.72); position: sticky; top: 0; z-index: 5; } .brand { display: flex; align-items: center; gap: 0.85rem; } .brand-mark { width: 2.4rem; height: 2.4rem; border-radius: 0.85rem; background: linear-gradient(145deg, var(--mint), #2a6f8f 70%); box-shadow: 0 0 0 1px rgba(95, 219, 176, 0.35), 0 10px 30px rgba(47, 158, 122, 0.35); animation: pulse-mark 4s ease-in-out infinite; } .brand-name { margin: 0; font-weight: 700; letter-spacing: -0.03em; font-size: 1.2rem; } .brand-sub { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.78rem; font-family: var(--mono); } .topbar-status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.82rem; font-family: var(--mono); background: rgba(19, 36, 51, 0.7); } .topbar-status .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.5); } .topbar-status.is-ok .dot { background: var(--mint); animation: blink-ok 2.4s ease-in-out infinite; } .topbar-status.is-bad .dot { background: var(--danger); } .gate { display: grid; place-items: center; padding: 2rem 1rem 3rem; } .gate-panel { width: min(480px, 100%); padding: 1.75rem; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19, 36, 51, 0.95), rgba(14, 26, 36, 0.92)); box-shadow: var(--shadow); animation: rise 0.55s ease both; } .gate-panel h1 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.04em; line-height: 1.15; } .lede { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.45; } .lede.tight { margin-bottom: 0.85rem; font-size: 0.92rem; } .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-bottom: 1rem; padding: 0.3rem; border-radius: 12px; background: rgba(7, 16, 24, 0.55); border: 1px solid var(--line); } .tab { border: 0; background: transparent; color: var(--muted); padding: 0.65rem 0.75rem; border-radius: 9px; font-weight: 500; } .tab.is-active { background: rgba(95, 219, 176, 0.14); color: var(--text); } .stack { display: grid; gap: 0.85rem; } .stack label { display: grid; gap: 0.35rem; } .stack label > span { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); text-transform: lowercase; } input, textarea { width: 100%; border: 1px solid var(--line); background: rgba(7, 16, 24, 0.65); border-radius: 12px; padding: 0.75rem 0.85rem; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; } input:focus, textarea:focus { border-color: rgba(95, 219, 176, 0.55); box-shadow: 0 0 0 3px rgba(95, 219, 176, 0.12); } textarea { resize: vertical; min-height: 4rem; } .btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 12px; padding: 0.7rem 1rem; font-weight: 600; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease; } .btn:hover { transform: translateY(-1px); border-color: rgba(95, 219, 176, 0.35); } .btn:active { transform: translateY(0); } .btn.primary { background: linear-gradient(180deg, #4fd4a5, var(--mint-dim)); border-color: transparent; color: #04120d; } .btn.ghost { background: transparent; } .btn.small { padding: 0.4rem 0.7rem; font-size: 0.85rem; border-radius: 10px; } .linkish { border: 0; background: none; color: var(--mint); font-family: var(--mono); font-size: 0.75rem; padding: 0; } .hint { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; } .error { margin: 0.75rem 0 0; color: var(--danger); font-size: 0.9rem; } .shell { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: calc(100vh - 70px); animation: rise 0.45s ease both; } .sidebar { border-right: 1px solid var(--line); background: rgba(8, 16, 24, 0.55); padding: 1rem; display: flex; flex-direction: column; gap: 0.85rem; min-height: 0; } .me-card { padding: 0.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(95, 219, 176, 0.08), rgba(14, 26, 36, 0.9)); } .me-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; } .me-name { margin: 0; font-weight: 650; letter-spacing: -0.02em; } .me-user { margin: 0.15rem 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.82rem; } .meta { margin: 0.85rem 0 0; display: grid; gap: 0.55rem; } .meta dt { margin: 0; font-size: 0.7rem; color: var(--muted); font-family: var(--mono); text-transform: lowercase; } .meta dd { margin: 0.15rem 0 0; font-size: 0.82rem; } .sidebar-head { display: flex; align-items: center; justify-content: space-between; } .sidebar-head h2 { margin: 0; font-size: 0.95rem; letter-spacing: -0.02em; } .chat-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 0.35rem; flex: 1; } .chat-list button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 0.75rem 0.8rem; display: grid; gap: 0.2rem; } .chat-list button:hover { background: rgba(95, 219, 176, 0.07); } .chat-list button.is-active { background: rgba(95, 219, 176, 0.12); border-color: rgba(95, 219, 176, 0.28); } .chat-list .title { font-weight: 600; } .chat-list .sub { color: var(--muted); font-size: 0.75rem; font-family: var(--mono); } .empty { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; } .stage { min-width: 0; min-height: 0; display: grid; } .stage-empty { place-self: center; max-width: 28rem; text-align: center; padding: 2rem; color: var(--muted); } .stage-empty h2 { margin: 0 0 0.5rem; color: var(--text); letter-spacing: -0.03em; } .stage-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100vh - 70px); } .chat-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: rgba(8, 16, 24, 0.35); } .chat-head h2 { margin: 0; letter-spacing: -0.03em; font-size: 1.15rem; } .chat-members { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.78rem; font-family: var(--mono); } .messages { overflow: auto; padding: 1.1rem 1.25rem 0.5rem; display: flex; flex-direction: column; gap: 0.65rem; } .bubble { max-width: min(72%, 540px); padding: 0.7rem 0.85rem; border-radius: 14px; border: 1px solid var(--line); animation: pop 0.28s ease both; } .bubble.mine { align-self: flex-end; background: var(--mine); border-color: rgba(95, 219, 176, 0.22); } .bubble.theirs { align-self: flex-start; background: var(--theirs); } .bubble .who { margin: 0 0 0.25rem; font-size: 0.72rem; color: var(--muted); font-family: var(--mono); } .bubble .text { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.4; } .bubble .when { margin: 0.35rem 0 0; font-size: 0.7rem; color: var(--muted); font-family: var(--mono); text-align: right; } .composer { display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; padding: 0.9rem 1.25rem 1.15rem; border-top: 1px solid var(--line); background: rgba(8, 16, 24, 0.55); } .composer textarea { min-height: 3.2rem; } .dialog { border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 0; background: var(--panel); color: var(--text); width: min(440px, calc(100% - 2rem)); box-shadow: var(--shadow); } .dialog::backdrop { background: rgba(2, 8, 12, 0.72); backdrop-filter: blur(4px); } .dialog form { padding: 1.25rem; } .dialog h3 { margin: 0 0 0.35rem; letter-spacing: -0.03em; } .row { display: flex; gap: 0.6rem; flex-wrap: wrap; } .toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: #173043; border: 1px solid var(--line); color: var(--text); padding: 0.7rem 1rem; border-radius: 999px; font-size: 0.88rem; box-shadow: var(--shadow); z-index: 20; animation: rise 0.25s ease both; } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes blink-ok { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 219, 176, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(95, 219, 176, 0); } } @keyframes pulse-mark { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } } @media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); max-height: 42vh; } .stage-chat { min-height: 58vh; } .composer { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }