Files
PTSRaiAgent/web/src/theme/global.css
T
Pavel Eliseev 2a2fdb171e
CI / ruff · pytest (pull_request) Successful in 2m16s
feat(ui): extend minimal doctor design across all screens
Refs #85
2026-10-04 16:09:57 +03:00

2940 lines
48 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Phone-first patient workspace, matching the doctor dashboard. */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
margin: 0;
font-family: var(--font);
font-size: var(--fs-16);
line-height: 1.45;
color: var(--c-text);
background: var(--c-page);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
ul,
ol {
margin: 0;
}
ul,
ol {
padding: 0;
list-style: none;
}
a {
color: var(--c-blue);
}
button,
input,
textarea {
font: inherit;
color: inherit;
}
button {
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
}
:focus-visible {
outline: 3px solid var(--c-focus);
outline-offset: 2px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
/* ---------------------------------------------------------------- app frame */
.app {
min-height: 100dvh;
}
.sidebar,
.rail {
display: none;
}
.screen {
width: 100%;
max-width: 640px;
margin: 0 auto;
padding: calc(var(--s-4) + var(--safe-top)) max(var(--s-5), var(--safe-right)) calc(var(--s-6) + var(--safe-bottom))
max(var(--s-5), var(--safe-left));
display: grid;
gap: var(--s-6);
align-content: start;
}
.app--tabs .screen {
padding-bottom: calc(var(--nav-h) + var(--s-6) + var(--safe-bottom));
}
/* bottom tab bar */
.tabbar {
position: fixed;
inset: auto 0 0 0;
z-index: 20;
display: grid;
grid-template-columns: repeat(4, 1fr);
height: calc(var(--nav-h) + var(--safe-bottom));
padding-bottom: var(--safe-bottom);
background: var(--c-surface);
border-top: 1px solid var(--c-border);
}
.tabbar__item {
display: grid;
place-items: center;
align-content: center;
gap: 2px;
font-size: var(--fs-12);
font-weight: 500;
color: var(--c-text-3);
text-decoration: none;
}
.tabbar__item.active {
color: var(--c-primary);
font-weight: 600;
}
/* ---------------------------------------------------------------- type */
.h1 {
font-size: var(--fs-28);
font-weight: 550;
line-height: 1.15;
letter-spacing: -0.02em;
color: var(--c-text);
text-wrap: balance;
}
.h2 {
font-size: var(--fs-20);
font-weight: 550;
line-height: 1.2;
}
.h3 {
font-size: var(--fs-18);
font-weight: 600;
}
.lead {
font-size: var(--fs-16);
color: var(--c-text-2);
}
.muted {
color: var(--c-text-2);
font-size: var(--fs-14);
}
.small {
font-size: var(--fs-13);
}
.center {
text-align: center;
justify-self: center;
}
.body-text {
display: grid;
gap: var(--s-3);
color: var(--c-text-2);
white-space: pre-line;
}
.bullets {
display: grid;
gap: var(--s-2);
}
.bullets li {
position: relative;
padding-left: var(--s-5);
}
.bullets li::before {
content: "";
position: absolute;
left: 4px;
top: 0.55em;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--c-teal);
}
.tel {
font-weight: 600;
white-space: nowrap;
color: var(--c-red-strong);
}
/* ---------------------------------------------------------------- layout helpers */
.stack {
display: grid;
gap: var(--s-5);
align-content: start;
}
.stack--sm {
gap: var(--s-3);
}
.narrow {
width: 100%;
max-width: 560px;
justify-self: center;
}
.head {
display: grid;
gap: var(--s-3);
}
.btn-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s-3);
}
.topbar {
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 44px;
}
.topbar__title {
font-size: var(--fs-20);
font-weight: 600;
}
.divider {
display: flex;
align-items: center;
gap: var(--s-3);
color: var(--c-text-3);
font-size: var(--fs-14);
}
.divider::before,
.divider::after {
content: "";
flex: 1;
height: 1px;
background: var(--c-border);
}
/* ---------------------------------------------------------------- controls */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--s-2);
width: 100%;
min-height: var(--tap);
padding: 0 var(--s-5);
border-radius: var(--r-btn);
border: 1.5px solid transparent;
font-weight: 600;
font-size: var(--fs-16);
text-align: center;
transition:
background-color 120ms var(--ease),
border-color 120ms var(--ease),
transform 120ms var(--ease);
}
.btn:active:not(:disabled) {
transform: scale(0.985);
}
.btn--primary {
background: var(--c-primary);
color: #fff;
}
.btn--primary:hover:not(:disabled) {
background: var(--c-primary-hover);
}
.btn--outline {
background: var(--c-surface);
border-color: var(--c-primary);
color: var(--c-primary);
}
.btn--ghost {
background: var(--c-tile);
border-color: var(--c-border);
color: var(--c-primary);
}
.btn--soft {
background: var(--c-blue-soft);
color: var(--c-primary);
border-color: var(--c-border);
}
.btn--danger {
background: var(--c-red);
color: #fff;
}
.btn--primary:disabled,
.btn--danger:disabled {
background: var(--c-border-strong);
color: #fff;
}
.icon-btn {
position: relative;
flex: none;
width: 44px;
height: 44px;
display: grid;
place-items: center;
margin-left: -10px;
border: 0;
border-radius: var(--r-tile);
background: transparent;
color: var(--c-text);
}
.icon-btn:hover {
background: var(--c-tile);
}
.icon-btn--bell {
margin-left: 0;
margin-right: -10px;
}
.dot {
position: absolute;
top: 9px;
right: 10px;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--c-red);
border: 2px solid var(--c-surface);
}
.chip {
display: inline-flex;
align-items: center;
padding: 4px var(--s-3);
border-radius: var(--r-chip);
font-size: var(--fs-13);
font-weight: 600;
white-space: nowrap;
}
.chip--teal {
background: var(--c-teal-soft);
color: var(--c-teal-strong);
}
.chip--teal-solid {
background: var(--c-teal);
color: #fff;
}
.tile-icon {
flex: none;
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: var(--r-btn);
background: var(--c-tile);
color: var(--c-primary);
}
.tile-icon--teal {
background: var(--c-teal-soft);
color: var(--c-teal);
}
.tile-icon--blue {
background: var(--c-blue-soft);
color: var(--c-blue);
}
.tile-icon--red {
background: var(--c-red-soft);
color: var(--c-red);
}
.tile-icon--xl {
width: 80px;
height: 80px;
border-radius: 50%;
justify-self: center;
}
.badge-icon {
flex: none;
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 50%;
color: #fff;
}
.badge-icon--teal {
background: var(--c-teal);
}
.badge-icon--red {
background: var(--c-red);
}
.avatar {
flex: none;
width: 44px;
height: 44px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-blue-soft);
color: var(--c-blue);
font-weight: 600;
}
.avatar--lg {
width: 52px;
height: 52px;
}
.notice {
display: flex;
gap: var(--s-3);
align-items: flex-start;
padding: var(--s-4);
border-radius: var(--r-tile);
font-size: var(--fs-14);
color: var(--c-text);
}
.notice > svg {
flex: none;
}
.notice--info {
background: var(--c-blue-soft);
}
.notice--info > svg {
color: var(--c-blue);
}
.notice--warn,
.notice--danger {
background: var(--c-red-soft);
color: var(--c-red-strong);
}
.notice--ok {
background: var(--c-teal-soft);
}
.notice--ok > svg {
color: var(--c-teal);
}
.code-input {
width: 100%;
min-height: 60px;
padding: 0 var(--s-5);
border: 1.5px solid var(--c-border-strong);
border-radius: var(--r-btn);
background: var(--c-surface);
font-size: var(--fs-24);
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.code-input::placeholder {
font-size: var(--fs-16);
font-weight: 400;
letter-spacing: 0;
text-transform: none;
color: var(--c-text-3);
}
.code-input:focus-visible {
outline: none;
border-color: var(--c-teal);
box-shadow: 0 0 0 4px var(--c-teal-soft);
}
.code-input.is-error {
border-color: var(--c-red);
background: var(--c-red-soft);
}
/* ---------------------------------------------------------------- cards */
.panel {
border: 1px solid var(--c-border);
display: grid;
gap: var(--s-3);
padding: var(--s-4);
border-radius: var(--r-tile);
background: var(--c-tile);
}
.panel--teal {
background: var(--c-teal-soft);
}
.panel--red {
background: var(--c-red-soft);
}
.panel--scroll {
max-height: 46vh;
overflow-y: auto;
background: var(--c-surface);
border: 1px solid var(--c-border);
font-size: var(--fs-14);
}
.panel__title {
display: flex;
align-items: center;
gap: var(--s-2);
font-weight: 600;
}
.iconlist {
display: grid;
gap: var(--s-3);
padding-left: var(--s-1);
}
.iconlist li {
display: flex;
align-items: center;
gap: var(--s-3);
font-size: var(--fs-14);
}
.iconlist svg {
color: var(--c-text-2);
}
.row-card {
width: 100%;
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 72px;
padding: var(--s-3) var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
color: var(--c-text);
}
.row-card > svg:last-child {
flex: none;
color: var(--c-text-3);
}
button.row-card:hover:not(:disabled) {
border-color: var(--c-border-strong);
background: var(--c-tile);
}
.row-card--static {
background: var(--c-tile);
border-color: transparent;
}
.row-card--danger {
background: var(--c-red-soft);
border-color: var(--c-red-line);
color: var(--c-red-strong);
}
.row-card__text {
flex: 1;
display: grid;
min-width: 0;
}
.row-card__title {
display: block;
font-weight: 600;
}
.row-card__sub {
display: block;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.card-list {
display: grid;
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
overflow: hidden;
}
.card-list__row {
display: flex;
align-items: center;
gap: var(--s-3);
padding: var(--s-4);
background: var(--c-surface);
}
.card-list__row + .card-list__row {
border-top: 1px solid var(--c-border);
}
/* ---------------------------------------------------------------- A1 entry */
.signin {
max-width: 640px;
}
/* Standalone sign-in page: no sidebar, one centred card */
.signin-page {
min-height: 100vh;
min-height: 100dvh;
display: grid;
place-items: center;
padding: var(--s-8) var(--s-4);
background: var(--c-page-desk);
}
.signin-page .signin {
width: 100%;
max-width: 480px;
display: grid;
gap: var(--s-5);
}
.signin__brand {
display: flex;
align-items: center;
justify-content: center;
gap: var(--s-3);
}
.signin__name {
display: block;
font-size: var(--fs-18);
font-weight: 600;
color: var(--c-text);
}
.signin__tag {
display: block;
font-size: var(--fs-14);
color: var(--c-text-2);
}
.signin__card {
display: grid;
gap: var(--s-5);
padding: var(--s-8) var(--s-6);
border-radius: var(--r-tile);
background: var(--c-surface);
border: 1px solid var(--c-border);
}
.signin__card .entry__title {
flex: 1;
}
.signin__perks {
display: grid;
gap: var(--s-2);
font-size: var(--fs-14);
color: var(--c-text-2);
}
.signin__perks li {
display: flex;
align-items: flex-start;
gap: var(--s-2);
}
.signin__perks svg {
flex: none;
margin-top: 1px;
color: var(--c-teal);
}
.signin__foot {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s-3);
padding: var(--s-3) var(--s-4);
border-radius: var(--r-tile);
background: var(--c-red-soft);
}
.signin__sos {
border: 0;
background: transparent;
padding: 8px 0;
min-height: 44px;
text-align: left;
display: inline-flex;
align-items: center;
gap: var(--s-2);
font-weight: 600;
color: var(--c-red-strong);
}
.signin__tel {
font-size: var(--fs-20);
font-weight: 600;
color: var(--c-red-strong);
text-decoration: none;
}
.entry-grid {
display: grid;
gap: var(--s-4);
}
.entry {
display: grid;
gap: var(--s-3);
padding: var(--s-5);
border: 1.5px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
color: var(--c-text);
transition: border-color 120ms var(--ease);
}
.entry:hover {
border-color: var(--c-border-strong);
}
.entry--emias {
background: var(--c-teal-soft);
border-color: transparent;
}
.entry--emias:hover {
border-color: var(--c-teal);
}
.entry__top {
display: flex;
align-items: center;
gap: var(--s-3);
}
.entry--emias .tile-icon {
background: var(--c-surface);
}
.entry__title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fs-20);
font-weight: 600;
}
.entry__title svg {
color: var(--c-text-3);
}
.entry__text {
font-size: var(--fs-14);
color: var(--c-text-2);
}
/* ---------------------------------------------------------------- focus screens */
.progress {
flex: 1;
display: grid;
gap: 6px;
}
.progress__bar {
height: 6px;
border-radius: 3px;
background: var(--c-border);
overflow: hidden;
}
.progress__bar > span {
display: block;
height: 100%;
border-radius: 3px;
background: var(--c-teal);
transition: width 240ms var(--ease);
}
.progress__label {
font-size: var(--fs-13);
color: var(--c-text-2);
}
.options {
display: grid;
gap: var(--s-3);
}
.option {
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 60px;
padding: var(--s-3) var(--s-4);
border: 1.5px solid var(--c-border);
border-radius: var(--r-btn);
background: var(--c-surface);
text-align: left;
font-size: var(--fs-16);
font-weight: 500;
transition:
background-color 120ms var(--ease),
border-color 120ms var(--ease);
}
.option:hover {
border-color: var(--c-border-strong);
}
.option__mark {
flex: none;
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 50%;
border: 2px solid var(--c-border-strong);
color: #fff;
}
.option.is-on {
background: var(--c-teal-soft);
border-color: var(--c-teal);
}
.option.is-on .option__mark {
background: var(--c-teal);
border-color: var(--c-teal);
}
.numscale {
display: grid;
gap: var(--s-4);
padding: var(--s-4) 0;
}
.numscale__value {
justify-self: center;
font-size: var(--fs-48);
font-weight: 600;
line-height: 1;
color: var(--c-primary);
}
.numscale__row {
display: grid;
grid-template-columns: repeat(var(--n, 11), 1fr);
gap: 4px;
}
.num {
aspect-ratio: 1;
width: 100%;
max-width: 52px;
justify-self: center;
display: grid;
place-items: center;
padding: 0;
border: 1.5px solid var(--c-border-strong);
border-radius: 50%;
background: var(--c-surface);
font-size: var(--fs-13);
font-weight: 600;
color: var(--c-text-2);
}
.num.is-on {
background: var(--c-teal);
border-color: var(--c-teal);
color: #fff;
transform: scale(1.12);
}
.numscale__ends {
display: flex;
justify-content: space-between;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.textarea {
position: relative;
}
.textarea textarea {
width: 100%;
min-height: 150px;
padding: var(--s-4);
border: 1.5px solid var(--c-border);
border-radius: var(--r-tile);
resize: vertical;
font-size: var(--fs-16);
}
.textarea textarea:focus-visible {
outline: none;
border-color: var(--c-teal);
box-shadow: 0 0 0 4px var(--c-teal-soft);
}
.textarea__count {
position: absolute;
right: var(--s-4);
bottom: var(--s-3);
font-size: var(--fs-12);
color: var(--c-text-3);
}
.reminder {
display: grid;
gap: var(--s-3);
justify-items: center;
padding: var(--s-6) var(--s-4);
border-radius: var(--r-tile);
background: var(--c-teal-soft);
}
.reminder .tile-icon {
background: var(--c-surface);
}
.body-text__block {
display: grid;
gap: var(--s-2);
}
.reminder__time {
display: flex;
align-items: center;
gap: var(--s-3);
justify-content: center;
min-width: 200px;
padding: var(--s-3) var(--s-5);
border-radius: var(--r-tile);
background: var(--c-surface);
font-size: var(--fs-28);
font-weight: 600;
color: var(--c-primary);
}
.reminder__time svg {
color: var(--c-blue);
}
.reminder__drug {
font-weight: 600;
}
.acts {
display: grid;
gap: var(--s-3);
}
.act {
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 60px;
padding: 0 var(--s-4);
border: 0;
border-radius: var(--r-btn);
background: var(--c-blue-soft);
color: var(--c-primary);
font-size: var(--fs-18);
font-weight: 600;
}
.act__icon {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border-radius: 50%;
border: 2px solid currentColor;
}
.act--teal {
background: var(--c-teal);
color: #fff;
}
.act--teal .act__icon {
background: #fff;
border-color: #fff;
color: var(--c-teal);
}
.act--red {
background: var(--c-red-soft);
color: var(--c-red-strong);
}
.act--red .act__icon {
background: var(--c-red);
border-color: var(--c-red);
color: #fff;
}
.act:disabled {
opacity: 0.6;
}
.breath {
display: flex;
gap: var(--s-4);
align-items: center;
padding: var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
}
.breath > svg {
flex: none;
color: var(--c-blue);
}
.breath__text {
flex: 1;
display: grid;
gap: var(--s-2);
}
.breath__title {
font-weight: 600;
}
.breath__viz {
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.breath__ring {
width: 64px;
height: 64px;
border-radius: 50%;
border: 6px solid var(--c-teal-soft);
border-top-color: var(--c-teal);
border-right-color: var(--c-border-strong);
animation: breathe 10s var(--ease) infinite;
}
@keyframes breathe {
0% {
transform: scale(0.78) rotate(0deg);
}
40% {
transform: scale(1.12) rotate(144deg);
}
100% {
transform: scale(0.78) rotate(360deg);
}
}
.plan {
display: grid;
gap: var(--s-3);
}
.plan__item {
display: flex;
gap: var(--s-3);
align-items: flex-start;
padding: var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
}
.plan__item svg {
flex: none;
color: var(--c-teal);
}
.done {
justify-items: stretch;
}
.done__badge {
justify-self: center;
width: 84px;
height: 84px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-teal);
color: #fff;
box-shadow: 0 0 0 12px var(--c-teal-soft);
margin: var(--s-4) 0 var(--s-2);
animation: pop 360ms var(--ease);
}
@keyframes pop {
from {
transform: scale(0.6);
opacity: 0;
}
}
.loader {
justify-self: center;
width: 48px;
height: 48px;
margin: var(--s-12) 0;
border-radius: 50%;
border: 5px solid var(--c-teal-soft);
border-top-color: var(--c-teal);
animation: spin 900ms linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* ---------------------------------------------------------------- today */
.today-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.tasks {
display: grid;
gap: var(--s-3);
}
.task {
display: flex;
align-items: center;
gap: var(--s-3);
width: 100%;
min-height: 76px;
padding: var(--s-3) var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
color: var(--c-text);
}
.task > svg:last-child {
flex: none;
color: var(--c-text-3);
}
.task__icon {
flex: none;
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-blue-soft);
color: var(--c-blue);
}
.task__icon--teal {
background: var(--c-teal-soft);
color: var(--c-teal);
}
.task__text {
flex: 1;
display: grid;
min-width: 0;
}
.task__title {
font-weight: 600;
}
.task__sub {
font-size: var(--fs-14);
color: var(--c-text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
.task--hero {
background: var(--c-teal-soft);
border-color: var(--c-border-strong);
border-left: 3px solid var(--c-primary);
color: var(--c-text);
}
.task--hero .task__icon {
background: var(--c-teal);
color: #fff;
}
.task--hero .task__sub,
.task--hero > svg:last-child {
color: var(--c-text-2);
}
.done-row {
display: flex;
align-items: center;
gap: var(--s-3);
padding: var(--s-3) var(--s-4);
border-radius: var(--r-tile);
background: var(--c-tile);
}
.done-row__title {
display: block;
font-weight: 600;
}
.done-row__sub {
display: block;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.alldone {
display: grid;
gap: var(--s-3);
padding: var(--s-6) var(--s-5);
border-radius: var(--r-tile);
background: var(--c-teal-soft);
}
.quick {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s-3);
}
.quick__btn {
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 72px;
padding: var(--s-3);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
color: var(--c-primary);
}
.quick__title {
display: block;
font-size: var(--fs-14);
font-weight: 600;
}
.quick__sub {
display: none;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.quick__btn svg {
flex: none;
}
/* ---------------------------------------------------------------- shared blocks: focus, dashboard, grids */
.focus,
.split,
.split__lead,
.split__act {
display: grid;
gap: var(--s-5);
align-content: start;
}
.dash,
.dash__main,
.dash__side {
display: grid;
gap: var(--s-4);
align-content: start;
}
.card {
display: grid;
gap: var(--s-3);
width: 100%;
padding: var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
color: var(--c-text);
}
.card__head {
display: flex;
align-items: center;
gap: var(--s-3);
}
.card__head > svg:last-child {
flex: none;
color: var(--c-text-3);
}
.grid2,
.cols {
display: grid;
gap: var(--s-4);
}
.btn--auto {
width: auto;
justify-self: center;
}
/* ---------------------------------------------------------------- meds */
.rx {
display: grid;
gap: var(--s-3);
padding: var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
}
.rx__head {
display: flex;
align-items: center;
gap: var(--s-3);
}
.rx__drug {
display: block;
font-size: var(--fs-18);
font-weight: 600;
}
.rx__by {
display: block;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.rx__times {
display: grid;
gap: var(--s-2);
}
.rx__times li {
display: flex;
align-items: center;
gap: var(--s-3);
font-size: var(--fs-16);
}
.rx__times strong {
min-width: 52px;
}
.rx__times span {
color: var(--c-text-2);
}
.week {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
padding-top: var(--s-2);
border-top: 1px solid var(--c-border);
}
.week__day {
display: grid;
justify-items: center;
gap: 6px;
}
.week__label {
font-size: var(--fs-12);
color: var(--c-text-2);
}
.wk {
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 50%;
border: 2px solid var(--c-border-strong);
color: #fff;
}
.wk--taken {
background: var(--c-teal);
border-color: var(--c-teal);
}
.wk--missed {
background: var(--c-red);
border-color: var(--c-red);
}
.wk--pending {
border-color: var(--c-teal);
border-style: dashed;
}
/* ---------------------------------------------------------------- messages */
.bubbles {
display: grid;
gap: var(--s-3);
}
.bubble {
display: flex;
gap: var(--s-2);
align-items: flex-end;
max-width: 88%;
}
.bubble p {
padding: var(--s-3) var(--s-4);
border-radius: var(--r-tile);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.bubble--bot p {
background: var(--c-tile);
border-bottom-left-radius: 6px;
}
.bubble--crisis p {
background: var(--c-red-soft);
}
.bubble__avatar {
flex: none;
width: 32px;
height: 32px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-teal-soft);
color: var(--c-teal);
}
.bubble--me {
justify-self: end;
}
.bubble--me p {
background: var(--c-teal-soft);
border-bottom-right-radius: 6px;
}
.quickreplies {
display: flex;
flex-wrap: wrap;
gap: var(--s-2);
}
.qr {
min-height: 44px;
padding: 0 var(--s-4);
border: 1.5px solid var(--c-border);
border-radius: var(--r-btn);
background: var(--c-surface);
font-weight: 600;
color: var(--c-primary);
}
.qr:first-child {
background: var(--c-teal);
border-color: var(--c-teal);
color: #fff;
}
.composer {
position: sticky;
bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--s-2));
display: flex;
gap: var(--s-2);
align-items: flex-end;
padding: var(--s-2);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
}
.composer textarea {
flex: 1;
min-height: 44px;
max-height: 140px;
padding: 10px var(--s-3);
border: 0;
resize: none;
field-sizing: content;
font-size: var(--fs-16);
}
.composer textarea:focus-visible {
outline: none;
}
.send {
flex: none;
width: 44px;
height: 44px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: var(--c-teal);
color: #fff;
}
.send:disabled {
background: var(--c-border);
color: var(--c-text-3);
}
/* ---------------------------------------------------------------- emergency */
.sosblock {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
display: grid;
gap: var(--s-2);
padding: var(--s-2);
border-radius: var(--r-tile);
background: var(--c-red-soft);
}
.sosblock__head {
display: flex;
align-items: center;
gap: var(--s-3);
min-height: 52px;
padding: 0 var(--s-2);
border: 0;
background: none;
color: var(--c-red-strong);
font-weight: 600;
font-size: var(--fs-16);
text-align: left;
}
.sosblock__head > span:nth-child(2) {
flex: 1;
}
.sosblock__icon {
width: 36px;
height: 36px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-red);
color: #fff;
}
.sosblock__lines {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s-2);
}
.hotlines {
display: grid;
gap: var(--s-3);
}
.hotline {
display: flex;
align-items: center;
gap: var(--s-3);
border-radius: var(--r-tile);
color: var(--c-text);
text-decoration: none;
}
.hotline--lg {
min-height: 92px;
padding: var(--s-4);
background: var(--c-red-soft);
border: 1px solid var(--c-red-line);
}
.hotline--lg > svg:last-child {
color: var(--c-red);
}
.hotline--sm {
padding: var(--s-2) var(--s-3);
background: rgb(255 255 255 / 0.65);
border-radius: var(--r-tile);
}
.hotline__icon {
flex: none;
width: 52px;
height: 52px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-red);
color: #fff;
}
.hotline--sm .hotline__icon {
width: 32px;
height: 32px;
background: transparent;
color: var(--c-red);
}
.hotline__text {
flex: 1;
display: grid;
min-width: 0;
}
.hotline__phone {
font-size: var(--fs-28);
font-weight: 600;
line-height: 1.1;
color: var(--c-red-strong);
}
.hotline__phone--sm {
font-size: var(--fs-18);
color: var(--c-text);
}
.hotline--sm .hotline__phone {
font-size: var(--fs-16);
}
.hotline--sm .hotline__phone--sm {
font-size: var(--fs-13);
}
.hotline__name {
font-size: var(--fs-13);
color: var(--c-text-2);
}
.hotline__name--strong {
font-weight: 600;
color: var(--c-red-strong);
}
.hotline--sm .hotline__name {
font-size: var(--fs-12);
line-height: 1.25;
}
.hotline__note {
font-size: var(--fs-12);
color: var(--c-text-3);
}
.sheet,
.modal {
width: 100%;
max-width: 100%;
max-height: 92dvh;
margin: auto auto 0;
padding: 0;
border: 0;
border-radius: 16px 16px 0 0;
background: var(--c-surface);
color: var(--c-text);
}
.sheet::backdrop,
.modal::backdrop {
background: rgb(33 59 56 / 0.35);
}
.sheet[open],
.modal[open] {
animation: sheet-up 220ms var(--ease);
}
.sheet__body,
.modal__body {
display: grid;
gap: var(--s-4);
padding: var(--s-4) max(var(--s-5), var(--safe-left)) calc(var(--s-6) + var(--safe-bottom));
}
.sheet__bar,
.modal__head {
display: flex;
align-items: center;
gap: var(--s-2);
}
.modal__head {
justify-content: space-between;
}
.sheet__title {
font-size: var(--fs-20);
font-weight: 600;
}
.sos {
display: grid;
justify-items: center;
gap: var(--s-4);
padding: var(--s-2) 0;
}
.sos__ring {
width: 150px;
height: 150px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-red-soft);
}
.sos__btn {
width: 96px;
height: 96px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--c-red);
color: #fff;
}
.sos__lead {
max-width: 28ch;
text-align: center;
font-size: var(--fs-18);
}
@keyframes sheet-up {
from {
transform: translateY(24px);
opacity: 0;
}
}
/* ---------------------------------------------------------------- desktop ≥ 1024 */
@media (min-width: 1024px) {
body {
background: var(--c-page-desk);
}
.app {
display: grid;
grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.tabbar,
.only-phone,
.screen > .sosblock {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
display: none;
}
.app--tabs .screen {
padding-bottom: var(--s-10);
}
.sidebar {
position: sticky;
top: 0;
height: 100dvh;
display: grid;
align-content: start;
gap: var(--s-8);
padding: var(--s-6) var(--s-4);
background: var(--c-surface);
border-right: 1px solid var(--c-border);
color: var(--c-text);
}
.sidebar__brand {
display: flex;
gap: var(--s-3);
align-items: center;
color: var(--c-text);
text-decoration: none;
}
.sidebar__name {
display: block;
font-weight: 600;
font-size: var(--fs-14);
line-height: 1.2;
}
.sidebar__tag {
display: block;
font-size: var(--fs-12);
color: var(--c-text-3);
}
.sidebar__list {
display: grid;
gap: var(--s-1);
}
.sidebar__link {
position: relative;
display: flex;
align-items: center;
gap: var(--s-3);
width: 100%;
min-height: 48px;
padding: 0 var(--s-4);
border: 0;
border-radius: var(--r-btn);
background: none;
color: var(--c-text-2);
font-size: var(--fs-16);
font-weight: 500;
text-decoration: none;
text-align: left;
}
.sidebar__link:hover {
background: var(--c-tile);
color: var(--c-primary);
}
.sidebar__link.active {
background: var(--c-primary-soft);
color: var(--c-primary);
font-weight: 600;
}
.sidebar__link .dot {
position: static;
margin-left: auto;
border-color: var(--c-surface);
}
.app__main {
display: grid;
grid-template-columns: minmax(0, 1fr);
align-content: start;
gap: var(--s-6);
max-width: 1320px;
padding: var(--s-8) var(--s-8) var(--s-8) var(--s-10);
}
.screen {
max-width: none;
margin: 0;
padding: 0;
gap: var(--s-6);
align-self: start;
}
/* Tab screens and sign-in: the page content sits on one wide white card. */
.screen > .stack {
padding: var(--s-8) var(--s-10);
border-radius: var(--r-tile);
background: var(--c-surface);
border: 1px solid var(--c-border);
}
/* Focus screens: question on the left, answers on the right. */
.focus,
.done {
padding: var(--s-8) var(--s-10) var(--s-10);
border-radius: var(--r-tile);
background: var(--c-surface);
border: 1px solid var(--c-border);
}
.done {
max-width: none;
justify-items: center;
}
.done > .panel,
.done > .btn {
width: min(100%, 520px);
}
.split {
grid-template-columns: minmax(0, 1fr);
gap: var(--s-12);
align-items: start;
}
.split__lead {
position: sticky;
top: var(--s-8);
}
.split__act {
padding: var(--s-6);
border-radius: var(--r-tile);
background: var(--c-tile);
}
.split__act .option,
.split__act .row-card,
.split__act .textarea textarea,
.split__act .code-input {
background: var(--c-surface);
}
.split--crisis .split__act,
.split--plan .split__act {
background: transparent;
padding: 0;
}
.btn-row--stack-desk {
grid-template-columns: 1fr;
}
/* Wide content (consent text, 0–10 scale) reads better in one centred column. */
.split--consent,
.split--number,
.split--in-number {
grid-template-columns: minmax(0, 1fr);
max-width: 760px;
gap: var(--s-6);
}
.split--consent .split__lead,
.split--number .split__lead,
.split--in-number .split__lead {
position: static;
}
.split--consent .btn-row--stack-desk {
grid-template-columns: 1fr 1fr;
}
.split--number .numscale__row,
.split--in-number .numscale__row {
gap: var(--s-2);
}
.num {
font-size: var(--fs-16);
}
.focus .h1 {
font-size: var(--fs-28);
}
.panel--scroll {
max-height: 56vh;
}
/* Today: dashboard. */
.dash {
grid-template-columns: minmax(0, 1fr);
gap: var(--s-6);
align-items: start;
}
.dash__head {
grid-column: 1 / -1;
padding: 0 var(--s-2);
}
.dash__main {
padding: var(--s-6);
border-radius: var(--r-tile);
background: var(--c-surface);
border: 1px solid var(--c-border);
}
.dash__side .card {
border: 1px solid var(--c-border);
}
.grid2,
.cols {
grid-template-columns: minmax(0, 1fr);
align-items: start;
}
.dash__side .quick {
grid-template-columns: 1fr;
}
.cols > .notice {
grid-column: 1 / -1;
}
.rail {
position: static;
top: var(--s-8);
display: grid;
gap: var(--s-4);
align-content: start;
}
.railsos {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
display: grid;
gap: var(--s-2);
padding: var(--s-3);
border-radius: var(--r-tile);
background: var(--c-red-soft);
}
.railsos__head {
display: flex;
align-items: center;
gap: var(--s-2);
min-height: 44px;
padding: 0 var(--s-2);
border: 0;
background: none;
color: var(--c-red-strong);
font-weight: 600;
text-align: left;
}
.rail .row-card {
background: var(--c-surface);
}
.h1 {
font-size: var(--fs-34);
}
.quick__sub {
display: block;
}
.quick__btn {
min-height: 84px;
padding: var(--s-4);
}
.entry-grid {
grid-template-columns: 1fr 1fr;
}
.sheet,
.modal {
max-width: 460px;
margin: auto;
border-radius: var(--r-tile);
}
.composer {
bottom: var(--s-4);
}
}
/* ------------------------------------------------------------------ questionnaires (stage 1 / stage 2) */
.formchip {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--s-2) var(--s-3);
}
.formchip__title {
font-size: var(--fs-13);
color: var(--c-text-2);
}
.chip--sec {
gap: 6px;
padding: 5px var(--s-3) 5px 10px;
background: var(--c-blue-soft);
color: var(--c-blue);
}
.chip--mood,
.chip--diary {
background: var(--c-teal-soft);
color: var(--c-teal-strong);
}
.chip--trauma {
background: var(--c-amber-soft);
color: var(--c-amber);
}
.chip--alcohol,
.chip--about {
background: var(--c-primary-soft);
color: var(--c-primary);
}
.survey {
gap: var(--s-3);
}
.survey__instr {
padding-left: var(--s-3);
border-left: 3px solid var(--c-border-strong);
color: var(--c-text-2);
}
.survey__instr .body-text {
font-size: var(--fs-16);
}
.survey__q {
font-size: var(--fs-24);
line-height: 1.3;
}
.survey__asof {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.survey__aux {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--s-3);
padding-top: var(--s-2);
border-top: 1px solid var(--c-border);
}
.btn--sm {
width: auto;
min-height: 40px;
padding: 0 var(--s-3);
font-size: var(--fs-14);
}
.linkbtn {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding: 0 var(--s-1);
border: 0;
background: none;
font-weight: 600;
font-size: var(--fs-14);
text-decoration: underline;
text-underline-offset: 3px;
}
.linkbtn--danger {
color: var(--c-red-strong);
}
.btn--ghost-red {
background: transparent;
color: var(--c-red-strong);
}
.btn--outline-red {
background: var(--c-surface);
border-color: var(--c-red);
color: var(--c-red-strong);
}
.center-self {
align-self: center;
justify-self: center;
}
/* RUS-AUDIT item 2: standard-drink table from the approved form */
.drinks {
display: grid;
gap: var(--s-2);
padding: var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
}
.drinks__scroll {
overflow-x: auto;
margin: 0 calc(-1 * var(--s-2));
}
.drinks table {
width: 100%;
min-width: 420px;
border-collapse: collapse;
font-size: var(--fs-13);
font-variant-numeric: tabular-nums;
}
.drinks th,
.drinks td {
padding: 8px;
text-align: left;
border-bottom: 1px solid var(--c-border);
vertical-align: top;
}
.drinks thead th {
color: var(--c-text-2);
font-weight: 600;
}
.drinks tbody th {
white-space: nowrap;
color: var(--c-primary);
}
/* diary: hours of sleep */
.hours {
display: grid;
gap: var(--s-2);
}
.hours__label {
font-weight: 600;
}
.hours__field {
display: flex;
align-items: center;
gap: var(--s-2);
width: 180px;
padding: 0 var(--s-4);
border: 1.5px solid var(--c-border-strong);
border-radius: var(--r-btn);
background: var(--c-surface);
}
.hours__field:focus-within {
border-color: var(--c-focus);
box-shadow: 0 0 0 3px var(--c-blue-soft);
}
.hours__field input {
flex: 1;
min-width: 0;
height: var(--tap);
border: 0;
outline: none;
background: none;
font-size: var(--fs-28);
font-weight: 600;
color: var(--c-primary);
}
.hours__field span {
font-size: var(--fs-18);
color: var(--c-text-2);
}
.hours .btn {
margin-top: var(--s-2);
}
/* ------------------------------------------------------------------ medication: drug card, therapy day */
.rx__foot {
display: flex;
flex-wrap: wrap;
gap: var(--s-2);
padding-top: var(--s-3);
border-top: 1px solid var(--c-border);
}
.effect {
display: flex;
align-items: center;
gap: var(--s-4);
width: 100%;
padding: var(--s-3) var(--s-4);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-blue-soft);
text-align: left;
color: var(--c-text);
}
.effect > svg:last-child {
flex: none;
color: var(--c-blue);
}
.effect__day {
flex: none;
display: grid;
place-items: center;
width: 56px;
height: 56px;
border-radius: var(--r-btn);
background: var(--c-surface);
color: var(--c-blue);
line-height: 1;
}
.effect__num {
font-size: var(--fs-24);
font-weight: 600;
}
.effect__unit {
font-size: var(--fs-12);
color: var(--c-text-2);
}
.drug {
display: grid;
gap: var(--s-6);
}
.drug__head {
display: flex;
align-items: center;
gap: var(--s-4);
}
.drug__head .tile-icon--xl {
width: 72px;
height: 72px;
}
.drug__rx {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: var(--s-2);
padding: 6px var(--s-3);
border-radius: var(--r-chip);
background: var(--c-teal-soft);
color: var(--c-teal-strong);
font-size: var(--fs-14);
font-weight: 600;
}
.drug__grid,
.drug__col {
display: grid;
gap: var(--s-4);
align-content: start;
}
.drug__sec {
display: grid;
gap: var(--s-3);
padding: var(--s-5);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
}
.drug__sec p {
margin: 0;
line-height: 1.5;
}
.drug__sec--red {
border-color: var(--c-red-line);
background: var(--c-red-soft);
}
.drug__h {
display: flex;
align-items: center;
gap: var(--s-3);
margin: 0;
font-size: var(--fs-18);
font-weight: 600;
}
.drug__sub {
font-weight: 600;
}
.badge-icon--blue {
background: var(--c-blue);
}
.timeline {
display: grid;
gap: var(--s-2);
}
.timeline__bar {
position: relative;
height: 10px;
border-radius: 999px;
background: var(--c-tile);
border: 1px solid var(--c-border);
}
.timeline__fill {
position: absolute;
inset: 0 auto 0 0;
border-radius: 999px;
background: linear-gradient(90deg, var(--c-teal-soft), var(--c-teal));
}
.timeline__mark {
position: absolute;
top: 50%;
width: 18px;
height: 18px;
border: 3px solid var(--c-surface);
border-radius: 50%;
background: var(--c-teal);
box-shadow: 0 1px 3px rgb(33 59 56 / 20%);
transform: translate(-50%, -50%);
}
.timeline__legend {
display: flex;
justify-content: space-between;
gap: var(--s-3);
font-size: var(--fs-13);
color: var(--c-text-2);
}
@media (max-width: 1023px) {
.btn-row--stack-phone {
grid-template-columns: 1fr;
}
}
@media (min-width: 1024px) {
.drug__grid {
grid-template-columns: minmax(0, 1fr);
gap: var(--s-5);
}
.survey__q {
font-size: var(--fs-28);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}
/* ---------------------------------------------------------------- bare: questionnaires, centred, no sidebar */
.app--bare {
background: var(--c-page-desk);
}
@media (min-width: 1024px) {
.app--bare {
display: block;
}
.app--bare .app__main {
grid-template-columns: minmax(0, 1fr);
max-width: 760px;
min-height: 100dvh;
margin: 0 auto;
padding: var(--s-10) var(--s-4);
align-content: start;
}
.app--bare .screen > .sosblock {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
display: grid;
}
.app--bare .split {
grid-template-columns: minmax(0, 1fr);
gap: var(--s-6);
}
.app--bare .split__lead {
position: static;
}
}
/* ---------------------------------------------------------------- results and questionnaire log */
.result {
display: grid;
gap: var(--s-3);
padding: var(--s-5);
border-radius: var(--r-tile);
background: var(--c-teal-soft);
}
.result__title {
font-size: var(--fs-20);
font-weight: 600;
}
.result__chips {
display: flex;
flex-wrap: wrap;
gap: var(--s-2);
}
.result .chip {
background: var(--c-surface);
}
.log {
display: grid;
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
overflow: hidden;
}
.log > li + li {
border-top: 1px solid var(--c-border);
}
.log__row {
width: 100%;
display: flex;
align-items: center;
gap: var(--s-4);
padding: var(--s-3) var(--s-4);
text-align: left;
color: var(--c-text);
}
.log__row:disabled {
cursor: default;
}
.log__row svg {
flex: none;
color: var(--c-text-3);
}
.log__date {
flex: none;
width: 64px;
font-size: var(--fs-13);
color: var(--c-text-2);
}
.log__text {
flex: 1;
min-width: 0;
display: grid;
}
.log__kind {
font-weight: 600;
}
.log__sub {
font-size: var(--fs-13);
color: var(--c-text-2);
}
.log__body {
display: grid;
gap: var(--s-2);
padding: 0 var(--s-4) var(--s-4) calc(64px + var(--s-8));
font-size: var(--fs-14);
}
/* ---------------------------------------------------------------- toasts (top right) */
.toasts {
position: fixed;
top: calc(var(--s-4) + var(--safe-top));
right: max(var(--s-4), var(--safe-right));
left: max(var(--s-4), var(--safe-left));
z-index: 60;
display: grid;
gap: var(--s-2);
justify-items: end;
pointer-events: none;
}
.toast {
width: min(100%, 380px);
display: flex;
align-items: flex-start;
gap: var(--s-3);
padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
border-radius: var(--r-tile);
background: var(--c-primary);
color: #fff;
box-shadow: 0 12px 32px rgb(33 59 56 / 0.15);
pointer-events: auto;
animation: toast-in 200ms var(--ease);
}
.toast__icon {
flex: none;
display: grid;
place-items: center;
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--c-teal);
}
.toast__text {
flex: 1;
margin: 3px 0 0;
font-size: var(--fs-14);
line-height: 1.4;
}
.toast__close {
flex: none;
color: rgb(255 255 255 / 0.7);
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(-8px);
}
}
/* ---------------------------------------------------------------- workspace frame */
.app__main,
.screen,
.screen > *,
.split > *,
.cols > *,
.dash > * {
min-width: 0;
}
.workspace {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--s-3);
margin: 0 max(var(--s-5), var(--safe-left));
padding: calc(var(--s-4) + var(--safe-top)) 0 var(--s-4);
border-bottom: 1px solid var(--c-border);
color: var(--c-text-3);
font-size: var(--fs-13);
}
.workspace__brand,
.workspace__profile {
display: inline-flex;
align-items: center;
gap: var(--s-2);
}
.workspace__brand svg {
flex: none;
}
.workspace__profile {
text-decoration: none;
color: var(--c-text);
font-weight: 500;
}
.workspace__profile .avatar {
width: 34px;
height: 34px;
background: var(--c-teal-soft);
color: var(--c-primary);
}
.workspace__tag {
font-size: var(--fs-12);
}
.screen {
padding-top: var(--s-6);
}
.head {
padding-bottom: var(--s-4);
border-bottom: 1px solid var(--c-border);
}
.focus .head {
border-bottom: 0;
padding-bottom: 0;
}
.tabbar__item.active {
background: var(--c-primary-soft);
box-shadow: inset 0 2px var(--c-primary);
}
.btn--outline {
border-color: var(--c-border-strong);
}
.btn--outline:hover:not(:disabled),
.btn--ghost:hover:not(:disabled),
.btn--soft:hover:not(:disabled),
.task:hover:not(:disabled),
.quick__btn:hover:not(:disabled) {
background: var(--c-primary-soft);
border-color: var(--c-border-strong);
}
.composer:focus-within {
outline: 3px solid var(--c-focus);
outline-offset: 2px;
}
.composer textarea {
min-width: 0;
}
.log__row {
border: 0;
background: transparent;
}
.log__row:hover:not(:disabled) {
background: var(--c-tile);
}
.result {
border: 1px solid var(--c-border-strong);
border-left: 3px solid var(--c-teal);
}
.notice--info {
border: 1px solid var(--c-border);
}
.notice--warn,
.notice--danger {
border: 1px solid var(--c-red-line);
border-left: 3px solid var(--c-red);
}
@media (max-width: 1023px) {
.screen > .stack,
.focus,
.done,
.dash__main {
padding: var(--s-5);
background: var(--c-surface);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
}
.workspace {
max-width: 600px;
margin-inline: auto;
width: calc(100% - 40px);
}
.workspace__tag {
display: none;
}
}
@media (max-width: 480px) {
.screen > .stack,
.focus,
.done,
.dash__main {
padding: var(--s-4);
}
.btn-row,
.quick,
.sosblock__lines {
grid-template-columns: minmax(0, 1fr);
}
.signin__card {
padding: var(--s-6) var(--s-5);
}
.task,
.effect {
flex-wrap: wrap;
}
.task__text {
flex-basis: 55%;
}
.signin__foot {
flex-wrap: wrap;
}
.numscale__row {
gap: 3px;
}
}
@media (min-width: 1024px) {
.workspace {
margin: 0;
min-height: 62px;
padding: 0 0 var(--s-5);
}
.workspace:not(.workspace--bare) .workspace__brand svg {
display: none;
}
.screen {
padding-top: 0;
}
.sidebar {
display: flex;
flex-direction: column;
padding: var(--s-8) var(--s-5);
overflow-y: auto;
}
.sidebar__brand > svg {
flex: none;
}
.sidebar__note {
display: grid;
gap: var(--s-2);
margin-top: auto;
padding-top: var(--s-5);
border-top: 1px solid var(--c-border);
font-size: var(--fs-12);
line-height: 1.6;
color: var(--c-text-3);
}
.sidebar__note strong {
color: var(--c-text);
font-weight: 500;
}
.rail {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rail > * {
align-self: start;
}
.screen > .stack,
.focus,
.done {
padding: var(--s-6);
}
}
@media (min-width: 1200px) {
.dash {
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.grid2,
.cols,
.drug__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 1440px) {
.app__main {
grid-template-columns: minmax(0, 1fr) var(--rail-w);
}
.rail {
position: sticky;
grid-template-columns: minmax(0, 1fr);
}
}
/* Respect reduced motion for toasts defined after the earlier component rules. */
@media (prefers-reduced-motion: reduce) {
.toast {
animation: none;
}
}