VayuChat-v2 / src /styles.css
Nipun's picture
Deploy React Vite Gemini 3.5 VayuChat (#1)
72606cb
Raw
History Blame
25.2 kB
:root {
font-family: "Avenir Next", "Segoe UI", sans-serif;
color: #20211f;
background: #f2f1ec;
font-synthesis: none;
text-rendering: optimizeLegibility;
--ink: #20211f;
--muted: #6c6d68;
--faint: #91928d;
--paper: #fcfbf8;
--ground: #f2f1ec;
--ground-deep: #e8e7e1;
--line: #d9d8d1;
--line-strong: #c4c3bc;
--accent: #36589f;
--accent-deep: #263f76;
--accent-soft: #e3e8f2;
--danger: #9b3f3f;
--danger-soft: #f4e5e2;
--shadow: 0 18px 60px rgba(30, 42, 67, 0.12);
}
* {
box-sizing: border-box;
}
html {
min-width: 320px;
min-height: 100%;
scroll-behavior: smooth;
}
body {
min-width: 320px;
min-height: 100dvh;
margin: 0;
background: var(--ground);
}
button,
input,
textarea {
font: inherit;
}
button {
color: inherit;
}
button,
summary {
-webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
outline: 3px solid rgba(54, 88, 159, 0.3);
outline-offset: 2px;
}
button:active {
transform: translateY(1px);
}
code,
pre,
.login-metrics strong,
.dataset-strip strong {
font-family: "SFMono-Regular", "Roboto Mono", monospace;
font-variant-numeric: tabular-nums;
}
.skip-link {
position: fixed;
top: 0.75rem;
left: 0.75rem;
z-index: 20;
padding: 0.65rem 0.9rem;
border-radius: 0.35rem;
color: white;
background: var(--accent-deep);
transform: translateY(-180%);
transition: transform 180ms ease;
}
.skip-link:focus {
transform: translateY(0);
}
.eyebrow {
margin: 0;
color: var(--accent);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.13em;
text-transform: uppercase;
}
.brand-lockup {
display: flex;
align-items: center;
gap: 0.75rem;
}
.brand-lockup > span:last-child {
display: grid;
gap: 0.05rem;
}
.brand-lockup strong {
font-size: 1.03rem;
font-weight: 700;
letter-spacing: -0.03em;
}
.brand-lockup small {
color: var(--muted);
font-size: 0.69rem;
font-weight: 600;
letter-spacing: 0.02em;
}
.brand-lockup--light strong,
.brand-lockup--light small {
color: #f8f7f1;
}
.brand-lockup--light small {
opacity: 0.66;
}
.brand-mark {
display: grid;
width: 2.25rem;
height: 2.25rem;
flex: 0 0 auto;
place-items: center;
border-radius: 0.55rem 0.55rem 0.55rem 0.18rem;
color: white;
background: var(--accent);
box-shadow: 0 9px 22px rgba(32, 57, 104, 0.24);
}
.brand-mark svg {
width: 1.35rem;
}
.icon-button {
display: grid;
width: 2.35rem;
height: 2.35rem;
padding: 0;
place-items: center;
border: 0;
border-radius: 0.5rem;
color: var(--muted);
background: transparent;
cursor: pointer;
transition:
color 180ms ease,
background 180ms ease,
transform 180ms ease;
}
.icon-button:hover {
color: var(--ink);
background: var(--ground-deep);
}
.icon-button svg {
width: 1.2rem;
}
/* Sign-in */
.login-shell {
display: grid;
min-height: 100dvh;
grid-template-columns: minmax(0, 1.15fr) minmax(25rem, 0.85fr);
background: var(--paper);
}
.login-story {
position: relative;
display: flex;
min-height: 100dvh;
padding: clamp(2rem, 5vw, 5rem);
flex-direction: column;
overflow: hidden;
color: #f8f7f1;
background:
radial-gradient(circle at 72% 26%, rgba(102, 128, 179, 0.24), transparent 28%),
radial-gradient(circle at 12% 82%, rgba(83, 105, 149, 0.2), transparent 24%),
#17233c;
}
.login-story::before {
position: absolute;
inset: 0;
content: "";
pointer-events: none;
opacity: 0.22;
background-image:
linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
background-size: 4.5rem 4.5rem;
mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.login-story::after {
position: absolute;
right: -9rem;
bottom: -13rem;
width: 31rem;
height: 31rem;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 50%;
box-shadow:
0 0 0 4rem rgba(255, 255, 255, 0.018),
0 0 0 8rem rgba(255, 255, 255, 0.012);
content: "";
}
.login-story > * {
position: relative;
z-index: 1;
}
.login-copy {
width: min(44rem, 90%);
margin: auto 0;
padding: 7rem 0 5rem;
}
.login-copy .eyebrow {
color: #9eb2dc;
}
.login-copy h1 {
max-width: 10ch;
margin: 1.1rem 0 1.35rem;
font-size: clamp(3.2rem, 6.5vw, 6.9rem);
font-weight: 600;
letter-spacing: -0.068em;
line-height: 0.91;
text-wrap: balance;
}
.login-copy > p:last-child {
max-width: 37rem;
margin: 0;
color: rgba(248, 247, 241, 0.69);
font-size: clamp(1rem, 1.7vw, 1.2rem);
line-height: 1.65;
text-wrap: pretty;
}
.login-metrics {
display: grid;
width: min(42rem, 100%);
grid-template-columns: repeat(3, 1fr);
border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.login-metrics span {
display: grid;
gap: 0.22rem;
padding: 1.25rem 1.5rem 0 0;
color: rgba(248, 247, 241, 0.55);
font-size: 0.72rem;
}
.login-metrics strong {
color: #f8f7f1;
font-size: 1rem;
font-weight: 650;
}
.login-panel {
position: relative;
display: grid;
min-height: 100dvh;
padding: clamp(2rem, 6vw, 6rem);
place-items: center;
background:
radial-gradient(circle at 100% 0%, #eceff6, transparent 34%),
var(--paper);
}
.login-card {
width: min(28rem, 100%);
}
.login-card > img {
width: 4.25rem;
height: 4.25rem;
margin-bottom: 3.25rem;
object-fit: contain;
opacity: 0.86;
filter: grayscale(0.8);
}
.login-card__heading {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2.4rem;
}
.lock-tile {
display: grid;
width: 3rem;
height: 3rem;
flex: 0 0 auto;
place-items: center;
border-radius: 0.65rem 0.65rem 0.65rem 0.2rem;
color: var(--accent);
background: var(--accent-soft);
}
.lock-tile svg {
width: 1.25rem;
}
.login-card h2 {
margin: 0.35rem 0 0;
font-size: clamp(1.45rem, 3vw, 2.1rem);
font-weight: 600;
letter-spacing: -0.045em;
}
.login-card form label {
display: block;
margin-bottom: 0.55rem;
font-size: 0.78rem;
font-weight: 700;
}
.password-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.6rem;
}
.password-row input {
width: 100%;
height: 3.4rem;
min-width: 0;
padding: 0 1rem;
border: 1px solid var(--line-strong);
border-radius: 0.48rem;
color: var(--ink);
background: white;
transition:
border-color 180ms ease,
box-shadow 180ms ease;
}
.password-row input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(54, 88, 159, 0.1);
}
.password-row button {
display: flex;
height: 3.4rem;
padding: 0 1.15rem;
align-items: center;
gap: 0.55rem;
border: 0;
border-radius: 0.48rem;
color: white;
background: var(--accent);
box-shadow: 0 10px 24px rgba(38, 63, 118, 0.22);
cursor: pointer;
transition:
background 180ms ease,
transform 180ms ease,
opacity 180ms ease;
}
.password-row button:hover:not(:disabled) {
background: var(--accent-deep);
}
.password-row button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.password-row button svg {
width: 1rem;
}
.form-help,
.form-error {
margin: 0.8rem 0 0;
font-size: 0.76rem;
}
.form-help {
color: var(--muted);
}
.form-error {
color: var(--danger);
}
.configuration-note {
display: grid;
gap: 0.55rem;
padding: 1rem;
border-left: 3px solid var(--accent);
color: var(--muted);
background: var(--accent-soft);
font-size: 0.83rem;
line-height: 1.55;
}
.configuration-note strong {
color: var(--ink);
}
.configuration-note code {
color: var(--accent-deep);
font-size: 0.75rem;
}
.app-loading {
display: grid;
min-height: 100dvh;
place-content: center;
place-items: center;
gap: 1rem;
color: var(--muted);
}
.app-loading p {
margin: 0;
font-size: 0.82rem;
}
/* Application shell */
.app-shell {
display: grid;
min-height: 100dvh;
grid-template-columns: 19.5rem minmax(0, 1fr);
overflow: hidden;
background: var(--paper);
}
.sidebar {
position: relative;
z-index: 5;
display: flex;
height: 100dvh;
min-height: 0;
padding: 1.35rem 1.15rem 1rem;
flex-direction: column;
border-right: 1px solid var(--line);
background: var(--ground);
}
.sidebar__top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0.25rem;
}
.sidebar__close,
.sidebar-scrim {
display: none;
}
.new-chat-button {
display: flex;
width: 100%;
margin: 1.5rem 0 1.35rem;
padding: 0.73rem 0.85rem;
align-items: center;
gap: 0.6rem;
border: 1px solid var(--line-strong);
border-radius: 0.48rem;
font-size: 0.8rem;
font-weight: 650;
background: var(--paper);
cursor: pointer;
transition:
border-color 180ms ease,
background 180ms ease,
transform 180ms ease;
}
.new-chat-button:hover {
border-color: #aeb4c2;
background: white;
}
.new-chat-button svg {
width: 1rem;
color: var(--accent);
}
.prompt-library {
min-height: 0;
flex: 1;
overflow-y: auto;
scrollbar-width: thin;
}
.sidebar-label {
margin: 0 0 0.65rem;
padding: 0 0.45rem;
color: var(--faint);
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.prompt-library details {
margin-bottom: 0.2rem;
}
.prompt-library summary {
display: flex;
padding: 0.65rem 0.45rem;
align-items: center;
justify-content: space-between;
border-radius: 0.4rem;
font-size: 0.76rem;
font-weight: 650;
cursor: pointer;
list-style: none;
}
.prompt-library summary::-webkit-details-marker {
display: none;
}
.prompt-library summary:hover {
background: var(--ground-deep);
}
.prompt-library summary svg {
width: 0.95rem;
transition: transform 180ms ease;
}
.prompt-library details[open] summary svg {
transform: rotate(180deg);
}
.prompt-list {
display: grid;
gap: 0.12rem;
padding: 0 0 0.45rem;
}
.prompt-list button {
width: 100%;
padding: 0.55rem 0.65rem 0.55rem 0.9rem;
border: 0;
border-radius: 0.35rem;
color: var(--muted);
background: transparent;
cursor: pointer;
font-size: 0.72rem;
line-height: 1.35;
text-align: left;
transition:
color 180ms ease,
background 180ms ease,
transform 180ms ease;
}
.prompt-list button:hover {
color: var(--accent-deep);
background: var(--accent-soft);
}
.sidebar__footer {
padding-top: 0.8rem;
border-top: 1px solid var(--line);
}
.data-card {
display: grid;
padding: 0.65rem 0.45rem;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0.65rem;
}
.data-card > svg {
width: 1.1rem;
color: var(--accent);
}
.data-card div {
display: grid;
gap: 0.08rem;
}
.data-card span {
font-size: 0.69rem;
font-weight: 650;
}
.data-card strong {
color: var(--muted);
font-size: 0.62rem;
font-weight: 500;
font-variant-numeric: tabular-nums;
}
.logout-button {
display: flex;
width: 100%;
padding: 0.58rem 0.45rem;
align-items: center;
gap: 0.6rem;
border: 0;
border-radius: 0.4rem;
color: var(--muted);
background: transparent;
cursor: pointer;
font-size: 0.7rem;
font-weight: 600;
transition:
color 180ms ease,
background 180ms ease;
}
.logout-button:hover {
color: var(--ink);
background: var(--ground-deep);
}
.logout-button svg {
width: 1rem;
}
.chat-workspace {
display: grid;
height: 100dvh;
min-width: 0;
grid-template-rows: auto minmax(0, 1fr) auto;
background:
radial-gradient(circle at 100% 0%, rgba(224, 229, 240, 0.5), transparent 25rem),
var(--paper);
}
.topbar {
display: flex;
min-height: 4.5rem;
padding: 0 1.65rem;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(217, 216, 209, 0.88);
background: rgba(252, 251, 248, 0.86);
backdrop-filter: blur(14px);
}
.topbar__left {
display: flex;
align-items: center;
gap: 0.75rem;
}
.topbar__left > div:last-child {
display: grid;
gap: 0.13rem;
}
.topbar__left strong {
font-size: 0.79rem;
font-weight: 700;
}
.topbar__left span {
display: flex;
align-items: center;
gap: 0.35rem;
color: var(--muted);
font-size: 0.65rem;
}
.topbar__left i {
width: 0.38rem;
height: 0.38rem;
border-radius: 50%;
background: #5c876c;
box-shadow: 0 0 0 3px rgba(92, 135, 108, 0.12);
}
.menu-button {
display: none;
}
.topbar__new {
display: flex;
padding: 0.5rem 0.7rem;
align-items: center;
gap: 0.4rem;
border: 0;
border-radius: 0.4rem;
color: var(--muted);
background: transparent;
cursor: pointer;
font-size: 0.7rem;
font-weight: 600;
transition:
color 180ms ease,
background 180ms ease;
}
.topbar__new:hover {
color: var(--ink);
background: var(--ground-deep);
}
.topbar__new svg {
width: 0.95rem;
}
.conversation {
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
.empty-state {
display: flex;
width: min(63rem, calc(100% - 3rem));
min-height: 100%;
margin: 0 auto;
padding: clamp(3rem, 8vh, 6.5rem) 0 3.5rem;
flex-direction: column;
justify-content: center;
}
.empty-state__mark {
display: grid;
width: 3.4rem;
height: 3.4rem;
margin-bottom: 1.8rem;
place-items: center;
border: 1px solid #c9d0de;
border-radius: 0.75rem 0.75rem 0.75rem 0.22rem;
color: var(--accent);
background: rgba(252, 251, 248, 0.72);
box-shadow:
inset 0 1px 0 white,
0 15px 38px rgba(30, 42, 67, 0.08);
}
.empty-state__mark svg {
width: 1.7rem;
}
.empty-state h1 {
max-width: 14ch;
margin: 0.6rem 0 0.9rem;
font-size: clamp(2.25rem, 4vw, 4.25rem);
font-weight: 600;
letter-spacing: -0.065em;
line-height: 0.98;
text-wrap: balance;
}
.empty-state__intro {
max-width: 37rem;
margin: 0;
color: var(--muted);
font-size: 0.92rem;
line-height: 1.65;
text-wrap: pretty;
}
.featured-prompts {
display: grid;
max-width: 56rem;
margin-top: 2.5rem;
border-top: 1px solid var(--line);
}
.featured-prompts button {
display: grid;
width: 100%;
padding: 1.1rem 0.25rem;
grid-template-columns: 2.4rem 1fr auto;
align-items: center;
gap: 0.8rem;
border: 0;
border-bottom: 1px solid var(--line);
color: var(--ink);
background: transparent;
cursor: pointer;
text-align: left;
transition:
color 180ms ease,
padding 180ms ease,
background 180ms ease;
}
.featured-prompts button:hover {
padding-left: 0.55rem;
color: var(--accent-deep);
background: linear-gradient(90deg, rgba(227, 232, 242, 0.65), transparent);
}
.featured-prompts span {
color: var(--faint);
font-family: "SFMono-Regular", "Roboto Mono", monospace;
font-size: 0.62rem;
}
.featured-prompts strong {
font-size: 0.82rem;
font-weight: 600;
}
.featured-prompts svg {
width: 1rem;
}
.dataset-strip {
display: flex;
margin-top: 2.5rem;
padding: 1.15rem 1.3rem;
align-items: center;
gap: 1.6rem;
border-radius: 0.55rem 0.55rem 0.55rem 0.18rem;
color: var(--muted);
background: var(--ground);
}
.dataset-strip > svg {
width: 1.2rem;
flex: 0 0 auto;
color: var(--accent);
}
.dataset-strip span {
display: grid;
gap: 0.12rem;
padding-left: 1.6rem;
border-left: 1px solid var(--line);
font-size: 0.61rem;
}
.dataset-strip span:nth-child(2) {
padding-left: 0;
border-left: 0;
}
.dataset-strip strong {
color: var(--ink);
font-size: 0.69rem;
font-weight: 650;
}
/* Conversation */
.message-list {
width: min(57rem, calc(100% - 3rem));
margin: 0 auto;
padding: 2.8rem 0 4rem;
}
.message {
animation: message-in 280ms ease both;
}
@keyframes message-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message--user {
display: flex;
margin: 0 0 2.5rem;
justify-content: flex-end;
}
.user-bubble {
max-width: min(38rem, 82%);
padding: 0.85rem 1rem;
border-radius: 0.7rem 0.7rem 0.18rem 0.7rem;
color: white;
background: var(--accent);
box-shadow: 0 10px 26px rgba(38, 63, 118, 0.16);
font-size: 0.86rem;
line-height: 1.55;
}
.message--assistant {
display: grid;
margin: 0 0 3.6rem;
grid-template-columns: 2.3rem minmax(0, 1fr);
gap: 0.9rem;
}
.assistant-avatar {
display: grid;
width: 2.3rem;
height: 2.3rem;
place-items: center;
border: 1px solid #cbd1dd;
border-radius: 0.52rem 0.52rem 0.52rem 0.16rem;
color: var(--accent);
background: var(--paper);
}
.assistant-avatar svg {
width: 1.15rem;
}
.assistant-body {
min-width: 0;
padding-top: 0.12rem;
}
.assistant-meta {
display: flex;
margin-bottom: 0.75rem;
align-items: baseline;
gap: 0.55rem;
}
.assistant-meta strong {
font-size: 0.75rem;
}
.assistant-meta span {
color: var(--faint);
font-size: 0.62rem;
}
.answer-lead {
max-width: 70ch;
margin: 0;
font-size: 0.91rem;
line-height: 1.72;
white-space: pre-wrap;
}
.key-points {
display: grid;
max-width: 66ch;
margin: 1rem 0 0;
padding-left: 1.15rem;
gap: 0.45rem;
color: var(--muted);
font-size: 0.79rem;
line-height: 1.55;
}
.key-points li::marker {
color: var(--accent);
}
.answer-error {
max-width: 42rem;
padding: 0.9rem 1rem;
border-left: 3px solid var(--danger);
color: var(--danger);
background: var(--danger-soft);
}
.answer-error strong {
font-size: 0.78rem;
}
.answer-error p {
margin: 0.3rem 0 0;
font-size: 0.76rem;
line-height: 1.5;
}
.analysis-chart {
margin: 1.7rem 0 1rem;
padding: 1rem 1rem 0.75rem;
border: 1px solid var(--line);
border-radius: 0.65rem 0.65rem 0.65rem 0.18rem;
background: rgba(252, 251, 248, 0.7);
}
.chart-loading {
height: 20rem;
margin: 1.7rem 0 1rem;
border-radius: 0.65rem;
background: linear-gradient(
90deg,
var(--ground) 0%,
#f8f7f3 45%,
var(--ground) 90%
);
background-size: 240% 100%;
animation: shimmer 1.3s ease infinite;
}
.analysis-chart figcaption {
margin: 0 0 0.9rem 0.35rem;
font-size: 0.72rem;
font-weight: 700;
}
.chart-frame {
width: 100%;
height: 20rem;
}
.data-details,
.method-details {
margin-top: 0.75rem;
border-top: 1px solid var(--line);
}
.data-details summary,
.method-details summary {
display: flex;
padding: 0.8rem 0.1rem;
align-items: center;
gap: 0.45rem;
color: var(--muted);
cursor: pointer;
font-size: 0.69rem;
font-weight: 650;
list-style: none;
}
.data-details summary::-webkit-details-marker,
.method-details summary::-webkit-details-marker {
display: none;
}
.data-details summary:hover,
.method-details summary:hover {
color: var(--accent-deep);
}
.data-details summary svg,
.method-details summary svg {
width: 0.95rem;
}
.data-details summary span {
margin-left: auto;
color: var(--faint);
font-family: "SFMono-Regular", "Roboto Mono", monospace;
font-size: 0.6rem;
font-weight: 500;
}
.table-scroll {
max-height: 22rem;
overflow: auto;
border: 1px solid var(--line);
border-radius: 0.45rem;
}
table {
width: 100%;
border-collapse: collapse;
background: var(--paper);
font-size: 0.68rem;
font-variant-numeric: tabular-nums;
}
th,
td {
padding: 0.62rem 0.7rem;
border-bottom: 1px solid #e5e4de;
text-align: left;
white-space: nowrap;
}
th {
position: sticky;
top: 0;
z-index: 1;
color: var(--muted);
background: var(--ground);
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
tbody tr:hover {
background: #f6f5f1;
}
.method-details p {
max-width: 68ch;
margin: 0 0 0.75rem;
color: var(--muted);
font-size: 0.7rem;
line-height: 1.55;
}
.method-details pre {
max-height: 15rem;
margin: 0;
padding: 0.85rem;
overflow: auto;
border-radius: 0.4rem;
color: #dce3f0;
background: #1c263a;
font-size: 0.62rem;
line-height: 1.55;
white-space: pre-wrap;
}
.analysis-skeleton {
display: grid;
width: min(36rem, 80%);
gap: 0.55rem;
}
.analysis-skeleton i {
height: 0.72rem;
border-radius: 0.15rem;
background: linear-gradient(
90deg,
var(--ground-deep) 0%,
#f5f4f0 45%,
var(--ground-deep) 90%
);
background-size: 240% 100%;
animation: shimmer 1.3s ease infinite;
}
.analysis-skeleton i:nth-child(2) {
width: 83%;
}
.analysis-skeleton i:nth-child(3) {
width: 58%;
}
@keyframes shimmer {
from {
background-position: 100% 0;
}
to {
background-position: -100% 0;
}
}
/* Composer */
.composer-wrap {
position: relative;
z-index: 2;
padding: 0 1.5rem 1rem;
background: linear-gradient(to top, var(--paper) 70%, rgba(252, 251, 248, 0));
}
.composer {
display: grid;
width: min(57rem, 100%);
margin: 0 auto;
padding: 0.55rem 0.55rem 0.55rem 1rem;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
border: 1px solid var(--line-strong);
border-radius: 0.7rem 0.7rem 0.7rem 0.22rem;
background: white;
box-shadow: 0 16px 44px rgba(30, 42, 67, 0.11);
transition:
border-color 180ms ease,
box-shadow 180ms ease;
}
.composer:focus-within {
border-color: #8b9abd;
box-shadow:
0 16px 44px rgba(30, 42, 67, 0.12),
0 0 0 4px rgba(54, 88, 159, 0.08);
}
.composer label {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.composer textarea {
width: 100%;
min-height: 2.5rem;
max-height: 8rem;
padding: 0.63rem 0.4rem 0.55rem 0;
resize: none;
overflow-y: auto;
border: 0;
outline: none;
color: var(--ink);
background: transparent;
font-size: 0.8rem;
line-height: 1.45;
}
.composer textarea::placeholder {
color: #9b9c97;
}
.composer > button {
display: grid;
width: 2.5rem;
height: 2.5rem;
padding: 0;
place-items: center;
border: 0;
border-radius: 0.48rem 0.48rem 0.48rem 0.16rem;
color: white;
background: var(--accent);
cursor: pointer;
transition:
background 180ms ease,
opacity 180ms ease,
transform 180ms ease;
}
.composer > button:hover:not(:disabled) {
background: var(--accent-deep);
}
.composer > button:disabled {
cursor: not-allowed;
opacity: 0.35;
}
.composer > button svg {
width: 1.1rem;
}
.composer-wrap > p {
width: min(57rem, 100%);
margin: 0.45rem auto 0;
color: var(--faint);
font-size: 0.59rem;
text-align: center;
}
/* Responsive */
@media (max-width: 880px) {
.login-shell {
grid-template-columns: 1fr;
}
.login-story {
min-height: 48rem;
}
.login-panel {
min-height: auto;
padding-top: 5rem;
padding-bottom: 6rem;
}
.app-shell {
grid-template-columns: 1fr;
}
.sidebar {
position: fixed;
inset: 0 auto 0 0;
width: min(20rem, calc(100vw - 3.5rem));
transform: translateX(-102%);
transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar.is-open {
transform: translateX(0);
box-shadow: var(--shadow);
}
.sidebar__close {
display: grid;
}
.sidebar-scrim {
position: fixed;
inset: 0;
z-index: 4;
display: block;
border: 0;
visibility: hidden;
opacity: 0;
background: rgba(20, 26, 38, 0.36);
backdrop-filter: blur(2px);
transition:
opacity 200ms ease,
visibility 200ms ease;
}
.sidebar-scrim.is-visible {
visibility: visible;
opacity: 1;
}
.menu-button {
display: grid;
}
}
@media (max-width: 620px) {
.login-story {
min-height: 42rem;
padding: 1.5rem;
}
.login-copy {
width: 100%;
padding: 5rem 0 3rem;
}
.login-copy h1 {
font-size: clamp(3.2rem, 18vw, 4.6rem);
}
.login-metrics span {
padding-right: 0.6rem;
font-size: 0.61rem;
}
.login-metrics strong {
font-size: 0.8rem;
}
.login-panel {
padding: 4.5rem 1.5rem 5rem;
}
.password-row {
grid-template-columns: 1fr;
}
.password-row button {
justify-content: center;
}
.topbar {
min-height: 4rem;
padding: 0 0.9rem;
}
.topbar__new span {
display: none;
}
.empty-state {
width: calc(100% - 2rem);
padding-top: 3.5rem;
justify-content: flex-start;
}
.empty-state h1 {
font-size: 2.55rem;
}
.empty-state__intro {
font-size: 0.82rem;
}
.featured-prompts {
margin-top: 2rem;
}
.featured-prompts button {
grid-template-columns: 1.8rem 1fr auto;
}
.dataset-strip {
display: grid;
grid-template-columns: auto 1fr;
gap: 0.7rem 0.9rem;
}
.dataset-strip span,
.dataset-strip span:nth-child(2) {
padding: 0;
border: 0;
}
.dataset-strip span:nth-child(n + 3) {
grid-column: 2;
}
.message-list {
width: calc(100% - 1.5rem);
padding-top: 1.8rem;
}
.message--assistant {
grid-template-columns: 2rem minmax(0, 1fr);
gap: 0.65rem;
}
.assistant-avatar {
width: 2rem;
height: 2rem;
}
.user-bubble {
max-width: 90%;
}
.analysis-chart {
margin-left: calc(-2rem - 0.65rem);
padding-right: 0.4rem;
padding-left: 0.4rem;
}
.chart-frame {
height: 16rem;
}
.composer-wrap {
padding: 0 0.75rem 0.65rem;
}
.composer-wrap > p {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}