Files
PTSRaiAgent/web/src/theme/global.css
T
Arxip222andClaude Opus 5.5 b4b1bc51c8 feat(web): screens from docs/mock — focus flow, today, meds, doctor, profile
- /flow renders the dialog engine's current step as a mock screen (consent,
  age, onboarding and scales with progress, mood 0–10, free text, dose
  reminder, crisis with hotlines and breathing, safety plan), so every
  engine scenario gets the design without duplicating its logic
- today / meds / doctor / profile / messages tabs; navy sidebar and
  emergency rail on desktop, emergency block and tab bar on phones
- API: GET /me/{token}/today (today's doses, week marks, next visit, demo
  clock time); demo ЕМИАС sign-in seeds the persona's synthetic profile and
  prescription from the dashboard fixtures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:11:45 +03:00

1796 lines
29 KiB
CSS

/* Phone-first (docs/mock series 2). ≥1024px: navy sidebar | content | emergency rail. Tokens only. */
*,
*::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-navy);
font-weight: 700;
}
/* ---------------------------------------------------------------- type */
.h1 {
font-size: var(--fs-28);
font-weight: 700;
line-height: 1.15;
letter-spacing: -0.02em;
color: var(--c-text);
text-wrap: balance;
}
.h2 {
font-size: var(--fs-20);
font-weight: 700;
line-height: 1.2;
}
.h3 {
font-size: var(--fs-18);
font-weight: 700;
}
.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: 700;
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: 700;
}
.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-navy);
color: #fff;
}
.btn--primary:hover:not(:disabled) {
background: var(--c-navy-hover);
}
.btn--outline {
background: var(--c-surface);
border-color: var(--c-navy);
color: var(--c-navy);
}
.btn--ghost {
background: var(--c-tile);
border-color: var(--c-border);
color: var(--c-navy);
}
.btn--soft {
background: var(--c-blue-soft);
color: var(--c-navy);
border-color: #cfe0f5;
}
.btn--danger {
background: var(--c-red);
color: #fff;
}
.btn--primary:disabled,
.btn--danger:disabled {
background: #c5cfdc;
color: #fff;
}
.icon-btn {
position: relative;
flex: none;
width: 44px;
height: 44px;
display: grid;
place-items: center;
margin-left: -10px;
border: 0;
border-radius: 12px;
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: #cdeee8;
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: 14px;
background: var(--c-tile);
color: var(--c-navy);
}
.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: 700;
}
.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 {
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: 700;
}
.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 */
.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: 20px;
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: 700;
}
.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: 14px;
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-soft);
}
.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: 700;
line-height: 1;
color: var(--c-navy);
}
.numscale__row {
display: grid;
grid-template-columns: repeat(11, 1fr);
gap: 4px;
}
.num {
aspect-ratio: 1;
min-height: 30px;
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: 20px;
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: 700;
color: var(--c-navy);
}
.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: 14px;
background: var(--c-blue-soft);
color: var(--c-navy);
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: 700;
}
.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: #7fd1c6;
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: 700;
}
.task__sub {
font-size: var(--fs-14);
color: var(--c-text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task--hero {
background: var(--c-navy);
border-color: var(--c-navy);
color: #fff;
}
.task--hero .task__icon {
background: var(--c-teal);
color: #fff;
}
.task--hero .task__sub,
.task--hero > svg:last-child {
color: #c9d6e8;
}
.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: 20px;
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-2);
min-height: 64px;
padding: var(--s-3);
border: 1px solid var(--c-border);
border-radius: var(--r-tile);
background: var(--c-surface);
text-align: left;
font-size: var(--fs-14);
font-weight: 600;
color: var(--c-navy);
}
.quick__btn svg {
flex: none;
}
/* ---------------------------------------------------------------- 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: 700;
}
.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: 18px;
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-navy);
}
.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 {
display: grid;
gap: var(--s-2);
padding: var(--s-2);
border-radius: 18px;
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: 700;
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: 12px;
}
.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: 700;
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: 24px 24px 0 0;
background: var(--c-surface);
color: var(--c-text);
}
.sheet::backdrop,
.modal::backdrop {
background: rgb(15 39 71 / 0.5);
}
.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: 700;
}
.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: radial-gradient(circle, var(--c-red-soft) 55%, #fff6f6 56% 100%);
}
.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) 1fr;
}
.tabbar,
.only-phone,
.screen > .sosblock {
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-navy);
color: #fff;
}
.sidebar__brand {
display: flex;
gap: var(--s-3);
align-items: center;
color: #fff;
text-decoration: none;
}
.sidebar__name {
display: block;
font-weight: 700;
font-size: var(--fs-14);
line-height: 1.2;
}
.sidebar__tag {
display: block;
font-size: var(--fs-12);
color: #a9b9cf;
}
.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: #c9d6e8;
font-size: var(--fs-16);
font-weight: 500;
text-decoration: none;
text-align: left;
}
.sidebar__link:hover {
background: rgb(255 255 255 / 0.06);
color: #fff;
}
.sidebar__link.active {
background: rgb(255 255 255 / 0.12);
color: #fff;
font-weight: 700;
}
.sidebar__link .dot {
position: static;
margin-left: auto;
border-color: var(--c-navy);
}
.app__main {
display: grid;
grid-template-columns: minmax(0, 1fr) var(--rail-w);
gap: var(--s-6);
max-width: 1180px;
padding: var(--s-8) var(--s-8) var(--s-8) var(--s-10);
}
.screen {
max-width: 760px;
margin: 0;
padding: var(--s-8);
border-radius: 24px;
background: var(--c-surface);
box-shadow: 0 1px 2px rgb(15 39 71 / 0.06);
align-self: start;
min-height: 560px;
}
.rail {
position: sticky;
top: var(--s-8);
display: grid;
gap: var(--s-4);
align-content: start;
}
.railsos {
display: grid;
gap: var(--s-2);
padding: var(--s-3);
border-radius: 20px;
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: 700;
text-align: left;
}
.rail .row-card {
background: var(--c-surface);
}
.h1 {
font-size: var(--fs-34);
}
.entry-grid {
grid-template-columns: 1fr 1fr;
}
.sheet,
.modal {
max-width: 460px;
margin: auto;
border-radius: 24px;
}
.composer {
bottom: var(--s-4);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}