Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
216 changes: 9 additions & 207 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -830,11 +830,14 @@ summary::-webkit-details-marker {
transform-origin: center top;
}

/* Single anchor caret, centred on the "+" trigger. Detached surfaces are anchored
to the composer pill so a fixed offset works; integrated surfaces pass the exact
trigger centre via --mode-action-caret-left (set inline from updatePlacement). */
.mode-action-surface[data-placement="up"]::after {
content: "";
position: absolute;
bottom: -0.42rem;
left: 50%;
left: var(--mode-action-caret-left, 2.4rem);
z-index: 2;
width: 0.9rem;
height: 0.9rem;
Expand All @@ -851,7 +854,7 @@ summary::-webkit-details-marker {
content: "";
position: absolute;
top: -0.42rem;
left: 50%;
left: var(--mode-action-caret-left, 2.4rem);
z-index: 2;
width: 0.9rem;
height: 0.9rem;
Expand All @@ -860,11 +863,7 @@ summary::-webkit-details-marker {
border-right: 0;
border-bottom: 0;
border-top-left-radius: 0.18rem;
background: linear-gradient(
135deg,
color-mix(in srgb, var(--clinical-accent) 78%, #ffffff 22%) 0%,
color-mix(in srgb, var(--primary-700) 82%, #ffffff 18%) 100%
);
background: var(--surface-raised);
box-shadow: -5px -5px 14px rgb(15 37 48 / 6%);
}

Expand All @@ -884,154 +883,17 @@ summary::-webkit-details-marker {
border-top-right-radius: 1rem;
}

.mode-action-header {
position: relative;
z-index: 1;
display: grid;
min-height: 4.9rem;
grid-template-areas: "selector summary close";
grid-template-columns: minmax(13.5rem, 0.42fr) minmax(0, 1fr) 3.25rem;
align-items: center;
gap: 0.75rem;
padding: 0.72rem 0.78rem;
color: #fff;
background:
radial-gradient(circle at 18% 0%, rgb(255 255 255 / 18%), transparent 34%),
linear-gradient(
135deg,
color-mix(in srgb, var(--clinical-accent) 88%, #073d4a 12%) 0%,
color-mix(in srgb, var(--primary-700) 86%, #ffffff 14%) 100%
);
box-shadow:
inset 0 1px 0 rgb(255 255 255 / 18%),
inset 0 -1px 0 rgb(255 255 255 / 10%);
}

.mode-action-selector-shell {
position: relative;
grid-area: selector;
min-width: 0;
}

.mode-action-mode-button {
display: grid;
min-height: 3.15rem;
width: 100%;
min-width: 0;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 0.75rem;
border: 1px solid rgb(255 255 255 / 30%);
border-radius: 999px;
background: rgb(255 255 255 / 10%);
padding: 0.42rem 0.72rem;
color: #fff;
font-size: 1rem;
font-weight: 850;
line-height: 1;
text-align: left;
box-shadow:
inset 0 1px 0 rgb(255 255 255 / 18%),
0 8px 22px rgb(0 35 44 / 14%);
transition:
background-color 160ms ease,
border-color 160ms ease;
}

.mode-action-mode-button:hover {
border-color: rgb(255 255 255 / 42%);
background: rgb(255 255 255 / 14%);
}

.mode-action-mode-button:disabled {
cursor: default;
}

.mode-action-mode-button:focus-visible,
.mode-action-close:focus-visible,
.mode-action-mode-option:focus-visible {
outline: 2px solid color-mix(in srgb, #fff 70%, var(--clinical-accent));
outline: 2px solid var(--focus);
outline-offset: 2px;
}

.mode-action-mode-icon {
display: grid;
height: 2.1rem;
width: 2.1rem;
flex: 0 0 auto;
place-items: center;
border: 1px solid rgb(255 255 255 / 32%);
border-radius: 0.5rem;
background: rgb(255 255 255 / 12%);
color: #fff;
}

.mode-action-header-summary {
grid-area: summary;
display: flex;
min-width: 0;
align-items: center;
gap: 1rem;
color: rgb(255 255 255 / 92%);
font-size: 0.98rem;
font-weight: 720;
line-height: 1.2;
}

.mode-action-header-divider {
display: block;
height: 2.15rem;
width: 1px;
flex: 0 0 auto;
background: rgb(255 255 255 / 28%);
}

.mode-action-close {
grid-area: close;
display: grid;
height: 2.7rem;
width: 2.7rem;
place-items: center;
justify-self: center;
border: 1px solid rgb(255 255 255 / 36%);
border-radius: 999px;
background: rgb(255 255 255 / 10%);
color: #fff;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%);
transition:
background-color 160ms ease,
border-color 160ms ease;
}

.mode-action-close:hover {
border-color: rgb(255 255 255 / 48%);
background: rgb(255 255 255 / 16%);
}

.mode-action-body {
max-height: var(--mode-action-body-max-height);
overflow-y: auto;
overscroll-behavior: contain;
}

.mode-action-mode-menu {
position: absolute;
top: calc(100% + 0.45rem);
left: 0;
z-index: 20;
width: min(22rem, calc(100vw - 2rem));
max-height: min(19rem, var(--mode-action-body-max-height));
overflow-y: auto;
border: 1px solid var(--border-lux);
border-radius: 0.75rem;
background: color-mix(in srgb, var(--surface-lux) 96%, transparent);
padding: 0.4rem;
color: var(--text);
box-shadow: 0 18px 48px rgb(15 37 48 / 18%);
backdrop-filter: blur(18px) saturate(140%);
-webkit-backdrop-filter: blur(18px) saturate(140%);
}

.mode-action-mode-option {
display: grid;
min-height: 3.2rem;
Expand Down Expand Up @@ -1073,69 +935,9 @@ summary::-webkit-details-marker {
color: var(--clinical-accent);
}

/* The mode-action popover only renders ≥1024px (smaller viewports get the Sheet),
so this block holds no .mode-action-* overrides. */
@media (max-width: 430px) {
.mode-action-header {
min-height: 3.7rem;
grid-template-areas: "selector close";
grid-template-columns: minmax(0, 1fr) 2.35rem;
gap: 0.45rem;
padding: 0.48rem;
}

.mode-action-mode-button {
min-height: 2.25rem;
gap: 0.42rem;
padding-inline: 0.5rem;
font-size: 0.9rem;
}

.mode-action-mode-icon {
height: 1.45rem;
width: 1.45rem;
border-radius: 0.42rem;
}

.mode-action-mode-icon svg,
.mode-action-mode-option-icon svg {
height: 0.9rem;
width: 0.9rem;
}

.mode-action-header-summary {
display: none;
}

.mode-action-header-divider {
display: none;
}

.mode-action-close {
height: 2.05rem;
width: 2.05rem;
}

.mode-action-close svg {
height: 0.95rem;
width: 0.95rem;
}

.mode-action-mode-menu {
width: min(20rem, calc(100vw - 1.5rem));
}

.mode-action-mode-option {
min-height: 2.75rem;
grid-template-columns: 1.75rem minmax(0, 1fr) auto;
gap: 0.5rem;
padding: 0.38rem 0.45rem;
}

.mode-action-mode-option-icon {
height: 1.7rem;
width: 1.7rem;
border-radius: 0.42rem;
}

.answer-footer-search-action,
.answer-footer-search-send {
height: 2.75rem;
Expand Down
Loading
Loading